+ cd /tmp/tmp7ksfxpzz/tests; TEST_SUBJECTS=/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_storage-178-e856157-fedora-31-87qzp9iq/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmp7ksfxpzz/_setup.yml /tmp/tmp7ksfxpzz/tests/tests_change_disk_fs.yml ansible-playbook 2.8.16 config file = /etc/ansible/ansible.cfg configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python2.7/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 2.7.5 (default, Apr 2 2020, 13:16:51) [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)] Using /etc/ansible/ansible.cfg as config file PLAYBOOK: _setup.yml *********************************************************** 1 plays in /tmp/tmp7ksfxpzz/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/_setup.yml:5 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "groups": { "all": [ "/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2" ], "localhost": [ "/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2" ], "subjects": [ "/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmp7ksfxpzz/_setup.yml:6 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 : ok=1 changed=0 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 PLAYBOOK: tests_change_disk_fs.yml ********************************************* 1 plays in /tmp/tmp7ksfxpzz/tests/tests_change_disk_fs.yml PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/tests_change_disk_fs.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] META: ran handlers TASK [include_role : linux-system-roles.storage] ******************************* task path: /tmp/tmp7ksfxpzz/tests/tests_change_disk_fs.yml:11 TASK [linux-system-roles.storage : Set version specific variables] ************* task path: /tmp/tmp7ksfxpzz/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-crypto", "libblockdev-dm", "libblockdev-lvm", "libblockdev-mdraid", "libblockdev-swap"]}, "ansible_included_var_files": ["/tmp/tmp7ksfxpzz/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.storage : define an empty list of pools to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : define an empty list of volumes to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : include the appropriate provider tasks] ***** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:22 included: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [linux-system-roles.storage : get a list of rpm packages installed on host machine] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : make sure blivet is available] ************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:7 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: python3-blivet", "Installed: libblockdev-crypto", "Installed: libblockdev-dm", "Installed: libblockdev-lvm", "Installed: libblockdev-mdraid", "Installed: libblockdev-swap", "Installed: libblockdev-kbd-2.24-2.fc31.x86_64", "Installed: nspr-4.29.0-1.fc31.x86_64", "Installed: libblockdev-loop-2.24-2.fc31.x86_64", "Installed: nss-3.57.0-1.fc31.x86_64", "Installed: libblockdev-lvm-2.24-2.fc31.x86_64", "Installed: lsof-4.93.2-2.fc31.x86_64", "Installed: lvm2-2.03.09-1.fc31.x86_64", "Installed: nss-softokn-3.57.0-1.fc31.x86_64", "Installed: libblockdev-mdraid-2.24-2.fc31.x86_64", "Installed: nss-softokn-freebl-3.57.0-1.fc31.x86_64", "Installed: lvm2-libs-2.03.09-1.fc31.x86_64", "Installed: python3-gobject-base-3.34.0-3.fc31.x86_64", "Installed: libblockdev-mpath-2.24-2.fc31.x86_64", "Installed: nss-sysinit-3.57.0-1.fc31.x86_64", "Installed: device-mapper-event-1.02.171-1.fc31.x86_64", "Installed: nss-util-3.57.0-1.fc31.x86_64", "Installed: libblockdev-nvdimm-2.24-2.fc31.x86_64", "Installed: gobject-introspection-1.62.0-1.fc31.x86_64", "Installed: device-mapper-event-libs-1.02.171-1.fc31.x86_64", "Installed: userspace-rcu-0.11.1-2.fc31.x86_64", "Installed: libblockdev-part-2.24-2.fc31.x86_64", "Installed: lzo-2.08-16.fc31.x86_64", "Installed: volume_key-libs-0.3.12-4.fc31.x86_64", "Installed: dmraid-1.0.0.rc16-43.fc31.x86_64", "Installed: libblockdev-swap-2.24-2.fc31.x86_64", "Installed: libblockdev-utils-2.24-2.fc31.x86_64", "Installed: blivet-data-1:3.1.7-2.fc31.noarch", "Installed: device-mapper-multipath-0.8.0-3.fc31.x86_64", "Installed: device-mapper-multipath-libs-0.8.0-3.fc31.x86_64", "Installed: device-mapper-persistent-data-0.8.5-2.fc31.x86_64", "Installed: sgpio-1.2.0.10-24.fc31.x86_64", "Installed: bcache-tools-1.0.8-16.fc31.x86_64", "Installed: python3-blivet-1:3.1.7-2.fc31.noarch", "Installed: daxctl-libs-70.1-1.fc31.x86_64", "Installed: python3-blockdev-2.24-2.fc31.x86_64", "Installed: mdadm-4.1-5.fc31.x86_64", "Installed: python3-pyudev-0.21.0-11.fc31.noarch", "Installed: python3-pyparted-1:3.11.2-2.fc31.x86_64", "Installed: libbytesize-2.3-1.fc31.x86_64", "Installed: libaio-0.3.111-6.fc31.x86_64", "Installed: python3-bytesize-2.3-1.fc31.x86_64", "Installed: libblockdev-2.24-2.fc31.x86_64", "Installed: libblockdev-btrfs-2.24-2.fc31.x86_64", "Installed: btrfs-progs-5.7-4.fc31.x86_64", "Installed: libblockdev-crypto-2.24-2.fc31.x86_64", "Installed: ndctl-70.1-1.fc31.x86_64", "Installed: compat-readline5-5.2-34.fc31.x86_64", "Installed: gdisk-1.0.5-1.fc31.x86_64", "Installed: ndctl-libs-70.1-1.fc31.x86_64", "Installed: libblockdev-dm-2.24-2.fc31.x86_64", "Installed: dmraid-events-1.0.0.rc16-43.fc31.x86_64", "Installed: libblockdev-fs-2.24-2.fc31.x86_64"]} TASK [linux-system-roles.storage : initialize internal facts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools": [], "_storage_vol_defaults": [], "_storage_vol_pools": [], "_storage_vols_no_defaults": [], "_storage_vols_no_defaults_by_pool": {}, "_storage_vols_w_defaults": [], "_storage_volumes": []}, "changed": false} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [1/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:28 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [2/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:36 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [3/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:44 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [4/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:52 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [5/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:61 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [6/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:72 TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools": [] } TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes": [] } TASK [linux-system-roles.storage : get required packages] ********************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": []} TASK [linux-system-roles.storage : make sure required packages are installed] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [linux-system-roles.storage : manage the pools and volumes to match the specified state] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:104 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": []} TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:114 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "blivet_output": { "actions": [], "changed": false, "crypts": [], "failed": false, "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": [] } } TASK [linux-system-roles.storage : set the list of pools for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:117 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : set the list of volumes for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:121 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : remove obsolete mounts] ********************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:137 TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:148 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : set up new/current mounts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:153 TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:164 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : Manage /etc/crypttab to account for changes we just made] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:172 TASK [linux-system-roles.storage : Update facts] ******************************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:187 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_change_disk_fs.yml:14 included: /tmp/tmp7ksfxpzz/tests/get_unused_disk.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Find unused disks in the system] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/get_unused_disk.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "disks": ["vda"]} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/get_unused_disk.yml:8 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"unused_disks": ["vda"]}, "changed": false} TASK [Exit playbook when there's not enough unused disks in the system] ******** task path: /tmp/tmp7ksfxpzz/tests/get_unused_disk.yml:12 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Print unused disks] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/get_unused_disk.yml:17 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "unused_disks": [ "vda" ] } TASK [Create a disk device with the default file system type] ****************** task path: /tmp/tmp7ksfxpzz/tests/tests_change_disk_fs.yml:19 TASK [linux-system-roles.storage : Set version specific variables] ************* task path: /tmp/tmp7ksfxpzz/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-crypto", "libblockdev-dm", "libblockdev-lvm", "libblockdev-mdraid", "libblockdev-swap"]}, "ansible_included_var_files": ["/tmp/tmp7ksfxpzz/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.storage : define an empty list of pools to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : define an empty list of volumes to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : include the appropriate provider tasks] ***** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:22 included: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [linux-system-roles.storage : get a list of rpm packages installed on host machine] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : make sure blivet is available] ************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: python3-blivet", "Installed: libblockdev-crypto", "Installed: libblockdev-dm", "Installed: libblockdev-lvm", "Installed: libblockdev-mdraid", "Installed: libblockdev-swap"]} TASK [linux-system-roles.storage : initialize internal facts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools": [], "_storage_vol_defaults": [], "_storage_vol_pools": [], "_storage_vols_no_defaults": [], "_storage_vols_no_defaults_by_pool": {}, "_storage_vols_w_defaults": [], "_storage_volumes": []}, "changed": false} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [1/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:28 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [2/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:36 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [3/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:44 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [4/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:52 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [5/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:61 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [6/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:72 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'disks': [u'vda'], u'type': u'disk', u'mount_point': u'/opt/test', u'name': u'test1'}) => {"ansible_facts": {"_storage_volumes": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test", "name": "test1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "disk"}]}, "ansible_loop_var": "volume", "changed": false, "volume": {"disks": ["vda"], "mount_point": "/opt/test", "name": "test1", "type": "disk"}} TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools": [] } TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test", "name": "test1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "disk" } ] } TASK [linux-system-roles.storage : get required packages] ********************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": ["xfsprogs"], "pools": [], "volumes": []} TASK [linux-system-roles.storage : make sure required packages are installed] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: xfsprogs"]} TASK [linux-system-roles.storage : manage the pools and volumes to match the specified state] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:104 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [{"action": "create format", "device": "/dev/vda", "fs_type": "xfs"}], "changed": true, "crypts": [], "leaves": ["/dev/sda1", "/dev/sr0", "/dev/vda", "/dev/vdb", "/dev/vdc"], "mounts": [{"dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test", "src": "UUID=bf12ce95-ce4b-4475-9f91-a74fc4add7f3", "state": "mounted"}], "packages": ["e2fsprogs", "xfsprogs"], "pools": [], "volumes": [{"_device": "/dev/vda", "_kernel_device": "/dev/vda", "_mount_id": "UUID=bf12ce95-ce4b-4475-9f91-a74fc4add7f3", "_raw_device": "/dev/vda", "_raw_kernel_device": "/dev/vda", "disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test", "name": "test1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "disk"}]} TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:114 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "blivet_output": { "actions": [ { "action": "create format", "device": "/dev/vda", "fs_type": "xfs" } ], "changed": true, "crypts": [], "failed": false, "leaves": [ "/dev/sda1", "/dev/sr0", "/dev/vda", "/dev/vdb", "/dev/vdc" ], "mounts": [ { "dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test", "src": "UUID=bf12ce95-ce4b-4475-9f91-a74fc4add7f3", "state": "mounted" } ], "packages": [ "e2fsprogs", "xfsprogs" ], "pools": [], "volumes": [ { "_device": "/dev/vda", "_kernel_device": "/dev/vda", "_mount_id": "UUID=bf12ce95-ce4b-4475-9f91-a74fc4add7f3", "_raw_device": "/dev/vda", "_raw_kernel_device": "/dev/vda", "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test", "name": "test1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "disk" } ] } } TASK [linux-system-roles.storage : set the list of pools for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:117 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : set the list of volumes for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:121 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": [{"_device": "/dev/vda", "_kernel_device": "/dev/vda", "_mount_id": "UUID=bf12ce95-ce4b-4475-9f91-a74fc4add7f3", "_raw_device": "/dev/vda", "_raw_kernel_device": "/dev/vda", "disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test", "name": "test1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "disk"}]}, "changed": false} TASK [linux-system-roles.storage : remove obsolete mounts] ********************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:137 TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:148 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [linux-system-roles.storage : set up new/current mounts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:153 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'src': u'UUID=bf12ce95-ce4b-4475-9f91-a74fc4add7f3', u'state': u'mounted', u'dump': 0, u'path': u'/opt/test', u'passno': 0, u'opts': u'defaults', u'fstype': u'xfs'}) => {"ansible_loop_var": "mount_info", "changed": true, "dump": "0", "fstab": "/etc/fstab", "fstype": "xfs", "mount_info": {"dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test", "src": "UUID=bf12ce95-ce4b-4475-9f91-a74fc4add7f3", "state": "mounted"}, "name": "/opt/test", "opts": "defaults", "passno": "0", "src": "UUID=bf12ce95-ce4b-4475-9f91-a74fc4add7f3"} TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:164 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [linux-system-roles.storage : Manage /etc/crypttab to account for changes we just made] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:172 TASK [linux-system-roles.storage : Update facts] ******************************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:187 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_change_disk_fs.yml:29 included: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Print out pool information] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:1 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {} TASK [Print out volume information] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:6 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes_list": [ { "_device": "/dev/vda", "_kernel_device": "/dev/vda", "_mount_id": "UUID=bf12ce95-ce4b-4475-9f91-a74fc4add7f3", "_raw_device": "/dev/vda", "_raw_kernel_device": "/dev/vda", "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test", "name": "test1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "disk" } ] } TASK [Collect info about the volumes.] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "info": {"/dev/sda": {"fstype": "", "label": "", "name": "/dev/sda", "size": "4G", "type": "disk", "uuid": ""}, "/dev/sda1": {"fstype": "ext4", "label": "", "name": "/dev/sda1", "size": "4G", "type": "partition", "uuid": "03e702b4-e165-4a39-88c9-9e210cd00434"}, "/dev/sr0": {"fstype": "iso9660", "label": "cidata", "name": "/dev/sr0", "size": "364K", "type": "rom", "uuid": "2020-10-31-11-51-50-00"}, "/dev/vda": {"fstype": "xfs", "label": "", "name": "/dev/vda", "size": "10G", "type": "disk", "uuid": "bf12ce95-ce4b-4475-9f91-a74fc4add7f3"}, "/dev/vdb": {"fstype": "", "label": "", "name": "/dev/vdb", "size": "10G", "type": "disk", "uuid": ""}, "/dev/vdc": {"fstype": "", "label": "", "name": "/dev/vdc", "size": "10G", "type": "disk", "uuid": ""}}} TASK [Read the /etc/fstab file for volume existence] *************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:19 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/fstab"], "delta": "0:00:00.002503", "end": "2020-10-31 11:53:21.357484", "rc": 0, "start": "2020-10-31 11:53:21.354981", "stderr": "", "stderr_lines": [], "stdout": "\n#\n# /etc/fstab\n# Created by anaconda on Sat Oct 31 08:17:58 2020\n#\n# Accessible filesystems, by reference, are maintained under '/dev/disk/'.\n# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.\n#\n# After editing this file, run 'systemctl daemon-reload' to update systemd\n# units generated from this file.\n#\nUUID=03e702b4-e165-4a39-88c9-9e210cd00434 / ext4 defaults 1 1\nUUID=bf12ce95-ce4b-4475-9f91-a74fc4add7f3 /opt/test xfs defaults 0 0", "stdout_lines": ["", "#", "# /etc/fstab", "# Created by anaconda on Sat Oct 31 08:17:58 2020", "#", "# Accessible filesystems, by reference, are maintained under '/dev/disk/'.", "# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.", "#", "# After editing this file, run 'systemctl daemon-reload' to update systemd", "# units generated from this file.", "#", "UUID=03e702b4-e165-4a39-88c9-9e210cd00434 / ext4 defaults 1 1", "UUID=bf12ce95-ce4b-4475-9f91-a74fc4add7f3 /opt/test xfs defaults 0 0"]} TASK [Read the /etc/crypttab file] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/crypttab"], "delta": "0:00:00.002436", "end": "2020-10-31 11:53:21.692152", "rc": 0, "start": "2020-10-31 11:53:21.689716", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Verify the volumes listed in storage_pools were correctly managed] ******* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:32 TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:39 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_pool": null}, "changed": false} TASK [Verify the volumes with no pool were correctly managed] ****************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:46 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": true, "_storage_volume_tests": ["mount", "fstab", "fs", "device", "encryption", "md", "size"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:10 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Get expected mount device based on device type] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/vda"}, "changed": false} TASK [Set some facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [{"block_available": 2592358, "block_size": 4096, "block_total": 2618880, "block_used": 26522, "device": "/dev/vda", "fstype": "xfs", "inode_available": 5242877, "inode_total": 5242880, "inode_used": 3, "mount": "/opt/test", "options": "rw,seclabel,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota", "size_available": 10618298368, "size_total": 10726932480, "uuid": "bf12ce95-ce4b-4475-9f91-a74fc4add7f3"}], "storage_test_mount_expected_match_count": "1", "storage_test_mount_point_matches": [{"block_available": 2592358, "block_size": 4096, "block_total": 2618880, "block_used": 26522, "device": "/dev/vda", "fstype": "xfs", "inode_available": 5242877, "inode_total": 5242880, "inode_used": 3, "mount": "/opt/test", "options": "rw,seclabel,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota", "size_available": 10618298368, "size_total": 10726932480, "uuid": "bf12ce95-ce4b-4475-9f91-a74fc4add7f3"}], "storage_test_swap_expected_matches": "0"}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:22 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:31 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:39 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [command] ***************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Gather swap info] ******************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:52 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify swap status] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:57 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Unset facts] ************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:67 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null, "storage_test_swap_expected_matches": null, "storage_test_swaps": null, "storage_test_sys_node": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": "1", "storage_test_fstab_expected_mount_point_matches": "1", "storage_test_fstab_id_matches": ["UUID=bf12ce95-ce4b-4475-9f91-a74fc4add7f3 "], "storage_test_fstab_mount_point_matches": [" /opt/test "]}, "changed": false} TASK [Verify that the device identifier appears in /etc/fstab] ***************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:17 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": null, "storage_test_fstab_expected_mount_point_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [Verify fs type] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify fs label] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [See whether the device node is present] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "stat": {"atime": 1604145197.4003203, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "ctime": 1604145197.4003203, "dev": 5, "device_type": 64512, "executable": false, "exists": true, "gid": 6, "gr_name": "disk", "inode": 1829, "isblk": true, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mimetype": "inode/blockdevice", "mode": "0660", "mtime": 1604145197.4003203, "nlink": 1, "path": "/dev/vda", "pw_name": "root", "readable": true, "rgrp": true, "roth": false, "rusr": true, "size": 0, "uid": 0, "version": null, "wgrp": true, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}} TASK [Verify the presence/absence of the device node] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "disk"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:28 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:33 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Stat the LUKS device, if encrypted] ************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:3 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Collect LUKS info for this volume] *************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:10 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the presence/absence of the LUKS device node] ********************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:16 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify that the raw device is the same as the device if not encrypted] *** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:25 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about the LUKS volume if encrypted] **************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the LUKS volume's device type if encrypted] *********************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS version] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:42 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS key size] ***************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS cipher] ******************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:54 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:60 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": [], "_storage_test_expected_crypttab_entries": "0", "_storage_test_expected_crypttab_key_file": "-"}, "changed": false} TASK [Check for /etc/crypttab entry] ******************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:65 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Validate the format of the crypttab entry] ******************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:70 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check backing device of crypttab entry] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:76 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check key file of crypttab entry] **************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:82 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:88 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null, "_storage_test_expected_crypttab_entries": null, "_storage_test_expected_crypttab_key_file": null}, "changed": false} TASK [get information about RAID] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:7 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:13 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:17 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID active devices count] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:25 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID spare devices count] ****************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID metadata version] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [parse the actual size of the volume] ************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:3 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [parse the requested size of the volume] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:9 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:15 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_actual_size": { "changed": false, "skip_reason": "Conditional result was False", "skipped": true } } TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_requested_size": { "changed": false, "skip_reason": "Conditional result was False", "skipped": true } } TASK [assert] ****************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Clean up facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:16 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:56 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_blkinfo": null, "storage_test_crypttab": null, "storage_test_fstab": null, "storage_test_volume": null}, "changed": false} TASK [Change the disk device file system type to "ext4"] *********************** task path: /tmp/tmp7ksfxpzz/tests/tests_change_disk_fs.yml:31 TASK [linux-system-roles.storage : Set version specific variables] ************* task path: /tmp/tmp7ksfxpzz/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-crypto", "libblockdev-dm", "libblockdev-lvm", "libblockdev-mdraid", "libblockdev-swap"]}, "ansible_included_var_files": ["/tmp/tmp7ksfxpzz/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.storage : define an empty list of pools to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : define an empty list of volumes to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : include the appropriate provider tasks] ***** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:22 included: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [linux-system-roles.storage : get a list of rpm packages installed on host machine] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : make sure blivet is available] ************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: python3-blivet", "Installed: libblockdev-crypto", "Installed: libblockdev-dm", "Installed: libblockdev-lvm", "Installed: libblockdev-mdraid", "Installed: libblockdev-swap"]} TASK [linux-system-roles.storage : initialize internal facts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools": [], "_storage_vol_defaults": [], "_storage_vol_pools": [], "_storage_vols_no_defaults": [], "_storage_vols_no_defaults_by_pool": {}, "_storage_vols_w_defaults": [], "_storage_volumes": []}, "changed": false} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [1/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:28 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [2/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:36 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [3/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:44 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [4/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:52 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [5/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:61 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [6/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:72 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'mount_point': u'/opt/test', u'fs_type': u'ext4', u'type': u'disk', u'disks': [u'vda'], u'name': u'test1'}) => {"ansible_facts": {"_storage_volumes": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "ext4", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test", "name": "test1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "disk"}]}, "ansible_loop_var": "volume", "changed": false, "volume": {"disks": ["vda"], "fs_type": "ext4", "mount_point": "/opt/test", "name": "test1", "type": "disk"}} TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools": [] } TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "ext4", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test", "name": "test1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "disk" } ] } TASK [linux-system-roles.storage : get required packages] ********************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": ["e2fsprogs"], "pools": [], "volumes": []} TASK [linux-system-roles.storage : make sure required packages are installed] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: e2fsprogs"]} TASK [linux-system-roles.storage : manage the pools and volumes to match the specified state] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:104 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [{"action": "destroy format", "device": "/dev/vda", "fs_type": "xfs"}, {"action": "create format", "device": "/dev/vda", "fs_type": "ext4"}], "changed": true, "crypts": [], "leaves": ["/dev/sda1", "/dev/sr0", "/dev/vda", "/dev/vdb", "/dev/vdc"], "mounts": [{"fstype": "xfs", "path": "/opt/test", "src": "UUID=bf12ce95-ce4b-4475-9f91-a74fc4add7f3", "state": "absent"}, {"dump": 0, "fstype": "ext4", "opts": "defaults", "passno": 0, "path": "/opt/test", "src": "UUID=6b1dfa50-63fb-4568-b36c-67a03b9b3797", "state": "mounted"}], "packages": ["e2fsprogs"], "pools": [], "volumes": [{"_device": "/dev/vda", "_kernel_device": "/dev/vda", "_mount_id": "UUID=6b1dfa50-63fb-4568-b36c-67a03b9b3797", "_raw_device": "/dev/vda", "_raw_kernel_device": "/dev/vda", "disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "ext4", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test", "name": "test1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "disk"}]} TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:114 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "blivet_output": { "actions": [ { "action": "destroy format", "device": "/dev/vda", "fs_type": "xfs" }, { "action": "create format", "device": "/dev/vda", "fs_type": "ext4" } ], "changed": true, "crypts": [], "failed": false, "leaves": [ "/dev/sda1", "/dev/sr0", "/dev/vda", "/dev/vdb", "/dev/vdc" ], "mounts": [ { "fstype": "xfs", "path": "/opt/test", "src": "UUID=bf12ce95-ce4b-4475-9f91-a74fc4add7f3", "state": "absent" }, { "dump": 0, "fstype": "ext4", "opts": "defaults", "passno": 0, "path": "/opt/test", "src": "UUID=6b1dfa50-63fb-4568-b36c-67a03b9b3797", "state": "mounted" } ], "packages": [ "e2fsprogs" ], "pools": [], "volumes": [ { "_device": "/dev/vda", "_kernel_device": "/dev/vda", "_mount_id": "UUID=6b1dfa50-63fb-4568-b36c-67a03b9b3797", "_raw_device": "/dev/vda", "_raw_kernel_device": "/dev/vda", "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "ext4", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test", "name": "test1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "disk" } ] } } TASK [linux-system-roles.storage : set the list of pools for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:117 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : set the list of volumes for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:121 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": [{"_device": "/dev/vda", "_kernel_device": "/dev/vda", "_mount_id": "UUID=6b1dfa50-63fb-4568-b36c-67a03b9b3797", "_raw_device": "/dev/vda", "_raw_kernel_device": "/dev/vda", "disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "ext4", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test", "name": "test1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "disk"}]}, "changed": false} TASK [linux-system-roles.storage : remove obsolete mounts] ********************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:137 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'src': u'UUID=bf12ce95-ce4b-4475-9f91-a74fc4add7f3', u'state': u'absent', u'fstype': u'xfs', u'path': u'/opt/test'}) => {"ansible_loop_var": "mount_info", "changed": true, "dump": "0", "fstab": "/etc/fstab", "fstype": "xfs", "mount_info": {"fstype": "xfs", "path": "/opt/test", "src": "UUID=bf12ce95-ce4b-4475-9f91-a74fc4add7f3", "state": "absent"}, "name": "/opt/test", "opts": "defaults", "passno": "0", "src": "UUID=bf12ce95-ce4b-4475-9f91-a74fc4add7f3"} TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:148 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [linux-system-roles.storage : set up new/current mounts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:153 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'src': u'UUID=6b1dfa50-63fb-4568-b36c-67a03b9b3797', u'state': u'mounted', u'dump': 0, u'path': u'/opt/test', u'passno': 0, u'opts': u'defaults', u'fstype': u'ext4'}) => {"ansible_loop_var": "mount_info", "changed": true, "dump": "0", "fstab": "/etc/fstab", "fstype": "ext4", "mount_info": {"dump": 0, "fstype": "ext4", "opts": "defaults", "passno": 0, "path": "/opt/test", "src": "UUID=6b1dfa50-63fb-4568-b36c-67a03b9b3797", "state": "mounted"}, "name": "/opt/test", "opts": "defaults", "passno": "0", "src": "UUID=6b1dfa50-63fb-4568-b36c-67a03b9b3797"} TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:164 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [linux-system-roles.storage : Manage /etc/crypttab to account for changes we just made] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:172 TASK [linux-system-roles.storage : Update facts] ******************************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:187 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_change_disk_fs.yml:42 included: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Print out pool information] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:1 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {} TASK [Print out volume information] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:6 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes_list": [ { "_device": "/dev/vda", "_kernel_device": "/dev/vda", "_mount_id": "UUID=6b1dfa50-63fb-4568-b36c-67a03b9b3797", "_raw_device": "/dev/vda", "_raw_kernel_device": "/dev/vda", "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "ext4", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test", "name": "test1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "disk" } ] } TASK [Collect info about the volumes.] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "info": {"/dev/sda": {"fstype": "", "label": "", "name": "/dev/sda", "size": "4G", "type": "disk", "uuid": ""}, "/dev/sda1": {"fstype": "ext4", "label": "", "name": "/dev/sda1", "size": "4G", "type": "partition", "uuid": "03e702b4-e165-4a39-88c9-9e210cd00434"}, "/dev/sr0": {"fstype": "iso9660", "label": "cidata", "name": "/dev/sr0", "size": "364K", "type": "rom", "uuid": "2020-10-31-11-51-50-00"}, "/dev/vda": {"fstype": "ext4", "label": "", "name": "/dev/vda", "size": "10G", "type": "disk", "uuid": "6b1dfa50-63fb-4568-b36c-67a03b9b3797"}, "/dev/vdb": {"fstype": "", "label": "", "name": "/dev/vdb", "size": "10G", "type": "disk", "uuid": ""}, "/dev/vdc": {"fstype": "", "label": "", "name": "/dev/vdc", "size": "10G", "type": "disk", "uuid": ""}}} TASK [Read the /etc/fstab file for volume existence] *************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:19 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/fstab"], "delta": "0:00:00.002587", "end": "2020-10-31 11:53:38.732905", "rc": 0, "start": "2020-10-31 11:53:38.730318", "stderr": "", "stderr_lines": [], "stdout": "\n#\n# /etc/fstab\n# Created by anaconda on Sat Oct 31 08:17:58 2020\n#\n# Accessible filesystems, by reference, are maintained under '/dev/disk/'.\n# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.\n#\n# After editing this file, run 'systemctl daemon-reload' to update systemd\n# units generated from this file.\n#\nUUID=03e702b4-e165-4a39-88c9-9e210cd00434 / ext4 defaults 1 1\nUUID=6b1dfa50-63fb-4568-b36c-67a03b9b3797 /opt/test ext4 defaults 0 0", "stdout_lines": ["", "#", "# /etc/fstab", "# Created by anaconda on Sat Oct 31 08:17:58 2020", "#", "# Accessible filesystems, by reference, are maintained under '/dev/disk/'.", "# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.", "#", "# After editing this file, run 'systemctl daemon-reload' to update systemd", "# units generated from this file.", "#", "UUID=03e702b4-e165-4a39-88c9-9e210cd00434 / ext4 defaults 1 1", "UUID=6b1dfa50-63fb-4568-b36c-67a03b9b3797 /opt/test ext4 defaults 0 0"]} TASK [Read the /etc/crypttab file] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/crypttab"], "delta": "0:00:00.002442", "end": "2020-10-31 11:53:39.061916", "rc": 0, "start": "2020-10-31 11:53:39.059474", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Verify the volumes listed in storage_pools were correctly managed] ******* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:32 TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:39 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_pool": null}, "changed": false} TASK [Verify the volumes with no pool were correctly managed] ****************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:46 [WARNING]: The loop variable 'storage_test_volume' is already in use. You should set the `loop_var` value in the `loop_control` option for the task to something else to avoid variable collisions and unexpected behavior. included: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": true, "_storage_volume_tests": ["mount", "fstab", "fs", "device", "encryption", "md", "size"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:10 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Get expected mount device based on device type] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/vda"}, "changed": false} TASK [Set some facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [{"block_available": 2419519, "block_size": 4096, "block_total": 2563909, "block_used": 144390, "device": "/dev/vda", "fstype": "ext4", "inode_available": 655349, "inode_total": 655360, "inode_used": 11, "mount": "/opt/test", "options": "rw,seclabel,relatime", "size_available": 9910349824, "size_total": 10501771264, "uuid": "6b1dfa50-63fb-4568-b36c-67a03b9b3797"}], "storage_test_mount_expected_match_count": "1", "storage_test_mount_point_matches": [{"block_available": 2419519, "block_size": 4096, "block_total": 2563909, "block_used": 144390, "device": "/dev/vda", "fstype": "ext4", "inode_available": 655349, "inode_total": 655360, "inode_used": 11, "mount": "/opt/test", "options": "rw,seclabel,relatime", "size_available": 9910349824, "size_total": 10501771264, "uuid": "6b1dfa50-63fb-4568-b36c-67a03b9b3797"}], "storage_test_swap_expected_matches": "0"}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:22 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:31 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:39 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [command] ***************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Gather swap info] ******************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:52 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify swap status] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:57 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Unset facts] ************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:67 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null, "storage_test_swap_expected_matches": null, "storage_test_swaps": null, "storage_test_sys_node": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": "1", "storage_test_fstab_expected_mount_point_matches": "1", "storage_test_fstab_id_matches": ["UUID=6b1dfa50-63fb-4568-b36c-67a03b9b3797 "], "storage_test_fstab_mount_point_matches": [" /opt/test "]}, "changed": false} TASK [Verify that the device identifier appears in /etc/fstab] ***************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:17 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": null, "storage_test_fstab_expected_mount_point_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [Verify fs type] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify fs label] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [See whether the device node is present] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "stat": {"atime": 1604145215.1833203, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "ctime": 1604145215.1833203, "dev": 5, "device_type": 64512, "executable": false, "exists": true, "gid": 6, "gr_name": "disk", "inode": 1829, "isblk": true, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mimetype": "inode/blockdevice", "mode": "0660", "mtime": 1604145215.1833203, "nlink": 1, "path": "/dev/vda", "pw_name": "root", "readable": true, "rgrp": true, "roth": false, "rusr": true, "size": 0, "uid": 0, "version": null, "wgrp": true, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}} TASK [Verify the presence/absence of the device node] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "disk"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:28 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:33 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Stat the LUKS device, if encrypted] ************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:3 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Collect LUKS info for this volume] *************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:10 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the presence/absence of the LUKS device node] ********************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:16 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify that the raw device is the same as the device if not encrypted] *** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:25 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about the LUKS volume if encrypted] **************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the LUKS volume's device type if encrypted] *********************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS version] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:42 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS key size] ***************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS cipher] ******************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:54 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:60 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": [], "_storage_test_expected_crypttab_entries": "0", "_storage_test_expected_crypttab_key_file": "-"}, "changed": false} TASK [Check for /etc/crypttab entry] ******************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:65 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Validate the format of the crypttab entry] ******************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:70 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check backing device of crypttab entry] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:76 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check key file of crypttab entry] **************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:82 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:88 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null, "_storage_test_expected_crypttab_entries": null, "_storage_test_expected_crypttab_key_file": null}, "changed": false} TASK [get information about RAID] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:7 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:13 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:17 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID active devices count] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:25 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID spare devices count] ****************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID metadata version] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [parse the actual size of the volume] ************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:3 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [parse the requested size of the volume] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:9 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:15 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_actual_size": { "changed": false, "skip_reason": "Conditional result was False", "skipped": true } } TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_requested_size": { "changed": false, "skip_reason": "Conditional result was False", "skipped": true } } TASK [assert] ****************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Clean up facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:16 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:56 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_blkinfo": null, "storage_test_crypttab": null, "storage_test_fstab": null, "storage_test_volume": null}, "changed": false} TASK [Repeat the previous invocation to verify idempotence] ******************** task path: /tmp/tmp7ksfxpzz/tests/tests_change_disk_fs.yml:44 TASK [linux-system-roles.storage : Set version specific variables] ************* task path: /tmp/tmp7ksfxpzz/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-crypto", "libblockdev-dm", "libblockdev-lvm", "libblockdev-mdraid", "libblockdev-swap"]}, "ansible_included_var_files": ["/tmp/tmp7ksfxpzz/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.storage : define an empty list of pools to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : define an empty list of volumes to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : include the appropriate provider tasks] ***** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:22 included: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [linux-system-roles.storage : get a list of rpm packages installed on host machine] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : make sure blivet is available] ************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: python3-blivet", "Installed: libblockdev-crypto", "Installed: libblockdev-dm", "Installed: libblockdev-lvm", "Installed: libblockdev-mdraid", "Installed: libblockdev-swap"]} TASK [linux-system-roles.storage : initialize internal facts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools": [], "_storage_vol_defaults": [], "_storage_vol_pools": [], "_storage_vols_no_defaults": [], "_storage_vols_no_defaults_by_pool": {}, "_storage_vols_w_defaults": [], "_storage_volumes": []}, "changed": false} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [1/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:28 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [2/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:36 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [3/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:44 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [4/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:52 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [5/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:61 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [6/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:72 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'mount_point': u'/opt/test', u'fs_type': u'ext4', u'type': u'disk', u'disks': [u'vda'], u'name': u'test1'}) => {"ansible_facts": {"_storage_volumes": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "ext4", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test", "name": "test1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "disk"}]}, "ansible_loop_var": "volume", "changed": false, "volume": {"disks": ["vda"], "fs_type": "ext4", "mount_point": "/opt/test", "name": "test1", "type": "disk"}} TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools": [] } TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "ext4", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test", "name": "test1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "disk" } ] } TASK [linux-system-roles.storage : get required packages] ********************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": ["e2fsprogs"], "pools": [], "volumes": []} TASK [linux-system-roles.storage : make sure required packages are installed] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: e2fsprogs"]} TASK [linux-system-roles.storage : manage the pools and volumes to match the specified state] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:104 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": ["/dev/sda1", "/dev/sr0", "/dev/vda", "/dev/vdb", "/dev/vdc"], "mounts": [{"dump": 0, "fstype": "ext4", "opts": "defaults", "passno": 0, "path": "/opt/test", "src": "UUID=6b1dfa50-63fb-4568-b36c-67a03b9b3797", "state": "mounted"}], "packages": ["e2fsprogs"], "pools": [], "volumes": [{"_device": "/dev/vda", "_kernel_device": "/dev/vda", "_mount_id": "UUID=6b1dfa50-63fb-4568-b36c-67a03b9b3797", "_raw_device": "/dev/vda", "_raw_kernel_device": "/dev/vda", "disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "ext4", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test", "name": "test1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "disk"}]} TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:114 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "blivet_output": { "actions": [], "changed": false, "crypts": [], "failed": false, "leaves": [ "/dev/sda1", "/dev/sr0", "/dev/vda", "/dev/vdb", "/dev/vdc" ], "mounts": [ { "dump": 0, "fstype": "ext4", "opts": "defaults", "passno": 0, "path": "/opt/test", "src": "UUID=6b1dfa50-63fb-4568-b36c-67a03b9b3797", "state": "mounted" } ], "packages": [ "e2fsprogs" ], "pools": [], "volumes": [ { "_device": "/dev/vda", "_kernel_device": "/dev/vda", "_mount_id": "UUID=6b1dfa50-63fb-4568-b36c-67a03b9b3797", "_raw_device": "/dev/vda", "_raw_kernel_device": "/dev/vda", "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "ext4", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test", "name": "test1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "disk" } ] } } TASK [linux-system-roles.storage : set the list of pools for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:117 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : set the list of volumes for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:121 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": [{"_device": "/dev/vda", "_kernel_device": "/dev/vda", "_mount_id": "UUID=6b1dfa50-63fb-4568-b36c-67a03b9b3797", "_raw_device": "/dev/vda", "_raw_kernel_device": "/dev/vda", "disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "ext4", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test", "name": "test1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "disk"}]}, "changed": false} TASK [linux-system-roles.storage : remove obsolete mounts] ********************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:137 TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:148 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [linux-system-roles.storage : set up new/current mounts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:153 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'src': u'UUID=6b1dfa50-63fb-4568-b36c-67a03b9b3797', u'state': u'mounted', u'dump': 0, u'path': u'/opt/test', u'passno': 0, u'opts': u'defaults', u'fstype': u'ext4'}) => {"ansible_loop_var": "mount_info", "changed": false, "dump": "0", "fstab": "/etc/fstab", "fstype": "ext4", "mount_info": {"dump": 0, "fstype": "ext4", "opts": "defaults", "passno": 0, "path": "/opt/test", "src": "UUID=6b1dfa50-63fb-4568-b36c-67a03b9b3797", "state": "mounted"}, "name": "/opt/test", "opts": "defaults", "passno": "0", "src": "UUID=6b1dfa50-63fb-4568-b36c-67a03b9b3797"} TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:164 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [linux-system-roles.storage : Manage /etc/crypttab to account for changes we just made] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:172 TASK [linux-system-roles.storage : Update facts] ******************************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:187 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_change_disk_fs.yml:55 included: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Print out pool information] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:1 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {} TASK [Print out volume information] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:6 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes_list": [ { "_device": "/dev/vda", "_kernel_device": "/dev/vda", "_mount_id": "UUID=6b1dfa50-63fb-4568-b36c-67a03b9b3797", "_raw_device": "/dev/vda", "_raw_kernel_device": "/dev/vda", "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "ext4", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test", "name": "test1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "disk" } ] } TASK [Collect info about the volumes.] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "info": {"/dev/sda": {"fstype": "", "label": "", "name": "/dev/sda", "size": "4G", "type": "disk", "uuid": ""}, "/dev/sda1": {"fstype": "ext4", "label": "", "name": "/dev/sda1", "size": "4G", "type": "partition", "uuid": "03e702b4-e165-4a39-88c9-9e210cd00434"}, "/dev/sr0": {"fstype": "iso9660", "label": "cidata", "name": "/dev/sr0", "size": "364K", "type": "rom", "uuid": "2020-10-31-11-51-50-00"}, "/dev/vda": {"fstype": "ext4", "label": "", "name": "/dev/vda", "size": "10G", "type": "disk", "uuid": "6b1dfa50-63fb-4568-b36c-67a03b9b3797"}, "/dev/vdb": {"fstype": "", "label": "", "name": "/dev/vdb", "size": "10G", "type": "disk", "uuid": ""}, "/dev/vdc": {"fstype": "", "label": "", "name": "/dev/vdc", "size": "10G", "type": "disk", "uuid": ""}}} TASK [Read the /etc/fstab file for volume existence] *************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:19 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/fstab"], "delta": "0:00:00.002665", "end": "2020-10-31 11:53:55.161956", "rc": 0, "start": "2020-10-31 11:53:55.159291", "stderr": "", "stderr_lines": [], "stdout": "\n#\n# /etc/fstab\n# Created by anaconda on Sat Oct 31 08:17:58 2020\n#\n# Accessible filesystems, by reference, are maintained under '/dev/disk/'.\n# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.\n#\n# After editing this file, run 'systemctl daemon-reload' to update systemd\n# units generated from this file.\n#\nUUID=03e702b4-e165-4a39-88c9-9e210cd00434 / ext4 defaults 1 1\nUUID=6b1dfa50-63fb-4568-b36c-67a03b9b3797 /opt/test ext4 defaults 0 0", "stdout_lines": ["", "#", "# /etc/fstab", "# Created by anaconda on Sat Oct 31 08:17:58 2020", "#", "# Accessible filesystems, by reference, are maintained under '/dev/disk/'.", "# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.", "#", "# After editing this file, run 'systemctl daemon-reload' to update systemd", "# units generated from this file.", "#", "UUID=03e702b4-e165-4a39-88c9-9e210cd00434 / ext4 defaults 1 1", "UUID=6b1dfa50-63fb-4568-b36c-67a03b9b3797 /opt/test ext4 defaults 0 0"]} TASK [Read the /etc/crypttab file] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/crypttab"], "delta": "0:00:00.002400", "end": "2020-10-31 11:53:55.490939", "rc": 0, "start": "2020-10-31 11:53:55.488539", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Verify the volumes listed in storage_pools were correctly managed] ******* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:32 TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:39 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_pool": null}, "changed": false} TASK [Verify the volumes with no pool were correctly managed] ****************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:46 [WARNING]: The loop variable 'storage_test_volume' is already in use. You should set the `loop_var` value in the `loop_control` option for the task to something else to avoid variable collisions and unexpected behavior. included: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": true, "_storage_volume_tests": ["mount", "fstab", "fs", "device", "encryption", "md", "size"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:10 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Get expected mount device based on device type] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/vda"}, "changed": false} TASK [Set some facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [{"block_available": 2419519, "block_size": 4096, "block_total": 2563909, "block_used": 144390, "device": "/dev/vda", "fstype": "ext4", "inode_available": 655349, "inode_total": 655360, "inode_used": 11, "mount": "/opt/test", "options": "rw,seclabel,relatime", "size_available": 9910349824, "size_total": 10501771264, "uuid": "6b1dfa50-63fb-4568-b36c-67a03b9b3797"}], "storage_test_mount_expected_match_count": "1", "storage_test_mount_point_matches": [{"block_available": 2419519, "block_size": 4096, "block_total": 2563909, "block_used": 144390, "device": "/dev/vda", "fstype": "ext4", "inode_available": 655349, "inode_total": 655360, "inode_used": 11, "mount": "/opt/test", "options": "rw,seclabel,relatime", "size_available": 9910349824, "size_total": 10501771264, "uuid": "6b1dfa50-63fb-4568-b36c-67a03b9b3797"}], "storage_test_swap_expected_matches": "0"}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:22 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:31 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:39 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [command] ***************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Gather swap info] ******************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:52 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify swap status] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:57 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Unset facts] ************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:67 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null, "storage_test_swap_expected_matches": null, "storage_test_swaps": null, "storage_test_sys_node": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": "1", "storage_test_fstab_expected_mount_point_matches": "1", "storage_test_fstab_id_matches": ["UUID=6b1dfa50-63fb-4568-b36c-67a03b9b3797 "], "storage_test_fstab_mount_point_matches": [" /opt/test "]}, "changed": false} TASK [Verify that the device identifier appears in /etc/fstab] ***************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:17 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": null, "storage_test_fstab_expected_mount_point_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [Verify fs type] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify fs label] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [See whether the device node is present] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "stat": {"atime": 1604145215.1833203, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "ctime": 1604145215.1833203, "dev": 5, "device_type": 64512, "executable": false, "exists": true, "gid": 6, "gr_name": "disk", "inode": 1829, "isblk": true, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mimetype": "inode/blockdevice", "mode": "0660", "mtime": 1604145215.1833203, "nlink": 1, "path": "/dev/vda", "pw_name": "root", "readable": true, "rgrp": true, "roth": false, "rusr": true, "size": 0, "uid": 0, "version": null, "wgrp": true, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}} TASK [Verify the presence/absence of the device node] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "disk"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:28 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:33 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Stat the LUKS device, if encrypted] ************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:3 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Collect LUKS info for this volume] *************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:10 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the presence/absence of the LUKS device node] ********************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:16 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify that the raw device is the same as the device if not encrypted] *** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:25 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about the LUKS volume if encrypted] **************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the LUKS volume's device type if encrypted] *********************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS version] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:42 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS key size] ***************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS cipher] ******************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:54 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:60 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": [], "_storage_test_expected_crypttab_entries": "0", "_storage_test_expected_crypttab_key_file": "-"}, "changed": false} TASK [Check for /etc/crypttab entry] ******************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:65 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Validate the format of the crypttab entry] ******************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:70 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check backing device of crypttab entry] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:76 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check key file of crypttab entry] **************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:82 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:88 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null, "_storage_test_expected_crypttab_entries": null, "_storage_test_expected_crypttab_key_file": null}, "changed": false} TASK [get information about RAID] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:7 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:13 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:17 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID active devices count] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:25 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID spare devices count] ****************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID metadata version] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [parse the actual size of the volume] ************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:3 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [parse the requested size of the volume] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:9 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:15 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_actual_size": { "changed": false, "skip_reason": "Conditional result was False", "skipped": true } } TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_requested_size": { "changed": false, "skip_reason": "Conditional result was False", "skipped": true } } TASK [assert] ****************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Clean up facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:16 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:56 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_blkinfo": null, "storage_test_crypttab": null, "storage_test_fstab": null, "storage_test_volume": null}, "changed": false} TASK [Clean up] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_change_disk_fs.yml:57 TASK [linux-system-roles.storage : Set version specific variables] ************* task path: /tmp/tmp7ksfxpzz/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-crypto", "libblockdev-dm", "libblockdev-lvm", "libblockdev-mdraid", "libblockdev-swap"]}, "ansible_included_var_files": ["/tmp/tmp7ksfxpzz/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.storage : define an empty list of pools to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : define an empty list of volumes to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : include the appropriate provider tasks] ***** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:22 included: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [linux-system-roles.storage : get a list of rpm packages installed on host machine] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : make sure blivet is available] ************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: python3-blivet", "Installed: libblockdev-crypto", "Installed: libblockdev-dm", "Installed: libblockdev-lvm", "Installed: libblockdev-mdraid", "Installed: libblockdev-swap"]} TASK [linux-system-roles.storage : initialize internal facts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools": [], "_storage_vol_defaults": [], "_storage_vol_pools": [], "_storage_vols_no_defaults": [], "_storage_vols_no_defaults_by_pool": {}, "_storage_vols_w_defaults": [], "_storage_volumes": []}, "changed": false} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [1/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:28 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [2/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:36 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [3/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:44 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [4/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:52 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [5/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:61 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [6/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:72 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'state': u'absent', u'mount_point': u'/opt/test', u'type': u'disk', u'disks': [u'vda'], u'name': u'test1'}) => {"ansible_facts": {"_storage_volumes": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test", "name": "test1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "absent", "type": "disk"}]}, "ansible_loop_var": "volume", "changed": false, "volume": {"disks": ["vda"], "mount_point": "/opt/test", "name": "test1", "state": "absent", "type": "disk"}} TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools": [] } TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test", "name": "test1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "absent", "type": "disk" } ] } TASK [linux-system-roles.storage : get required packages] ********************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": []} TASK [linux-system-roles.storage : make sure required packages are installed] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [linux-system-roles.storage : manage the pools and volumes to match the specified state] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:104 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [{"action": "destroy format", "device": "/dev/vda", "fs_type": "ext4"}], "changed": true, "crypts": [], "leaves": ["/dev/sda1", "/dev/sr0", "/dev/vda", "/dev/vdb", "/dev/vdc"], "mounts": [{"fstype": "ext4", "path": "/opt/test", "src": "UUID=6b1dfa50-63fb-4568-b36c-67a03b9b3797", "state": "absent"}], "packages": ["e2fsprogs"], "pools": [], "volumes": [{"_device": "/dev/vda", "_mount_id": "UUID=6b1dfa50-63fb-4568-b36c-67a03b9b3797", "_raw_device": "/dev/vda", "disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test", "name": "test1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "absent", "type": "disk"}]} TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:114 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "blivet_output": { "actions": [ { "action": "destroy format", "device": "/dev/vda", "fs_type": "ext4" } ], "changed": true, "crypts": [], "failed": false, "leaves": [ "/dev/sda1", "/dev/sr0", "/dev/vda", "/dev/vdb", "/dev/vdc" ], "mounts": [ { "fstype": "ext4", "path": "/opt/test", "src": "UUID=6b1dfa50-63fb-4568-b36c-67a03b9b3797", "state": "absent" } ], "packages": [ "e2fsprogs" ], "pools": [], "volumes": [ { "_device": "/dev/vda", "_mount_id": "UUID=6b1dfa50-63fb-4568-b36c-67a03b9b3797", "_raw_device": "/dev/vda", "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test", "name": "test1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "absent", "type": "disk" } ] } } TASK [linux-system-roles.storage : set the list of pools for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:117 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : set the list of volumes for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:121 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": [{"_device": "/dev/vda", "_mount_id": "UUID=6b1dfa50-63fb-4568-b36c-67a03b9b3797", "_raw_device": "/dev/vda", "disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test", "name": "test1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "absent", "type": "disk"}]}, "changed": false} TASK [linux-system-roles.storage : remove obsolete mounts] ********************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:137 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'src': u'UUID=6b1dfa50-63fb-4568-b36c-67a03b9b3797', u'state': u'absent', u'fstype': u'ext4', u'path': u'/opt/test'}) => {"ansible_loop_var": "mount_info", "changed": true, "dump": "0", "fstab": "/etc/fstab", "fstype": "ext4", "mount_info": {"fstype": "ext4", "path": "/opt/test", "src": "UUID=6b1dfa50-63fb-4568-b36c-67a03b9b3797", "state": "absent"}, "name": "/opt/test", "opts": "defaults", "passno": "0", "src": "UUID=6b1dfa50-63fb-4568-b36c-67a03b9b3797"} TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:148 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [linux-system-roles.storage : set up new/current mounts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:153 TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:164 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [linux-system-roles.storage : Manage /etc/crypttab to account for changes we just made] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:172 TASK [linux-system-roles.storage : Update facts] ******************************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:187 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_change_disk_fs.yml:68 included: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Print out pool information] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:1 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {} TASK [Print out volume information] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:6 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes_list": [ { "_device": "/dev/vda", "_mount_id": "UUID=6b1dfa50-63fb-4568-b36c-67a03b9b3797", "_raw_device": "/dev/vda", "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test", "name": "test1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "absent", "type": "disk" } ] } TASK [Collect info about the volumes.] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "info": {"/dev/sda": {"fstype": "", "label": "", "name": "/dev/sda", "size": "4G", "type": "disk", "uuid": ""}, "/dev/sda1": {"fstype": "ext4", "label": "", "name": "/dev/sda1", "size": "4G", "type": "partition", "uuid": "03e702b4-e165-4a39-88c9-9e210cd00434"}, "/dev/sr0": {"fstype": "iso9660", "label": "cidata", "name": "/dev/sr0", "size": "364K", "type": "rom", "uuid": "2020-10-31-11-51-50-00"}, "/dev/vda": {"fstype": "", "label": "", "name": "/dev/vda", "size": "10G", "type": "disk", "uuid": ""}, "/dev/vdb": {"fstype": "", "label": "", "name": "/dev/vdb", "size": "10G", "type": "disk", "uuid": ""}, "/dev/vdc": {"fstype": "", "label": "", "name": "/dev/vdc", "size": "10G", "type": "disk", "uuid": ""}}} TASK [Read the /etc/fstab file for volume existence] *************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:19 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/fstab"], "delta": "0:00:00.002465", "end": "2020-10-31 11:54:11.592458", "rc": 0, "start": "2020-10-31 11:54:11.589993", "stderr": "", "stderr_lines": [], "stdout": "\n#\n# /etc/fstab\n# Created by anaconda on Sat Oct 31 08:17:58 2020\n#\n# Accessible filesystems, by reference, are maintained under '/dev/disk/'.\n# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.\n#\n# After editing this file, run 'systemctl daemon-reload' to update systemd\n# units generated from this file.\n#\nUUID=03e702b4-e165-4a39-88c9-9e210cd00434 / ext4 defaults 1 1", "stdout_lines": ["", "#", "# /etc/fstab", "# Created by anaconda on Sat Oct 31 08:17:58 2020", "#", "# Accessible filesystems, by reference, are maintained under '/dev/disk/'.", "# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.", "#", "# After editing this file, run 'systemctl daemon-reload' to update systemd", "# units generated from this file.", "#", "UUID=03e702b4-e165-4a39-88c9-9e210cd00434 / ext4 defaults 1 1"]} TASK [Read the /etc/crypttab file] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/crypttab"], "delta": "0:00:00.002636", "end": "2020-10-31 11:54:11.920788", "rc": 0, "start": "2020-10-31 11:54:11.918152", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Verify the volumes listed in storage_pools were correctly managed] ******* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:32 TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:39 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_pool": null}, "changed": false} TASK [Verify the volumes with no pool were correctly managed] ****************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:46 [WARNING]: The loop variable 'storage_test_volume' is already in use. You should set the `loop_var` value in the `loop_control` option for the task to something else to avoid variable collisions and unexpected behavior. included: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": false, "_storage_volume_tests": ["mount", "fstab", "fs", "device", "encryption", "md", "size"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:10 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Get expected mount device based on device type] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/vda"}, "changed": false} TASK [Set some facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [], "storage_test_mount_expected_match_count": "0", "storage_test_mount_point_matches": [], "storage_test_swap_expected_matches": "0"}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:22 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:31 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:39 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [command] ***************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Gather swap info] ******************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:52 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify swap status] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:57 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Unset facts] ************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:67 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null, "storage_test_swap_expected_matches": null, "storage_test_swaps": null, "storage_test_sys_node": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": "0", "storage_test_fstab_expected_mount_point_matches": "0", "storage_test_fstab_id_matches": [], "storage_test_fstab_mount_point_matches": []}, "changed": false} TASK [Verify that the device identifier appears in /etc/fstab] ***************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:10 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:17 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": null, "storage_test_fstab_expected_mount_point_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [Verify fs type] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:4 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify fs label] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:10 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [See whether the device node is present] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "stat": {"atime": 1604145248.4293203, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "ctime": 1604145248.4293203, "dev": 5, "device_type": 64512, "executable": false, "exists": true, "gid": 6, "gr_name": "disk", "inode": 1829, "isblk": true, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mimetype": "inode/blockdevice", "mode": "0660", "mtime": 1604145248.4293203, "nlink": 1, "path": "/dev/vda", "pw_name": "root", "readable": true, "rgrp": true, "roth": false, "rusr": true, "size": 0, "uid": 0, "version": null, "wgrp": true, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}} TASK [Verify the presence/absence of the device node] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:18 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "disk"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:28 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:33 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Stat the LUKS device, if encrypted] ************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:3 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Collect LUKS info for this volume] *************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:10 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the presence/absence of the LUKS device node] ********************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:16 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify that the raw device is the same as the device if not encrypted] *** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:25 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Make sure we got info about the LUKS volume if encrypted] **************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the LUKS volume's device type if encrypted] *********************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS version] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:42 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS key size] ***************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS cipher] ******************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:54 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:60 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": [], "_storage_test_expected_crypttab_entries": "0", "_storage_test_expected_crypttab_key_file": "-"}, "changed": false} TASK [Check for /etc/crypttab entry] ******************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:65 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Validate the format of the crypttab entry] ******************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:70 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check backing device of crypttab entry] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:76 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check key file of crypttab entry] **************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:82 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:88 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null, "_storage_test_expected_crypttab_entries": null, "_storage_test_expected_crypttab_key_file": null}, "changed": false} TASK [get information about RAID] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:7 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:13 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:17 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID active devices count] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:25 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID spare devices count] ****************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID metadata version] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [parse the actual size of the volume] ************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:3 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [parse the requested size of the volume] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:9 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:15 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_actual_size": { "changed": false, "skip_reason": "Conditional result was False", "skipped": true } } TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_requested_size": { "changed": false, "skip_reason": "Conditional result was False", "skipped": true } } TASK [assert] ****************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Clean up facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:16 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:56 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_blkinfo": null, "storage_test_crypttab": null, "storage_test_fstab": null, "storage_test_volume": null}, "changed": false} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 : ok=250 changed=8 unreachable=0 failed=0 skipped=161 rescued=0 ignored=0 + cd /tmp/tmp7ksfxpzz/tests; TEST_SUBJECTS=/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_storage-178-e856157-fedora-31-87qzp9iq/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmp7ksfxpzz/_setup.yml /tmp/tmp7ksfxpzz/tests/tests_change_disk_mount.yml ansible-playbook 2.8.16 config file = /etc/ansible/ansible.cfg configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python2.7/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 2.7.5 (default, Apr 2 2020, 13:16:51) [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)] Using /etc/ansible/ansible.cfg as config file PLAYBOOK: _setup.yml *********************************************************** 1 plays in /tmp/tmp7ksfxpzz/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/_setup.yml:5 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "groups": { "all": [ "/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2" ], "localhost": [ "/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2" ], "subjects": [ "/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmp7ksfxpzz/_setup.yml:6 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 : ok=1 changed=0 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 PLAYBOOK: tests_change_disk_mount.yml ****************************************** 1 plays in /tmp/tmp7ksfxpzz/tests/tests_change_disk_mount.yml PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/tests_change_disk_mount.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] META: ran handlers TASK [include_role : linux-system-roles.storage] ******************************* task path: /tmp/tmp7ksfxpzz/tests/tests_change_disk_mount.yml:10 TASK [linux-system-roles.storage : Set version specific variables] ************* task path: /tmp/tmp7ksfxpzz/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-crypto", "libblockdev-dm", "libblockdev-lvm", "libblockdev-mdraid", "libblockdev-swap"]}, "ansible_included_var_files": ["/tmp/tmp7ksfxpzz/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.storage : define an empty list of pools to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : define an empty list of volumes to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : include the appropriate provider tasks] ***** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:22 included: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [linux-system-roles.storage : get a list of rpm packages installed on host machine] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : make sure blivet is available] ************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:7 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: python3-blivet", "Installed: libblockdev-crypto", "Installed: libblockdev-dm", "Installed: libblockdev-lvm", "Installed: libblockdev-mdraid", "Installed: libblockdev-swap", "Installed: libblockdev-2.24-2.fc31.x86_64", "Installed: libblockdev-btrfs-2.24-2.fc31.x86_64", "Installed: btrfs-progs-5.7-4.fc31.x86_64", "Installed: libblockdev-crypto-2.24-2.fc31.x86_64", "Installed: ndctl-70.1-1.fc31.x86_64", "Installed: gdisk-1.0.5-1.fc31.x86_64", "Installed: ndctl-libs-70.1-1.fc31.x86_64", "Installed: libblockdev-dm-2.24-2.fc31.x86_64", "Installed: compat-readline5-5.2-34.fc31.x86_64", "Installed: dmraid-1.0.0.rc16-43.fc31.x86_64", "Installed: dmraid-events-1.0.0.rc16-43.fc31.x86_64", "Installed: libblockdev-fs-2.24-2.fc31.x86_64", "Installed: mdadm-4.1-5.fc31.x86_64", "Installed: lzo-2.08-16.fc31.x86_64", "Installed: libblockdev-kbd-2.24-2.fc31.x86_64", "Installed: nspr-4.29.0-1.fc31.x86_64", "Installed: libblockdev-loop-2.24-2.fc31.x86_64", "Installed: nss-3.57.0-1.fc31.x86_64", "Installed: libblockdev-lvm-2.24-2.fc31.x86_64", "Installed: lsof-4.93.2-2.fc31.x86_64", "Installed: lvm2-2.03.09-1.fc31.x86_64", "Installed: nss-softokn-3.57.0-1.fc31.x86_64", "Installed: libblockdev-mdraid-2.24-2.fc31.x86_64", "Installed: nss-softokn-freebl-3.57.0-1.fc31.x86_64", "Installed: lvm2-libs-2.03.09-1.fc31.x86_64", "Installed: python3-gobject-base-3.34.0-3.fc31.x86_64", "Installed: libblockdev-mpath-2.24-2.fc31.x86_64", "Installed: nss-sysinit-3.57.0-1.fc31.x86_64", "Installed: device-mapper-event-1.02.171-1.fc31.x86_64", "Installed: nss-util-3.57.0-1.fc31.x86_64", "Installed: libblockdev-nvdimm-2.24-2.fc31.x86_64", "Installed: gobject-introspection-1.62.0-1.fc31.x86_64", "Installed: device-mapper-event-libs-1.02.171-1.fc31.x86_64", "Installed: userspace-rcu-0.11.1-2.fc31.x86_64", "Installed: libblockdev-part-2.24-2.fc31.x86_64", "Installed: volume_key-libs-0.3.12-4.fc31.x86_64", "Installed: libblockdev-swap-2.24-2.fc31.x86_64", "Installed: libblockdev-utils-2.24-2.fc31.x86_64", "Installed: blivet-data-1:3.1.7-2.fc31.noarch", "Installed: device-mapper-multipath-0.8.0-3.fc31.x86_64", "Installed: device-mapper-multipath-libs-0.8.0-3.fc31.x86_64", "Installed: device-mapper-persistent-data-0.8.5-2.fc31.x86_64", "Installed: sgpio-1.2.0.10-24.fc31.x86_64", "Installed: bcache-tools-1.0.8-16.fc31.x86_64", "Installed: python3-blivet-1:3.1.7-2.fc31.noarch", "Installed: daxctl-libs-70.1-1.fc31.x86_64", "Installed: python3-blockdev-2.24-2.fc31.x86_64", "Installed: python3-pyudev-0.21.0-11.fc31.noarch", "Installed: python3-pyparted-1:3.11.2-2.fc31.x86_64", "Installed: libbytesize-2.3-1.fc31.x86_64", "Installed: libaio-0.3.111-6.fc31.x86_64", "Installed: python3-bytesize-2.3-1.fc31.x86_64"]} TASK [linux-system-roles.storage : initialize internal facts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools": [], "_storage_vol_defaults": [], "_storage_vol_pools": [], "_storage_vols_no_defaults": [], "_storage_vols_no_defaults_by_pool": {}, "_storage_vols_w_defaults": [], "_storage_volumes": []}, "changed": false} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [1/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:28 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [2/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:36 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [3/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:44 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [4/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:52 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [5/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:61 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [6/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:72 TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools": [] } TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes": [] } TASK [linux-system-roles.storage : get required packages] ********************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": []} TASK [linux-system-roles.storage : make sure required packages are installed] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [linux-system-roles.storage : manage the pools and volumes to match the specified state] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:104 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": []} TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:114 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "blivet_output": { "actions": [], "changed": false, "crypts": [], "failed": false, "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": [] } } TASK [linux-system-roles.storage : set the list of pools for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:117 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : set the list of volumes for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:121 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : remove obsolete mounts] ********************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:137 TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:148 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : set up new/current mounts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:153 TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:164 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : Manage /etc/crypttab to account for changes we just made] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:172 TASK [linux-system-roles.storage : Update facts] ******************************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:187 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_change_disk_mount.yml:13 included: /tmp/tmp7ksfxpzz/tests/get_unused_disk.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Find unused disks in the system] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/get_unused_disk.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "disks": ["vda"]} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/get_unused_disk.yml:8 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"unused_disks": ["vda"]}, "changed": false} TASK [Exit playbook when there's not enough unused disks in the system] ******** task path: /tmp/tmp7ksfxpzz/tests/get_unused_disk.yml:12 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Print unused disks] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/get_unused_disk.yml:17 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "unused_disks": [ "vda" ] } TASK [Create a disk device mounted at "/opt/test1"] **************************** task path: /tmp/tmp7ksfxpzz/tests/tests_change_disk_mount.yml:18 TASK [linux-system-roles.storage : Set version specific variables] ************* task path: /tmp/tmp7ksfxpzz/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-crypto", "libblockdev-dm", "libblockdev-lvm", "libblockdev-mdraid", "libblockdev-swap"]}, "ansible_included_var_files": ["/tmp/tmp7ksfxpzz/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.storage : define an empty list of pools to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : define an empty list of volumes to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : include the appropriate provider tasks] ***** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:22 included: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [linux-system-roles.storage : get a list of rpm packages installed on host machine] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : make sure blivet is available] ************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: python3-blivet", "Installed: libblockdev-crypto", "Installed: libblockdev-dm", "Installed: libblockdev-lvm", "Installed: libblockdev-mdraid", "Installed: libblockdev-swap"]} TASK [linux-system-roles.storage : initialize internal facts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools": [], "_storage_vol_defaults": [], "_storage_vol_pools": [], "_storage_vols_no_defaults": [], "_storage_vols_no_defaults_by_pool": {}, "_storage_vols_w_defaults": [], "_storage_volumes": []}, "changed": false} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [1/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:28 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [2/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:36 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [3/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:44 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [4/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:52 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [5/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:61 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [6/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:72 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'disks': [u'vda'], u'type': u'disk', u'mount_point': u'/opt/test1', u'name': u'test1'}) => {"ansible_facts": {"_storage_volumes": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "disk"}]}, "ansible_loop_var": "volume", "changed": false, "volume": {"disks": ["vda"], "mount_point": "/opt/test1", "name": "test1", "type": "disk"}} TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools": [] } TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "disk" } ] } TASK [linux-system-roles.storage : get required packages] ********************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": ["xfsprogs"], "pools": [], "volumes": []} TASK [linux-system-roles.storage : make sure required packages are installed] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: xfsprogs"]} TASK [linux-system-roles.storage : manage the pools and volumes to match the specified state] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:104 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [{"action": "create format", "device": "/dev/vda", "fs_type": "xfs"}], "changed": true, "crypts": [], "leaves": ["/dev/sda1", "/dev/sr0", "/dev/vda", "/dev/vdb", "/dev/vdc"], "mounts": [{"dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "UUID=0a043b21-bf3f-49ef-94ef-ff1ac206ddc2", "state": "mounted"}], "packages": ["e2fsprogs", "xfsprogs"], "pools": [], "volumes": [{"_device": "/dev/vda", "_kernel_device": "/dev/vda", "_mount_id": "UUID=0a043b21-bf3f-49ef-94ef-ff1ac206ddc2", "_raw_device": "/dev/vda", "_raw_kernel_device": "/dev/vda", "disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "disk"}]} TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:114 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "blivet_output": { "actions": [ { "action": "create format", "device": "/dev/vda", "fs_type": "xfs" } ], "changed": true, "crypts": [], "failed": false, "leaves": [ "/dev/sda1", "/dev/sr0", "/dev/vda", "/dev/vdb", "/dev/vdc" ], "mounts": [ { "dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "UUID=0a043b21-bf3f-49ef-94ef-ff1ac206ddc2", "state": "mounted" } ], "packages": [ "e2fsprogs", "xfsprogs" ], "pools": [], "volumes": [ { "_device": "/dev/vda", "_kernel_device": "/dev/vda", "_mount_id": "UUID=0a043b21-bf3f-49ef-94ef-ff1ac206ddc2", "_raw_device": "/dev/vda", "_raw_kernel_device": "/dev/vda", "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "disk" } ] } } TASK [linux-system-roles.storage : set the list of pools for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:117 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : set the list of volumes for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:121 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": [{"_device": "/dev/vda", "_kernel_device": "/dev/vda", "_mount_id": "UUID=0a043b21-bf3f-49ef-94ef-ff1ac206ddc2", "_raw_device": "/dev/vda", "_raw_kernel_device": "/dev/vda", "disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "disk"}]}, "changed": false} TASK [linux-system-roles.storage : remove obsolete mounts] ********************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:137 TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:148 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [linux-system-roles.storage : set up new/current mounts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:153 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'src': u'UUID=0a043b21-bf3f-49ef-94ef-ff1ac206ddc2', u'state': u'mounted', u'dump': 0, u'path': u'/opt/test1', u'passno': 0, u'opts': u'defaults', u'fstype': u'xfs'}) => {"ansible_loop_var": "mount_info", "changed": true, "dump": "0", "fstab": "/etc/fstab", "fstype": "xfs", "mount_info": {"dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "UUID=0a043b21-bf3f-49ef-94ef-ff1ac206ddc2", "state": "mounted"}, "name": "/opt/test1", "opts": "defaults", "passno": "0", "src": "UUID=0a043b21-bf3f-49ef-94ef-ff1ac206ddc2"} TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:164 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [linux-system-roles.storage : Manage /etc/crypttab to account for changes we just made] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:172 TASK [linux-system-roles.storage : Update facts] ******************************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:187 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_change_disk_mount.yml:28 included: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Print out pool information] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:1 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {} TASK [Print out volume information] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:6 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes_list": [ { "_device": "/dev/vda", "_kernel_device": "/dev/vda", "_mount_id": "UUID=0a043b21-bf3f-49ef-94ef-ff1ac206ddc2", "_raw_device": "/dev/vda", "_raw_kernel_device": "/dev/vda", "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "disk" } ] } TASK [Collect info about the volumes.] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "info": {"/dev/sda": {"fstype": "", "label": "", "name": "/dev/sda", "size": "4G", "type": "disk", "uuid": ""}, "/dev/sda1": {"fstype": "ext4", "label": "", "name": "/dev/sda1", "size": "4G", "type": "partition", "uuid": "03e702b4-e165-4a39-88c9-9e210cd00434"}, "/dev/sr0": {"fstype": "iso9660", "label": "cidata", "name": "/dev/sr0", "size": "364K", "type": "rom", "uuid": "2020-10-31-11-54-14-00"}, "/dev/vda": {"fstype": "xfs", "label": "", "name": "/dev/vda", "size": "10G", "type": "disk", "uuid": "0a043b21-bf3f-49ef-94ef-ff1ac206ddc2"}, "/dev/vdb": {"fstype": "", "label": "", "name": "/dev/vdb", "size": "10G", "type": "disk", "uuid": ""}, "/dev/vdc": {"fstype": "", "label": "", "name": "/dev/vdc", "size": "10G", "type": "disk", "uuid": ""}}} TASK [Read the /etc/fstab file for volume existence] *************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:19 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/fstab"], "delta": "0:00:01.003751", "end": "2020-10-31 11:55:49.570233", "rc": 0, "start": "2020-10-31 11:55:48.566482", "stderr": "", "stderr_lines": [], "stdout": "\n#\n# /etc/fstab\n# Created by anaconda on Sat Oct 31 08:17:58 2020\n#\n# Accessible filesystems, by reference, are maintained under '/dev/disk/'.\n# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.\n#\n# After editing this file, run 'systemctl daemon-reload' to update systemd\n# units generated from this file.\n#\nUUID=03e702b4-e165-4a39-88c9-9e210cd00434 / ext4 defaults 1 1\nUUID=0a043b21-bf3f-49ef-94ef-ff1ac206ddc2 /opt/test1 xfs defaults 0 0", "stdout_lines": ["", "#", "# /etc/fstab", "# Created by anaconda on Sat Oct 31 08:17:58 2020", "#", "# Accessible filesystems, by reference, are maintained under '/dev/disk/'.", "# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.", "#", "# After editing this file, run 'systemctl daemon-reload' to update systemd", "# units generated from this file.", "#", "UUID=03e702b4-e165-4a39-88c9-9e210cd00434 / ext4 defaults 1 1", "UUID=0a043b21-bf3f-49ef-94ef-ff1ac206ddc2 /opt/test1 xfs defaults 0 0"]} TASK [Read the /etc/crypttab file] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/crypttab"], "delta": "0:00:00.003142", "end": "2020-10-31 11:55:49.917184", "rc": 0, "start": "2020-10-31 11:55:49.914042", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Verify the volumes listed in storage_pools were correctly managed] ******* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:32 TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:39 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_pool": null}, "changed": false} TASK [Verify the volumes with no pool were correctly managed] ****************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:46 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": true, "_storage_volume_tests": ["mount", "fstab", "fs", "device", "encryption", "md", "size"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:10 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Get expected mount device based on device type] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/vda"}, "changed": false} TASK [Set some facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [{"block_available": 2592358, "block_size": 4096, "block_total": 2618880, "block_used": 26522, "device": "/dev/vda", "fstype": "xfs", "inode_available": 5242877, "inode_total": 5242880, "inode_used": 3, "mount": "/opt/test1", "options": "rw,seclabel,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota", "size_available": 10618298368, "size_total": 10726932480, "uuid": "0a043b21-bf3f-49ef-94ef-ff1ac206ddc2"}], "storage_test_mount_expected_match_count": "1", "storage_test_mount_point_matches": [{"block_available": 2592358, "block_size": 4096, "block_total": 2618880, "block_used": 26522, "device": "/dev/vda", "fstype": "xfs", "inode_available": 5242877, "inode_total": 5242880, "inode_used": 3, "mount": "/opt/test1", "options": "rw,seclabel,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota", "size_available": 10618298368, "size_total": 10726932480, "uuid": "0a043b21-bf3f-49ef-94ef-ff1ac206ddc2"}], "storage_test_swap_expected_matches": "0"}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:22 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:31 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:39 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [command] ***************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Gather swap info] ******************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:52 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify swap status] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:57 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Unset facts] ************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:67 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null, "storage_test_swap_expected_matches": null, "storage_test_swaps": null, "storage_test_sys_node": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": "1", "storage_test_fstab_expected_mount_point_matches": "1", "storage_test_fstab_id_matches": ["UUID=0a043b21-bf3f-49ef-94ef-ff1ac206ddc2 "], "storage_test_fstab_mount_point_matches": [" /opt/test1 "]}, "changed": false} TASK [Verify that the device identifier appears in /etc/fstab] ***************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:17 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": null, "storage_test_fstab_expected_mount_point_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [Verify fs type] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify fs label] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [See whether the device node is present] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "stat": {"atime": 1604145344.5500035, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "ctime": 1604145344.5500035, "dev": 5, "device_type": 64512, "executable": false, "exists": true, "gid": 6, "gr_name": "disk", "inode": 1898, "isblk": true, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mimetype": "inode/blockdevice", "mode": "0660", "mtime": 1604145344.5500035, "nlink": 1, "path": "/dev/vda", "pw_name": "root", "readable": true, "rgrp": true, "roth": false, "rusr": true, "size": 0, "uid": 0, "version": null, "wgrp": true, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}} TASK [Verify the presence/absence of the device node] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "disk"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:28 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:33 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Stat the LUKS device, if encrypted] ************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:3 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Collect LUKS info for this volume] *************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:10 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the presence/absence of the LUKS device node] ********************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:16 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify that the raw device is the same as the device if not encrypted] *** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:25 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about the LUKS volume if encrypted] **************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the LUKS volume's device type if encrypted] *********************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS version] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:42 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS key size] ***************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS cipher] ******************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:54 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:60 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": [], "_storage_test_expected_crypttab_entries": "0", "_storage_test_expected_crypttab_key_file": "-"}, "changed": false} TASK [Check for /etc/crypttab entry] ******************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:65 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Validate the format of the crypttab entry] ******************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:70 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check backing device of crypttab entry] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:76 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check key file of crypttab entry] **************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:82 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:88 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null, "_storage_test_expected_crypttab_entries": null, "_storage_test_expected_crypttab_key_file": null}, "changed": false} TASK [get information about RAID] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:7 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:13 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:17 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID active devices count] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:25 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID spare devices count] ****************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID metadata version] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [parse the actual size of the volume] ************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:3 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [parse the requested size of the volume] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:9 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:15 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_actual_size": { "changed": false, "skip_reason": "Conditional result was False", "skipped": true } } TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_requested_size": { "changed": false, "skip_reason": "Conditional result was False", "skipped": true } } TASK [assert] ****************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Clean up facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:16 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:56 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_blkinfo": null, "storage_test_crypttab": null, "storage_test_fstab": null, "storage_test_volume": null}, "changed": false} TASK [Change the disk device mount location to "/opt/test2"] ******************* task path: /tmp/tmp7ksfxpzz/tests/tests_change_disk_mount.yml:30 TASK [linux-system-roles.storage : Set version specific variables] ************* task path: /tmp/tmp7ksfxpzz/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-crypto", "libblockdev-dm", "libblockdev-lvm", "libblockdev-mdraid", "libblockdev-swap"]}, "ansible_included_var_files": ["/tmp/tmp7ksfxpzz/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.storage : define an empty list of pools to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : define an empty list of volumes to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : include the appropriate provider tasks] ***** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:22 included: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [linux-system-roles.storage : get a list of rpm packages installed on host machine] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : make sure blivet is available] ************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: python3-blivet", "Installed: libblockdev-crypto", "Installed: libblockdev-dm", "Installed: libblockdev-lvm", "Installed: libblockdev-mdraid", "Installed: libblockdev-swap"]} TASK [linux-system-roles.storage : initialize internal facts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools": [], "_storage_vol_defaults": [], "_storage_vol_pools": [], "_storage_vols_no_defaults": [], "_storage_vols_no_defaults_by_pool": {}, "_storage_vols_w_defaults": [], "_storage_volumes": []}, "changed": false} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [1/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:28 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [2/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:36 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [3/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:44 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [4/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:52 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [5/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:61 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [6/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:72 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'disks': [u'vda'], u'type': u'disk', u'mount_point': u'/opt/test2', u'name': u'test1'}) => {"ansible_facts": {"_storage_volumes": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "test1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "disk"}]}, "ansible_loop_var": "volume", "changed": false, "volume": {"disks": ["vda"], "mount_point": "/opt/test2", "name": "test1", "type": "disk"}} TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools": [] } TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "test1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "disk" } ] } TASK [linux-system-roles.storage : get required packages] ********************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": ["xfsprogs"], "pools": [], "volumes": []} TASK [linux-system-roles.storage : make sure required packages are installed] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: xfsprogs"]} TASK [linux-system-roles.storage : manage the pools and volumes to match the specified state] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:104 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": ["/dev/sda1", "/dev/sr0", "/dev/vda", "/dev/vdb", "/dev/vdc"], "mounts": [{"path": "/opt/test1", "state": "absent"}, {"dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test2", "src": "UUID=0a043b21-bf3f-49ef-94ef-ff1ac206ddc2", "state": "mounted"}], "packages": ["e2fsprogs", "xfsprogs"], "pools": [], "volumes": [{"_device": "/dev/vda", "_kernel_device": "/dev/vda", "_mount_id": "UUID=0a043b21-bf3f-49ef-94ef-ff1ac206ddc2", "_raw_device": "/dev/vda", "_raw_kernel_device": "/dev/vda", "disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "test1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "disk"}]} TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:114 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "blivet_output": { "actions": [], "changed": false, "crypts": [], "failed": false, "leaves": [ "/dev/sda1", "/dev/sr0", "/dev/vda", "/dev/vdb", "/dev/vdc" ], "mounts": [ { "path": "/opt/test1", "state": "absent" }, { "dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test2", "src": "UUID=0a043b21-bf3f-49ef-94ef-ff1ac206ddc2", "state": "mounted" } ], "packages": [ "e2fsprogs", "xfsprogs" ], "pools": [], "volumes": [ { "_device": "/dev/vda", "_kernel_device": "/dev/vda", "_mount_id": "UUID=0a043b21-bf3f-49ef-94ef-ff1ac206ddc2", "_raw_device": "/dev/vda", "_raw_kernel_device": "/dev/vda", "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "test1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "disk" } ] } } TASK [linux-system-roles.storage : set the list of pools for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:117 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : set the list of volumes for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:121 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": [{"_device": "/dev/vda", "_kernel_device": "/dev/vda", "_mount_id": "UUID=0a043b21-bf3f-49ef-94ef-ff1ac206ddc2", "_raw_device": "/dev/vda", "_raw_kernel_device": "/dev/vda", "disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "test1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "disk"}]}, "changed": false} TASK [linux-system-roles.storage : remove obsolete mounts] ********************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:137 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'path': u'/opt/test1', u'state': u'absent'}) => {"ansible_loop_var": "mount_info", "changed": true, "dump": "0", "fstab": "/etc/fstab", "mount_info": {"path": "/opt/test1", "state": "absent"}, "name": "/opt/test1", "opts": "defaults", "passno": "0"} TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:148 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [linux-system-roles.storage : set up new/current mounts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:153 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'src': u'UUID=0a043b21-bf3f-49ef-94ef-ff1ac206ddc2', u'state': u'mounted', u'dump': 0, u'path': u'/opt/test2', u'passno': 0, u'opts': u'defaults', u'fstype': u'xfs'}) => {"ansible_loop_var": "mount_info", "changed": true, "dump": "0", "fstab": "/etc/fstab", "fstype": "xfs", "mount_info": {"dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test2", "src": "UUID=0a043b21-bf3f-49ef-94ef-ff1ac206ddc2", "state": "mounted"}, "name": "/opt/test2", "opts": "defaults", "passno": "0", "src": "UUID=0a043b21-bf3f-49ef-94ef-ff1ac206ddc2"} TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:164 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [linux-system-roles.storage : Manage /etc/crypttab to account for changes we just made] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:172 TASK [linux-system-roles.storage : Update facts] ******************************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:187 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_change_disk_mount.yml:40 included: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Print out pool information] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:1 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {} TASK [Print out volume information] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:6 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes_list": [ { "_device": "/dev/vda", "_kernel_device": "/dev/vda", "_mount_id": "UUID=0a043b21-bf3f-49ef-94ef-ff1ac206ddc2", "_raw_device": "/dev/vda", "_raw_kernel_device": "/dev/vda", "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "test1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "disk" } ] } TASK [Collect info about the volumes.] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "info": {"/dev/sda": {"fstype": "", "label": "", "name": "/dev/sda", "size": "4G", "type": "disk", "uuid": ""}, "/dev/sda1": {"fstype": "ext4", "label": "", "name": "/dev/sda1", "size": "4G", "type": "partition", "uuid": "03e702b4-e165-4a39-88c9-9e210cd00434"}, "/dev/sr0": {"fstype": "iso9660", "label": "cidata", "name": "/dev/sr0", "size": "364K", "type": "rom", "uuid": "2020-10-31-11-54-14-00"}, "/dev/vda": {"fstype": "xfs", "label": "", "name": "/dev/vda", "size": "10G", "type": "disk", "uuid": "0a043b21-bf3f-49ef-94ef-ff1ac206ddc2"}, "/dev/vdb": {"fstype": "", "label": "", "name": "/dev/vdb", "size": "10G", "type": "disk", "uuid": ""}, "/dev/vdc": {"fstype": "", "label": "", "name": "/dev/vdc", "size": "10G", "type": "disk", "uuid": ""}}} TASK [Read the /etc/fstab file for volume existence] *************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:19 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/fstab"], "delta": "0:00:00.002471", "end": "2020-10-31 11:56:07.606235", "rc": 0, "start": "2020-10-31 11:56:07.603764", "stderr": "", "stderr_lines": [], "stdout": "\n#\n# /etc/fstab\n# Created by anaconda on Sat Oct 31 08:17:58 2020\n#\n# Accessible filesystems, by reference, are maintained under '/dev/disk/'.\n# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.\n#\n# After editing this file, run 'systemctl daemon-reload' to update systemd\n# units generated from this file.\n#\nUUID=03e702b4-e165-4a39-88c9-9e210cd00434 / ext4 defaults 1 1\nUUID=0a043b21-bf3f-49ef-94ef-ff1ac206ddc2 /opt/test2 xfs defaults 0 0", "stdout_lines": ["", "#", "# /etc/fstab", "# Created by anaconda on Sat Oct 31 08:17:58 2020", "#", "# Accessible filesystems, by reference, are maintained under '/dev/disk/'.", "# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.", "#", "# After editing this file, run 'systemctl daemon-reload' to update systemd", "# units generated from this file.", "#", "UUID=03e702b4-e165-4a39-88c9-9e210cd00434 / ext4 defaults 1 1", "UUID=0a043b21-bf3f-49ef-94ef-ff1ac206ddc2 /opt/test2 xfs defaults 0 0"]} TASK [Read the /etc/crypttab file] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/crypttab"], "delta": "0:00:00.002347", "end": "2020-10-31 11:56:07.931822", "rc": 0, "start": "2020-10-31 11:56:07.929475", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Verify the volumes listed in storage_pools were correctly managed] ******* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:32 TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:39 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_pool": null}, "changed": false} TASK [Verify the volumes with no pool were correctly managed] ****************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:46 [WARNING]: The loop variable 'storage_test_volume' is already in use. You should set the `loop_var` value in the `loop_control` option for the task to something else to avoid variable collisions and unexpected behavior. included: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": true, "_storage_volume_tests": ["mount", "fstab", "fs", "device", "encryption", "md", "size"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:10 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Get expected mount device based on device type] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/vda"}, "changed": false} TASK [Set some facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [{"block_available": 2592358, "block_size": 4096, "block_total": 2618880, "block_used": 26522, "device": "/dev/vda", "fstype": "xfs", "inode_available": 5242877, "inode_total": 5242880, "inode_used": 3, "mount": "/opt/test2", "options": "rw,seclabel,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota", "size_available": 10618298368, "size_total": 10726932480, "uuid": "0a043b21-bf3f-49ef-94ef-ff1ac206ddc2"}], "storage_test_mount_expected_match_count": "1", "storage_test_mount_point_matches": [{"block_available": 2592358, "block_size": 4096, "block_total": 2618880, "block_used": 26522, "device": "/dev/vda", "fstype": "xfs", "inode_available": 5242877, "inode_total": 5242880, "inode_used": 3, "mount": "/opt/test2", "options": "rw,seclabel,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota", "size_available": 10618298368, "size_total": 10726932480, "uuid": "0a043b21-bf3f-49ef-94ef-ff1ac206ddc2"}], "storage_test_swap_expected_matches": "0"}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:22 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:31 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:39 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [command] ***************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Gather swap info] ******************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:52 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify swap status] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:57 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Unset facts] ************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:67 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null, "storage_test_swap_expected_matches": null, "storage_test_swaps": null, "storage_test_sys_node": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": "1", "storage_test_fstab_expected_mount_point_matches": "1", "storage_test_fstab_id_matches": ["UUID=0a043b21-bf3f-49ef-94ef-ff1ac206ddc2 "], "storage_test_fstab_mount_point_matches": [" /opt/test2 "]}, "changed": false} TASK [Verify that the device identifier appears in /etc/fstab] ***************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:17 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": null, "storage_test_fstab_expected_mount_point_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [Verify fs type] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify fs label] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [See whether the device node is present] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "stat": {"atime": 1604145344.5500035, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "ctime": 1604145344.5500035, "dev": 5, "device_type": 64512, "executable": false, "exists": true, "gid": 6, "gr_name": "disk", "inode": 1898, "isblk": true, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mimetype": "inode/blockdevice", "mode": "0660", "mtime": 1604145344.5500035, "nlink": 1, "path": "/dev/vda", "pw_name": "root", "readable": true, "rgrp": true, "roth": false, "rusr": true, "size": 0, "uid": 0, "version": null, "wgrp": true, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}} TASK [Verify the presence/absence of the device node] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "disk"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:28 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:33 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Stat the LUKS device, if encrypted] ************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:3 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Collect LUKS info for this volume] *************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:10 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the presence/absence of the LUKS device node] ********************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:16 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify that the raw device is the same as the device if not encrypted] *** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:25 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about the LUKS volume if encrypted] **************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the LUKS volume's device type if encrypted] *********************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS version] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:42 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS key size] ***************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS cipher] ******************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:54 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:60 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": [], "_storage_test_expected_crypttab_entries": "0", "_storage_test_expected_crypttab_key_file": "-"}, "changed": false} TASK [Check for /etc/crypttab entry] ******************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:65 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Validate the format of the crypttab entry] ******************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:70 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check backing device of crypttab entry] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:76 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check key file of crypttab entry] **************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:82 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:88 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null, "_storage_test_expected_crypttab_entries": null, "_storage_test_expected_crypttab_key_file": null}, "changed": false} TASK [get information about RAID] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:7 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:13 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:17 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID active devices count] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:25 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID spare devices count] ****************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID metadata version] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [parse the actual size of the volume] ************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:3 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [parse the requested size of the volume] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:9 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:15 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_actual_size": { "changed": false, "skip_reason": "Conditional result was False", "skipped": true } } TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_requested_size": { "changed": false, "skip_reason": "Conditional result was False", "skipped": true } } TASK [assert] ****************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Clean up facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:16 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:56 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_blkinfo": null, "storage_test_crypttab": null, "storage_test_fstab": null, "storage_test_volume": null}, "changed": false} TASK [Repeat the previous invocation to verify idempotence] ******************** task path: /tmp/tmp7ksfxpzz/tests/tests_change_disk_mount.yml:42 TASK [linux-system-roles.storage : Set version specific variables] ************* task path: /tmp/tmp7ksfxpzz/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-crypto", "libblockdev-dm", "libblockdev-lvm", "libblockdev-mdraid", "libblockdev-swap"]}, "ansible_included_var_files": ["/tmp/tmp7ksfxpzz/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.storage : define an empty list of pools to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : define an empty list of volumes to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : include the appropriate provider tasks] ***** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:22 included: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [linux-system-roles.storage : get a list of rpm packages installed on host machine] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : make sure blivet is available] ************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: python3-blivet", "Installed: libblockdev-crypto", "Installed: libblockdev-dm", "Installed: libblockdev-lvm", "Installed: libblockdev-mdraid", "Installed: libblockdev-swap"]} TASK [linux-system-roles.storage : initialize internal facts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools": [], "_storage_vol_defaults": [], "_storage_vol_pools": [], "_storage_vols_no_defaults": [], "_storage_vols_no_defaults_by_pool": {}, "_storage_vols_w_defaults": [], "_storage_volumes": []}, "changed": false} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [1/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:28 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [2/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:36 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [3/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:44 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [4/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:52 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [5/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:61 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [6/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:72 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'disks': [u'vda'], u'type': u'disk', u'mount_point': u'/opt/test2', u'name': u'test1'}) => {"ansible_facts": {"_storage_volumes": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "test1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "disk"}]}, "ansible_loop_var": "volume", "changed": false, "volume": {"disks": ["vda"], "mount_point": "/opt/test2", "name": "test1", "type": "disk"}} TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools": [] } TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "test1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "disk" } ] } TASK [linux-system-roles.storage : get required packages] ********************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": ["xfsprogs"], "pools": [], "volumes": []} TASK [linux-system-roles.storage : make sure required packages are installed] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: xfsprogs"]} TASK [linux-system-roles.storage : manage the pools and volumes to match the specified state] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:104 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": ["/dev/sda1", "/dev/sr0", "/dev/vda", "/dev/vdb", "/dev/vdc"], "mounts": [{"dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test2", "src": "UUID=0a043b21-bf3f-49ef-94ef-ff1ac206ddc2", "state": "mounted"}], "packages": ["e2fsprogs", "xfsprogs"], "pools": [], "volumes": [{"_device": "/dev/vda", "_kernel_device": "/dev/vda", "_mount_id": "UUID=0a043b21-bf3f-49ef-94ef-ff1ac206ddc2", "_raw_device": "/dev/vda", "_raw_kernel_device": "/dev/vda", "disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "test1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "disk"}]} TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:114 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "blivet_output": { "actions": [], "changed": false, "crypts": [], "failed": false, "leaves": [ "/dev/sda1", "/dev/sr0", "/dev/vda", "/dev/vdb", "/dev/vdc" ], "mounts": [ { "dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test2", "src": "UUID=0a043b21-bf3f-49ef-94ef-ff1ac206ddc2", "state": "mounted" } ], "packages": [ "e2fsprogs", "xfsprogs" ], "pools": [], "volumes": [ { "_device": "/dev/vda", "_kernel_device": "/dev/vda", "_mount_id": "UUID=0a043b21-bf3f-49ef-94ef-ff1ac206ddc2", "_raw_device": "/dev/vda", "_raw_kernel_device": "/dev/vda", "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "test1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "disk" } ] } } TASK [linux-system-roles.storage : set the list of pools for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:117 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : set the list of volumes for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:121 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": [{"_device": "/dev/vda", "_kernel_device": "/dev/vda", "_mount_id": "UUID=0a043b21-bf3f-49ef-94ef-ff1ac206ddc2", "_raw_device": "/dev/vda", "_raw_kernel_device": "/dev/vda", "disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "test1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "disk"}]}, "changed": false} TASK [linux-system-roles.storage : remove obsolete mounts] ********************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:137 TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:148 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [linux-system-roles.storage : set up new/current mounts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:153 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'src': u'UUID=0a043b21-bf3f-49ef-94ef-ff1ac206ddc2', u'state': u'mounted', u'dump': 0, u'path': u'/opt/test2', u'passno': 0, u'opts': u'defaults', u'fstype': u'xfs'}) => {"ansible_loop_var": "mount_info", "changed": false, "dump": "0", "fstab": "/etc/fstab", "fstype": "xfs", "mount_info": {"dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test2", "src": "UUID=0a043b21-bf3f-49ef-94ef-ff1ac206ddc2", "state": "mounted"}, "name": "/opt/test2", "opts": "defaults", "passno": "0", "src": "UUID=0a043b21-bf3f-49ef-94ef-ff1ac206ddc2"} TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:164 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [linux-system-roles.storage : Manage /etc/crypttab to account for changes we just made] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:172 TASK [linux-system-roles.storage : Update facts] ******************************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:187 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_change_disk_mount.yml:52 included: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Print out pool information] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:1 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {} TASK [Print out volume information] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:6 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes_list": [ { "_device": "/dev/vda", "_kernel_device": "/dev/vda", "_mount_id": "UUID=0a043b21-bf3f-49ef-94ef-ff1ac206ddc2", "_raw_device": "/dev/vda", "_raw_kernel_device": "/dev/vda", "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "test1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "disk" } ] } TASK [Collect info about the volumes.] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "info": {"/dev/sda": {"fstype": "", "label": "", "name": "/dev/sda", "size": "4G", "type": "disk", "uuid": ""}, "/dev/sda1": {"fstype": "ext4", "label": "", "name": "/dev/sda1", "size": "4G", "type": "partition", "uuid": "03e702b4-e165-4a39-88c9-9e210cd00434"}, "/dev/sr0": {"fstype": "iso9660", "label": "cidata", "name": "/dev/sr0", "size": "364K", "type": "rom", "uuid": "2020-10-31-11-54-14-00"}, "/dev/vda": {"fstype": "xfs", "label": "", "name": "/dev/vda", "size": "10G", "type": "disk", "uuid": "0a043b21-bf3f-49ef-94ef-ff1ac206ddc2"}, "/dev/vdb": {"fstype": "", "label": "", "name": "/dev/vdb", "size": "10G", "type": "disk", "uuid": ""}, "/dev/vdc": {"fstype": "", "label": "", "name": "/dev/vdc", "size": "10G", "type": "disk", "uuid": ""}}} TASK [Read the /etc/fstab file for volume existence] *************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:19 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/fstab"], "delta": "0:00:00.002531", "end": "2020-10-31 11:56:24.278198", "rc": 0, "start": "2020-10-31 11:56:24.275667", "stderr": "", "stderr_lines": [], "stdout": "\n#\n# /etc/fstab\n# Created by anaconda on Sat Oct 31 08:17:58 2020\n#\n# Accessible filesystems, by reference, are maintained under '/dev/disk/'.\n# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.\n#\n# After editing this file, run 'systemctl daemon-reload' to update systemd\n# units generated from this file.\n#\nUUID=03e702b4-e165-4a39-88c9-9e210cd00434 / ext4 defaults 1 1\nUUID=0a043b21-bf3f-49ef-94ef-ff1ac206ddc2 /opt/test2 xfs defaults 0 0", "stdout_lines": ["", "#", "# /etc/fstab", "# Created by anaconda on Sat Oct 31 08:17:58 2020", "#", "# Accessible filesystems, by reference, are maintained under '/dev/disk/'.", "# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.", "#", "# After editing this file, run 'systemctl daemon-reload' to update systemd", "# units generated from this file.", "#", "UUID=03e702b4-e165-4a39-88c9-9e210cd00434 / ext4 defaults 1 1", "UUID=0a043b21-bf3f-49ef-94ef-ff1ac206ddc2 /opt/test2 xfs defaults 0 0"]} TASK [Read the /etc/crypttab file] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/crypttab"], "delta": "0:00:00.002336", "end": "2020-10-31 11:56:24.596682", "rc": 0, "start": "2020-10-31 11:56:24.594346", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Verify the volumes listed in storage_pools were correctly managed] ******* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:32 TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:39 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_pool": null}, "changed": false} TASK [Verify the volumes with no pool were correctly managed] ****************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:46 [WARNING]: The loop variable 'storage_test_volume' is already in use. You should set the `loop_var` value in the `loop_control` option for the task to something else to avoid variable collisions and unexpected behavior. included: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": true, "_storage_volume_tests": ["mount", "fstab", "fs", "device", "encryption", "md", "size"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:10 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Get expected mount device based on device type] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/vda"}, "changed": false} TASK [Set some facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [{"block_available": 2592358, "block_size": 4096, "block_total": 2618880, "block_used": 26522, "device": "/dev/vda", "fstype": "xfs", "inode_available": 5242877, "inode_total": 5242880, "inode_used": 3, "mount": "/opt/test2", "options": "rw,seclabel,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota", "size_available": 10618298368, "size_total": 10726932480, "uuid": "0a043b21-bf3f-49ef-94ef-ff1ac206ddc2"}], "storage_test_mount_expected_match_count": "1", "storage_test_mount_point_matches": [{"block_available": 2592358, "block_size": 4096, "block_total": 2618880, "block_used": 26522, "device": "/dev/vda", "fstype": "xfs", "inode_available": 5242877, "inode_total": 5242880, "inode_used": 3, "mount": "/opt/test2", "options": "rw,seclabel,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota", "size_available": 10618298368, "size_total": 10726932480, "uuid": "0a043b21-bf3f-49ef-94ef-ff1ac206ddc2"}], "storage_test_swap_expected_matches": "0"}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:22 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:31 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:39 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [command] ***************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Gather swap info] ******************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:52 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify swap status] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:57 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Unset facts] ************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:67 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null, "storage_test_swap_expected_matches": null, "storage_test_swaps": null, "storage_test_sys_node": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": "1", "storage_test_fstab_expected_mount_point_matches": "1", "storage_test_fstab_id_matches": ["UUID=0a043b21-bf3f-49ef-94ef-ff1ac206ddc2 "], "storage_test_fstab_mount_point_matches": [" /opt/test2 "]}, "changed": false} TASK [Verify that the device identifier appears in /etc/fstab] ***************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:17 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": null, "storage_test_fstab_expected_mount_point_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [Verify fs type] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify fs label] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [See whether the device node is present] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "stat": {"atime": 1604145344.5500035, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "ctime": 1604145344.5500035, "dev": 5, "device_type": 64512, "executable": false, "exists": true, "gid": 6, "gr_name": "disk", "inode": 1898, "isblk": true, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mimetype": "inode/blockdevice", "mode": "0660", "mtime": 1604145344.5500035, "nlink": 1, "path": "/dev/vda", "pw_name": "root", "readable": true, "rgrp": true, "roth": false, "rusr": true, "size": 0, "uid": 0, "version": null, "wgrp": true, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}} TASK [Verify the presence/absence of the device node] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "disk"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:28 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:33 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Stat the LUKS device, if encrypted] ************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:3 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Collect LUKS info for this volume] *************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:10 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the presence/absence of the LUKS device node] ********************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:16 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify that the raw device is the same as the device if not encrypted] *** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:25 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about the LUKS volume if encrypted] **************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the LUKS volume's device type if encrypted] *********************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS version] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:42 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS key size] ***************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS cipher] ******************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:54 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:60 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": [], "_storage_test_expected_crypttab_entries": "0", "_storage_test_expected_crypttab_key_file": "-"}, "changed": false} TASK [Check for /etc/crypttab entry] ******************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:65 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Validate the format of the crypttab entry] ******************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:70 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check backing device of crypttab entry] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:76 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check key file of crypttab entry] **************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:82 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:88 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null, "_storage_test_expected_crypttab_entries": null, "_storage_test_expected_crypttab_key_file": null}, "changed": false} TASK [get information about RAID] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:7 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:13 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:17 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID active devices count] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:25 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID spare devices count] ****************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID metadata version] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [parse the actual size of the volume] ************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:3 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [parse the requested size of the volume] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:9 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:15 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_actual_size": { "changed": false, "skip_reason": "Conditional result was False", "skipped": true } } TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_requested_size": { "changed": false, "skip_reason": "Conditional result was False", "skipped": true } } TASK [assert] ****************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Clean up facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:16 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:56 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_blkinfo": null, "storage_test_crypttab": null, "storage_test_fstab": null, "storage_test_volume": null}, "changed": false} TASK [Clean up] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_change_disk_mount.yml:54 TASK [linux-system-roles.storage : Set version specific variables] ************* task path: /tmp/tmp7ksfxpzz/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-crypto", "libblockdev-dm", "libblockdev-lvm", "libblockdev-mdraid", "libblockdev-swap"]}, "ansible_included_var_files": ["/tmp/tmp7ksfxpzz/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.storage : define an empty list of pools to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : define an empty list of volumes to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : include the appropriate provider tasks] ***** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:22 included: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [linux-system-roles.storage : get a list of rpm packages installed on host machine] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : make sure blivet is available] ************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: python3-blivet", "Installed: libblockdev-crypto", "Installed: libblockdev-dm", "Installed: libblockdev-lvm", "Installed: libblockdev-mdraid", "Installed: libblockdev-swap"]} TASK [linux-system-roles.storage : initialize internal facts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools": [], "_storage_vol_defaults": [], "_storage_vol_pools": [], "_storage_vols_no_defaults": [], "_storage_vols_no_defaults_by_pool": {}, "_storage_vols_w_defaults": [], "_storage_volumes": []}, "changed": false} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [1/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:28 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [2/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:36 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [3/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:44 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [4/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:52 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [5/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:61 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [6/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:72 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'state': u'absent', u'disks': [u'vda'], u'type': u'disk', u'mount_point': u'/opt/test2', u'name': u'test1'}) => {"ansible_facts": {"_storage_volumes": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "test1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "absent", "type": "disk"}]}, "ansible_loop_var": "volume", "changed": false, "volume": {"disks": ["vda"], "mount_point": "/opt/test2", "name": "test1", "state": "absent", "type": "disk"}} TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools": [] } TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "test1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "absent", "type": "disk" } ] } TASK [linux-system-roles.storage : get required packages] ********************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": []} TASK [linux-system-roles.storage : make sure required packages are installed] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [linux-system-roles.storage : manage the pools and volumes to match the specified state] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:104 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [{"action": "destroy format", "device": "/dev/vda", "fs_type": "xfs"}], "changed": true, "crypts": [], "leaves": ["/dev/sda1", "/dev/sr0", "/dev/vda", "/dev/vdb", "/dev/vdc"], "mounts": [{"fstype": "xfs", "path": "/opt/test2", "src": "UUID=0a043b21-bf3f-49ef-94ef-ff1ac206ddc2", "state": "absent"}], "packages": ["e2fsprogs"], "pools": [], "volumes": [{"_device": "/dev/vda", "_mount_id": "UUID=0a043b21-bf3f-49ef-94ef-ff1ac206ddc2", "_raw_device": "/dev/vda", "disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "test1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "absent", "type": "disk"}]} TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:114 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "blivet_output": { "actions": [ { "action": "destroy format", "device": "/dev/vda", "fs_type": "xfs" } ], "changed": true, "crypts": [], "failed": false, "leaves": [ "/dev/sda1", "/dev/sr0", "/dev/vda", "/dev/vdb", "/dev/vdc" ], "mounts": [ { "fstype": "xfs", "path": "/opt/test2", "src": "UUID=0a043b21-bf3f-49ef-94ef-ff1ac206ddc2", "state": "absent" } ], "packages": [ "e2fsprogs" ], "pools": [], "volumes": [ { "_device": "/dev/vda", "_mount_id": "UUID=0a043b21-bf3f-49ef-94ef-ff1ac206ddc2", "_raw_device": "/dev/vda", "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "test1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "absent", "type": "disk" } ] } } TASK [linux-system-roles.storage : set the list of pools for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:117 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : set the list of volumes for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:121 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": [{"_device": "/dev/vda", "_mount_id": "UUID=0a043b21-bf3f-49ef-94ef-ff1ac206ddc2", "_raw_device": "/dev/vda", "disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "test1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "absent", "type": "disk"}]}, "changed": false} TASK [linux-system-roles.storage : remove obsolete mounts] ********************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:137 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'src': u'UUID=0a043b21-bf3f-49ef-94ef-ff1ac206ddc2', u'state': u'absent', u'fstype': u'xfs', u'path': u'/opt/test2'}) => {"ansible_loop_var": "mount_info", "changed": true, "dump": "0", "fstab": "/etc/fstab", "fstype": "xfs", "mount_info": {"fstype": "xfs", "path": "/opt/test2", "src": "UUID=0a043b21-bf3f-49ef-94ef-ff1ac206ddc2", "state": "absent"}, "name": "/opt/test2", "opts": "defaults", "passno": "0", "src": "UUID=0a043b21-bf3f-49ef-94ef-ff1ac206ddc2"} TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:148 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [linux-system-roles.storage : set up new/current mounts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:153 TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:164 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [linux-system-roles.storage : Manage /etc/crypttab to account for changes we just made] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:172 TASK [linux-system-roles.storage : Update facts] ******************************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:187 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_change_disk_mount.yml:65 included: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Print out pool information] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:1 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {} TASK [Print out volume information] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:6 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes_list": [ { "_device": "/dev/vda", "_mount_id": "UUID=0a043b21-bf3f-49ef-94ef-ff1ac206ddc2", "_raw_device": "/dev/vda", "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "test1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "absent", "type": "disk" } ] } TASK [Collect info about the volumes.] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "info": {"/dev/sda": {"fstype": "", "label": "", "name": "/dev/sda", "size": "4G", "type": "disk", "uuid": ""}, "/dev/sda1": {"fstype": "ext4", "label": "", "name": "/dev/sda1", "size": "4G", "type": "partition", "uuid": "03e702b4-e165-4a39-88c9-9e210cd00434"}, "/dev/sr0": {"fstype": "iso9660", "label": "cidata", "name": "/dev/sr0", "size": "364K", "type": "rom", "uuid": "2020-10-31-11-54-14-00"}, "/dev/vda": {"fstype": "", "label": "", "name": "/dev/vda", "size": "10G", "type": "disk", "uuid": ""}, "/dev/vdb": {"fstype": "", "label": "", "name": "/dev/vdb", "size": "10G", "type": "disk", "uuid": ""}, "/dev/vdc": {"fstype": "", "label": "", "name": "/dev/vdc", "size": "10G", "type": "disk", "uuid": ""}}} TASK [Read the /etc/fstab file for volume existence] *************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:19 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/fstab"], "delta": "0:00:00.002580", "end": "2020-10-31 11:56:41.126820", "rc": 0, "start": "2020-10-31 11:56:41.124240", "stderr": "", "stderr_lines": [], "stdout": "\n#\n# /etc/fstab\n# Created by anaconda on Sat Oct 31 08:17:58 2020\n#\n# Accessible filesystems, by reference, are maintained under '/dev/disk/'.\n# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.\n#\n# After editing this file, run 'systemctl daemon-reload' to update systemd\n# units generated from this file.\n#\nUUID=03e702b4-e165-4a39-88c9-9e210cd00434 / ext4 defaults 1 1", "stdout_lines": ["", "#", "# /etc/fstab", "# Created by anaconda on Sat Oct 31 08:17:58 2020", "#", "# Accessible filesystems, by reference, are maintained under '/dev/disk/'.", "# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.", "#", "# After editing this file, run 'systemctl daemon-reload' to update systemd", "# units generated from this file.", "#", "UUID=03e702b4-e165-4a39-88c9-9e210cd00434 / ext4 defaults 1 1"]} TASK [Read the /etc/crypttab file] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/crypttab"], "delta": "0:00:01.004250", "end": "2020-10-31 11:56:42.460960", "rc": 0, "start": "2020-10-31 11:56:41.456710", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Verify the volumes listed in storage_pools were correctly managed] ******* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:32 TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:39 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_pool": null}, "changed": false} TASK [Verify the volumes with no pool were correctly managed] ****************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:46 [WARNING]: The loop variable 'storage_test_volume' is already in use. You should set the `loop_var` value in the `loop_control` option for the task to something else to avoid variable collisions and unexpected behavior. included: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": false, "_storage_volume_tests": ["mount", "fstab", "fs", "device", "encryption", "md", "size"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:10 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Get expected mount device based on device type] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/vda"}, "changed": false} TASK [Set some facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [], "storage_test_mount_expected_match_count": "0", "storage_test_mount_point_matches": [], "storage_test_swap_expected_matches": "0"}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:22 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:31 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:39 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [command] ***************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Gather swap info] ******************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:52 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify swap status] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:57 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Unset facts] ************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:67 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null, "storage_test_swap_expected_matches": null, "storage_test_swaps": null, "storage_test_sys_node": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": "0", "storage_test_fstab_expected_mount_point_matches": "0", "storage_test_fstab_id_matches": [], "storage_test_fstab_mount_point_matches": []}, "changed": false} TASK [Verify that the device identifier appears in /etc/fstab] ***************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:10 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:17 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": null, "storage_test_fstab_expected_mount_point_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [Verify fs type] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:4 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify fs label] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:10 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [See whether the device node is present] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "stat": {"atime": 1604145397.9060035, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "ctime": 1604145397.9060035, "dev": 5, "device_type": 64512, "executable": false, "exists": true, "gid": 6, "gr_name": "disk", "inode": 1898, "isblk": true, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mimetype": "inode/blockdevice", "mode": "0660", "mtime": 1604145397.9060035, "nlink": 1, "path": "/dev/vda", "pw_name": "root", "readable": true, "rgrp": true, "roth": false, "rusr": true, "size": 0, "uid": 0, "version": null, "wgrp": true, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}} TASK [Verify the presence/absence of the device node] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:18 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "disk"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:28 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:33 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Stat the LUKS device, if encrypted] ************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:3 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Collect LUKS info for this volume] *************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:10 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the presence/absence of the LUKS device node] ********************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:16 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify that the raw device is the same as the device if not encrypted] *** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:25 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Make sure we got info about the LUKS volume if encrypted] **************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the LUKS volume's device type if encrypted] *********************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS version] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:42 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS key size] ***************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS cipher] ******************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:54 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:60 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": [], "_storage_test_expected_crypttab_entries": "0", "_storage_test_expected_crypttab_key_file": "-"}, "changed": false} TASK [Check for /etc/crypttab entry] ******************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:65 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Validate the format of the crypttab entry] ******************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:70 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check backing device of crypttab entry] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:76 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check key file of crypttab entry] **************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:82 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:88 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null, "_storage_test_expected_crypttab_entries": null, "_storage_test_expected_crypttab_key_file": null}, "changed": false} TASK [get information about RAID] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:7 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:13 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:17 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID active devices count] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:25 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID spare devices count] ****************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID metadata version] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [parse the actual size of the volume] ************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:3 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [parse the requested size of the volume] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:9 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:15 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_actual_size": { "changed": false, "skip_reason": "Conditional result was False", "skipped": true } } TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_requested_size": { "changed": false, "skip_reason": "Conditional result was False", "skipped": true } } TASK [assert] ****************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Clean up facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:16 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:56 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_blkinfo": null, "storage_test_crypttab": null, "storage_test_fstab": null, "storage_test_volume": null}, "changed": false} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 : ok=250 changed=7 unreachable=0 failed=0 skipped=161 rescued=0 ignored=0 + cd /tmp/tmp7ksfxpzz/tests; TEST_SUBJECTS=/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_storage-178-e856157-fedora-31-87qzp9iq/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmp7ksfxpzz/_setup.yml /tmp/tmp7ksfxpzz/tests/tests_change_fs.yml ansible-playbook 2.8.16 config file = /etc/ansible/ansible.cfg configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python2.7/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 2.7.5 (default, Apr 2 2020, 13:16:51) [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)] Using /etc/ansible/ansible.cfg as config file PLAYBOOK: _setup.yml *********************************************************** 1 plays in /tmp/tmp7ksfxpzz/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/_setup.yml:5 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "groups": { "all": [ "/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2" ], "localhost": [ "/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2" ], "subjects": [ "/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmp7ksfxpzz/_setup.yml:6 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 : ok=1 changed=0 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 PLAYBOOK: tests_change_fs.yml ************************************************** 1 plays in /tmp/tmp7ksfxpzz/tests/tests_change_fs.yml PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/tests_change_fs.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] META: ran handlers TASK [include_role : linux-system-roles.storage] ******************************* task path: /tmp/tmp7ksfxpzz/tests/tests_change_fs.yml:11 TASK [linux-system-roles.storage : Set version specific variables] ************* task path: /tmp/tmp7ksfxpzz/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-crypto", "libblockdev-dm", "libblockdev-lvm", "libblockdev-mdraid", "libblockdev-swap"]}, "ansible_included_var_files": ["/tmp/tmp7ksfxpzz/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.storage : define an empty list of pools to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : define an empty list of volumes to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : include the appropriate provider tasks] ***** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:22 included: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [linux-system-roles.storage : get a list of rpm packages installed on host machine] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : make sure blivet is available] ************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:7 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: python3-blivet", "Installed: libblockdev-crypto", "Installed: libblockdev-dm", "Installed: libblockdev-lvm", "Installed: libblockdev-mdraid", "Installed: libblockdev-swap", "Installed: libblockdev-kbd-2.24-2.fc31.x86_64", "Installed: nspr-4.29.0-1.fc31.x86_64", "Installed: libblockdev-loop-2.24-2.fc31.x86_64", "Installed: nss-3.57.0-1.fc31.x86_64", "Installed: libblockdev-lvm-2.24-2.fc31.x86_64", "Installed: lsof-4.93.2-2.fc31.x86_64", "Installed: lvm2-2.03.09-1.fc31.x86_64", "Installed: nss-softokn-3.57.0-1.fc31.x86_64", "Installed: libblockdev-mdraid-2.24-2.fc31.x86_64", "Installed: nss-softokn-freebl-3.57.0-1.fc31.x86_64", "Installed: lvm2-libs-2.03.09-1.fc31.x86_64", "Installed: python3-gobject-base-3.34.0-3.fc31.x86_64", "Installed: libblockdev-mpath-2.24-2.fc31.x86_64", "Installed: nss-sysinit-3.57.0-1.fc31.x86_64", "Installed: device-mapper-event-1.02.171-1.fc31.x86_64", "Installed: nss-util-3.57.0-1.fc31.x86_64", "Installed: libblockdev-nvdimm-2.24-2.fc31.x86_64", "Installed: gobject-introspection-1.62.0-1.fc31.x86_64", "Installed: device-mapper-event-libs-1.02.171-1.fc31.x86_64", "Installed: userspace-rcu-0.11.1-2.fc31.x86_64", "Installed: libblockdev-part-2.24-2.fc31.x86_64", "Installed: lzo-2.08-16.fc31.x86_64", "Installed: volume_key-libs-0.3.12-4.fc31.x86_64", "Installed: dmraid-1.0.0.rc16-43.fc31.x86_64", "Installed: libblockdev-swap-2.24-2.fc31.x86_64", "Installed: libblockdev-utils-2.24-2.fc31.x86_64", "Installed: blivet-data-1:3.1.7-2.fc31.noarch", "Installed: device-mapper-multipath-0.8.0-3.fc31.x86_64", "Installed: device-mapper-multipath-libs-0.8.0-3.fc31.x86_64", "Installed: device-mapper-persistent-data-0.8.5-2.fc31.x86_64", "Installed: sgpio-1.2.0.10-24.fc31.x86_64", "Installed: bcache-tools-1.0.8-16.fc31.x86_64", "Installed: python3-blivet-1:3.1.7-2.fc31.noarch", "Installed: daxctl-libs-70.1-1.fc31.x86_64", "Installed: python3-blockdev-2.24-2.fc31.x86_64", "Installed: mdadm-4.1-5.fc31.x86_64", "Installed: python3-pyudev-0.21.0-11.fc31.noarch", "Installed: python3-pyparted-1:3.11.2-2.fc31.x86_64", "Installed: libbytesize-2.3-1.fc31.x86_64", "Installed: libaio-0.3.111-6.fc31.x86_64", "Installed: python3-bytesize-2.3-1.fc31.x86_64", "Installed: libblockdev-2.24-2.fc31.x86_64", "Installed: libblockdev-btrfs-2.24-2.fc31.x86_64", "Installed: btrfs-progs-5.7-4.fc31.x86_64", "Installed: libblockdev-crypto-2.24-2.fc31.x86_64", "Installed: ndctl-70.1-1.fc31.x86_64", "Installed: compat-readline5-5.2-34.fc31.x86_64", "Installed: gdisk-1.0.5-1.fc31.x86_64", "Installed: ndctl-libs-70.1-1.fc31.x86_64", "Installed: libblockdev-dm-2.24-2.fc31.x86_64", "Installed: dmraid-events-1.0.0.rc16-43.fc31.x86_64", "Installed: libblockdev-fs-2.24-2.fc31.x86_64"]} TASK [linux-system-roles.storage : initialize internal facts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools": [], "_storage_vol_defaults": [], "_storage_vol_pools": [], "_storage_vols_no_defaults": [], "_storage_vols_no_defaults_by_pool": {}, "_storage_vols_w_defaults": [], "_storage_volumes": []}, "changed": false} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [1/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:28 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [2/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:36 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [3/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:44 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [4/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:52 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [5/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:61 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [6/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:72 TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools": [] } TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes": [] } TASK [linux-system-roles.storage : get required packages] ********************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": []} TASK [linux-system-roles.storage : make sure required packages are installed] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [linux-system-roles.storage : manage the pools and volumes to match the specified state] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:104 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": []} TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:114 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "blivet_output": { "actions": [], "changed": false, "crypts": [], "failed": false, "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": [] } } TASK [linux-system-roles.storage : set the list of pools for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:117 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : set the list of volumes for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:121 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : remove obsolete mounts] ********************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:137 TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:148 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : set up new/current mounts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:153 TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:164 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : Manage /etc/crypttab to account for changes we just made] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:172 TASK [linux-system-roles.storage : Update facts] ******************************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:187 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_change_fs.yml:14 included: /tmp/tmp7ksfxpzz/tests/get_unused_disk.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Find unused disks in the system] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/get_unused_disk.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "disks": ["vda"]} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/get_unused_disk.yml:8 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"unused_disks": ["vda"]}, "changed": false} TASK [Exit playbook when there's not enough unused disks in the system] ******** task path: /tmp/tmp7ksfxpzz/tests/get_unused_disk.yml:12 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Print unused disks] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/get_unused_disk.yml:17 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "unused_disks": [ "vda" ] } TASK [Create a LVM logical volume with default fs_type] ************************ task path: /tmp/tmp7ksfxpzz/tests/tests_change_fs.yml:19 TASK [linux-system-roles.storage : Set version specific variables] ************* task path: /tmp/tmp7ksfxpzz/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-crypto", "libblockdev-dm", "libblockdev-lvm", "libblockdev-mdraid", "libblockdev-swap"]}, "ansible_included_var_files": ["/tmp/tmp7ksfxpzz/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.storage : define an empty list of pools to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : define an empty list of volumes to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : include the appropriate provider tasks] ***** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:22 included: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [linux-system-roles.storage : get a list of rpm packages installed on host machine] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : make sure blivet is available] ************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: python3-blivet", "Installed: libblockdev-crypto", "Installed: libblockdev-dm", "Installed: libblockdev-lvm", "Installed: libblockdev-mdraid", "Installed: libblockdev-swap"]} TASK [linux-system-roles.storage : initialize internal facts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools": [], "_storage_vol_defaults": [], "_storage_vol_pools": [], "_storage_vols_no_defaults": [], "_storage_vols_no_defaults_by_pool": {}, "_storage_vols_w_defaults": [], "_storage_volumes": []}, "changed": false} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [1/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:28 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'disks': [u'vda'], u'name': u'foo', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'5g'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "5g"}]}]}, "ansible_loop_var": "pool", "changed": false, "pool": {"disks": ["vda"], "name": "foo", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "5g"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [2/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:36 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'5g'}], u'type': u'lvm', u'encryption_key_size': None}, {u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'5g'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}], "_storage_vol_pools": ["foo"], "_storage_vols_no_defaults": [{"mount_point": "/opt/test1", "name": "test1", "size": "5g"}]}, "ansible_loop_var": "item", "changed": false, "item": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "5g"}]}, {"mount_point": "/opt/test1", "name": "test1", "size": "5g"}]} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [3/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:44 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'5g'}, {u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'fs_label': u'', u'raid_level': None, u'mount_device_identifier': u'uuid', u'fs_type': u'xfs', u'mount_options': u'defaults', u'encryption_luks_version': None, u'raid_spare_count': None, u'size': 0, u'mount_point': u'', u'encryption_password': None, u'encryption': False, u'raid_chunk_size': None, u'raid_device_count': None, u'state': u'present', u'mount_check': 0, u'mount_passno': 0, u'fs_overwrite_existing': True, u'type': u'lvm', u'encryption_key_size': None, u'fs_create_options': u''}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "5g", "state": "present", "type": "lvm"}]}, "ansible_index_var": "idx", "ansible_loop_var": "item", "changed": false, "idx": 0, "item": [{"mount_point": "/opt/test1", "name": "test1", "size": "5g"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}]} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [4/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:52 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'5g'}], u'type': u'lvm', u'encryption_key_size': None}) => {"ansible_facts": {"_storage_vols_no_defaults_by_pool": {"foo": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "5g", "state": "present", "type": "lvm"}]}}, "ansible_loop_var": "item", "changed": false, "item": {"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "5g"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [5/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:61 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'5g'}], u'type': u'lvm', u'encryption_key_size': None}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "5g", "state": "present", "type": "lvm"}]}]}, "ansible_index_var": "idx", "ansible_loop_var": "pool", "changed": false, "idx": 0, "pool": {"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "5g"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [6/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:72 TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [ { "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "5g", "state": "present", "type": "lvm" } ] } ] } TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes": [] } TASK [linux-system-roles.storage : get required packages] ********************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": ["lvm2", "xfsprogs"], "pools": [], "volumes": []} TASK [linux-system-roles.storage : make sure required packages are installed] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: lvm2", "Installed: xfsprogs"]} TASK [linux-system-roles.storage : manage the pools and volumes to match the specified state] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:104 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [{"action": "create format", "device": "/dev/vda", "fs_type": "lvmpv"}, {"action": "create device", "device": "/dev/foo", "fs_type": null}, {"action": "create device", "device": "/dev/mapper/foo-test1", "fs_type": null}, {"action": "create format", "device": "/dev/mapper/foo-test1", "fs_type": "xfs"}], "changed": true, "crypts": [], "leaves": ["/dev/sda1", "/dev/sr0", "/dev/vdb", "/dev/vdc", "/dev/mapper/foo-test1"], "mounts": [{"dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "/dev/mapper/foo-test1", "state": "mounted"}], "packages": ["xfsprogs", "e2fsprogs", "lvm2"], "pools": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"_device": "/dev/mapper/foo-test1", "_kernel_device": "/dev/dm-0", "_mount_id": "/dev/mapper/foo-test1", "_raw_device": "/dev/mapper/foo-test1", "_raw_kernel_device": "/dev/dm-0", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "5g", "state": "present", "type": "lvm"}]}], "volumes": []} TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:114 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "blivet_output": { "actions": [ { "action": "create format", "device": "/dev/vda", "fs_type": "lvmpv" }, { "action": "create device", "device": "/dev/foo", "fs_type": null }, { "action": "create device", "device": "/dev/mapper/foo-test1", "fs_type": null }, { "action": "create format", "device": "/dev/mapper/foo-test1", "fs_type": "xfs" } ], "changed": true, "crypts": [], "failed": false, "leaves": [ "/dev/sda1", "/dev/sr0", "/dev/vdb", "/dev/vdc", "/dev/mapper/foo-test1" ], "mounts": [ { "dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "/dev/mapper/foo-test1", "state": "mounted" } ], "packages": [ "xfsprogs", "e2fsprogs", "lvm2" ], "pools": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [ { "_device": "/dev/mapper/foo-test1", "_kernel_device": "/dev/dm-0", "_mount_id": "/dev/mapper/foo-test1", "_raw_device": "/dev/mapper/foo-test1", "_raw_kernel_device": "/dev/dm-0", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "5g", "state": "present", "type": "lvm" } ] } ], "volumes": [] } } TASK [linux-system-roles.storage : set the list of pools for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:117 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"_device": "/dev/mapper/foo-test1", "_kernel_device": "/dev/dm-0", "_mount_id": "/dev/mapper/foo-test1", "_raw_device": "/dev/mapper/foo-test1", "_raw_kernel_device": "/dev/dm-0", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "5g", "state": "present", "type": "lvm"}]}]}, "changed": false} TASK [linux-system-roles.storage : set the list of volumes for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:121 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : remove obsolete mounts] ********************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:137 TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:148 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [linux-system-roles.storage : set up new/current mounts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:153 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'src': u'/dev/mapper/foo-test1', u'state': u'mounted', u'dump': 0, u'path': u'/opt/test1', u'passno': 0, u'opts': u'defaults', u'fstype': u'xfs'}) => {"ansible_loop_var": "mount_info", "changed": true, "dump": "0", "fstab": "/etc/fstab", "fstype": "xfs", "mount_info": {"dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "/dev/mapper/foo-test1", "state": "mounted"}, "name": "/opt/test1", "opts": "defaults", "passno": "0", "src": "/dev/mapper/foo-test1"} TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:164 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [linux-system-roles.storage : Manage /etc/crypttab to account for changes we just made] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:172 TASK [linux-system-roles.storage : Update facts] ******************************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:187 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_change_fs.yml:31 included: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Print out pool information] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:1 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools_list": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [ { "_device": "/dev/mapper/foo-test1", "_kernel_device": "/dev/dm-0", "_mount_id": "/dev/mapper/foo-test1", "_raw_device": "/dev/mapper/foo-test1", "_raw_kernel_device": "/dev/dm-0", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "5g", "state": "present", "type": "lvm" } ] } ] } TASK [Print out volume information] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:6 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {} TASK [Collect info about the volumes.] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "info": {"/dev/mapper/foo-test1": {"fstype": "xfs", "label": "", "name": "/dev/mapper/foo-test1", "size": "5G", "type": "lvm", "uuid": "fe567288-226c-4ef4-ac35-75b38df7d83e"}, "/dev/sda": {"fstype": "", "label": "", "name": "/dev/sda", "size": "4G", "type": "disk", "uuid": ""}, "/dev/sda1": {"fstype": "ext4", "label": "", "name": "/dev/sda1", "size": "4G", "type": "partition", "uuid": "03e702b4-e165-4a39-88c9-9e210cd00434"}, "/dev/sr0": {"fstype": "iso9660", "label": "cidata", "name": "/dev/sr0", "size": "364K", "type": "rom", "uuid": "2020-10-31-11-56-45-00"}, "/dev/vda": {"fstype": "LVM2_member", "label": "", "name": "/dev/vda", "size": "10G", "type": "disk", "uuid": "vHIADu-DH9i-BGky-eIg5-KtS1-LHH5-v8ehdr"}, "/dev/vdb": {"fstype": "", "label": "", "name": "/dev/vdb", "size": "10G", "type": "disk", "uuid": ""}, "/dev/vdc": {"fstype": "", "label": "", "name": "/dev/vdc", "size": "10G", "type": "disk", "uuid": ""}}} TASK [Read the /etc/fstab file for volume existence] *************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:19 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/fstab"], "delta": "0:00:00.003374", "end": "2020-10-31 11:58:28.284501", "rc": 0, "start": "2020-10-31 11:58:28.281127", "stderr": "", "stderr_lines": [], "stdout": "\n#\n# /etc/fstab\n# Created by anaconda on Sat Oct 31 08:17:58 2020\n#\n# Accessible filesystems, by reference, are maintained under '/dev/disk/'.\n# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.\n#\n# After editing this file, run 'systemctl daemon-reload' to update systemd\n# units generated from this file.\n#\nUUID=03e702b4-e165-4a39-88c9-9e210cd00434 / ext4 defaults 1 1\n/dev/mapper/foo-test1 /opt/test1 xfs defaults 0 0", "stdout_lines": ["", "#", "# /etc/fstab", "# Created by anaconda on Sat Oct 31 08:17:58 2020", "#", "# Accessible filesystems, by reference, are maintained under '/dev/disk/'.", "# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.", "#", "# After editing this file, run 'systemctl daemon-reload' to update systemd", "# units generated from this file.", "#", "UUID=03e702b4-e165-4a39-88c9-9e210cd00434 / ext4 defaults 1 1", "/dev/mapper/foo-test1 /opt/test1 xfs defaults 0 0"]} TASK [Read the /etc/crypttab file] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/crypttab"], "delta": "0:00:00.002369", "end": "2020-10-31 11:58:28.599262", "rc": 0, "start": "2020-10-31 11:58:28.596893", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Verify the volumes listed in storage_pools were correctly managed] ******* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:32 included: /tmp/tmp7ksfxpzz/tests/test-verify-pool.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool.yml:5 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pool_tests": ["members", "volumes"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool.yml:17 included: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-pool-volumes.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:1 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_count": "1", "_storage_test_pool_pvs": [], "_storage_test_pool_pvs_lvm": ["/dev/vda"]}, "changed": false} TASK [Get the canonical device path for each member device] ******************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:7 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=/dev/vda) => {"ansible_loop_var": "pv", "changed": false, "device": "/dev/vda", "pv": "/dev/vda"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:16 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=/dev/vda) => {"ansible_facts": {"_storage_test_pool_pvs": ["/dev/vda"]}, "ansible_index_var": "idx", "ansible_loop_var": "item", "changed": false, "idx": 0, "item": "/dev/vda"} TASK [Verify PV count] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:23 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:29 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_type": "disk"}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:33 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_type": "disk"}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check the type of each PV] *********************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:41 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=/dev/vda) => { "ansible_loop_var": "pv", "changed": false, "msg": "All assertions passed", "pv": "/dev/vda" } TASK [Check raid] ************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:50 included: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [get information about RAID] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:6 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:12 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:16 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:20 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID active devices count] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:24 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID spare devices count] ****************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:30 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID metadata version] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:36 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:44 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_md_active_devices_re": null, "storage_test_md_metadata_version_re": null, "storage_test_md_spare_devices_re": null}, "changed": false} TASK [Check member encryption] ************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:53 included: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_crypttab_entries": "0", "_storage_test_expected_crypttab_key_file": "-"}, "changed": false} TASK [Validate pool member LUKS settings] ************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:8 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=/dev/vda) => {"_storage_test_pool_member_path": "/dev/vda", "ansible_loop_var": "_storage_test_pool_member_path", "changed": false, "skip_reason": "Conditional result was False"} TASK [Validate pool member crypttab entries] *********************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:15 included: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:1 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": []}, "changed": false} TASK [Check for /etc/crypttab entry] ******************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Validate the format of the crypttab entry] ******************************* task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:9 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check backing device of crypttab entry] ********************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:15 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check key file of crypttab entry] **************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:27 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:22 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null, "_storage_test_crypttab_key_file": null}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:56 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_count": null, "_storage_test_expected_pv_type": null, "_storage_test_pool_pvs": [], "_storage_test_pool_pvs_lvm": []}, "changed": false} TASK [verify the volumes] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-volumes.yml:3 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": true, "_storage_volume_tests": ["mount", "fstab", "fs", "device", "encryption", "md", "size"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:10 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Get expected mount device based on device type] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/foo-test1"}, "changed": false} TASK [Set some facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [{"block_available": 1290774, "block_size": 4096, "block_total": 1308160, "block_used": 17386, "device": "/dev/mapper/foo-test1", "fstype": "xfs", "inode_available": 2621437, "inode_total": 2621440, "inode_used": 3, "mount": "/opt/test1", "options": "rw,seclabel,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota", "size_available": 5287010304, "size_total": 5358223360, "uuid": "fe567288-226c-4ef4-ac35-75b38df7d83e"}], "storage_test_mount_expected_match_count": "1", "storage_test_mount_point_matches": [{"block_available": 1290774, "block_size": 4096, "block_total": 1308160, "block_used": 17386, "device": "/dev/mapper/foo-test1", "fstype": "xfs", "inode_available": 2621437, "inode_total": 2621440, "inode_used": 3, "mount": "/opt/test1", "options": "rw,seclabel,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota", "size_available": 5287010304, "size_total": 5358223360, "uuid": "fe567288-226c-4ef4-ac35-75b38df7d83e"}], "storage_test_swap_expected_matches": "0"}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:22 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:31 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:39 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [command] ***************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Gather swap info] ******************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:52 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify swap status] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:57 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Unset facts] ************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:67 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null, "storage_test_swap_expected_matches": null, "storage_test_swaps": null, "storage_test_sys_node": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": "1", "storage_test_fstab_expected_mount_point_matches": "1", "storage_test_fstab_id_matches": ["/dev/mapper/foo-test1 "], "storage_test_fstab_mount_point_matches": [" /opt/test1 "]}, "changed": false} TASK [Verify that the device identifier appears in /etc/fstab] ***************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:17 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": null, "storage_test_fstab_expected_mount_point_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [Verify fs type] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify fs label] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [See whether the device node is present] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "stat": {"atime": 1604145504.3052223, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "ctime": 1604145504.3052223, "dev": 5, "device_type": 64768, "executable": false, "exists": true, "gid": 6, "gr_name": "disk", "inode": 52263, "isblk": true, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mimetype": "inode/symlink", "mode": "0660", "mtime": 1604145504.3052223, "nlink": 1, "path": "/dev/mapper/foo-test1", "pw_name": "root", "readable": true, "rgrp": true, "roth": false, "rusr": true, "size": 0, "uid": 0, "version": null, "wgrp": true, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}} TASK [Verify the presence/absence of the device node] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "lvm"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:28 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:33 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Stat the LUKS device, if encrypted] ************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:3 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Collect LUKS info for this volume] *************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:10 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the presence/absence of the LUKS device node] ********************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:16 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify that the raw device is the same as the device if not encrypted] *** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:25 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about the LUKS volume if encrypted] **************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the LUKS volume's device type if encrypted] *********************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS version] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:42 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS key size] ***************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS cipher] ******************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:54 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:60 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": [], "_storage_test_expected_crypttab_entries": "0", "_storage_test_expected_crypttab_key_file": "-"}, "changed": false} TASK [Check for /etc/crypttab entry] ******************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:65 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Validate the format of the crypttab entry] ******************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:70 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check backing device of crypttab entry] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:76 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check key file of crypttab entry] **************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:82 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:88 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null, "_storage_test_expected_crypttab_entries": null, "_storage_test_expected_crypttab_key_file": null}, "changed": false} TASK [get information about RAID] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:7 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:13 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:17 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID active devices count] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:25 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID spare devices count] ****************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID metadata version] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [parse the actual size of the volume] ************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:3 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"bytes": 5368709120, "changed": false, "lvm": "5g", "parted": "5GiB", "size": "5 GiB"} TASK [parse the requested size of the volume] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:9 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"bytes": 5368709120, "changed": false, "lvm": "5g", "parted": "5GiB", "size": "5 GiB"} TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:15 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_actual_size": { "bytes": 5368709120, "changed": false, "failed": false, "lvm": "5g", "parted": "5GiB", "size": "5 GiB" } } TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_requested_size": { "bytes": 5368709120, "changed": false, "failed": false, "lvm": "5g", "parted": "5GiB", "size": "5 GiB" } } TASK [assert] ****************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:21 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:16 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:39 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_pool": null}, "changed": false} TASK [Verify the volumes with no pool were correctly managed] ****************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:46 TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:56 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_blkinfo": null, "storage_test_crypttab": null, "storage_test_fstab": null, "storage_test_volume": null}, "changed": false} TASK [Change the file system signature on the logical volume created above] **** task path: /tmp/tmp7ksfxpzz/tests/tests_change_fs.yml:33 TASK [linux-system-roles.storage : Set version specific variables] ************* task path: /tmp/tmp7ksfxpzz/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-crypto", "libblockdev-dm", "libblockdev-lvm", "libblockdev-mdraid", "libblockdev-swap"]}, "ansible_included_var_files": ["/tmp/tmp7ksfxpzz/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.storage : define an empty list of pools to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : define an empty list of volumes to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : include the appropriate provider tasks] ***** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:22 included: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [linux-system-roles.storage : get a list of rpm packages installed on host machine] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : make sure blivet is available] ************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: python3-blivet", "Installed: libblockdev-crypto", "Installed: libblockdev-dm", "Installed: libblockdev-lvm", "Installed: libblockdev-mdraid", "Installed: libblockdev-swap"]} TASK [linux-system-roles.storage : initialize internal facts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools": [], "_storage_vol_defaults": [], "_storage_vol_pools": [], "_storage_vols_no_defaults": [], "_storage_vols_no_defaults_by_pool": {}, "_storage_vols_w_defaults": [], "_storage_volumes": []}, "changed": false} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [1/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:28 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'disks': [u'vda'], u'name': u'foo', u'volumes': [{u'size': u'5g', u'fs_type': u'xfs', u'mount_point': u'/opt/test1', u'name': u'test1'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"fs_type": "xfs", "mount_point": "/opt/test1", "name": "test1", "size": "5g"}]}]}, "ansible_loop_var": "pool", "changed": false, "pool": {"disks": ["vda"], "name": "foo", "volumes": [{"fs_type": "xfs", "mount_point": "/opt/test1", "name": "test1", "size": "5g"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [2/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:36 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'size': u'5g', u'fs_type': u'xfs', u'mount_point': u'/opt/test1', u'name': u'test1'}], u'type': u'lvm', u'encryption_key_size': None}, {u'size': u'5g', u'fs_type': u'xfs', u'mount_point': u'/opt/test1', u'name': u'test1'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}], "_storage_vol_pools": ["foo"], "_storage_vols_no_defaults": [{"fs_type": "xfs", "mount_point": "/opt/test1", "name": "test1", "size": "5g"}]}, "ansible_loop_var": "item", "changed": false, "item": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"fs_type": "xfs", "mount_point": "/opt/test1", "name": "test1", "size": "5g"}]}, {"fs_type": "xfs", "mount_point": "/opt/test1", "name": "test1", "size": "5g"}]} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [3/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:44 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'size': u'5g', u'fs_type': u'xfs', u'mount_point': u'/opt/test1', u'name': u'test1'}, {u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'fs_label': u'', u'raid_level': None, u'mount_device_identifier': u'uuid', u'fs_type': u'xfs', u'mount_options': u'defaults', u'encryption_luks_version': None, u'raid_spare_count': None, u'size': 0, u'mount_point': u'', u'encryption_password': None, u'encryption': False, u'raid_chunk_size': None, u'raid_device_count': None, u'state': u'present', u'mount_check': 0, u'mount_passno': 0, u'fs_overwrite_existing': True, u'type': u'lvm', u'encryption_key_size': None, u'fs_create_options': u''}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "5g", "state": "present", "type": "lvm"}]}, "ansible_index_var": "idx", "ansible_loop_var": "item", "changed": false, "idx": 0, "item": [{"fs_type": "xfs", "mount_point": "/opt/test1", "name": "test1", "size": "5g"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}]} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [4/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:52 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'size': u'5g', u'fs_type': u'xfs', u'mount_point': u'/opt/test1', u'name': u'test1'}], u'type': u'lvm', u'encryption_key_size': None}) => {"ansible_facts": {"_storage_vols_no_defaults_by_pool": {"foo": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "5g", "state": "present", "type": "lvm"}]}}, "ansible_loop_var": "item", "changed": false, "item": {"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"fs_type": "xfs", "mount_point": "/opt/test1", "name": "test1", "size": "5g"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [5/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:61 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'size': u'5g', u'fs_type': u'xfs', u'mount_point': u'/opt/test1', u'name': u'test1'}], u'type': u'lvm', u'encryption_key_size': None}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "5g", "state": "present", "type": "lvm"}]}]}, "ansible_index_var": "idx", "ansible_loop_var": "pool", "changed": false, "idx": 0, "pool": {"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"fs_type": "xfs", "mount_point": "/opt/test1", "name": "test1", "size": "5g"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [6/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:72 TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [ { "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "5g", "state": "present", "type": "lvm" } ] } ] } TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes": [] } TASK [linux-system-roles.storage : get required packages] ********************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": ["lvm2", "xfsprogs"], "pools": [], "volumes": []} TASK [linux-system-roles.storage : make sure required packages are installed] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: lvm2", "Installed: xfsprogs"]} TASK [linux-system-roles.storage : manage the pools and volumes to match the specified state] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:104 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": ["/dev/sda1", "/dev/sr0", "/dev/mapper/foo-test1", "/dev/vdb", "/dev/vdc"], "mounts": [{"dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "/dev/mapper/foo-test1", "state": "mounted"}], "packages": ["e2fsprogs", "xfsprogs", "lvm2"], "pools": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"_device": "/dev/mapper/foo-test1", "_kernel_device": "/dev/dm-0", "_mount_id": "/dev/mapper/foo-test1", "_raw_device": "/dev/mapper/foo-test1", "_raw_kernel_device": "/dev/dm-0", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "5g", "state": "present", "type": "lvm"}]}], "volumes": []} TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:114 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "blivet_output": { "actions": [], "changed": false, "crypts": [], "failed": false, "leaves": [ "/dev/sda1", "/dev/sr0", "/dev/mapper/foo-test1", "/dev/vdb", "/dev/vdc" ], "mounts": [ { "dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "/dev/mapper/foo-test1", "state": "mounted" } ], "packages": [ "e2fsprogs", "xfsprogs", "lvm2" ], "pools": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [ { "_device": "/dev/mapper/foo-test1", "_kernel_device": "/dev/dm-0", "_mount_id": "/dev/mapper/foo-test1", "_raw_device": "/dev/mapper/foo-test1", "_raw_kernel_device": "/dev/dm-0", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "5g", "state": "present", "type": "lvm" } ] } ], "volumes": [] } } TASK [linux-system-roles.storage : set the list of pools for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:117 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"_device": "/dev/mapper/foo-test1", "_kernel_device": "/dev/dm-0", "_mount_id": "/dev/mapper/foo-test1", "_raw_device": "/dev/mapper/foo-test1", "_raw_kernel_device": "/dev/dm-0", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "5g", "state": "present", "type": "lvm"}]}]}, "changed": false} TASK [linux-system-roles.storage : set the list of volumes for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:121 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : remove obsolete mounts] ********************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:137 TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:148 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [linux-system-roles.storage : set up new/current mounts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:153 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'src': u'/dev/mapper/foo-test1', u'state': u'mounted', u'dump': 0, u'path': u'/opt/test1', u'passno': 0, u'opts': u'defaults', u'fstype': u'xfs'}) => {"ansible_loop_var": "mount_info", "changed": false, "dump": "0", "fstab": "/etc/fstab", "fstype": "xfs", "mount_info": {"dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "/dev/mapper/foo-test1", "state": "mounted"}, "name": "/opt/test1", "opts": "defaults", "passno": "0", "src": "/dev/mapper/foo-test1"} TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:164 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [linux-system-roles.storage : Manage /etc/crypttab to account for changes we just made] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:172 TASK [linux-system-roles.storage : Update facts] ******************************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:187 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_change_fs.yml:46 included: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Print out pool information] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:1 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools_list": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [ { "_device": "/dev/mapper/foo-test1", "_kernel_device": "/dev/dm-0", "_mount_id": "/dev/mapper/foo-test1", "_raw_device": "/dev/mapper/foo-test1", "_raw_kernel_device": "/dev/dm-0", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "5g", "state": "present", "type": "lvm" } ] } ] } TASK [Print out volume information] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:6 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {} TASK [Collect info about the volumes.] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "info": {"/dev/mapper/foo-test1": {"fstype": "xfs", "label": "", "name": "/dev/mapper/foo-test1", "size": "5G", "type": "lvm", "uuid": "fe567288-226c-4ef4-ac35-75b38df7d83e"}, "/dev/sda": {"fstype": "", "label": "", "name": "/dev/sda", "size": "4G", "type": "disk", "uuid": ""}, "/dev/sda1": {"fstype": "ext4", "label": "", "name": "/dev/sda1", "size": "4G", "type": "partition", "uuid": "03e702b4-e165-4a39-88c9-9e210cd00434"}, "/dev/sr0": {"fstype": "iso9660", "label": "cidata", "name": "/dev/sr0", "size": "364K", "type": "rom", "uuid": "2020-10-31-11-56-45-00"}, "/dev/vda": {"fstype": "LVM2_member", "label": "", "name": "/dev/vda", "size": "10G", "type": "disk", "uuid": "vHIADu-DH9i-BGky-eIg5-KtS1-LHH5-v8ehdr"}, "/dev/vdb": {"fstype": "", "label": "", "name": "/dev/vdb", "size": "10G", "type": "disk", "uuid": ""}, "/dev/vdc": {"fstype": "", "label": "", "name": "/dev/vdc", "size": "10G", "type": "disk", "uuid": ""}}} TASK [Read the /etc/fstab file for volume existence] *************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:19 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/fstab"], "delta": "0:00:00.002604", "end": "2020-10-31 11:58:48.319650", "rc": 0, "start": "2020-10-31 11:58:48.317046", "stderr": "", "stderr_lines": [], "stdout": "\n#\n# /etc/fstab\n# Created by anaconda on Sat Oct 31 08:17:58 2020\n#\n# Accessible filesystems, by reference, are maintained under '/dev/disk/'.\n# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.\n#\n# After editing this file, run 'systemctl daemon-reload' to update systemd\n# units generated from this file.\n#\nUUID=03e702b4-e165-4a39-88c9-9e210cd00434 / ext4 defaults 1 1\n/dev/mapper/foo-test1 /opt/test1 xfs defaults 0 0", "stdout_lines": ["", "#", "# /etc/fstab", "# Created by anaconda on Sat Oct 31 08:17:58 2020", "#", "# Accessible filesystems, by reference, are maintained under '/dev/disk/'.", "# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.", "#", "# After editing this file, run 'systemctl daemon-reload' to update systemd", "# units generated from this file.", "#", "UUID=03e702b4-e165-4a39-88c9-9e210cd00434 / ext4 defaults 1 1", "/dev/mapper/foo-test1 /opt/test1 xfs defaults 0 0"]} TASK [Read the /etc/crypttab file] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/crypttab"], "delta": "0:00:00.002330", "end": "2020-10-31 11:58:48.647307", "rc": 0, "start": "2020-10-31 11:58:48.644977", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Verify the volumes listed in storage_pools were correctly managed] ******* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:32 [WARNING]: The loop variable 'storage_test_pool' is already in use. You should set the `loop_var` value in the `loop_control` option for the task to something else to avoid variable collisions and unexpected behavior. included: /tmp/tmp7ksfxpzz/tests/test-verify-pool.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool.yml:5 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pool_tests": ["members", "volumes"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool.yml:17 included: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-pool-volumes.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:1 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_count": "1", "_storage_test_pool_pvs": [], "_storage_test_pool_pvs_lvm": ["/dev/vda"]}, "changed": false} TASK [Get the canonical device path for each member device] ******************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:7 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=/dev/vda) => {"ansible_loop_var": "pv", "changed": false, "device": "/dev/vda", "pv": "/dev/vda"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:16 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=/dev/vda) => {"ansible_facts": {"_storage_test_pool_pvs": ["/dev/vda"]}, "ansible_index_var": "idx", "ansible_loop_var": "item", "changed": false, "idx": 0, "item": "/dev/vda"} TASK [Verify PV count] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:23 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:29 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_type": "disk"}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:33 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_type": "disk"}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check the type of each PV] *********************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:41 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=/dev/vda) => { "ansible_loop_var": "pv", "changed": false, "msg": "All assertions passed", "pv": "/dev/vda" } TASK [Check raid] ************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:50 included: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [get information about RAID] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:6 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:12 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:16 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:20 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID active devices count] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:24 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID spare devices count] ****************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:30 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID metadata version] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:36 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:44 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_md_active_devices_re": null, "storage_test_md_metadata_version_re": null, "storage_test_md_spare_devices_re": null}, "changed": false} TASK [Check member encryption] ************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:53 included: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_crypttab_entries": "0", "_storage_test_expected_crypttab_key_file": "-"}, "changed": false} TASK [Validate pool member LUKS settings] ************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:8 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=/dev/vda) => {"_storage_test_pool_member_path": "/dev/vda", "ansible_loop_var": "_storage_test_pool_member_path", "changed": false, "skip_reason": "Conditional result was False"} TASK [Validate pool member crypttab entries] *********************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:15 included: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:1 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": []}, "changed": false} TASK [Check for /etc/crypttab entry] ******************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Validate the format of the crypttab entry] ******************************* task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:9 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check backing device of crypttab entry] ********************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:15 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check key file of crypttab entry] **************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:27 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:22 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null, "_storage_test_crypttab_key_file": null}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:56 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_count": null, "_storage_test_expected_pv_type": null, "_storage_test_pool_pvs": [], "_storage_test_pool_pvs_lvm": []}, "changed": false} TASK [verify the volumes] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-volumes.yml:3 [WARNING]: The loop variable 'storage_test_volume' is already in use. You should set the `loop_var` value in the `loop_control` option for the task to something else to avoid variable collisions and unexpected behavior. included: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": true, "_storage_volume_tests": ["mount", "fstab", "fs", "device", "encryption", "md", "size"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:10 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Get expected mount device based on device type] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/foo-test1"}, "changed": false} TASK [Set some facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [{"block_available": 1290774, "block_size": 4096, "block_total": 1308160, "block_used": 17386, "device": "/dev/mapper/foo-test1", "fstype": "xfs", "inode_available": 2621437, "inode_total": 2621440, "inode_used": 3, "mount": "/opt/test1", "options": "rw,seclabel,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota", "size_available": 5287010304, "size_total": 5358223360, "uuid": "fe567288-226c-4ef4-ac35-75b38df7d83e"}], "storage_test_mount_expected_match_count": "1", "storage_test_mount_point_matches": [{"block_available": 1290774, "block_size": 4096, "block_total": 1308160, "block_used": 17386, "device": "/dev/mapper/foo-test1", "fstype": "xfs", "inode_available": 2621437, "inode_total": 2621440, "inode_used": 3, "mount": "/opt/test1", "options": "rw,seclabel,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota", "size_available": 5287010304, "size_total": 5358223360, "uuid": "fe567288-226c-4ef4-ac35-75b38df7d83e"}], "storage_test_swap_expected_matches": "0"}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:22 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:31 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:39 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [command] ***************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Gather swap info] ******************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:52 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify swap status] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:57 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Unset facts] ************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:67 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null, "storage_test_swap_expected_matches": null, "storage_test_swaps": null, "storage_test_sys_node": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": "1", "storage_test_fstab_expected_mount_point_matches": "1", "storage_test_fstab_id_matches": ["/dev/mapper/foo-test1 "], "storage_test_fstab_mount_point_matches": [" /opt/test1 "]}, "changed": false} TASK [Verify that the device identifier appears in /etc/fstab] ***************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:17 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": null, "storage_test_fstab_expected_mount_point_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [Verify fs type] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify fs label] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [See whether the device node is present] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "stat": {"atime": 1604145504.3052223, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "ctime": 1604145504.3052223, "dev": 5, "device_type": 64768, "executable": false, "exists": true, "gid": 6, "gr_name": "disk", "inode": 52263, "isblk": true, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mimetype": "inode/symlink", "mode": "0660", "mtime": 1604145504.3052223, "nlink": 1, "path": "/dev/mapper/foo-test1", "pw_name": "root", "readable": true, "rgrp": true, "roth": false, "rusr": true, "size": 0, "uid": 0, "version": null, "wgrp": true, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}} TASK [Verify the presence/absence of the device node] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "lvm"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:28 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:33 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Stat the LUKS device, if encrypted] ************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:3 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Collect LUKS info for this volume] *************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:10 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the presence/absence of the LUKS device node] ********************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:16 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify that the raw device is the same as the device if not encrypted] *** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:25 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about the LUKS volume if encrypted] **************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the LUKS volume's device type if encrypted] *********************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS version] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:42 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS key size] ***************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS cipher] ******************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:54 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:60 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": [], "_storage_test_expected_crypttab_entries": "0", "_storage_test_expected_crypttab_key_file": "-"}, "changed": false} TASK [Check for /etc/crypttab entry] ******************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:65 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Validate the format of the crypttab entry] ******************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:70 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check backing device of crypttab entry] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:76 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check key file of crypttab entry] **************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:82 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:88 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null, "_storage_test_expected_crypttab_entries": null, "_storage_test_expected_crypttab_key_file": null}, "changed": false} TASK [get information about RAID] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:7 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:13 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:17 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID active devices count] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:25 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID spare devices count] ****************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID metadata version] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [parse the actual size of the volume] ************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:3 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"bytes": 5368709120, "changed": false, "lvm": "5g", "parted": "5GiB", "size": "5 GiB"} TASK [parse the requested size of the volume] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:9 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"bytes": 5368709120, "changed": false, "lvm": "5g", "parted": "5GiB", "size": "5 GiB"} TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:15 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_actual_size": { "bytes": 5368709120, "changed": false, "failed": false, "lvm": "5g", "parted": "5GiB", "size": "5 GiB" } } TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_requested_size": { "bytes": 5368709120, "changed": false, "failed": false, "lvm": "5g", "parted": "5GiB", "size": "5 GiB" } } TASK [assert] ****************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:21 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:16 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:39 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_pool": null}, "changed": false} TASK [Verify the volumes with no pool were correctly managed] ****************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:46 TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:56 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_blkinfo": null, "storage_test_crypttab": null, "storage_test_fstab": null, "storage_test_volume": null}, "changed": false} TASK [Repeat the previous invocation to verify idempotence] ******************** task path: /tmp/tmp7ksfxpzz/tests/tests_change_fs.yml:48 TASK [linux-system-roles.storage : Set version specific variables] ************* task path: /tmp/tmp7ksfxpzz/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-crypto", "libblockdev-dm", "libblockdev-lvm", "libblockdev-mdraid", "libblockdev-swap"]}, "ansible_included_var_files": ["/tmp/tmp7ksfxpzz/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.storage : define an empty list of pools to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : define an empty list of volumes to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : include the appropriate provider tasks] ***** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:22 included: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [linux-system-roles.storage : get a list of rpm packages installed on host machine] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : make sure blivet is available] ************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: python3-blivet", "Installed: libblockdev-crypto", "Installed: libblockdev-dm", "Installed: libblockdev-lvm", "Installed: libblockdev-mdraid", "Installed: libblockdev-swap"]} TASK [linux-system-roles.storage : initialize internal facts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools": [], "_storage_vol_defaults": [], "_storage_vol_pools": [], "_storage_vols_no_defaults": [], "_storage_vols_no_defaults_by_pool": {}, "_storage_vols_w_defaults": [], "_storage_volumes": []}, "changed": false} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [1/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:28 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'disks': [u'vda'], u'name': u'foo', u'volumes': [{u'size': u'5g', u'fs_type': u'xfs', u'mount_point': u'/opt/test1', u'name': u'test1'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"fs_type": "xfs", "mount_point": "/opt/test1", "name": "test1", "size": "5g"}]}]}, "ansible_loop_var": "pool", "changed": false, "pool": {"disks": ["vda"], "name": "foo", "volumes": [{"fs_type": "xfs", "mount_point": "/opt/test1", "name": "test1", "size": "5g"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [2/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:36 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'size': u'5g', u'fs_type': u'xfs', u'mount_point': u'/opt/test1', u'name': u'test1'}], u'type': u'lvm', u'encryption_key_size': None}, {u'size': u'5g', u'fs_type': u'xfs', u'mount_point': u'/opt/test1', u'name': u'test1'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}], "_storage_vol_pools": ["foo"], "_storage_vols_no_defaults": [{"fs_type": "xfs", "mount_point": "/opt/test1", "name": "test1", "size": "5g"}]}, "ansible_loop_var": "item", "changed": false, "item": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"fs_type": "xfs", "mount_point": "/opt/test1", "name": "test1", "size": "5g"}]}, {"fs_type": "xfs", "mount_point": "/opt/test1", "name": "test1", "size": "5g"}]} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [3/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:44 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'size': u'5g', u'fs_type': u'xfs', u'mount_point': u'/opt/test1', u'name': u'test1'}, {u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'fs_label': u'', u'raid_level': None, u'mount_device_identifier': u'uuid', u'fs_type': u'xfs', u'mount_options': u'defaults', u'encryption_luks_version': None, u'raid_spare_count': None, u'size': 0, u'mount_point': u'', u'encryption_password': None, u'encryption': False, u'raid_chunk_size': None, u'raid_device_count': None, u'state': u'present', u'mount_check': 0, u'mount_passno': 0, u'fs_overwrite_existing': True, u'type': u'lvm', u'encryption_key_size': None, u'fs_create_options': u''}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "5g", "state": "present", "type": "lvm"}]}, "ansible_index_var": "idx", "ansible_loop_var": "item", "changed": false, "idx": 0, "item": [{"fs_type": "xfs", "mount_point": "/opt/test1", "name": "test1", "size": "5g"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}]} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [4/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:52 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'size': u'5g', u'fs_type': u'xfs', u'mount_point': u'/opt/test1', u'name': u'test1'}], u'type': u'lvm', u'encryption_key_size': None}) => {"ansible_facts": {"_storage_vols_no_defaults_by_pool": {"foo": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "5g", "state": "present", "type": "lvm"}]}}, "ansible_loop_var": "item", "changed": false, "item": {"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"fs_type": "xfs", "mount_point": "/opt/test1", "name": "test1", "size": "5g"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [5/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:61 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'size': u'5g', u'fs_type': u'xfs', u'mount_point': u'/opt/test1', u'name': u'test1'}], u'type': u'lvm', u'encryption_key_size': None}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "5g", "state": "present", "type": "lvm"}]}]}, "ansible_index_var": "idx", "ansible_loop_var": "pool", "changed": false, "idx": 0, "pool": {"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"fs_type": "xfs", "mount_point": "/opt/test1", "name": "test1", "size": "5g"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [6/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:72 TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [ { "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "5g", "state": "present", "type": "lvm" } ] } ] } TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes": [] } TASK [linux-system-roles.storage : get required packages] ********************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": ["lvm2", "xfsprogs"], "pools": [], "volumes": []} TASK [linux-system-roles.storage : make sure required packages are installed] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: lvm2", "Installed: xfsprogs"]} TASK [linux-system-roles.storage : manage the pools and volumes to match the specified state] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:104 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": ["/dev/sda1", "/dev/sr0", "/dev/mapper/foo-test1", "/dev/vdb", "/dev/vdc"], "mounts": [{"dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "/dev/mapper/foo-test1", "state": "mounted"}], "packages": ["xfsprogs", "lvm2", "e2fsprogs"], "pools": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"_device": "/dev/mapper/foo-test1", "_kernel_device": "/dev/dm-0", "_mount_id": "/dev/mapper/foo-test1", "_raw_device": "/dev/mapper/foo-test1", "_raw_kernel_device": "/dev/dm-0", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "5g", "state": "present", "type": "lvm"}]}], "volumes": []} TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:114 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "blivet_output": { "actions": [], "changed": false, "crypts": [], "failed": false, "leaves": [ "/dev/sda1", "/dev/sr0", "/dev/mapper/foo-test1", "/dev/vdb", "/dev/vdc" ], "mounts": [ { "dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "/dev/mapper/foo-test1", "state": "mounted" } ], "packages": [ "xfsprogs", "lvm2", "e2fsprogs" ], "pools": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [ { "_device": "/dev/mapper/foo-test1", "_kernel_device": "/dev/dm-0", "_mount_id": "/dev/mapper/foo-test1", "_raw_device": "/dev/mapper/foo-test1", "_raw_kernel_device": "/dev/dm-0", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "5g", "state": "present", "type": "lvm" } ] } ], "volumes": [] } } TASK [linux-system-roles.storage : set the list of pools for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:117 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"_device": "/dev/mapper/foo-test1", "_kernel_device": "/dev/dm-0", "_mount_id": "/dev/mapper/foo-test1", "_raw_device": "/dev/mapper/foo-test1", "_raw_kernel_device": "/dev/dm-0", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "5g", "state": "present", "type": "lvm"}]}]}, "changed": false} TASK [linux-system-roles.storage : set the list of volumes for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:121 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : remove obsolete mounts] ********************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:137 TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:148 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [linux-system-roles.storage : set up new/current mounts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:153 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'src': u'/dev/mapper/foo-test1', u'state': u'mounted', u'dump': 0, u'path': u'/opt/test1', u'passno': 0, u'opts': u'defaults', u'fstype': u'xfs'}) => {"ansible_loop_var": "mount_info", "changed": false, "dump": "0", "fstab": "/etc/fstab", "fstype": "xfs", "mount_info": {"dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "/dev/mapper/foo-test1", "state": "mounted"}, "name": "/opt/test1", "opts": "defaults", "passno": "0", "src": "/dev/mapper/foo-test1"} TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:164 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [linux-system-roles.storage : Manage /etc/crypttab to account for changes we just made] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:172 TASK [linux-system-roles.storage : Update facts] ******************************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:187 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_change_fs.yml:61 included: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Print out pool information] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:1 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools_list": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [ { "_device": "/dev/mapper/foo-test1", "_kernel_device": "/dev/dm-0", "_mount_id": "/dev/mapper/foo-test1", "_raw_device": "/dev/mapper/foo-test1", "_raw_kernel_device": "/dev/dm-0", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "5g", "state": "present", "type": "lvm" } ] } ] } TASK [Print out volume information] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:6 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {} TASK [Collect info about the volumes.] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "info": {"/dev/mapper/foo-test1": {"fstype": "xfs", "label": "", "name": "/dev/mapper/foo-test1", "size": "5G", "type": "lvm", "uuid": "fe567288-226c-4ef4-ac35-75b38df7d83e"}, "/dev/sda": {"fstype": "", "label": "", "name": "/dev/sda", "size": "4G", "type": "disk", "uuid": ""}, "/dev/sda1": {"fstype": "ext4", "label": "", "name": "/dev/sda1", "size": "4G", "type": "partition", "uuid": "03e702b4-e165-4a39-88c9-9e210cd00434"}, "/dev/sr0": {"fstype": "iso9660", "label": "cidata", "name": "/dev/sr0", "size": "364K", "type": "rom", "uuid": "2020-10-31-11-56-45-00"}, "/dev/vda": {"fstype": "LVM2_member", "label": "", "name": "/dev/vda", "size": "10G", "type": "disk", "uuid": "vHIADu-DH9i-BGky-eIg5-KtS1-LHH5-v8ehdr"}, "/dev/vdb": {"fstype": "", "label": "", "name": "/dev/vdb", "size": "10G", "type": "disk", "uuid": ""}, "/dev/vdc": {"fstype": "", "label": "", "name": "/dev/vdc", "size": "10G", "type": "disk", "uuid": ""}}} TASK [Read the /etc/fstab file for volume existence] *************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:19 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/fstab"], "delta": "0:00:00.002546", "end": "2020-10-31 11:59:07.763890", "rc": 0, "start": "2020-10-31 11:59:07.761344", "stderr": "", "stderr_lines": [], "stdout": "\n#\n# /etc/fstab\n# Created by anaconda on Sat Oct 31 08:17:58 2020\n#\n# Accessible filesystems, by reference, are maintained under '/dev/disk/'.\n# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.\n#\n# After editing this file, run 'systemctl daemon-reload' to update systemd\n# units generated from this file.\n#\nUUID=03e702b4-e165-4a39-88c9-9e210cd00434 / ext4 defaults 1 1\n/dev/mapper/foo-test1 /opt/test1 xfs defaults 0 0", "stdout_lines": ["", "#", "# /etc/fstab", "# Created by anaconda on Sat Oct 31 08:17:58 2020", "#", "# Accessible filesystems, by reference, are maintained under '/dev/disk/'.", "# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.", "#", "# After editing this file, run 'systemctl daemon-reload' to update systemd", "# units generated from this file.", "#", "UUID=03e702b4-e165-4a39-88c9-9e210cd00434 / ext4 defaults 1 1", "/dev/mapper/foo-test1 /opt/test1 xfs defaults 0 0"]} TASK [Read the /etc/crypttab file] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/crypttab"], "delta": "0:00:00.002621", "end": "2020-10-31 11:59:08.087050", "rc": 0, "start": "2020-10-31 11:59:08.084429", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Verify the volumes listed in storage_pools were correctly managed] ******* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:32 [WARNING]: The loop variable 'storage_test_pool' is already in use. You should set the `loop_var` value in the `loop_control` option for the task to something else to avoid variable collisions and unexpected behavior. included: /tmp/tmp7ksfxpzz/tests/test-verify-pool.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool.yml:5 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pool_tests": ["members", "volumes"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool.yml:17 included: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-pool-volumes.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:1 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_count": "1", "_storage_test_pool_pvs": [], "_storage_test_pool_pvs_lvm": ["/dev/vda"]}, "changed": false} TASK [Get the canonical device path for each member device] ******************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:7 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=/dev/vda) => {"ansible_loop_var": "pv", "changed": false, "device": "/dev/vda", "pv": "/dev/vda"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:16 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=/dev/vda) => {"ansible_facts": {"_storage_test_pool_pvs": ["/dev/vda"]}, "ansible_index_var": "idx", "ansible_loop_var": "item", "changed": false, "idx": 0, "item": "/dev/vda"} TASK [Verify PV count] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:23 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:29 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_type": "disk"}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:33 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_type": "disk"}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check the type of each PV] *********************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:41 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=/dev/vda) => { "ansible_loop_var": "pv", "changed": false, "msg": "All assertions passed", "pv": "/dev/vda" } TASK [Check raid] ************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:50 included: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [get information about RAID] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:6 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:12 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:16 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:20 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID active devices count] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:24 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID spare devices count] ****************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:30 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID metadata version] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:36 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:44 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_md_active_devices_re": null, "storage_test_md_metadata_version_re": null, "storage_test_md_spare_devices_re": null}, "changed": false} TASK [Check member encryption] ************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:53 included: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_crypttab_entries": "0", "_storage_test_expected_crypttab_key_file": "-"}, "changed": false} TASK [Validate pool member LUKS settings] ************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:8 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=/dev/vda) => {"_storage_test_pool_member_path": "/dev/vda", "ansible_loop_var": "_storage_test_pool_member_path", "changed": false, "skip_reason": "Conditional result was False"} TASK [Validate pool member crypttab entries] *********************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:15 included: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:1 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": []}, "changed": false} TASK [Check for /etc/crypttab entry] ******************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Validate the format of the crypttab entry] ******************************* task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:9 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check backing device of crypttab entry] ********************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:15 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check key file of crypttab entry] **************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:27 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:22 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null, "_storage_test_crypttab_key_file": null}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:56 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_count": null, "_storage_test_expected_pv_type": null, "_storage_test_pool_pvs": [], "_storage_test_pool_pvs_lvm": []}, "changed": false} TASK [verify the volumes] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-volumes.yml:3 [WARNING]: The loop variable 'storage_test_volume' is already in use. You should set the `loop_var` value in the `loop_control` option for the task to something else to avoid variable collisions and unexpected behavior. included: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": true, "_storage_volume_tests": ["mount", "fstab", "fs", "device", "encryption", "md", "size"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:10 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Get expected mount device based on device type] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/foo-test1"}, "changed": false} TASK [Set some facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [{"block_available": 1290774, "block_size": 4096, "block_total": 1308160, "block_used": 17386, "device": "/dev/mapper/foo-test1", "fstype": "xfs", "inode_available": 2621437, "inode_total": 2621440, "inode_used": 3, "mount": "/opt/test1", "options": "rw,seclabel,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota", "size_available": 5287010304, "size_total": 5358223360, "uuid": "fe567288-226c-4ef4-ac35-75b38df7d83e"}], "storage_test_mount_expected_match_count": "1", "storage_test_mount_point_matches": [{"block_available": 1290774, "block_size": 4096, "block_total": 1308160, "block_used": 17386, "device": "/dev/mapper/foo-test1", "fstype": "xfs", "inode_available": 2621437, "inode_total": 2621440, "inode_used": 3, "mount": "/opt/test1", "options": "rw,seclabel,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota", "size_available": 5287010304, "size_total": 5358223360, "uuid": "fe567288-226c-4ef4-ac35-75b38df7d83e"}], "storage_test_swap_expected_matches": "0"}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:22 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:31 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:39 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [command] ***************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Gather swap info] ******************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:52 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify swap status] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:57 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Unset facts] ************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:67 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null, "storage_test_swap_expected_matches": null, "storage_test_swaps": null, "storage_test_sys_node": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": "1", "storage_test_fstab_expected_mount_point_matches": "1", "storage_test_fstab_id_matches": ["/dev/mapper/foo-test1 "], "storage_test_fstab_mount_point_matches": [" /opt/test1 "]}, "changed": false} TASK [Verify that the device identifier appears in /etc/fstab] ***************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:17 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": null, "storage_test_fstab_expected_mount_point_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [Verify fs type] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify fs label] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [See whether the device node is present] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "stat": {"atime": 1604145504.3052223, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "ctime": 1604145504.3052223, "dev": 5, "device_type": 64768, "executable": false, "exists": true, "gid": 6, "gr_name": "disk", "inode": 52263, "isblk": true, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mimetype": "inode/symlink", "mode": "0660", "mtime": 1604145504.3052223, "nlink": 1, "path": "/dev/mapper/foo-test1", "pw_name": "root", "readable": true, "rgrp": true, "roth": false, "rusr": true, "size": 0, "uid": 0, "version": null, "wgrp": true, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}} TASK [Verify the presence/absence of the device node] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "lvm"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:28 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:33 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Stat the LUKS device, if encrypted] ************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:3 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Collect LUKS info for this volume] *************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:10 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the presence/absence of the LUKS device node] ********************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:16 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify that the raw device is the same as the device if not encrypted] *** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:25 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about the LUKS volume if encrypted] **************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the LUKS volume's device type if encrypted] *********************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS version] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:42 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS key size] ***************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS cipher] ******************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:54 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:60 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": [], "_storage_test_expected_crypttab_entries": "0", "_storage_test_expected_crypttab_key_file": "-"}, "changed": false} TASK [Check for /etc/crypttab entry] ******************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:65 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Validate the format of the crypttab entry] ******************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:70 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check backing device of crypttab entry] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:76 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check key file of crypttab entry] **************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:82 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:88 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null, "_storage_test_expected_crypttab_entries": null, "_storage_test_expected_crypttab_key_file": null}, "changed": false} TASK [get information about RAID] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:7 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:13 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:17 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID active devices count] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:25 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID spare devices count] ****************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID metadata version] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [parse the actual size of the volume] ************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:3 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"bytes": 5368709120, "changed": false, "lvm": "5g", "parted": "5GiB", "size": "5 GiB"} TASK [parse the requested size of the volume] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:9 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"bytes": 5368709120, "changed": false, "lvm": "5g", "parted": "5GiB", "size": "5 GiB"} TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:15 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_actual_size": { "bytes": 5368709120, "changed": false, "failed": false, "lvm": "5g", "parted": "5GiB", "size": "5 GiB" } } TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_requested_size": { "bytes": 5368709120, "changed": false, "failed": false, "lvm": "5g", "parted": "5GiB", "size": "5 GiB" } } TASK [assert] ****************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:21 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:16 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:39 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_pool": null}, "changed": false} TASK [Verify the volumes with no pool were correctly managed] ****************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:46 TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:56 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_blkinfo": null, "storage_test_crypttab": null, "storage_test_fstab": null, "storage_test_volume": null}, "changed": false} TASK [Clean up] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_change_fs.yml:63 TASK [linux-system-roles.storage : Set version specific variables] ************* task path: /tmp/tmp7ksfxpzz/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-crypto", "libblockdev-dm", "libblockdev-lvm", "libblockdev-mdraid", "libblockdev-swap"]}, "ansible_included_var_files": ["/tmp/tmp7ksfxpzz/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.storage : define an empty list of pools to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : define an empty list of volumes to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : include the appropriate provider tasks] ***** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:22 included: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [linux-system-roles.storage : get a list of rpm packages installed on host machine] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : make sure blivet is available] ************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: python3-blivet", "Installed: libblockdev-crypto", "Installed: libblockdev-dm", "Installed: libblockdev-lvm", "Installed: libblockdev-mdraid", "Installed: libblockdev-swap"]} TASK [linux-system-roles.storage : initialize internal facts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools": [], "_storage_vol_defaults": [], "_storage_vol_pools": [], "_storage_vols_no_defaults": [], "_storage_vols_no_defaults_by_pool": {}, "_storage_vols_w_defaults": [], "_storage_volumes": []}, "changed": false} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [1/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:28 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'state': u'absent', u'disks': [u'vda'], u'name': u'foo', u'volumes': [{u'size': u'5g', u'fs_type': u'xfs', u'mount_point': u'/opt/test1', u'name': u'test1'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "absent", "type": "lvm", "volumes": [{"fs_type": "xfs", "mount_point": "/opt/test1", "name": "test1", "size": "5g"}]}]}, "ansible_loop_var": "pool", "changed": false, "pool": {"disks": ["vda"], "name": "foo", "state": "absent", "volumes": [{"fs_type": "xfs", "mount_point": "/opt/test1", "name": "test1", "size": "5g"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [2/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:36 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'absent', u'volumes': [{u'size': u'5g', u'fs_type': u'xfs', u'mount_point': u'/opt/test1', u'name': u'test1'}], u'type': u'lvm', u'encryption_key_size': None}, {u'size': u'5g', u'fs_type': u'xfs', u'mount_point': u'/opt/test1', u'name': u'test1'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}], "_storage_vol_pools": ["foo"], "_storage_vols_no_defaults": [{"fs_type": "xfs", "mount_point": "/opt/test1", "name": "test1", "size": "5g"}]}, "ansible_loop_var": "item", "changed": false, "item": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "absent", "type": "lvm", "volumes": [{"fs_type": "xfs", "mount_point": "/opt/test1", "name": "test1", "size": "5g"}]}, {"fs_type": "xfs", "mount_point": "/opt/test1", "name": "test1", "size": "5g"}]} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [3/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:44 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'size': u'5g', u'fs_type': u'xfs', u'mount_point': u'/opt/test1', u'name': u'test1'}, {u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'fs_label': u'', u'raid_level': None, u'mount_device_identifier': u'uuid', u'fs_type': u'xfs', u'mount_options': u'defaults', u'encryption_luks_version': None, u'raid_spare_count': None, u'size': 0, u'mount_point': u'', u'encryption_password': None, u'encryption': False, u'raid_chunk_size': None, u'raid_device_count': None, u'state': u'present', u'mount_check': 0, u'mount_passno': 0, u'fs_overwrite_existing': True, u'type': u'lvm', u'encryption_key_size': None, u'fs_create_options': u''}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "5g", "state": "present", "type": "lvm"}]}, "ansible_index_var": "idx", "ansible_loop_var": "item", "changed": false, "idx": 0, "item": [{"fs_type": "xfs", "mount_point": "/opt/test1", "name": "test1", "size": "5g"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}]} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [4/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:52 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'absent', u'volumes': [{u'size': u'5g', u'fs_type': u'xfs', u'mount_point': u'/opt/test1', u'name': u'test1'}], u'type': u'lvm', u'encryption_key_size': None}) => {"ansible_facts": {"_storage_vols_no_defaults_by_pool": {"foo": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "5g", "state": "present", "type": "lvm"}]}}, "ansible_loop_var": "item", "changed": false, "item": {"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "absent", "type": "lvm", "volumes": [{"fs_type": "xfs", "mount_point": "/opt/test1", "name": "test1", "size": "5g"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [5/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:61 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'absent', u'volumes': [{u'size': u'5g', u'fs_type': u'xfs', u'mount_point': u'/opt/test1', u'name': u'test1'}], u'type': u'lvm', u'encryption_key_size': None}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "absent", "type": "lvm", "volumes": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "5g", "state": "present", "type": "lvm"}]}]}, "ansible_index_var": "idx", "ansible_loop_var": "pool", "changed": false, "idx": 0, "pool": {"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "absent", "type": "lvm", "volumes": [{"fs_type": "xfs", "mount_point": "/opt/test1", "name": "test1", "size": "5g"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [6/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:72 TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "absent", "type": "lvm", "volumes": [ { "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "5g", "state": "present", "type": "lvm" } ] } ] } TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes": [] } TASK [linux-system-roles.storage : get required packages] ********************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": []} TASK [linux-system-roles.storage : make sure required packages are installed] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [linux-system-roles.storage : manage the pools and volumes to match the specified state] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:104 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [{"action": "destroy format", "device": "/dev/mapper/foo-test1", "fs_type": "xfs"}, {"action": "destroy device", "device": "/dev/mapper/foo-test1", "fs_type": null}, {"action": "destroy device", "device": "/dev/foo", "fs_type": null}, {"action": "destroy format", "device": "/dev/vda", "fs_type": "lvmpv"}], "changed": true, "crypts": [], "leaves": ["/dev/sda1", "/dev/sr0", "/dev/vda", "/dev/vdb", "/dev/vdc"], "mounts": [{"fstype": "xfs", "path": "/opt/test1", "src": "/dev/mapper/foo-test1", "state": "absent"}], "packages": ["e2fsprogs"], "pools": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "absent", "type": "lvm", "volumes": [{"_device": "/dev/mapper/foo-test1", "_mount_id": "/dev/mapper/foo-test1", "_raw_device": "/dev/mapper/foo-test1", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "5g", "state": "present", "type": "lvm"}]}], "volumes": []} TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:114 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "blivet_output": { "actions": [ { "action": "destroy format", "device": "/dev/mapper/foo-test1", "fs_type": "xfs" }, { "action": "destroy device", "device": "/dev/mapper/foo-test1", "fs_type": null }, { "action": "destroy device", "device": "/dev/foo", "fs_type": null }, { "action": "destroy format", "device": "/dev/vda", "fs_type": "lvmpv" } ], "changed": true, "crypts": [], "failed": false, "leaves": [ "/dev/sda1", "/dev/sr0", "/dev/vda", "/dev/vdb", "/dev/vdc" ], "mounts": [ { "fstype": "xfs", "path": "/opt/test1", "src": "/dev/mapper/foo-test1", "state": "absent" } ], "packages": [ "e2fsprogs" ], "pools": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "absent", "type": "lvm", "volumes": [ { "_device": "/dev/mapper/foo-test1", "_mount_id": "/dev/mapper/foo-test1", "_raw_device": "/dev/mapper/foo-test1", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "5g", "state": "present", "type": "lvm" } ] } ], "volumes": [] } } TASK [linux-system-roles.storage : set the list of pools for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:117 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "absent", "type": "lvm", "volumes": [{"_device": "/dev/mapper/foo-test1", "_mount_id": "/dev/mapper/foo-test1", "_raw_device": "/dev/mapper/foo-test1", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "5g", "state": "present", "type": "lvm"}]}]}, "changed": false} TASK [linux-system-roles.storage : set the list of volumes for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:121 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : remove obsolete mounts] ********************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:137 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'src': u'/dev/mapper/foo-test1', u'state': u'absent', u'fstype': u'xfs', u'path': u'/opt/test1'}) => {"ansible_loop_var": "mount_info", "changed": true, "dump": "0", "fstab": "/etc/fstab", "fstype": "xfs", "mount_info": {"fstype": "xfs", "path": "/opt/test1", "src": "/dev/mapper/foo-test1", "state": "absent"}, "name": "/opt/test1", "opts": "defaults", "passno": "0", "src": "/dev/mapper/foo-test1"} TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:148 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [linux-system-roles.storage : set up new/current mounts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:153 TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:164 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [linux-system-roles.storage : Manage /etc/crypttab to account for changes we just made] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:172 TASK [linux-system-roles.storage : Update facts] ******************************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:187 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_change_fs.yml:77 included: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Print out pool information] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:1 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools_list": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "absent", "type": "lvm", "volumes": [ { "_device": "/dev/mapper/foo-test1", "_mount_id": "/dev/mapper/foo-test1", "_raw_device": "/dev/mapper/foo-test1", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "5g", "state": "present", "type": "lvm" } ] } ] } TASK [Print out volume information] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:6 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {} TASK [Collect info about the volumes.] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "info": {"/dev/sda": {"fstype": "", "label": "", "name": "/dev/sda", "size": "4G", "type": "disk", "uuid": ""}, "/dev/sda1": {"fstype": "ext4", "label": "", "name": "/dev/sda1", "size": "4G", "type": "partition", "uuid": "03e702b4-e165-4a39-88c9-9e210cd00434"}, "/dev/sr0": {"fstype": "iso9660", "label": "cidata", "name": "/dev/sr0", "size": "364K", "type": "rom", "uuid": "2020-10-31-11-56-45-00"}, "/dev/vda": {"fstype": "", "label": "", "name": "/dev/vda", "size": "10G", "type": "disk", "uuid": ""}, "/dev/vdb": {"fstype": "", "label": "", "name": "/dev/vdb", "size": "10G", "type": "disk", "uuid": ""}, "/dev/vdc": {"fstype": "", "label": "", "name": "/dev/vdc", "size": "10G", "type": "disk", "uuid": ""}}} TASK [Read the /etc/fstab file for volume existence] *************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:19 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/fstab"], "delta": "0:00:00.002625", "end": "2020-10-31 11:59:27.938660", "rc": 0, "start": "2020-10-31 11:59:27.936035", "stderr": "", "stderr_lines": [], "stdout": "\n#\n# /etc/fstab\n# Created by anaconda on Sat Oct 31 08:17:58 2020\n#\n# Accessible filesystems, by reference, are maintained under '/dev/disk/'.\n# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.\n#\n# After editing this file, run 'systemctl daemon-reload' to update systemd\n# units generated from this file.\n#\nUUID=03e702b4-e165-4a39-88c9-9e210cd00434 / ext4 defaults 1 1", "stdout_lines": ["", "#", "# /etc/fstab", "# Created by anaconda on Sat Oct 31 08:17:58 2020", "#", "# Accessible filesystems, by reference, are maintained under '/dev/disk/'.", "# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.", "#", "# After editing this file, run 'systemctl daemon-reload' to update systemd", "# units generated from this file.", "#", "UUID=03e702b4-e165-4a39-88c9-9e210cd00434 / ext4 defaults 1 1"]} TASK [Read the /etc/crypttab file] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/crypttab"], "delta": "0:00:00.002328", "end": "2020-10-31 11:59:28.264082", "rc": 0, "start": "2020-10-31 11:59:28.261754", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Verify the volumes listed in storage_pools were correctly managed] ******* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:32 [WARNING]: The loop variable 'storage_test_pool' is already in use. You should set the `loop_var` value in the `loop_control` option for the task to something else to avoid variable collisions and unexpected behavior. included: /tmp/tmp7ksfxpzz/tests/test-verify-pool.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool.yml:5 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pool_tests": ["members", "volumes"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool.yml:17 included: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-pool-volumes.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:1 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_count": "0", "_storage_test_pool_pvs": [], "_storage_test_pool_pvs_lvm": []}, "changed": false} TASK [Get the canonical device path for each member device] ******************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:7 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:16 TASK [Verify PV count] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:23 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:29 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_type": "disk"}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:33 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_type": "disk"}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check the type of each PV] *********************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:41 TASK [Check raid] ************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:50 included: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [get information about RAID] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:6 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:12 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:16 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:20 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID active devices count] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:24 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID spare devices count] ****************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:30 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID metadata version] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:36 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:44 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_md_active_devices_re": null, "storage_test_md_metadata_version_re": null, "storage_test_md_spare_devices_re": null}, "changed": false} TASK [Check member encryption] ************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:53 included: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_crypttab_entries": "0", "_storage_test_expected_crypttab_key_file": "-"}, "changed": false} TASK [Validate pool member LUKS settings] ************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:8 TASK [Validate pool member crypttab entries] *********************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:15 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:22 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null, "_storage_test_crypttab_key_file": null}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:56 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_count": null, "_storage_test_expected_pv_type": null, "_storage_test_pool_pvs": [], "_storage_test_pool_pvs_lvm": []}, "changed": false} TASK [verify the volumes] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-volumes.yml:3 [WARNING]: The loop variable 'storage_test_volume' is already in use. You should set the `loop_var` value in the `loop_control` option for the task to something else to avoid variable collisions and unexpected behavior. included: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": false, "_storage_volume_tests": ["mount", "fstab", "fs", "device", "encryption", "md", "size"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:10 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Get expected mount device based on device type] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/foo-test1"}, "changed": false} TASK [Set some facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [], "storage_test_mount_expected_match_count": "0", "storage_test_mount_point_matches": [], "storage_test_swap_expected_matches": "0"}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:22 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:31 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:39 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [command] ***************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Gather swap info] ******************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:52 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify swap status] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:57 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Unset facts] ************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:67 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null, "storage_test_swap_expected_matches": null, "storage_test_swaps": null, "storage_test_sys_node": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": "0", "storage_test_fstab_expected_mount_point_matches": "0", "storage_test_fstab_id_matches": [], "storage_test_fstab_mount_point_matches": []}, "changed": false} TASK [Verify that the device identifier appears in /etc/fstab] ***************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:10 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:17 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": null, "storage_test_fstab_expected_mount_point_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [Verify fs type] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:4 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify fs label] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:10 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [See whether the device node is present] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "stat": {"exists": false}} TASK [Verify the presence/absence of the device node] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:18 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "lvm"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:28 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:33 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Stat the LUKS device, if encrypted] ************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:3 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Collect LUKS info for this volume] *************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:10 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the presence/absence of the LUKS device node] ********************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:16 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify that the raw device is the same as the device if not encrypted] *** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:25 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Make sure we got info about the LUKS volume if encrypted] **************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the LUKS volume's device type if encrypted] *********************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS version] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:42 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS key size] ***************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS cipher] ******************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:54 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:60 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": [], "_storage_test_expected_crypttab_entries": "0", "_storage_test_expected_crypttab_key_file": "-"}, "changed": false} TASK [Check for /etc/crypttab entry] ******************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:65 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Validate the format of the crypttab entry] ******************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:70 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check backing device of crypttab entry] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:76 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check key file of crypttab entry] **************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:82 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:88 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null, "_storage_test_expected_crypttab_entries": null, "_storage_test_expected_crypttab_key_file": null}, "changed": false} TASK [get information about RAID] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:7 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:13 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:17 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID active devices count] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:25 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID spare devices count] ****************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID metadata version] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [parse the actual size of the volume] ************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:3 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [parse the requested size of the volume] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:9 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:15 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_actual_size": { "changed": false, "skip_reason": "Conditional result was False", "skipped": true } } TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_requested_size": { "changed": false, "skip_reason": "Conditional result was False", "skipped": true } } TASK [assert] ****************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Clean up facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:16 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:39 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_pool": null}, "changed": false} TASK [Verify the volumes with no pool were correctly managed] ****************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:46 TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:56 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_blkinfo": null, "storage_test_crypttab": null, "storage_test_fstab": null, "storage_test_volume": null}, "changed": false} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 : ok=351 changed=5 unreachable=0 failed=0 skipped=186 rescued=0 ignored=0 + cd /tmp/tmp7ksfxpzz/tests; TEST_SUBJECTS=/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_storage-178-e856157-fedora-31-87qzp9iq/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmp7ksfxpzz/_setup.yml /tmp/tmp7ksfxpzz/tests/tests_change_fs_use_partitions.yml ansible-playbook 2.8.16 config file = /etc/ansible/ansible.cfg configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python2.7/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 2.7.5 (default, Apr 2 2020, 13:16:51) [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)] Using /etc/ansible/ansible.cfg as config file PLAYBOOK: _setup.yml *********************************************************** 1 plays in /tmp/tmp7ksfxpzz/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/_setup.yml:5 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "groups": { "all": [ "/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2" ], "localhost": [ "/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2" ], "subjects": [ "/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmp7ksfxpzz/_setup.yml:6 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 : ok=1 changed=0 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 PLAYBOOK: tests_change_fs_use_partitions.yml *********************************** 1 plays in /tmp/tmp7ksfxpzz/tests/tests_change_fs_use_partitions.yml PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/tests_change_fs_use_partitions.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] META: ran handlers TASK [include_role : linux-system-roles.storage] ******************************* task path: /tmp/tmp7ksfxpzz/tests/tests_change_fs_use_partitions.yml:12 TASK [linux-system-roles.storage : Set version specific variables] ************* task path: /tmp/tmp7ksfxpzz/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-crypto", "libblockdev-dm", "libblockdev-lvm", "libblockdev-mdraid", "libblockdev-swap"]}, "ansible_included_var_files": ["/tmp/tmp7ksfxpzz/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.storage : define an empty list of pools to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : define an empty list of volumes to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : include the appropriate provider tasks] ***** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:22 included: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [linux-system-roles.storage : get a list of rpm packages installed on host machine] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : make sure blivet is available] ************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:7 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: python3-blivet", "Installed: libblockdev-crypto", "Installed: libblockdev-dm", "Installed: libblockdev-lvm", "Installed: libblockdev-mdraid", "Installed: libblockdev-swap", "Installed: dmraid-1.0.0.rc16-43.fc31.x86_64", "Installed: libblockdev-crypto-2.24-2.fc31.x86_64", "Installed: ndctl-70.1-1.fc31.x86_64", "Installed: dmraid-events-1.0.0.rc16-43.fc31.x86_64", "Installed: btrfs-progs-5.7-4.fc31.x86_64", "Installed: gdisk-1.0.5-1.fc31.x86_64", "Installed: ndctl-libs-70.1-1.fc31.x86_64", "Installed: libblockdev-dm-2.24-2.fc31.x86_64", "Installed: lzo-2.08-16.fc31.x86_64", "Installed: mdadm-4.1-5.fc31.x86_64", "Installed: libblockdev-fs-2.24-2.fc31.x86_64", "Installed: nspr-4.29.0-1.fc31.x86_64", "Installed: libblockdev-kbd-2.24-2.fc31.x86_64", "Installed: lsof-4.93.2-2.fc31.x86_64", "Installed: compat-readline5-5.2-34.fc31.x86_64", "Installed: nss-3.57.0-1.fc31.x86_64", "Installed: libblockdev-loop-2.24-2.fc31.x86_64", "Installed: libblockdev-lvm-2.24-2.fc31.x86_64", "Installed: python3-gobject-base-3.34.0-3.fc31.x86_64", "Installed: lvm2-2.03.09-1.fc31.x86_64", "Installed: nss-softokn-3.57.0-1.fc31.x86_64", "Installed: userspace-rcu-0.11.1-2.fc31.x86_64", "Installed: libblockdev-mdraid-2.24-2.fc31.x86_64", "Installed: lvm2-libs-2.03.09-1.fc31.x86_64", "Installed: nss-softokn-freebl-3.57.0-1.fc31.x86_64", "Installed: nss-sysinit-3.57.0-1.fc31.x86_64", "Installed: libblockdev-mpath-2.24-2.fc31.x86_64", "Installed: gobject-introspection-1.62.0-1.fc31.x86_64", "Installed: device-mapper-event-1.02.171-1.fc31.x86_64", "Installed: nss-util-3.57.0-1.fc31.x86_64", "Installed: libblockdev-nvdimm-2.24-2.fc31.x86_64", "Installed: volume_key-libs-0.3.12-4.fc31.x86_64", "Installed: device-mapper-event-libs-1.02.171-1.fc31.x86_64", "Installed: libblockdev-part-2.24-2.fc31.x86_64", "Installed: libblockdev-swap-2.24-2.fc31.x86_64", "Installed: libblockdev-utils-2.24-2.fc31.x86_64", "Installed: blivet-data-1:3.1.7-2.fc31.noarch", "Installed: device-mapper-multipath-0.8.0-3.fc31.x86_64", "Installed: device-mapper-multipath-libs-0.8.0-3.fc31.x86_64", "Installed: device-mapper-persistent-data-0.8.5-2.fc31.x86_64", "Installed: sgpio-1.2.0.10-24.fc31.x86_64", "Installed: bcache-tools-1.0.8-16.fc31.x86_64", "Installed: python3-pyudev-0.21.0-11.fc31.noarch", "Installed: python3-blivet-1:3.1.7-2.fc31.noarch", "Installed: python3-blockdev-2.24-2.fc31.x86_64", "Installed: daxctl-libs-70.1-1.fc31.x86_64", "Installed: python3-pyparted-1:3.11.2-2.fc31.x86_64", "Installed: libaio-0.3.111-6.fc31.x86_64", "Installed: libbytesize-2.3-1.fc31.x86_64", "Installed: python3-bytesize-2.3-1.fc31.x86_64", "Installed: libblockdev-2.24-2.fc31.x86_64", "Installed: libblockdev-btrfs-2.24-2.fc31.x86_64"]} TASK [linux-system-roles.storage : initialize internal facts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools": [], "_storage_vol_defaults": [], "_storage_vol_pools": [], "_storage_vols_no_defaults": [], "_storage_vols_no_defaults_by_pool": {}, "_storage_vols_w_defaults": [], "_storage_volumes": []}, "changed": false} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [1/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:28 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [2/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:36 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [3/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:44 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [4/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:52 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [5/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:61 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [6/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:72 TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools": [] } TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes": [] } TASK [linux-system-roles.storage : get required packages] ********************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": []} TASK [linux-system-roles.storage : make sure required packages are installed] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [linux-system-roles.storage : manage the pools and volumes to match the specified state] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:104 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": []} TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:114 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "blivet_output": { "actions": [], "changed": false, "crypts": [], "failed": false, "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": [] } } TASK [linux-system-roles.storage : set the list of pools for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:117 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : set the list of volumes for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:121 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : remove obsolete mounts] ********************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:137 TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:148 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : set up new/current mounts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:153 TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:164 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : Manage /etc/crypttab to account for changes we just made] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:172 TASK [linux-system-roles.storage : Update facts] ******************************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:187 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_change_fs_use_partitions.yml:15 included: /tmp/tmp7ksfxpzz/tests/get_unused_disk.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Find unused disks in the system] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/get_unused_disk.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "disks": ["vda", "vdb"]} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/get_unused_disk.yml:8 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"unused_disks": ["vda", "vdb"]}, "changed": false} TASK [Exit playbook when there's not enough unused disks in the system] ******** task path: /tmp/tmp7ksfxpzz/tests/get_unused_disk.yml:12 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Print unused disks] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/get_unused_disk.yml:17 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "unused_disks": [ "vda", "vdb" ] } TASK [Create an LVM partition with the default file system type] *************** task path: /tmp/tmp7ksfxpzz/tests/tests_change_fs_use_partitions.yml:20 TASK [linux-system-roles.storage : Set version specific variables] ************* task path: /tmp/tmp7ksfxpzz/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-crypto", "libblockdev-dm", "libblockdev-lvm", "libblockdev-mdraid", "libblockdev-swap"]}, "ansible_included_var_files": ["/tmp/tmp7ksfxpzz/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.storage : define an empty list of pools to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : define an empty list of volumes to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : include the appropriate provider tasks] ***** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:22 included: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [linux-system-roles.storage : get a list of rpm packages installed on host machine] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : make sure blivet is available] ************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: python3-blivet", "Installed: libblockdev-crypto", "Installed: libblockdev-dm", "Installed: libblockdev-lvm", "Installed: libblockdev-mdraid", "Installed: libblockdev-swap"]} TASK [linux-system-roles.storage : initialize internal facts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools": [], "_storage_vol_defaults": [], "_storage_vol_pools": [], "_storage_vols_no_defaults": [], "_storage_vols_no_defaults_by_pool": {}, "_storage_vols_w_defaults": [], "_storage_volumes": []}, "changed": false} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [1/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:28 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'disks': [u'vda', u'vdb'], u'name': u'bar', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'5g'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vda", "vdb"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "bar", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "5g"}]}]}, "ansible_loop_var": "pool", "changed": false, "pool": {"disks": ["vda", "vdb"], "name": "bar", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "5g"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [2/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:36 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'bar', u'encryption_password': None, u'encryption': False, u'disks': [u'vda', u'vdb'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'5g'}], u'type': u'lvm', u'encryption_key_size': None}, {u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'5g'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}], "_storage_vol_pools": ["bar"], "_storage_vols_no_defaults": [{"mount_point": "/opt/test1", "name": "test1", "size": "5g"}]}, "ansible_loop_var": "item", "changed": false, "item": [{"disks": ["vda", "vdb"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "bar", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "5g"}]}, {"mount_point": "/opt/test1", "name": "test1", "size": "5g"}]} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [3/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:44 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'5g'}, {u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'fs_label': u'', u'raid_level': None, u'mount_device_identifier': u'uuid', u'fs_type': u'xfs', u'mount_options': u'defaults', u'encryption_luks_version': None, u'raid_spare_count': None, u'size': 0, u'mount_point': u'', u'encryption_password': None, u'encryption': False, u'raid_chunk_size': None, u'raid_device_count': None, u'state': u'present', u'mount_check': 0, u'mount_passno': 0, u'fs_overwrite_existing': True, u'type': u'lvm', u'encryption_key_size': None, u'fs_create_options': u''}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "bar", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "5g", "state": "present", "type": "lvm"}]}, "ansible_index_var": "idx", "ansible_loop_var": "item", "changed": false, "idx": 0, "item": [{"mount_point": "/opt/test1", "name": "test1", "size": "5g"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}]} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [4/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:52 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'bar', u'encryption_password': None, u'encryption': False, u'disks': [u'vda', u'vdb'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'5g'}], u'type': u'lvm', u'encryption_key_size': None}) => {"ansible_facts": {"_storage_vols_no_defaults_by_pool": {"bar": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "bar", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "5g", "state": "present", "type": "lvm"}]}}, "ansible_loop_var": "item", "changed": false, "item": {"disks": ["vda", "vdb"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "bar", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "5g"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [5/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:61 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'bar', u'encryption_password': None, u'encryption': False, u'disks': [u'vda', u'vdb'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'5g'}], u'type': u'lvm', u'encryption_key_size': None}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vda", "vdb"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "bar", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "bar", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "5g", "state": "present", "type": "lvm"}]}]}, "ansible_index_var": "idx", "ansible_loop_var": "pool", "changed": false, "idx": 0, "pool": {"disks": ["vda", "vdb"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "bar", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "5g"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [6/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:72 TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools": [ { "disks": [ "vda", "vdb" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "bar", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [ { "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "bar", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "5g", "state": "present", "type": "lvm" } ] } ] } TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes": [] } TASK [linux-system-roles.storage : get required packages] ********************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": ["lvm2", "xfsprogs"], "pools": [], "volumes": []} TASK [linux-system-roles.storage : make sure required packages are installed] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: lvm2", "Installed: xfsprogs"]} TASK [linux-system-roles.storage : manage the pools and volumes to match the specified state] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:104 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [{"action": "create format", "device": "/dev/vdb", "fs_type": "disklabel"}, {"action": "create device", "device": "/dev/vdb1", "fs_type": null}, {"action": "create format", "device": "/dev/vdb1", "fs_type": "lvmpv"}, {"action": "create format", "device": "/dev/vda", "fs_type": "disklabel"}, {"action": "create device", "device": "/dev/vda1", "fs_type": null}, {"action": "create format", "device": "/dev/vda1", "fs_type": "lvmpv"}, {"action": "create device", "device": "/dev/bar", "fs_type": null}, {"action": "create device", "device": "/dev/mapper/bar-test1", "fs_type": null}, {"action": "create format", "device": "/dev/mapper/bar-test1", "fs_type": "xfs"}], "changed": true, "crypts": [], "leaves": ["/dev/sda1", "/dev/sr0", "/dev/vdc", "/dev/mapper/bar-test1"], "mounts": [{"dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "/dev/mapper/bar-test1", "state": "mounted"}], "packages": ["e2fsprogs", "xfsprogs", "lvm2"], "pools": [{"disks": ["vda", "vdb"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "bar", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"_device": "/dev/mapper/bar-test1", "_kernel_device": "/dev/dm-0", "_mount_id": "/dev/mapper/bar-test1", "_raw_device": "/dev/mapper/bar-test1", "_raw_kernel_device": "/dev/dm-0", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "bar", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "5g", "state": "present", "type": "lvm"}]}], "volumes": []} TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:114 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "blivet_output": { "actions": [ { "action": "create format", "device": "/dev/vdb", "fs_type": "disklabel" }, { "action": "create device", "device": "/dev/vdb1", "fs_type": null }, { "action": "create format", "device": "/dev/vdb1", "fs_type": "lvmpv" }, { "action": "create format", "device": "/dev/vda", "fs_type": "disklabel" }, { "action": "create device", "device": "/dev/vda1", "fs_type": null }, { "action": "create format", "device": "/dev/vda1", "fs_type": "lvmpv" }, { "action": "create device", "device": "/dev/bar", "fs_type": null }, { "action": "create device", "device": "/dev/mapper/bar-test1", "fs_type": null }, { "action": "create format", "device": "/dev/mapper/bar-test1", "fs_type": "xfs" } ], "changed": true, "crypts": [], "failed": false, "leaves": [ "/dev/sda1", "/dev/sr0", "/dev/vdc", "/dev/mapper/bar-test1" ], "mounts": [ { "dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "/dev/mapper/bar-test1", "state": "mounted" } ], "packages": [ "e2fsprogs", "xfsprogs", "lvm2" ], "pools": [ { "disks": [ "vda", "vdb" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "bar", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [ { "_device": "/dev/mapper/bar-test1", "_kernel_device": "/dev/dm-0", "_mount_id": "/dev/mapper/bar-test1", "_raw_device": "/dev/mapper/bar-test1", "_raw_kernel_device": "/dev/dm-0", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "bar", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "5g", "state": "present", "type": "lvm" } ] } ], "volumes": [] } } TASK [linux-system-roles.storage : set the list of pools for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:117 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": [{"disks": ["vda", "vdb"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "bar", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"_device": "/dev/mapper/bar-test1", "_kernel_device": "/dev/dm-0", "_mount_id": "/dev/mapper/bar-test1", "_raw_device": "/dev/mapper/bar-test1", "_raw_kernel_device": "/dev/dm-0", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "bar", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "5g", "state": "present", "type": "lvm"}]}]}, "changed": false} TASK [linux-system-roles.storage : set the list of volumes for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:121 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : remove obsolete mounts] ********************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:137 TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:148 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [linux-system-roles.storage : set up new/current mounts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:153 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'src': u'/dev/mapper/bar-test1', u'state': u'mounted', u'dump': 0, u'path': u'/opt/test1', u'passno': 0, u'opts': u'defaults', u'fstype': u'xfs'}) => {"ansible_loop_var": "mount_info", "changed": true, "dump": "0", "fstab": "/etc/fstab", "fstype": "xfs", "mount_info": {"dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "/dev/mapper/bar-test1", "state": "mounted"}, "name": "/opt/test1", "opts": "defaults", "passno": "0", "src": "/dev/mapper/bar-test1"} TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:164 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [linux-system-roles.storage : Manage /etc/crypttab to account for changes we just made] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:172 TASK [linux-system-roles.storage : Update facts] ******************************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:187 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_change_fs_use_partitions.yml:32 included: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Print out pool information] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:1 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools_list": [ { "disks": [ "vda", "vdb" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "bar", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [ { "_device": "/dev/mapper/bar-test1", "_kernel_device": "/dev/dm-0", "_mount_id": "/dev/mapper/bar-test1", "_raw_device": "/dev/mapper/bar-test1", "_raw_kernel_device": "/dev/dm-0", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "bar", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "5g", "state": "present", "type": "lvm" } ] } ] } TASK [Print out volume information] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:6 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {} TASK [Collect info about the volumes.] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "info": {"/dev/mapper/bar-test1": {"fstype": "xfs", "label": "", "name": "/dev/mapper/bar-test1", "size": "5G", "type": "lvm", "uuid": "7a30eda4-03d3-4310-863b-5b9becaaaf5d"}, "/dev/sda": {"fstype": "", "label": "", "name": "/dev/sda", "size": "4G", "type": "disk", "uuid": ""}, "/dev/sda1": {"fstype": "ext4", "label": "", "name": "/dev/sda1", "size": "4G", "type": "partition", "uuid": "03e702b4-e165-4a39-88c9-9e210cd00434"}, "/dev/sr0": {"fstype": "iso9660", "label": "cidata", "name": "/dev/sr0", "size": "364K", "type": "rom", "uuid": "2020-10-31-11-59-32-00"}, "/dev/vda": {"fstype": "", "label": "", "name": "/dev/vda", "size": "10G", "type": "disk", "uuid": ""}, "/dev/vda1": {"fstype": "LVM2_member", "label": "", "name": "/dev/vda1", "size": "10G", "type": "partition", "uuid": "E1Hhn5-XNIL-KoXK-JF0K-h7lY-N4yI-TLk080"}, "/dev/vdb": {"fstype": "", "label": "", "name": "/dev/vdb", "size": "10G", "type": "disk", "uuid": ""}, "/dev/vdb1": {"fstype": "LVM2_member", "label": "", "name": "/dev/vdb1", "size": "10G", "type": "partition", "uuid": "z8Czc7-RQ5f-awz1-s3tt-ZEQE-Md5J-6D7cKo"}, "/dev/vdc": {"fstype": "", "label": "", "name": "/dev/vdc", "size": "10G", "type": "disk", "uuid": ""}}} TASK [Read the /etc/fstab file for volume existence] *************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:19 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/fstab"], "delta": "0:00:01.004185", "end": "2020-10-31 12:01:09.731311", "rc": 0, "start": "2020-10-31 12:01:08.727126", "stderr": "", "stderr_lines": [], "stdout": "\n#\n# /etc/fstab\n# Created by anaconda on Sat Oct 31 08:17:58 2020\n#\n# Accessible filesystems, by reference, are maintained under '/dev/disk/'.\n# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.\n#\n# After editing this file, run 'systemctl daemon-reload' to update systemd\n# units generated from this file.\n#\nUUID=03e702b4-e165-4a39-88c9-9e210cd00434 / ext4 defaults 1 1\n/dev/mapper/bar-test1 /opt/test1 xfs defaults 0 0", "stdout_lines": ["", "#", "# /etc/fstab", "# Created by anaconda on Sat Oct 31 08:17:58 2020", "#", "# Accessible filesystems, by reference, are maintained under '/dev/disk/'.", "# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.", "#", "# After editing this file, run 'systemctl daemon-reload' to update systemd", "# units generated from this file.", "#", "UUID=03e702b4-e165-4a39-88c9-9e210cd00434 / ext4 defaults 1 1", "/dev/mapper/bar-test1 /opt/test1 xfs defaults 0 0"]} TASK [Read the /etc/crypttab file] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/crypttab"], "delta": "0:00:00.002436", "end": "2020-10-31 12:01:10.057608", "rc": 0, "start": "2020-10-31 12:01:10.055172", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Verify the volumes listed in storage_pools were correctly managed] ******* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:32 included: /tmp/tmp7ksfxpzz/tests/test-verify-pool.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool.yml:5 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pool_tests": ["members", "volumes"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool.yml:17 included: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-pool-volumes.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:1 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_count": "2", "_storage_test_pool_pvs": [], "_storage_test_pool_pvs_lvm": ["/dev/vdb1", "/dev/vda1"]}, "changed": false} TASK [Get the canonical device path for each member device] ******************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:7 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=/dev/vdb1) => {"ansible_loop_var": "pv", "changed": false, "device": "/dev/vdb1", "pv": "/dev/vdb1"} ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=/dev/vda1) => {"ansible_loop_var": "pv", "changed": false, "device": "/dev/vda1", "pv": "/dev/vda1"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:16 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=/dev/vdb1) => {"ansible_facts": {"_storage_test_pool_pvs": ["/dev/vdb1"]}, "ansible_index_var": "idx", "ansible_loop_var": "item", "changed": false, "idx": 0, "item": "/dev/vdb1"} ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=/dev/vda1) => {"ansible_facts": {"_storage_test_pool_pvs": ["/dev/vdb1", "/dev/vda1"]}, "ansible_index_var": "idx", "ansible_loop_var": "item", "changed": false, "idx": 1, "item": "/dev/vda1"} TASK [Verify PV count] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:23 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:29 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_type": "disk"}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:33 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_type": "partition"}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check the type of each PV] *********************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:41 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=/dev/vdb1) => { "ansible_loop_var": "pv", "changed": false, "msg": "All assertions passed", "pv": "/dev/vdb1" } ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=/dev/vda1) => { "ansible_loop_var": "pv", "changed": false, "msg": "All assertions passed", "pv": "/dev/vda1" } TASK [Check raid] ************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:50 included: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [get information about RAID] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:6 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:12 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:16 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:20 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID active devices count] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:24 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID spare devices count] ****************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:30 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID metadata version] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:36 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:44 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_md_active_devices_re": null, "storage_test_md_metadata_version_re": null, "storage_test_md_spare_devices_re": null}, "changed": false} TASK [Check member encryption] ************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:53 included: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_crypttab_entries": "0", "_storage_test_expected_crypttab_key_file": "-"}, "changed": false} TASK [Validate pool member LUKS settings] ************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:8 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=/dev/vdb1) => {"_storage_test_pool_member_path": "/dev/vdb1", "ansible_loop_var": "_storage_test_pool_member_path", "changed": false, "skip_reason": "Conditional result was False"} skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=/dev/vda1) => {"_storage_test_pool_member_path": "/dev/vda1", "ansible_loop_var": "_storage_test_pool_member_path", "changed": false, "skip_reason": "Conditional result was False"} TASK [Validate pool member crypttab entries] *********************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:15 included: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:1 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": []}, "changed": false} TASK [Check for /etc/crypttab entry] ******************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Validate the format of the crypttab entry] ******************************* task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:9 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check backing device of crypttab entry] ********************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:15 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check key file of crypttab entry] **************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:27 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:1 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": []}, "changed": false} TASK [Check for /etc/crypttab entry] ******************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Validate the format of the crypttab entry] ******************************* task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:9 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check backing device of crypttab entry] ********************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:15 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check key file of crypttab entry] **************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:27 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:22 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null, "_storage_test_crypttab_key_file": null}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:56 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_count": null, "_storage_test_expected_pv_type": null, "_storage_test_pool_pvs": [], "_storage_test_pool_pvs_lvm": []}, "changed": false} TASK [verify the volumes] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-volumes.yml:3 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": true, "_storage_volume_tests": ["mount", "fstab", "fs", "device", "encryption", "md", "size"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:10 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Get expected mount device based on device type] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/bar-test1"}, "changed": false} TASK [Set some facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [{"block_available": 1290774, "block_size": 4096, "block_total": 1308160, "block_used": 17386, "device": "/dev/mapper/bar-test1", "fstype": "xfs", "inode_available": 2621437, "inode_total": 2621440, "inode_used": 3, "mount": "/opt/test1", "options": "rw,seclabel,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota", "size_available": 5287010304, "size_total": 5358223360, "uuid": "7a30eda4-03d3-4310-863b-5b9becaaaf5d"}], "storage_test_mount_expected_match_count": "1", "storage_test_mount_point_matches": [{"block_available": 1290774, "block_size": 4096, "block_total": 1308160, "block_used": 17386, "device": "/dev/mapper/bar-test1", "fstype": "xfs", "inode_available": 2621437, "inode_total": 2621440, "inode_used": 3, "mount": "/opt/test1", "options": "rw,seclabel,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota", "size_available": 5287010304, "size_total": 5358223360, "uuid": "7a30eda4-03d3-4310-863b-5b9becaaaf5d"}], "storage_test_swap_expected_matches": "0"}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:22 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:31 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:39 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [command] ***************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Gather swap info] ******************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:52 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify swap status] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:57 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Unset facts] ************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:67 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null, "storage_test_swap_expected_matches": null, "storage_test_swaps": null, "storage_test_sys_node": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": "1", "storage_test_fstab_expected_mount_point_matches": "1", "storage_test_fstab_id_matches": ["/dev/mapper/bar-test1 "], "storage_test_fstab_mount_point_matches": [" /opt/test1 "]}, "changed": false} TASK [Verify that the device identifier appears in /etc/fstab] ***************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:17 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": null, "storage_test_fstab_expected_mount_point_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [Verify fs type] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify fs label] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [See whether the device node is present] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "stat": {"atime": 1604145664.6377432, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "ctime": 1604145664.6377432, "dev": 5, "device_type": 64768, "executable": false, "exists": true, "gid": 6, "gr_name": "disk", "inode": 16866, "isblk": true, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mimetype": "inode/symlink", "mode": "0660", "mtime": 1604145664.6377432, "nlink": 1, "path": "/dev/mapper/bar-test1", "pw_name": "root", "readable": true, "rgrp": true, "roth": false, "rusr": true, "size": 0, "uid": 0, "version": null, "wgrp": true, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}} TASK [Verify the presence/absence of the device node] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "lvm"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:28 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:33 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Stat the LUKS device, if encrypted] ************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:3 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Collect LUKS info for this volume] *************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:10 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the presence/absence of the LUKS device node] ********************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:16 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify that the raw device is the same as the device if not encrypted] *** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:25 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about the LUKS volume if encrypted] **************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the LUKS volume's device type if encrypted] *********************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS version] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:42 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS key size] ***************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS cipher] ******************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:54 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:60 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": [], "_storage_test_expected_crypttab_entries": "0", "_storage_test_expected_crypttab_key_file": "-"}, "changed": false} TASK [Check for /etc/crypttab entry] ******************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:65 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Validate the format of the crypttab entry] ******************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:70 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check backing device of crypttab entry] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:76 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check key file of crypttab entry] **************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:82 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:88 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null, "_storage_test_expected_crypttab_entries": null, "_storage_test_expected_crypttab_key_file": null}, "changed": false} TASK [get information about RAID] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:7 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:13 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:17 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID active devices count] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:25 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID spare devices count] ****************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID metadata version] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [parse the actual size of the volume] ************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:3 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"bytes": 5368709120, "changed": false, "lvm": "5g", "parted": "5GiB", "size": "5 GiB"} TASK [parse the requested size of the volume] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:9 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"bytes": 5368709120, "changed": false, "lvm": "5g", "parted": "5GiB", "size": "5 GiB"} TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:15 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_actual_size": { "bytes": 5368709120, "changed": false, "failed": false, "lvm": "5g", "parted": "5GiB", "size": "5 GiB" } } TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_requested_size": { "bytes": 5368709120, "changed": false, "failed": false, "lvm": "5g", "parted": "5GiB", "size": "5 GiB" } } TASK [assert] ****************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:21 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:16 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:39 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_pool": null}, "changed": false} TASK [Verify the volumes with no pool were correctly managed] ****************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:46 TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:56 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_blkinfo": null, "storage_test_crypttab": null, "storage_test_fstab": null, "storage_test_volume": null}, "changed": false} TASK [Change the LVM partition file system type to "ext4"] ********************* task path: /tmp/tmp7ksfxpzz/tests/tests_change_fs_use_partitions.yml:34 TASK [linux-system-roles.storage : Set version specific variables] ************* task path: /tmp/tmp7ksfxpzz/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-crypto", "libblockdev-dm", "libblockdev-lvm", "libblockdev-mdraid", "libblockdev-swap"]}, "ansible_included_var_files": ["/tmp/tmp7ksfxpzz/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.storage : define an empty list of pools to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : define an empty list of volumes to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : include the appropriate provider tasks] ***** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:22 included: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [linux-system-roles.storage : get a list of rpm packages installed on host machine] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : make sure blivet is available] ************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: python3-blivet", "Installed: libblockdev-crypto", "Installed: libblockdev-dm", "Installed: libblockdev-lvm", "Installed: libblockdev-mdraid", "Installed: libblockdev-swap"]} TASK [linux-system-roles.storage : initialize internal facts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools": [], "_storage_vol_defaults": [], "_storage_vol_pools": [], "_storage_vols_no_defaults": [], "_storage_vols_no_defaults_by_pool": {}, "_storage_vols_w_defaults": [], "_storage_volumes": []}, "changed": false} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [1/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:28 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'disks': [u'vda', u'vdb'], u'name': u'bar', u'volumes': [{u'size': u'5g', u'fs_type': u'ext4', u'mount_point': u'/opt/test1', u'name': u'test1'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vda", "vdb"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "bar", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"fs_type": "ext4", "mount_point": "/opt/test1", "name": "test1", "size": "5g"}]}]}, "ansible_loop_var": "pool", "changed": false, "pool": {"disks": ["vda", "vdb"], "name": "bar", "volumes": [{"fs_type": "ext4", "mount_point": "/opt/test1", "name": "test1", "size": "5g"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [2/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:36 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'bar', u'encryption_password': None, u'encryption': False, u'disks': [u'vda', u'vdb'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'size': u'5g', u'fs_type': u'ext4', u'mount_point': u'/opt/test1', u'name': u'test1'}], u'type': u'lvm', u'encryption_key_size': None}, {u'size': u'5g', u'fs_type': u'ext4', u'mount_point': u'/opt/test1', u'name': u'test1'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}], "_storage_vol_pools": ["bar"], "_storage_vols_no_defaults": [{"fs_type": "ext4", "mount_point": "/opt/test1", "name": "test1", "size": "5g"}]}, "ansible_loop_var": "item", "changed": false, "item": [{"disks": ["vda", "vdb"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "bar", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"fs_type": "ext4", "mount_point": "/opt/test1", "name": "test1", "size": "5g"}]}, {"fs_type": "ext4", "mount_point": "/opt/test1", "name": "test1", "size": "5g"}]} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [3/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:44 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'size': u'5g', u'fs_type': u'ext4', u'mount_point': u'/opt/test1', u'name': u'test1'}, {u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'fs_label': u'', u'raid_level': None, u'mount_device_identifier': u'uuid', u'fs_type': u'xfs', u'mount_options': u'defaults', u'encryption_luks_version': None, u'raid_spare_count': None, u'size': 0, u'mount_point': u'', u'encryption_password': None, u'encryption': False, u'raid_chunk_size': None, u'raid_device_count': None, u'state': u'present', u'mount_check': 0, u'mount_passno': 0, u'fs_overwrite_existing': True, u'type': u'lvm', u'encryption_key_size': None, u'fs_create_options': u''}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "ext4", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "bar", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "5g", "state": "present", "type": "lvm"}]}, "ansible_index_var": "idx", "ansible_loop_var": "item", "changed": false, "idx": 0, "item": [{"fs_type": "ext4", "mount_point": "/opt/test1", "name": "test1", "size": "5g"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}]} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [4/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:52 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'bar', u'encryption_password': None, u'encryption': False, u'disks': [u'vda', u'vdb'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'size': u'5g', u'fs_type': u'ext4', u'mount_point': u'/opt/test1', u'name': u'test1'}], u'type': u'lvm', u'encryption_key_size': None}) => {"ansible_facts": {"_storage_vols_no_defaults_by_pool": {"bar": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "ext4", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "bar", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "5g", "state": "present", "type": "lvm"}]}}, "ansible_loop_var": "item", "changed": false, "item": {"disks": ["vda", "vdb"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "bar", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"fs_type": "ext4", "mount_point": "/opt/test1", "name": "test1", "size": "5g"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [5/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:61 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'bar', u'encryption_password': None, u'encryption': False, u'disks': [u'vda', u'vdb'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'size': u'5g', u'fs_type': u'ext4', u'mount_point': u'/opt/test1', u'name': u'test1'}], u'type': u'lvm', u'encryption_key_size': None}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vda", "vdb"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "bar", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "ext4", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "bar", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "5g", "state": "present", "type": "lvm"}]}]}, "ansible_index_var": "idx", "ansible_loop_var": "pool", "changed": false, "idx": 0, "pool": {"disks": ["vda", "vdb"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "bar", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"fs_type": "ext4", "mount_point": "/opt/test1", "name": "test1", "size": "5g"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [6/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:72 TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools": [ { "disks": [ "vda", "vdb" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "bar", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [ { "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "ext4", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "bar", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "5g", "state": "present", "type": "lvm" } ] } ] } TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes": [] } TASK [linux-system-roles.storage : get required packages] ********************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": ["e2fsprogs", "lvm2"], "pools": [], "volumes": []} TASK [linux-system-roles.storage : make sure required packages are installed] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: e2fsprogs", "Installed: lvm2"]} TASK [linux-system-roles.storage : manage the pools and volumes to match the specified state] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:104 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [{"action": "destroy format", "device": "/dev/mapper/bar-test1", "fs_type": "xfs"}, {"action": "create format", "device": "/dev/mapper/bar-test1", "fs_type": "ext4"}], "changed": true, "crypts": [], "leaves": ["/dev/sda1", "/dev/sr0", "/dev/mapper/bar-test1", "/dev/vdc"], "mounts": [{"fstype": "xfs", "path": "/opt/test1", "src": "/dev/mapper/bar-test1", "state": "absent"}, {"dump": 0, "fstype": "ext4", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "/dev/mapper/bar-test1", "state": "mounted"}], "packages": ["lvm2", "e2fsprogs"], "pools": [{"disks": ["vda", "vdb"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "bar", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"_device": "/dev/mapper/bar-test1", "_kernel_device": "/dev/dm-0", "_mount_id": "/dev/mapper/bar-test1", "_raw_device": "/dev/mapper/bar-test1", "_raw_kernel_device": "/dev/dm-0", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "ext4", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "bar", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "5g", "state": "present", "type": "lvm"}]}], "volumes": []} TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:114 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "blivet_output": { "actions": [ { "action": "destroy format", "device": "/dev/mapper/bar-test1", "fs_type": "xfs" }, { "action": "create format", "device": "/dev/mapper/bar-test1", "fs_type": "ext4" } ], "changed": true, "crypts": [], "failed": false, "leaves": [ "/dev/sda1", "/dev/sr0", "/dev/mapper/bar-test1", "/dev/vdc" ], "mounts": [ { "fstype": "xfs", "path": "/opt/test1", "src": "/dev/mapper/bar-test1", "state": "absent" }, { "dump": 0, "fstype": "ext4", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "/dev/mapper/bar-test1", "state": "mounted" } ], "packages": [ "lvm2", "e2fsprogs" ], "pools": [ { "disks": [ "vda", "vdb" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "bar", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [ { "_device": "/dev/mapper/bar-test1", "_kernel_device": "/dev/dm-0", "_mount_id": "/dev/mapper/bar-test1", "_raw_device": "/dev/mapper/bar-test1", "_raw_kernel_device": "/dev/dm-0", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "ext4", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "bar", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "5g", "state": "present", "type": "lvm" } ] } ], "volumes": [] } } TASK [linux-system-roles.storage : set the list of pools for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:117 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": [{"disks": ["vda", "vdb"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "bar", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"_device": "/dev/mapper/bar-test1", "_kernel_device": "/dev/dm-0", "_mount_id": "/dev/mapper/bar-test1", "_raw_device": "/dev/mapper/bar-test1", "_raw_kernel_device": "/dev/dm-0", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "ext4", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "bar", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "5g", "state": "present", "type": "lvm"}]}]}, "changed": false} TASK [linux-system-roles.storage : set the list of volumes for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:121 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : remove obsolete mounts] ********************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:137 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'src': u'/dev/mapper/bar-test1', u'state': u'absent', u'fstype': u'xfs', u'path': u'/opt/test1'}) => {"ansible_loop_var": "mount_info", "changed": true, "dump": "0", "fstab": "/etc/fstab", "fstype": "xfs", "mount_info": {"fstype": "xfs", "path": "/opt/test1", "src": "/dev/mapper/bar-test1", "state": "absent"}, "name": "/opt/test1", "opts": "defaults", "passno": "0", "src": "/dev/mapper/bar-test1"} TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:148 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [linux-system-roles.storage : set up new/current mounts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:153 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'src': u'/dev/mapper/bar-test1', u'state': u'mounted', u'dump': 0, u'path': u'/opt/test1', u'passno': 0, u'opts': u'defaults', u'fstype': u'ext4'}) => {"ansible_loop_var": "mount_info", "changed": true, "dump": "0", "fstab": "/etc/fstab", "fstype": "ext4", "mount_info": {"dump": 0, "fstype": "ext4", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "/dev/mapper/bar-test1", "state": "mounted"}, "name": "/opt/test1", "opts": "defaults", "passno": "0", "src": "/dev/mapper/bar-test1"} TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:164 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [linux-system-roles.storage : Manage /etc/crypttab to account for changes we just made] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:172 TASK [linux-system-roles.storage : Update facts] ******************************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:187 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_change_fs_use_partitions.yml:47 included: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Print out pool information] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:1 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools_list": [ { "disks": [ "vda", "vdb" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "bar", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [ { "_device": "/dev/mapper/bar-test1", "_kernel_device": "/dev/dm-0", "_mount_id": "/dev/mapper/bar-test1", "_raw_device": "/dev/mapper/bar-test1", "_raw_kernel_device": "/dev/dm-0", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "ext4", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "bar", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "5g", "state": "present", "type": "lvm" } ] } ] } TASK [Print out volume information] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:6 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {} TASK [Collect info about the volumes.] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "info": {"/dev/mapper/bar-test1": {"fstype": "ext4", "label": "", "name": "/dev/mapper/bar-test1", "size": "5G", "type": "lvm", "uuid": "b0eb6c80-d4c2-4183-b1a5-2f809edc744a"}, "/dev/sda": {"fstype": "", "label": "", "name": "/dev/sda", "size": "4G", "type": "disk", "uuid": ""}, "/dev/sda1": {"fstype": "ext4", "label": "", "name": "/dev/sda1", "size": "4G", "type": "partition", "uuid": "03e702b4-e165-4a39-88c9-9e210cd00434"}, "/dev/sr0": {"fstype": "iso9660", "label": "cidata", "name": "/dev/sr0", "size": "364K", "type": "rom", "uuid": "2020-10-31-11-59-32-00"}, "/dev/vda": {"fstype": "", "label": "", "name": "/dev/vda", "size": "10G", "type": "disk", "uuid": ""}, "/dev/vda1": {"fstype": "LVM2_member", "label": "", "name": "/dev/vda1", "size": "10G", "type": "partition", "uuid": "E1Hhn5-XNIL-KoXK-JF0K-h7lY-N4yI-TLk080"}, "/dev/vdb": {"fstype": "", "label": "", "name": "/dev/vdb", "size": "10G", "type": "disk", "uuid": ""}, "/dev/vdb1": {"fstype": "LVM2_member", "label": "", "name": "/dev/vdb1", "size": "10G", "type": "partition", "uuid": "z8Czc7-RQ5f-awz1-s3tt-ZEQE-Md5J-6D7cKo"}, "/dev/vdc": {"fstype": "", "label": "", "name": "/dev/vdc", "size": "10G", "type": "disk", "uuid": ""}}} TASK [Read the /etc/fstab file for volume existence] *************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:19 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/fstab"], "delta": "0:00:00.002942", "end": "2020-10-31 12:01:32.558331", "rc": 0, "start": "2020-10-31 12:01:32.555389", "stderr": "", "stderr_lines": [], "stdout": "\n#\n# /etc/fstab\n# Created by anaconda on Sat Oct 31 08:17:58 2020\n#\n# Accessible filesystems, by reference, are maintained under '/dev/disk/'.\n# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.\n#\n# After editing this file, run 'systemctl daemon-reload' to update systemd\n# units generated from this file.\n#\nUUID=03e702b4-e165-4a39-88c9-9e210cd00434 / ext4 defaults 1 1\n/dev/mapper/bar-test1 /opt/test1 ext4 defaults 0 0", "stdout_lines": ["", "#", "# /etc/fstab", "# Created by anaconda on Sat Oct 31 08:17:58 2020", "#", "# Accessible filesystems, by reference, are maintained under '/dev/disk/'.", "# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.", "#", "# After editing this file, run 'systemctl daemon-reload' to update systemd", "# units generated from this file.", "#", "UUID=03e702b4-e165-4a39-88c9-9e210cd00434 / ext4 defaults 1 1", "/dev/mapper/bar-test1 /opt/test1 ext4 defaults 0 0"]} TASK [Read the /etc/crypttab file] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/crypttab"], "delta": "0:00:00.003414", "end": "2020-10-31 12:01:32.926738", "rc": 0, "start": "2020-10-31 12:01:32.923324", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Verify the volumes listed in storage_pools were correctly managed] ******* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:32 [WARNING]: The loop variable 'storage_test_pool' is already in use. You should set the `loop_var` value in the `loop_control` option for the task to something else to avoid variable collisions and unexpected behavior. included: /tmp/tmp7ksfxpzz/tests/test-verify-pool.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool.yml:5 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pool_tests": ["members", "volumes"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool.yml:17 included: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-pool-volumes.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:1 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_count": "2", "_storage_test_pool_pvs": [], "_storage_test_pool_pvs_lvm": ["/dev/vdb1", "/dev/vda1"]}, "changed": false} TASK [Get the canonical device path for each member device] ******************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:7 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=/dev/vdb1) => {"ansible_loop_var": "pv", "changed": false, "device": "/dev/vdb1", "pv": "/dev/vdb1"} ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=/dev/vda1) => {"ansible_loop_var": "pv", "changed": false, "device": "/dev/vda1", "pv": "/dev/vda1"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:16 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=/dev/vdb1) => {"ansible_facts": {"_storage_test_pool_pvs": ["/dev/vdb1"]}, "ansible_index_var": "idx", "ansible_loop_var": "item", "changed": false, "idx": 0, "item": "/dev/vdb1"} ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=/dev/vda1) => {"ansible_facts": {"_storage_test_pool_pvs": ["/dev/vdb1", "/dev/vda1"]}, "ansible_index_var": "idx", "ansible_loop_var": "item", "changed": false, "idx": 1, "item": "/dev/vda1"} TASK [Verify PV count] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:23 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:29 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_type": "disk"}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:33 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_type": "partition"}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check the type of each PV] *********************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:41 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=/dev/vdb1) => { "ansible_loop_var": "pv", "changed": false, "msg": "All assertions passed", "pv": "/dev/vdb1" } ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=/dev/vda1) => { "ansible_loop_var": "pv", "changed": false, "msg": "All assertions passed", "pv": "/dev/vda1" } TASK [Check raid] ************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:50 included: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [get information about RAID] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:6 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:12 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:16 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:20 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID active devices count] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:24 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID spare devices count] ****************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:30 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID metadata version] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:36 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:44 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_md_active_devices_re": null, "storage_test_md_metadata_version_re": null, "storage_test_md_spare_devices_re": null}, "changed": false} TASK [Check member encryption] ************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:53 included: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_crypttab_entries": "0", "_storage_test_expected_crypttab_key_file": "-"}, "changed": false} TASK [Validate pool member LUKS settings] ************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:8 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=/dev/vdb1) => {"_storage_test_pool_member_path": "/dev/vdb1", "ansible_loop_var": "_storage_test_pool_member_path", "changed": false, "skip_reason": "Conditional result was False"} skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=/dev/vda1) => {"_storage_test_pool_member_path": "/dev/vda1", "ansible_loop_var": "_storage_test_pool_member_path", "changed": false, "skip_reason": "Conditional result was False"} TASK [Validate pool member crypttab entries] *********************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:15 included: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:1 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": []}, "changed": false} TASK [Check for /etc/crypttab entry] ******************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Validate the format of the crypttab entry] ******************************* task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:9 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check backing device of crypttab entry] ********************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:15 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check key file of crypttab entry] **************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:27 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:1 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": []}, "changed": false} TASK [Check for /etc/crypttab entry] ******************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Validate the format of the crypttab entry] ******************************* task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:9 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check backing device of crypttab entry] ********************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:15 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check key file of crypttab entry] **************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:27 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:22 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null, "_storage_test_crypttab_key_file": null}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:56 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_count": null, "_storage_test_expected_pv_type": null, "_storage_test_pool_pvs": [], "_storage_test_pool_pvs_lvm": []}, "changed": false} TASK [verify the volumes] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-volumes.yml:3 [WARNING]: The loop variable 'storage_test_volume' is already in use. You should set the `loop_var` value in the `loop_control` option for the task to something else to avoid variable collisions and unexpected behavior. included: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": true, "_storage_volume_tests": ["mount", "fstab", "fs", "device", "encryption", "md", "size"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:10 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Get expected mount device based on device type] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/bar-test1"}, "changed": false} TASK [Set some facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [{"block_available": 1199010, "block_size": 4096, "block_total": 1273760, "block_used": 74750, "device": "/dev/mapper/bar-test1", "fstype": "ext4", "inode_available": 327669, "inode_total": 327680, "inode_used": 11, "mount": "/opt/test1", "options": "rw,seclabel,relatime", "size_available": 4911144960, "size_total": 5217320960, "uuid": "b0eb6c80-d4c2-4183-b1a5-2f809edc744a"}], "storage_test_mount_expected_match_count": "1", "storage_test_mount_point_matches": [{"block_available": 1199010, "block_size": 4096, "block_total": 1273760, "block_used": 74750, "device": "/dev/mapper/bar-test1", "fstype": "ext4", "inode_available": 327669, "inode_total": 327680, "inode_used": 11, "mount": "/opt/test1", "options": "rw,seclabel,relatime", "size_available": 4911144960, "size_total": 5217320960, "uuid": "b0eb6c80-d4c2-4183-b1a5-2f809edc744a"}], "storage_test_swap_expected_matches": "0"}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:22 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:31 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:39 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [command] ***************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Gather swap info] ******************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:52 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify swap status] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:57 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Unset facts] ************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:67 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null, "storage_test_swap_expected_matches": null, "storage_test_swaps": null, "storage_test_sys_node": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": "1", "storage_test_fstab_expected_mount_point_matches": "1", "storage_test_fstab_id_matches": ["/dev/mapper/bar-test1 "], "storage_test_fstab_mount_point_matches": [" /opt/test1 "]}, "changed": false} TASK [Verify that the device identifier appears in /etc/fstab] ***************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:17 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": null, "storage_test_fstab_expected_mount_point_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [Verify fs type] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify fs label] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [See whether the device node is present] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "stat": {"atime": 1604145688.8347433, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "ctime": 1604145688.8347433, "dev": 5, "device_type": 64768, "executable": false, "exists": true, "gid": 6, "gr_name": "disk", "inode": 16866, "isblk": true, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mimetype": "inode/symlink", "mode": "0660", "mtime": 1604145688.8347433, "nlink": 1, "path": "/dev/mapper/bar-test1", "pw_name": "root", "readable": true, "rgrp": true, "roth": false, "rusr": true, "size": 0, "uid": 0, "version": null, "wgrp": true, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}} TASK [Verify the presence/absence of the device node] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "lvm"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:28 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:33 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Stat the LUKS device, if encrypted] ************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:3 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Collect LUKS info for this volume] *************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:10 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the presence/absence of the LUKS device node] ********************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:16 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify that the raw device is the same as the device if not encrypted] *** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:25 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about the LUKS volume if encrypted] **************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the LUKS volume's device type if encrypted] *********************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS version] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:42 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS key size] ***************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS cipher] ******************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:54 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:60 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": [], "_storage_test_expected_crypttab_entries": "0", "_storage_test_expected_crypttab_key_file": "-"}, "changed": false} TASK [Check for /etc/crypttab entry] ******************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:65 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Validate the format of the crypttab entry] ******************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:70 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check backing device of crypttab entry] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:76 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check key file of crypttab entry] **************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:82 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:88 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null, "_storage_test_expected_crypttab_entries": null, "_storage_test_expected_crypttab_key_file": null}, "changed": false} TASK [get information about RAID] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:7 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:13 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:17 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID active devices count] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:25 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID spare devices count] ****************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID metadata version] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [parse the actual size of the volume] ************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:3 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"bytes": 5368709120, "changed": false, "lvm": "5g", "parted": "5GiB", "size": "5 GiB"} TASK [parse the requested size of the volume] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:9 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"bytes": 5368709120, "changed": false, "lvm": "5g", "parted": "5GiB", "size": "5 GiB"} TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:15 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_actual_size": { "bytes": 5368709120, "changed": false, "failed": false, "lvm": "5g", "parted": "5GiB", "size": "5 GiB" } } TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_requested_size": { "bytes": 5368709120, "changed": false, "failed": false, "lvm": "5g", "parted": "5GiB", "size": "5 GiB" } } TASK [assert] ****************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:21 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:16 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:39 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_pool": null}, "changed": false} TASK [Verify the volumes with no pool were correctly managed] ****************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:46 TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:56 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_blkinfo": null, "storage_test_crypttab": null, "storage_test_fstab": null, "storage_test_volume": null}, "changed": false} TASK [Repeat the previous invocation to verify idempotence] ******************** task path: /tmp/tmp7ksfxpzz/tests/tests_change_fs_use_partitions.yml:49 TASK [linux-system-roles.storage : Set version specific variables] ************* task path: /tmp/tmp7ksfxpzz/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-crypto", "libblockdev-dm", "libblockdev-lvm", "libblockdev-mdraid", "libblockdev-swap"]}, "ansible_included_var_files": ["/tmp/tmp7ksfxpzz/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.storage : define an empty list of pools to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : define an empty list of volumes to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : include the appropriate provider tasks] ***** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:22 included: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [linux-system-roles.storage : get a list of rpm packages installed on host machine] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : make sure blivet is available] ************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: python3-blivet", "Installed: libblockdev-crypto", "Installed: libblockdev-dm", "Installed: libblockdev-lvm", "Installed: libblockdev-mdraid", "Installed: libblockdev-swap"]} TASK [linux-system-roles.storage : initialize internal facts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools": [], "_storage_vol_defaults": [], "_storage_vol_pools": [], "_storage_vols_no_defaults": [], "_storage_vols_no_defaults_by_pool": {}, "_storage_vols_w_defaults": [], "_storage_volumes": []}, "changed": false} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [1/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:28 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'disks': [u'vda', u'vdb'], u'name': u'bar', u'volumes': [{u'size': u'5g', u'fs_type': u'ext4', u'mount_point': u'/opt/test1', u'name': u'test1'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vda", "vdb"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "bar", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"fs_type": "ext4", "mount_point": "/opt/test1", "name": "test1", "size": "5g"}]}]}, "ansible_loop_var": "pool", "changed": false, "pool": {"disks": ["vda", "vdb"], "name": "bar", "volumes": [{"fs_type": "ext4", "mount_point": "/opt/test1", "name": "test1", "size": "5g"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [2/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:36 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'bar', u'encryption_password': None, u'encryption': False, u'disks': [u'vda', u'vdb'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'size': u'5g', u'fs_type': u'ext4', u'mount_point': u'/opt/test1', u'name': u'test1'}], u'type': u'lvm', u'encryption_key_size': None}, {u'size': u'5g', u'fs_type': u'ext4', u'mount_point': u'/opt/test1', u'name': u'test1'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}], "_storage_vol_pools": ["bar"], "_storage_vols_no_defaults": [{"fs_type": "ext4", "mount_point": "/opt/test1", "name": "test1", "size": "5g"}]}, "ansible_loop_var": "item", "changed": false, "item": [{"disks": ["vda", "vdb"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "bar", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"fs_type": "ext4", "mount_point": "/opt/test1", "name": "test1", "size": "5g"}]}, {"fs_type": "ext4", "mount_point": "/opt/test1", "name": "test1", "size": "5g"}]} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [3/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:44 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'size': u'5g', u'fs_type': u'ext4', u'mount_point': u'/opt/test1', u'name': u'test1'}, {u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'fs_label': u'', u'raid_level': None, u'mount_device_identifier': u'uuid', u'fs_type': u'xfs', u'mount_options': u'defaults', u'encryption_luks_version': None, u'raid_spare_count': None, u'size': 0, u'mount_point': u'', u'encryption_password': None, u'encryption': False, u'raid_chunk_size': None, u'raid_device_count': None, u'state': u'present', u'mount_check': 0, u'mount_passno': 0, u'fs_overwrite_existing': True, u'type': u'lvm', u'encryption_key_size': None, u'fs_create_options': u''}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "ext4", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "bar", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "5g", "state": "present", "type": "lvm"}]}, "ansible_index_var": "idx", "ansible_loop_var": "item", "changed": false, "idx": 0, "item": [{"fs_type": "ext4", "mount_point": "/opt/test1", "name": "test1", "size": "5g"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}]} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [4/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:52 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'bar', u'encryption_password': None, u'encryption': False, u'disks': [u'vda', u'vdb'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'size': u'5g', u'fs_type': u'ext4', u'mount_point': u'/opt/test1', u'name': u'test1'}], u'type': u'lvm', u'encryption_key_size': None}) => {"ansible_facts": {"_storage_vols_no_defaults_by_pool": {"bar": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "ext4", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "bar", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "5g", "state": "present", "type": "lvm"}]}}, "ansible_loop_var": "item", "changed": false, "item": {"disks": ["vda", "vdb"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "bar", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"fs_type": "ext4", "mount_point": "/opt/test1", "name": "test1", "size": "5g"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [5/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:61 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'bar', u'encryption_password': None, u'encryption': False, u'disks': [u'vda', u'vdb'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'size': u'5g', u'fs_type': u'ext4', u'mount_point': u'/opt/test1', u'name': u'test1'}], u'type': u'lvm', u'encryption_key_size': None}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vda", "vdb"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "bar", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "ext4", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "bar", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "5g", "state": "present", "type": "lvm"}]}]}, "ansible_index_var": "idx", "ansible_loop_var": "pool", "changed": false, "idx": 0, "pool": {"disks": ["vda", "vdb"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "bar", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"fs_type": "ext4", "mount_point": "/opt/test1", "name": "test1", "size": "5g"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [6/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:72 TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools": [ { "disks": [ "vda", "vdb" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "bar", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [ { "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "ext4", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "bar", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "5g", "state": "present", "type": "lvm" } ] } ] } TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes": [] } TASK [linux-system-roles.storage : get required packages] ********************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": ["e2fsprogs", "lvm2"], "pools": [], "volumes": []} TASK [linux-system-roles.storage : make sure required packages are installed] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: e2fsprogs", "Installed: lvm2"]} TASK [linux-system-roles.storage : manage the pools and volumes to match the specified state] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:104 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": ["/dev/sda1", "/dev/sr0", "/dev/mapper/bar-test1", "/dev/vdc"], "mounts": [{"dump": 0, "fstype": "ext4", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "/dev/mapper/bar-test1", "state": "mounted"}], "packages": ["lvm2", "e2fsprogs"], "pools": [{"disks": ["vda", "vdb"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "bar", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"_device": "/dev/mapper/bar-test1", "_kernel_device": "/dev/dm-0", "_mount_id": "/dev/mapper/bar-test1", "_raw_device": "/dev/mapper/bar-test1", "_raw_kernel_device": "/dev/dm-0", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "ext4", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "bar", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "5g", "state": "present", "type": "lvm"}]}], "volumes": []} TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:114 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "blivet_output": { "actions": [], "changed": false, "crypts": [], "failed": false, "leaves": [ "/dev/sda1", "/dev/sr0", "/dev/mapper/bar-test1", "/dev/vdc" ], "mounts": [ { "dump": 0, "fstype": "ext4", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "/dev/mapper/bar-test1", "state": "mounted" } ], "packages": [ "lvm2", "e2fsprogs" ], "pools": [ { "disks": [ "vda", "vdb" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "bar", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [ { "_device": "/dev/mapper/bar-test1", "_kernel_device": "/dev/dm-0", "_mount_id": "/dev/mapper/bar-test1", "_raw_device": "/dev/mapper/bar-test1", "_raw_kernel_device": "/dev/dm-0", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "ext4", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "bar", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "5g", "state": "present", "type": "lvm" } ] } ], "volumes": [] } } TASK [linux-system-roles.storage : set the list of pools for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:117 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": [{"disks": ["vda", "vdb"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "bar", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"_device": "/dev/mapper/bar-test1", "_kernel_device": "/dev/dm-0", "_mount_id": "/dev/mapper/bar-test1", "_raw_device": "/dev/mapper/bar-test1", "_raw_kernel_device": "/dev/dm-0", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "ext4", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "bar", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "5g", "state": "present", "type": "lvm"}]}]}, "changed": false} TASK [linux-system-roles.storage : set the list of volumes for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:121 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : remove obsolete mounts] ********************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:137 TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:148 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [linux-system-roles.storage : set up new/current mounts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:153 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'src': u'/dev/mapper/bar-test1', u'state': u'mounted', u'dump': 0, u'path': u'/opt/test1', u'passno': 0, u'opts': u'defaults', u'fstype': u'ext4'}) => {"ansible_loop_var": "mount_info", "changed": false, "dump": "0", "fstab": "/etc/fstab", "fstype": "ext4", "mount_info": {"dump": 0, "fstype": "ext4", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "/dev/mapper/bar-test1", "state": "mounted"}, "name": "/opt/test1", "opts": "defaults", "passno": "0", "src": "/dev/mapper/bar-test1"} TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:164 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [linux-system-roles.storage : Manage /etc/crypttab to account for changes we just made] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:172 TASK [linux-system-roles.storage : Update facts] ******************************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:187 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_change_fs_use_partitions.yml:62 included: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Print out pool information] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:1 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools_list": [ { "disks": [ "vda", "vdb" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "bar", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [ { "_device": "/dev/mapper/bar-test1", "_kernel_device": "/dev/dm-0", "_mount_id": "/dev/mapper/bar-test1", "_raw_device": "/dev/mapper/bar-test1", "_raw_kernel_device": "/dev/dm-0", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "ext4", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "bar", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "5g", "state": "present", "type": "lvm" } ] } ] } TASK [Print out volume information] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:6 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {} TASK [Collect info about the volumes.] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "info": {"/dev/mapper/bar-test1": {"fstype": "ext4", "label": "", "name": "/dev/mapper/bar-test1", "size": "5G", "type": "lvm", "uuid": "b0eb6c80-d4c2-4183-b1a5-2f809edc744a"}, "/dev/sda": {"fstype": "", "label": "", "name": "/dev/sda", "size": "4G", "type": "disk", "uuid": ""}, "/dev/sda1": {"fstype": "ext4", "label": "", "name": "/dev/sda1", "size": "4G", "type": "partition", "uuid": "03e702b4-e165-4a39-88c9-9e210cd00434"}, "/dev/sr0": {"fstype": "iso9660", "label": "cidata", "name": "/dev/sr0", "size": "364K", "type": "rom", "uuid": "2020-10-31-11-59-32-00"}, "/dev/vda": {"fstype": "", "label": "", "name": "/dev/vda", "size": "10G", "type": "disk", "uuid": ""}, "/dev/vda1": {"fstype": "LVM2_member", "label": "", "name": "/dev/vda1", "size": "10G", "type": "partition", "uuid": "E1Hhn5-XNIL-KoXK-JF0K-h7lY-N4yI-TLk080"}, "/dev/vdb": {"fstype": "", "label": "", "name": "/dev/vdb", "size": "10G", "type": "disk", "uuid": ""}, "/dev/vdb1": {"fstype": "LVM2_member", "label": "", "name": "/dev/vdb1", "size": "10G", "type": "partition", "uuid": "z8Czc7-RQ5f-awz1-s3tt-ZEQE-Md5J-6D7cKo"}, "/dev/vdc": {"fstype": "", "label": "", "name": "/dev/vdc", "size": "10G", "type": "disk", "uuid": ""}}} TASK [Read the /etc/fstab file for volume existence] *************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:19 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/fstab"], "delta": "0:00:00.002729", "end": "2020-10-31 12:01:53.967362", "rc": 0, "start": "2020-10-31 12:01:53.964633", "stderr": "", "stderr_lines": [], "stdout": "\n#\n# /etc/fstab\n# Created by anaconda on Sat Oct 31 08:17:58 2020\n#\n# Accessible filesystems, by reference, are maintained under '/dev/disk/'.\n# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.\n#\n# After editing this file, run 'systemctl daemon-reload' to update systemd\n# units generated from this file.\n#\nUUID=03e702b4-e165-4a39-88c9-9e210cd00434 / ext4 defaults 1 1\n/dev/mapper/bar-test1 /opt/test1 ext4 defaults 0 0", "stdout_lines": ["", "#", "# /etc/fstab", "# Created by anaconda on Sat Oct 31 08:17:58 2020", "#", "# Accessible filesystems, by reference, are maintained under '/dev/disk/'.", "# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.", "#", "# After editing this file, run 'systemctl daemon-reload' to update systemd", "# units generated from this file.", "#", "UUID=03e702b4-e165-4a39-88c9-9e210cd00434 / ext4 defaults 1 1", "/dev/mapper/bar-test1 /opt/test1 ext4 defaults 0 0"]} TASK [Read the /etc/crypttab file] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/crypttab"], "delta": "0:00:00.002451", "end": "2020-10-31 12:01:54.304042", "rc": 0, "start": "2020-10-31 12:01:54.301591", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Verify the volumes listed in storage_pools were correctly managed] ******* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:32 [WARNING]: The loop variable 'storage_test_pool' is already in use. You should set the `loop_var` value in the `loop_control` option for the task to something else to avoid variable collisions and unexpected behavior. included: /tmp/tmp7ksfxpzz/tests/test-verify-pool.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool.yml:5 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pool_tests": ["members", "volumes"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool.yml:17 included: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-pool-volumes.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:1 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_count": "2", "_storage_test_pool_pvs": [], "_storage_test_pool_pvs_lvm": ["/dev/vdb1", "/dev/vda1"]}, "changed": false} TASK [Get the canonical device path for each member device] ******************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:7 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=/dev/vdb1) => {"ansible_loop_var": "pv", "changed": false, "device": "/dev/vdb1", "pv": "/dev/vdb1"} ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=/dev/vda1) => {"ansible_loop_var": "pv", "changed": false, "device": "/dev/vda1", "pv": "/dev/vda1"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:16 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=/dev/vdb1) => {"ansible_facts": {"_storage_test_pool_pvs": ["/dev/vdb1"]}, "ansible_index_var": "idx", "ansible_loop_var": "item", "changed": false, "idx": 0, "item": "/dev/vdb1"} ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=/dev/vda1) => {"ansible_facts": {"_storage_test_pool_pvs": ["/dev/vdb1", "/dev/vda1"]}, "ansible_index_var": "idx", "ansible_loop_var": "item", "changed": false, "idx": 1, "item": "/dev/vda1"} TASK [Verify PV count] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:23 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:29 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_type": "disk"}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:33 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_type": "partition"}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check the type of each PV] *********************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:41 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=/dev/vdb1) => { "ansible_loop_var": "pv", "changed": false, "msg": "All assertions passed", "pv": "/dev/vdb1" } ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=/dev/vda1) => { "ansible_loop_var": "pv", "changed": false, "msg": "All assertions passed", "pv": "/dev/vda1" } TASK [Check raid] ************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:50 included: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [get information about RAID] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:6 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:12 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:16 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:20 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID active devices count] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:24 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID spare devices count] ****************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:30 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID metadata version] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:36 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:44 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_md_active_devices_re": null, "storage_test_md_metadata_version_re": null, "storage_test_md_spare_devices_re": null}, "changed": false} TASK [Check member encryption] ************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:53 included: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_crypttab_entries": "0", "_storage_test_expected_crypttab_key_file": "-"}, "changed": false} TASK [Validate pool member LUKS settings] ************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:8 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=/dev/vdb1) => {"_storage_test_pool_member_path": "/dev/vdb1", "ansible_loop_var": "_storage_test_pool_member_path", "changed": false, "skip_reason": "Conditional result was False"} skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=/dev/vda1) => {"_storage_test_pool_member_path": "/dev/vda1", "ansible_loop_var": "_storage_test_pool_member_path", "changed": false, "skip_reason": "Conditional result was False"} TASK [Validate pool member crypttab entries] *********************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:15 included: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:1 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": []}, "changed": false} TASK [Check for /etc/crypttab entry] ******************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Validate the format of the crypttab entry] ******************************* task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:9 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check backing device of crypttab entry] ********************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:15 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check key file of crypttab entry] **************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:27 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:1 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": []}, "changed": false} TASK [Check for /etc/crypttab entry] ******************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Validate the format of the crypttab entry] ******************************* task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:9 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check backing device of crypttab entry] ********************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:15 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check key file of crypttab entry] **************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:27 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:22 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null, "_storage_test_crypttab_key_file": null}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:56 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_count": null, "_storage_test_expected_pv_type": null, "_storage_test_pool_pvs": [], "_storage_test_pool_pvs_lvm": []}, "changed": false} TASK [verify the volumes] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-volumes.yml:3 [WARNING]: The loop variable 'storage_test_volume' is already in use. You should set the `loop_var` value in the `loop_control` option for the task to something else to avoid variable collisions and unexpected behavior. included: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": true, "_storage_volume_tests": ["mount", "fstab", "fs", "device", "encryption", "md", "size"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:10 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Get expected mount device based on device type] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/bar-test1"}, "changed": false} TASK [Set some facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [{"block_available": 1199010, "block_size": 4096, "block_total": 1273760, "block_used": 74750, "device": "/dev/mapper/bar-test1", "fstype": "ext4", "inode_available": 327669, "inode_total": 327680, "inode_used": 11, "mount": "/opt/test1", "options": "rw,seclabel,relatime", "size_available": 4911144960, "size_total": 5217320960, "uuid": "b0eb6c80-d4c2-4183-b1a5-2f809edc744a"}], "storage_test_mount_expected_match_count": "1", "storage_test_mount_point_matches": [{"block_available": 1199010, "block_size": 4096, "block_total": 1273760, "block_used": 74750, "device": "/dev/mapper/bar-test1", "fstype": "ext4", "inode_available": 327669, "inode_total": 327680, "inode_used": 11, "mount": "/opt/test1", "options": "rw,seclabel,relatime", "size_available": 4911144960, "size_total": 5217320960, "uuid": "b0eb6c80-d4c2-4183-b1a5-2f809edc744a"}], "storage_test_swap_expected_matches": "0"}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:22 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:31 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:39 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [command] ***************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Gather swap info] ******************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:52 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify swap status] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:57 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Unset facts] ************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:67 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null, "storage_test_swap_expected_matches": null, "storage_test_swaps": null, "storage_test_sys_node": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": "1", "storage_test_fstab_expected_mount_point_matches": "1", "storage_test_fstab_id_matches": ["/dev/mapper/bar-test1 "], "storage_test_fstab_mount_point_matches": [" /opt/test1 "]}, "changed": false} TASK [Verify that the device identifier appears in /etc/fstab] ***************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:17 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": null, "storage_test_fstab_expected_mount_point_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [Verify fs type] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify fs label] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [See whether the device node is present] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "stat": {"atime": 1604145688.8347433, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "ctime": 1604145688.8347433, "dev": 5, "device_type": 64768, "executable": false, "exists": true, "gid": 6, "gr_name": "disk", "inode": 16866, "isblk": true, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mimetype": "inode/symlink", "mode": "0660", "mtime": 1604145688.8347433, "nlink": 1, "path": "/dev/mapper/bar-test1", "pw_name": "root", "readable": true, "rgrp": true, "roth": false, "rusr": true, "size": 0, "uid": 0, "version": null, "wgrp": true, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}} TASK [Verify the presence/absence of the device node] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "lvm"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:28 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:33 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Stat the LUKS device, if encrypted] ************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:3 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Collect LUKS info for this volume] *************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:10 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the presence/absence of the LUKS device node] ********************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:16 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify that the raw device is the same as the device if not encrypted] *** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:25 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about the LUKS volume if encrypted] **************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the LUKS volume's device type if encrypted] *********************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS version] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:42 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS key size] ***************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS cipher] ******************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:54 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:60 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": [], "_storage_test_expected_crypttab_entries": "0", "_storage_test_expected_crypttab_key_file": "-"}, "changed": false} TASK [Check for /etc/crypttab entry] ******************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:65 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Validate the format of the crypttab entry] ******************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:70 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check backing device of crypttab entry] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:76 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check key file of crypttab entry] **************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:82 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:88 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null, "_storage_test_expected_crypttab_entries": null, "_storage_test_expected_crypttab_key_file": null}, "changed": false} TASK [get information about RAID] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:7 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:13 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:17 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID active devices count] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:25 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID spare devices count] ****************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID metadata version] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [parse the actual size of the volume] ************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:3 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"bytes": 5368709120, "changed": false, "lvm": "5g", "parted": "5GiB", "size": "5 GiB"} TASK [parse the requested size of the volume] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:9 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"bytes": 5368709120, "changed": false, "lvm": "5g", "parted": "5GiB", "size": "5 GiB"} TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:15 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_actual_size": { "bytes": 5368709120, "changed": false, "failed": false, "lvm": "5g", "parted": "5GiB", "size": "5 GiB" } } TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_requested_size": { "bytes": 5368709120, "changed": false, "failed": false, "lvm": "5g", "parted": "5GiB", "size": "5 GiB" } } TASK [assert] ****************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:21 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:16 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:39 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_pool": null}, "changed": false} TASK [Verify the volumes with no pool were correctly managed] ****************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:46 TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:56 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_blkinfo": null, "storage_test_crypttab": null, "storage_test_fstab": null, "storage_test_volume": null}, "changed": false} TASK [Clean up] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_change_fs_use_partitions.yml:64 TASK [linux-system-roles.storage : Set version specific variables] ************* task path: /tmp/tmp7ksfxpzz/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-crypto", "libblockdev-dm", "libblockdev-lvm", "libblockdev-mdraid", "libblockdev-swap"]}, "ansible_included_var_files": ["/tmp/tmp7ksfxpzz/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.storage : define an empty list of pools to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : define an empty list of volumes to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : include the appropriate provider tasks] ***** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:22 included: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [linux-system-roles.storage : get a list of rpm packages installed on host machine] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : make sure blivet is available] ************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: python3-blivet", "Installed: libblockdev-crypto", "Installed: libblockdev-dm", "Installed: libblockdev-lvm", "Installed: libblockdev-mdraid", "Installed: libblockdev-swap"]} TASK [linux-system-roles.storage : initialize internal facts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools": [], "_storage_vol_defaults": [], "_storage_vol_pools": [], "_storage_vols_no_defaults": [], "_storage_vols_no_defaults_by_pool": {}, "_storage_vols_w_defaults": [], "_storage_volumes": []}, "changed": false} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [1/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:28 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'state': u'absent', u'disks': [u'vda', u'vdb'], u'name': u'bar', u'volumes': [{u'size': u'5g', u'state': u'absent', u'fs_type': u'ext4', u'mount_point': u'/opt/test1', u'name': u'test1'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vda", "vdb"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "bar", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "absent", "type": "lvm", "volumes": [{"fs_type": "ext4", "mount_point": "/opt/test1", "name": "test1", "size": "5g", "state": "absent"}]}]}, "ansible_loop_var": "pool", "changed": false, "pool": {"disks": ["vda", "vdb"], "name": "bar", "state": "absent", "volumes": [{"fs_type": "ext4", "mount_point": "/opt/test1", "name": "test1", "size": "5g", "state": "absent"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [2/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:36 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'bar', u'encryption_password': None, u'encryption': False, u'disks': [u'vda', u'vdb'], u'raid_level': None, u'raid_device_count': None, u'state': u'absent', u'volumes': [{u'size': u'5g', u'state': u'absent', u'fs_type': u'ext4', u'mount_point': u'/opt/test1', u'name': u'test1'}], u'type': u'lvm', u'encryption_key_size': None}, {u'size': u'5g', u'state': u'absent', u'fs_type': u'ext4', u'mount_point': u'/opt/test1', u'name': u'test1'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}], "_storage_vol_pools": ["bar"], "_storage_vols_no_defaults": [{"fs_type": "ext4", "mount_point": "/opt/test1", "name": "test1", "size": "5g", "state": "absent"}]}, "ansible_loop_var": "item", "changed": false, "item": [{"disks": ["vda", "vdb"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "bar", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "absent", "type": "lvm", "volumes": [{"fs_type": "ext4", "mount_point": "/opt/test1", "name": "test1", "size": "5g", "state": "absent"}]}, {"fs_type": "ext4", "mount_point": "/opt/test1", "name": "test1", "size": "5g", "state": "absent"}]} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [3/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:44 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'size': u'5g', u'state': u'absent', u'fs_type': u'ext4', u'mount_point': u'/opt/test1', u'name': u'test1'}, {u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'fs_label': u'', u'raid_level': None, u'mount_device_identifier': u'uuid', u'fs_type': u'xfs', u'mount_options': u'defaults', u'encryption_luks_version': None, u'raid_spare_count': None, u'size': 0, u'mount_point': u'', u'encryption_password': None, u'encryption': False, u'raid_chunk_size': None, u'raid_device_count': None, u'state': u'present', u'mount_check': 0, u'mount_passno': 0, u'fs_overwrite_existing': True, u'type': u'lvm', u'encryption_key_size': None, u'fs_create_options': u''}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "ext4", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "bar", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "5g", "state": "absent", "type": "lvm"}]}, "ansible_index_var": "idx", "ansible_loop_var": "item", "changed": false, "idx": 0, "item": [{"fs_type": "ext4", "mount_point": "/opt/test1", "name": "test1", "size": "5g", "state": "absent"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}]} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [4/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:52 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'bar', u'encryption_password': None, u'encryption': False, u'disks': [u'vda', u'vdb'], u'raid_level': None, u'raid_device_count': None, u'state': u'absent', u'volumes': [{u'size': u'5g', u'state': u'absent', u'fs_type': u'ext4', u'mount_point': u'/opt/test1', u'name': u'test1'}], u'type': u'lvm', u'encryption_key_size': None}) => {"ansible_facts": {"_storage_vols_no_defaults_by_pool": {"bar": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "ext4", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "bar", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "5g", "state": "absent", "type": "lvm"}]}}, "ansible_loop_var": "item", "changed": false, "item": {"disks": ["vda", "vdb"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "bar", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "absent", "type": "lvm", "volumes": [{"fs_type": "ext4", "mount_point": "/opt/test1", "name": "test1", "size": "5g", "state": "absent"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [5/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:61 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'bar', u'encryption_password': None, u'encryption': False, u'disks': [u'vda', u'vdb'], u'raid_level': None, u'raid_device_count': None, u'state': u'absent', u'volumes': [{u'size': u'5g', u'state': u'absent', u'fs_type': u'ext4', u'mount_point': u'/opt/test1', u'name': u'test1'}], u'type': u'lvm', u'encryption_key_size': None}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vda", "vdb"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "bar", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "absent", "type": "lvm", "volumes": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "ext4", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "bar", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "5g", "state": "absent", "type": "lvm"}]}]}, "ansible_index_var": "idx", "ansible_loop_var": "pool", "changed": false, "idx": 0, "pool": {"disks": ["vda", "vdb"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "bar", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "absent", "type": "lvm", "volumes": [{"fs_type": "ext4", "mount_point": "/opt/test1", "name": "test1", "size": "5g", "state": "absent"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [6/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:72 TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools": [ { "disks": [ "vda", "vdb" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "bar", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "absent", "type": "lvm", "volumes": [ { "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "ext4", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "bar", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "5g", "state": "absent", "type": "lvm" } ] } ] } TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes": [] } TASK [linux-system-roles.storage : get required packages] ********************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": []} TASK [linux-system-roles.storage : make sure required packages are installed] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [linux-system-roles.storage : manage the pools and volumes to match the specified state] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:104 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [{"action": "destroy format", "device": "/dev/mapper/bar-test1", "fs_type": "ext4"}, {"action": "destroy device", "device": "/dev/mapper/bar-test1", "fs_type": null}, {"action": "destroy device", "device": "/dev/bar", "fs_type": null}, {"action": "destroy format", "device": "/dev/vdb1", "fs_type": "lvmpv"}, {"action": "destroy device", "device": "/dev/vdb1", "fs_type": null}, {"action": "destroy format", "device": "/dev/vdb", "fs_type": "disklabel"}, {"action": "destroy format", "device": "/dev/vda1", "fs_type": "lvmpv"}, {"action": "destroy device", "device": "/dev/vda1", "fs_type": null}, {"action": "destroy format", "device": "/dev/vda", "fs_type": "disklabel"}], "changed": true, "crypts": [], "leaves": ["/dev/sda1", "/dev/sr0", "/dev/vda", "/dev/vdb", "/dev/vdc"], "mounts": [{"fstype": "ext4", "path": "/opt/test1", "src": "/dev/mapper/bar-test1", "state": "absent"}], "packages": ["e2fsprogs"], "pools": [{"disks": ["vda", "vdb"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "bar", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "absent", "type": "lvm", "volumes": [{"_device": "/dev/mapper/bar-test1", "_mount_id": "/dev/mapper/bar-test1", "_raw_device": "/dev/mapper/bar-test1", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "ext4", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "bar", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "5g", "state": "absent", "type": "lvm"}]}], "volumes": []} TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:114 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "blivet_output": { "actions": [ { "action": "destroy format", "device": "/dev/mapper/bar-test1", "fs_type": "ext4" }, { "action": "destroy device", "device": "/dev/mapper/bar-test1", "fs_type": null }, { "action": "destroy device", "device": "/dev/bar", "fs_type": null }, { "action": "destroy format", "device": "/dev/vdb1", "fs_type": "lvmpv" }, { "action": "destroy device", "device": "/dev/vdb1", "fs_type": null }, { "action": "destroy format", "device": "/dev/vdb", "fs_type": "disklabel" }, { "action": "destroy format", "device": "/dev/vda1", "fs_type": "lvmpv" }, { "action": "destroy device", "device": "/dev/vda1", "fs_type": null }, { "action": "destroy format", "device": "/dev/vda", "fs_type": "disklabel" } ], "changed": true, "crypts": [], "failed": false, "leaves": [ "/dev/sda1", "/dev/sr0", "/dev/vda", "/dev/vdb", "/dev/vdc" ], "mounts": [ { "fstype": "ext4", "path": "/opt/test1", "src": "/dev/mapper/bar-test1", "state": "absent" } ], "packages": [ "e2fsprogs" ], "pools": [ { "disks": [ "vda", "vdb" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "bar", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "absent", "type": "lvm", "volumes": [ { "_device": "/dev/mapper/bar-test1", "_mount_id": "/dev/mapper/bar-test1", "_raw_device": "/dev/mapper/bar-test1", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "ext4", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "bar", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "5g", "state": "absent", "type": "lvm" } ] } ], "volumes": [] } } TASK [linux-system-roles.storage : set the list of pools for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:117 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": [{"disks": ["vda", "vdb"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "bar", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "absent", "type": "lvm", "volumes": [{"_device": "/dev/mapper/bar-test1", "_mount_id": "/dev/mapper/bar-test1", "_raw_device": "/dev/mapper/bar-test1", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "ext4", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "bar", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "5g", "state": "absent", "type": "lvm"}]}]}, "changed": false} TASK [linux-system-roles.storage : set the list of volumes for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:121 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : remove obsolete mounts] ********************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:137 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'src': u'/dev/mapper/bar-test1', u'state': u'absent', u'fstype': u'ext4', u'path': u'/opt/test1'}) => {"ansible_loop_var": "mount_info", "changed": true, "dump": "0", "fstab": "/etc/fstab", "fstype": "ext4", "mount_info": {"fstype": "ext4", "path": "/opt/test1", "src": "/dev/mapper/bar-test1", "state": "absent"}, "name": "/opt/test1", "opts": "defaults", "passno": "0", "src": "/dev/mapper/bar-test1"} TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:148 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [linux-system-roles.storage : set up new/current mounts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:153 TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:164 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [linux-system-roles.storage : Manage /etc/crypttab to account for changes we just made] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:172 TASK [linux-system-roles.storage : Update facts] ******************************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:187 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_change_fs_use_partitions.yml:79 included: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Print out pool information] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:1 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools_list": [ { "disks": [ "vda", "vdb" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "bar", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "absent", "type": "lvm", "volumes": [ { "_device": "/dev/mapper/bar-test1", "_mount_id": "/dev/mapper/bar-test1", "_raw_device": "/dev/mapper/bar-test1", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "ext4", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "bar", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "5g", "state": "absent", "type": "lvm" } ] } ] } TASK [Print out volume information] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:6 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {} TASK [Collect info about the volumes.] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "info": {"/dev/sda": {"fstype": "", "label": "", "name": "/dev/sda", "size": "4G", "type": "disk", "uuid": ""}, "/dev/sda1": {"fstype": "ext4", "label": "", "name": "/dev/sda1", "size": "4G", "type": "partition", "uuid": "03e702b4-e165-4a39-88c9-9e210cd00434"}, "/dev/sr0": {"fstype": "iso9660", "label": "cidata", "name": "/dev/sr0", "size": "364K", "type": "rom", "uuid": "2020-10-31-11-59-32-00"}, "/dev/vda": {"fstype": "", "label": "", "name": "/dev/vda", "size": "10G", "type": "disk", "uuid": ""}, "/dev/vdb": {"fstype": "", "label": "", "name": "/dev/vdb", "size": "10G", "type": "disk", "uuid": ""}, "/dev/vdc": {"fstype": "", "label": "", "name": "/dev/vdc", "size": "10G", "type": "disk", "uuid": ""}}} TASK [Read the /etc/fstab file for volume existence] *************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:19 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/fstab"], "delta": "0:00:00.002887", "end": "2020-10-31 12:02:16.456301", "rc": 0, "start": "2020-10-31 12:02:16.453414", "stderr": "", "stderr_lines": [], "stdout": "\n#\n# /etc/fstab\n# Created by anaconda on Sat Oct 31 08:17:58 2020\n#\n# Accessible filesystems, by reference, are maintained under '/dev/disk/'.\n# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.\n#\n# After editing this file, run 'systemctl daemon-reload' to update systemd\n# units generated from this file.\n#\nUUID=03e702b4-e165-4a39-88c9-9e210cd00434 / ext4 defaults 1 1", "stdout_lines": ["", "#", "# /etc/fstab", "# Created by anaconda on Sat Oct 31 08:17:58 2020", "#", "# Accessible filesystems, by reference, are maintained under '/dev/disk/'.", "# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.", "#", "# After editing this file, run 'systemctl daemon-reload' to update systemd", "# units generated from this file.", "#", "UUID=03e702b4-e165-4a39-88c9-9e210cd00434 / ext4 defaults 1 1"]} TASK [Read the /etc/crypttab file] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/crypttab"], "delta": "0:00:00.002453", "end": "2020-10-31 12:02:16.790327", "rc": 0, "start": "2020-10-31 12:02:16.787874", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Verify the volumes listed in storage_pools were correctly managed] ******* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:32 [WARNING]: The loop variable 'storage_test_pool' is already in use. You should set the `loop_var` value in the `loop_control` option for the task to something else to avoid variable collisions and unexpected behavior. included: /tmp/tmp7ksfxpzz/tests/test-verify-pool.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool.yml:5 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pool_tests": ["members", "volumes"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool.yml:17 included: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-pool-volumes.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:1 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_count": "0", "_storage_test_pool_pvs": [], "_storage_test_pool_pvs_lvm": []}, "changed": false} TASK [Get the canonical device path for each member device] ******************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:7 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:16 TASK [Verify PV count] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:23 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:29 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_type": "disk"}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:33 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_type": "partition"}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check the type of each PV] *********************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:41 TASK [Check raid] ************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:50 included: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [get information about RAID] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:6 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:12 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:16 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:20 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID active devices count] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:24 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID spare devices count] ****************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:30 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID metadata version] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:36 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:44 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_md_active_devices_re": null, "storage_test_md_metadata_version_re": null, "storage_test_md_spare_devices_re": null}, "changed": false} TASK [Check member encryption] ************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:53 included: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_crypttab_entries": "0", "_storage_test_expected_crypttab_key_file": "-"}, "changed": false} TASK [Validate pool member LUKS settings] ************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:8 TASK [Validate pool member crypttab entries] *********************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:15 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:22 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null, "_storage_test_crypttab_key_file": null}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:56 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_count": null, "_storage_test_expected_pv_type": null, "_storage_test_pool_pvs": [], "_storage_test_pool_pvs_lvm": []}, "changed": false} TASK [verify the volumes] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-volumes.yml:3 [WARNING]: The loop variable 'storage_test_volume' is already in use. You should set the `loop_var` value in the `loop_control` option for the task to something else to avoid variable collisions and unexpected behavior. included: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": false, "_storage_volume_tests": ["mount", "fstab", "fs", "device", "encryption", "md", "size"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:10 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Get expected mount device based on device type] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/bar-test1"}, "changed": false} TASK [Set some facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [], "storage_test_mount_expected_match_count": "0", "storage_test_mount_point_matches": [], "storage_test_swap_expected_matches": "0"}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:22 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:31 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:39 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [command] ***************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Gather swap info] ******************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:52 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify swap status] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:57 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Unset facts] ************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:67 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null, "storage_test_swap_expected_matches": null, "storage_test_swaps": null, "storage_test_sys_node": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": "0", "storage_test_fstab_expected_mount_point_matches": "0", "storage_test_fstab_id_matches": [], "storage_test_fstab_mount_point_matches": []}, "changed": false} TASK [Verify that the device identifier appears in /etc/fstab] ***************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:10 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:17 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": null, "storage_test_fstab_expected_mount_point_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [Verify fs type] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:4 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify fs label] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:10 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [See whether the device node is present] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "stat": {"exists": false}} TASK [Verify the presence/absence of the device node] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:18 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "lvm"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:28 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:33 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Stat the LUKS device, if encrypted] ************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:3 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Collect LUKS info for this volume] *************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:10 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the presence/absence of the LUKS device node] ********************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:16 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify that the raw device is the same as the device if not encrypted] *** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:25 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Make sure we got info about the LUKS volume if encrypted] **************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the LUKS volume's device type if encrypted] *********************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS version] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:42 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS key size] ***************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS cipher] ******************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:54 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:60 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": [], "_storage_test_expected_crypttab_entries": "0", "_storage_test_expected_crypttab_key_file": "-"}, "changed": false} TASK [Check for /etc/crypttab entry] ******************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:65 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Validate the format of the crypttab entry] ******************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:70 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check backing device of crypttab entry] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:76 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check key file of crypttab entry] **************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:82 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:88 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null, "_storage_test_expected_crypttab_entries": null, "_storage_test_expected_crypttab_key_file": null}, "changed": false} TASK [get information about RAID] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:7 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:13 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:17 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID active devices count] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:25 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID spare devices count] ****************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID metadata version] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [parse the actual size of the volume] ************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:3 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [parse the requested size of the volume] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:9 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:15 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_actual_size": { "changed": false, "skip_reason": "Conditional result was False", "skipped": true } } TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_requested_size": { "changed": false, "skip_reason": "Conditional result was False", "skipped": true } } TASK [assert] ****************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Clean up facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:16 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:39 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_pool": null}, "changed": false} TASK [Verify the volumes with no pool were correctly managed] ****************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:46 TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:56 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_blkinfo": null, "storage_test_crypttab": null, "storage_test_fstab": null, "storage_test_volume": null}, "changed": false} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 : ok=364 changed=8 unreachable=0 failed=0 skipped=194 rescued=0 ignored=0 + cd /tmp/tmp7ksfxpzz/tests; TEST_SUBJECTS=/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_storage-178-e856157-fedora-31-87qzp9iq/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmp7ksfxpzz/_setup.yml /tmp/tmp7ksfxpzz/tests/tests_change_mount.yml ansible-playbook 2.8.16 config file = /etc/ansible/ansible.cfg configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python2.7/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 2.7.5 (default, Apr 2 2020, 13:16:51) [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)] Using /etc/ansible/ansible.cfg as config file PLAYBOOK: _setup.yml *********************************************************** 1 plays in /tmp/tmp7ksfxpzz/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/_setup.yml:5 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "groups": { "all": [ "/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2" ], "localhost": [ "/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2" ], "subjects": [ "/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmp7ksfxpzz/_setup.yml:6 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 : ok=1 changed=0 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 PLAYBOOK: tests_change_mount.yml *********************************************** 1 plays in /tmp/tmp7ksfxpzz/tests/tests_change_mount.yml PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/tests_change_mount.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] META: ran handlers TASK [include_role : linux-system-roles.storage] ******************************* task path: /tmp/tmp7ksfxpzz/tests/tests_change_mount.yml:10 TASK [linux-system-roles.storage : Set version specific variables] ************* task path: /tmp/tmp7ksfxpzz/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-crypto", "libblockdev-dm", "libblockdev-lvm", "libblockdev-mdraid", "libblockdev-swap"]}, "ansible_included_var_files": ["/tmp/tmp7ksfxpzz/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.storage : define an empty list of pools to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : define an empty list of volumes to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : include the appropriate provider tasks] ***** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:22 included: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [linux-system-roles.storage : get a list of rpm packages installed on host machine] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : make sure blivet is available] ************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:7 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: python3-blivet", "Installed: libblockdev-crypto", "Installed: libblockdev-dm", "Installed: libblockdev-lvm", "Installed: libblockdev-mdraid", "Installed: libblockdev-swap", "Installed: libblockdev-2.24-2.fc31.x86_64", "Installed: libblockdev-btrfs-2.24-2.fc31.x86_64", "Installed: btrfs-progs-5.7-4.fc31.x86_64", "Installed: libblockdev-crypto-2.24-2.fc31.x86_64", "Installed: ndctl-70.1-1.fc31.x86_64", "Installed: gdisk-1.0.5-1.fc31.x86_64", "Installed: ndctl-libs-70.1-1.fc31.x86_64", "Installed: libblockdev-dm-2.24-2.fc31.x86_64", "Installed: compat-readline5-5.2-34.fc31.x86_64", "Installed: dmraid-1.0.0.rc16-43.fc31.x86_64", "Installed: dmraid-events-1.0.0.rc16-43.fc31.x86_64", "Installed: libblockdev-fs-2.24-2.fc31.x86_64", "Installed: mdadm-4.1-5.fc31.x86_64", "Installed: lzo-2.08-16.fc31.x86_64", "Installed: libblockdev-kbd-2.24-2.fc31.x86_64", "Installed: nspr-4.29.0-1.fc31.x86_64", "Installed: libblockdev-loop-2.24-2.fc31.x86_64", "Installed: nss-3.57.0-1.fc31.x86_64", "Installed: libblockdev-lvm-2.24-2.fc31.x86_64", "Installed: lsof-4.93.2-2.fc31.x86_64", "Installed: lvm2-2.03.09-1.fc31.x86_64", "Installed: nss-softokn-3.57.0-1.fc31.x86_64", "Installed: libblockdev-mdraid-2.24-2.fc31.x86_64", "Installed: nss-softokn-freebl-3.57.0-1.fc31.x86_64", "Installed: lvm2-libs-2.03.09-1.fc31.x86_64", "Installed: python3-gobject-base-3.34.0-3.fc31.x86_64", "Installed: libblockdev-mpath-2.24-2.fc31.x86_64", "Installed: nss-sysinit-3.57.0-1.fc31.x86_64", "Installed: device-mapper-event-1.02.171-1.fc31.x86_64", "Installed: nss-util-3.57.0-1.fc31.x86_64", "Installed: libblockdev-nvdimm-2.24-2.fc31.x86_64", "Installed: gobject-introspection-1.62.0-1.fc31.x86_64", "Installed: device-mapper-event-libs-1.02.171-1.fc31.x86_64", "Installed: userspace-rcu-0.11.1-2.fc31.x86_64", "Installed: libblockdev-part-2.24-2.fc31.x86_64", "Installed: volume_key-libs-0.3.12-4.fc31.x86_64", "Installed: libblockdev-swap-2.24-2.fc31.x86_64", "Installed: libblockdev-utils-2.24-2.fc31.x86_64", "Installed: blivet-data-1:3.1.7-2.fc31.noarch", "Installed: device-mapper-multipath-0.8.0-3.fc31.x86_64", "Installed: device-mapper-multipath-libs-0.8.0-3.fc31.x86_64", "Installed: device-mapper-persistent-data-0.8.5-2.fc31.x86_64", "Installed: sgpio-1.2.0.10-24.fc31.x86_64", "Installed: bcache-tools-1.0.8-16.fc31.x86_64", "Installed: python3-blivet-1:3.1.7-2.fc31.noarch", "Installed: daxctl-libs-70.1-1.fc31.x86_64", "Installed: python3-blockdev-2.24-2.fc31.x86_64", "Installed: python3-pyudev-0.21.0-11.fc31.noarch", "Installed: python3-pyparted-1:3.11.2-2.fc31.x86_64", "Installed: libbytesize-2.3-1.fc31.x86_64", "Installed: libaio-0.3.111-6.fc31.x86_64", "Installed: python3-bytesize-2.3-1.fc31.x86_64"]} TASK [linux-system-roles.storage : initialize internal facts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools": [], "_storage_vol_defaults": [], "_storage_vol_pools": [], "_storage_vols_no_defaults": [], "_storage_vols_no_defaults_by_pool": {}, "_storage_vols_w_defaults": [], "_storage_volumes": []}, "changed": false} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [1/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:28 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [2/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:36 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [3/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:44 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [4/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:52 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [5/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:61 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [6/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:72 TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools": [] } TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes": [] } TASK [linux-system-roles.storage : get required packages] ********************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": []} TASK [linux-system-roles.storage : make sure required packages are installed] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [linux-system-roles.storage : manage the pools and volumes to match the specified state] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:104 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": []} TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:114 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "blivet_output": { "actions": [], "changed": false, "crypts": [], "failed": false, "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": [] } } TASK [linux-system-roles.storage : set the list of pools for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:117 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : set the list of volumes for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:121 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : remove obsolete mounts] ********************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:137 TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:148 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : set up new/current mounts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:153 TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:164 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : Manage /etc/crypttab to account for changes we just made] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:172 TASK [linux-system-roles.storage : Update facts] ******************************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:187 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_change_mount.yml:13 included: /tmp/tmp7ksfxpzz/tests/get_unused_disk.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Find unused disks in the system] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/get_unused_disk.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "disks": ["vda"]} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/get_unused_disk.yml:8 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"unused_disks": ["vda"]}, "changed": false} TASK [Exit playbook when there's not enough unused disks in the system] ******** task path: /tmp/tmp7ksfxpzz/tests/get_unused_disk.yml:12 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Print unused disks] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/get_unused_disk.yml:17 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "unused_disks": [ "vda" ] } TASK [Create a LVM logical volume mounted at "/opt/test1"] ********************* task path: /tmp/tmp7ksfxpzz/tests/tests_change_mount.yml:18 TASK [linux-system-roles.storage : Set version specific variables] ************* task path: /tmp/tmp7ksfxpzz/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-crypto", "libblockdev-dm", "libblockdev-lvm", "libblockdev-mdraid", "libblockdev-swap"]}, "ansible_included_var_files": ["/tmp/tmp7ksfxpzz/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.storage : define an empty list of pools to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : define an empty list of volumes to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : include the appropriate provider tasks] ***** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:22 included: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [linux-system-roles.storage : get a list of rpm packages installed on host machine] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : make sure blivet is available] ************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: python3-blivet", "Installed: libblockdev-crypto", "Installed: libblockdev-dm", "Installed: libblockdev-lvm", "Installed: libblockdev-mdraid", "Installed: libblockdev-swap"]} TASK [linux-system-roles.storage : initialize internal facts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools": [], "_storage_vol_defaults": [], "_storage_vol_pools": [], "_storage_vols_no_defaults": [], "_storage_vols_no_defaults_by_pool": {}, "_storage_vols_w_defaults": [], "_storage_volumes": []}, "changed": false} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [1/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:28 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'disks': [u'vda'], u'name': u'foo', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'3g'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "3g"}]}]}, "ansible_loop_var": "pool", "changed": false, "pool": {"disks": ["vda"], "name": "foo", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "3g"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [2/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:36 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'3g'}], u'type': u'lvm', u'encryption_key_size': None}, {u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'3g'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}], "_storage_vol_pools": ["foo"], "_storage_vols_no_defaults": [{"mount_point": "/opt/test1", "name": "test1", "size": "3g"}]}, "ansible_loop_var": "item", "changed": false, "item": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "3g"}]}, {"mount_point": "/opt/test1", "name": "test1", "size": "3g"}]} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [3/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:44 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'3g'}, {u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'fs_label': u'', u'raid_level': None, u'mount_device_identifier': u'uuid', u'fs_type': u'xfs', u'mount_options': u'defaults', u'encryption_luks_version': None, u'raid_spare_count': None, u'size': 0, u'mount_point': u'', u'encryption_password': None, u'encryption': False, u'raid_chunk_size': None, u'raid_device_count': None, u'state': u'present', u'mount_check': 0, u'mount_passno': 0, u'fs_overwrite_existing': True, u'type': u'lvm', u'encryption_key_size': None, u'fs_create_options': u''}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm"}]}, "ansible_index_var": "idx", "ansible_loop_var": "item", "changed": false, "idx": 0, "item": [{"mount_point": "/opt/test1", "name": "test1", "size": "3g"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}]} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [4/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:52 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'3g'}], u'type': u'lvm', u'encryption_key_size': None}) => {"ansible_facts": {"_storage_vols_no_defaults_by_pool": {"foo": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm"}]}}, "ansible_loop_var": "item", "changed": false, "item": {"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "3g"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [5/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:61 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'3g'}], u'type': u'lvm', u'encryption_key_size': None}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm"}]}]}, "ansible_index_var": "idx", "ansible_loop_var": "pool", "changed": false, "idx": 0, "pool": {"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "3g"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [6/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:72 TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [ { "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm" } ] } ] } TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes": [] } TASK [linux-system-roles.storage : get required packages] ********************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": ["lvm2", "xfsprogs"], "pools": [], "volumes": []} TASK [linux-system-roles.storage : make sure required packages are installed] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: lvm2", "Installed: xfsprogs"]} TASK [linux-system-roles.storage : manage the pools and volumes to match the specified state] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:104 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [{"action": "create format", "device": "/dev/vda", "fs_type": "lvmpv"}, {"action": "create device", "device": "/dev/foo", "fs_type": null}, {"action": "create device", "device": "/dev/mapper/foo-test1", "fs_type": null}, {"action": "create format", "device": "/dev/mapper/foo-test1", "fs_type": "xfs"}], "changed": true, "crypts": [], "leaves": ["/dev/sda1", "/dev/sr0", "/dev/vdb", "/dev/vdc", "/dev/mapper/foo-test1"], "mounts": [{"dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "/dev/mapper/foo-test1", "state": "mounted"}], "packages": ["e2fsprogs", "xfsprogs", "lvm2"], "pools": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"_device": "/dev/mapper/foo-test1", "_kernel_device": "/dev/dm-0", "_mount_id": "/dev/mapper/foo-test1", "_raw_device": "/dev/mapper/foo-test1", "_raw_kernel_device": "/dev/dm-0", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm"}]}], "volumes": []} TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:114 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "blivet_output": { "actions": [ { "action": "create format", "device": "/dev/vda", "fs_type": "lvmpv" }, { "action": "create device", "device": "/dev/foo", "fs_type": null }, { "action": "create device", "device": "/dev/mapper/foo-test1", "fs_type": null }, { "action": "create format", "device": "/dev/mapper/foo-test1", "fs_type": "xfs" } ], "changed": true, "crypts": [], "failed": false, "leaves": [ "/dev/sda1", "/dev/sr0", "/dev/vdb", "/dev/vdc", "/dev/mapper/foo-test1" ], "mounts": [ { "dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "/dev/mapper/foo-test1", "state": "mounted" } ], "packages": [ "e2fsprogs", "xfsprogs", "lvm2" ], "pools": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [ { "_device": "/dev/mapper/foo-test1", "_kernel_device": "/dev/dm-0", "_mount_id": "/dev/mapper/foo-test1", "_raw_device": "/dev/mapper/foo-test1", "_raw_kernel_device": "/dev/dm-0", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm" } ] } ], "volumes": [] } } TASK [linux-system-roles.storage : set the list of pools for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:117 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"_device": "/dev/mapper/foo-test1", "_kernel_device": "/dev/dm-0", "_mount_id": "/dev/mapper/foo-test1", "_raw_device": "/dev/mapper/foo-test1", "_raw_kernel_device": "/dev/dm-0", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm"}]}]}, "changed": false} TASK [linux-system-roles.storage : set the list of volumes for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:121 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : remove obsolete mounts] ********************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:137 TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:148 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [linux-system-roles.storage : set up new/current mounts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:153 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'src': u'/dev/mapper/foo-test1', u'state': u'mounted', u'dump': 0, u'path': u'/opt/test1', u'passno': 0, u'opts': u'defaults', u'fstype': u'xfs'}) => {"ansible_loop_var": "mount_info", "changed": true, "dump": "0", "fstab": "/etc/fstab", "fstype": "xfs", "mount_info": {"dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "/dev/mapper/foo-test1", "state": "mounted"}, "name": "/opt/test1", "opts": "defaults", "passno": "0", "src": "/dev/mapper/foo-test1"} TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:164 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [linux-system-roles.storage : Manage /etc/crypttab to account for changes we just made] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:172 TASK [linux-system-roles.storage : Update facts] ******************************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:187 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_change_mount.yml:30 included: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Print out pool information] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:1 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools_list": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [ { "_device": "/dev/mapper/foo-test1", "_kernel_device": "/dev/dm-0", "_mount_id": "/dev/mapper/foo-test1", "_raw_device": "/dev/mapper/foo-test1", "_raw_kernel_device": "/dev/dm-0", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm" } ] } ] } TASK [Print out volume information] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:6 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {} TASK [Collect info about the volumes.] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "info": {"/dev/mapper/foo-test1": {"fstype": "xfs", "label": "", "name": "/dev/mapper/foo-test1", "size": "3G", "type": "lvm", "uuid": "ba0b8f3c-0823-4c08-b825-7da4e2b7c8bf"}, "/dev/sda": {"fstype": "", "label": "", "name": "/dev/sda", "size": "4G", "type": "disk", "uuid": ""}, "/dev/sda1": {"fstype": "ext4", "label": "", "name": "/dev/sda1", "size": "4G", "type": "partition", "uuid": "03e702b4-e165-4a39-88c9-9e210cd00434"}, "/dev/sr0": {"fstype": "iso9660", "label": "cidata", "name": "/dev/sr0", "size": "364K", "type": "rom", "uuid": "2020-10-31-12-02-20-00"}, "/dev/vda": {"fstype": "LVM2_member", "label": "", "name": "/dev/vda", "size": "10G", "type": "disk", "uuid": "eyQ5SJ-riir-wThV-1Dnn-Urxd-eLXI-twfLsr"}, "/dev/vdb": {"fstype": "", "label": "", "name": "/dev/vdb", "size": "10G", "type": "disk", "uuid": ""}, "/dev/vdc": {"fstype": "", "label": "", "name": "/dev/vdc", "size": "10G", "type": "disk", "uuid": ""}}} TASK [Read the /etc/fstab file for volume existence] *************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:19 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/fstab"], "delta": "0:00:00.002835", "end": "2020-10-31 12:04:04.989840", "rc": 0, "start": "2020-10-31 12:04:04.987005", "stderr": "", "stderr_lines": [], "stdout": "\n#\n# /etc/fstab\n# Created by anaconda on Sat Oct 31 08:17:58 2020\n#\n# Accessible filesystems, by reference, are maintained under '/dev/disk/'.\n# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.\n#\n# After editing this file, run 'systemctl daemon-reload' to update systemd\n# units generated from this file.\n#\nUUID=03e702b4-e165-4a39-88c9-9e210cd00434 / ext4 defaults 1 1\n/dev/mapper/foo-test1 /opt/test1 xfs defaults 0 0", "stdout_lines": ["", "#", "# /etc/fstab", "# Created by anaconda on Sat Oct 31 08:17:58 2020", "#", "# Accessible filesystems, by reference, are maintained under '/dev/disk/'.", "# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.", "#", "# After editing this file, run 'systemctl daemon-reload' to update systemd", "# units generated from this file.", "#", "UUID=03e702b4-e165-4a39-88c9-9e210cd00434 / ext4 defaults 1 1", "/dev/mapper/foo-test1 /opt/test1 xfs defaults 0 0"]} TASK [Read the /etc/crypttab file] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/crypttab"], "delta": "0:00:00.003322", "end": "2020-10-31 12:04:05.328645", "rc": 0, "start": "2020-10-31 12:04:05.325323", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Verify the volumes listed in storage_pools were correctly managed] ******* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:32 included: /tmp/tmp7ksfxpzz/tests/test-verify-pool.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool.yml:5 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pool_tests": ["members", "volumes"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool.yml:17 included: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-pool-volumes.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:1 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_count": "1", "_storage_test_pool_pvs": [], "_storage_test_pool_pvs_lvm": ["/dev/vda"]}, "changed": false} TASK [Get the canonical device path for each member device] ******************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:7 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=/dev/vda) => {"ansible_loop_var": "pv", "changed": false, "device": "/dev/vda", "pv": "/dev/vda"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:16 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=/dev/vda) => {"ansible_facts": {"_storage_test_pool_pvs": ["/dev/vda"]}, "ansible_index_var": "idx", "ansible_loop_var": "item", "changed": false, "idx": 0, "item": "/dev/vda"} TASK [Verify PV count] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:23 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:29 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_type": "disk"}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:33 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_type": "disk"}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check the type of each PV] *********************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:41 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=/dev/vda) => { "ansible_loop_var": "pv", "changed": false, "msg": "All assertions passed", "pv": "/dev/vda" } TASK [Check raid] ************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:50 included: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [get information about RAID] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:6 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:12 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:16 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:20 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID active devices count] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:24 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID spare devices count] ****************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:30 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID metadata version] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:36 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:44 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_md_active_devices_re": null, "storage_test_md_metadata_version_re": null, "storage_test_md_spare_devices_re": null}, "changed": false} TASK [Check member encryption] ************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:53 included: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_crypttab_entries": "0", "_storage_test_expected_crypttab_key_file": "-"}, "changed": false} TASK [Validate pool member LUKS settings] ************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:8 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=/dev/vda) => {"_storage_test_pool_member_path": "/dev/vda", "ansible_loop_var": "_storage_test_pool_member_path", "changed": false, "skip_reason": "Conditional result was False"} TASK [Validate pool member crypttab entries] *********************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:15 included: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:1 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": []}, "changed": false} TASK [Check for /etc/crypttab entry] ******************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Validate the format of the crypttab entry] ******************************* task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:9 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check backing device of crypttab entry] ********************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:15 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check key file of crypttab entry] **************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:27 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:22 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null, "_storage_test_crypttab_key_file": null}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:56 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_count": null, "_storage_test_expected_pv_type": null, "_storage_test_pool_pvs": [], "_storage_test_pool_pvs_lvm": []}, "changed": false} TASK [verify the volumes] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-volumes.yml:3 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": true, "_storage_volume_tests": ["mount", "fstab", "fs", "device", "encryption", "md", "size"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:10 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Get expected mount device based on device type] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/foo-test1"}, "changed": false} TASK [Set some facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [{"block_available": 770146, "block_size": 4096, "block_total": 783872, "block_used": 13726, "device": "/dev/mapper/foo-test1", "fstype": "xfs", "inode_available": 1572861, "inode_total": 1572864, "inode_used": 3, "mount": "/opt/test1", "options": "rw,seclabel,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota", "size_available": 3154518016, "size_total": 3210739712, "uuid": "ba0b8f3c-0823-4c08-b825-7da4e2b7c8bf"}], "storage_test_mount_expected_match_count": "1", "storage_test_mount_point_matches": [{"block_available": 770146, "block_size": 4096, "block_total": 783872, "block_used": 13726, "device": "/dev/mapper/foo-test1", "fstype": "xfs", "inode_available": 1572861, "inode_total": 1572864, "inode_used": 3, "mount": "/opt/test1", "options": "rw,seclabel,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota", "size_available": 3154518016, "size_total": 3210739712, "uuid": "ba0b8f3c-0823-4c08-b825-7da4e2b7c8bf"}], "storage_test_swap_expected_matches": "0"}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:22 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:31 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:39 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [command] ***************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Gather swap info] ******************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:52 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify swap status] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:57 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Unset facts] ************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:67 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null, "storage_test_swap_expected_matches": null, "storage_test_swaps": null, "storage_test_sys_node": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": "1", "storage_test_fstab_expected_mount_point_matches": "1", "storage_test_fstab_id_matches": ["/dev/mapper/foo-test1 "], "storage_test_fstab_mount_point_matches": [" /opt/test1 "]}, "changed": false} TASK [Verify that the device identifier appears in /etc/fstab] ***************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:17 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": null, "storage_test_fstab_expected_mount_point_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [Verify fs type] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify fs label] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [See whether the device node is present] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "stat": {"atime": 1604145839.907988, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "ctime": 1604145839.907988, "dev": 5, "device_type": 64768, "executable": false, "exists": true, "gid": 6, "gr_name": "disk", "inode": 66522, "isblk": true, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mimetype": "inode/symlink", "mode": "0660", "mtime": 1604145839.907988, "nlink": 1, "path": "/dev/mapper/foo-test1", "pw_name": "root", "readable": true, "rgrp": true, "roth": false, "rusr": true, "size": 0, "uid": 0, "version": null, "wgrp": true, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}} TASK [Verify the presence/absence of the device node] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "lvm"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:28 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:33 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Stat the LUKS device, if encrypted] ************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:3 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Collect LUKS info for this volume] *************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:10 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the presence/absence of the LUKS device node] ********************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:16 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify that the raw device is the same as the device if not encrypted] *** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:25 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about the LUKS volume if encrypted] **************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the LUKS volume's device type if encrypted] *********************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS version] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:42 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS key size] ***************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS cipher] ******************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:54 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:60 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": [], "_storage_test_expected_crypttab_entries": "0", "_storage_test_expected_crypttab_key_file": "-"}, "changed": false} TASK [Check for /etc/crypttab entry] ******************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:65 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Validate the format of the crypttab entry] ******************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:70 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check backing device of crypttab entry] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:76 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check key file of crypttab entry] **************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:82 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:88 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null, "_storage_test_expected_crypttab_entries": null, "_storage_test_expected_crypttab_key_file": null}, "changed": false} TASK [get information about RAID] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:7 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:13 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:17 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID active devices count] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:25 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID spare devices count] ****************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID metadata version] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [parse the actual size of the volume] ************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:3 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"bytes": 3221225472, "changed": false, "lvm": "3g", "parted": "3GiB", "size": "3 GiB"} TASK [parse the requested size of the volume] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:9 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"bytes": 3221225472, "changed": false, "lvm": "3g", "parted": "3GiB", "size": "3 GiB"} TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:15 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_actual_size": { "bytes": 3221225472, "changed": false, "failed": false, "lvm": "3g", "parted": "3GiB", "size": "3 GiB" } } TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_requested_size": { "bytes": 3221225472, "changed": false, "failed": false, "lvm": "3g", "parted": "3GiB", "size": "3 GiB" } } TASK [assert] ****************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:21 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:16 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:39 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_pool": null}, "changed": false} TASK [Verify the volumes with no pool were correctly managed] ****************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:46 TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:56 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_blkinfo": null, "storage_test_crypttab": null, "storage_test_fstab": null, "storage_test_volume": null}, "changed": false} TASK [Change the mount location to "/opt/test2"] ******************************* task path: /tmp/tmp7ksfxpzz/tests/tests_change_mount.yml:32 TASK [linux-system-roles.storage : Set version specific variables] ************* task path: /tmp/tmp7ksfxpzz/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-crypto", "libblockdev-dm", "libblockdev-lvm", "libblockdev-mdraid", "libblockdev-swap"]}, "ansible_included_var_files": ["/tmp/tmp7ksfxpzz/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.storage : define an empty list of pools to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : define an empty list of volumes to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : include the appropriate provider tasks] ***** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:22 included: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [linux-system-roles.storage : get a list of rpm packages installed on host machine] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : make sure blivet is available] ************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: python3-blivet", "Installed: libblockdev-crypto", "Installed: libblockdev-dm", "Installed: libblockdev-lvm", "Installed: libblockdev-mdraid", "Installed: libblockdev-swap"]} TASK [linux-system-roles.storage : initialize internal facts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools": [], "_storage_vol_defaults": [], "_storage_vol_pools": [], "_storage_vols_no_defaults": [], "_storage_vols_no_defaults_by_pool": {}, "_storage_vols_w_defaults": [], "_storage_volumes": []}, "changed": false} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [1/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:28 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'disks': [u'vda'], u'name': u'foo', u'volumes': [{u'mount_point': u'/opt/test2', u'name': u'test1', u'size': u'3g'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test2", "name": "test1", "size": "3g"}]}]}, "ansible_loop_var": "pool", "changed": false, "pool": {"disks": ["vda"], "name": "foo", "volumes": [{"mount_point": "/opt/test2", "name": "test1", "size": "3g"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [2/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:36 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test2', u'name': u'test1', u'size': u'3g'}], u'type': u'lvm', u'encryption_key_size': None}, {u'mount_point': u'/opt/test2', u'name': u'test1', u'size': u'3g'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}], "_storage_vol_pools": ["foo"], "_storage_vols_no_defaults": [{"mount_point": "/opt/test2", "name": "test1", "size": "3g"}]}, "ansible_loop_var": "item", "changed": false, "item": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test2", "name": "test1", "size": "3g"}]}, {"mount_point": "/opt/test2", "name": "test1", "size": "3g"}]} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [3/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:44 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'mount_point': u'/opt/test2', u'name': u'test1', u'size': u'3g'}, {u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'fs_label': u'', u'raid_level': None, u'mount_device_identifier': u'uuid', u'fs_type': u'xfs', u'mount_options': u'defaults', u'encryption_luks_version': None, u'raid_spare_count': None, u'size': 0, u'mount_point': u'', u'encryption_password': None, u'encryption': False, u'raid_chunk_size': None, u'raid_device_count': None, u'state': u'present', u'mount_check': 0, u'mount_passno': 0, u'fs_overwrite_existing': True, u'type': u'lvm', u'encryption_key_size': None, u'fs_create_options': u''}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm"}]}, "ansible_index_var": "idx", "ansible_loop_var": "item", "changed": false, "idx": 0, "item": [{"mount_point": "/opt/test2", "name": "test1", "size": "3g"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}]} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [4/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:52 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test2', u'name': u'test1', u'size': u'3g'}], u'type': u'lvm', u'encryption_key_size': None}) => {"ansible_facts": {"_storage_vols_no_defaults_by_pool": {"foo": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm"}]}}, "ansible_loop_var": "item", "changed": false, "item": {"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test2", "name": "test1", "size": "3g"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [5/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:61 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test2', u'name': u'test1', u'size': u'3g'}], u'type': u'lvm', u'encryption_key_size': None}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm"}]}]}, "ansible_index_var": "idx", "ansible_loop_var": "pool", "changed": false, "idx": 0, "pool": {"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test2", "name": "test1", "size": "3g"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [6/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:72 TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [ { "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm" } ] } ] } TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes": [] } TASK [linux-system-roles.storage : get required packages] ********************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": ["lvm2", "xfsprogs"], "pools": [], "volumes": []} TASK [linux-system-roles.storage : make sure required packages are installed] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: lvm2", "Installed: xfsprogs"]} TASK [linux-system-roles.storage : manage the pools and volumes to match the specified state] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:104 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": ["/dev/sda1", "/dev/sr0", "/dev/mapper/foo-test1", "/dev/vdb", "/dev/vdc"], "mounts": [{"path": "/opt/test1", "state": "absent"}, {"dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test2", "src": "/dev/mapper/foo-test1", "state": "mounted"}], "packages": ["e2fsprogs", "lvm2", "xfsprogs"], "pools": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"_device": "/dev/mapper/foo-test1", "_kernel_device": "/dev/dm-0", "_mount_id": "/dev/mapper/foo-test1", "_raw_device": "/dev/mapper/foo-test1", "_raw_kernel_device": "/dev/dm-0", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm"}]}], "volumes": []} TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:114 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "blivet_output": { "actions": [], "changed": false, "crypts": [], "failed": false, "leaves": [ "/dev/sda1", "/dev/sr0", "/dev/mapper/foo-test1", "/dev/vdb", "/dev/vdc" ], "mounts": [ { "path": "/opt/test1", "state": "absent" }, { "dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test2", "src": "/dev/mapper/foo-test1", "state": "mounted" } ], "packages": [ "e2fsprogs", "lvm2", "xfsprogs" ], "pools": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [ { "_device": "/dev/mapper/foo-test1", "_kernel_device": "/dev/dm-0", "_mount_id": "/dev/mapper/foo-test1", "_raw_device": "/dev/mapper/foo-test1", "_raw_kernel_device": "/dev/dm-0", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm" } ] } ], "volumes": [] } } TASK [linux-system-roles.storage : set the list of pools for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:117 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"_device": "/dev/mapper/foo-test1", "_kernel_device": "/dev/dm-0", "_mount_id": "/dev/mapper/foo-test1", "_raw_device": "/dev/mapper/foo-test1", "_raw_kernel_device": "/dev/dm-0", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm"}]}]}, "changed": false} TASK [linux-system-roles.storage : set the list of volumes for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:121 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : remove obsolete mounts] ********************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:137 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'path': u'/opt/test1', u'state': u'absent'}) => {"ansible_loop_var": "mount_info", "changed": true, "dump": "0", "fstab": "/etc/fstab", "mount_info": {"path": "/opt/test1", "state": "absent"}, "name": "/opt/test1", "opts": "defaults", "passno": "0"} TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:148 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [linux-system-roles.storage : set up new/current mounts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:153 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'src': u'/dev/mapper/foo-test1', u'state': u'mounted', u'dump': 0, u'path': u'/opt/test2', u'passno': 0, u'opts': u'defaults', u'fstype': u'xfs'}) => {"ansible_loop_var": "mount_info", "changed": true, "dump": "0", "fstab": "/etc/fstab", "fstype": "xfs", "mount_info": {"dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test2", "src": "/dev/mapper/foo-test1", "state": "mounted"}, "name": "/opt/test2", "opts": "defaults", "passno": "0", "src": "/dev/mapper/foo-test1"} TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:164 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [linux-system-roles.storage : Manage /etc/crypttab to account for changes we just made] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:172 TASK [linux-system-roles.storage : Update facts] ******************************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:187 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_change_mount.yml:44 included: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Print out pool information] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:1 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools_list": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [ { "_device": "/dev/mapper/foo-test1", "_kernel_device": "/dev/dm-0", "_mount_id": "/dev/mapper/foo-test1", "_raw_device": "/dev/mapper/foo-test1", "_raw_kernel_device": "/dev/dm-0", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm" } ] } ] } TASK [Print out volume information] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:6 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {} TASK [Collect info about the volumes.] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "info": {"/dev/mapper/foo-test1": {"fstype": "xfs", "label": "", "name": "/dev/mapper/foo-test1", "size": "3G", "type": "lvm", "uuid": "ba0b8f3c-0823-4c08-b825-7da4e2b7c8bf"}, "/dev/sda": {"fstype": "", "label": "", "name": "/dev/sda", "size": "4G", "type": "disk", "uuid": ""}, "/dev/sda1": {"fstype": "ext4", "label": "", "name": "/dev/sda1", "size": "4G", "type": "partition", "uuid": "03e702b4-e165-4a39-88c9-9e210cd00434"}, "/dev/sr0": {"fstype": "iso9660", "label": "cidata", "name": "/dev/sr0", "size": "364K", "type": "rom", "uuid": "2020-10-31-12-02-20-00"}, "/dev/vda": {"fstype": "LVM2_member", "label": "", "name": "/dev/vda", "size": "10G", "type": "disk", "uuid": "eyQ5SJ-riir-wThV-1Dnn-Urxd-eLXI-twfLsr"}, "/dev/vdb": {"fstype": "", "label": "", "name": "/dev/vdb", "size": "10G", "type": "disk", "uuid": ""}, "/dev/vdc": {"fstype": "", "label": "", "name": "/dev/vdc", "size": "10G", "type": "disk", "uuid": ""}}} TASK [Read the /etc/fstab file for volume existence] *************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:19 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/fstab"], "delta": "0:00:00.002543", "end": "2020-10-31 12:04:25.521047", "rc": 0, "start": "2020-10-31 12:04:25.518504", "stderr": "", "stderr_lines": [], "stdout": "\n#\n# /etc/fstab\n# Created by anaconda on Sat Oct 31 08:17:58 2020\n#\n# Accessible filesystems, by reference, are maintained under '/dev/disk/'.\n# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.\n#\n# After editing this file, run 'systemctl daemon-reload' to update systemd\n# units generated from this file.\n#\nUUID=03e702b4-e165-4a39-88c9-9e210cd00434 / ext4 defaults 1 1\n/dev/mapper/foo-test1 /opt/test2 xfs defaults 0 0", "stdout_lines": ["", "#", "# /etc/fstab", "# Created by anaconda on Sat Oct 31 08:17:58 2020", "#", "# Accessible filesystems, by reference, are maintained under '/dev/disk/'.", "# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.", "#", "# After editing this file, run 'systemctl daemon-reload' to update systemd", "# units generated from this file.", "#", "UUID=03e702b4-e165-4a39-88c9-9e210cd00434 / ext4 defaults 1 1", "/dev/mapper/foo-test1 /opt/test2 xfs defaults 0 0"]} TASK [Read the /etc/crypttab file] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/crypttab"], "delta": "0:00:00.002470", "end": "2020-10-31 12:04:25.870113", "rc": 0, "start": "2020-10-31 12:04:25.867643", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Verify the volumes listed in storage_pools were correctly managed] ******* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:32 [WARNING]: The loop variable 'storage_test_pool' is already in use. You should set the `loop_var` value in the `loop_control` option for the task to something else to avoid variable collisions and unexpected behavior. included: /tmp/tmp7ksfxpzz/tests/test-verify-pool.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool.yml:5 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pool_tests": ["members", "volumes"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool.yml:17 included: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-pool-volumes.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:1 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_count": "1", "_storage_test_pool_pvs": [], "_storage_test_pool_pvs_lvm": ["/dev/vda"]}, "changed": false} TASK [Get the canonical device path for each member device] ******************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:7 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=/dev/vda) => {"ansible_loop_var": "pv", "changed": false, "device": "/dev/vda", "pv": "/dev/vda"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:16 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=/dev/vda) => {"ansible_facts": {"_storage_test_pool_pvs": ["/dev/vda"]}, "ansible_index_var": "idx", "ansible_loop_var": "item", "changed": false, "idx": 0, "item": "/dev/vda"} TASK [Verify PV count] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:23 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:29 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_type": "disk"}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:33 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_type": "disk"}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check the type of each PV] *********************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:41 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=/dev/vda) => { "ansible_loop_var": "pv", "changed": false, "msg": "All assertions passed", "pv": "/dev/vda" } TASK [Check raid] ************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:50 included: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [get information about RAID] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:6 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:12 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:16 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:20 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID active devices count] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:24 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID spare devices count] ****************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:30 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID metadata version] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:36 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:44 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_md_active_devices_re": null, "storage_test_md_metadata_version_re": null, "storage_test_md_spare_devices_re": null}, "changed": false} TASK [Check member encryption] ************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:53 included: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_crypttab_entries": "0", "_storage_test_expected_crypttab_key_file": "-"}, "changed": false} TASK [Validate pool member LUKS settings] ************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:8 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=/dev/vda) => {"_storage_test_pool_member_path": "/dev/vda", "ansible_loop_var": "_storage_test_pool_member_path", "changed": false, "skip_reason": "Conditional result was False"} TASK [Validate pool member crypttab entries] *********************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:15 included: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:1 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": []}, "changed": false} TASK [Check for /etc/crypttab entry] ******************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Validate the format of the crypttab entry] ******************************* task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:9 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check backing device of crypttab entry] ********************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:15 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check key file of crypttab entry] **************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:27 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:22 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null, "_storage_test_crypttab_key_file": null}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:56 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_count": null, "_storage_test_expected_pv_type": null, "_storage_test_pool_pvs": [], "_storage_test_pool_pvs_lvm": []}, "changed": false} TASK [verify the volumes] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-volumes.yml:3 [WARNING]: The loop variable 'storage_test_volume' is already in use. You should set the `loop_var` value in the `loop_control` option for the task to something else to avoid variable collisions and unexpected behavior. included: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": true, "_storage_volume_tests": ["mount", "fstab", "fs", "device", "encryption", "md", "size"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:10 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Get expected mount device based on device type] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/foo-test1"}, "changed": false} TASK [Set some facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [{"block_available": 770146, "block_size": 4096, "block_total": 783872, "block_used": 13726, "device": "/dev/mapper/foo-test1", "fstype": "xfs", "inode_available": 1572861, "inode_total": 1572864, "inode_used": 3, "mount": "/opt/test2", "options": "rw,seclabel,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota", "size_available": 3154518016, "size_total": 3210739712, "uuid": "ba0b8f3c-0823-4c08-b825-7da4e2b7c8bf"}], "storage_test_mount_expected_match_count": "1", "storage_test_mount_point_matches": [{"block_available": 770146, "block_size": 4096, "block_total": 783872, "block_used": 13726, "device": "/dev/mapper/foo-test1", "fstype": "xfs", "inode_available": 1572861, "inode_total": 1572864, "inode_used": 3, "mount": "/opt/test2", "options": "rw,seclabel,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota", "size_available": 3154518016, "size_total": 3210739712, "uuid": "ba0b8f3c-0823-4c08-b825-7da4e2b7c8bf"}], "storage_test_swap_expected_matches": "0"}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:22 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:31 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:39 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [command] ***************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Gather swap info] ******************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:52 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify swap status] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:57 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Unset facts] ************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:67 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null, "storage_test_swap_expected_matches": null, "storage_test_swaps": null, "storage_test_sys_node": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": "1", "storage_test_fstab_expected_mount_point_matches": "1", "storage_test_fstab_id_matches": ["/dev/mapper/foo-test1 "], "storage_test_fstab_mount_point_matches": [" /opt/test2 "]}, "changed": false} TASK [Verify that the device identifier appears in /etc/fstab] ***************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:17 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": null, "storage_test_fstab_expected_mount_point_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [Verify fs type] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify fs label] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [See whether the device node is present] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "stat": {"atime": 1604145839.907988, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "ctime": 1604145839.907988, "dev": 5, "device_type": 64768, "executable": false, "exists": true, "gid": 6, "gr_name": "disk", "inode": 66522, "isblk": true, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mimetype": "inode/symlink", "mode": "0660", "mtime": 1604145839.907988, "nlink": 1, "path": "/dev/mapper/foo-test1", "pw_name": "root", "readable": true, "rgrp": true, "roth": false, "rusr": true, "size": 0, "uid": 0, "version": null, "wgrp": true, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}} TASK [Verify the presence/absence of the device node] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "lvm"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:28 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:33 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Stat the LUKS device, if encrypted] ************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:3 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Collect LUKS info for this volume] *************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:10 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the presence/absence of the LUKS device node] ********************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:16 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify that the raw device is the same as the device if not encrypted] *** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:25 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about the LUKS volume if encrypted] **************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the LUKS volume's device type if encrypted] *********************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS version] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:42 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS key size] ***************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS cipher] ******************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:54 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:60 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": [], "_storage_test_expected_crypttab_entries": "0", "_storage_test_expected_crypttab_key_file": "-"}, "changed": false} TASK [Check for /etc/crypttab entry] ******************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:65 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Validate the format of the crypttab entry] ******************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:70 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check backing device of crypttab entry] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:76 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check key file of crypttab entry] **************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:82 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:88 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null, "_storage_test_expected_crypttab_entries": null, "_storage_test_expected_crypttab_key_file": null}, "changed": false} TASK [get information about RAID] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:7 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:13 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:17 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID active devices count] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:25 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID spare devices count] ****************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID metadata version] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [parse the actual size of the volume] ************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:3 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"bytes": 3221225472, "changed": false, "lvm": "3g", "parted": "3GiB", "size": "3 GiB"} TASK [parse the requested size of the volume] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:9 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"bytes": 3221225472, "changed": false, "lvm": "3g", "parted": "3GiB", "size": "3 GiB"} TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:15 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_actual_size": { "bytes": 3221225472, "changed": false, "failed": false, "lvm": "3g", "parted": "3GiB", "size": "3 GiB" } } TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_requested_size": { "bytes": 3221225472, "changed": false, "failed": false, "lvm": "3g", "parted": "3GiB", "size": "3 GiB" } } TASK [assert] ****************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:21 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:16 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:39 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_pool": null}, "changed": false} TASK [Verify the volumes with no pool were correctly managed] ****************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:46 TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:56 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_blkinfo": null, "storage_test_crypttab": null, "storage_test_fstab": null, "storage_test_volume": null}, "changed": false} TASK [Repeat the previous invocation to verify idempotence] ******************** task path: /tmp/tmp7ksfxpzz/tests/tests_change_mount.yml:46 TASK [linux-system-roles.storage : Set version specific variables] ************* task path: /tmp/tmp7ksfxpzz/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-crypto", "libblockdev-dm", "libblockdev-lvm", "libblockdev-mdraid", "libblockdev-swap"]}, "ansible_included_var_files": ["/tmp/tmp7ksfxpzz/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.storage : define an empty list of pools to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : define an empty list of volumes to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : include the appropriate provider tasks] ***** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:22 included: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [linux-system-roles.storage : get a list of rpm packages installed on host machine] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : make sure blivet is available] ************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: python3-blivet", "Installed: libblockdev-crypto", "Installed: libblockdev-dm", "Installed: libblockdev-lvm", "Installed: libblockdev-mdraid", "Installed: libblockdev-swap"]} TASK [linux-system-roles.storage : initialize internal facts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools": [], "_storage_vol_defaults": [], "_storage_vol_pools": [], "_storage_vols_no_defaults": [], "_storage_vols_no_defaults_by_pool": {}, "_storage_vols_w_defaults": [], "_storage_volumes": []}, "changed": false} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [1/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:28 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'disks': [u'vda'], u'name': u'foo', u'volumes': [{u'mount_point': u'/opt/test2', u'name': u'test1', u'size': u'3g'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test2", "name": "test1", "size": "3g"}]}]}, "ansible_loop_var": "pool", "changed": false, "pool": {"disks": ["vda"], "name": "foo", "volumes": [{"mount_point": "/opt/test2", "name": "test1", "size": "3g"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [2/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:36 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test2', u'name': u'test1', u'size': u'3g'}], u'type': u'lvm', u'encryption_key_size': None}, {u'mount_point': u'/opt/test2', u'name': u'test1', u'size': u'3g'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}], "_storage_vol_pools": ["foo"], "_storage_vols_no_defaults": [{"mount_point": "/opt/test2", "name": "test1", "size": "3g"}]}, "ansible_loop_var": "item", "changed": false, "item": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test2", "name": "test1", "size": "3g"}]}, {"mount_point": "/opt/test2", "name": "test1", "size": "3g"}]} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [3/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:44 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'mount_point': u'/opt/test2', u'name': u'test1', u'size': u'3g'}, {u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'fs_label': u'', u'raid_level': None, u'mount_device_identifier': u'uuid', u'fs_type': u'xfs', u'mount_options': u'defaults', u'encryption_luks_version': None, u'raid_spare_count': None, u'size': 0, u'mount_point': u'', u'encryption_password': None, u'encryption': False, u'raid_chunk_size': None, u'raid_device_count': None, u'state': u'present', u'mount_check': 0, u'mount_passno': 0, u'fs_overwrite_existing': True, u'type': u'lvm', u'encryption_key_size': None, u'fs_create_options': u''}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm"}]}, "ansible_index_var": "idx", "ansible_loop_var": "item", "changed": false, "idx": 0, "item": [{"mount_point": "/opt/test2", "name": "test1", "size": "3g"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}]} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [4/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:52 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test2', u'name': u'test1', u'size': u'3g'}], u'type': u'lvm', u'encryption_key_size': None}) => {"ansible_facts": {"_storage_vols_no_defaults_by_pool": {"foo": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm"}]}}, "ansible_loop_var": "item", "changed": false, "item": {"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test2", "name": "test1", "size": "3g"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [5/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:61 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test2', u'name': u'test1', u'size': u'3g'}], u'type': u'lvm', u'encryption_key_size': None}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm"}]}]}, "ansible_index_var": "idx", "ansible_loop_var": "pool", "changed": false, "idx": 0, "pool": {"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test2", "name": "test1", "size": "3g"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [6/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:72 TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [ { "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm" } ] } ] } TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes": [] } TASK [linux-system-roles.storage : get required packages] ********************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": ["lvm2", "xfsprogs"], "pools": [], "volumes": []} TASK [linux-system-roles.storage : make sure required packages are installed] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: lvm2", "Installed: xfsprogs"]} TASK [linux-system-roles.storage : manage the pools and volumes to match the specified state] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:104 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": ["/dev/sda1", "/dev/sr0", "/dev/mapper/foo-test1", "/dev/vdb", "/dev/vdc"], "mounts": [{"dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test2", "src": "/dev/mapper/foo-test1", "state": "mounted"}], "packages": ["lvm2", "xfsprogs", "e2fsprogs"], "pools": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"_device": "/dev/mapper/foo-test1", "_kernel_device": "/dev/dm-0", "_mount_id": "/dev/mapper/foo-test1", "_raw_device": "/dev/mapper/foo-test1", "_raw_kernel_device": "/dev/dm-0", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm"}]}], "volumes": []} TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:114 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "blivet_output": { "actions": [], "changed": false, "crypts": [], "failed": false, "leaves": [ "/dev/sda1", "/dev/sr0", "/dev/mapper/foo-test1", "/dev/vdb", "/dev/vdc" ], "mounts": [ { "dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test2", "src": "/dev/mapper/foo-test1", "state": "mounted" } ], "packages": [ "lvm2", "xfsprogs", "e2fsprogs" ], "pools": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [ { "_device": "/dev/mapper/foo-test1", "_kernel_device": "/dev/dm-0", "_mount_id": "/dev/mapper/foo-test1", "_raw_device": "/dev/mapper/foo-test1", "_raw_kernel_device": "/dev/dm-0", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm" } ] } ], "volumes": [] } } TASK [linux-system-roles.storage : set the list of pools for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:117 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"_device": "/dev/mapper/foo-test1", "_kernel_device": "/dev/dm-0", "_mount_id": "/dev/mapper/foo-test1", "_raw_device": "/dev/mapper/foo-test1", "_raw_kernel_device": "/dev/dm-0", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm"}]}]}, "changed": false} TASK [linux-system-roles.storage : set the list of volumes for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:121 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : remove obsolete mounts] ********************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:137 TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:148 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [linux-system-roles.storage : set up new/current mounts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:153 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'src': u'/dev/mapper/foo-test1', u'state': u'mounted', u'dump': 0, u'path': u'/opt/test2', u'passno': 0, u'opts': u'defaults', u'fstype': u'xfs'}) => {"ansible_loop_var": "mount_info", "changed": false, "dump": "0", "fstab": "/etc/fstab", "fstype": "xfs", "mount_info": {"dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test2", "src": "/dev/mapper/foo-test1", "state": "mounted"}, "name": "/opt/test2", "opts": "defaults", "passno": "0", "src": "/dev/mapper/foo-test1"} TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:164 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [linux-system-roles.storage : Manage /etc/crypttab to account for changes we just made] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:172 TASK [linux-system-roles.storage : Update facts] ******************************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:187 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_change_mount.yml:58 included: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Print out pool information] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:1 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools_list": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [ { "_device": "/dev/mapper/foo-test1", "_kernel_device": "/dev/dm-0", "_mount_id": "/dev/mapper/foo-test1", "_raw_device": "/dev/mapper/foo-test1", "_raw_kernel_device": "/dev/dm-0", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm" } ] } ] } TASK [Print out volume information] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:6 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {} TASK [Collect info about the volumes.] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "info": {"/dev/mapper/foo-test1": {"fstype": "xfs", "label": "", "name": "/dev/mapper/foo-test1", "size": "3G", "type": "lvm", "uuid": "ba0b8f3c-0823-4c08-b825-7da4e2b7c8bf"}, "/dev/sda": {"fstype": "", "label": "", "name": "/dev/sda", "size": "4G", "type": "disk", "uuid": ""}, "/dev/sda1": {"fstype": "ext4", "label": "", "name": "/dev/sda1", "size": "4G", "type": "partition", "uuid": "03e702b4-e165-4a39-88c9-9e210cd00434"}, "/dev/sr0": {"fstype": "iso9660", "label": "cidata", "name": "/dev/sr0", "size": "364K", "type": "rom", "uuid": "2020-10-31-12-02-20-00"}, "/dev/vda": {"fstype": "LVM2_member", "label": "", "name": "/dev/vda", "size": "10G", "type": "disk", "uuid": "eyQ5SJ-riir-wThV-1Dnn-Urxd-eLXI-twfLsr"}, "/dev/vdb": {"fstype": "", "label": "", "name": "/dev/vdb", "size": "10G", "type": "disk", "uuid": ""}, "/dev/vdc": {"fstype": "", "label": "", "name": "/dev/vdc", "size": "10G", "type": "disk", "uuid": ""}}} TASK [Read the /etc/fstab file for volume existence] *************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:19 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/fstab"], "delta": "0:00:00.002867", "end": "2020-10-31 12:04:45.106393", "rc": 0, "start": "2020-10-31 12:04:45.103526", "stderr": "", "stderr_lines": [], "stdout": "\n#\n# /etc/fstab\n# Created by anaconda on Sat Oct 31 08:17:58 2020\n#\n# Accessible filesystems, by reference, are maintained under '/dev/disk/'.\n# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.\n#\n# After editing this file, run 'systemctl daemon-reload' to update systemd\n# units generated from this file.\n#\nUUID=03e702b4-e165-4a39-88c9-9e210cd00434 / ext4 defaults 1 1\n/dev/mapper/foo-test1 /opt/test2 xfs defaults 0 0", "stdout_lines": ["", "#", "# /etc/fstab", "# Created by anaconda on Sat Oct 31 08:17:58 2020", "#", "# Accessible filesystems, by reference, are maintained under '/dev/disk/'.", "# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.", "#", "# After editing this file, run 'systemctl daemon-reload' to update systemd", "# units generated from this file.", "#", "UUID=03e702b4-e165-4a39-88c9-9e210cd00434 / ext4 defaults 1 1", "/dev/mapper/foo-test1 /opt/test2 xfs defaults 0 0"]} TASK [Read the /etc/crypttab file] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/crypttab"], "delta": "0:00:00.002640", "end": "2020-10-31 12:04:45.449598", "rc": 0, "start": "2020-10-31 12:04:45.446958", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Verify the volumes listed in storage_pools were correctly managed] ******* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:32 [WARNING]: The loop variable 'storage_test_pool' is already in use. You should set the `loop_var` value in the `loop_control` option for the task to something else to avoid variable collisions and unexpected behavior. included: /tmp/tmp7ksfxpzz/tests/test-verify-pool.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool.yml:5 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pool_tests": ["members", "volumes"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool.yml:17 included: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-pool-volumes.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:1 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_count": "1", "_storage_test_pool_pvs": [], "_storage_test_pool_pvs_lvm": ["/dev/vda"]}, "changed": false} TASK [Get the canonical device path for each member device] ******************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:7 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=/dev/vda) => {"ansible_loop_var": "pv", "changed": false, "device": "/dev/vda", "pv": "/dev/vda"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:16 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=/dev/vda) => {"ansible_facts": {"_storage_test_pool_pvs": ["/dev/vda"]}, "ansible_index_var": "idx", "ansible_loop_var": "item", "changed": false, "idx": 0, "item": "/dev/vda"} TASK [Verify PV count] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:23 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:29 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_type": "disk"}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:33 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_type": "disk"}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check the type of each PV] *********************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:41 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=/dev/vda) => { "ansible_loop_var": "pv", "changed": false, "msg": "All assertions passed", "pv": "/dev/vda" } TASK [Check raid] ************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:50 included: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [get information about RAID] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:6 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:12 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:16 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:20 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID active devices count] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:24 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID spare devices count] ****************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:30 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID metadata version] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:36 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:44 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_md_active_devices_re": null, "storage_test_md_metadata_version_re": null, "storage_test_md_spare_devices_re": null}, "changed": false} TASK [Check member encryption] ************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:53 included: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_crypttab_entries": "0", "_storage_test_expected_crypttab_key_file": "-"}, "changed": false} TASK [Validate pool member LUKS settings] ************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:8 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=/dev/vda) => {"_storage_test_pool_member_path": "/dev/vda", "ansible_loop_var": "_storage_test_pool_member_path", "changed": false, "skip_reason": "Conditional result was False"} TASK [Validate pool member crypttab entries] *********************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:15 included: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:1 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": []}, "changed": false} TASK [Check for /etc/crypttab entry] ******************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Validate the format of the crypttab entry] ******************************* task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:9 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check backing device of crypttab entry] ********************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:15 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check key file of crypttab entry] **************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:27 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:22 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null, "_storage_test_crypttab_key_file": null}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:56 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_count": null, "_storage_test_expected_pv_type": null, "_storage_test_pool_pvs": [], "_storage_test_pool_pvs_lvm": []}, "changed": false} TASK [verify the volumes] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-volumes.yml:3 [WARNING]: The loop variable 'storage_test_volume' is already in use. You should set the `loop_var` value in the `loop_control` option for the task to something else to avoid variable collisions and unexpected behavior. included: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": true, "_storage_volume_tests": ["mount", "fstab", "fs", "device", "encryption", "md", "size"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:10 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Get expected mount device based on device type] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/foo-test1"}, "changed": false} TASK [Set some facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [{"block_available": 770146, "block_size": 4096, "block_total": 783872, "block_used": 13726, "device": "/dev/mapper/foo-test1", "fstype": "xfs", "inode_available": 1572861, "inode_total": 1572864, "inode_used": 3, "mount": "/opt/test2", "options": "rw,seclabel,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota", "size_available": 3154518016, "size_total": 3210739712, "uuid": "ba0b8f3c-0823-4c08-b825-7da4e2b7c8bf"}], "storage_test_mount_expected_match_count": "1", "storage_test_mount_point_matches": [{"block_available": 770146, "block_size": 4096, "block_total": 783872, "block_used": 13726, "device": "/dev/mapper/foo-test1", "fstype": "xfs", "inode_available": 1572861, "inode_total": 1572864, "inode_used": 3, "mount": "/opt/test2", "options": "rw,seclabel,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota", "size_available": 3154518016, "size_total": 3210739712, "uuid": "ba0b8f3c-0823-4c08-b825-7da4e2b7c8bf"}], "storage_test_swap_expected_matches": "0"}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:22 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:31 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:39 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [command] ***************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Gather swap info] ******************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:52 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify swap status] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:57 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Unset facts] ************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:67 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null, "storage_test_swap_expected_matches": null, "storage_test_swaps": null, "storage_test_sys_node": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": "1", "storage_test_fstab_expected_mount_point_matches": "1", "storage_test_fstab_id_matches": ["/dev/mapper/foo-test1 "], "storage_test_fstab_mount_point_matches": [" /opt/test2 "]}, "changed": false} TASK [Verify that the device identifier appears in /etc/fstab] ***************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:17 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": null, "storage_test_fstab_expected_mount_point_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [Verify fs type] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify fs label] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [See whether the device node is present] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "stat": {"atime": 1604145839.907988, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "ctime": 1604145839.907988, "dev": 5, "device_type": 64768, "executable": false, "exists": true, "gid": 6, "gr_name": "disk", "inode": 66522, "isblk": true, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mimetype": "inode/symlink", "mode": "0660", "mtime": 1604145839.907988, "nlink": 1, "path": "/dev/mapper/foo-test1", "pw_name": "root", "readable": true, "rgrp": true, "roth": false, "rusr": true, "size": 0, "uid": 0, "version": null, "wgrp": true, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}} TASK [Verify the presence/absence of the device node] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "lvm"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:28 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:33 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Stat the LUKS device, if encrypted] ************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:3 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Collect LUKS info for this volume] *************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:10 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the presence/absence of the LUKS device node] ********************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:16 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify that the raw device is the same as the device if not encrypted] *** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:25 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about the LUKS volume if encrypted] **************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the LUKS volume's device type if encrypted] *********************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS version] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:42 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS key size] ***************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS cipher] ******************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:54 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:60 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": [], "_storage_test_expected_crypttab_entries": "0", "_storage_test_expected_crypttab_key_file": "-"}, "changed": false} TASK [Check for /etc/crypttab entry] ******************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:65 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Validate the format of the crypttab entry] ******************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:70 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check backing device of crypttab entry] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:76 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check key file of crypttab entry] **************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:82 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:88 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null, "_storage_test_expected_crypttab_entries": null, "_storage_test_expected_crypttab_key_file": null}, "changed": false} TASK [get information about RAID] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:7 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:13 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:17 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID active devices count] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:25 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID spare devices count] ****************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID metadata version] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [parse the actual size of the volume] ************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:3 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"bytes": 3221225472, "changed": false, "lvm": "3g", "parted": "3GiB", "size": "3 GiB"} TASK [parse the requested size of the volume] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:9 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"bytes": 3221225472, "changed": false, "lvm": "3g", "parted": "3GiB", "size": "3 GiB"} TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:15 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_actual_size": { "bytes": 3221225472, "changed": false, "failed": false, "lvm": "3g", "parted": "3GiB", "size": "3 GiB" } } TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_requested_size": { "bytes": 3221225472, "changed": false, "failed": false, "lvm": "3g", "parted": "3GiB", "size": "3 GiB" } } TASK [assert] ****************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:21 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:16 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:39 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_pool": null}, "changed": false} TASK [Verify the volumes with no pool were correctly managed] ****************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:46 TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:56 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_blkinfo": null, "storage_test_crypttab": null, "storage_test_fstab": null, "storage_test_volume": null}, "changed": false} TASK [Clean up] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_change_mount.yml:60 TASK [linux-system-roles.storage : Set version specific variables] ************* task path: /tmp/tmp7ksfxpzz/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-crypto", "libblockdev-dm", "libblockdev-lvm", "libblockdev-mdraid", "libblockdev-swap"]}, "ansible_included_var_files": ["/tmp/tmp7ksfxpzz/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.storage : define an empty list of pools to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : define an empty list of volumes to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : include the appropriate provider tasks] ***** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:22 included: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [linux-system-roles.storage : get a list of rpm packages installed on host machine] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : make sure blivet is available] ************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: python3-blivet", "Installed: libblockdev-crypto", "Installed: libblockdev-dm", "Installed: libblockdev-lvm", "Installed: libblockdev-mdraid", "Installed: libblockdev-swap"]} TASK [linux-system-roles.storage : initialize internal facts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools": [], "_storage_vol_defaults": [], "_storage_vol_pools": [], "_storage_vols_no_defaults": [], "_storage_vols_no_defaults_by_pool": {}, "_storage_vols_w_defaults": [], "_storage_volumes": []}, "changed": false} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [1/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:28 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'state': u'absent', u'disks': [u'vda'], u'name': u'foo', u'volumes': [{u'mount_point': u'/opt/test2', u'name': u'test1', u'size': u'3g'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "absent", "type": "lvm", "volumes": [{"mount_point": "/opt/test2", "name": "test1", "size": "3g"}]}]}, "ansible_loop_var": "pool", "changed": false, "pool": {"disks": ["vda"], "name": "foo", "state": "absent", "volumes": [{"mount_point": "/opt/test2", "name": "test1", "size": "3g"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [2/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:36 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'absent', u'volumes': [{u'mount_point': u'/opt/test2', u'name': u'test1', u'size': u'3g'}], u'type': u'lvm', u'encryption_key_size': None}, {u'mount_point': u'/opt/test2', u'name': u'test1', u'size': u'3g'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}], "_storage_vol_pools": ["foo"], "_storage_vols_no_defaults": [{"mount_point": "/opt/test2", "name": "test1", "size": "3g"}]}, "ansible_loop_var": "item", "changed": false, "item": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "absent", "type": "lvm", "volumes": [{"mount_point": "/opt/test2", "name": "test1", "size": "3g"}]}, {"mount_point": "/opt/test2", "name": "test1", "size": "3g"}]} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [3/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:44 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'mount_point': u'/opt/test2', u'name': u'test1', u'size': u'3g'}, {u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'fs_label': u'', u'raid_level': None, u'mount_device_identifier': u'uuid', u'fs_type': u'xfs', u'mount_options': u'defaults', u'encryption_luks_version': None, u'raid_spare_count': None, u'size': 0, u'mount_point': u'', u'encryption_password': None, u'encryption': False, u'raid_chunk_size': None, u'raid_device_count': None, u'state': u'present', u'mount_check': 0, u'mount_passno': 0, u'fs_overwrite_existing': True, u'type': u'lvm', u'encryption_key_size': None, u'fs_create_options': u''}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm"}]}, "ansible_index_var": "idx", "ansible_loop_var": "item", "changed": false, "idx": 0, "item": [{"mount_point": "/opt/test2", "name": "test1", "size": "3g"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}]} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [4/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:52 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'absent', u'volumes': [{u'mount_point': u'/opt/test2', u'name': u'test1', u'size': u'3g'}], u'type': u'lvm', u'encryption_key_size': None}) => {"ansible_facts": {"_storage_vols_no_defaults_by_pool": {"foo": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm"}]}}, "ansible_loop_var": "item", "changed": false, "item": {"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "absent", "type": "lvm", "volumes": [{"mount_point": "/opt/test2", "name": "test1", "size": "3g"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [5/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:61 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'absent', u'volumes': [{u'mount_point': u'/opt/test2', u'name': u'test1', u'size': u'3g'}], u'type': u'lvm', u'encryption_key_size': None}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "absent", "type": "lvm", "volumes": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm"}]}]}, "ansible_index_var": "idx", "ansible_loop_var": "pool", "changed": false, "idx": 0, "pool": {"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "absent", "type": "lvm", "volumes": [{"mount_point": "/opt/test2", "name": "test1", "size": "3g"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [6/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:72 TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "absent", "type": "lvm", "volumes": [ { "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm" } ] } ] } TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes": [] } TASK [linux-system-roles.storage : get required packages] ********************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": []} TASK [linux-system-roles.storage : make sure required packages are installed] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [linux-system-roles.storage : manage the pools and volumes to match the specified state] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:104 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [{"action": "destroy format", "device": "/dev/mapper/foo-test1", "fs_type": "xfs"}, {"action": "destroy device", "device": "/dev/mapper/foo-test1", "fs_type": null}, {"action": "destroy device", "device": "/dev/foo", "fs_type": null}, {"action": "destroy format", "device": "/dev/vda", "fs_type": "lvmpv"}], "changed": true, "crypts": [], "leaves": ["/dev/sda1", "/dev/sr0", "/dev/vda", "/dev/vdb", "/dev/vdc"], "mounts": [{"fstype": "xfs", "path": "/opt/test2", "src": "/dev/mapper/foo-test1", "state": "absent"}], "packages": ["e2fsprogs"], "pools": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "absent", "type": "lvm", "volumes": [{"_device": "/dev/mapper/foo-test1", "_mount_id": "/dev/mapper/foo-test1", "_raw_device": "/dev/mapper/foo-test1", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm"}]}], "volumes": []} TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:114 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "blivet_output": { "actions": [ { "action": "destroy format", "device": "/dev/mapper/foo-test1", "fs_type": "xfs" }, { "action": "destroy device", "device": "/dev/mapper/foo-test1", "fs_type": null }, { "action": "destroy device", "device": "/dev/foo", "fs_type": null }, { "action": "destroy format", "device": "/dev/vda", "fs_type": "lvmpv" } ], "changed": true, "crypts": [], "failed": false, "leaves": [ "/dev/sda1", "/dev/sr0", "/dev/vda", "/dev/vdb", "/dev/vdc" ], "mounts": [ { "fstype": "xfs", "path": "/opt/test2", "src": "/dev/mapper/foo-test1", "state": "absent" } ], "packages": [ "e2fsprogs" ], "pools": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "absent", "type": "lvm", "volumes": [ { "_device": "/dev/mapper/foo-test1", "_mount_id": "/dev/mapper/foo-test1", "_raw_device": "/dev/mapper/foo-test1", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm" } ] } ], "volumes": [] } } TASK [linux-system-roles.storage : set the list of pools for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:117 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "absent", "type": "lvm", "volumes": [{"_device": "/dev/mapper/foo-test1", "_mount_id": "/dev/mapper/foo-test1", "_raw_device": "/dev/mapper/foo-test1", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm"}]}]}, "changed": false} TASK [linux-system-roles.storage : set the list of volumes for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:121 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : remove obsolete mounts] ********************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:137 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'src': u'/dev/mapper/foo-test1', u'state': u'absent', u'fstype': u'xfs', u'path': u'/opt/test2'}) => {"ansible_loop_var": "mount_info", "changed": true, "dump": "0", "fstab": "/etc/fstab", "fstype": "xfs", "mount_info": {"fstype": "xfs", "path": "/opt/test2", "src": "/dev/mapper/foo-test1", "state": "absent"}, "name": "/opt/test2", "opts": "defaults", "passno": "0", "src": "/dev/mapper/foo-test1"} TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:148 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [linux-system-roles.storage : set up new/current mounts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:153 TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:164 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [linux-system-roles.storage : Manage /etc/crypttab to account for changes we just made] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:172 TASK [linux-system-roles.storage : Update facts] ******************************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:187 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_change_mount.yml:73 included: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Print out pool information] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:1 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools_list": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "absent", "type": "lvm", "volumes": [ { "_device": "/dev/mapper/foo-test1", "_mount_id": "/dev/mapper/foo-test1", "_raw_device": "/dev/mapper/foo-test1", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm" } ] } ] } TASK [Print out volume information] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:6 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {} TASK [Collect info about the volumes.] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "info": {"/dev/sda": {"fstype": "", "label": "", "name": "/dev/sda", "size": "4G", "type": "disk", "uuid": ""}, "/dev/sda1": {"fstype": "ext4", "label": "", "name": "/dev/sda1", "size": "4G", "type": "partition", "uuid": "03e702b4-e165-4a39-88c9-9e210cd00434"}, "/dev/sr0": {"fstype": "iso9660", "label": "cidata", "name": "/dev/sr0", "size": "364K", "type": "rom", "uuid": "2020-10-31-12-02-20-00"}, "/dev/vda": {"fstype": "", "label": "", "name": "/dev/vda", "size": "10G", "type": "disk", "uuid": ""}, "/dev/vdb": {"fstype": "", "label": "", "name": "/dev/vdb", "size": "10G", "type": "disk", "uuid": ""}, "/dev/vdc": {"fstype": "", "label": "", "name": "/dev/vdc", "size": "10G", "type": "disk", "uuid": ""}}} TASK [Read the /etc/fstab file for volume existence] *************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:19 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/fstab"], "delta": "0:00:00.003186", "end": "2020-10-31 12:05:05.139858", "rc": 0, "start": "2020-10-31 12:05:05.136672", "stderr": "", "stderr_lines": [], "stdout": "\n#\n# /etc/fstab\n# Created by anaconda on Sat Oct 31 08:17:58 2020\n#\n# Accessible filesystems, by reference, are maintained under '/dev/disk/'.\n# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.\n#\n# After editing this file, run 'systemctl daemon-reload' to update systemd\n# units generated from this file.\n#\nUUID=03e702b4-e165-4a39-88c9-9e210cd00434 / ext4 defaults 1 1", "stdout_lines": ["", "#", "# /etc/fstab", "# Created by anaconda on Sat Oct 31 08:17:58 2020", "#", "# Accessible filesystems, by reference, are maintained under '/dev/disk/'.", "# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.", "#", "# After editing this file, run 'systemctl daemon-reload' to update systemd", "# units generated from this file.", "#", "UUID=03e702b4-e165-4a39-88c9-9e210cd00434 / ext4 defaults 1 1"]} TASK [Read the /etc/crypttab file] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/crypttab"], "delta": "0:00:00.002697", "end": "2020-10-31 12:05:05.487135", "rc": 0, "start": "2020-10-31 12:05:05.484438", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Verify the volumes listed in storage_pools were correctly managed] ******* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:32 [WARNING]: The loop variable 'storage_test_pool' is already in use. You should set the `loop_var` value in the `loop_control` option for the task to something else to avoid variable collisions and unexpected behavior. included: /tmp/tmp7ksfxpzz/tests/test-verify-pool.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool.yml:5 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pool_tests": ["members", "volumes"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool.yml:17 included: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-pool-volumes.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:1 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_count": "0", "_storage_test_pool_pvs": [], "_storage_test_pool_pvs_lvm": []}, "changed": false} TASK [Get the canonical device path for each member device] ******************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:7 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:16 TASK [Verify PV count] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:23 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:29 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_type": "disk"}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:33 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_type": "disk"}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check the type of each PV] *********************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:41 TASK [Check raid] ************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:50 included: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [get information about RAID] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:6 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:12 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:16 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:20 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID active devices count] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:24 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID spare devices count] ****************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:30 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID metadata version] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:36 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:44 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_md_active_devices_re": null, "storage_test_md_metadata_version_re": null, "storage_test_md_spare_devices_re": null}, "changed": false} TASK [Check member encryption] ************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:53 included: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_crypttab_entries": "0", "_storage_test_expected_crypttab_key_file": "-"}, "changed": false} TASK [Validate pool member LUKS settings] ************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:8 TASK [Validate pool member crypttab entries] *********************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:15 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:22 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null, "_storage_test_crypttab_key_file": null}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:56 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_count": null, "_storage_test_expected_pv_type": null, "_storage_test_pool_pvs": [], "_storage_test_pool_pvs_lvm": []}, "changed": false} TASK [verify the volumes] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-volumes.yml:3 [WARNING]: The loop variable 'storage_test_volume' is already in use. You should set the `loop_var` value in the `loop_control` option for the task to something else to avoid variable collisions and unexpected behavior. included: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": false, "_storage_volume_tests": ["mount", "fstab", "fs", "device", "encryption", "md", "size"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:10 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Get expected mount device based on device type] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/foo-test1"}, "changed": false} TASK [Set some facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [], "storage_test_mount_expected_match_count": "0", "storage_test_mount_point_matches": [], "storage_test_swap_expected_matches": "0"}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:22 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:31 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:39 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [command] ***************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Gather swap info] ******************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:52 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify swap status] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:57 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Unset facts] ************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:67 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null, "storage_test_swap_expected_matches": null, "storage_test_swaps": null, "storage_test_sys_node": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": "0", "storage_test_fstab_expected_mount_point_matches": "0", "storage_test_fstab_id_matches": [], "storage_test_fstab_mount_point_matches": []}, "changed": false} TASK [Verify that the device identifier appears in /etc/fstab] ***************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:10 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:17 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": null, "storage_test_fstab_expected_mount_point_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [Verify fs type] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:4 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify fs label] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:10 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [See whether the device node is present] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "stat": {"exists": false}} TASK [Verify the presence/absence of the device node] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:18 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "lvm"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:28 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:33 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Stat the LUKS device, if encrypted] ************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:3 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Collect LUKS info for this volume] *************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:10 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the presence/absence of the LUKS device node] ********************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:16 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify that the raw device is the same as the device if not encrypted] *** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:25 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Make sure we got info about the LUKS volume if encrypted] **************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the LUKS volume's device type if encrypted] *********************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS version] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:42 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS key size] ***************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS cipher] ******************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:54 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:60 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": [], "_storage_test_expected_crypttab_entries": "0", "_storage_test_expected_crypttab_key_file": "-"}, "changed": false} TASK [Check for /etc/crypttab entry] ******************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:65 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Validate the format of the crypttab entry] ******************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:70 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check backing device of crypttab entry] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:76 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check key file of crypttab entry] **************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:82 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:88 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null, "_storage_test_expected_crypttab_entries": null, "_storage_test_expected_crypttab_key_file": null}, "changed": false} TASK [get information about RAID] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:7 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:13 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:17 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID active devices count] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:25 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID spare devices count] ****************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID metadata version] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [parse the actual size of the volume] ************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:3 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [parse the requested size of the volume] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:9 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:15 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_actual_size": { "changed": false, "skip_reason": "Conditional result was False", "skipped": true } } TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_requested_size": { "changed": false, "skip_reason": "Conditional result was False", "skipped": true } } TASK [assert] ****************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Clean up facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:16 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:39 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_pool": null}, "changed": false} TASK [Verify the volumes with no pool were correctly managed] ****************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:46 TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:56 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_blkinfo": null, "storage_test_crypttab": null, "storage_test_fstab": null, "storage_test_volume": null}, "changed": false} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 : ok=352 changed=7 unreachable=0 failed=0 skipped=185 rescued=0 ignored=0 + cd /tmp/tmp7ksfxpzz/tests; TEST_SUBJECTS=/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_storage-178-e856157-fedora-31-87qzp9iq/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmp7ksfxpzz/_setup.yml /tmp/tmp7ksfxpzz/tests/tests_create_disk_then_remove.yml ansible-playbook 2.8.16 config file = /etc/ansible/ansible.cfg configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python2.7/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 2.7.5 (default, Apr 2 2020, 13:16:51) [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)] Using /etc/ansible/ansible.cfg as config file PLAYBOOK: _setup.yml *********************************************************** 1 plays in /tmp/tmp7ksfxpzz/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/_setup.yml:5 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "groups": { "all": [ "/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2" ], "localhost": [ "/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2" ], "subjects": [ "/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmp7ksfxpzz/_setup.yml:6 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 : ok=1 changed=0 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 PLAYBOOK: tests_create_disk_then_remove.yml ************************************ 1 plays in /tmp/tmp7ksfxpzz/tests/tests_create_disk_then_remove.yml PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/tests_create_disk_then_remove.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] META: ran handlers TASK [include_role : linux-system-roles.storage] ******************************* task path: /tmp/tmp7ksfxpzz/tests/tests_create_disk_then_remove.yml:9 TASK [linux-system-roles.storage : Set version specific variables] ************* task path: /tmp/tmp7ksfxpzz/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-crypto", "libblockdev-dm", "libblockdev-lvm", "libblockdev-mdraid", "libblockdev-swap"]}, "ansible_included_var_files": ["/tmp/tmp7ksfxpzz/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.storage : define an empty list of pools to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : define an empty list of volumes to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : include the appropriate provider tasks] ***** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:22 included: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [linux-system-roles.storage : get a list of rpm packages installed on host machine] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : make sure blivet is available] ************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:7 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: python3-blivet", "Installed: libblockdev-crypto", "Installed: libblockdev-dm", "Installed: libblockdev-lvm", "Installed: libblockdev-mdraid", "Installed: libblockdev-swap", "Installed: libblockdev-kbd-2.24-2.fc31.x86_64", "Installed: nspr-4.29.0-1.fc31.x86_64", "Installed: libblockdev-loop-2.24-2.fc31.x86_64", "Installed: nss-3.57.0-1.fc31.x86_64", "Installed: libblockdev-lvm-2.24-2.fc31.x86_64", "Installed: lsof-4.93.2-2.fc31.x86_64", "Installed: lvm2-2.03.09-1.fc31.x86_64", "Installed: nss-softokn-3.57.0-1.fc31.x86_64", "Installed: libblockdev-mdraid-2.24-2.fc31.x86_64", "Installed: nss-softokn-freebl-3.57.0-1.fc31.x86_64", "Installed: lvm2-libs-2.03.09-1.fc31.x86_64", "Installed: python3-gobject-base-3.34.0-3.fc31.x86_64", "Installed: libblockdev-mpath-2.24-2.fc31.x86_64", "Installed: nss-sysinit-3.57.0-1.fc31.x86_64", "Installed: device-mapper-event-1.02.171-1.fc31.x86_64", "Installed: nss-util-3.57.0-1.fc31.x86_64", "Installed: libblockdev-nvdimm-2.24-2.fc31.x86_64", "Installed: gobject-introspection-1.62.0-1.fc31.x86_64", "Installed: device-mapper-event-libs-1.02.171-1.fc31.x86_64", "Installed: userspace-rcu-0.11.1-2.fc31.x86_64", "Installed: libblockdev-part-2.24-2.fc31.x86_64", "Installed: lzo-2.08-16.fc31.x86_64", "Installed: volume_key-libs-0.3.12-4.fc31.x86_64", "Installed: dmraid-1.0.0.rc16-43.fc31.x86_64", "Installed: libblockdev-swap-2.24-2.fc31.x86_64", "Installed: libblockdev-utils-2.24-2.fc31.x86_64", "Installed: blivet-data-1:3.1.7-2.fc31.noarch", "Installed: device-mapper-multipath-0.8.0-3.fc31.x86_64", "Installed: device-mapper-multipath-libs-0.8.0-3.fc31.x86_64", "Installed: device-mapper-persistent-data-0.8.5-2.fc31.x86_64", "Installed: sgpio-1.2.0.10-24.fc31.x86_64", "Installed: bcache-tools-1.0.8-16.fc31.x86_64", "Installed: python3-blivet-1:3.1.7-2.fc31.noarch", "Installed: daxctl-libs-70.1-1.fc31.x86_64", "Installed: python3-blockdev-2.24-2.fc31.x86_64", "Installed: mdadm-4.1-5.fc31.x86_64", "Installed: python3-pyudev-0.21.0-11.fc31.noarch", "Installed: python3-pyparted-1:3.11.2-2.fc31.x86_64", "Installed: libbytesize-2.3-1.fc31.x86_64", "Installed: libaio-0.3.111-6.fc31.x86_64", "Installed: python3-bytesize-2.3-1.fc31.x86_64", "Installed: libblockdev-2.24-2.fc31.x86_64", "Installed: libblockdev-btrfs-2.24-2.fc31.x86_64", "Installed: btrfs-progs-5.7-4.fc31.x86_64", "Installed: libblockdev-crypto-2.24-2.fc31.x86_64", "Installed: ndctl-70.1-1.fc31.x86_64", "Installed: compat-readline5-5.2-34.fc31.x86_64", "Installed: gdisk-1.0.5-1.fc31.x86_64", "Installed: ndctl-libs-70.1-1.fc31.x86_64", "Installed: libblockdev-dm-2.24-2.fc31.x86_64", "Installed: dmraid-events-1.0.0.rc16-43.fc31.x86_64", "Installed: libblockdev-fs-2.24-2.fc31.x86_64"]} TASK [linux-system-roles.storage : initialize internal facts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools": [], "_storage_vol_defaults": [], "_storage_vol_pools": [], "_storage_vols_no_defaults": [], "_storage_vols_no_defaults_by_pool": {}, "_storage_vols_w_defaults": [], "_storage_volumes": []}, "changed": false} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [1/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:28 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [2/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:36 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [3/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:44 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [4/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:52 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [5/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:61 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [6/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:72 TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools": [] } TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes": [] } TASK [linux-system-roles.storage : get required packages] ********************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": []} TASK [linux-system-roles.storage : make sure required packages are installed] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [linux-system-roles.storage : manage the pools and volumes to match the specified state] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:104 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": []} TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:114 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "blivet_output": { "actions": [], "changed": false, "crypts": [], "failed": false, "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": [] } } TASK [linux-system-roles.storage : set the list of pools for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:117 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : set the list of volumes for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:121 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : remove obsolete mounts] ********************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:137 TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:148 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : set up new/current mounts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:153 TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:164 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : Manage /etc/crypttab to account for changes we just made] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:172 TASK [linux-system-roles.storage : Update facts] ******************************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:187 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_create_disk_then_remove.yml:12 included: /tmp/tmp7ksfxpzz/tests/get_unused_disk.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Find unused disks in the system] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/get_unused_disk.yml:2 [WARNING]: The value 0 (type int) in a string field was converted to '0' (type string). If this does not look like what you expect, quote the entire value to ensure it does not change. ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "disks": ["vda"]} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/get_unused_disk.yml:8 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"unused_disks": ["vda"]}, "changed": false} TASK [Exit playbook when there's not enough unused disks in the system] ******** task path: /tmp/tmp7ksfxpzz/tests/get_unused_disk.yml:12 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Print unused disks] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/get_unused_disk.yml:17 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "unused_disks": [ "vda" ] } TASK [Create a disk device mounted on "/opt/test1"] **************************** task path: /tmp/tmp7ksfxpzz/tests/tests_create_disk_then_remove.yml:16 TASK [linux-system-roles.storage : Set version specific variables] ************* task path: /tmp/tmp7ksfxpzz/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-crypto", "libblockdev-dm", "libblockdev-lvm", "libblockdev-mdraid", "libblockdev-swap"]}, "ansible_included_var_files": ["/tmp/tmp7ksfxpzz/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.storage : define an empty list of pools to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : define an empty list of volumes to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : include the appropriate provider tasks] ***** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:22 included: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [linux-system-roles.storage : get a list of rpm packages installed on host machine] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : make sure blivet is available] ************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: python3-blivet", "Installed: libblockdev-crypto", "Installed: libblockdev-dm", "Installed: libblockdev-lvm", "Installed: libblockdev-mdraid", "Installed: libblockdev-swap"]} TASK [linux-system-roles.storage : initialize internal facts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools": [], "_storage_vol_defaults": [], "_storage_vol_pools": [], "_storage_vols_no_defaults": [], "_storage_vols_no_defaults_by_pool": {}, "_storage_vols_w_defaults": [], "_storage_volumes": []}, "changed": false} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [1/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:28 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [2/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:36 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [3/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:44 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [4/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:52 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [5/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:61 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [6/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:72 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'mount_point': u'/opt/test1', u'type': u'disk', u'disks': [u'vda'], u'name': u'test1'}) => {"ansible_facts": {"_storage_volumes": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "disk"}]}, "ansible_loop_var": "volume", "changed": false, "volume": {"disks": ["vda"], "mount_point": "/opt/test1", "name": "test1", "type": "disk"}} TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools": [] } TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "disk" } ] } TASK [linux-system-roles.storage : get required packages] ********************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": ["xfsprogs"], "pools": [], "volumes": []} TASK [linux-system-roles.storage : make sure required packages are installed] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: xfsprogs"]} TASK [linux-system-roles.storage : manage the pools and volumes to match the specified state] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:104 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [{"action": "create format", "device": "/dev/vda", "fs_type": "xfs"}], "changed": true, "crypts": [], "leaves": ["/dev/sda1", "/dev/sr0", "/dev/vda", "/dev/vdb", "/dev/vdc"], "mounts": [{"dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "UUID=8fd1d63f-636a-442c-9e1f-ca572b89d63e", "state": "mounted"}], "packages": ["e2fsprogs", "xfsprogs"], "pools": [], "volumes": [{"_device": "/dev/vda", "_kernel_device": "/dev/vda", "_mount_id": "UUID=8fd1d63f-636a-442c-9e1f-ca572b89d63e", "_raw_device": "/dev/vda", "_raw_kernel_device": "/dev/vda", "disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "disk"}]} TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:114 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "blivet_output": { "actions": [ { "action": "create format", "device": "/dev/vda", "fs_type": "xfs" } ], "changed": true, "crypts": [], "failed": false, "leaves": [ "/dev/sda1", "/dev/sr0", "/dev/vda", "/dev/vdb", "/dev/vdc" ], "mounts": [ { "dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "UUID=8fd1d63f-636a-442c-9e1f-ca572b89d63e", "state": "mounted" } ], "packages": [ "e2fsprogs", "xfsprogs" ], "pools": [], "volumes": [ { "_device": "/dev/vda", "_kernel_device": "/dev/vda", "_mount_id": "UUID=8fd1d63f-636a-442c-9e1f-ca572b89d63e", "_raw_device": "/dev/vda", "_raw_kernel_device": "/dev/vda", "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "disk" } ] } } TASK [linux-system-roles.storage : set the list of pools for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:117 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : set the list of volumes for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:121 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": [{"_device": "/dev/vda", "_kernel_device": "/dev/vda", "_mount_id": "UUID=8fd1d63f-636a-442c-9e1f-ca572b89d63e", "_raw_device": "/dev/vda", "_raw_kernel_device": "/dev/vda", "disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "disk"}]}, "changed": false} TASK [linux-system-roles.storage : remove obsolete mounts] ********************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:137 TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:148 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [linux-system-roles.storage : set up new/current mounts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:153 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'src': u'UUID=8fd1d63f-636a-442c-9e1f-ca572b89d63e', u'state': u'mounted', u'dump': 0, u'path': u'/opt/test1', u'passno': 0, u'opts': u'defaults', u'fstype': u'xfs'}) => {"ansible_loop_var": "mount_info", "changed": true, "dump": "0", "fstab": "/etc/fstab", "fstype": "xfs", "mount_info": {"dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "UUID=8fd1d63f-636a-442c-9e1f-ca572b89d63e", "state": "mounted"}, "name": "/opt/test1", "opts": "defaults", "passno": "0", "src": "UUID=8fd1d63f-636a-442c-9e1f-ca572b89d63e"} TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:164 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [linux-system-roles.storage : Manage /etc/crypttab to account for changes we just made] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:172 TASK [linux-system-roles.storage : Update facts] ******************************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:187 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_create_disk_then_remove.yml:26 included: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Print out pool information] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:1 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {} TASK [Print out volume information] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:6 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes_list": [ { "_device": "/dev/vda", "_kernel_device": "/dev/vda", "_mount_id": "UUID=8fd1d63f-636a-442c-9e1f-ca572b89d63e", "_raw_device": "/dev/vda", "_raw_kernel_device": "/dev/vda", "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "disk" } ] } TASK [Collect info about the volumes.] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "info": {"/dev/sda": {"fstype": "", "label": "", "name": "/dev/sda", "size": "4G", "type": "disk", "uuid": ""}, "/dev/sda1": {"fstype": "ext4", "label": "", "name": "/dev/sda1", "size": "4G", "type": "partition", "uuid": "03e702b4-e165-4a39-88c9-9e210cd00434"}, "/dev/sr0": {"fstype": "iso9660", "label": "cidata", "name": "/dev/sr0", "size": "364K", "type": "rom", "uuid": "2020-10-31-12-05-09-00"}, "/dev/vda": {"fstype": "xfs", "label": "", "name": "/dev/vda", "size": "10G", "type": "disk", "uuid": "8fd1d63f-636a-442c-9e1f-ca572b89d63e"}, "/dev/vdb": {"fstype": "", "label": "", "name": "/dev/vdb", "size": "10G", "type": "disk", "uuid": ""}, "/dev/vdc": {"fstype": "", "label": "", "name": "/dev/vdc", "size": "10G", "type": "disk", "uuid": ""}}} TASK [Read the /etc/fstab file for volume existence] *************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:19 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/fstab"], "delta": "0:00:01.003981", "end": "2020-10-31 12:06:41.640368", "rc": 0, "start": "2020-10-31 12:06:40.636387", "stderr": "", "stderr_lines": [], "stdout": "\n#\n# /etc/fstab\n# Created by anaconda on Sat Oct 31 08:17:58 2020\n#\n# Accessible filesystems, by reference, are maintained under '/dev/disk/'.\n# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.\n#\n# After editing this file, run 'systemctl daemon-reload' to update systemd\n# units generated from this file.\n#\nUUID=03e702b4-e165-4a39-88c9-9e210cd00434 / ext4 defaults 1 1\nUUID=8fd1d63f-636a-442c-9e1f-ca572b89d63e /opt/test1 xfs defaults 0 0", "stdout_lines": ["", "#", "# /etc/fstab", "# Created by anaconda on Sat Oct 31 08:17:58 2020", "#", "# Accessible filesystems, by reference, are maintained under '/dev/disk/'.", "# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.", "#", "# After editing this file, run 'systemctl daemon-reload' to update systemd", "# units generated from this file.", "#", "UUID=03e702b4-e165-4a39-88c9-9e210cd00434 / ext4 defaults 1 1", "UUID=8fd1d63f-636a-442c-9e1f-ca572b89d63e /opt/test1 xfs defaults 0 0"]} TASK [Read the /etc/crypttab file] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/crypttab"], "delta": "0:00:01.004111", "end": "2020-10-31 12:06:42.963916", "rc": 0, "start": "2020-10-31 12:06:41.959805", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Verify the volumes listed in storage_pools were correctly managed] ******* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:32 TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:39 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_pool": null}, "changed": false} TASK [Verify the volumes with no pool were correctly managed] ****************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:46 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": true, "_storage_volume_tests": ["mount", "fstab", "fs", "device", "encryption", "md", "size"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:10 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Get expected mount device based on device type] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/vda"}, "changed": false} TASK [Set some facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [{"block_available": 2592358, "block_size": 4096, "block_total": 2618880, "block_used": 26522, "device": "/dev/vda", "fstype": "xfs", "inode_available": 5242877, "inode_total": 5242880, "inode_used": 3, "mount": "/opt/test1", "options": "rw,seclabel,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota", "size_available": 10618298368, "size_total": 10726932480, "uuid": "8fd1d63f-636a-442c-9e1f-ca572b89d63e"}], "storage_test_mount_expected_match_count": "1", "storage_test_mount_point_matches": [{"block_available": 2592358, "block_size": 4096, "block_total": 2618880, "block_used": 26522, "device": "/dev/vda", "fstype": "xfs", "inode_available": 5242877, "inode_total": 5242880, "inode_used": 3, "mount": "/opt/test1", "options": "rw,seclabel,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota", "size_available": 10618298368, "size_total": 10726932480, "uuid": "8fd1d63f-636a-442c-9e1f-ca572b89d63e"}], "storage_test_swap_expected_matches": "0"}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:22 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:31 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:39 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [command] ***************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Gather swap info] ******************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:52 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify swap status] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:57 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Unset facts] ************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:67 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null, "storage_test_swap_expected_matches": null, "storage_test_swaps": null, "storage_test_sys_node": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": "1", "storage_test_fstab_expected_mount_point_matches": "1", "storage_test_fstab_id_matches": ["UUID=8fd1d63f-636a-442c-9e1f-ca572b89d63e "], "storage_test_fstab_mount_point_matches": [" /opt/test1 "]}, "changed": false} TASK [Verify that the device identifier appears in /etc/fstab] ***************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:17 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": null, "storage_test_fstab_expected_mount_point_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [Verify fs type] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify fs label] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [See whether the device node is present] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "stat": {"atime": 1604145996.7296274, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "ctime": 1604145996.7296274, "dev": 5, "device_type": 64512, "executable": false, "exists": true, "gid": 6, "gr_name": "disk", "inode": 1719, "isblk": true, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mimetype": "inode/blockdevice", "mode": "0660", "mtime": 1604145996.7296274, "nlink": 1, "path": "/dev/vda", "pw_name": "root", "readable": true, "rgrp": true, "roth": false, "rusr": true, "size": 0, "uid": 0, "version": null, "wgrp": true, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}} TASK [Verify the presence/absence of the device node] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "disk"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:28 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:33 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Stat the LUKS device, if encrypted] ************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:3 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Collect LUKS info for this volume] *************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:10 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the presence/absence of the LUKS device node] ********************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:16 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify that the raw device is the same as the device if not encrypted] *** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:25 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about the LUKS volume if encrypted] **************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the LUKS volume's device type if encrypted] *********************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS version] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:42 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS key size] ***************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS cipher] ******************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:54 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:60 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": [], "_storage_test_expected_crypttab_entries": "0", "_storage_test_expected_crypttab_key_file": "-"}, "changed": false} TASK [Check for /etc/crypttab entry] ******************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:65 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Validate the format of the crypttab entry] ******************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:70 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check backing device of crypttab entry] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:76 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check key file of crypttab entry] **************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:82 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:88 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null, "_storage_test_expected_crypttab_entries": null, "_storage_test_expected_crypttab_key_file": null}, "changed": false} TASK [get information about RAID] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:7 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:13 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:17 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID active devices count] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:25 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID spare devices count] ****************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID metadata version] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [parse the actual size of the volume] ************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:3 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [parse the requested size of the volume] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:9 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:15 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_actual_size": { "changed": false, "skip_reason": "Conditional result was False", "skipped": true } } TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_requested_size": { "changed": false, "skip_reason": "Conditional result was False", "skipped": true } } TASK [assert] ****************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Clean up facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:16 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:56 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_blkinfo": null, "storage_test_crypttab": null, "storage_test_fstab": null, "storage_test_volume": null}, "changed": false} TASK [Repeat the previous invocation to verify idempotence] ******************** task path: /tmp/tmp7ksfxpzz/tests/tests_create_disk_then_remove.yml:28 TASK [linux-system-roles.storage : Set version specific variables] ************* task path: /tmp/tmp7ksfxpzz/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-crypto", "libblockdev-dm", "libblockdev-lvm", "libblockdev-mdraid", "libblockdev-swap"]}, "ansible_included_var_files": ["/tmp/tmp7ksfxpzz/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.storage : define an empty list of pools to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : define an empty list of volumes to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : include the appropriate provider tasks] ***** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:22 included: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [linux-system-roles.storage : get a list of rpm packages installed on host machine] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : make sure blivet is available] ************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: python3-blivet", "Installed: libblockdev-crypto", "Installed: libblockdev-dm", "Installed: libblockdev-lvm", "Installed: libblockdev-mdraid", "Installed: libblockdev-swap"]} TASK [linux-system-roles.storage : initialize internal facts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools": [], "_storage_vol_defaults": [], "_storage_vol_pools": [], "_storage_vols_no_defaults": [], "_storage_vols_no_defaults_by_pool": {}, "_storage_vols_w_defaults": [], "_storage_volumes": []}, "changed": false} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [1/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:28 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [2/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:36 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [3/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:44 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [4/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:52 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [5/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:61 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [6/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:72 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'mount_point': u'/opt/test1', u'type': u'disk', u'disks': [u'vda'], u'name': u'test1'}) => {"ansible_facts": {"_storage_volumes": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "disk"}]}, "ansible_loop_var": "volume", "changed": false, "volume": {"disks": ["vda"], "mount_point": "/opt/test1", "name": "test1", "type": "disk"}} TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools": [] } TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "disk" } ] } TASK [linux-system-roles.storage : get required packages] ********************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": ["xfsprogs"], "pools": [], "volumes": []} TASK [linux-system-roles.storage : make sure required packages are installed] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: xfsprogs"]} TASK [linux-system-roles.storage : manage the pools and volumes to match the specified state] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:104 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": ["/dev/sda1", "/dev/sr0", "/dev/vda", "/dev/vdb", "/dev/vdc"], "mounts": [{"dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "UUID=8fd1d63f-636a-442c-9e1f-ca572b89d63e", "state": "mounted"}], "packages": ["xfsprogs", "e2fsprogs"], "pools": [], "volumes": [{"_device": "/dev/vda", "_kernel_device": "/dev/vda", "_mount_id": "UUID=8fd1d63f-636a-442c-9e1f-ca572b89d63e", "_raw_device": "/dev/vda", "_raw_kernel_device": "/dev/vda", "disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "disk"}]} TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:114 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "blivet_output": { "actions": [], "changed": false, "crypts": [], "failed": false, "leaves": [ "/dev/sda1", "/dev/sr0", "/dev/vda", "/dev/vdb", "/dev/vdc" ], "mounts": [ { "dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "UUID=8fd1d63f-636a-442c-9e1f-ca572b89d63e", "state": "mounted" } ], "packages": [ "xfsprogs", "e2fsprogs" ], "pools": [], "volumes": [ { "_device": "/dev/vda", "_kernel_device": "/dev/vda", "_mount_id": "UUID=8fd1d63f-636a-442c-9e1f-ca572b89d63e", "_raw_device": "/dev/vda", "_raw_kernel_device": "/dev/vda", "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "disk" } ] } } TASK [linux-system-roles.storage : set the list of pools for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:117 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : set the list of volumes for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:121 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": [{"_device": "/dev/vda", "_kernel_device": "/dev/vda", "_mount_id": "UUID=8fd1d63f-636a-442c-9e1f-ca572b89d63e", "_raw_device": "/dev/vda", "_raw_kernel_device": "/dev/vda", "disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "disk"}]}, "changed": false} TASK [linux-system-roles.storage : remove obsolete mounts] ********************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:137 TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:148 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [linux-system-roles.storage : set up new/current mounts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:153 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'src': u'UUID=8fd1d63f-636a-442c-9e1f-ca572b89d63e', u'state': u'mounted', u'dump': 0, u'path': u'/opt/test1', u'passno': 0, u'opts': u'defaults', u'fstype': u'xfs'}) => {"ansible_loop_var": "mount_info", "changed": false, "dump": "0", "fstab": "/etc/fstab", "fstype": "xfs", "mount_info": {"dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "UUID=8fd1d63f-636a-442c-9e1f-ca572b89d63e", "state": "mounted"}, "name": "/opt/test1", "opts": "defaults", "passno": "0", "src": "UUID=8fd1d63f-636a-442c-9e1f-ca572b89d63e"} TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:164 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [linux-system-roles.storage : Manage /etc/crypttab to account for changes we just made] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:172 TASK [linux-system-roles.storage : Update facts] ******************************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:187 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_create_disk_then_remove.yml:38 included: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Print out pool information] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:1 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {} TASK [Print out volume information] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:6 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes_list": [ { "_device": "/dev/vda", "_kernel_device": "/dev/vda", "_mount_id": "UUID=8fd1d63f-636a-442c-9e1f-ca572b89d63e", "_raw_device": "/dev/vda", "_raw_kernel_device": "/dev/vda", "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "disk" } ] } TASK [Collect info about the volumes.] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "info": {"/dev/sda": {"fstype": "", "label": "", "name": "/dev/sda", "size": "4G", "type": "disk", "uuid": ""}, "/dev/sda1": {"fstype": "ext4", "label": "", "name": "/dev/sda1", "size": "4G", "type": "partition", "uuid": "03e702b4-e165-4a39-88c9-9e210cd00434"}, "/dev/sr0": {"fstype": "iso9660", "label": "cidata", "name": "/dev/sr0", "size": "364K", "type": "rom", "uuid": "2020-10-31-12-05-09-00"}, "/dev/vda": {"fstype": "xfs", "label": "", "name": "/dev/vda", "size": "10G", "type": "disk", "uuid": "8fd1d63f-636a-442c-9e1f-ca572b89d63e"}, "/dev/vdb": {"fstype": "", "label": "", "name": "/dev/vdb", "size": "10G", "type": "disk", "uuid": ""}, "/dev/vdc": {"fstype": "", "label": "", "name": "/dev/vdc", "size": "10G", "type": "disk", "uuid": ""}}} TASK [Read the /etc/fstab file for volume existence] *************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:19 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/fstab"], "delta": "0:00:00.002695", "end": "2020-10-31 12:07:00.008725", "rc": 0, "start": "2020-10-31 12:07:00.006030", "stderr": "", "stderr_lines": [], "stdout": "\n#\n# /etc/fstab\n# Created by anaconda on Sat Oct 31 08:17:58 2020\n#\n# Accessible filesystems, by reference, are maintained under '/dev/disk/'.\n# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.\n#\n# After editing this file, run 'systemctl daemon-reload' to update systemd\n# units generated from this file.\n#\nUUID=03e702b4-e165-4a39-88c9-9e210cd00434 / ext4 defaults 1 1\nUUID=8fd1d63f-636a-442c-9e1f-ca572b89d63e /opt/test1 xfs defaults 0 0", "stdout_lines": ["", "#", "# /etc/fstab", "# Created by anaconda on Sat Oct 31 08:17:58 2020", "#", "# Accessible filesystems, by reference, are maintained under '/dev/disk/'.", "# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.", "#", "# After editing this file, run 'systemctl daemon-reload' to update systemd", "# units generated from this file.", "#", "UUID=03e702b4-e165-4a39-88c9-9e210cd00434 / ext4 defaults 1 1", "UUID=8fd1d63f-636a-442c-9e1f-ca572b89d63e /opt/test1 xfs defaults 0 0"]} TASK [Read the /etc/crypttab file] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/crypttab"], "delta": "0:00:00.002737", "end": "2020-10-31 12:07:00.344609", "rc": 0, "start": "2020-10-31 12:07:00.341872", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Verify the volumes listed in storage_pools were correctly managed] ******* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:32 TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:39 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_pool": null}, "changed": false} TASK [Verify the volumes with no pool were correctly managed] ****************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:46 [WARNING]: The loop variable 'storage_test_volume' is already in use. You should set the `loop_var` value in the `loop_control` option for the task to something else to avoid variable collisions and unexpected behavior. included: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": true, "_storage_volume_tests": ["mount", "fstab", "fs", "device", "encryption", "md", "size"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:10 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Get expected mount device based on device type] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/vda"}, "changed": false} TASK [Set some facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [{"block_available": 2592358, "block_size": 4096, "block_total": 2618880, "block_used": 26522, "device": "/dev/vda", "fstype": "xfs", "inode_available": 5242877, "inode_total": 5242880, "inode_used": 3, "mount": "/opt/test1", "options": "rw,seclabel,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota", "size_available": 10618298368, "size_total": 10726932480, "uuid": "8fd1d63f-636a-442c-9e1f-ca572b89d63e"}], "storage_test_mount_expected_match_count": "1", "storage_test_mount_point_matches": [{"block_available": 2592358, "block_size": 4096, "block_total": 2618880, "block_used": 26522, "device": "/dev/vda", "fstype": "xfs", "inode_available": 5242877, "inode_total": 5242880, "inode_used": 3, "mount": "/opt/test1", "options": "rw,seclabel,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota", "size_available": 10618298368, "size_total": 10726932480, "uuid": "8fd1d63f-636a-442c-9e1f-ca572b89d63e"}], "storage_test_swap_expected_matches": "0"}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:22 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:31 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:39 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [command] ***************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Gather swap info] ******************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:52 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify swap status] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:57 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Unset facts] ************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:67 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null, "storage_test_swap_expected_matches": null, "storage_test_swaps": null, "storage_test_sys_node": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": "1", "storage_test_fstab_expected_mount_point_matches": "1", "storage_test_fstab_id_matches": ["UUID=8fd1d63f-636a-442c-9e1f-ca572b89d63e "], "storage_test_fstab_mount_point_matches": [" /opt/test1 "]}, "changed": false} TASK [Verify that the device identifier appears in /etc/fstab] ***************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:17 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": null, "storage_test_fstab_expected_mount_point_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [Verify fs type] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify fs label] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [See whether the device node is present] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "stat": {"atime": 1604145996.7296274, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "ctime": 1604145996.7296274, "dev": 5, "device_type": 64512, "executable": false, "exists": true, "gid": 6, "gr_name": "disk", "inode": 1719, "isblk": true, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mimetype": "inode/blockdevice", "mode": "0660", "mtime": 1604145996.7296274, "nlink": 1, "path": "/dev/vda", "pw_name": "root", "readable": true, "rgrp": true, "roth": false, "rusr": true, "size": 0, "uid": 0, "version": null, "wgrp": true, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}} TASK [Verify the presence/absence of the device node] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "disk"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:28 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:33 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Stat the LUKS device, if encrypted] ************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:3 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Collect LUKS info for this volume] *************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:10 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the presence/absence of the LUKS device node] ********************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:16 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify that the raw device is the same as the device if not encrypted] *** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:25 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about the LUKS volume if encrypted] **************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the LUKS volume's device type if encrypted] *********************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS version] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:42 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS key size] ***************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS cipher] ******************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:54 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:60 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": [], "_storage_test_expected_crypttab_entries": "0", "_storage_test_expected_crypttab_key_file": "-"}, "changed": false} TASK [Check for /etc/crypttab entry] ******************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:65 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Validate the format of the crypttab entry] ******************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:70 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check backing device of crypttab entry] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:76 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check key file of crypttab entry] **************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:82 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:88 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null, "_storage_test_expected_crypttab_entries": null, "_storage_test_expected_crypttab_key_file": null}, "changed": false} TASK [get information about RAID] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:7 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:13 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:17 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID active devices count] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:25 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID spare devices count] ****************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID metadata version] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [parse the actual size of the volume] ************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:3 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [parse the requested size of the volume] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:9 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:15 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_actual_size": { "changed": false, "skip_reason": "Conditional result was False", "skipped": true } } TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_requested_size": { "changed": false, "skip_reason": "Conditional result was False", "skipped": true } } TASK [assert] ****************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Clean up facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:16 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:56 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_blkinfo": null, "storage_test_crypttab": null, "storage_test_fstab": null, "storage_test_volume": null}, "changed": false} TASK [Remove the disk device created above] ************************************ task path: /tmp/tmp7ksfxpzz/tests/tests_create_disk_then_remove.yml:40 TASK [linux-system-roles.storage : Set version specific variables] ************* task path: /tmp/tmp7ksfxpzz/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-crypto", "libblockdev-dm", "libblockdev-lvm", "libblockdev-mdraid", "libblockdev-swap"]}, "ansible_included_var_files": ["/tmp/tmp7ksfxpzz/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.storage : define an empty list of pools to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : define an empty list of volumes to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : include the appropriate provider tasks] ***** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:22 included: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [linux-system-roles.storage : get a list of rpm packages installed on host machine] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : make sure blivet is available] ************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: python3-blivet", "Installed: libblockdev-crypto", "Installed: libblockdev-dm", "Installed: libblockdev-lvm", "Installed: libblockdev-mdraid", "Installed: libblockdev-swap"]} TASK [linux-system-roles.storage : initialize internal facts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools": [], "_storage_vol_defaults": [], "_storage_vol_pools": [], "_storage_vols_no_defaults": [], "_storage_vols_no_defaults_by_pool": {}, "_storage_vols_w_defaults": [], "_storage_volumes": []}, "changed": false} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [1/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:28 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [2/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:36 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [3/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:44 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [4/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:52 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [5/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:61 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [6/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:72 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'state': u'absent', u'mount_point': u'/opt/test1', u'type': u'disk', u'disks': [u'vda'], u'name': u'test1'}) => {"ansible_facts": {"_storage_volumes": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "absent", "type": "disk"}]}, "ansible_loop_var": "volume", "changed": false, "volume": {"disks": ["vda"], "mount_point": "/opt/test1", "name": "test1", "state": "absent", "type": "disk"}} TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools": [] } TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "absent", "type": "disk" } ] } TASK [linux-system-roles.storage : get required packages] ********************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": []} TASK [linux-system-roles.storage : make sure required packages are installed] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [linux-system-roles.storage : manage the pools and volumes to match the specified state] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:104 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [{"action": "destroy format", "device": "/dev/vda", "fs_type": "xfs"}], "changed": true, "crypts": [], "leaves": ["/dev/sda1", "/dev/sr0", "/dev/vda", "/dev/vdb", "/dev/vdc"], "mounts": [{"fstype": "xfs", "path": "/opt/test1", "src": "UUID=8fd1d63f-636a-442c-9e1f-ca572b89d63e", "state": "absent"}], "packages": ["e2fsprogs"], "pools": [], "volumes": [{"_device": "/dev/vda", "_mount_id": "UUID=8fd1d63f-636a-442c-9e1f-ca572b89d63e", "_raw_device": "/dev/vda", "disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "absent", "type": "disk"}]} TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:114 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "blivet_output": { "actions": [ { "action": "destroy format", "device": "/dev/vda", "fs_type": "xfs" } ], "changed": true, "crypts": [], "failed": false, "leaves": [ "/dev/sda1", "/dev/sr0", "/dev/vda", "/dev/vdb", "/dev/vdc" ], "mounts": [ { "fstype": "xfs", "path": "/opt/test1", "src": "UUID=8fd1d63f-636a-442c-9e1f-ca572b89d63e", "state": "absent" } ], "packages": [ "e2fsprogs" ], "pools": [], "volumes": [ { "_device": "/dev/vda", "_mount_id": "UUID=8fd1d63f-636a-442c-9e1f-ca572b89d63e", "_raw_device": "/dev/vda", "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "absent", "type": "disk" } ] } } TASK [linux-system-roles.storage : set the list of pools for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:117 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : set the list of volumes for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:121 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": [{"_device": "/dev/vda", "_mount_id": "UUID=8fd1d63f-636a-442c-9e1f-ca572b89d63e", "_raw_device": "/dev/vda", "disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "absent", "type": "disk"}]}, "changed": false} TASK [linux-system-roles.storage : remove obsolete mounts] ********************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:137 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'src': u'UUID=8fd1d63f-636a-442c-9e1f-ca572b89d63e', u'state': u'absent', u'fstype': u'xfs', u'path': u'/opt/test1'}) => {"ansible_loop_var": "mount_info", "changed": true, "dump": "0", "fstab": "/etc/fstab", "fstype": "xfs", "mount_info": {"fstype": "xfs", "path": "/opt/test1", "src": "UUID=8fd1d63f-636a-442c-9e1f-ca572b89d63e", "state": "absent"}, "name": "/opt/test1", "opts": "defaults", "passno": "0", "src": "UUID=8fd1d63f-636a-442c-9e1f-ca572b89d63e"} TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:148 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [linux-system-roles.storage : set up new/current mounts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:153 TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:164 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [linux-system-roles.storage : Manage /etc/crypttab to account for changes we just made] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:172 TASK [linux-system-roles.storage : Update facts] ******************************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:187 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_create_disk_then_remove.yml:51 included: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Print out pool information] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:1 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {} TASK [Print out volume information] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:6 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes_list": [ { "_device": "/dev/vda", "_mount_id": "UUID=8fd1d63f-636a-442c-9e1f-ca572b89d63e", "_raw_device": "/dev/vda", "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "absent", "type": "disk" } ] } TASK [Collect info about the volumes.] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "info": {"/dev/sda": {"fstype": "", "label": "", "name": "/dev/sda", "size": "4G", "type": "disk", "uuid": ""}, "/dev/sda1": {"fstype": "ext4", "label": "", "name": "/dev/sda1", "size": "4G", "type": "partition", "uuid": "03e702b4-e165-4a39-88c9-9e210cd00434"}, "/dev/sr0": {"fstype": "iso9660", "label": "cidata", "name": "/dev/sr0", "size": "364K", "type": "rom", "uuid": "2020-10-31-12-05-09-00"}, "/dev/vda": {"fstype": "", "label": "", "name": "/dev/vda", "size": "10G", "type": "disk", "uuid": ""}, "/dev/vdb": {"fstype": "", "label": "", "name": "/dev/vdb", "size": "10G", "type": "disk", "uuid": ""}, "/dev/vdc": {"fstype": "", "label": "", "name": "/dev/vdc", "size": "10G", "type": "disk", "uuid": ""}}} TASK [Read the /etc/fstab file for volume existence] *************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:19 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/fstab"], "delta": "0:00:00.002379", "end": "2020-10-31 12:07:16.875633", "rc": 0, "start": "2020-10-31 12:07:16.873254", "stderr": "", "stderr_lines": [], "stdout": "\n#\n# /etc/fstab\n# Created by anaconda on Sat Oct 31 08:17:58 2020\n#\n# Accessible filesystems, by reference, are maintained under '/dev/disk/'.\n# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.\n#\n# After editing this file, run 'systemctl daemon-reload' to update systemd\n# units generated from this file.\n#\nUUID=03e702b4-e165-4a39-88c9-9e210cd00434 / ext4 defaults 1 1", "stdout_lines": ["", "#", "# /etc/fstab", "# Created by anaconda on Sat Oct 31 08:17:58 2020", "#", "# Accessible filesystems, by reference, are maintained under '/dev/disk/'.", "# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.", "#", "# After editing this file, run 'systemctl daemon-reload' to update systemd", "# units generated from this file.", "#", "UUID=03e702b4-e165-4a39-88c9-9e210cd00434 / ext4 defaults 1 1"]} TASK [Read the /etc/crypttab file] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/crypttab"], "delta": "0:00:00.002313", "end": "2020-10-31 12:07:17.191730", "rc": 0, "start": "2020-10-31 12:07:17.189417", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Verify the volumes listed in storage_pools were correctly managed] ******* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:32 TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:39 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_pool": null}, "changed": false} TASK [Verify the volumes with no pool were correctly managed] ****************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:46 [WARNING]: The loop variable 'storage_test_volume' is already in use. You should set the `loop_var` value in the `loop_control` option for the task to something else to avoid variable collisions and unexpected behavior. included: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": false, "_storage_volume_tests": ["mount", "fstab", "fs", "device", "encryption", "md", "size"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:10 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Get expected mount device based on device type] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/vda"}, "changed": false} TASK [Set some facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [], "storage_test_mount_expected_match_count": "0", "storage_test_mount_point_matches": [], "storage_test_swap_expected_matches": "0"}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:22 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:31 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:39 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [command] ***************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Gather swap info] ******************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:52 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify swap status] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:57 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Unset facts] ************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:67 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null, "storage_test_swap_expected_matches": null, "storage_test_swaps": null, "storage_test_sys_node": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": "0", "storage_test_fstab_expected_mount_point_matches": "0", "storage_test_fstab_id_matches": [], "storage_test_fstab_mount_point_matches": []}, "changed": false} TASK [Verify that the device identifier appears in /etc/fstab] ***************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:10 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:17 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": null, "storage_test_fstab_expected_mount_point_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [Verify fs type] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:4 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify fs label] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:10 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [See whether the device node is present] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "stat": {"atime": 1604146033.6896274, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "ctime": 1604146033.6896274, "dev": 5, "device_type": 64512, "executable": false, "exists": true, "gid": 6, "gr_name": "disk", "inode": 1719, "isblk": true, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mimetype": "inode/blockdevice", "mode": "0660", "mtime": 1604146033.6896274, "nlink": 1, "path": "/dev/vda", "pw_name": "root", "readable": true, "rgrp": true, "roth": false, "rusr": true, "size": 0, "uid": 0, "version": null, "wgrp": true, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}} TASK [Verify the presence/absence of the device node] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:18 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "disk"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:28 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:33 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Stat the LUKS device, if encrypted] ************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:3 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Collect LUKS info for this volume] *************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:10 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the presence/absence of the LUKS device node] ********************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:16 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify that the raw device is the same as the device if not encrypted] *** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:25 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Make sure we got info about the LUKS volume if encrypted] **************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the LUKS volume's device type if encrypted] *********************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS version] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:42 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS key size] ***************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS cipher] ******************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:54 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:60 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": [], "_storage_test_expected_crypttab_entries": "0", "_storage_test_expected_crypttab_key_file": "-"}, "changed": false} TASK [Check for /etc/crypttab entry] ******************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:65 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Validate the format of the crypttab entry] ******************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:70 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check backing device of crypttab entry] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:76 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check key file of crypttab entry] **************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:82 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:88 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null, "_storage_test_expected_crypttab_entries": null, "_storage_test_expected_crypttab_key_file": null}, "changed": false} TASK [get information about RAID] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:7 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:13 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:17 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID active devices count] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:25 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID spare devices count] ****************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID metadata version] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [parse the actual size of the volume] ************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:3 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [parse the requested size of the volume] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:9 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:15 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_actual_size": { "changed": false, "skip_reason": "Conditional result was False", "skipped": true } } TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_requested_size": { "changed": false, "skip_reason": "Conditional result was False", "skipped": true } } TASK [assert] ****************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Clean up facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:16 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:56 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_blkinfo": null, "storage_test_crypttab": null, "storage_test_fstab": null, "storage_test_volume": null}, "changed": false} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 : ok=190 changed=5 unreachable=0 failed=0 skipped=127 rescued=0 ignored=0 + cd /tmp/tmp7ksfxpzz/tests; TEST_SUBJECTS=/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_storage-178-e856157-fedora-31-87qzp9iq/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmp7ksfxpzz/_setup.yml /tmp/tmp7ksfxpzz/tests/tests_create_lvm_pool_then_remove.yml ansible-playbook 2.8.16 config file = /etc/ansible/ansible.cfg configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python2.7/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 2.7.5 (default, Apr 2 2020, 13:16:51) [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)] Using /etc/ansible/ansible.cfg as config file PLAYBOOK: _setup.yml *********************************************************** 1 plays in /tmp/tmp7ksfxpzz/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/_setup.yml:5 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "groups": { "all": [ "/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2" ], "localhost": [ "/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2" ], "subjects": [ "/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmp7ksfxpzz/_setup.yml:6 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 : ok=1 changed=0 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 PLAYBOOK: tests_create_lvm_pool_then_remove.yml ******************************** 1 plays in /tmp/tmp7ksfxpzz/tests/tests_create_lvm_pool_then_remove.yml PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/tests_create_lvm_pool_then_remove.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] META: ran handlers TASK [include_role : linux-system-roles.storage] ******************************* task path: /tmp/tmp7ksfxpzz/tests/tests_create_lvm_pool_then_remove.yml:13 TASK [linux-system-roles.storage : Set version specific variables] ************* task path: /tmp/tmp7ksfxpzz/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-crypto", "libblockdev-dm", "libblockdev-lvm", "libblockdev-mdraid", "libblockdev-swap"]}, "ansible_included_var_files": ["/tmp/tmp7ksfxpzz/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.storage : define an empty list of pools to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : define an empty list of volumes to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : include the appropriate provider tasks] ***** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:22 included: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [linux-system-roles.storage : get a list of rpm packages installed on host machine] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : make sure blivet is available] ************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:7 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: python3-blivet", "Installed: libblockdev-crypto", "Installed: libblockdev-dm", "Installed: libblockdev-lvm", "Installed: libblockdev-mdraid", "Installed: libblockdev-swap", "Installed: libblockdev-kbd-2.24-2.fc31.x86_64", "Installed: nspr-4.29.0-1.fc31.x86_64", "Installed: libblockdev-loop-2.24-2.fc31.x86_64", "Installed: nss-3.57.0-1.fc31.x86_64", "Installed: libblockdev-lvm-2.24-2.fc31.x86_64", "Installed: lsof-4.93.2-2.fc31.x86_64", "Installed: lvm2-2.03.09-1.fc31.x86_64", "Installed: nss-softokn-3.57.0-1.fc31.x86_64", "Installed: libblockdev-mdraid-2.24-2.fc31.x86_64", "Installed: nss-softokn-freebl-3.57.0-1.fc31.x86_64", "Installed: lvm2-libs-2.03.09-1.fc31.x86_64", "Installed: python3-gobject-base-3.34.0-3.fc31.x86_64", "Installed: libblockdev-mpath-2.24-2.fc31.x86_64", "Installed: nss-sysinit-3.57.0-1.fc31.x86_64", "Installed: device-mapper-event-1.02.171-1.fc31.x86_64", "Installed: nss-util-3.57.0-1.fc31.x86_64", "Installed: libblockdev-nvdimm-2.24-2.fc31.x86_64", "Installed: gobject-introspection-1.62.0-1.fc31.x86_64", "Installed: device-mapper-event-libs-1.02.171-1.fc31.x86_64", "Installed: userspace-rcu-0.11.1-2.fc31.x86_64", "Installed: libblockdev-part-2.24-2.fc31.x86_64", "Installed: lzo-2.08-16.fc31.x86_64", "Installed: volume_key-libs-0.3.12-4.fc31.x86_64", "Installed: dmraid-1.0.0.rc16-43.fc31.x86_64", "Installed: libblockdev-swap-2.24-2.fc31.x86_64", "Installed: libblockdev-utils-2.24-2.fc31.x86_64", "Installed: blivet-data-1:3.1.7-2.fc31.noarch", "Installed: device-mapper-multipath-0.8.0-3.fc31.x86_64", "Installed: device-mapper-multipath-libs-0.8.0-3.fc31.x86_64", "Installed: device-mapper-persistent-data-0.8.5-2.fc31.x86_64", "Installed: sgpio-1.2.0.10-24.fc31.x86_64", "Installed: bcache-tools-1.0.8-16.fc31.x86_64", "Installed: python3-blivet-1:3.1.7-2.fc31.noarch", "Installed: daxctl-libs-70.1-1.fc31.x86_64", "Installed: python3-blockdev-2.24-2.fc31.x86_64", "Installed: mdadm-4.1-5.fc31.x86_64", "Installed: python3-pyudev-0.21.0-11.fc31.noarch", "Installed: python3-pyparted-1:3.11.2-2.fc31.x86_64", "Installed: libbytesize-2.3-1.fc31.x86_64", "Installed: libaio-0.3.111-6.fc31.x86_64", "Installed: python3-bytesize-2.3-1.fc31.x86_64", "Installed: libblockdev-2.24-2.fc31.x86_64", "Installed: libblockdev-btrfs-2.24-2.fc31.x86_64", "Installed: btrfs-progs-5.7-4.fc31.x86_64", "Installed: libblockdev-crypto-2.24-2.fc31.x86_64", "Installed: ndctl-70.1-1.fc31.x86_64", "Installed: compat-readline5-5.2-34.fc31.x86_64", "Installed: gdisk-1.0.5-1.fc31.x86_64", "Installed: ndctl-libs-70.1-1.fc31.x86_64", "Installed: libblockdev-dm-2.24-2.fc31.x86_64", "Installed: dmraid-events-1.0.0.rc16-43.fc31.x86_64", "Installed: libblockdev-fs-2.24-2.fc31.x86_64"]} TASK [linux-system-roles.storage : initialize internal facts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools": [], "_storage_vol_defaults": [], "_storage_vol_pools": [], "_storage_vols_no_defaults": [], "_storage_vols_no_defaults_by_pool": {}, "_storage_vols_w_defaults": [], "_storage_volumes": []}, "changed": false} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [1/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:28 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [2/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:36 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [3/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:44 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [4/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:52 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [5/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:61 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [6/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:72 TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools": [] } TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes": [] } TASK [linux-system-roles.storage : get required packages] ********************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": []} TASK [linux-system-roles.storage : make sure required packages are installed] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [linux-system-roles.storage : manage the pools and volumes to match the specified state] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:104 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": []} TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:114 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "blivet_output": { "actions": [], "changed": false, "crypts": [], "failed": false, "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": [] } } TASK [linux-system-roles.storage : set the list of pools for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:117 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : set the list of volumes for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:121 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : remove obsolete mounts] ********************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:137 TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:148 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : set up new/current mounts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:153 TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:164 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : Manage /etc/crypttab to account for changes we just made] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:172 TASK [linux-system-roles.storage : Update facts] ******************************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:187 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_create_lvm_pool_then_remove.yml:16 included: /tmp/tmp7ksfxpzz/tests/get_unused_disk.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Find unused disks in the system] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/get_unused_disk.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "disks": ["vda"]} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/get_unused_disk.yml:8 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"unused_disks": ["vda"]}, "changed": false} TASK [Exit playbook when there's not enough unused disks in the system] ******** task path: /tmp/tmp7ksfxpzz/tests/get_unused_disk.yml:12 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Print unused disks] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/get_unused_disk.yml:17 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "unused_disks": [ "vda" ] } TASK [Create two LVM logical volumes under volume group 'foo'] ***************** task path: /tmp/tmp7ksfxpzz/tests/tests_create_lvm_pool_then_remove.yml:21 TASK [linux-system-roles.storage : Set version specific variables] ************* task path: /tmp/tmp7ksfxpzz/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-crypto", "libblockdev-dm", "libblockdev-lvm", "libblockdev-mdraid", "libblockdev-swap"]}, "ansible_included_var_files": ["/tmp/tmp7ksfxpzz/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.storage : define an empty list of pools to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : define an empty list of volumes to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : include the appropriate provider tasks] ***** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:22 included: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [linux-system-roles.storage : get a list of rpm packages installed on host machine] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : make sure blivet is available] ************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: python3-blivet", "Installed: libblockdev-crypto", "Installed: libblockdev-dm", "Installed: libblockdev-lvm", "Installed: libblockdev-mdraid", "Installed: libblockdev-swap"]} TASK [linux-system-roles.storage : initialize internal facts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools": [], "_storage_vol_defaults": [], "_storage_vol_pools": [], "_storage_vols_no_defaults": [], "_storage_vols_no_defaults_by_pool": {}, "_storage_vols_w_defaults": [], "_storage_volumes": []}, "changed": false} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [1/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:28 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'disks': [u'vda'], u'name': u'foo', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'5g'}, {u'mount_point': u'/opt/test2', u'name': u'test2', u'size': u'4g'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "5g"}, {"mount_point": "/opt/test2", "name": "test2", "size": "4g"}]}]}, "ansible_loop_var": "pool", "changed": false, "pool": {"disks": ["vda"], "name": "foo", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "5g"}, {"mount_point": "/opt/test2", "name": "test2", "size": "4g"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [2/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:36 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'5g'}, {u'mount_point': u'/opt/test2', u'name': u'test2', u'size': u'4g'}], u'type': u'lvm', u'encryption_key_size': None}, {u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'5g'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}], "_storage_vol_pools": ["foo"], "_storage_vols_no_defaults": [{"mount_point": "/opt/test1", "name": "test1", "size": "5g"}]}, "ansible_loop_var": "item", "changed": false, "item": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "5g"}, {"mount_point": "/opt/test2", "name": "test2", "size": "4g"}]}, {"mount_point": "/opt/test1", "name": "test1", "size": "5g"}]} ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'5g'}, {u'mount_point': u'/opt/test2', u'name': u'test2', u'size': u'4g'}], u'type': u'lvm', u'encryption_key_size': None}, {u'mount_point': u'/opt/test2', u'name': u'test2', u'size': u'4g'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}], "_storage_vol_pools": ["foo", "foo"], "_storage_vols_no_defaults": [{"mount_point": "/opt/test1", "name": "test1", "size": "5g"}, {"mount_point": "/opt/test2", "name": "test2", "size": "4g"}]}, "ansible_loop_var": "item", "changed": false, "item": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "5g"}, {"mount_point": "/opt/test2", "name": "test2", "size": "4g"}]}, {"mount_point": "/opt/test2", "name": "test2", "size": "4g"}]} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [3/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:44 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'5g'}, {u'raid_metadata_version': None, u'encryption_key_size': None, u'encryption_key': None, u'fs_label': u'', u'raid_chunk_size': None, u'mount_device_identifier': u'uuid', u'fs_type': u'xfs', u'mount_options': u'defaults', u'encryption_luks_version': None, u'raid_spare_count': None, u'size': 0, u'mount_point': u'', u'encryption_password': None, u'encryption': False, u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'mount_check': 0, u'mount_passno': 0, u'fs_overwrite_existing': True, u'type': u'lvm', u'encryption_cipher': None, u'fs_create_options': u''}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "5g", "state": "present", "type": "lvm"}]}, "ansible_index_var": "idx", "ansible_loop_var": "item", "changed": false, "idx": 0, "item": [{"mount_point": "/opt/test1", "name": "test1", "size": "5g"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}]} ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'mount_point': u'/opt/test2', u'name': u'test2', u'size': u'4g'}, {u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'fs_label': u'', u'raid_level': None, u'mount_device_identifier': u'uuid', u'fs_type': u'xfs', u'mount_options': u'defaults', u'encryption_luks_version': None, u'raid_spare_count': None, u'size': 0, u'mount_point': u'', u'encryption_password': None, u'encryption': False, u'raid_chunk_size': None, u'raid_device_count': None, u'state': u'present', u'mount_check': 0, u'mount_passno': 0, u'fs_overwrite_existing': True, u'type': u'lvm', u'encryption_key_size': None, u'fs_create_options': u''}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "5g", "state": "present", "type": "lvm"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "test2", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm"}]}, "ansible_index_var": "idx", "ansible_loop_var": "item", "changed": false, "idx": 1, "item": [{"mount_point": "/opt/test2", "name": "test2", "size": "4g"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}]} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [4/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:52 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'5g'}, {u'mount_point': u'/opt/test2', u'name': u'test2', u'size': u'4g'}], u'type': u'lvm', u'encryption_key_size': None}) => {"ansible_facts": {"_storage_vols_no_defaults_by_pool": {"foo": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "5g", "state": "present", "type": "lvm"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "test2", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm"}]}}, "ansible_loop_var": "item", "changed": false, "item": {"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "5g"}, {"mount_point": "/opt/test2", "name": "test2", "size": "4g"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [5/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:61 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'5g'}, {u'mount_point': u'/opt/test2', u'name': u'test2', u'size': u'4g'}], u'type': u'lvm', u'encryption_key_size': None}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "5g", "state": "present", "type": "lvm"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "test2", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm"}]}]}, "ansible_index_var": "idx", "ansible_loop_var": "pool", "changed": false, "idx": 0, "pool": {"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "5g"}, {"mount_point": "/opt/test2", "name": "test2", "size": "4g"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [6/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:72 TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [ { "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "5g", "state": "present", "type": "lvm" }, { "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "test2", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm" } ] } ] } TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes": [] } TASK [linux-system-roles.storage : get required packages] ********************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": ["lvm2", "xfsprogs"], "pools": [], "volumes": []} TASK [linux-system-roles.storage : make sure required packages are installed] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: lvm2", "Installed: xfsprogs"]} TASK [linux-system-roles.storage : manage the pools and volumes to match the specified state] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:104 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [{"action": "create format", "device": "/dev/vda", "fs_type": "lvmpv"}, {"action": "create device", "device": "/dev/foo", "fs_type": null}, {"action": "create device", "device": "/dev/mapper/foo-test2", "fs_type": null}, {"action": "create format", "device": "/dev/mapper/foo-test2", "fs_type": "xfs"}, {"action": "create device", "device": "/dev/mapper/foo-test1", "fs_type": null}, {"action": "create format", "device": "/dev/mapper/foo-test1", "fs_type": "xfs"}], "changed": true, "crypts": [], "leaves": ["/dev/sda1", "/dev/sr0", "/dev/vdb", "/dev/vdc", "/dev/mapper/foo-test1", "/dev/mapper/foo-test2"], "mounts": [{"dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "/dev/mapper/foo-test1", "state": "mounted"}, {"dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test2", "src": "/dev/mapper/foo-test2", "state": "mounted"}], "packages": ["lvm2", "xfsprogs", "e2fsprogs"], "pools": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"_device": "/dev/mapper/foo-test1", "_kernel_device": "/dev/dm-1", "_mount_id": "/dev/mapper/foo-test1", "_raw_device": "/dev/mapper/foo-test1", "_raw_kernel_device": "/dev/dm-1", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "5g", "state": "present", "type": "lvm"}, {"_device": "/dev/mapper/foo-test2", "_kernel_device": "/dev/dm-0", "_mount_id": "/dev/mapper/foo-test2", "_raw_device": "/dev/mapper/foo-test2", "_raw_kernel_device": "/dev/dm-0", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "test2", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm"}]}], "volumes": []} TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:114 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "blivet_output": { "actions": [ { "action": "create format", "device": "/dev/vda", "fs_type": "lvmpv" }, { "action": "create device", "device": "/dev/foo", "fs_type": null }, { "action": "create device", "device": "/dev/mapper/foo-test2", "fs_type": null }, { "action": "create format", "device": "/dev/mapper/foo-test2", "fs_type": "xfs" }, { "action": "create device", "device": "/dev/mapper/foo-test1", "fs_type": null }, { "action": "create format", "device": "/dev/mapper/foo-test1", "fs_type": "xfs" } ], "changed": true, "crypts": [], "failed": false, "leaves": [ "/dev/sda1", "/dev/sr0", "/dev/vdb", "/dev/vdc", "/dev/mapper/foo-test1", "/dev/mapper/foo-test2" ], "mounts": [ { "dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "/dev/mapper/foo-test1", "state": "mounted" }, { "dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test2", "src": "/dev/mapper/foo-test2", "state": "mounted" } ], "packages": [ "lvm2", "xfsprogs", "e2fsprogs" ], "pools": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [ { "_device": "/dev/mapper/foo-test1", "_kernel_device": "/dev/dm-1", "_mount_id": "/dev/mapper/foo-test1", "_raw_device": "/dev/mapper/foo-test1", "_raw_kernel_device": "/dev/dm-1", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "5g", "state": "present", "type": "lvm" }, { "_device": "/dev/mapper/foo-test2", "_kernel_device": "/dev/dm-0", "_mount_id": "/dev/mapper/foo-test2", "_raw_device": "/dev/mapper/foo-test2", "_raw_kernel_device": "/dev/dm-0", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "test2", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm" } ] } ], "volumes": [] } } TASK [linux-system-roles.storage : set the list of pools for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:117 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"_device": "/dev/mapper/foo-test1", "_kernel_device": "/dev/dm-1", "_mount_id": "/dev/mapper/foo-test1", "_raw_device": "/dev/mapper/foo-test1", "_raw_kernel_device": "/dev/dm-1", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "5g", "state": "present", "type": "lvm"}, {"_device": "/dev/mapper/foo-test2", "_kernel_device": "/dev/dm-0", "_mount_id": "/dev/mapper/foo-test2", "_raw_device": "/dev/mapper/foo-test2", "_raw_kernel_device": "/dev/dm-0", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "test2", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm"}]}]}, "changed": false} TASK [linux-system-roles.storage : set the list of volumes for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:121 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : remove obsolete mounts] ********************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:137 TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:148 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [linux-system-roles.storage : set up new/current mounts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:153 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'src': u'/dev/mapper/foo-test1', u'state': u'mounted', u'dump': 0, u'path': u'/opt/test1', u'passno': 0, u'opts': u'defaults', u'fstype': u'xfs'}) => {"ansible_loop_var": "mount_info", "changed": true, "dump": "0", "fstab": "/etc/fstab", "fstype": "xfs", "mount_info": {"dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "/dev/mapper/foo-test1", "state": "mounted"}, "name": "/opt/test1", "opts": "defaults", "passno": "0", "src": "/dev/mapper/foo-test1"} changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'src': u'/dev/mapper/foo-test2', u'state': u'mounted', u'dump': 0, u'path': u'/opt/test2', u'passno': 0, u'opts': u'defaults', u'fstype': u'xfs'}) => {"ansible_loop_var": "mount_info", "changed": true, "dump": "0", "fstab": "/etc/fstab", "fstype": "xfs", "mount_info": {"dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test2", "src": "/dev/mapper/foo-test2", "state": "mounted"}, "name": "/opt/test2", "opts": "defaults", "passno": "0", "src": "/dev/mapper/foo-test2"} TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:164 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [linux-system-roles.storage : Manage /etc/crypttab to account for changes we just made] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:172 TASK [linux-system-roles.storage : Update facts] ******************************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:187 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_create_lvm_pool_then_remove.yml:36 included: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Print out pool information] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:1 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools_list": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [ { "_device": "/dev/mapper/foo-test1", "_kernel_device": "/dev/dm-1", "_mount_id": "/dev/mapper/foo-test1", "_raw_device": "/dev/mapper/foo-test1", "_raw_kernel_device": "/dev/dm-1", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "5g", "state": "present", "type": "lvm" }, { "_device": "/dev/mapper/foo-test2", "_kernel_device": "/dev/dm-0", "_mount_id": "/dev/mapper/foo-test2", "_raw_device": "/dev/mapper/foo-test2", "_raw_kernel_device": "/dev/dm-0", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "test2", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm" } ] } ] } TASK [Print out volume information] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:6 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {} TASK [Collect info about the volumes.] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "info": {"/dev/mapper/foo-test1": {"fstype": "xfs", "label": "", "name": "/dev/mapper/foo-test1", "size": "5G", "type": "lvm", "uuid": "3344b529-8ebf-4bf6-9fc4-d7f66bdafa5c"}, "/dev/mapper/foo-test2": {"fstype": "xfs", "label": "", "name": "/dev/mapper/foo-test2", "size": "4G", "type": "lvm", "uuid": "13916fac-87e7-4646-bcd1-e1ff42e27b80"}, "/dev/sda": {"fstype": "", "label": "", "name": "/dev/sda", "size": "4G", "type": "disk", "uuid": ""}, "/dev/sda1": {"fstype": "ext4", "label": "", "name": "/dev/sda1", "size": "4G", "type": "partition", "uuid": "03e702b4-e165-4a39-88c9-9e210cd00434"}, "/dev/sr0": {"fstype": "iso9660", "label": "cidata", "name": "/dev/sr0", "size": "364K", "type": "rom", "uuid": "2020-10-31-12-07-20-00"}, "/dev/vda": {"fstype": "LVM2_member", "label": "", "name": "/dev/vda", "size": "10G", "type": "disk", "uuid": "m723Gb-NFXx-elMH-q3cQ-dbvl-B1Lm-1tTVWR"}, "/dev/vdb": {"fstype": "", "label": "", "name": "/dev/vdb", "size": "10G", "type": "disk", "uuid": ""}, "/dev/vdc": {"fstype": "", "label": "", "name": "/dev/vdc", "size": "10G", "type": "disk", "uuid": ""}}} TASK [Read the /etc/fstab file for volume existence] *************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:19 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/fstab"], "delta": "0:00:00.002797", "end": "2020-10-31 12:08:49.928070", "rc": 0, "start": "2020-10-31 12:08:49.925273", "stderr": "", "stderr_lines": [], "stdout": "\n#\n# /etc/fstab\n# Created by anaconda on Sat Oct 31 08:17:58 2020\n#\n# Accessible filesystems, by reference, are maintained under '/dev/disk/'.\n# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.\n#\n# After editing this file, run 'systemctl daemon-reload' to update systemd\n# units generated from this file.\n#\nUUID=03e702b4-e165-4a39-88c9-9e210cd00434 / ext4 defaults 1 1\n/dev/mapper/foo-test1 /opt/test1 xfs defaults 0 0\n/dev/mapper/foo-test2 /opt/test2 xfs defaults 0 0", "stdout_lines": ["", "#", "# /etc/fstab", "# Created by anaconda on Sat Oct 31 08:17:58 2020", "#", "# Accessible filesystems, by reference, are maintained under '/dev/disk/'.", "# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.", "#", "# After editing this file, run 'systemctl daemon-reload' to update systemd", "# units generated from this file.", "#", "UUID=03e702b4-e165-4a39-88c9-9e210cd00434 / ext4 defaults 1 1", "/dev/mapper/foo-test1 /opt/test1 xfs defaults 0 0", "/dev/mapper/foo-test2 /opt/test2 xfs defaults 0 0"]} TASK [Read the /etc/crypttab file] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/crypttab"], "delta": "0:00:00.002682", "end": "2020-10-31 12:08:50.260096", "rc": 0, "start": "2020-10-31 12:08:50.257414", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Verify the volumes listed in storage_pools were correctly managed] ******* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:32 included: /tmp/tmp7ksfxpzz/tests/test-verify-pool.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool.yml:5 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pool_tests": ["members", "volumes"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool.yml:17 included: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-pool-volumes.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:1 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_count": "1", "_storage_test_pool_pvs": [], "_storage_test_pool_pvs_lvm": ["/dev/vda"]}, "changed": false} TASK [Get the canonical device path for each member device] ******************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:7 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=/dev/vda) => {"ansible_loop_var": "pv", "changed": false, "device": "/dev/vda", "pv": "/dev/vda"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:16 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=/dev/vda) => {"ansible_facts": {"_storage_test_pool_pvs": ["/dev/vda"]}, "ansible_index_var": "idx", "ansible_loop_var": "item", "changed": false, "idx": 0, "item": "/dev/vda"} TASK [Verify PV count] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:23 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:29 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_type": "disk"}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:33 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_type": "disk"}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check the type of each PV] *********************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:41 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=/dev/vda) => { "ansible_loop_var": "pv", "changed": false, "msg": "All assertions passed", "pv": "/dev/vda" } TASK [Check raid] ************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:50 included: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [get information about RAID] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:6 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:12 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:16 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:20 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID active devices count] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:24 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID spare devices count] ****************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:30 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID metadata version] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:36 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:44 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_md_active_devices_re": null, "storage_test_md_metadata_version_re": null, "storage_test_md_spare_devices_re": null}, "changed": false} TASK [Check member encryption] ************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:53 included: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_crypttab_entries": "0", "_storage_test_expected_crypttab_key_file": "-"}, "changed": false} TASK [Validate pool member LUKS settings] ************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:8 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=/dev/vda) => {"_storage_test_pool_member_path": "/dev/vda", "ansible_loop_var": "_storage_test_pool_member_path", "changed": false, "skip_reason": "Conditional result was False"} TASK [Validate pool member crypttab entries] *********************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:15 included: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:1 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": []}, "changed": false} TASK [Check for /etc/crypttab entry] ******************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Validate the format of the crypttab entry] ******************************* task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:9 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check backing device of crypttab entry] ********************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:15 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check key file of crypttab entry] **************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:27 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:22 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null, "_storage_test_crypttab_key_file": null}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:56 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_count": null, "_storage_test_expected_pv_type": null, "_storage_test_pool_pvs": [], "_storage_test_pool_pvs_lvm": []}, "changed": false} TASK [verify the volumes] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-volumes.yml:3 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": true, "_storage_volume_tests": ["mount", "fstab", "fs", "device", "encryption", "md", "size"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:10 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Get expected mount device based on device type] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/foo-test1"}, "changed": false} TASK [Set some facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [{"block_available": 1290774, "block_size": 4096, "block_total": 1308160, "block_used": 17386, "device": "/dev/mapper/foo-test1", "fstype": "xfs", "inode_available": 2621437, "inode_total": 2621440, "inode_used": 3, "mount": "/opt/test1", "options": "rw,seclabel,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota", "size_available": 5287010304, "size_total": 5358223360, "uuid": "3344b529-8ebf-4bf6-9fc4-d7f66bdafa5c"}], "storage_test_mount_expected_match_count": "1", "storage_test_mount_point_matches": [{"block_available": 1290774, "block_size": 4096, "block_total": 1308160, "block_used": 17386, "device": "/dev/mapper/foo-test1", "fstype": "xfs", "inode_available": 2621437, "inode_total": 2621440, "inode_used": 3, "mount": "/opt/test1", "options": "rw,seclabel,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota", "size_available": 5287010304, "size_total": 5358223360, "uuid": "3344b529-8ebf-4bf6-9fc4-d7f66bdafa5c"}], "storage_test_swap_expected_matches": "0"}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:22 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:31 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:39 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [command] ***************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Gather swap info] ******************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:52 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify swap status] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:57 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Unset facts] ************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:67 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null, "storage_test_swap_expected_matches": null, "storage_test_swaps": null, "storage_test_sys_node": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": "1", "storage_test_fstab_expected_mount_point_matches": "1", "storage_test_fstab_id_matches": ["/dev/mapper/foo-test1 "], "storage_test_fstab_mount_point_matches": [" /opt/test1 "]}, "changed": false} TASK [Verify that the device identifier appears in /etc/fstab] ***************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:17 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": null, "storage_test_fstab_expected_mount_point_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [Verify fs type] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify fs label] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [See whether the device node is present] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "stat": {"atime": 1604146125.4431186, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "ctime": 1604146125.4431186, "dev": 5, "device_type": 64769, "executable": false, "exists": true, "gid": 6, "gr_name": "disk", "inode": 74753, "isblk": true, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mimetype": "inode/symlink", "mode": "0660", "mtime": 1604146125.4431186, "nlink": 1, "path": "/dev/mapper/foo-test1", "pw_name": "root", "readable": true, "rgrp": true, "roth": false, "rusr": true, "size": 0, "uid": 0, "version": null, "wgrp": true, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}} TASK [Verify the presence/absence of the device node] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "lvm"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:28 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:33 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Stat the LUKS device, if encrypted] ************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:3 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Collect LUKS info for this volume] *************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:10 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the presence/absence of the LUKS device node] ********************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:16 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify that the raw device is the same as the device if not encrypted] *** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:25 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about the LUKS volume if encrypted] **************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the LUKS volume's device type if encrypted] *********************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS version] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:42 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS key size] ***************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS cipher] ******************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:54 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:60 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": [], "_storage_test_expected_crypttab_entries": "0", "_storage_test_expected_crypttab_key_file": "-"}, "changed": false} TASK [Check for /etc/crypttab entry] ******************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:65 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Validate the format of the crypttab entry] ******************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:70 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check backing device of crypttab entry] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:76 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check key file of crypttab entry] **************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:82 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:88 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null, "_storage_test_expected_crypttab_entries": null, "_storage_test_expected_crypttab_key_file": null}, "changed": false} TASK [get information about RAID] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:7 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:13 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:17 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID active devices count] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:25 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID spare devices count] ****************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID metadata version] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [parse the actual size of the volume] ************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:3 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"bytes": 5368709120, "changed": false, "lvm": "5g", "parted": "5GiB", "size": "5 GiB"} TASK [parse the requested size of the volume] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:9 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"bytes": 5368709120, "changed": false, "lvm": "5g", "parted": "5GiB", "size": "5 GiB"} TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:15 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_actual_size": { "bytes": 5368709120, "changed": false, "failed": false, "lvm": "5g", "parted": "5GiB", "size": "5 GiB" } } TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_requested_size": { "bytes": 5368709120, "changed": false, "failed": false, "lvm": "5g", "parted": "5GiB", "size": "5 GiB" } } TASK [assert] ****************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:21 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:16 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": true, "_storage_volume_tests": ["mount", "fstab", "fs", "device", "encryption", "md", "size"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:10 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Get expected mount device based on device type] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/foo-test2"}, "changed": false} TASK [Set some facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [{"block_available": 1030454, "block_size": 4096, "block_total": 1046016, "block_used": 15562, "device": "/dev/mapper/foo-test2", "fstype": "xfs", "inode_available": 2097149, "inode_total": 2097152, "inode_used": 3, "mount": "/opt/test2", "options": "rw,seclabel,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota", "size_available": 4220739584, "size_total": 4284481536, "uuid": "13916fac-87e7-4646-bcd1-e1ff42e27b80"}], "storage_test_mount_expected_match_count": "1", "storage_test_mount_point_matches": [{"block_available": 1030454, "block_size": 4096, "block_total": 1046016, "block_used": 15562, "device": "/dev/mapper/foo-test2", "fstype": "xfs", "inode_available": 2097149, "inode_total": 2097152, "inode_used": 3, "mount": "/opt/test2", "options": "rw,seclabel,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota", "size_available": 4220739584, "size_total": 4284481536, "uuid": "13916fac-87e7-4646-bcd1-e1ff42e27b80"}], "storage_test_swap_expected_matches": "0"}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:22 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:31 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:39 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [command] ***************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Gather swap info] ******************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:52 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify swap status] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:57 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Unset facts] ************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:67 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null, "storage_test_swap_expected_matches": null, "storage_test_swaps": null, "storage_test_sys_node": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": "1", "storage_test_fstab_expected_mount_point_matches": "1", "storage_test_fstab_id_matches": ["/dev/mapper/foo-test2 "], "storage_test_fstab_mount_point_matches": [" /opt/test2 "]}, "changed": false} TASK [Verify that the device identifier appears in /etc/fstab] ***************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:17 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": null, "storage_test_fstab_expected_mount_point_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [Verify fs type] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify fs label] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [See whether the device node is present] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "stat": {"atime": 1604146125.2331185, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "ctime": 1604146125.2331185, "dev": 5, "device_type": 64768, "executable": false, "exists": true, "gid": 6, "gr_name": "disk", "inode": 2048, "isblk": true, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mimetype": "inode/symlink", "mode": "0660", "mtime": 1604146125.2331185, "nlink": 1, "path": "/dev/mapper/foo-test2", "pw_name": "root", "readable": true, "rgrp": true, "roth": false, "rusr": true, "size": 0, "uid": 0, "version": null, "wgrp": true, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}} TASK [Verify the presence/absence of the device node] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "lvm"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:28 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:33 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Stat the LUKS device, if encrypted] ************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:3 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Collect LUKS info for this volume] *************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:10 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the presence/absence of the LUKS device node] ********************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:16 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify that the raw device is the same as the device if not encrypted] *** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:25 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about the LUKS volume if encrypted] **************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the LUKS volume's device type if encrypted] *********************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS version] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:42 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS key size] ***************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS cipher] ******************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:54 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:60 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": [], "_storage_test_expected_crypttab_entries": "0", "_storage_test_expected_crypttab_key_file": "-"}, "changed": false} TASK [Check for /etc/crypttab entry] ******************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:65 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Validate the format of the crypttab entry] ******************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:70 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check backing device of crypttab entry] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:76 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check key file of crypttab entry] **************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:82 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:88 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null, "_storage_test_expected_crypttab_entries": null, "_storage_test_expected_crypttab_key_file": null}, "changed": false} TASK [get information about RAID] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:7 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:13 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:17 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID active devices count] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:25 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID spare devices count] ****************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID metadata version] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [parse the actual size of the volume] ************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:3 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"bytes": 4294967296, "changed": false, "lvm": "4g", "parted": "4GiB", "size": "4 GiB"} TASK [parse the requested size of the volume] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:9 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"bytes": 4294967296, "changed": false, "lvm": "4g", "parted": "4GiB", "size": "4 GiB"} TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:15 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_actual_size": { "bytes": 4294967296, "changed": false, "failed": false, "lvm": "4g", "parted": "4GiB", "size": "4 GiB" } } TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_requested_size": { "bytes": 4294967296, "changed": false, "failed": false, "lvm": "4g", "parted": "4GiB", "size": "4 GiB" } } TASK [assert] ****************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:21 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:16 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:39 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_pool": null}, "changed": false} TASK [Verify the volumes with no pool were correctly managed] ****************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:46 TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:56 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_blkinfo": null, "storage_test_crypttab": null, "storage_test_fstab": null, "storage_test_volume": null}, "changed": false} TASK [Remove one of the LVM logical volumes in 'foo' created above] ************ task path: /tmp/tmp7ksfxpzz/tests/tests_create_lvm_pool_then_remove.yml:38 TASK [linux-system-roles.storage : Set version specific variables] ************* task path: /tmp/tmp7ksfxpzz/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-crypto", "libblockdev-dm", "libblockdev-lvm", "libblockdev-mdraid", "libblockdev-swap"]}, "ansible_included_var_files": ["/tmp/tmp7ksfxpzz/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.storage : define an empty list of pools to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : define an empty list of volumes to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : include the appropriate provider tasks] ***** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:22 included: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [linux-system-roles.storage : get a list of rpm packages installed on host machine] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : make sure blivet is available] ************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: python3-blivet", "Installed: libblockdev-crypto", "Installed: libblockdev-dm", "Installed: libblockdev-lvm", "Installed: libblockdev-mdraid", "Installed: libblockdev-swap"]} TASK [linux-system-roles.storage : initialize internal facts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools": [], "_storage_vol_defaults": [], "_storage_vol_pools": [], "_storage_vols_no_defaults": [], "_storage_vols_no_defaults_by_pool": {}, "_storage_vols_w_defaults": [], "_storage_volumes": []}, "changed": false} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [1/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:28 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'state': u'present', u'disks': [u'vda'], u'name': u'foo', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'5g'}, {u'state': u'absent', u'mount_point': u'/opt/test2', u'name': u'test2', u'size': u'4g'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "5g"}, {"mount_point": "/opt/test2", "name": "test2", "size": "4g", "state": "absent"}]}]}, "ansible_loop_var": "pool", "changed": false, "pool": {"disks": ["vda"], "name": "foo", "state": "present", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "5g"}, {"mount_point": "/opt/test2", "name": "test2", "size": "4g", "state": "absent"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [2/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:36 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'5g'}, {u'state': u'absent', u'mount_point': u'/opt/test2', u'name': u'test2', u'size': u'4g'}], u'type': u'lvm', u'encryption_key_size': None}, {u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'5g'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}], "_storage_vol_pools": ["foo"], "_storage_vols_no_defaults": [{"mount_point": "/opt/test1", "name": "test1", "size": "5g"}]}, "ansible_loop_var": "item", "changed": false, "item": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "5g"}, {"mount_point": "/opt/test2", "name": "test2", "size": "4g", "state": "absent"}]}, {"mount_point": "/opt/test1", "name": "test1", "size": "5g"}]} ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'5g'}, {u'state': u'absent', u'mount_point': u'/opt/test2', u'name': u'test2', u'size': u'4g'}], u'type': u'lvm', u'encryption_key_size': None}, {u'state': u'absent', u'mount_point': u'/opt/test2', u'name': u'test2', u'size': u'4g'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}], "_storage_vol_pools": ["foo", "foo"], "_storage_vols_no_defaults": [{"mount_point": "/opt/test1", "name": "test1", "size": "5g"}, {"mount_point": "/opt/test2", "name": "test2", "size": "4g", "state": "absent"}]}, "ansible_loop_var": "item", "changed": false, "item": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "5g"}, {"mount_point": "/opt/test2", "name": "test2", "size": "4g", "state": "absent"}]}, {"mount_point": "/opt/test2", "name": "test2", "size": "4g", "state": "absent"}]} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [3/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:44 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'5g'}, {u'raid_metadata_version': None, u'encryption_key_size': None, u'encryption_key': None, u'fs_label': u'', u'raid_chunk_size': None, u'mount_device_identifier': u'uuid', u'fs_type': u'xfs', u'mount_options': u'defaults', u'encryption_luks_version': None, u'raid_spare_count': None, u'size': 0, u'mount_point': u'', u'encryption_password': None, u'encryption': False, u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'mount_check': 0, u'mount_passno': 0, u'fs_overwrite_existing': True, u'type': u'lvm', u'encryption_cipher': None, u'fs_create_options': u''}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "5g", "state": "present", "type": "lvm"}]}, "ansible_index_var": "idx", "ansible_loop_var": "item", "changed": false, "idx": 0, "item": [{"mount_point": "/opt/test1", "name": "test1", "size": "5g"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}]} ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'state': u'absent', u'mount_point': u'/opt/test2', u'name': u'test2', u'size': u'4g'}, {u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'fs_label': u'', u'raid_level': None, u'mount_device_identifier': u'uuid', u'fs_type': u'xfs', u'mount_options': u'defaults', u'encryption_luks_version': None, u'raid_spare_count': None, u'size': 0, u'mount_point': u'', u'encryption_password': None, u'encryption': False, u'raid_chunk_size': None, u'raid_device_count': None, u'state': u'present', u'mount_check': 0, u'mount_passno': 0, u'fs_overwrite_existing': True, u'type': u'lvm', u'encryption_key_size': None, u'fs_create_options': u''}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "5g", "state": "present", "type": "lvm"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "test2", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "absent", "type": "lvm"}]}, "ansible_index_var": "idx", "ansible_loop_var": "item", "changed": false, "idx": 1, "item": [{"mount_point": "/opt/test2", "name": "test2", "size": "4g", "state": "absent"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}]} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [4/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:52 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'5g'}, {u'state': u'absent', u'mount_point': u'/opt/test2', u'name': u'test2', u'size': u'4g'}], u'type': u'lvm', u'encryption_key_size': None}) => {"ansible_facts": {"_storage_vols_no_defaults_by_pool": {"foo": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "5g", "state": "present", "type": "lvm"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "test2", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "absent", "type": "lvm"}]}}, "ansible_loop_var": "item", "changed": false, "item": {"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "5g"}, {"mount_point": "/opt/test2", "name": "test2", "size": "4g", "state": "absent"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [5/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:61 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'5g'}, {u'state': u'absent', u'mount_point': u'/opt/test2', u'name': u'test2', u'size': u'4g'}], u'type': u'lvm', u'encryption_key_size': None}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "5g", "state": "present", "type": "lvm"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "test2", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "absent", "type": "lvm"}]}]}, "ansible_index_var": "idx", "ansible_loop_var": "pool", "changed": false, "idx": 0, "pool": {"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "5g"}, {"mount_point": "/opt/test2", "name": "test2", "size": "4g", "state": "absent"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [6/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:72 TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [ { "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "5g", "state": "present", "type": "lvm" }, { "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "test2", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "absent", "type": "lvm" } ] } ] } TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes": [] } TASK [linux-system-roles.storage : get required packages] ********************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": ["lvm2", "xfsprogs"], "pools": [], "volumes": []} TASK [linux-system-roles.storage : make sure required packages are installed] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: lvm2", "Installed: xfsprogs"]} TASK [linux-system-roles.storage : manage the pools and volumes to match the specified state] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:104 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [{"action": "destroy format", "device": "/dev/mapper/foo-test2", "fs_type": "xfs"}, {"action": "destroy device", "device": "/dev/mapper/foo-test2", "fs_type": null}], "changed": true, "crypts": [], "leaves": ["/dev/sda1", "/dev/sr0", "/dev/mapper/foo-test1", "/dev/vdb", "/dev/vdc"], "mounts": [{"fstype": "xfs", "path": "/opt/test2", "src": "/dev/mapper/foo-test2", "state": "absent"}, {"dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "/dev/mapper/foo-test1", "state": "mounted"}], "packages": ["lvm2", "e2fsprogs", "xfsprogs"], "pools": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"_device": "/dev/mapper/foo-test1", "_kernel_device": "/dev/dm-1", "_mount_id": "/dev/mapper/foo-test1", "_raw_device": "/dev/mapper/foo-test1", "_raw_kernel_device": "/dev/dm-1", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "5g", "state": "present", "type": "lvm"}, {"_device": "/dev/mapper/foo-test2", "_mount_id": "/dev/mapper/foo-test2", "_raw_device": "/dev/mapper/foo-test2", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "test2", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "absent", "type": "lvm"}]}], "volumes": []} TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:114 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "blivet_output": { "actions": [ { "action": "destroy format", "device": "/dev/mapper/foo-test2", "fs_type": "xfs" }, { "action": "destroy device", "device": "/dev/mapper/foo-test2", "fs_type": null } ], "changed": true, "crypts": [], "failed": false, "leaves": [ "/dev/sda1", "/dev/sr0", "/dev/mapper/foo-test1", "/dev/vdb", "/dev/vdc" ], "mounts": [ { "fstype": "xfs", "path": "/opt/test2", "src": "/dev/mapper/foo-test2", "state": "absent" }, { "dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "/dev/mapper/foo-test1", "state": "mounted" } ], "packages": [ "lvm2", "e2fsprogs", "xfsprogs" ], "pools": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [ { "_device": "/dev/mapper/foo-test1", "_kernel_device": "/dev/dm-1", "_mount_id": "/dev/mapper/foo-test1", "_raw_device": "/dev/mapper/foo-test1", "_raw_kernel_device": "/dev/dm-1", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "5g", "state": "present", "type": "lvm" }, { "_device": "/dev/mapper/foo-test2", "_mount_id": "/dev/mapper/foo-test2", "_raw_device": "/dev/mapper/foo-test2", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "test2", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "absent", "type": "lvm" } ] } ], "volumes": [] } } TASK [linux-system-roles.storage : set the list of pools for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:117 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"_device": "/dev/mapper/foo-test1", "_kernel_device": "/dev/dm-1", "_mount_id": "/dev/mapper/foo-test1", "_raw_device": "/dev/mapper/foo-test1", "_raw_kernel_device": "/dev/dm-1", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "5g", "state": "present", "type": "lvm"}, {"_device": "/dev/mapper/foo-test2", "_mount_id": "/dev/mapper/foo-test2", "_raw_device": "/dev/mapper/foo-test2", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "test2", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "absent", "type": "lvm"}]}]}, "changed": false} TASK [linux-system-roles.storage : set the list of volumes for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:121 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : remove obsolete mounts] ********************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:137 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'src': u'/dev/mapper/foo-test2', u'state': u'absent', u'fstype': u'xfs', u'path': u'/opt/test2'}) => {"ansible_loop_var": "mount_info", "changed": true, "dump": "0", "fstab": "/etc/fstab", "fstype": "xfs", "mount_info": {"fstype": "xfs", "path": "/opt/test2", "src": "/dev/mapper/foo-test2", "state": "absent"}, "name": "/opt/test2", "opts": "defaults", "passno": "0", "src": "/dev/mapper/foo-test2"} TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:148 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [linux-system-roles.storage : set up new/current mounts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:153 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'src': u'/dev/mapper/foo-test1', u'state': u'mounted', u'dump': 0, u'path': u'/opt/test1', u'passno': 0, u'opts': u'defaults', u'fstype': u'xfs'}) => {"ansible_loop_var": "mount_info", "changed": false, "dump": "0", "fstab": "/etc/fstab", "fstype": "xfs", "mount_info": {"dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "/dev/mapper/foo-test1", "state": "mounted"}, "name": "/opt/test1", "opts": "defaults", "passno": "0", "src": "/dev/mapper/foo-test1"} TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:164 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [linux-system-roles.storage : Manage /etc/crypttab to account for changes we just made] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:172 TASK [linux-system-roles.storage : Update facts] ******************************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:187 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_create_lvm_pool_then_remove.yml:55 included: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Print out pool information] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:1 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools_list": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [ { "_device": "/dev/mapper/foo-test1", "_kernel_device": "/dev/dm-1", "_mount_id": "/dev/mapper/foo-test1", "_raw_device": "/dev/mapper/foo-test1", "_raw_kernel_device": "/dev/dm-1", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "5g", "state": "present", "type": "lvm" }, { "_device": "/dev/mapper/foo-test2", "_mount_id": "/dev/mapper/foo-test2", "_raw_device": "/dev/mapper/foo-test2", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "test2", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "absent", "type": "lvm" } ] } ] } TASK [Print out volume information] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:6 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {} TASK [Collect info about the volumes.] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "info": {"/dev/mapper/foo-test1": {"fstype": "xfs", "label": "", "name": "/dev/mapper/foo-test1", "size": "5G", "type": "lvm", "uuid": "3344b529-8ebf-4bf6-9fc4-d7f66bdafa5c"}, "/dev/sda": {"fstype": "", "label": "", "name": "/dev/sda", "size": "4G", "type": "disk", "uuid": ""}, "/dev/sda1": {"fstype": "ext4", "label": "", "name": "/dev/sda1", "size": "4G", "type": "partition", "uuid": "03e702b4-e165-4a39-88c9-9e210cd00434"}, "/dev/sr0": {"fstype": "iso9660", "label": "cidata", "name": "/dev/sr0", "size": "364K", "type": "rom", "uuid": "2020-10-31-12-07-20-00"}, "/dev/vda": {"fstype": "LVM2_member", "label": "", "name": "/dev/vda", "size": "10G", "type": "disk", "uuid": "m723Gb-NFXx-elMH-q3cQ-dbvl-B1Lm-1tTVWR"}, "/dev/vdb": {"fstype": "", "label": "", "name": "/dev/vdb", "size": "10G", "type": "disk", "uuid": ""}, "/dev/vdc": {"fstype": "", "label": "", "name": "/dev/vdc", "size": "10G", "type": "disk", "uuid": ""}}} TASK [Read the /etc/fstab file for volume existence] *************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:19 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/fstab"], "delta": "0:00:00.003922", "end": "2020-10-31 12:09:14.277211", "rc": 0, "start": "2020-10-31 12:09:14.273289", "stderr": "", "stderr_lines": [], "stdout": "\n#\n# /etc/fstab\n# Created by anaconda on Sat Oct 31 08:17:58 2020\n#\n# Accessible filesystems, by reference, are maintained under '/dev/disk/'.\n# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.\n#\n# After editing this file, run 'systemctl daemon-reload' to update systemd\n# units generated from this file.\n#\nUUID=03e702b4-e165-4a39-88c9-9e210cd00434 / ext4 defaults 1 1\n/dev/mapper/foo-test1 /opt/test1 xfs defaults 0 0", "stdout_lines": ["", "#", "# /etc/fstab", "# Created by anaconda on Sat Oct 31 08:17:58 2020", "#", "# Accessible filesystems, by reference, are maintained under '/dev/disk/'.", "# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.", "#", "# After editing this file, run 'systemctl daemon-reload' to update systemd", "# units generated from this file.", "#", "UUID=03e702b4-e165-4a39-88c9-9e210cd00434 / ext4 defaults 1 1", "/dev/mapper/foo-test1 /opt/test1 xfs defaults 0 0"]} TASK [Read the /etc/crypttab file] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/crypttab"], "delta": "0:00:00.003230", "end": "2020-10-31 12:09:14.631465", "rc": 0, "start": "2020-10-31 12:09:14.628235", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Verify the volumes listed in storage_pools were correctly managed] ******* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:32 [WARNING]: The loop variable 'storage_test_pool' is already in use. You should set the `loop_var` value in the `loop_control` option for the task to something else to avoid variable collisions and unexpected behavior. included: /tmp/tmp7ksfxpzz/tests/test-verify-pool.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool.yml:5 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pool_tests": ["members", "volumes"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool.yml:17 included: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-pool-volumes.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:1 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_count": "1", "_storage_test_pool_pvs": [], "_storage_test_pool_pvs_lvm": ["/dev/vda"]}, "changed": false} TASK [Get the canonical device path for each member device] ******************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:7 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=/dev/vda) => {"ansible_loop_var": "pv", "changed": false, "device": "/dev/vda", "pv": "/dev/vda"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:16 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=/dev/vda) => {"ansible_facts": {"_storage_test_pool_pvs": ["/dev/vda"]}, "ansible_index_var": "idx", "ansible_loop_var": "item", "changed": false, "idx": 0, "item": "/dev/vda"} TASK [Verify PV count] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:23 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:29 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_type": "disk"}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:33 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_type": "disk"}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check the type of each PV] *********************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:41 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=/dev/vda) => { "ansible_loop_var": "pv", "changed": false, "msg": "All assertions passed", "pv": "/dev/vda" } TASK [Check raid] ************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:50 included: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [get information about RAID] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:6 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:12 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:16 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:20 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID active devices count] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:24 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID spare devices count] ****************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:30 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID metadata version] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:36 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:44 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_md_active_devices_re": null, "storage_test_md_metadata_version_re": null, "storage_test_md_spare_devices_re": null}, "changed": false} TASK [Check member encryption] ************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:53 included: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_crypttab_entries": "0", "_storage_test_expected_crypttab_key_file": "-"}, "changed": false} TASK [Validate pool member LUKS settings] ************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:8 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=/dev/vda) => {"_storage_test_pool_member_path": "/dev/vda", "ansible_loop_var": "_storage_test_pool_member_path", "changed": false, "skip_reason": "Conditional result was False"} TASK [Validate pool member crypttab entries] *********************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:15 included: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:1 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": []}, "changed": false} TASK [Check for /etc/crypttab entry] ******************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Validate the format of the crypttab entry] ******************************* task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:9 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check backing device of crypttab entry] ********************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:15 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check key file of crypttab entry] **************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:27 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:22 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null, "_storage_test_crypttab_key_file": null}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:56 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_count": null, "_storage_test_expected_pv_type": null, "_storage_test_pool_pvs": [], "_storage_test_pool_pvs_lvm": []}, "changed": false} TASK [verify the volumes] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-volumes.yml:3 [WARNING]: The loop variable 'storage_test_volume' is already in use. You should set the `loop_var` value in the `loop_control` option for the task to something else to avoid variable collisions and unexpected behavior. included: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": true, "_storage_volume_tests": ["mount", "fstab", "fs", "device", "encryption", "md", "size"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:10 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Get expected mount device based on device type] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/foo-test1"}, "changed": false} TASK [Set some facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [{"block_available": 1290774, "block_size": 4096, "block_total": 1308160, "block_used": 17386, "device": "/dev/mapper/foo-test1", "fstype": "xfs", "inode_available": 2621437, "inode_total": 2621440, "inode_used": 3, "mount": "/opt/test1", "options": "rw,seclabel,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota", "size_available": 5287010304, "size_total": 5358223360, "uuid": "3344b529-8ebf-4bf6-9fc4-d7f66bdafa5c"}], "storage_test_mount_expected_match_count": "1", "storage_test_mount_point_matches": [{"block_available": 1290774, "block_size": 4096, "block_total": 1308160, "block_used": 17386, "device": "/dev/mapper/foo-test1", "fstype": "xfs", "inode_available": 2621437, "inode_total": 2621440, "inode_used": 3, "mount": "/opt/test1", "options": "rw,seclabel,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota", "size_available": 5287010304, "size_total": 5358223360, "uuid": "3344b529-8ebf-4bf6-9fc4-d7f66bdafa5c"}], "storage_test_swap_expected_matches": "0"}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:22 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:31 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:39 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [command] ***************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Gather swap info] ******************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:52 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify swap status] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:57 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Unset facts] ************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:67 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null, "storage_test_swap_expected_matches": null, "storage_test_swaps": null, "storage_test_sys_node": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": "1", "storage_test_fstab_expected_mount_point_matches": "1", "storage_test_fstab_id_matches": ["/dev/mapper/foo-test1 "], "storage_test_fstab_mount_point_matches": [" /opt/test1 "]}, "changed": false} TASK [Verify that the device identifier appears in /etc/fstab] ***************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:17 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": null, "storage_test_fstab_expected_mount_point_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [Verify fs type] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify fs label] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [See whether the device node is present] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "stat": {"atime": 1604146125.4431186, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "ctime": 1604146125.4431186, "dev": 5, "device_type": 64769, "executable": false, "exists": true, "gid": 6, "gr_name": "disk", "inode": 74753, "isblk": true, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mimetype": "inode/symlink", "mode": "0660", "mtime": 1604146125.4431186, "nlink": 1, "path": "/dev/mapper/foo-test1", "pw_name": "root", "readable": true, "rgrp": true, "roth": false, "rusr": true, "size": 0, "uid": 0, "version": null, "wgrp": true, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}} TASK [Verify the presence/absence of the device node] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "lvm"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:28 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:33 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Stat the LUKS device, if encrypted] ************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:3 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Collect LUKS info for this volume] *************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:10 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the presence/absence of the LUKS device node] ********************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:16 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify that the raw device is the same as the device if not encrypted] *** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:25 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about the LUKS volume if encrypted] **************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the LUKS volume's device type if encrypted] *********************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS version] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:42 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS key size] ***************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS cipher] ******************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:54 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:60 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": [], "_storage_test_expected_crypttab_entries": "0", "_storage_test_expected_crypttab_key_file": "-"}, "changed": false} TASK [Check for /etc/crypttab entry] ******************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:65 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Validate the format of the crypttab entry] ******************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:70 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check backing device of crypttab entry] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:76 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check key file of crypttab entry] **************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:82 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:88 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null, "_storage_test_expected_crypttab_entries": null, "_storage_test_expected_crypttab_key_file": null}, "changed": false} TASK [get information about RAID] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:7 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:13 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:17 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID active devices count] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:25 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID spare devices count] ****************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID metadata version] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [parse the actual size of the volume] ************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:3 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"bytes": 5368709120, "changed": false, "lvm": "5g", "parted": "5GiB", "size": "5 GiB"} TASK [parse the requested size of the volume] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:9 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"bytes": 5368709120, "changed": false, "lvm": "5g", "parted": "5GiB", "size": "5 GiB"} TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:15 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_actual_size": { "bytes": 5368709120, "changed": false, "failed": false, "lvm": "5g", "parted": "5GiB", "size": "5 GiB" } } TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_requested_size": { "bytes": 5368709120, "changed": false, "failed": false, "lvm": "5g", "parted": "5GiB", "size": "5 GiB" } } TASK [assert] ****************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:21 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:16 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": false, "_storage_volume_tests": ["mount", "fstab", "fs", "device", "encryption", "md", "size"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:10 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Get expected mount device based on device type] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/foo-test2"}, "changed": false} TASK [Set some facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [], "storage_test_mount_expected_match_count": "0", "storage_test_mount_point_matches": [], "storage_test_swap_expected_matches": "0"}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:22 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:31 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:39 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [command] ***************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Gather swap info] ******************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:52 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify swap status] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:57 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Unset facts] ************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:67 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null, "storage_test_swap_expected_matches": null, "storage_test_swaps": null, "storage_test_sys_node": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": "0", "storage_test_fstab_expected_mount_point_matches": "0", "storage_test_fstab_id_matches": [], "storage_test_fstab_mount_point_matches": []}, "changed": false} TASK [Verify that the device identifier appears in /etc/fstab] ***************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:10 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:17 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": null, "storage_test_fstab_expected_mount_point_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [Verify fs type] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:4 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify fs label] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:10 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [See whether the device node is present] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "stat": {"exists": false}} TASK [Verify the presence/absence of the device node] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:18 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "lvm"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:28 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:33 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Stat the LUKS device, if encrypted] ************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:3 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Collect LUKS info for this volume] *************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:10 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the presence/absence of the LUKS device node] ********************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:16 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify that the raw device is the same as the device if not encrypted] *** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:25 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Make sure we got info about the LUKS volume if encrypted] **************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the LUKS volume's device type if encrypted] *********************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS version] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:42 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS key size] ***************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS cipher] ******************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:54 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:60 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": [], "_storage_test_expected_crypttab_entries": "0", "_storage_test_expected_crypttab_key_file": "-"}, "changed": false} TASK [Check for /etc/crypttab entry] ******************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:65 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Validate the format of the crypttab entry] ******************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:70 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check backing device of crypttab entry] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:76 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check key file of crypttab entry] **************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:82 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:88 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null, "_storage_test_expected_crypttab_entries": null, "_storage_test_expected_crypttab_key_file": null}, "changed": false} TASK [get information about RAID] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:7 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:13 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:17 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID active devices count] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:25 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID spare devices count] ****************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID metadata version] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [parse the actual size of the volume] ************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:3 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [parse the requested size of the volume] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:9 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:15 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_actual_size": { "changed": false, "skip_reason": "Conditional result was False", "skipped": true } } TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_requested_size": { "changed": false, "skip_reason": "Conditional result was False", "skipped": true } } TASK [assert] ****************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Clean up facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:16 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:39 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_pool": null}, "changed": false} TASK [Verify the volumes with no pool were correctly managed] ****************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:46 TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:56 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_blkinfo": null, "storage_test_crypttab": null, "storage_test_fstab": null, "storage_test_volume": null}, "changed": false} TASK [Repeat the previous invocation to verify idempotence] ******************** task path: /tmp/tmp7ksfxpzz/tests/tests_create_lvm_pool_then_remove.yml:57 TASK [linux-system-roles.storage : Set version specific variables] ************* task path: /tmp/tmp7ksfxpzz/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-crypto", "libblockdev-dm", "libblockdev-lvm", "libblockdev-mdraid", "libblockdev-swap"]}, "ansible_included_var_files": ["/tmp/tmp7ksfxpzz/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.storage : define an empty list of pools to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : define an empty list of volumes to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : include the appropriate provider tasks] ***** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:22 included: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [linux-system-roles.storage : get a list of rpm packages installed on host machine] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : make sure blivet is available] ************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: python3-blivet", "Installed: libblockdev-crypto", "Installed: libblockdev-dm", "Installed: libblockdev-lvm", "Installed: libblockdev-mdraid", "Installed: libblockdev-swap"]} TASK [linux-system-roles.storage : initialize internal facts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools": [], "_storage_vol_defaults": [], "_storage_vol_pools": [], "_storage_vols_no_defaults": [], "_storage_vols_no_defaults_by_pool": {}, "_storage_vols_w_defaults": [], "_storage_volumes": []}, "changed": false} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [1/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:28 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'disks': [u'vda'], u'name': u'foo', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'5g'}, {u'state': u'absent', u'mount_point': u'/opt/test2', u'name': u'test2', u'size': u'4g'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "5g"}, {"mount_point": "/opt/test2", "name": "test2", "size": "4g", "state": "absent"}]}]}, "ansible_loop_var": "pool", "changed": false, "pool": {"disks": ["vda"], "name": "foo", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "5g"}, {"mount_point": "/opt/test2", "name": "test2", "size": "4g", "state": "absent"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [2/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:36 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'5g'}, {u'state': u'absent', u'mount_point': u'/opt/test2', u'name': u'test2', u'size': u'4g'}], u'type': u'lvm', u'encryption_key_size': None}, {u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'5g'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}], "_storage_vol_pools": ["foo"], "_storage_vols_no_defaults": [{"mount_point": "/opt/test1", "name": "test1", "size": "5g"}]}, "ansible_loop_var": "item", "changed": false, "item": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "5g"}, {"mount_point": "/opt/test2", "name": "test2", "size": "4g", "state": "absent"}]}, {"mount_point": "/opt/test1", "name": "test1", "size": "5g"}]} ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'5g'}, {u'state': u'absent', u'mount_point': u'/opt/test2', u'name': u'test2', u'size': u'4g'}], u'type': u'lvm', u'encryption_key_size': None}, {u'state': u'absent', u'mount_point': u'/opt/test2', u'name': u'test2', u'size': u'4g'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}], "_storage_vol_pools": ["foo", "foo"], "_storage_vols_no_defaults": [{"mount_point": "/opt/test1", "name": "test1", "size": "5g"}, {"mount_point": "/opt/test2", "name": "test2", "size": "4g", "state": "absent"}]}, "ansible_loop_var": "item", "changed": false, "item": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "5g"}, {"mount_point": "/opt/test2", "name": "test2", "size": "4g", "state": "absent"}]}, {"mount_point": "/opt/test2", "name": "test2", "size": "4g", "state": "absent"}]} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [3/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:44 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'5g'}, {u'raid_metadata_version': None, u'encryption_key_size': None, u'encryption_key': None, u'fs_label': u'', u'raid_chunk_size': None, u'mount_device_identifier': u'uuid', u'fs_type': u'xfs', u'mount_options': u'defaults', u'encryption_luks_version': None, u'raid_spare_count': None, u'size': 0, u'mount_point': u'', u'encryption_password': None, u'encryption': False, u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'mount_check': 0, u'mount_passno': 0, u'fs_overwrite_existing': True, u'type': u'lvm', u'encryption_cipher': None, u'fs_create_options': u''}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "5g", "state": "present", "type": "lvm"}]}, "ansible_index_var": "idx", "ansible_loop_var": "item", "changed": false, "idx": 0, "item": [{"mount_point": "/opt/test1", "name": "test1", "size": "5g"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}]} ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'state': u'absent', u'mount_point': u'/opt/test2', u'name': u'test2', u'size': u'4g'}, {u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'fs_label': u'', u'raid_level': None, u'mount_device_identifier': u'uuid', u'fs_type': u'xfs', u'mount_options': u'defaults', u'encryption_luks_version': None, u'raid_spare_count': None, u'size': 0, u'mount_point': u'', u'encryption_password': None, u'encryption': False, u'raid_chunk_size': None, u'raid_device_count': None, u'state': u'present', u'mount_check': 0, u'mount_passno': 0, u'fs_overwrite_existing': True, u'type': u'lvm', u'encryption_key_size': None, u'fs_create_options': u''}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "5g", "state": "present", "type": "lvm"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "test2", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "absent", "type": "lvm"}]}, "ansible_index_var": "idx", "ansible_loop_var": "item", "changed": false, "idx": 1, "item": [{"mount_point": "/opt/test2", "name": "test2", "size": "4g", "state": "absent"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}]} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [4/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:52 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'5g'}, {u'state': u'absent', u'mount_point': u'/opt/test2', u'name': u'test2', u'size': u'4g'}], u'type': u'lvm', u'encryption_key_size': None}) => {"ansible_facts": {"_storage_vols_no_defaults_by_pool": {"foo": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "5g", "state": "present", "type": "lvm"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "test2", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "absent", "type": "lvm"}]}}, "ansible_loop_var": "item", "changed": false, "item": {"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "5g"}, {"mount_point": "/opt/test2", "name": "test2", "size": "4g", "state": "absent"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [5/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:61 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'5g'}, {u'state': u'absent', u'mount_point': u'/opt/test2', u'name': u'test2', u'size': u'4g'}], u'type': u'lvm', u'encryption_key_size': None}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "5g", "state": "present", "type": "lvm"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "test2", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "absent", "type": "lvm"}]}]}, "ansible_index_var": "idx", "ansible_loop_var": "pool", "changed": false, "idx": 0, "pool": {"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "5g"}, {"mount_point": "/opt/test2", "name": "test2", "size": "4g", "state": "absent"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [6/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:72 TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [ { "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "5g", "state": "present", "type": "lvm" }, { "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "test2", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "absent", "type": "lvm" } ] } ] } TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes": [] } TASK [linux-system-roles.storage : get required packages] ********************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": ["lvm2", "xfsprogs"], "pools": [], "volumes": []} TASK [linux-system-roles.storage : make sure required packages are installed] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: lvm2", "Installed: xfsprogs"]} TASK [linux-system-roles.storage : manage the pools and volumes to match the specified state] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:104 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": ["/dev/sda1", "/dev/sr0", "/dev/mapper/foo-test1", "/dev/vdb", "/dev/vdc"], "mounts": [{"dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "/dev/mapper/foo-test1", "state": "mounted"}], "packages": ["e2fsprogs", "xfsprogs", "lvm2"], "pools": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"_device": "/dev/mapper/foo-test1", "_kernel_device": "/dev/dm-1", "_mount_id": "/dev/mapper/foo-test1", "_raw_device": "/dev/mapper/foo-test1", "_raw_kernel_device": "/dev/dm-1", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "5g", "state": "present", "type": "lvm"}, {"_device": "", "_mount_id": "", "_raw_device": "", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "test2", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "absent", "type": "lvm"}]}], "volumes": []} TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:114 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "blivet_output": { "actions": [], "changed": false, "crypts": [], "failed": false, "leaves": [ "/dev/sda1", "/dev/sr0", "/dev/mapper/foo-test1", "/dev/vdb", "/dev/vdc" ], "mounts": [ { "dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "/dev/mapper/foo-test1", "state": "mounted" } ], "packages": [ "e2fsprogs", "xfsprogs", "lvm2" ], "pools": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [ { "_device": "/dev/mapper/foo-test1", "_kernel_device": "/dev/dm-1", "_mount_id": "/dev/mapper/foo-test1", "_raw_device": "/dev/mapper/foo-test1", "_raw_kernel_device": "/dev/dm-1", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "5g", "state": "present", "type": "lvm" }, { "_device": "", "_mount_id": "", "_raw_device": "", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "test2", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "absent", "type": "lvm" } ] } ], "volumes": [] } } TASK [linux-system-roles.storage : set the list of pools for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:117 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"_device": "/dev/mapper/foo-test1", "_kernel_device": "/dev/dm-1", "_mount_id": "/dev/mapper/foo-test1", "_raw_device": "/dev/mapper/foo-test1", "_raw_kernel_device": "/dev/dm-1", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "5g", "state": "present", "type": "lvm"}, {"_device": "", "_mount_id": "", "_raw_device": "", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "test2", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "absent", "type": "lvm"}]}]}, "changed": false} TASK [linux-system-roles.storage : set the list of volumes for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:121 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : remove obsolete mounts] ********************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:137 TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:148 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [linux-system-roles.storage : set up new/current mounts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:153 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'src': u'/dev/mapper/foo-test1', u'state': u'mounted', u'dump': 0, u'path': u'/opt/test1', u'passno': 0, u'opts': u'defaults', u'fstype': u'xfs'}) => {"ansible_loop_var": "mount_info", "changed": false, "dump": "0", "fstab": "/etc/fstab", "fstype": "xfs", "mount_info": {"dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "/dev/mapper/foo-test1", "state": "mounted"}, "name": "/opt/test1", "opts": "defaults", "passno": "0", "src": "/dev/mapper/foo-test1"} TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:164 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [linux-system-roles.storage : Manage /etc/crypttab to account for changes we just made] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:172 TASK [linux-system-roles.storage : Update facts] ******************************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:187 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_create_lvm_pool_then_remove.yml:73 included: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Print out pool information] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:1 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools_list": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [ { "_device": "/dev/mapper/foo-test1", "_kernel_device": "/dev/dm-1", "_mount_id": "/dev/mapper/foo-test1", "_raw_device": "/dev/mapper/foo-test1", "_raw_kernel_device": "/dev/dm-1", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "5g", "state": "present", "type": "lvm" }, { "_device": "", "_mount_id": "", "_raw_device": "", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "test2", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "absent", "type": "lvm" } ] } ] } TASK [Print out volume information] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:6 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {} TASK [Collect info about the volumes.] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "info": {"/dev/mapper/foo-test1": {"fstype": "xfs", "label": "", "name": "/dev/mapper/foo-test1", "size": "5G", "type": "lvm", "uuid": "3344b529-8ebf-4bf6-9fc4-d7f66bdafa5c"}, "/dev/sda": {"fstype": "", "label": "", "name": "/dev/sda", "size": "4G", "type": "disk", "uuid": ""}, "/dev/sda1": {"fstype": "ext4", "label": "", "name": "/dev/sda1", "size": "4G", "type": "partition", "uuid": "03e702b4-e165-4a39-88c9-9e210cd00434"}, "/dev/sr0": {"fstype": "iso9660", "label": "cidata", "name": "/dev/sr0", "size": "364K", "type": "rom", "uuid": "2020-10-31-12-07-20-00"}, "/dev/vda": {"fstype": "LVM2_member", "label": "", "name": "/dev/vda", "size": "10G", "type": "disk", "uuid": "m723Gb-NFXx-elMH-q3cQ-dbvl-B1Lm-1tTVWR"}, "/dev/vdb": {"fstype": "", "label": "", "name": "/dev/vdb", "size": "10G", "type": "disk", "uuid": ""}, "/dev/vdc": {"fstype": "", "label": "", "name": "/dev/vdc", "size": "10G", "type": "disk", "uuid": ""}}} TASK [Read the /etc/fstab file for volume existence] *************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:19 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/fstab"], "delta": "0:00:00.002471", "end": "2020-10-31 12:09:35.777020", "rc": 0, "start": "2020-10-31 12:09:35.774549", "stderr": "", "stderr_lines": [], "stdout": "\n#\n# /etc/fstab\n# Created by anaconda on Sat Oct 31 08:17:58 2020\n#\n# Accessible filesystems, by reference, are maintained under '/dev/disk/'.\n# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.\n#\n# After editing this file, run 'systemctl daemon-reload' to update systemd\n# units generated from this file.\n#\nUUID=03e702b4-e165-4a39-88c9-9e210cd00434 / ext4 defaults 1 1\n/dev/mapper/foo-test1 /opt/test1 xfs defaults 0 0", "stdout_lines": ["", "#", "# /etc/fstab", "# Created by anaconda on Sat Oct 31 08:17:58 2020", "#", "# Accessible filesystems, by reference, are maintained under '/dev/disk/'.", "# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.", "#", "# After editing this file, run 'systemctl daemon-reload' to update systemd", "# units generated from this file.", "#", "UUID=03e702b4-e165-4a39-88c9-9e210cd00434 / ext4 defaults 1 1", "/dev/mapper/foo-test1 /opt/test1 xfs defaults 0 0"]} TASK [Read the /etc/crypttab file] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/crypttab"], "delta": "0:00:00.002705", "end": "2020-10-31 12:09:36.108279", "rc": 0, "start": "2020-10-31 12:09:36.105574", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Verify the volumes listed in storage_pools were correctly managed] ******* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:32 [WARNING]: The loop variable 'storage_test_pool' is already in use. You should set the `loop_var` value in the `loop_control` option for the task to something else to avoid variable collisions and unexpected behavior. included: /tmp/tmp7ksfxpzz/tests/test-verify-pool.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool.yml:5 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pool_tests": ["members", "volumes"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool.yml:17 included: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-pool-volumes.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:1 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_count": "1", "_storage_test_pool_pvs": [], "_storage_test_pool_pvs_lvm": ["/dev/vda"]}, "changed": false} TASK [Get the canonical device path for each member device] ******************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:7 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=/dev/vda) => {"ansible_loop_var": "pv", "changed": false, "device": "/dev/vda", "pv": "/dev/vda"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:16 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=/dev/vda) => {"ansible_facts": {"_storage_test_pool_pvs": ["/dev/vda"]}, "ansible_index_var": "idx", "ansible_loop_var": "item", "changed": false, "idx": 0, "item": "/dev/vda"} TASK [Verify PV count] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:23 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:29 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_type": "disk"}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:33 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_type": "disk"}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check the type of each PV] *********************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:41 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=/dev/vda) => { "ansible_loop_var": "pv", "changed": false, "msg": "All assertions passed", "pv": "/dev/vda" } TASK [Check raid] ************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:50 included: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [get information about RAID] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:6 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:12 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:16 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:20 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID active devices count] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:24 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID spare devices count] ****************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:30 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID metadata version] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:36 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:44 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_md_active_devices_re": null, "storage_test_md_metadata_version_re": null, "storage_test_md_spare_devices_re": null}, "changed": false} TASK [Check member encryption] ************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:53 included: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_crypttab_entries": "0", "_storage_test_expected_crypttab_key_file": "-"}, "changed": false} TASK [Validate pool member LUKS settings] ************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:8 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=/dev/vda) => {"_storage_test_pool_member_path": "/dev/vda", "ansible_loop_var": "_storage_test_pool_member_path", "changed": false, "skip_reason": "Conditional result was False"} TASK [Validate pool member crypttab entries] *********************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:15 included: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:1 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": []}, "changed": false} TASK [Check for /etc/crypttab entry] ******************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Validate the format of the crypttab entry] ******************************* task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:9 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check backing device of crypttab entry] ********************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:15 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check key file of crypttab entry] **************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:27 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:22 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null, "_storage_test_crypttab_key_file": null}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:56 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_count": null, "_storage_test_expected_pv_type": null, "_storage_test_pool_pvs": [], "_storage_test_pool_pvs_lvm": []}, "changed": false} TASK [verify the volumes] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-volumes.yml:3 [WARNING]: The loop variable 'storage_test_volume' is already in use. You should set the `loop_var` value in the `loop_control` option for the task to something else to avoid variable collisions and unexpected behavior. included: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": true, "_storage_volume_tests": ["mount", "fstab", "fs", "device", "encryption", "md", "size"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:10 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Get expected mount device based on device type] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/foo-test1"}, "changed": false} TASK [Set some facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [{"block_available": 1290774, "block_size": 4096, "block_total": 1308160, "block_used": 17386, "device": "/dev/mapper/foo-test1", "fstype": "xfs", "inode_available": 2621437, "inode_total": 2621440, "inode_used": 3, "mount": "/opt/test1", "options": "rw,seclabel,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota", "size_available": 5287010304, "size_total": 5358223360, "uuid": "3344b529-8ebf-4bf6-9fc4-d7f66bdafa5c"}], "storage_test_mount_expected_match_count": "1", "storage_test_mount_point_matches": [{"block_available": 1290774, "block_size": 4096, "block_total": 1308160, "block_used": 17386, "device": "/dev/mapper/foo-test1", "fstype": "xfs", "inode_available": 2621437, "inode_total": 2621440, "inode_used": 3, "mount": "/opt/test1", "options": "rw,seclabel,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota", "size_available": 5287010304, "size_total": 5358223360, "uuid": "3344b529-8ebf-4bf6-9fc4-d7f66bdafa5c"}], "storage_test_swap_expected_matches": "0"}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:22 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:31 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:39 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [command] ***************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Gather swap info] ******************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:52 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify swap status] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:57 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Unset facts] ************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:67 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null, "storage_test_swap_expected_matches": null, "storage_test_swaps": null, "storage_test_sys_node": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": "1", "storage_test_fstab_expected_mount_point_matches": "1", "storage_test_fstab_id_matches": ["/dev/mapper/foo-test1 "], "storage_test_fstab_mount_point_matches": [" /opt/test1 "]}, "changed": false} TASK [Verify that the device identifier appears in /etc/fstab] ***************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:17 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": null, "storage_test_fstab_expected_mount_point_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [Verify fs type] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify fs label] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [See whether the device node is present] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "stat": {"atime": 1604146125.4431186, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "ctime": 1604146125.4431186, "dev": 5, "device_type": 64769, "executable": false, "exists": true, "gid": 6, "gr_name": "disk", "inode": 74753, "isblk": true, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mimetype": "inode/symlink", "mode": "0660", "mtime": 1604146125.4431186, "nlink": 1, "path": "/dev/mapper/foo-test1", "pw_name": "root", "readable": true, "rgrp": true, "roth": false, "rusr": true, "size": 0, "uid": 0, "version": null, "wgrp": true, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}} TASK [Verify the presence/absence of the device node] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "lvm"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:28 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:33 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Stat the LUKS device, if encrypted] ************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:3 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Collect LUKS info for this volume] *************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:10 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the presence/absence of the LUKS device node] ********************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:16 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify that the raw device is the same as the device if not encrypted] *** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:25 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about the LUKS volume if encrypted] **************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the LUKS volume's device type if encrypted] *********************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS version] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:42 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS key size] ***************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS cipher] ******************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:54 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:60 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": [], "_storage_test_expected_crypttab_entries": "0", "_storage_test_expected_crypttab_key_file": "-"}, "changed": false} TASK [Check for /etc/crypttab entry] ******************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:65 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Validate the format of the crypttab entry] ******************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:70 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check backing device of crypttab entry] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:76 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check key file of crypttab entry] **************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:82 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:88 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null, "_storage_test_expected_crypttab_entries": null, "_storage_test_expected_crypttab_key_file": null}, "changed": false} TASK [get information about RAID] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:7 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:13 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:17 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID active devices count] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:25 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID spare devices count] ****************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID metadata version] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [parse the actual size of the volume] ************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:3 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"bytes": 5368709120, "changed": false, "lvm": "5g", "parted": "5GiB", "size": "5 GiB"} TASK [parse the requested size of the volume] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:9 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"bytes": 5368709120, "changed": false, "lvm": "5g", "parted": "5GiB", "size": "5 GiB"} TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:15 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_actual_size": { "bytes": 5368709120, "changed": false, "failed": false, "lvm": "5g", "parted": "5GiB", "size": "5 GiB" } } TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_requested_size": { "bytes": 5368709120, "changed": false, "failed": false, "lvm": "5g", "parted": "5GiB", "size": "5 GiB" } } TASK [assert] ****************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:21 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:16 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": false, "_storage_volume_tests": ["mount", "fstab", "fs", "device", "encryption", "md", "size"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:10 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Get expected mount device based on device type] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": ""}, "changed": false} TASK [Set some facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [], "storage_test_mount_expected_match_count": "0", "storage_test_mount_point_matches": [], "storage_test_swap_expected_matches": "0"}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:22 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:31 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:39 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [command] ***************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Gather swap info] ******************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:52 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify swap status] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:57 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Unset facts] ************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:67 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null, "storage_test_swap_expected_matches": null, "storage_test_swaps": null, "storage_test_sys_node": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": "0", "storage_test_fstab_expected_mount_point_matches": "0", "storage_test_fstab_id_matches": [], "storage_test_fstab_mount_point_matches": []}, "changed": false} TASK [Verify that the device identifier appears in /etc/fstab] ***************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:10 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:17 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": null, "storage_test_fstab_expected_mount_point_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [Verify fs type] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:4 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify fs label] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:10 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [See whether the device node is present] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "stat": {"exists": false}} TASK [Verify the presence/absence of the device node] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:18 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "lvm"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:28 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:33 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Stat the LUKS device, if encrypted] ************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:3 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Collect LUKS info for this volume] *************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:10 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the presence/absence of the LUKS device node] ********************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:16 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify that the raw device is the same as the device if not encrypted] *** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:25 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Make sure we got info about the LUKS volume if encrypted] **************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the LUKS volume's device type if encrypted] *********************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS version] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:42 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS key size] ***************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS cipher] ******************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:54 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:60 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": [], "_storage_test_expected_crypttab_entries": "0", "_storage_test_expected_crypttab_key_file": "-"}, "changed": false} TASK [Check for /etc/crypttab entry] ******************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:65 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Validate the format of the crypttab entry] ******************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:70 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check backing device of crypttab entry] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:76 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check key file of crypttab entry] **************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:82 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:88 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null, "_storage_test_expected_crypttab_entries": null, "_storage_test_expected_crypttab_key_file": null}, "changed": false} TASK [get information about RAID] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:7 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:13 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:17 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID active devices count] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:25 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID spare devices count] ****************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID metadata version] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [parse the actual size of the volume] ************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:3 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [parse the requested size of the volume] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:9 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:15 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_actual_size": { "changed": false, "skip_reason": "Conditional result was False", "skipped": true } } TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_requested_size": { "changed": false, "skip_reason": "Conditional result was False", "skipped": true } } TASK [assert] ****************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Clean up facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:16 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:39 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_pool": null}, "changed": false} TASK [Verify the volumes with no pool were correctly managed] ****************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:46 TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:56 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_blkinfo": null, "storage_test_crypttab": null, "storage_test_fstab": null, "storage_test_volume": null}, "changed": false} TASK [Remove both of the LVM logical volumes in 'foo' created above] *********** task path: /tmp/tmp7ksfxpzz/tests/tests_create_lvm_pool_then_remove.yml:75 TASK [linux-system-roles.storage : Set version specific variables] ************* task path: /tmp/tmp7ksfxpzz/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-crypto", "libblockdev-dm", "libblockdev-lvm", "libblockdev-mdraid", "libblockdev-swap"]}, "ansible_included_var_files": ["/tmp/tmp7ksfxpzz/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.storage : define an empty list of pools to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : define an empty list of volumes to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : include the appropriate provider tasks] ***** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:22 included: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [linux-system-roles.storage : get a list of rpm packages installed on host machine] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : make sure blivet is available] ************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: python3-blivet", "Installed: libblockdev-crypto", "Installed: libblockdev-dm", "Installed: libblockdev-lvm", "Installed: libblockdev-mdraid", "Installed: libblockdev-swap"]} TASK [linux-system-roles.storage : initialize internal facts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools": [], "_storage_vol_defaults": [], "_storage_vol_pools": [], "_storage_vols_no_defaults": [], "_storage_vols_no_defaults_by_pool": {}, "_storage_vols_w_defaults": [], "_storage_volumes": []}, "changed": false} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [1/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:28 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'state': u'absent', u'disks': [u'vda'], u'name': u'foo', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'5g'}, {u'mount_point': u'/opt/test2', u'name': u'test2', u'size': u'4g'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "absent", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "5g"}, {"mount_point": "/opt/test2", "name": "test2", "size": "4g"}]}]}, "ansible_loop_var": "pool", "changed": false, "pool": {"disks": ["vda"], "name": "foo", "state": "absent", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "5g"}, {"mount_point": "/opt/test2", "name": "test2", "size": "4g"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [2/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:36 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'absent', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'5g'}, {u'mount_point': u'/opt/test2', u'name': u'test2', u'size': u'4g'}], u'type': u'lvm', u'encryption_key_size': None}, {u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'5g'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}], "_storage_vol_pools": ["foo"], "_storage_vols_no_defaults": [{"mount_point": "/opt/test1", "name": "test1", "size": "5g"}]}, "ansible_loop_var": "item", "changed": false, "item": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "absent", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "5g"}, {"mount_point": "/opt/test2", "name": "test2", "size": "4g"}]}, {"mount_point": "/opt/test1", "name": "test1", "size": "5g"}]} ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'absent', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'5g'}, {u'mount_point': u'/opt/test2', u'name': u'test2', u'size': u'4g'}], u'type': u'lvm', u'encryption_key_size': None}, {u'mount_point': u'/opt/test2', u'name': u'test2', u'size': u'4g'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}], "_storage_vol_pools": ["foo", "foo"], "_storage_vols_no_defaults": [{"mount_point": "/opt/test1", "name": "test1", "size": "5g"}, {"mount_point": "/opt/test2", "name": "test2", "size": "4g"}]}, "ansible_loop_var": "item", "changed": false, "item": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "absent", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "5g"}, {"mount_point": "/opt/test2", "name": "test2", "size": "4g"}]}, {"mount_point": "/opt/test2", "name": "test2", "size": "4g"}]} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [3/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:44 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'5g'}, {u'raid_metadata_version': None, u'encryption_key_size': None, u'encryption_key': None, u'fs_label': u'', u'raid_chunk_size': None, u'mount_device_identifier': u'uuid', u'fs_type': u'xfs', u'mount_options': u'defaults', u'encryption_luks_version': None, u'raid_spare_count': None, u'size': 0, u'mount_point': u'', u'encryption_password': None, u'encryption': False, u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'mount_check': 0, u'mount_passno': 0, u'fs_overwrite_existing': True, u'type': u'lvm', u'encryption_cipher': None, u'fs_create_options': u''}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "5g", "state": "present", "type": "lvm"}]}, "ansible_index_var": "idx", "ansible_loop_var": "item", "changed": false, "idx": 0, "item": [{"mount_point": "/opt/test1", "name": "test1", "size": "5g"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}]} ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'mount_point': u'/opt/test2', u'name': u'test2', u'size': u'4g'}, {u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'fs_label': u'', u'raid_level': None, u'mount_device_identifier': u'uuid', u'fs_type': u'xfs', u'mount_options': u'defaults', u'encryption_luks_version': None, u'raid_spare_count': None, u'size': 0, u'mount_point': u'', u'encryption_password': None, u'encryption': False, u'raid_chunk_size': None, u'raid_device_count': None, u'state': u'present', u'mount_check': 0, u'mount_passno': 0, u'fs_overwrite_existing': True, u'type': u'lvm', u'encryption_key_size': None, u'fs_create_options': u''}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "5g", "state": "present", "type": "lvm"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "test2", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm"}]}, "ansible_index_var": "idx", "ansible_loop_var": "item", "changed": false, "idx": 1, "item": [{"mount_point": "/opt/test2", "name": "test2", "size": "4g"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}]} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [4/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:52 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'absent', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'5g'}, {u'mount_point': u'/opt/test2', u'name': u'test2', u'size': u'4g'}], u'type': u'lvm', u'encryption_key_size': None}) => {"ansible_facts": {"_storage_vols_no_defaults_by_pool": {"foo": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "5g", "state": "present", "type": "lvm"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "test2", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm"}]}}, "ansible_loop_var": "item", "changed": false, "item": {"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "absent", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "5g"}, {"mount_point": "/opt/test2", "name": "test2", "size": "4g"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [5/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:61 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'absent', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'5g'}, {u'mount_point': u'/opt/test2', u'name': u'test2', u'size': u'4g'}], u'type': u'lvm', u'encryption_key_size': None}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "absent", "type": "lvm", "volumes": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "5g", "state": "present", "type": "lvm"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "test2", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm"}]}]}, "ansible_index_var": "idx", "ansible_loop_var": "pool", "changed": false, "idx": 0, "pool": {"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "absent", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "5g"}, {"mount_point": "/opt/test2", "name": "test2", "size": "4g"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [6/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:72 TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "absent", "type": "lvm", "volumes": [ { "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "5g", "state": "present", "type": "lvm" }, { "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "test2", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm" } ] } ] } TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes": [] } TASK [linux-system-roles.storage : get required packages] ********************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": []} TASK [linux-system-roles.storage : make sure required packages are installed] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [linux-system-roles.storage : manage the pools and volumes to match the specified state] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:104 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [{"action": "destroy format", "device": "/dev/mapper/foo-test1", "fs_type": "xfs"}, {"action": "destroy device", "device": "/dev/mapper/foo-test1", "fs_type": null}, {"action": "destroy device", "device": "/dev/foo", "fs_type": null}, {"action": "destroy format", "device": "/dev/vda", "fs_type": "lvmpv"}], "changed": true, "crypts": [], "leaves": ["/dev/sda1", "/dev/sr0", "/dev/vda", "/dev/vdb", "/dev/vdc"], "mounts": [{"fstype": "xfs", "path": "/opt/test1", "src": "/dev/mapper/foo-test1", "state": "absent"}], "packages": ["e2fsprogs"], "pools": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "absent", "type": "lvm", "volumes": [{"_device": "/dev/mapper/foo-test1", "_mount_id": "/dev/mapper/foo-test1", "_raw_device": "/dev/mapper/foo-test1", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "5g", "state": "present", "type": "lvm"}, {"_device": "", "_mount_id": "", "_raw_device": "", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "test2", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm"}]}], "volumes": []} TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:114 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "blivet_output": { "actions": [ { "action": "destroy format", "device": "/dev/mapper/foo-test1", "fs_type": "xfs" }, { "action": "destroy device", "device": "/dev/mapper/foo-test1", "fs_type": null }, { "action": "destroy device", "device": "/dev/foo", "fs_type": null }, { "action": "destroy format", "device": "/dev/vda", "fs_type": "lvmpv" } ], "changed": true, "crypts": [], "failed": false, "leaves": [ "/dev/sda1", "/dev/sr0", "/dev/vda", "/dev/vdb", "/dev/vdc" ], "mounts": [ { "fstype": "xfs", "path": "/opt/test1", "src": "/dev/mapper/foo-test1", "state": "absent" } ], "packages": [ "e2fsprogs" ], "pools": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "absent", "type": "lvm", "volumes": [ { "_device": "/dev/mapper/foo-test1", "_mount_id": "/dev/mapper/foo-test1", "_raw_device": "/dev/mapper/foo-test1", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "5g", "state": "present", "type": "lvm" }, { "_device": "", "_mount_id": "", "_raw_device": "", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "test2", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm" } ] } ], "volumes": [] } } TASK [linux-system-roles.storage : set the list of pools for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:117 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "absent", "type": "lvm", "volumes": [{"_device": "/dev/mapper/foo-test1", "_mount_id": "/dev/mapper/foo-test1", "_raw_device": "/dev/mapper/foo-test1", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "5g", "state": "present", "type": "lvm"}, {"_device": "", "_mount_id": "", "_raw_device": "", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "test2", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm"}]}]}, "changed": false} TASK [linux-system-roles.storage : set the list of volumes for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:121 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : remove obsolete mounts] ********************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:137 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'src': u'/dev/mapper/foo-test1', u'state': u'absent', u'fstype': u'xfs', u'path': u'/opt/test1'}) => {"ansible_loop_var": "mount_info", "changed": true, "dump": "0", "fstab": "/etc/fstab", "fstype": "xfs", "mount_info": {"fstype": "xfs", "path": "/opt/test1", "src": "/dev/mapper/foo-test1", "state": "absent"}, "name": "/opt/test1", "opts": "defaults", "passno": "0", "src": "/dev/mapper/foo-test1"} TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:148 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [linux-system-roles.storage : set up new/current mounts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:153 TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:164 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [linux-system-roles.storage : Manage /etc/crypttab to account for changes we just made] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:172 TASK [linux-system-roles.storage : Update facts] ******************************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:187 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_create_lvm_pool_then_remove.yml:91 included: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Print out pool information] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:1 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools_list": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "absent", "type": "lvm", "volumes": [ { "_device": "/dev/mapper/foo-test1", "_mount_id": "/dev/mapper/foo-test1", "_raw_device": "/dev/mapper/foo-test1", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "5g", "state": "present", "type": "lvm" }, { "_device": "", "_mount_id": "", "_raw_device": "", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "test2", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm" } ] } ] } TASK [Print out volume information] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:6 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {} TASK [Collect info about the volumes.] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "info": {"/dev/sda": {"fstype": "", "label": "", "name": "/dev/sda", "size": "4G", "type": "disk", "uuid": ""}, "/dev/sda1": {"fstype": "ext4", "label": "", "name": "/dev/sda1", "size": "4G", "type": "partition", "uuid": "03e702b4-e165-4a39-88c9-9e210cd00434"}, "/dev/sr0": {"fstype": "iso9660", "label": "cidata", "name": "/dev/sr0", "size": "364K", "type": "rom", "uuid": "2020-10-31-12-07-20-00"}, "/dev/vda": {"fstype": "", "label": "", "name": "/dev/vda", "size": "10G", "type": "disk", "uuid": ""}, "/dev/vdb": {"fstype": "", "label": "", "name": "/dev/vdb", "size": "10G", "type": "disk", "uuid": ""}, "/dev/vdc": {"fstype": "", "label": "", "name": "/dev/vdc", "size": "10G", "type": "disk", "uuid": ""}}} TASK [Read the /etc/fstab file for volume existence] *************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:19 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/fstab"], "delta": "0:00:00.002629", "end": "2020-10-31 12:09:57.845048", "rc": 0, "start": "2020-10-31 12:09:57.842419", "stderr": "", "stderr_lines": [], "stdout": "\n#\n# /etc/fstab\n# Created by anaconda on Sat Oct 31 08:17:58 2020\n#\n# Accessible filesystems, by reference, are maintained under '/dev/disk/'.\n# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.\n#\n# After editing this file, run 'systemctl daemon-reload' to update systemd\n# units generated from this file.\n#\nUUID=03e702b4-e165-4a39-88c9-9e210cd00434 / ext4 defaults 1 1", "stdout_lines": ["", "#", "# /etc/fstab", "# Created by anaconda on Sat Oct 31 08:17:58 2020", "#", "# Accessible filesystems, by reference, are maintained under '/dev/disk/'.", "# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.", "#", "# After editing this file, run 'systemctl daemon-reload' to update systemd", "# units generated from this file.", "#", "UUID=03e702b4-e165-4a39-88c9-9e210cd00434 / ext4 defaults 1 1"]} TASK [Read the /etc/crypttab file] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/crypttab"], "delta": "0:00:00.002645", "end": "2020-10-31 12:09:58.189085", "rc": 0, "start": "2020-10-31 12:09:58.186440", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Verify the volumes listed in storage_pools were correctly managed] ******* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:32 [WARNING]: The loop variable 'storage_test_pool' is already in use. You should set the `loop_var` value in the `loop_control` option for the task to something else to avoid variable collisions and unexpected behavior. included: /tmp/tmp7ksfxpzz/tests/test-verify-pool.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool.yml:5 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pool_tests": ["members", "volumes"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool.yml:17 included: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-pool-volumes.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:1 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_count": "0", "_storage_test_pool_pvs": [], "_storage_test_pool_pvs_lvm": []}, "changed": false} TASK [Get the canonical device path for each member device] ******************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:7 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:16 TASK [Verify PV count] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:23 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:29 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_type": "disk"}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:33 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_type": "disk"}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check the type of each PV] *********************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:41 TASK [Check raid] ************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:50 included: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [get information about RAID] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:6 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:12 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:16 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:20 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID active devices count] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:24 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID spare devices count] ****************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:30 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID metadata version] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:36 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:44 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_md_active_devices_re": null, "storage_test_md_metadata_version_re": null, "storage_test_md_spare_devices_re": null}, "changed": false} TASK [Check member encryption] ************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:53 included: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_crypttab_entries": "0", "_storage_test_expected_crypttab_key_file": "-"}, "changed": false} TASK [Validate pool member LUKS settings] ************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:8 TASK [Validate pool member crypttab entries] *********************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:15 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:22 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null, "_storage_test_crypttab_key_file": null}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:56 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_count": null, "_storage_test_expected_pv_type": null, "_storage_test_pool_pvs": [], "_storage_test_pool_pvs_lvm": []}, "changed": false} TASK [verify the volumes] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-volumes.yml:3 [WARNING]: The loop variable 'storage_test_volume' is already in use. You should set the `loop_var` value in the `loop_control` option for the task to something else to avoid variable collisions and unexpected behavior. included: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": false, "_storage_volume_tests": ["mount", "fstab", "fs", "device", "encryption", "md", "size"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:10 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Get expected mount device based on device type] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/foo-test1"}, "changed": false} TASK [Set some facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [], "storage_test_mount_expected_match_count": "0", "storage_test_mount_point_matches": [], "storage_test_swap_expected_matches": "0"}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:22 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:31 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:39 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [command] ***************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Gather swap info] ******************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:52 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify swap status] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:57 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Unset facts] ************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:67 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null, "storage_test_swap_expected_matches": null, "storage_test_swaps": null, "storage_test_sys_node": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": "0", "storage_test_fstab_expected_mount_point_matches": "0", "storage_test_fstab_id_matches": [], "storage_test_fstab_mount_point_matches": []}, "changed": false} TASK [Verify that the device identifier appears in /etc/fstab] ***************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:10 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:17 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": null, "storage_test_fstab_expected_mount_point_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [Verify fs type] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:4 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify fs label] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:10 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [See whether the device node is present] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "stat": {"exists": false}} TASK [Verify the presence/absence of the device node] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:18 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "lvm"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:28 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:33 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Stat the LUKS device, if encrypted] ************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:3 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Collect LUKS info for this volume] *************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:10 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the presence/absence of the LUKS device node] ********************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:16 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify that the raw device is the same as the device if not encrypted] *** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:25 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Make sure we got info about the LUKS volume if encrypted] **************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the LUKS volume's device type if encrypted] *********************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS version] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:42 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS key size] ***************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS cipher] ******************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:54 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:60 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": [], "_storage_test_expected_crypttab_entries": "0", "_storage_test_expected_crypttab_key_file": "-"}, "changed": false} TASK [Check for /etc/crypttab entry] ******************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:65 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Validate the format of the crypttab entry] ******************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:70 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check backing device of crypttab entry] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:76 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check key file of crypttab entry] **************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:82 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:88 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null, "_storage_test_expected_crypttab_entries": null, "_storage_test_expected_crypttab_key_file": null}, "changed": false} TASK [get information about RAID] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:7 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:13 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:17 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID active devices count] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:25 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID spare devices count] ****************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID metadata version] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [parse the actual size of the volume] ************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:3 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [parse the requested size of the volume] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:9 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:15 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_actual_size": { "changed": false, "skip_reason": "Conditional result was False", "skipped": true } } TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_requested_size": { "changed": false, "skip_reason": "Conditional result was False", "skipped": true } } TASK [assert] ****************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Clean up facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:16 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": false, "_storage_volume_tests": ["mount", "fstab", "fs", "device", "encryption", "md", "size"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:10 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Get expected mount device based on device type] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": ""}, "changed": false} TASK [Set some facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [], "storage_test_mount_expected_match_count": "0", "storage_test_mount_point_matches": [], "storage_test_swap_expected_matches": "0"}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:22 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:31 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:39 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [command] ***************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Gather swap info] ******************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:52 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify swap status] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:57 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Unset facts] ************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:67 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null, "storage_test_swap_expected_matches": null, "storage_test_swaps": null, "storage_test_sys_node": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": "0", "storage_test_fstab_expected_mount_point_matches": "0", "storage_test_fstab_id_matches": [], "storage_test_fstab_mount_point_matches": []}, "changed": false} TASK [Verify that the device identifier appears in /etc/fstab] ***************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:10 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:17 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": null, "storage_test_fstab_expected_mount_point_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [Verify fs type] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:4 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify fs label] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:10 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [See whether the device node is present] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "stat": {"exists": false}} TASK [Verify the presence/absence of the device node] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:18 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "lvm"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:28 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:33 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Stat the LUKS device, if encrypted] ************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:3 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Collect LUKS info for this volume] *************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:10 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the presence/absence of the LUKS device node] ********************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:16 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify that the raw device is the same as the device if not encrypted] *** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:25 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Make sure we got info about the LUKS volume if encrypted] **************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the LUKS volume's device type if encrypted] *********************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS version] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:42 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS key size] ***************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS cipher] ******************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:54 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:60 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": [], "_storage_test_expected_crypttab_entries": "0", "_storage_test_expected_crypttab_key_file": "-"}, "changed": false} TASK [Check for /etc/crypttab entry] ******************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:65 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Validate the format of the crypttab entry] ******************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:70 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check backing device of crypttab entry] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:76 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check key file of crypttab entry] **************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:82 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:88 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null, "_storage_test_expected_crypttab_entries": null, "_storage_test_expected_crypttab_key_file": null}, "changed": false} TASK [get information about RAID] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:7 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:13 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:17 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID active devices count] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:25 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID spare devices count] ****************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID metadata version] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [parse the actual size of the volume] ************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:3 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [parse the requested size of the volume] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:9 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:15 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_actual_size": { "changed": false, "skip_reason": "Conditional result was False", "skipped": true } } TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_requested_size": { "changed": false, "skip_reason": "Conditional result was False", "skipped": true } } TASK [assert] ****************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Clean up facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:16 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:39 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_pool": null}, "changed": false} TASK [Verify the volumes with no pool were correctly managed] ****************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:46 TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:56 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_blkinfo": null, "storage_test_crypttab": null, "storage_test_fstab": null, "storage_test_volume": null}, "changed": false} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 : ok=463 changed=7 unreachable=0 failed=0 skipped=306 rescued=0 ignored=0 + cd /tmp/tmp7ksfxpzz/tests; TEST_SUBJECTS=/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_storage-178-e856157-fedora-31-87qzp9iq/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmp7ksfxpzz/_setup.yml /tmp/tmp7ksfxpzz/tests/tests_create_partition_volume_then_remove.yml ansible-playbook 2.8.16 config file = /etc/ansible/ansible.cfg configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python2.7/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 2.7.5 (default, Apr 2 2020, 13:16:51) [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)] Using /etc/ansible/ansible.cfg as config file PLAYBOOK: _setup.yml *********************************************************** 1 plays in /tmp/tmp7ksfxpzz/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/_setup.yml:5 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "groups": { "all": [ "/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2" ], "localhost": [ "/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2" ], "subjects": [ "/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmp7ksfxpzz/_setup.yml:6 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 : ok=1 changed=0 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 PLAYBOOK: tests_create_partition_volume_then_remove.yml ************************ 1 plays in /tmp/tmp7ksfxpzz/tests/tests_create_partition_volume_then_remove.yml PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/tests_create_partition_volume_then_remove.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] META: ran handlers TASK [include_role : linux-system-roles.storage] ******************************* task path: /tmp/tmp7ksfxpzz/tests/tests_create_partition_volume_then_remove.yml:9 TASK [linux-system-roles.storage : Set version specific variables] ************* task path: /tmp/tmp7ksfxpzz/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-crypto", "libblockdev-dm", "libblockdev-lvm", "libblockdev-mdraid", "libblockdev-swap"]}, "ansible_included_var_files": ["/tmp/tmp7ksfxpzz/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.storage : define an empty list of pools to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : define an empty list of volumes to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : include the appropriate provider tasks] ***** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:22 included: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [linux-system-roles.storage : get a list of rpm packages installed on host machine] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : make sure blivet is available] ************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:7 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: python3-blivet", "Installed: libblockdev-crypto", "Installed: libblockdev-dm", "Installed: libblockdev-lvm", "Installed: libblockdev-mdraid", "Installed: libblockdev-swap", "Installed: libblockdev-2.24-2.fc31.x86_64", "Installed: libblockdev-btrfs-2.24-2.fc31.x86_64", "Installed: btrfs-progs-5.7-4.fc31.x86_64", "Installed: libblockdev-crypto-2.24-2.fc31.x86_64", "Installed: ndctl-70.1-1.fc31.x86_64", "Installed: gdisk-1.0.5-1.fc31.x86_64", "Installed: ndctl-libs-70.1-1.fc31.x86_64", "Installed: libblockdev-dm-2.24-2.fc31.x86_64", "Installed: compat-readline5-5.2-34.fc31.x86_64", "Installed: dmraid-1.0.0.rc16-43.fc31.x86_64", "Installed: dmraid-events-1.0.0.rc16-43.fc31.x86_64", "Installed: libblockdev-fs-2.24-2.fc31.x86_64", "Installed: mdadm-4.1-5.fc31.x86_64", "Installed: lzo-2.08-16.fc31.x86_64", "Installed: libblockdev-kbd-2.24-2.fc31.x86_64", "Installed: nspr-4.29.0-1.fc31.x86_64", "Installed: libblockdev-loop-2.24-2.fc31.x86_64", "Installed: nss-3.57.0-1.fc31.x86_64", "Installed: libblockdev-lvm-2.24-2.fc31.x86_64", "Installed: lsof-4.93.2-2.fc31.x86_64", "Installed: lvm2-2.03.09-1.fc31.x86_64", "Installed: nss-softokn-3.57.0-1.fc31.x86_64", "Installed: libblockdev-mdraid-2.24-2.fc31.x86_64", "Installed: nss-softokn-freebl-3.57.0-1.fc31.x86_64", "Installed: lvm2-libs-2.03.09-1.fc31.x86_64", "Installed: python3-gobject-base-3.34.0-3.fc31.x86_64", "Installed: libblockdev-mpath-2.24-2.fc31.x86_64", "Installed: nss-sysinit-3.57.0-1.fc31.x86_64", "Installed: device-mapper-event-1.02.171-1.fc31.x86_64", "Installed: nss-util-3.57.0-1.fc31.x86_64", "Installed: libblockdev-nvdimm-2.24-2.fc31.x86_64", "Installed: gobject-introspection-1.62.0-1.fc31.x86_64", "Installed: device-mapper-event-libs-1.02.171-1.fc31.x86_64", "Installed: userspace-rcu-0.11.1-2.fc31.x86_64", "Installed: libblockdev-part-2.24-2.fc31.x86_64", "Installed: volume_key-libs-0.3.12-4.fc31.x86_64", "Installed: libblockdev-swap-2.24-2.fc31.x86_64", "Installed: libblockdev-utils-2.24-2.fc31.x86_64", "Installed: blivet-data-1:3.1.7-2.fc31.noarch", "Installed: device-mapper-multipath-0.8.0-3.fc31.x86_64", "Installed: device-mapper-multipath-libs-0.8.0-3.fc31.x86_64", "Installed: device-mapper-persistent-data-0.8.5-2.fc31.x86_64", "Installed: sgpio-1.2.0.10-24.fc31.x86_64", "Installed: bcache-tools-1.0.8-16.fc31.x86_64", "Installed: python3-blivet-1:3.1.7-2.fc31.noarch", "Installed: daxctl-libs-70.1-1.fc31.x86_64", "Installed: python3-blockdev-2.24-2.fc31.x86_64", "Installed: python3-pyudev-0.21.0-11.fc31.noarch", "Installed: python3-pyparted-1:3.11.2-2.fc31.x86_64", "Installed: libbytesize-2.3-1.fc31.x86_64", "Installed: libaio-0.3.111-6.fc31.x86_64", "Installed: python3-bytesize-2.3-1.fc31.x86_64"]} TASK [linux-system-roles.storage : initialize internal facts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools": [], "_storage_vol_defaults": [], "_storage_vol_pools": [], "_storage_vols_no_defaults": [], "_storage_vols_no_defaults_by_pool": {}, "_storage_vols_w_defaults": [], "_storage_volumes": []}, "changed": false} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [1/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:28 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [2/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:36 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [3/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:44 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [4/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:52 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [5/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:61 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [6/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:72 TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools": [] } TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes": [] } TASK [linux-system-roles.storage : get required packages] ********************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": []} TASK [linux-system-roles.storage : make sure required packages are installed] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [linux-system-roles.storage : manage the pools and volumes to match the specified state] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:104 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": []} TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:114 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "blivet_output": { "actions": [], "changed": false, "crypts": [], "failed": false, "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": [] } } TASK [linux-system-roles.storage : set the list of pools for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:117 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : set the list of volumes for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:121 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : remove obsolete mounts] ********************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:137 TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:148 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : set up new/current mounts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:153 TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:164 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : Manage /etc/crypttab to account for changes we just made] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:172 TASK [linux-system-roles.storage : Update facts] ******************************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:187 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_create_partition_volume_then_remove.yml:12 included: /tmp/tmp7ksfxpzz/tests/get_unused_disk.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Find unused disks in the system] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/get_unused_disk.yml:2 [WARNING]: The value 0 (type int) in a string field was converted to '0' (type string). If this does not look like what you expect, quote the entire value to ensure it does not change. ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "disks": ["vda"]} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/get_unused_disk.yml:8 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"unused_disks": ["vda"]}, "changed": false} TASK [Exit playbook when there's not enough unused disks in the system] ******** task path: /tmp/tmp7ksfxpzz/tests/get_unused_disk.yml:12 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Print unused disks] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/get_unused_disk.yml:17 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "unused_disks": [ "vda" ] } TASK [Create a partition device mounted on "/opt/test1"] *********************** task path: /tmp/tmp7ksfxpzz/tests/tests_create_partition_volume_then_remove.yml:16 TASK [linux-system-roles.storage : Set version specific variables] ************* task path: /tmp/tmp7ksfxpzz/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-crypto", "libblockdev-dm", "libblockdev-lvm", "libblockdev-mdraid", "libblockdev-swap"]}, "ansible_included_var_files": ["/tmp/tmp7ksfxpzz/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.storage : define an empty list of pools to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : define an empty list of volumes to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : include the appropriate provider tasks] ***** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:22 included: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [linux-system-roles.storage : get a list of rpm packages installed on host machine] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : make sure blivet is available] ************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: python3-blivet", "Installed: libblockdev-crypto", "Installed: libblockdev-dm", "Installed: libblockdev-lvm", "Installed: libblockdev-mdraid", "Installed: libblockdev-swap"]} TASK [linux-system-roles.storage : initialize internal facts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools": [], "_storage_vol_defaults": [], "_storage_vol_pools": [], "_storage_vols_no_defaults": [], "_storage_vols_no_defaults_by_pool": {}, "_storage_vols_w_defaults": [], "_storage_volumes": []}, "changed": false} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [1/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:28 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'disks': [u'vda'], u'type': u'partition', u'name': u'vda', u'volumes': [{u'mount_point': u'/opt/test1', u'type': u'partition', u'name': u'test1'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "vda", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "partition", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "type": "partition"}]}]}, "ansible_loop_var": "pool", "changed": false, "pool": {"disks": ["vda"], "name": "vda", "type": "partition", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "type": "partition"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [2/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:36 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'vda', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test1', u'type': u'partition', u'name': u'test1'}], u'type': u'partition', u'encryption_key_size': None}, {u'mount_point': u'/opt/test1', u'type': u'partition', u'name': u'test1'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}], "_storage_vol_pools": ["vda"], "_storage_vols_no_defaults": [{"mount_point": "/opt/test1", "name": "test1", "type": "partition"}]}, "ansible_loop_var": "item", "changed": false, "item": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "vda", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "partition", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "type": "partition"}]}, {"mount_point": "/opt/test1", "name": "test1", "type": "partition"}]} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [3/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:44 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'mount_point': u'/opt/test1', u'type': u'partition', u'name': u'test1'}, {u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'fs_label': u'', u'raid_level': None, u'mount_device_identifier': u'uuid', u'fs_type': u'xfs', u'mount_options': u'defaults', u'encryption_luks_version': None, u'raid_spare_count': None, u'size': 0, u'mount_point': u'', u'encryption_password': None, u'encryption': False, u'raid_chunk_size': None, u'raid_device_count': None, u'state': u'present', u'mount_check': 0, u'mount_passno': 0, u'fs_overwrite_existing': True, u'type': u'lvm', u'encryption_key_size': None, u'fs_create_options': u''}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "vda", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "partition"}]}, "ansible_index_var": "idx", "ansible_loop_var": "item", "changed": false, "idx": 0, "item": [{"mount_point": "/opt/test1", "name": "test1", "type": "partition"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}]} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [4/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:52 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'vda', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test1', u'type': u'partition', u'name': u'test1'}], u'type': u'partition', u'encryption_key_size': None}) => {"ansible_facts": {"_storage_vols_no_defaults_by_pool": {"vda": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "vda", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "partition"}]}}, "ansible_loop_var": "item", "changed": false, "item": {"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "vda", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "partition", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "type": "partition"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [5/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:61 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'vda', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test1', u'type': u'partition', u'name': u'test1'}], u'type': u'partition', u'encryption_key_size': None}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "vda", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "partition", "volumes": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "vda", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "partition"}]}]}, "ansible_index_var": "idx", "ansible_loop_var": "pool", "changed": false, "idx": 0, "pool": {"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "vda", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "partition", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "type": "partition"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [6/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:72 TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "vda", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "partition", "volumes": [ { "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "vda", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "partition" } ] } ] } TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes": [] } TASK [linux-system-roles.storage : get required packages] ********************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": ["xfsprogs"], "pools": [], "volumes": []} TASK [linux-system-roles.storage : make sure required packages are installed] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: xfsprogs"]} TASK [linux-system-roles.storage : manage the pools and volumes to match the specified state] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:104 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [{"action": "create format", "device": "/dev/vda", "fs_type": "disklabel"}, {"action": "create device", "device": "/dev/vda1", "fs_type": null}, {"action": "create format", "device": "/dev/vda1", "fs_type": "xfs"}], "changed": true, "crypts": [], "leaves": ["/dev/sda1", "/dev/sr0", "/dev/vdb", "/dev/vdc", "/dev/vda1"], "mounts": [{"dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "UUID=b5508098-c2ca-4381-b115-d195aa8627d7", "state": "mounted"}], "packages": ["xfsprogs", "e2fsprogs"], "pools": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "vda", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "partition", "volumes": [{"_device": "/dev/vda1", "_kernel_device": "/dev/vda1", "_mount_id": "UUID=b5508098-c2ca-4381-b115-d195aa8627d7", "_raw_device": "/dev/vda1", "_raw_kernel_device": "/dev/vda1", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "vda", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "partition"}]}], "volumes": []} TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:114 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "blivet_output": { "actions": [ { "action": "create format", "device": "/dev/vda", "fs_type": "disklabel" }, { "action": "create device", "device": "/dev/vda1", "fs_type": null }, { "action": "create format", "device": "/dev/vda1", "fs_type": "xfs" } ], "changed": true, "crypts": [], "failed": false, "leaves": [ "/dev/sda1", "/dev/sr0", "/dev/vdb", "/dev/vdc", "/dev/vda1" ], "mounts": [ { "dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "UUID=b5508098-c2ca-4381-b115-d195aa8627d7", "state": "mounted" } ], "packages": [ "xfsprogs", "e2fsprogs" ], "pools": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "vda", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "partition", "volumes": [ { "_device": "/dev/vda1", "_kernel_device": "/dev/vda1", "_mount_id": "UUID=b5508098-c2ca-4381-b115-d195aa8627d7", "_raw_device": "/dev/vda1", "_raw_kernel_device": "/dev/vda1", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "vda", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "partition" } ] } ], "volumes": [] } } TASK [linux-system-roles.storage : set the list of pools for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:117 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "vda", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "partition", "volumes": [{"_device": "/dev/vda1", "_kernel_device": "/dev/vda1", "_mount_id": "UUID=b5508098-c2ca-4381-b115-d195aa8627d7", "_raw_device": "/dev/vda1", "_raw_kernel_device": "/dev/vda1", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "vda", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "partition"}]}]}, "changed": false} TASK [linux-system-roles.storage : set the list of volumes for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:121 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : remove obsolete mounts] ********************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:137 TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:148 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [linux-system-roles.storage : set up new/current mounts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:153 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'src': u'UUID=b5508098-c2ca-4381-b115-d195aa8627d7', u'state': u'mounted', u'dump': 0, u'path': u'/opt/test1', u'passno': 0, u'opts': u'defaults', u'fstype': u'xfs'}) => {"ansible_loop_var": "mount_info", "changed": true, "dump": "0", "fstab": "/etc/fstab", "fstype": "xfs", "mount_info": {"dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "UUID=b5508098-c2ca-4381-b115-d195aa8627d7", "state": "mounted"}, "name": "/opt/test1", "opts": "defaults", "passno": "0", "src": "UUID=b5508098-c2ca-4381-b115-d195aa8627d7"} TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:164 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [linux-system-roles.storage : Manage /etc/crypttab to account for changes we just made] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:172 TASK [linux-system-roles.storage : Update facts] ******************************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:187 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_create_partition_volume_then_remove.yml:29 included: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Print out pool information] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:1 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools_list": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "vda", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "partition", "volumes": [ { "_device": "/dev/vda1", "_kernel_device": "/dev/vda1", "_mount_id": "UUID=b5508098-c2ca-4381-b115-d195aa8627d7", "_raw_device": "/dev/vda1", "_raw_kernel_device": "/dev/vda1", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "vda", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "partition" } ] } ] } TASK [Print out volume information] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:6 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {} TASK [Collect info about the volumes.] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "info": {"/dev/sda": {"fstype": "", "label": "", "name": "/dev/sda", "size": "4G", "type": "disk", "uuid": ""}, "/dev/sda1": {"fstype": "ext4", "label": "", "name": "/dev/sda1", "size": "4G", "type": "partition", "uuid": "03e702b4-e165-4a39-88c9-9e210cd00434"}, "/dev/sr0": {"fstype": "iso9660", "label": "cidata", "name": "/dev/sr0", "size": "364K", "type": "rom", "uuid": "2020-10-31-12-10-04-00"}, "/dev/vda": {"fstype": "", "label": "", "name": "/dev/vda", "size": "10G", "type": "disk", "uuid": ""}, "/dev/vda1": {"fstype": "xfs", "label": "", "name": "/dev/vda1", "size": "10G", "type": "partition", "uuid": "b5508098-c2ca-4381-b115-d195aa8627d7"}, "/dev/vdb": {"fstype": "", "label": "", "name": "/dev/vdb", "size": "10G", "type": "disk", "uuid": ""}, "/dev/vdc": {"fstype": "", "label": "", "name": "/dev/vdc", "size": "10G", "type": "disk", "uuid": ""}}} TASK [Read the /etc/fstab file for volume existence] *************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:19 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/fstab"], "delta": "0:00:00.003308", "end": "2020-10-31 12:11:43.068093", "rc": 0, "start": "2020-10-31 12:11:43.064785", "stderr": "", "stderr_lines": [], "stdout": "\n#\n# /etc/fstab\n# Created by anaconda on Sat Oct 31 08:17:58 2020\n#\n# Accessible filesystems, by reference, are maintained under '/dev/disk/'.\n# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.\n#\n# After editing this file, run 'systemctl daemon-reload' to update systemd\n# units generated from this file.\n#\nUUID=03e702b4-e165-4a39-88c9-9e210cd00434 / ext4 defaults 1 1\nUUID=b5508098-c2ca-4381-b115-d195aa8627d7 /opt/test1 xfs defaults 0 0", "stdout_lines": ["", "#", "# /etc/fstab", "# Created by anaconda on Sat Oct 31 08:17:58 2020", "#", "# Accessible filesystems, by reference, are maintained under '/dev/disk/'.", "# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.", "#", "# After editing this file, run 'systemctl daemon-reload' to update systemd", "# units generated from this file.", "#", "UUID=03e702b4-e165-4a39-88c9-9e210cd00434 / ext4 defaults 1 1", "UUID=b5508098-c2ca-4381-b115-d195aa8627d7 /opt/test1 xfs defaults 0 0"]} TASK [Read the /etc/crypttab file] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/crypttab"], "delta": "0:00:01.004000", "end": "2020-10-31 12:11:44.401346", "rc": 0, "start": "2020-10-31 12:11:43.397346", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Verify the volumes listed in storage_pools were correctly managed] ******* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:32 included: /tmp/tmp7ksfxpzz/tests/test-verify-pool.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool.yml:5 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pool_tests": ["members", "volumes"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool.yml:17 included: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-pool-volumes.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:1 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Get the canonical device path for each member device] ******************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:7 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:16 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify PV count] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:23 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:29 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:33 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check the type of each PV] *********************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:41 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check raid] ************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:50 included: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [get information about RAID] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:6 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:12 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:16 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:20 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID active devices count] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:24 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID spare devices count] ****************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:30 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID metadata version] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:36 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:44 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_md_active_devices_re": null, "storage_test_md_metadata_version_re": null, "storage_test_md_spare_devices_re": null}, "changed": false} TASK [Check member encryption] ************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:53 included: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_crypttab_entries": "0", "_storage_test_expected_crypttab_key_file": "-"}, "changed": false} TASK [Validate pool member LUKS settings] ************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:8 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Validate pool member crypttab entries] *********************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:15 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:22 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null, "_storage_test_crypttab_key_file": null}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:56 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_count": null, "_storage_test_expected_pv_type": null, "_storage_test_pool_pvs": [], "_storage_test_pool_pvs_lvm": []}, "changed": false} TASK [verify the volumes] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-volumes.yml:3 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": true, "_storage_volume_tests": ["mount", "fstab", "fs", "device", "encryption", "md", "size"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:10 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Get expected mount device based on device type] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/vda1"}, "changed": false} TASK [Set some facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [{"block_available": 2592102, "block_size": 4096, "block_total": 2618624, "block_used": 26522, "device": "/dev/vda1", "fstype": "xfs", "inode_available": 5242365, "inode_total": 5242368, "inode_used": 3, "mount": "/opt/test1", "options": "rw,seclabel,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota", "size_available": 10617249792, "size_total": 10725883904, "uuid": "b5508098-c2ca-4381-b115-d195aa8627d7"}], "storage_test_mount_expected_match_count": "1", "storage_test_mount_point_matches": [{"block_available": 2592102, "block_size": 4096, "block_total": 2618624, "block_used": 26522, "device": "/dev/vda1", "fstype": "xfs", "inode_available": 5242365, "inode_total": 5242368, "inode_used": 3, "mount": "/opt/test1", "options": "rw,seclabel,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota", "size_available": 10617249792, "size_total": 10725883904, "uuid": "b5508098-c2ca-4381-b115-d195aa8627d7"}], "storage_test_swap_expected_matches": "0"}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:22 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:31 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:39 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [command] ***************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Gather swap info] ******************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:52 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify swap status] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:57 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Unset facts] ************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:67 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null, "storage_test_swap_expected_matches": null, "storage_test_swaps": null, "storage_test_sys_node": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": "1", "storage_test_fstab_expected_mount_point_matches": "1", "storage_test_fstab_id_matches": ["UUID=b5508098-c2ca-4381-b115-d195aa8627d7 "], "storage_test_fstab_mount_point_matches": [" /opt/test1 "]}, "changed": false} TASK [Verify that the device identifier appears in /etc/fstab] ***************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:17 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": null, "storage_test_fstab_expected_mount_point_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [Verify fs type] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify fs label] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [See whether the device node is present] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "stat": {"atime": 1604146299.0324085, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "ctime": 1604146299.0324085, "dev": 5, "device_type": 64513, "executable": false, "exists": true, "gid": 6, "gr_name": "disk", "inode": 1870, "isblk": true, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mimetype": "inode/blockdevice", "mode": "0660", "mtime": 1604146299.0324085, "nlink": 1, "path": "/dev/vda1", "pw_name": "root", "readable": true, "rgrp": true, "roth": false, "rusr": true, "size": 0, "uid": 0, "version": null, "wgrp": true, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}} TASK [Verify the presence/absence of the device node] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "partition"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:28 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:33 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Stat the LUKS device, if encrypted] ************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:3 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Collect LUKS info for this volume] *************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:10 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the presence/absence of the LUKS device node] ********************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:16 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify that the raw device is the same as the device if not encrypted] *** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:25 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about the LUKS volume if encrypted] **************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the LUKS volume's device type if encrypted] *********************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS version] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:42 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS key size] ***************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS cipher] ******************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:54 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:60 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": [], "_storage_test_expected_crypttab_entries": "0", "_storage_test_expected_crypttab_key_file": "-"}, "changed": false} TASK [Check for /etc/crypttab entry] ******************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:65 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Validate the format of the crypttab entry] ******************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:70 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check backing device of crypttab entry] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:76 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check key file of crypttab entry] **************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:82 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:88 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null, "_storage_test_expected_crypttab_entries": null, "_storage_test_expected_crypttab_key_file": null}, "changed": false} TASK [get information about RAID] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:7 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:13 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:17 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID active devices count] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:25 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID spare devices count] ****************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID metadata version] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [parse the actual size of the volume] ************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:3 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [parse the requested size of the volume] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:9 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:15 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_actual_size": { "changed": false, "skip_reason": "Conditional result was False", "skipped": true } } TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_requested_size": { "changed": false, "skip_reason": "Conditional result was False", "skipped": true } } TASK [assert] ****************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Clean up facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:16 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:39 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_pool": null}, "changed": false} TASK [Verify the volumes with no pool were correctly managed] ****************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:46 TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:56 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_blkinfo": null, "storage_test_crypttab": null, "storage_test_fstab": null, "storage_test_volume": null}, "changed": false} TASK [Repeat the previous invocation to verify idempotence] ******************** task path: /tmp/tmp7ksfxpzz/tests/tests_create_partition_volume_then_remove.yml:31 TASK [linux-system-roles.storage : Set version specific variables] ************* task path: /tmp/tmp7ksfxpzz/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-crypto", "libblockdev-dm", "libblockdev-lvm", "libblockdev-mdraid", "libblockdev-swap"]}, "ansible_included_var_files": ["/tmp/tmp7ksfxpzz/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.storage : define an empty list of pools to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : define an empty list of volumes to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : include the appropriate provider tasks] ***** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:22 included: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [linux-system-roles.storage : get a list of rpm packages installed on host machine] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : make sure blivet is available] ************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: python3-blivet", "Installed: libblockdev-crypto", "Installed: libblockdev-dm", "Installed: libblockdev-lvm", "Installed: libblockdev-mdraid", "Installed: libblockdev-swap"]} TASK [linux-system-roles.storage : initialize internal facts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools": [], "_storage_vol_defaults": [], "_storage_vol_pools": [], "_storage_vols_no_defaults": [], "_storage_vols_no_defaults_by_pool": {}, "_storage_vols_w_defaults": [], "_storage_volumes": []}, "changed": false} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [1/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:28 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'disks': [u'vda'], u'type': u'partition', u'name': u'vda', u'volumes': [{u'mount_point': u'/opt/test1', u'type': u'partition', u'name': u'test1'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "vda", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "partition", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "type": "partition"}]}]}, "ansible_loop_var": "pool", "changed": false, "pool": {"disks": ["vda"], "name": "vda", "type": "partition", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "type": "partition"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [2/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:36 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'vda', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test1', u'type': u'partition', u'name': u'test1'}], u'type': u'partition', u'encryption_key_size': None}, {u'mount_point': u'/opt/test1', u'type': u'partition', u'name': u'test1'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}], "_storage_vol_pools": ["vda"], "_storage_vols_no_defaults": [{"mount_point": "/opt/test1", "name": "test1", "type": "partition"}]}, "ansible_loop_var": "item", "changed": false, "item": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "vda", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "partition", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "type": "partition"}]}, {"mount_point": "/opt/test1", "name": "test1", "type": "partition"}]} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [3/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:44 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'mount_point': u'/opt/test1', u'type': u'partition', u'name': u'test1'}, {u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'fs_label': u'', u'raid_level': None, u'mount_device_identifier': u'uuid', u'fs_type': u'xfs', u'mount_options': u'defaults', u'encryption_luks_version': None, u'raid_spare_count': None, u'size': 0, u'mount_point': u'', u'encryption_password': None, u'encryption': False, u'raid_chunk_size': None, u'raid_device_count': None, u'state': u'present', u'mount_check': 0, u'mount_passno': 0, u'fs_overwrite_existing': True, u'type': u'lvm', u'encryption_key_size': None, u'fs_create_options': u''}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "vda", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "partition"}]}, "ansible_index_var": "idx", "ansible_loop_var": "item", "changed": false, "idx": 0, "item": [{"mount_point": "/opt/test1", "name": "test1", "type": "partition"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}]} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [4/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:52 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'vda', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test1', u'type': u'partition', u'name': u'test1'}], u'type': u'partition', u'encryption_key_size': None}) => {"ansible_facts": {"_storage_vols_no_defaults_by_pool": {"vda": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "vda", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "partition"}]}}, "ansible_loop_var": "item", "changed": false, "item": {"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "vda", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "partition", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "type": "partition"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [5/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:61 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'vda', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test1', u'type': u'partition', u'name': u'test1'}], u'type': u'partition', u'encryption_key_size': None}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "vda", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "partition", "volumes": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "vda", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "partition"}]}]}, "ansible_index_var": "idx", "ansible_loop_var": "pool", "changed": false, "idx": 0, "pool": {"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "vda", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "partition", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "type": "partition"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [6/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:72 TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "vda", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "partition", "volumes": [ { "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "vda", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "partition" } ] } ] } TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes": [] } TASK [linux-system-roles.storage : get required packages] ********************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": ["xfsprogs"], "pools": [], "volumes": []} TASK [linux-system-roles.storage : make sure required packages are installed] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: xfsprogs"]} TASK [linux-system-roles.storage : manage the pools and volumes to match the specified state] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:104 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": ["/dev/sda1", "/dev/sr0", "/dev/vda1", "/dev/vdb", "/dev/vdc"], "mounts": [{"dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "UUID=b5508098-c2ca-4381-b115-d195aa8627d7", "state": "mounted"}], "packages": ["e2fsprogs", "xfsprogs"], "pools": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "vda", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "partition", "volumes": [{"_device": "/dev/vda1", "_kernel_device": "/dev/vda1", "_mount_id": "UUID=b5508098-c2ca-4381-b115-d195aa8627d7", "_raw_device": "/dev/vda1", "_raw_kernel_device": "/dev/vda1", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "vda", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "partition"}]}], "volumes": []} TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:114 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "blivet_output": { "actions": [], "changed": false, "crypts": [], "failed": false, "leaves": [ "/dev/sda1", "/dev/sr0", "/dev/vda1", "/dev/vdb", "/dev/vdc" ], "mounts": [ { "dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "UUID=b5508098-c2ca-4381-b115-d195aa8627d7", "state": "mounted" } ], "packages": [ "e2fsprogs", "xfsprogs" ], "pools": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "vda", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "partition", "volumes": [ { "_device": "/dev/vda1", "_kernel_device": "/dev/vda1", "_mount_id": "UUID=b5508098-c2ca-4381-b115-d195aa8627d7", "_raw_device": "/dev/vda1", "_raw_kernel_device": "/dev/vda1", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "vda", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "partition" } ] } ], "volumes": [] } } TASK [linux-system-roles.storage : set the list of pools for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:117 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "vda", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "partition", "volumes": [{"_device": "/dev/vda1", "_kernel_device": "/dev/vda1", "_mount_id": "UUID=b5508098-c2ca-4381-b115-d195aa8627d7", "_raw_device": "/dev/vda1", "_raw_kernel_device": "/dev/vda1", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "vda", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "partition"}]}]}, "changed": false} TASK [linux-system-roles.storage : set the list of volumes for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:121 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : remove obsolete mounts] ********************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:137 TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:148 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [linux-system-roles.storage : set up new/current mounts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:153 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'src': u'UUID=b5508098-c2ca-4381-b115-d195aa8627d7', u'state': u'mounted', u'dump': 0, u'path': u'/opt/test1', u'passno': 0, u'opts': u'defaults', u'fstype': u'xfs'}) => {"ansible_loop_var": "mount_info", "changed": false, "dump": "0", "fstab": "/etc/fstab", "fstype": "xfs", "mount_info": {"dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "UUID=b5508098-c2ca-4381-b115-d195aa8627d7", "state": "mounted"}, "name": "/opt/test1", "opts": "defaults", "passno": "0", "src": "UUID=b5508098-c2ca-4381-b115-d195aa8627d7"} TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:164 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [linux-system-roles.storage : Manage /etc/crypttab to account for changes we just made] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:172 TASK [linux-system-roles.storage : Update facts] ******************************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:187 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_create_partition_volume_then_remove.yml:44 included: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Print out pool information] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:1 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools_list": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "vda", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "partition", "volumes": [ { "_device": "/dev/vda1", "_kernel_device": "/dev/vda1", "_mount_id": "UUID=b5508098-c2ca-4381-b115-d195aa8627d7", "_raw_device": "/dev/vda1", "_raw_kernel_device": "/dev/vda1", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "vda", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "partition" } ] } ] } TASK [Print out volume information] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:6 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {} TASK [Collect info about the volumes.] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "info": {"/dev/sda": {"fstype": "", "label": "", "name": "/dev/sda", "size": "4G", "type": "disk", "uuid": ""}, "/dev/sda1": {"fstype": "ext4", "label": "", "name": "/dev/sda1", "size": "4G", "type": "partition", "uuid": "03e702b4-e165-4a39-88c9-9e210cd00434"}, "/dev/sr0": {"fstype": "iso9660", "label": "cidata", "name": "/dev/sr0", "size": "364K", "type": "rom", "uuid": "2020-10-31-12-10-04-00"}, "/dev/vda": {"fstype": "", "label": "", "name": "/dev/vda", "size": "10G", "type": "disk", "uuid": ""}, "/dev/vda1": {"fstype": "xfs", "label": "", "name": "/dev/vda1", "size": "10G", "type": "partition", "uuid": "b5508098-c2ca-4381-b115-d195aa8627d7"}, "/dev/vdb": {"fstype": "", "label": "", "name": "/dev/vdb", "size": "10G", "type": "disk", "uuid": ""}, "/dev/vdc": {"fstype": "", "label": "", "name": "/dev/vdc", "size": "10G", "type": "disk", "uuid": ""}}} TASK [Read the /etc/fstab file for volume existence] *************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:19 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/fstab"], "delta": "0:00:00.002866", "end": "2020-10-31 12:12:02.736833", "rc": 0, "start": "2020-10-31 12:12:02.733967", "stderr": "", "stderr_lines": [], "stdout": "\n#\n# /etc/fstab\n# Created by anaconda on Sat Oct 31 08:17:58 2020\n#\n# Accessible filesystems, by reference, are maintained under '/dev/disk/'.\n# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.\n#\n# After editing this file, run 'systemctl daemon-reload' to update systemd\n# units generated from this file.\n#\nUUID=03e702b4-e165-4a39-88c9-9e210cd00434 / ext4 defaults 1 1\nUUID=b5508098-c2ca-4381-b115-d195aa8627d7 /opt/test1 xfs defaults 0 0", "stdout_lines": ["", "#", "# /etc/fstab", "# Created by anaconda on Sat Oct 31 08:17:58 2020", "#", "# Accessible filesystems, by reference, are maintained under '/dev/disk/'.", "# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.", "#", "# After editing this file, run 'systemctl daemon-reload' to update systemd", "# units generated from this file.", "#", "UUID=03e702b4-e165-4a39-88c9-9e210cd00434 / ext4 defaults 1 1", "UUID=b5508098-c2ca-4381-b115-d195aa8627d7 /opt/test1 xfs defaults 0 0"]} TASK [Read the /etc/crypttab file] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/crypttab"], "delta": "0:00:00.002795", "end": "2020-10-31 12:12:03.080890", "rc": 0, "start": "2020-10-31 12:12:03.078095", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Verify the volumes listed in storage_pools were correctly managed] ******* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:32 [WARNING]: The loop variable 'storage_test_pool' is already in use. You should set the `loop_var` value in the `loop_control` option for the task to something else to avoid variable collisions and unexpected behavior. included: /tmp/tmp7ksfxpzz/tests/test-verify-pool.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool.yml:5 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pool_tests": ["members", "volumes"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool.yml:17 included: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-pool-volumes.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:1 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Get the canonical device path for each member device] ******************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:7 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:16 TASK [Verify PV count] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:23 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:29 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:33 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check the type of each PV] *********************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:41 TASK [Check raid] ************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:50 included: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [get information about RAID] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:6 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:12 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:16 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:20 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID active devices count] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:24 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID spare devices count] ****************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:30 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID metadata version] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:36 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:44 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_md_active_devices_re": null, "storage_test_md_metadata_version_re": null, "storage_test_md_spare_devices_re": null}, "changed": false} TASK [Check member encryption] ************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:53 included: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_crypttab_entries": "0", "_storage_test_expected_crypttab_key_file": "-"}, "changed": false} TASK [Validate pool member LUKS settings] ************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:8 TASK [Validate pool member crypttab entries] *********************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:15 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:22 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null, "_storage_test_crypttab_key_file": null}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:56 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_count": null, "_storage_test_expected_pv_type": null, "_storage_test_pool_pvs": [], "_storage_test_pool_pvs_lvm": []}, "changed": false} TASK [verify the volumes] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-volumes.yml:3 [WARNING]: The loop variable 'storage_test_volume' is already in use. You should set the `loop_var` value in the `loop_control` option for the task to something else to avoid variable collisions and unexpected behavior. included: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": true, "_storage_volume_tests": ["mount", "fstab", "fs", "device", "encryption", "md", "size"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:10 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Get expected mount device based on device type] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/vda1"}, "changed": false} TASK [Set some facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [{"block_available": 2592102, "block_size": 4096, "block_total": 2618624, "block_used": 26522, "device": "/dev/vda1", "fstype": "xfs", "inode_available": 5242365, "inode_total": 5242368, "inode_used": 3, "mount": "/opt/test1", "options": "rw,seclabel,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota", "size_available": 10617249792, "size_total": 10725883904, "uuid": "b5508098-c2ca-4381-b115-d195aa8627d7"}], "storage_test_mount_expected_match_count": "1", "storage_test_mount_point_matches": [{"block_available": 2592102, "block_size": 4096, "block_total": 2618624, "block_used": 26522, "device": "/dev/vda1", "fstype": "xfs", "inode_available": 5242365, "inode_total": 5242368, "inode_used": 3, "mount": "/opt/test1", "options": "rw,seclabel,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota", "size_available": 10617249792, "size_total": 10725883904, "uuid": "b5508098-c2ca-4381-b115-d195aa8627d7"}], "storage_test_swap_expected_matches": "0"}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:22 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:31 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:39 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [command] ***************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Gather swap info] ******************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:52 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify swap status] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:57 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Unset facts] ************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:67 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null, "storage_test_swap_expected_matches": null, "storage_test_swaps": null, "storage_test_sys_node": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": "1", "storage_test_fstab_expected_mount_point_matches": "1", "storage_test_fstab_id_matches": ["UUID=b5508098-c2ca-4381-b115-d195aa8627d7 "], "storage_test_fstab_mount_point_matches": [" /opt/test1 "]}, "changed": false} TASK [Verify that the device identifier appears in /etc/fstab] ***************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:17 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": null, "storage_test_fstab_expected_mount_point_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [Verify fs type] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify fs label] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [See whether the device node is present] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "stat": {"atime": 1604146319.2514083, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "ctime": 1604146319.2514083, "dev": 5, "device_type": 64513, "executable": false, "exists": true, "gid": 6, "gr_name": "disk", "inode": 1870, "isblk": true, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mimetype": "inode/blockdevice", "mode": "0660", "mtime": 1604146319.2514083, "nlink": 1, "path": "/dev/vda1", "pw_name": "root", "readable": true, "rgrp": true, "roth": false, "rusr": true, "size": 0, "uid": 0, "version": null, "wgrp": true, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}} TASK [Verify the presence/absence of the device node] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "partition"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:28 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:33 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Stat the LUKS device, if encrypted] ************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:3 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Collect LUKS info for this volume] *************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:10 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the presence/absence of the LUKS device node] ********************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:16 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify that the raw device is the same as the device if not encrypted] *** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:25 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about the LUKS volume if encrypted] **************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the LUKS volume's device type if encrypted] *********************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS version] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:42 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS key size] ***************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS cipher] ******************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:54 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:60 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": [], "_storage_test_expected_crypttab_entries": "0", "_storage_test_expected_crypttab_key_file": "-"}, "changed": false} TASK [Check for /etc/crypttab entry] ******************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:65 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Validate the format of the crypttab entry] ******************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:70 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check backing device of crypttab entry] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:76 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check key file of crypttab entry] **************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:82 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:88 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null, "_storage_test_expected_crypttab_entries": null, "_storage_test_expected_crypttab_key_file": null}, "changed": false} TASK [get information about RAID] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:7 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:13 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:17 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID active devices count] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:25 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID spare devices count] ****************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID metadata version] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [parse the actual size of the volume] ************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:3 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [parse the requested size of the volume] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:9 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:15 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_actual_size": { "changed": false, "skip_reason": "Conditional result was False", "skipped": true } } TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_requested_size": { "changed": false, "skip_reason": "Conditional result was False", "skipped": true } } TASK [assert] ****************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Clean up facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:16 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:39 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_pool": null}, "changed": false} TASK [Verify the volumes with no pool were correctly managed] ****************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:46 TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:56 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_blkinfo": null, "storage_test_crypttab": null, "storage_test_fstab": null, "storage_test_volume": null}, "changed": false} TASK [Remove the partition created above] ************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_create_partition_volume_then_remove.yml:46 TASK [linux-system-roles.storage : Set version specific variables] ************* task path: /tmp/tmp7ksfxpzz/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-crypto", "libblockdev-dm", "libblockdev-lvm", "libblockdev-mdraid", "libblockdev-swap"]}, "ansible_included_var_files": ["/tmp/tmp7ksfxpzz/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.storage : define an empty list of pools to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : define an empty list of volumes to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : include the appropriate provider tasks] ***** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:22 included: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [linux-system-roles.storage : get a list of rpm packages installed on host machine] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : make sure blivet is available] ************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: python3-blivet", "Installed: libblockdev-crypto", "Installed: libblockdev-dm", "Installed: libblockdev-lvm", "Installed: libblockdev-mdraid", "Installed: libblockdev-swap"]} TASK [linux-system-roles.storage : initialize internal facts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools": [], "_storage_vol_defaults": [], "_storage_vol_pools": [], "_storage_vols_no_defaults": [], "_storage_vols_no_defaults_by_pool": {}, "_storage_vols_w_defaults": [], "_storage_volumes": []}, "changed": false} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [1/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:28 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'state': u'absent', u'disks': [u'vda'], u'type': u'partition', u'name': u'vda', u'volumes': [{u'state': u'absent', u'mount_point': u'/opt/test1', u'type': u'partition', u'name': u'vda1'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "vda", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "absent", "type": "partition", "volumes": [{"mount_point": "/opt/test1", "name": "vda1", "state": "absent", "type": "partition"}]}]}, "ansible_loop_var": "pool", "changed": false, "pool": {"disks": ["vda"], "name": "vda", "state": "absent", "type": "partition", "volumes": [{"mount_point": "/opt/test1", "name": "vda1", "state": "absent", "type": "partition"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [2/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:36 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'vda', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'absent', u'volumes': [{u'state': u'absent', u'mount_point': u'/opt/test1', u'type': u'partition', u'name': u'vda1'}], u'type': u'partition', u'encryption_key_size': None}, {u'state': u'absent', u'mount_point': u'/opt/test1', u'type': u'partition', u'name': u'vda1'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}], "_storage_vol_pools": ["vda"], "_storage_vols_no_defaults": [{"mount_point": "/opt/test1", "name": "vda1", "state": "absent", "type": "partition"}]}, "ansible_loop_var": "item", "changed": false, "item": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "vda", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "absent", "type": "partition", "volumes": [{"mount_point": "/opt/test1", "name": "vda1", "state": "absent", "type": "partition"}]}, {"mount_point": "/opt/test1", "name": "vda1", "state": "absent", "type": "partition"}]} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [3/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:44 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'state': u'absent', u'mount_point': u'/opt/test1', u'type': u'partition', u'name': u'vda1'}, {u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'fs_label': u'', u'raid_level': None, u'mount_device_identifier': u'uuid', u'fs_type': u'xfs', u'mount_options': u'defaults', u'encryption_luks_version': None, u'raid_spare_count': None, u'size': 0, u'mount_point': u'', u'encryption_password': None, u'encryption': False, u'raid_chunk_size': None, u'raid_device_count': None, u'state': u'present', u'mount_check': 0, u'mount_passno': 0, u'fs_overwrite_existing': True, u'type': u'lvm', u'encryption_key_size': None, u'fs_create_options': u''}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "vda1", "pool": "vda", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "absent", "type": "partition"}]}, "ansible_index_var": "idx", "ansible_loop_var": "item", "changed": false, "idx": 0, "item": [{"mount_point": "/opt/test1", "name": "vda1", "state": "absent", "type": "partition"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}]} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [4/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:52 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'vda', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'absent', u'volumes': [{u'state': u'absent', u'mount_point': u'/opt/test1', u'type': u'partition', u'name': u'vda1'}], u'type': u'partition', u'encryption_key_size': None}) => {"ansible_facts": {"_storage_vols_no_defaults_by_pool": {"vda": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "vda1", "pool": "vda", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "absent", "type": "partition"}]}}, "ansible_loop_var": "item", "changed": false, "item": {"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "vda", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "absent", "type": "partition", "volumes": [{"mount_point": "/opt/test1", "name": "vda1", "state": "absent", "type": "partition"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [5/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:61 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'vda', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'absent', u'volumes': [{u'state': u'absent', u'mount_point': u'/opt/test1', u'type': u'partition', u'name': u'vda1'}], u'type': u'partition', u'encryption_key_size': None}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "vda", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "absent", "type": "partition", "volumes": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "vda1", "pool": "vda", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "absent", "type": "partition"}]}]}, "ansible_index_var": "idx", "ansible_loop_var": "pool", "changed": false, "idx": 0, "pool": {"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "vda", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "absent", "type": "partition", "volumes": [{"mount_point": "/opt/test1", "name": "vda1", "state": "absent", "type": "partition"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [6/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:72 TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "vda", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "absent", "type": "partition", "volumes": [ { "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "vda1", "pool": "vda", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "absent", "type": "partition" } ] } ] } TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes": [] } TASK [linux-system-roles.storage : get required packages] ********************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": []} TASK [linux-system-roles.storage : make sure required packages are installed] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [linux-system-roles.storage : manage the pools and volumes to match the specified state] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:104 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [{"action": "destroy format", "device": "/dev/vda1", "fs_type": "xfs"}, {"action": "destroy device", "device": "/dev/vda1", "fs_type": null}, {"action": "destroy format", "device": "/dev/vda", "fs_type": "disklabel"}], "changed": true, "crypts": [], "leaves": ["/dev/sda1", "/dev/sr0", "/dev/vda", "/dev/vdb", "/dev/vdc"], "mounts": [{"fstype": "xfs", "path": "/opt/test1", "src": "UUID=b5508098-c2ca-4381-b115-d195aa8627d7", "state": "absent"}], "packages": ["e2fsprogs"], "pools": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "vda", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "absent", "type": "partition", "volumes": [{"_device": "/dev/vda1", "_mount_id": "UUID=b5508098-c2ca-4381-b115-d195aa8627d7", "_raw_device": "/dev/vda1", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "vda1", "pool": "vda", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "absent", "type": "partition"}]}], "volumes": []} TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:114 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "blivet_output": { "actions": [ { "action": "destroy format", "device": "/dev/vda1", "fs_type": "xfs" }, { "action": "destroy device", "device": "/dev/vda1", "fs_type": null }, { "action": "destroy format", "device": "/dev/vda", "fs_type": "disklabel" } ], "changed": true, "crypts": [], "failed": false, "leaves": [ "/dev/sda1", "/dev/sr0", "/dev/vda", "/dev/vdb", "/dev/vdc" ], "mounts": [ { "fstype": "xfs", "path": "/opt/test1", "src": "UUID=b5508098-c2ca-4381-b115-d195aa8627d7", "state": "absent" } ], "packages": [ "e2fsprogs" ], "pools": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "vda", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "absent", "type": "partition", "volumes": [ { "_device": "/dev/vda1", "_mount_id": "UUID=b5508098-c2ca-4381-b115-d195aa8627d7", "_raw_device": "/dev/vda1", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "vda1", "pool": "vda", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "absent", "type": "partition" } ] } ], "volumes": [] } } TASK [linux-system-roles.storage : set the list of pools for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:117 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "vda", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "absent", "type": "partition", "volumes": [{"_device": "/dev/vda1", "_mount_id": "UUID=b5508098-c2ca-4381-b115-d195aa8627d7", "_raw_device": "/dev/vda1", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "vda1", "pool": "vda", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "absent", "type": "partition"}]}]}, "changed": false} TASK [linux-system-roles.storage : set the list of volumes for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:121 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : remove obsolete mounts] ********************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:137 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'src': u'UUID=b5508098-c2ca-4381-b115-d195aa8627d7', u'state': u'absent', u'fstype': u'xfs', u'path': u'/opt/test1'}) => {"ansible_loop_var": "mount_info", "changed": true, "dump": "0", "fstab": "/etc/fstab", "fstype": "xfs", "mount_info": {"fstype": "xfs", "path": "/opt/test1", "src": "UUID=b5508098-c2ca-4381-b115-d195aa8627d7", "state": "absent"}, "name": "/opt/test1", "opts": "defaults", "passno": "0", "src": "UUID=b5508098-c2ca-4381-b115-d195aa8627d7"} TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:148 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [linux-system-roles.storage : set up new/current mounts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:153 TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:164 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [linux-system-roles.storage : Manage /etc/crypttab to account for changes we just made] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:172 TASK [linux-system-roles.storage : Update facts] ******************************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:187 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_create_partition_volume_then_remove.yml:61 included: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Print out pool information] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:1 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools_list": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "vda", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "absent", "type": "partition", "volumes": [ { "_device": "/dev/vda1", "_mount_id": "UUID=b5508098-c2ca-4381-b115-d195aa8627d7", "_raw_device": "/dev/vda1", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "vda1", "pool": "vda", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "absent", "type": "partition" } ] } ] } TASK [Print out volume information] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:6 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {} TASK [Collect info about the volumes.] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "info": {"/dev/sda": {"fstype": "", "label": "", "name": "/dev/sda", "size": "4G", "type": "disk", "uuid": ""}, "/dev/sda1": {"fstype": "ext4", "label": "", "name": "/dev/sda1", "size": "4G", "type": "partition", "uuid": "03e702b4-e165-4a39-88c9-9e210cd00434"}, "/dev/sr0": {"fstype": "iso9660", "label": "cidata", "name": "/dev/sr0", "size": "364K", "type": "rom", "uuid": "2020-10-31-12-10-04-00"}, "/dev/vda": {"fstype": "", "label": "", "name": "/dev/vda", "size": "10G", "type": "disk", "uuid": ""}, "/dev/vdb": {"fstype": "", "label": "", "name": "/dev/vdb", "size": "10G", "type": "disk", "uuid": ""}, "/dev/vdc": {"fstype": "", "label": "", "name": "/dev/vdc", "size": "10G", "type": "disk", "uuid": ""}}} TASK [Read the /etc/fstab file for volume existence] *************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:19 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/fstab"], "delta": "0:00:00.003343", "end": "2020-10-31 12:12:21.486553", "rc": 0, "start": "2020-10-31 12:12:21.483210", "stderr": "", "stderr_lines": [], "stdout": "\n#\n# /etc/fstab\n# Created by anaconda on Sat Oct 31 08:17:58 2020\n#\n# Accessible filesystems, by reference, are maintained under '/dev/disk/'.\n# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.\n#\n# After editing this file, run 'systemctl daemon-reload' to update systemd\n# units generated from this file.\n#\nUUID=03e702b4-e165-4a39-88c9-9e210cd00434 / ext4 defaults 1 1", "stdout_lines": ["", "#", "# /etc/fstab", "# Created by anaconda on Sat Oct 31 08:17:58 2020", "#", "# Accessible filesystems, by reference, are maintained under '/dev/disk/'.", "# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.", "#", "# After editing this file, run 'systemctl daemon-reload' to update systemd", "# units generated from this file.", "#", "UUID=03e702b4-e165-4a39-88c9-9e210cd00434 / ext4 defaults 1 1"]} TASK [Read the /etc/crypttab file] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/crypttab"], "delta": "0:00:00.002509", "end": "2020-10-31 12:12:21.830831", "rc": 0, "start": "2020-10-31 12:12:21.828322", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Verify the volumes listed in storage_pools were correctly managed] ******* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:32 [WARNING]: The loop variable 'storage_test_pool' is already in use. You should set the `loop_var` value in the `loop_control` option for the task to something else to avoid variable collisions and unexpected behavior. included: /tmp/tmp7ksfxpzz/tests/test-verify-pool.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool.yml:5 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pool_tests": ["members", "volumes"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool.yml:17 included: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-pool-volumes.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:1 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Get the canonical device path for each member device] ******************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:7 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:16 TASK [Verify PV count] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:23 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:29 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:33 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check the type of each PV] *********************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:41 TASK [Check raid] ************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:50 included: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [get information about RAID] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:6 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:12 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:16 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:20 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID active devices count] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:24 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID spare devices count] ****************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:30 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID metadata version] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:36 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:44 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_md_active_devices_re": null, "storage_test_md_metadata_version_re": null, "storage_test_md_spare_devices_re": null}, "changed": false} TASK [Check member encryption] ************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:53 included: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_crypttab_entries": "0", "_storage_test_expected_crypttab_key_file": "-"}, "changed": false} TASK [Validate pool member LUKS settings] ************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:8 TASK [Validate pool member crypttab entries] *********************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:15 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:22 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null, "_storage_test_crypttab_key_file": null}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:56 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_count": null, "_storage_test_expected_pv_type": null, "_storage_test_pool_pvs": [], "_storage_test_pool_pvs_lvm": []}, "changed": false} TASK [verify the volumes] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-volumes.yml:3 [WARNING]: The loop variable 'storage_test_volume' is already in use. You should set the `loop_var` value in the `loop_control` option for the task to something else to avoid variable collisions and unexpected behavior. included: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": false, "_storage_volume_tests": ["mount", "fstab", "fs", "device", "encryption", "md", "size"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:10 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Get expected mount device based on device type] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/vda1"}, "changed": false} TASK [Set some facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [], "storage_test_mount_expected_match_count": "0", "storage_test_mount_point_matches": [], "storage_test_swap_expected_matches": "0"}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:22 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:31 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:39 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [command] ***************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Gather swap info] ******************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:52 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify swap status] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:57 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Unset facts] ************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:67 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null, "storage_test_swap_expected_matches": null, "storage_test_swaps": null, "storage_test_sys_node": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": "0", "storage_test_fstab_expected_mount_point_matches": "0", "storage_test_fstab_id_matches": [], "storage_test_fstab_mount_point_matches": []}, "changed": false} TASK [Verify that the device identifier appears in /etc/fstab] ***************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:10 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:17 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": null, "storage_test_fstab_expected_mount_point_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [Verify fs type] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:4 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify fs label] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:10 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [See whether the device node is present] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "stat": {"exists": false}} TASK [Verify the presence/absence of the device node] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:18 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "partition"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:28 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:33 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Stat the LUKS device, if encrypted] ************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:3 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Collect LUKS info for this volume] *************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:10 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the presence/absence of the LUKS device node] ********************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:16 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify that the raw device is the same as the device if not encrypted] *** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:25 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Make sure we got info about the LUKS volume if encrypted] **************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the LUKS volume's device type if encrypted] *********************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS version] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:42 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS key size] ***************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS cipher] ******************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:54 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:60 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": [], "_storage_test_expected_crypttab_entries": "0", "_storage_test_expected_crypttab_key_file": "-"}, "changed": false} TASK [Check for /etc/crypttab entry] ******************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:65 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Validate the format of the crypttab entry] ******************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:70 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check backing device of crypttab entry] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:76 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check key file of crypttab entry] **************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:82 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:88 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null, "_storage_test_expected_crypttab_entries": null, "_storage_test_expected_crypttab_key_file": null}, "changed": false} TASK [get information about RAID] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:7 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:13 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:17 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID active devices count] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:25 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID spare devices count] ****************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID metadata version] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [parse the actual size of the volume] ************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:3 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [parse the requested size of the volume] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:9 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:15 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_actual_size": { "changed": false, "skip_reason": "Conditional result was False", "skipped": true } } TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_requested_size": { "changed": false, "skip_reason": "Conditional result was False", "skipped": true } } TASK [assert] ****************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Clean up facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:16 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:39 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_pool": null}, "changed": false} TASK [Verify the volumes with no pool were correctly managed] ****************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:46 TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:56 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_blkinfo": null, "storage_test_crypttab": null, "storage_test_fstab": null, "storage_test_volume": null}, "changed": false} TASK [Repeat the previous invocation to verify idempotence] ******************** task path: /tmp/tmp7ksfxpzz/tests/tests_create_partition_volume_then_remove.yml:63 TASK [linux-system-roles.storage : Set version specific variables] ************* task path: /tmp/tmp7ksfxpzz/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-crypto", "libblockdev-dm", "libblockdev-lvm", "libblockdev-mdraid", "libblockdev-swap"]}, "ansible_included_var_files": ["/tmp/tmp7ksfxpzz/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.storage : define an empty list of pools to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : define an empty list of volumes to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : include the appropriate provider tasks] ***** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:22 included: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [linux-system-roles.storage : get a list of rpm packages installed on host machine] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : make sure blivet is available] ************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: python3-blivet", "Installed: libblockdev-crypto", "Installed: libblockdev-dm", "Installed: libblockdev-lvm", "Installed: libblockdev-mdraid", "Installed: libblockdev-swap"]} TASK [linux-system-roles.storage : initialize internal facts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools": [], "_storage_vol_defaults": [], "_storage_vol_pools": [], "_storage_vols_no_defaults": [], "_storage_vols_no_defaults_by_pool": {}, "_storage_vols_w_defaults": [], "_storage_volumes": []}, "changed": false} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [1/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:28 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'state': u'absent', u'disks': [u'vda'], u'type': u'partition', u'name': u'vda', u'volumes': [{u'state': u'absent', u'mount_point': u'/opt/test1', u'type': u'partition', u'name': u'vda1'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "vda", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "absent", "type": "partition", "volumes": [{"mount_point": "/opt/test1", "name": "vda1", "state": "absent", "type": "partition"}]}]}, "ansible_loop_var": "pool", "changed": false, "pool": {"disks": ["vda"], "name": "vda", "state": "absent", "type": "partition", "volumes": [{"mount_point": "/opt/test1", "name": "vda1", "state": "absent", "type": "partition"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [2/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:36 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'vda', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'absent', u'volumes': [{u'state': u'absent', u'mount_point': u'/opt/test1', u'type': u'partition', u'name': u'vda1'}], u'type': u'partition', u'encryption_key_size': None}, {u'state': u'absent', u'mount_point': u'/opt/test1', u'type': u'partition', u'name': u'vda1'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}], "_storage_vol_pools": ["vda"], "_storage_vols_no_defaults": [{"mount_point": "/opt/test1", "name": "vda1", "state": "absent", "type": "partition"}]}, "ansible_loop_var": "item", "changed": false, "item": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "vda", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "absent", "type": "partition", "volumes": [{"mount_point": "/opt/test1", "name": "vda1", "state": "absent", "type": "partition"}]}, {"mount_point": "/opt/test1", "name": "vda1", "state": "absent", "type": "partition"}]} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [3/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:44 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'state': u'absent', u'mount_point': u'/opt/test1', u'type': u'partition', u'name': u'vda1'}, {u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'fs_label': u'', u'raid_level': None, u'mount_device_identifier': u'uuid', u'fs_type': u'xfs', u'mount_options': u'defaults', u'encryption_luks_version': None, u'raid_spare_count': None, u'size': 0, u'mount_point': u'', u'encryption_password': None, u'encryption': False, u'raid_chunk_size': None, u'raid_device_count': None, u'state': u'present', u'mount_check': 0, u'mount_passno': 0, u'fs_overwrite_existing': True, u'type': u'lvm', u'encryption_key_size': None, u'fs_create_options': u''}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "vda1", "pool": "vda", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "absent", "type": "partition"}]}, "ansible_index_var": "idx", "ansible_loop_var": "item", "changed": false, "idx": 0, "item": [{"mount_point": "/opt/test1", "name": "vda1", "state": "absent", "type": "partition"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}]} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [4/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:52 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'vda', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'absent', u'volumes': [{u'state': u'absent', u'mount_point': u'/opt/test1', u'type': u'partition', u'name': u'vda1'}], u'type': u'partition', u'encryption_key_size': None}) => {"ansible_facts": {"_storage_vols_no_defaults_by_pool": {"vda": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "vda1", "pool": "vda", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "absent", "type": "partition"}]}}, "ansible_loop_var": "item", "changed": false, "item": {"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "vda", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "absent", "type": "partition", "volumes": [{"mount_point": "/opt/test1", "name": "vda1", "state": "absent", "type": "partition"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [5/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:61 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'vda', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'absent', u'volumes': [{u'state': u'absent', u'mount_point': u'/opt/test1', u'type': u'partition', u'name': u'vda1'}], u'type': u'partition', u'encryption_key_size': None}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "vda", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "absent", "type": "partition", "volumes": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "vda1", "pool": "vda", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "absent", "type": "partition"}]}]}, "ansible_index_var": "idx", "ansible_loop_var": "pool", "changed": false, "idx": 0, "pool": {"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "vda", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "absent", "type": "partition", "volumes": [{"mount_point": "/opt/test1", "name": "vda1", "state": "absent", "type": "partition"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [6/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:72 TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "vda", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "absent", "type": "partition", "volumes": [ { "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "vda1", "pool": "vda", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "absent", "type": "partition" } ] } ] } TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes": [] } TASK [linux-system-roles.storage : get required packages] ********************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": []} TASK [linux-system-roles.storage : make sure required packages are installed] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [linux-system-roles.storage : manage the pools and volumes to match the specified state] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:104 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": true, "crypts": [], "leaves": ["/dev/sda1", "/dev/sr0", "/dev/vda", "/dev/vdb", "/dev/vdc"], "mounts": [], "packages": ["e2fsprogs"], "pools": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "vda", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "absent", "type": "partition", "volumes": [{"_device": "", "_mount_id": "", "_raw_device": "", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "vda1", "pool": "vda", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "absent", "type": "partition"}]}], "volumes": []} TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:114 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "blivet_output": { "actions": [], "changed": true, "crypts": [], "failed": false, "leaves": [ "/dev/sda1", "/dev/sr0", "/dev/vda", "/dev/vdb", "/dev/vdc" ], "mounts": [], "packages": [ "e2fsprogs" ], "pools": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "vda", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "absent", "type": "partition", "volumes": [ { "_device": "", "_mount_id": "", "_raw_device": "", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "vda1", "pool": "vda", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "absent", "type": "partition" } ] } ], "volumes": [] } } TASK [linux-system-roles.storage : set the list of pools for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:117 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "vda", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "absent", "type": "partition", "volumes": [{"_device": "", "_mount_id": "", "_raw_device": "", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "vda1", "pool": "vda", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "absent", "type": "partition"}]}]}, "changed": false} TASK [linux-system-roles.storage : set the list of volumes for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:121 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : remove obsolete mounts] ********************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:137 TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:148 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : set up new/current mounts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:153 TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:164 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : Manage /etc/crypttab to account for changes we just made] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:172 TASK [linux-system-roles.storage : Update facts] ******************************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:187 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_create_partition_volume_then_remove.yml:78 included: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Print out pool information] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:1 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools_list": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "vda", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "absent", "type": "partition", "volumes": [ { "_device": "", "_mount_id": "", "_raw_device": "", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "vda1", "pool": "vda", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "absent", "type": "partition" } ] } ] } TASK [Print out volume information] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:6 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {} TASK [Collect info about the volumes.] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "info": {"/dev/sda": {"fstype": "", "label": "", "name": "/dev/sda", "size": "4G", "type": "disk", "uuid": ""}, "/dev/sda1": {"fstype": "ext4", "label": "", "name": "/dev/sda1", "size": "4G", "type": "partition", "uuid": "03e702b4-e165-4a39-88c9-9e210cd00434"}, "/dev/sr0": {"fstype": "iso9660", "label": "cidata", "name": "/dev/sr0", "size": "364K", "type": "rom", "uuid": "2020-10-31-12-10-04-00"}, "/dev/vda": {"fstype": "", "label": "", "name": "/dev/vda", "size": "10G", "type": "disk", "uuid": ""}, "/dev/vdb": {"fstype": "", "label": "", "name": "/dev/vdb", "size": "10G", "type": "disk", "uuid": ""}, "/dev/vdc": {"fstype": "", "label": "", "name": "/dev/vdc", "size": "10G", "type": "disk", "uuid": ""}}} TASK [Read the /etc/fstab file for volume existence] *************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:19 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/fstab"], "delta": "0:00:00.002389", "end": "2020-10-31 12:12:38.170356", "rc": 0, "start": "2020-10-31 12:12:38.167967", "stderr": "", "stderr_lines": [], "stdout": "\n#\n# /etc/fstab\n# Created by anaconda on Sat Oct 31 08:17:58 2020\n#\n# Accessible filesystems, by reference, are maintained under '/dev/disk/'.\n# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.\n#\n# After editing this file, run 'systemctl daemon-reload' to update systemd\n# units generated from this file.\n#\nUUID=03e702b4-e165-4a39-88c9-9e210cd00434 / ext4 defaults 1 1", "stdout_lines": ["", "#", "# /etc/fstab", "# Created by anaconda on Sat Oct 31 08:17:58 2020", "#", "# Accessible filesystems, by reference, are maintained under '/dev/disk/'.", "# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.", "#", "# After editing this file, run 'systemctl daemon-reload' to update systemd", "# units generated from this file.", "#", "UUID=03e702b4-e165-4a39-88c9-9e210cd00434 / ext4 defaults 1 1"]} TASK [Read the /etc/crypttab file] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/crypttab"], "delta": "0:00:01.004480", "end": "2020-10-31 12:12:39.506221", "rc": 0, "start": "2020-10-31 12:12:38.501741", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Verify the volumes listed in storage_pools were correctly managed] ******* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:32 [WARNING]: The loop variable 'storage_test_pool' is already in use. You should set the `loop_var` value in the `loop_control` option for the task to something else to avoid variable collisions and unexpected behavior. included: /tmp/tmp7ksfxpzz/tests/test-verify-pool.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool.yml:5 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pool_tests": ["members", "volumes"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool.yml:17 included: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-pool-volumes.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:1 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Get the canonical device path for each member device] ******************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:7 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:16 TASK [Verify PV count] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:23 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:29 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:33 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check the type of each PV] *********************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:41 TASK [Check raid] ************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:50 included: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [get information about RAID] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:6 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:12 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:16 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:20 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID active devices count] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:24 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID spare devices count] ****************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:30 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID metadata version] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:36 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:44 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_md_active_devices_re": null, "storage_test_md_metadata_version_re": null, "storage_test_md_spare_devices_re": null}, "changed": false} TASK [Check member encryption] ************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:53 included: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_crypttab_entries": "0", "_storage_test_expected_crypttab_key_file": "-"}, "changed": false} TASK [Validate pool member LUKS settings] ************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:8 TASK [Validate pool member crypttab entries] *********************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:15 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:22 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null, "_storage_test_crypttab_key_file": null}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:56 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_count": null, "_storage_test_expected_pv_type": null, "_storage_test_pool_pvs": [], "_storage_test_pool_pvs_lvm": []}, "changed": false} TASK [verify the volumes] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-volumes.yml:3 [WARNING]: The loop variable 'storage_test_volume' is already in use. You should set the `loop_var` value in the `loop_control` option for the task to something else to avoid variable collisions and unexpected behavior. included: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": false, "_storage_volume_tests": ["mount", "fstab", "fs", "device", "encryption", "md", "size"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:10 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Get expected mount device based on device type] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": ""}, "changed": false} TASK [Set some facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [], "storage_test_mount_expected_match_count": "0", "storage_test_mount_point_matches": [], "storage_test_swap_expected_matches": "0"}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:22 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:31 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:39 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [command] ***************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Gather swap info] ******************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:52 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify swap status] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:57 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Unset facts] ************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:67 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null, "storage_test_swap_expected_matches": null, "storage_test_swaps": null, "storage_test_sys_node": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": "0", "storage_test_fstab_expected_mount_point_matches": "0", "storage_test_fstab_id_matches": [], "storage_test_fstab_mount_point_matches": []}, "changed": false} TASK [Verify that the device identifier appears in /etc/fstab] ***************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:10 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:17 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": null, "storage_test_fstab_expected_mount_point_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [Verify fs type] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:4 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify fs label] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:10 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [See whether the device node is present] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "stat": {"exists": false}} TASK [Verify the presence/absence of the device node] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:18 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "partition"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:28 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:33 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Stat the LUKS device, if encrypted] ************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:3 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Collect LUKS info for this volume] *************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:10 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the presence/absence of the LUKS device node] ********************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:16 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify that the raw device is the same as the device if not encrypted] *** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:25 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Make sure we got info about the LUKS volume if encrypted] **************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the LUKS volume's device type if encrypted] *********************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS version] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:42 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS key size] ***************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS cipher] ******************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:54 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:60 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": [], "_storage_test_expected_crypttab_entries": "0", "_storage_test_expected_crypttab_key_file": "-"}, "changed": false} TASK [Check for /etc/crypttab entry] ******************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:65 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Validate the format of the crypttab entry] ******************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:70 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check backing device of crypttab entry] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:76 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check key file of crypttab entry] **************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:82 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:88 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null, "_storage_test_expected_crypttab_entries": null, "_storage_test_expected_crypttab_key_file": null}, "changed": false} TASK [get information about RAID] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:7 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:13 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:17 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID active devices count] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:25 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID spare devices count] ****************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID metadata version] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [parse the actual size of the volume] ************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:3 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [parse the requested size of the volume] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:9 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:15 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_actual_size": { "changed": false, "skip_reason": "Conditional result was False", "skipped": true } } TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_requested_size": { "changed": false, "skip_reason": "Conditional result was False", "skipped": true } } TASK [assert] ****************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Clean up facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:16 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:39 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_pool": null}, "changed": false} TASK [Verify the volumes with no pool were correctly managed] ****************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:46 TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:56 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_blkinfo": null, "storage_test_crypttab": null, "storage_test_fstab": null, "storage_test_volume": null}, "changed": false} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 : ok=294 changed=6 unreachable=0 failed=0 skipped=225 rescued=0 ignored=0 + cd /tmp/tmp7ksfxpzz/tests; TEST_SUBJECTS=/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_storage-178-e856157-fedora-31-87qzp9iq/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmp7ksfxpzz/_setup.yml /tmp/tmp7ksfxpzz/tests/tests_create_raid_pool_then_remove.yml ansible-playbook 2.8.16 config file = /etc/ansible/ansible.cfg configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python2.7/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 2.7.5 (default, Apr 2 2020, 13:16:51) [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)] Using /etc/ansible/ansible.cfg as config file PLAYBOOK: _setup.yml *********************************************************** 1 plays in /tmp/tmp7ksfxpzz/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/_setup.yml:5 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "groups": { "all": [ "/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2" ], "localhost": [ "/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2" ], "subjects": [ "/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmp7ksfxpzz/_setup.yml:6 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 : ok=1 changed=0 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 PLAYBOOK: tests_create_raid_pool_then_remove.yml ******************************* 1 plays in /tmp/tmp7ksfxpzz/tests/tests_create_raid_pool_then_remove.yml PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/tests_create_raid_pool_then_remove.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] META: ran handlers TASK [include_role : linux-system-roles.storage] ******************************* task path: /tmp/tmp7ksfxpzz/tests/tests_create_raid_pool_then_remove.yml:15 TASK [linux-system-roles.storage : Set version specific variables] ************* task path: /tmp/tmp7ksfxpzz/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-crypto", "libblockdev-dm", "libblockdev-lvm", "libblockdev-mdraid", "libblockdev-swap"]}, "ansible_included_var_files": ["/tmp/tmp7ksfxpzz/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.storage : define an empty list of pools to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : define an empty list of volumes to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : include the appropriate provider tasks] ***** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:22 included: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [linux-system-roles.storage : get a list of rpm packages installed on host machine] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : make sure blivet is available] ************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:7 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: python3-blivet", "Installed: libblockdev-crypto", "Installed: libblockdev-dm", "Installed: libblockdev-lvm", "Installed: libblockdev-mdraid", "Installed: libblockdev-swap", "Installed: libblockdev-kbd-2.24-2.fc31.x86_64", "Installed: nspr-4.29.0-1.fc31.x86_64", "Installed: libblockdev-loop-2.24-2.fc31.x86_64", "Installed: nss-3.57.0-1.fc31.x86_64", "Installed: libblockdev-lvm-2.24-2.fc31.x86_64", "Installed: lsof-4.93.2-2.fc31.x86_64", "Installed: lvm2-2.03.09-1.fc31.x86_64", "Installed: nss-softokn-3.57.0-1.fc31.x86_64", "Installed: libblockdev-mdraid-2.24-2.fc31.x86_64", "Installed: nss-softokn-freebl-3.57.0-1.fc31.x86_64", "Installed: lvm2-libs-2.03.09-1.fc31.x86_64", "Installed: python3-gobject-base-3.34.0-3.fc31.x86_64", "Installed: libblockdev-mpath-2.24-2.fc31.x86_64", "Installed: nss-sysinit-3.57.0-1.fc31.x86_64", "Installed: device-mapper-event-1.02.171-1.fc31.x86_64", "Installed: nss-util-3.57.0-1.fc31.x86_64", "Installed: libblockdev-nvdimm-2.24-2.fc31.x86_64", "Installed: gobject-introspection-1.62.0-1.fc31.x86_64", "Installed: device-mapper-event-libs-1.02.171-1.fc31.x86_64", "Installed: userspace-rcu-0.11.1-2.fc31.x86_64", "Installed: libblockdev-part-2.24-2.fc31.x86_64", "Installed: lzo-2.08-16.fc31.x86_64", "Installed: volume_key-libs-0.3.12-4.fc31.x86_64", "Installed: dmraid-1.0.0.rc16-43.fc31.x86_64", "Installed: libblockdev-swap-2.24-2.fc31.x86_64", "Installed: libblockdev-utils-2.24-2.fc31.x86_64", "Installed: blivet-data-1:3.1.7-2.fc31.noarch", "Installed: device-mapper-multipath-0.8.0-3.fc31.x86_64", "Installed: device-mapper-multipath-libs-0.8.0-3.fc31.x86_64", "Installed: device-mapper-persistent-data-0.8.5-2.fc31.x86_64", "Installed: sgpio-1.2.0.10-24.fc31.x86_64", "Installed: bcache-tools-1.0.8-16.fc31.x86_64", "Installed: python3-blivet-1:3.1.7-2.fc31.noarch", "Installed: daxctl-libs-70.1-1.fc31.x86_64", "Installed: python3-blockdev-2.24-2.fc31.x86_64", "Installed: mdadm-4.1-5.fc31.x86_64", "Installed: python3-pyudev-0.21.0-11.fc31.noarch", "Installed: python3-pyparted-1:3.11.2-2.fc31.x86_64", "Installed: libbytesize-2.3-1.fc31.x86_64", "Installed: libaio-0.3.111-6.fc31.x86_64", "Installed: python3-bytesize-2.3-1.fc31.x86_64", "Installed: libblockdev-2.24-2.fc31.x86_64", "Installed: libblockdev-btrfs-2.24-2.fc31.x86_64", "Installed: btrfs-progs-5.7-4.fc31.x86_64", "Installed: libblockdev-crypto-2.24-2.fc31.x86_64", "Installed: ndctl-70.1-1.fc31.x86_64", "Installed: compat-readline5-5.2-34.fc31.x86_64", "Installed: gdisk-1.0.5-1.fc31.x86_64", "Installed: ndctl-libs-70.1-1.fc31.x86_64", "Installed: libblockdev-dm-2.24-2.fc31.x86_64", "Installed: dmraid-events-1.0.0.rc16-43.fc31.x86_64", "Installed: libblockdev-fs-2.24-2.fc31.x86_64"]} TASK [linux-system-roles.storage : initialize internal facts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools": [], "_storage_vol_defaults": [], "_storage_vol_pools": [], "_storage_vols_no_defaults": [], "_storage_vols_no_defaults_by_pool": {}, "_storage_vols_w_defaults": [], "_storage_volumes": []}, "changed": false} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [1/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:28 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [2/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:36 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [3/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:44 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [4/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:52 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [5/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:61 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [6/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:72 TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools": [] } TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes": [] } TASK [linux-system-roles.storage : get required packages] ********************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": []} TASK [linux-system-roles.storage : make sure required packages are installed] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [linux-system-roles.storage : manage the pools and volumes to match the specified state] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:104 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": []} TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:114 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "blivet_output": { "actions": [], "changed": false, "crypts": [], "failed": false, "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": [] } } TASK [linux-system-roles.storage : set the list of pools for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:117 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : set the list of volumes for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:121 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : remove obsolete mounts] ********************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:137 TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:148 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : set up new/current mounts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:153 TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:164 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : Manage /etc/crypttab to account for changes we just made] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:172 TASK [linux-system-roles.storage : Update facts] ******************************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:187 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_create_raid_pool_then_remove.yml:18 included: /tmp/tmp7ksfxpzz/tests/get_unused_disk.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Find unused disks in the system] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/get_unused_disk.yml:2 [WARNING]: The value 0 (type int) in a string field was converted to '0' (type string). If this does not look like what you expect, quote the entire value to ensure it does not change. ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "disks": ["vda", "vdb"]} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/get_unused_disk.yml:8 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"unused_disks": ["vda", "vdb"]}, "changed": false} TASK [Exit playbook when there's not enough unused disks in the system] ******** task path: /tmp/tmp7ksfxpzz/tests/get_unused_disk.yml:12 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Print unused disks] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/get_unused_disk.yml:17 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "unused_disks": [ "vda", "vdb" ] } TASK [Create a RAID0 device] *************************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_create_raid_pool_then_remove.yml:22 TASK [linux-system-roles.storage : Set version specific variables] ************* task path: /tmp/tmp7ksfxpzz/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-crypto", "libblockdev-dm", "libblockdev-lvm", "libblockdev-mdraid", "libblockdev-swap"]}, "ansible_included_var_files": ["/tmp/tmp7ksfxpzz/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.storage : define an empty list of pools to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : define an empty list of volumes to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : include the appropriate provider tasks] ***** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:22 included: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [linux-system-roles.storage : get a list of rpm packages installed on host machine] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : make sure blivet is available] ************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: python3-blivet", "Installed: libblockdev-crypto", "Installed: libblockdev-dm", "Installed: libblockdev-lvm", "Installed: libblockdev-mdraid", "Installed: libblockdev-swap"]} TASK [linux-system-roles.storage : initialize internal facts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools": [], "_storage_vol_defaults": [], "_storage_vol_pools": [], "_storage_vols_no_defaults": [], "_storage_vols_no_defaults_by_pool": {}, "_storage_vols_w_defaults": [], "_storage_volumes": []}, "changed": false} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [1/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:28 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'state': u'present', u'name': u'vg1', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'lv1', u'size': u'2g'}, {u'mount_point': u'/opt/test2', u'name': u'lv2', u'size': u'3g'}, {u'mount_point': u'/opt/test3', u'name': u'lv3', u'size': u'3g'}], u'disks': [u'vda', u'vdb'], u'type': u'lvm', u'raid_level': u'raid0'}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vda", "vdb"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": "raid0", "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "lv1", "size": "2g"}, {"mount_point": "/opt/test2", "name": "lv2", "size": "3g"}, {"mount_point": "/opt/test3", "name": "lv3", "size": "3g"}]}]}, "ansible_loop_var": "pool", "changed": false, "pool": {"disks": ["vda", "vdb"], "name": "vg1", "raid_level": "raid0", "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "lv1", "size": "2g"}, {"mount_point": "/opt/test2", "name": "lv2", "size": "3g"}, {"mount_point": "/opt/test3", "name": "lv3", "size": "3g"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [2/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:36 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'vg1', u'encryption_password': None, u'encryption': False, u'disks': [u'vda', u'vdb'], u'raid_level': u'raid0', u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'lv1', u'size': u'2g'}, {u'mount_point': u'/opt/test2', u'name': u'lv2', u'size': u'3g'}, {u'mount_point': u'/opt/test3', u'name': u'lv3', u'size': u'3g'}], u'type': u'lvm', u'encryption_key_size': None}, {u'mount_point': u'/opt/test1', u'name': u'lv1', u'size': u'2g'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}], "_storage_vol_pools": ["vg1"], "_storage_vols_no_defaults": [{"mount_point": "/opt/test1", "name": "lv1", "size": "2g"}]}, "ansible_loop_var": "item", "changed": false, "item": [{"disks": ["vda", "vdb"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": "raid0", "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "lv1", "size": "2g"}, {"mount_point": "/opt/test2", "name": "lv2", "size": "3g"}, {"mount_point": "/opt/test3", "name": "lv3", "size": "3g"}]}, {"mount_point": "/opt/test1", "name": "lv1", "size": "2g"}]} ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'vg1', u'encryption_password': None, u'encryption': False, u'disks': [u'vda', u'vdb'], u'raid_level': u'raid0', u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'lv1', u'size': u'2g'}, {u'mount_point': u'/opt/test2', u'name': u'lv2', u'size': u'3g'}, {u'mount_point': u'/opt/test3', u'name': u'lv3', u'size': u'3g'}], u'type': u'lvm', u'encryption_key_size': None}, {u'mount_point': u'/opt/test2', u'name': u'lv2', u'size': u'3g'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}], "_storage_vol_pools": ["vg1", "vg1"], "_storage_vols_no_defaults": [{"mount_point": "/opt/test1", "name": "lv1", "size": "2g"}, {"mount_point": "/opt/test2", "name": "lv2", "size": "3g"}]}, "ansible_loop_var": "item", "changed": false, "item": [{"disks": ["vda", "vdb"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": "raid0", "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "lv1", "size": "2g"}, {"mount_point": "/opt/test2", "name": "lv2", "size": "3g"}, {"mount_point": "/opt/test3", "name": "lv3", "size": "3g"}]}, {"mount_point": "/opt/test2", "name": "lv2", "size": "3g"}]} ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'vg1', u'encryption_password': None, u'encryption': False, u'disks': [u'vda', u'vdb'], u'raid_level': u'raid0', u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'lv1', u'size': u'2g'}, {u'mount_point': u'/opt/test2', u'name': u'lv2', u'size': u'3g'}, {u'mount_point': u'/opt/test3', u'name': u'lv3', u'size': u'3g'}], u'type': u'lvm', u'encryption_key_size': None}, {u'mount_point': u'/opt/test3', u'name': u'lv3', u'size': u'3g'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}], "_storage_vol_pools": ["vg1", "vg1", "vg1"], "_storage_vols_no_defaults": [{"mount_point": "/opt/test1", "name": "lv1", "size": "2g"}, {"mount_point": "/opt/test2", "name": "lv2", "size": "3g"}, {"mount_point": "/opt/test3", "name": "lv3", "size": "3g"}]}, "ansible_loop_var": "item", "changed": false, "item": [{"disks": ["vda", "vdb"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": "raid0", "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "lv1", "size": "2g"}, {"mount_point": "/opt/test2", "name": "lv2", "size": "3g"}, {"mount_point": "/opt/test3", "name": "lv3", "size": "3g"}]}, {"mount_point": "/opt/test3", "name": "lv3", "size": "3g"}]} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [3/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:44 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'mount_point': u'/opt/test1', u'name': u'lv1', u'size': u'2g'}, {u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'fs_label': u'', u'raid_level': None, u'mount_device_identifier': u'uuid', u'fs_type': u'xfs', u'mount_options': u'defaults', u'encryption_luks_version': None, u'raid_spare_count': None, u'size': 0, u'mount_point': u'', u'encryption_password': None, u'encryption': False, u'raid_chunk_size': None, u'raid_device_count': None, u'state': u'present', u'mount_check': 0, u'mount_passno': 0, u'fs_overwrite_existing': True, u'type': u'lvm', u'encryption_key_size': None, u'fs_create_options': u''}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "lv1", "pool": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "2g", "state": "present", "type": "lvm"}]}, "ansible_index_var": "idx", "ansible_loop_var": "item", "changed": false, "idx": 0, "item": [{"mount_point": "/opt/test1", "name": "lv1", "size": "2g"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}]} ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'mount_point': u'/opt/test2', u'name': u'lv2', u'size': u'3g'}, {u'raid_metadata_version': None, u'encryption_key_size': None, u'encryption_key': None, u'fs_label': u'', u'raid_chunk_size': None, u'mount_device_identifier': u'uuid', u'fs_type': u'xfs', u'mount_options': u'defaults', u'encryption_luks_version': None, u'raid_spare_count': None, u'size': 0, u'mount_point': u'', u'encryption_password': None, u'encryption': False, u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'mount_check': 0, u'mount_passno': 0, u'fs_overwrite_existing': True, u'type': u'lvm', u'encryption_cipher': None, u'fs_create_options': u''}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "lv1", "pool": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "2g", "state": "present", "type": "lvm"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "lv2", "pool": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm"}]}, "ansible_index_var": "idx", "ansible_loop_var": "item", "changed": false, "idx": 1, "item": [{"mount_point": "/opt/test2", "name": "lv2", "size": "3g"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}]} ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'mount_point': u'/opt/test3', u'name': u'lv3', u'size': u'3g'}, {u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'fs_label': u'', u'raid_level': None, u'mount_device_identifier': u'uuid', u'fs_type': u'xfs', u'mount_options': u'defaults', u'encryption_luks_version': None, u'raid_spare_count': None, u'size': 0, u'mount_point': u'', u'encryption_password': None, u'encryption': False, u'raid_chunk_size': None, u'raid_device_count': None, u'state': u'present', u'mount_check': 0, u'mount_passno': 0, u'fs_overwrite_existing': True, u'type': u'lvm', u'encryption_key_size': None, u'fs_create_options': u''}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "lv1", "pool": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "2g", "state": "present", "type": "lvm"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "lv2", "pool": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test3", "name": "lv3", "pool": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm"}]}, "ansible_index_var": "idx", "ansible_loop_var": "item", "changed": false, "idx": 2, "item": [{"mount_point": "/opt/test3", "name": "lv3", "size": "3g"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}]} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [4/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:52 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'vg1', u'encryption_password': None, u'encryption': False, u'disks': [u'vda', u'vdb'], u'raid_level': u'raid0', u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'lv1', u'size': u'2g'}, {u'mount_point': u'/opt/test2', u'name': u'lv2', u'size': u'3g'}, {u'mount_point': u'/opt/test3', u'name': u'lv3', u'size': u'3g'}], u'type': u'lvm', u'encryption_key_size': None}) => {"ansible_facts": {"_storage_vols_no_defaults_by_pool": {"vg1": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "lv1", "pool": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "2g", "state": "present", "type": "lvm"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "lv2", "pool": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test3", "name": "lv3", "pool": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm"}]}}, "ansible_loop_var": "item", "changed": false, "item": {"disks": ["vda", "vdb"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": "raid0", "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "lv1", "size": "2g"}, {"mount_point": "/opt/test2", "name": "lv2", "size": "3g"}, {"mount_point": "/opt/test3", "name": "lv3", "size": "3g"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [5/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:61 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'vg1', u'encryption_password': None, u'encryption': False, u'disks': [u'vda', u'vdb'], u'raid_level': u'raid0', u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'lv1', u'size': u'2g'}, {u'mount_point': u'/opt/test2', u'name': u'lv2', u'size': u'3g'}, {u'mount_point': u'/opt/test3', u'name': u'lv3', u'size': u'3g'}], u'type': u'lvm', u'encryption_key_size': None}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vda", "vdb"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": "raid0", "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "lv1", "pool": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "2g", "state": "present", "type": "lvm"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "lv2", "pool": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test3", "name": "lv3", "pool": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm"}]}]}, "ansible_index_var": "idx", "ansible_loop_var": "pool", "changed": false, "idx": 0, "pool": {"disks": ["vda", "vdb"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": "raid0", "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "lv1", "size": "2g"}, {"mount_point": "/opt/test2", "name": "lv2", "size": "3g"}, {"mount_point": "/opt/test3", "name": "lv3", "size": "3g"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [6/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:72 TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools": [ { "disks": [ "vda", "vdb" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": "raid0", "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [ { "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "lv1", "pool": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "2g", "state": "present", "type": "lvm" }, { "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "lv2", "pool": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm" }, { "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test3", "name": "lv3", "pool": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm" } ] } ] } TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes": [] } TASK [linux-system-roles.storage : get required packages] ********************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": ["lvm2", "xfsprogs"], "pools": [], "volumes": []} TASK [linux-system-roles.storage : make sure required packages are installed] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: lvm2", "Installed: xfsprogs"]} TASK [linux-system-roles.storage : manage the pools and volumes to match the specified state] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:104 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [{"action": "create format", "device": "/dev/vdb", "fs_type": "disklabel"}, {"action": "create device", "device": "/dev/vdb1", "fs_type": null}, {"action": "create format", "device": "/dev/vdb1", "fs_type": "mdmember"}, {"action": "create format", "device": "/dev/vda", "fs_type": "disklabel"}, {"action": "create device", "device": "/dev/vda1", "fs_type": null}, {"action": "create format", "device": "/dev/vda1", "fs_type": "mdmember"}, {"action": "create device", "device": "/dev/md/vg1-1", "fs_type": null}, {"action": "create format", "device": "/dev/md/vg1-1", "fs_type": "lvmpv"}, {"action": "create device", "device": "/dev/vg1", "fs_type": null}, {"action": "create device", "device": "/dev/mapper/vg1-lv3", "fs_type": null}, {"action": "create format", "device": "/dev/mapper/vg1-lv3", "fs_type": "xfs"}, {"action": "create device", "device": "/dev/mapper/vg1-lv2", "fs_type": null}, {"action": "create format", "device": "/dev/mapper/vg1-lv2", "fs_type": "xfs"}, {"action": "create device", "device": "/dev/mapper/vg1-lv1", "fs_type": null}, {"action": "create format", "device": "/dev/mapper/vg1-lv1", "fs_type": "xfs"}], "changed": true, "crypts": [], "leaves": ["/dev/sda1", "/dev/sr0", "/dev/vdc", "/dev/mapper/vg1-lv1", "/dev/mapper/vg1-lv2", "/dev/mapper/vg1-lv3"], "mounts": [{"dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "/dev/mapper/vg1-lv1", "state": "mounted"}, {"dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test2", "src": "/dev/mapper/vg1-lv2", "state": "mounted"}, {"dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test3", "src": "/dev/mapper/vg1-lv3", "state": "mounted"}], "packages": ["e2fsprogs", "mdadm", "xfsprogs", "lvm2"], "pools": [{"disks": ["vda", "vdb"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": "raid0", "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"_device": "/dev/mapper/vg1-lv1", "_kernel_device": "/dev/dm-2", "_mount_id": "/dev/mapper/vg1-lv1", "_raw_device": "/dev/mapper/vg1-lv1", "_raw_kernel_device": "/dev/dm-2", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "lv1", "pool": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "2g", "state": "present", "type": "lvm"}, {"_device": "/dev/mapper/vg1-lv2", "_kernel_device": "/dev/dm-1", "_mount_id": "/dev/mapper/vg1-lv2", "_raw_device": "/dev/mapper/vg1-lv2", "_raw_kernel_device": "/dev/dm-1", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "lv2", "pool": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm"}, {"_device": "/dev/mapper/vg1-lv3", "_kernel_device": "/dev/dm-0", "_mount_id": "/dev/mapper/vg1-lv3", "_raw_device": "/dev/mapper/vg1-lv3", "_raw_kernel_device": "/dev/dm-0", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test3", "name": "lv3", "pool": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm"}]}], "volumes": []} TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:114 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "blivet_output": { "actions": [ { "action": "create format", "device": "/dev/vdb", "fs_type": "disklabel" }, { "action": "create device", "device": "/dev/vdb1", "fs_type": null }, { "action": "create format", "device": "/dev/vdb1", "fs_type": "mdmember" }, { "action": "create format", "device": "/dev/vda", "fs_type": "disklabel" }, { "action": "create device", "device": "/dev/vda1", "fs_type": null }, { "action": "create format", "device": "/dev/vda1", "fs_type": "mdmember" }, { "action": "create device", "device": "/dev/md/vg1-1", "fs_type": null }, { "action": "create format", "device": "/dev/md/vg1-1", "fs_type": "lvmpv" }, { "action": "create device", "device": "/dev/vg1", "fs_type": null }, { "action": "create device", "device": "/dev/mapper/vg1-lv3", "fs_type": null }, { "action": "create format", "device": "/dev/mapper/vg1-lv3", "fs_type": "xfs" }, { "action": "create device", "device": "/dev/mapper/vg1-lv2", "fs_type": null }, { "action": "create format", "device": "/dev/mapper/vg1-lv2", "fs_type": "xfs" }, { "action": "create device", "device": "/dev/mapper/vg1-lv1", "fs_type": null }, { "action": "create format", "device": "/dev/mapper/vg1-lv1", "fs_type": "xfs" } ], "changed": true, "crypts": [], "failed": false, "leaves": [ "/dev/sda1", "/dev/sr0", "/dev/vdc", "/dev/mapper/vg1-lv1", "/dev/mapper/vg1-lv2", "/dev/mapper/vg1-lv3" ], "mounts": [ { "dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "/dev/mapper/vg1-lv1", "state": "mounted" }, { "dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test2", "src": "/dev/mapper/vg1-lv2", "state": "mounted" }, { "dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test3", "src": "/dev/mapper/vg1-lv3", "state": "mounted" } ], "packages": [ "e2fsprogs", "mdadm", "xfsprogs", "lvm2" ], "pools": [ { "disks": [ "vda", "vdb" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": "raid0", "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [ { "_device": "/dev/mapper/vg1-lv1", "_kernel_device": "/dev/dm-2", "_mount_id": "/dev/mapper/vg1-lv1", "_raw_device": "/dev/mapper/vg1-lv1", "_raw_kernel_device": "/dev/dm-2", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "lv1", "pool": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "2g", "state": "present", "type": "lvm" }, { "_device": "/dev/mapper/vg1-lv2", "_kernel_device": "/dev/dm-1", "_mount_id": "/dev/mapper/vg1-lv2", "_raw_device": "/dev/mapper/vg1-lv2", "_raw_kernel_device": "/dev/dm-1", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "lv2", "pool": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm" }, { "_device": "/dev/mapper/vg1-lv3", "_kernel_device": "/dev/dm-0", "_mount_id": "/dev/mapper/vg1-lv3", "_raw_device": "/dev/mapper/vg1-lv3", "_raw_kernel_device": "/dev/dm-0", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test3", "name": "lv3", "pool": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm" } ] } ], "volumes": [] } } TASK [linux-system-roles.storage : set the list of pools for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:117 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": [{"disks": ["vda", "vdb"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": "raid0", "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"_device": "/dev/mapper/vg1-lv1", "_kernel_device": "/dev/dm-2", "_mount_id": "/dev/mapper/vg1-lv1", "_raw_device": "/dev/mapper/vg1-lv1", "_raw_kernel_device": "/dev/dm-2", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "lv1", "pool": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "2g", "state": "present", "type": "lvm"}, {"_device": "/dev/mapper/vg1-lv2", "_kernel_device": "/dev/dm-1", "_mount_id": "/dev/mapper/vg1-lv2", "_raw_device": "/dev/mapper/vg1-lv2", "_raw_kernel_device": "/dev/dm-1", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "lv2", "pool": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm"}, {"_device": "/dev/mapper/vg1-lv3", "_kernel_device": "/dev/dm-0", "_mount_id": "/dev/mapper/vg1-lv3", "_raw_device": "/dev/mapper/vg1-lv3", "_raw_kernel_device": "/dev/dm-0", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test3", "name": "lv3", "pool": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm"}]}]}, "changed": false} TASK [linux-system-roles.storage : set the list of volumes for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:121 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : remove obsolete mounts] ********************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:137 TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:148 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [linux-system-roles.storage : set up new/current mounts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:153 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'src': u'/dev/mapper/vg1-lv1', u'state': u'mounted', u'dump': 0, u'path': u'/opt/test1', u'passno': 0, u'opts': u'defaults', u'fstype': u'xfs'}) => {"ansible_loop_var": "mount_info", "changed": true, "dump": "0", "fstab": "/etc/fstab", "fstype": "xfs", "mount_info": {"dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "/dev/mapper/vg1-lv1", "state": "mounted"}, "name": "/opt/test1", "opts": "defaults", "passno": "0", "src": "/dev/mapper/vg1-lv1"} changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'src': u'/dev/mapper/vg1-lv2', u'state': u'mounted', u'dump': 0, u'path': u'/opt/test2', u'passno': 0, u'opts': u'defaults', u'fstype': u'xfs'}) => {"ansible_loop_var": "mount_info", "changed": true, "dump": "0", "fstab": "/etc/fstab", "fstype": "xfs", "mount_info": {"dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test2", "src": "/dev/mapper/vg1-lv2", "state": "mounted"}, "name": "/opt/test2", "opts": "defaults", "passno": "0", "src": "/dev/mapper/vg1-lv2"} changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'src': u'/dev/mapper/vg1-lv3', u'state': u'mounted', u'dump': 0, u'path': u'/opt/test3', u'passno': 0, u'opts': u'defaults', u'fstype': u'xfs'}) => {"ansible_loop_var": "mount_info", "changed": true, "dump": "0", "fstab": "/etc/fstab", "fstype": "xfs", "mount_info": {"dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test3", "src": "/dev/mapper/vg1-lv3", "state": "mounted"}, "name": "/opt/test3", "opts": "defaults", "passno": "0", "src": "/dev/mapper/vg1-lv3"} TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:164 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [linux-system-roles.storage : Manage /etc/crypttab to account for changes we just made] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:172 TASK [linux-system-roles.storage : Update facts] ******************************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:187 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_create_raid_pool_then_remove.yml:43 included: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Print out pool information] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:1 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools_list": [ { "disks": [ "vda", "vdb" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": "raid0", "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [ { "_device": "/dev/mapper/vg1-lv1", "_kernel_device": "/dev/dm-2", "_mount_id": "/dev/mapper/vg1-lv1", "_raw_device": "/dev/mapper/vg1-lv1", "_raw_kernel_device": "/dev/dm-2", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "lv1", "pool": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "2g", "state": "present", "type": "lvm" }, { "_device": "/dev/mapper/vg1-lv2", "_kernel_device": "/dev/dm-1", "_mount_id": "/dev/mapper/vg1-lv2", "_raw_device": "/dev/mapper/vg1-lv2", "_raw_kernel_device": "/dev/dm-1", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "lv2", "pool": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm" }, { "_device": "/dev/mapper/vg1-lv3", "_kernel_device": "/dev/dm-0", "_mount_id": "/dev/mapper/vg1-lv3", "_raw_device": "/dev/mapper/vg1-lv3", "_raw_kernel_device": "/dev/dm-0", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test3", "name": "lv3", "pool": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm" } ] } ] } TASK [Print out volume information] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:6 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {} TASK [Collect info about the volumes.] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "info": {"/dev/mapper/vg1-lv1": {"fstype": "xfs", "label": "", "name": "/dev/mapper/vg1-lv1", "size": "2G", "type": "lvm", "uuid": "2fa0cf67-2353-47e6-9cfe-ff45294f60a0"}, "/dev/mapper/vg1-lv2": {"fstype": "xfs", "label": "", "name": "/dev/mapper/vg1-lv2", "size": "3G", "type": "lvm", "uuid": "ca70fe4b-ecd0-4f4b-bce4-811c35f78df9"}, "/dev/mapper/vg1-lv3": {"fstype": "xfs", "label": "", "name": "/dev/mapper/vg1-lv3", "size": "3G", "type": "lvm", "uuid": "b67b7364-17d4-489f-bb9a-df6f449b1753"}, "/dev/md/vg1-1": {"fstype": "LVM2_member", "label": "", "name": "/dev/md/vg1-1", "size": "20G", "type": "raid0", "uuid": "bNK4m4-rkd7-4Z01-Z710-zcLz-1PGt-yweqYZ"}, "/dev/sda": {"fstype": "", "label": "", "name": "/dev/sda", "size": "4G", "type": "disk", "uuid": ""}, "/dev/sda1": {"fstype": "ext4", "label": "", "name": "/dev/sda1", "size": "4G", "type": "partition", "uuid": "03e702b4-e165-4a39-88c9-9e210cd00434"}, "/dev/sr0": {"fstype": "iso9660", "label": "cidata", "name": "/dev/sr0", "size": "364K", "type": "rom", "uuid": "2020-10-31-12-12-43-00"}, "/dev/vda": {"fstype": "", "label": "", "name": "/dev/vda", "size": "10G", "type": "disk", "uuid": ""}, "/dev/vda1": {"fstype": "linux_raid_member", "label": "vg1-1", "name": "/dev/vda1", "size": "10G", "type": "partition", "uuid": "ed591189-5ab2-3a78-35c8-da8e465196ba"}, "/dev/vdb": {"fstype": "", "label": "", "name": "/dev/vdb", "size": "10G", "type": "disk", "uuid": ""}, "/dev/vdb1": {"fstype": "linux_raid_member", "label": "vg1-1", "name": "/dev/vdb1", "size": "10G", "type": "partition", "uuid": "ed591189-5ab2-3a78-35c8-da8e465196ba"}, "/dev/vdc": {"fstype": "", "label": "", "name": "/dev/vdc", "size": "10G", "type": "disk", "uuid": ""}}} TASK [Read the /etc/fstab file for volume existence] *************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:19 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/fstab"], "delta": "0:00:00.002774", "end": "2020-10-31 12:14:23.351158", "rc": 0, "start": "2020-10-31 12:14:23.348384", "stderr": "", "stderr_lines": [], "stdout": "\n#\n# /etc/fstab\n# Created by anaconda on Sat Oct 31 08:17:58 2020\n#\n# Accessible filesystems, by reference, are maintained under '/dev/disk/'.\n# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.\n#\n# After editing this file, run 'systemctl daemon-reload' to update systemd\n# units generated from this file.\n#\nUUID=03e702b4-e165-4a39-88c9-9e210cd00434 / ext4 defaults 1 1\n/dev/mapper/vg1-lv1 /opt/test1 xfs defaults 0 0\n/dev/mapper/vg1-lv2 /opt/test2 xfs defaults 0 0\n/dev/mapper/vg1-lv3 /opt/test3 xfs defaults 0 0", "stdout_lines": ["", "#", "# /etc/fstab", "# Created by anaconda on Sat Oct 31 08:17:58 2020", "#", "# Accessible filesystems, by reference, are maintained under '/dev/disk/'.", "# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.", "#", "# After editing this file, run 'systemctl daemon-reload' to update systemd", "# units generated from this file.", "#", "UUID=03e702b4-e165-4a39-88c9-9e210cd00434 / ext4 defaults 1 1", "/dev/mapper/vg1-lv1 /opt/test1 xfs defaults 0 0", "/dev/mapper/vg1-lv2 /opt/test2 xfs defaults 0 0", "/dev/mapper/vg1-lv3 /opt/test3 xfs defaults 0 0"]} TASK [Read the /etc/crypttab file] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/crypttab"], "delta": "0:00:00.002679", "end": "2020-10-31 12:14:23.700848", "rc": 0, "start": "2020-10-31 12:14:23.698169", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Verify the volumes listed in storage_pools were correctly managed] ******* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:32 included: /tmp/tmp7ksfxpzz/tests/test-verify-pool.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool.yml:5 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pool_tests": ["members", "volumes"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool.yml:17 included: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-pool-volumes.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:1 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_count": "1", "_storage_test_pool_pvs": [], "_storage_test_pool_pvs_lvm": ["/dev/md127"]}, "changed": false} TASK [Get the canonical device path for each member device] ******************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:7 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=/dev/md127) => {"ansible_loop_var": "pv", "changed": false, "device": "/dev/md/vg1-1", "pv": "/dev/md127"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:16 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=/dev/md127) => {"ansible_facts": {"_storage_test_pool_pvs": ["/dev/md/vg1-1"]}, "ansible_index_var": "idx", "ansible_loop_var": "item", "changed": false, "idx": 0, "item": "/dev/md127"} TASK [Verify PV count] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:23 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:29 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_type": "disk"}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:33 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_type": "partition"}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:37 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_type": "raid0"}, "changed": false} TASK [Check the type of each PV] *********************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:41 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=/dev/md/vg1-1) => { "ansible_loop_var": "pv", "changed": false, "msg": "All assertions passed", "pv": "/dev/md/vg1-1" } TASK [Check raid] ************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:50 included: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [get information about RAID] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:6 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["mdadm", "--detail", "/dev/md/vg1-1"], "delta": "0:00:00.007050", "end": "2020-10-31 12:14:25.078804", "rc": 0, "start": "2020-10-31 12:14:25.071754", "stderr": "", "stderr_lines": [], "stdout": "/dev/md/vg1-1:\n Version : 1.2\n Creation Time : Sat Oct 31 12:14:12 2020\n Raid Level : raid0\n Array Size : 20951040 (19.98 GiB 21.45 GB)\n Raid Devices : 2\n Total Devices : 2\n Persistence : Superblock is persistent\n\n Update Time : Sat Oct 31 12:14:12 2020\n State : clean \n Active Devices : 2\n Working Devices : 2\n Failed Devices : 0\n Spare Devices : 0\n\n Chunk Size : 512K\n\nConsistency Policy : none\n\n Name : vg1-1\n UUID : ed591189:5ab23a78:35c8da8e:465196ba\n Events : 0\n\n Number Major Minor RaidDevice State\n 0 252 1 0 active sync /dev/vda1\n 1 252 17 1 active sync /dev/vdb1", "stdout_lines": ["/dev/md/vg1-1:", " Version : 1.2", " Creation Time : Sat Oct 31 12:14:12 2020", " Raid Level : raid0", " Array Size : 20951040 (19.98 GiB 21.45 GB)", " Raid Devices : 2", " Total Devices : 2", " Persistence : Superblock is persistent", "", " Update Time : Sat Oct 31 12:14:12 2020", " State : clean ", " Active Devices : 2", " Working Devices : 2", " Failed Devices : 0", " Spare Devices : 0", "", " Chunk Size : 512K", "", "Consistency Policy : none", "", " Name : vg1-1", " UUID : ed591189:5ab23a78:35c8da8e:465196ba", " Events : 0", "", " Number Major Minor RaidDevice State", " 0 252 1 0 active sync /dev/vda1", " 1 252 17 1 active sync /dev/vdb1"]} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:12 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_md_active_devices_re": "Active\\ Devices\\ \\:\\ None\\\n"}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:16 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_md_spare_devices_re": "Spare\\ Devices\\ \\:\\ None\\\n"}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:20 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_md_metadata_version_re": "Version\\ \\:\\ None\\\n"}, "changed": false} TASK [check RAID active devices count] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:24 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID spare devices count] ****************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:30 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID metadata version] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:36 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:44 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_md_active_devices_re": null, "storage_test_md_metadata_version_re": null, "storage_test_md_spare_devices_re": null}, "changed": false} TASK [Check member encryption] ************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:53 included: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_crypttab_entries": "0", "_storage_test_expected_crypttab_key_file": "-"}, "changed": false} TASK [Validate pool member LUKS settings] ************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:8 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=/dev/md/vg1-1) => {"_storage_test_pool_member_path": "/dev/md/vg1-1", "ansible_loop_var": "_storage_test_pool_member_path", "changed": false, "skip_reason": "Conditional result was False"} TASK [Validate pool member crypttab entries] *********************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:15 included: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:1 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": []}, "changed": false} TASK [Check for /etc/crypttab entry] ******************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Validate the format of the crypttab entry] ******************************* task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:9 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check backing device of crypttab entry] ********************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:15 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check key file of crypttab entry] **************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:27 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:22 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null, "_storage_test_crypttab_key_file": null}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:56 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_count": null, "_storage_test_expected_pv_type": null, "_storage_test_pool_pvs": [], "_storage_test_pool_pvs_lvm": []}, "changed": false} TASK [verify the volumes] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-volumes.yml:3 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": true, "_storage_volume_tests": ["mount", "fstab", "fs", "device", "encryption", "md", "size"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:10 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Get expected mount device based on device type] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/vg1-lv1"}, "changed": false} TASK [Set some facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [{"block_available": 508753, "block_size": 4096, "block_total": 520704, "block_used": 11951, "device": "/dev/mapper/vg1-lv1", "fstype": "xfs", "inode_available": 1046525, "inode_total": 1046528, "inode_used": 3, "mount": "/opt/test1", "options": "rw,seclabel,relatime,attr2,inode64,logbufs=8,logbsize=32k,sunit=1024,swidth=2048,noquota", "size_available": 2083852288, "size_total": 2132803584, "uuid": "2fa0cf67-2353-47e6-9cfe-ff45294f60a0"}], "storage_test_mount_expected_match_count": "1", "storage_test_mount_point_matches": [{"block_available": 508753, "block_size": 4096, "block_total": 520704, "block_used": 11951, "device": "/dev/mapper/vg1-lv1", "fstype": "xfs", "inode_available": 1046525, "inode_total": 1046528, "inode_used": 3, "mount": "/opt/test1", "options": "rw,seclabel,relatime,attr2,inode64,logbufs=8,logbsize=32k,sunit=1024,swidth=2048,noquota", "size_available": 2083852288, "size_total": 2132803584, "uuid": "2fa0cf67-2353-47e6-9cfe-ff45294f60a0"}], "storage_test_swap_expected_matches": "0"}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:22 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:31 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:39 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [command] ***************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Gather swap info] ******************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:52 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify swap status] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:57 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Unset facts] ************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:67 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null, "storage_test_swap_expected_matches": null, "storage_test_swaps": null, "storage_test_sys_node": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": "1", "storage_test_fstab_expected_mount_point_matches": "1", "storage_test_fstab_id_matches": ["/dev/mapper/vg1-lv1 "], "storage_test_fstab_mount_point_matches": [" /opt/test1 "]}, "changed": false} TASK [Verify that the device identifier appears in /etc/fstab] ***************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:17 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": null, "storage_test_fstab_expected_mount_point_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [Verify fs type] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify fs label] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [See whether the device node is present] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "stat": {"atime": 1604146458.5136347, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "ctime": 1604146458.5136347, "dev": 5, "device_type": 64770, "executable": false, "exists": true, "gid": 6, "gr_name": "disk", "inode": 48168, "isblk": true, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mimetype": "inode/symlink", "mode": "0660", "mtime": 1604146458.5136347, "nlink": 1, "path": "/dev/mapper/vg1-lv1", "pw_name": "root", "readable": true, "rgrp": true, "roth": false, "rusr": true, "size": 0, "uid": 0, "version": null, "wgrp": true, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}} TASK [Verify the presence/absence of the device node] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "lvm"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:28 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:33 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Stat the LUKS device, if encrypted] ************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:3 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Collect LUKS info for this volume] *************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:10 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the presence/absence of the LUKS device node] ********************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:16 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify that the raw device is the same as the device if not encrypted] *** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:25 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about the LUKS volume if encrypted] **************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the LUKS volume's device type if encrypted] *********************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS version] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:42 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS key size] ***************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS cipher] ******************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:54 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:60 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": [], "_storage_test_expected_crypttab_entries": "0", "_storage_test_expected_crypttab_key_file": "-"}, "changed": false} TASK [Check for /etc/crypttab entry] ******************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:65 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Validate the format of the crypttab entry] ******************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:70 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check backing device of crypttab entry] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:76 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check key file of crypttab entry] **************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:82 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:88 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null, "_storage_test_expected_crypttab_entries": null, "_storage_test_expected_crypttab_key_file": null}, "changed": false} TASK [get information about RAID] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:7 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:13 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:17 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID active devices count] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:25 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID spare devices count] ****************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID metadata version] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [parse the actual size of the volume] ************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:3 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"bytes": 2147483648, "changed": false, "lvm": "2g", "parted": "2GiB", "size": "2 GiB"} TASK [parse the requested size of the volume] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:9 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"bytes": 2147483648, "changed": false, "lvm": "2g", "parted": "2GiB", "size": "2 GiB"} TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:15 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_actual_size": { "bytes": 2147483648, "changed": false, "failed": false, "lvm": "2g", "parted": "2GiB", "size": "2 GiB" } } TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_requested_size": { "bytes": 2147483648, "changed": false, "failed": false, "lvm": "2g", "parted": "2GiB", "size": "2 GiB" } } TASK [assert] ****************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:21 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:16 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": true, "_storage_volume_tests": ["mount", "fstab", "fs", "device", "encryption", "md", "size"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:10 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Get expected mount device based on device type] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/vg1-lv2"}, "changed": false} TASK [Set some facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [{"block_available": 769066, "block_size": 4096, "block_total": 782848, "block_used": 13782, "device": "/dev/mapper/vg1-lv2", "fstype": "xfs", "inode_available": 1570813, "inode_total": 1570816, "inode_used": 3, "mount": "/opt/test2", "options": "rw,seclabel,relatime,attr2,inode64,logbufs=8,logbsize=32k,sunit=1024,swidth=2048,noquota", "size_available": 3150094336, "size_total": 3206545408, "uuid": "ca70fe4b-ecd0-4f4b-bce4-811c35f78df9"}], "storage_test_mount_expected_match_count": "1", "storage_test_mount_point_matches": [{"block_available": 769066, "block_size": 4096, "block_total": 782848, "block_used": 13782, "device": "/dev/mapper/vg1-lv2", "fstype": "xfs", "inode_available": 1570813, "inode_total": 1570816, "inode_used": 3, "mount": "/opt/test2", "options": "rw,seclabel,relatime,attr2,inode64,logbufs=8,logbsize=32k,sunit=1024,swidth=2048,noquota", "size_available": 3150094336, "size_total": 3206545408, "uuid": "ca70fe4b-ecd0-4f4b-bce4-811c35f78df9"}], "storage_test_swap_expected_matches": "0"}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:22 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:31 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:39 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [command] ***************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Gather swap info] ******************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:52 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify swap status] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:57 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Unset facts] ************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:67 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null, "storage_test_swap_expected_matches": null, "storage_test_swaps": null, "storage_test_sys_node": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": "1", "storage_test_fstab_expected_mount_point_matches": "1", "storage_test_fstab_id_matches": ["/dev/mapper/vg1-lv2 "], "storage_test_fstab_mount_point_matches": [" /opt/test2 "]}, "changed": false} TASK [Verify that the device identifier appears in /etc/fstab] ***************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:17 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": null, "storage_test_fstab_expected_mount_point_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [Verify fs type] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify fs label] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [See whether the device node is present] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "stat": {"atime": 1604146458.3186347, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "ctime": 1604146458.3186347, "dev": 5, "device_type": 64769, "executable": false, "exists": true, "gid": 6, "gr_name": "disk", "inode": 48167, "isblk": true, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mimetype": "inode/symlink", "mode": "0660", "mtime": 1604146458.3186347, "nlink": 1, "path": "/dev/mapper/vg1-lv2", "pw_name": "root", "readable": true, "rgrp": true, "roth": false, "rusr": true, "size": 0, "uid": 0, "version": null, "wgrp": true, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}} TASK [Verify the presence/absence of the device node] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "lvm"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:28 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:33 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Stat the LUKS device, if encrypted] ************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:3 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Collect LUKS info for this volume] *************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:10 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the presence/absence of the LUKS device node] ********************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:16 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify that the raw device is the same as the device if not encrypted] *** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:25 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about the LUKS volume if encrypted] **************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the LUKS volume's device type if encrypted] *********************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS version] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:42 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS key size] ***************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS cipher] ******************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:54 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:60 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": [], "_storage_test_expected_crypttab_entries": "0", "_storage_test_expected_crypttab_key_file": "-"}, "changed": false} TASK [Check for /etc/crypttab entry] ******************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:65 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Validate the format of the crypttab entry] ******************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:70 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check backing device of crypttab entry] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:76 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check key file of crypttab entry] **************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:82 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:88 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null, "_storage_test_expected_crypttab_entries": null, "_storage_test_expected_crypttab_key_file": null}, "changed": false} TASK [get information about RAID] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:7 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:13 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:17 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID active devices count] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:25 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID spare devices count] ****************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID metadata version] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [parse the actual size of the volume] ************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:3 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"bytes": 3221225472, "changed": false, "lvm": "3g", "parted": "3GiB", "size": "3 GiB"} TASK [parse the requested size of the volume] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:9 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"bytes": 3221225472, "changed": false, "lvm": "3g", "parted": "3GiB", "size": "3 GiB"} TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:15 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_actual_size": { "bytes": 3221225472, "changed": false, "failed": false, "lvm": "3g", "parted": "3GiB", "size": "3 GiB" } } TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_requested_size": { "bytes": 3221225472, "changed": false, "failed": false, "lvm": "3g", "parted": "3GiB", "size": "3 GiB" } } TASK [assert] ****************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:21 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:16 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": true, "_storage_volume_tests": ["mount", "fstab", "fs", "device", "encryption", "md", "size"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:10 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Get expected mount device based on device type] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/vg1-lv3"}, "changed": false} TASK [Set some facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [{"block_available": 769066, "block_size": 4096, "block_total": 782848, "block_used": 13782, "device": "/dev/mapper/vg1-lv3", "fstype": "xfs", "inode_available": 1570813, "inode_total": 1570816, "inode_used": 3, "mount": "/opt/test3", "options": "rw,seclabel,relatime,attr2,inode64,logbufs=8,logbsize=32k,sunit=1024,swidth=2048,noquota", "size_available": 3150094336, "size_total": 3206545408, "uuid": "b67b7364-17d4-489f-bb9a-df6f449b1753"}], "storage_test_mount_expected_match_count": "1", "storage_test_mount_point_matches": [{"block_available": 769066, "block_size": 4096, "block_total": 782848, "block_used": 13782, "device": "/dev/mapper/vg1-lv3", "fstype": "xfs", "inode_available": 1570813, "inode_total": 1570816, "inode_used": 3, "mount": "/opt/test3", "options": "rw,seclabel,relatime,attr2,inode64,logbufs=8,logbsize=32k,sunit=1024,swidth=2048,noquota", "size_available": 3150094336, "size_total": 3206545408, "uuid": "b67b7364-17d4-489f-bb9a-df6f449b1753"}], "storage_test_swap_expected_matches": "0"}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:22 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:31 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:39 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [command] ***************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Gather swap info] ******************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:52 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify swap status] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:57 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Unset facts] ************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:67 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null, "storage_test_swap_expected_matches": null, "storage_test_swaps": null, "storage_test_sys_node": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": "1", "storage_test_fstab_expected_mount_point_matches": "1", "storage_test_fstab_id_matches": ["/dev/mapper/vg1-lv3 "], "storage_test_fstab_mount_point_matches": [" /opt/test3 "]}, "changed": false} TASK [Verify that the device identifier appears in /etc/fstab] ***************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:17 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": null, "storage_test_fstab_expected_mount_point_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [Verify fs type] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify fs label] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [See whether the device node is present] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "stat": {"atime": 1604146458.1336348, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "ctime": 1604146458.1336348, "dev": 5, "device_type": 64768, "executable": false, "exists": true, "gid": 6, "gr_name": "disk", "inode": 48166, "isblk": true, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mimetype": "inode/symlink", "mode": "0660", "mtime": 1604146458.1336348, "nlink": 1, "path": "/dev/mapper/vg1-lv3", "pw_name": "root", "readable": true, "rgrp": true, "roth": false, "rusr": true, "size": 0, "uid": 0, "version": null, "wgrp": true, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}} TASK [Verify the presence/absence of the device node] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "lvm"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:28 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:33 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Stat the LUKS device, if encrypted] ************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:3 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Collect LUKS info for this volume] *************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:10 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the presence/absence of the LUKS device node] ********************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:16 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify that the raw device is the same as the device if not encrypted] *** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:25 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about the LUKS volume if encrypted] **************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the LUKS volume's device type if encrypted] *********************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS version] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:42 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS key size] ***************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS cipher] ******************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:54 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:60 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": [], "_storage_test_expected_crypttab_entries": "0", "_storage_test_expected_crypttab_key_file": "-"}, "changed": false} TASK [Check for /etc/crypttab entry] ******************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:65 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Validate the format of the crypttab entry] ******************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:70 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check backing device of crypttab entry] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:76 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check key file of crypttab entry] **************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:82 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:88 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null, "_storage_test_expected_crypttab_entries": null, "_storage_test_expected_crypttab_key_file": null}, "changed": false} TASK [get information about RAID] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:7 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:13 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:17 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID active devices count] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:25 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID spare devices count] ****************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID metadata version] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [parse the actual size of the volume] ************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:3 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"bytes": 3221225472, "changed": false, "lvm": "3g", "parted": "3GiB", "size": "3 GiB"} TASK [parse the requested size of the volume] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:9 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"bytes": 3221225472, "changed": false, "lvm": "3g", "parted": "3GiB", "size": "3 GiB"} TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:15 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_actual_size": { "bytes": 3221225472, "changed": false, "failed": false, "lvm": "3g", "parted": "3GiB", "size": "3 GiB" } } TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_requested_size": { "bytes": 3221225472, "changed": false, "failed": false, "lvm": "3g", "parted": "3GiB", "size": "3 GiB" } } TASK [assert] ****************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:21 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:16 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:39 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_pool": null}, "changed": false} TASK [Verify the volumes with no pool were correctly managed] ****************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:46 TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:56 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_blkinfo": null, "storage_test_crypttab": null, "storage_test_fstab": null, "storage_test_volume": null}, "changed": false} TASK [Repeat the previous invocation to verify idempotence] ******************** task path: /tmp/tmp7ksfxpzz/tests/tests_create_raid_pool_then_remove.yml:45 TASK [linux-system-roles.storage : Set version specific variables] ************* task path: /tmp/tmp7ksfxpzz/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-crypto", "libblockdev-dm", "libblockdev-lvm", "libblockdev-mdraid", "libblockdev-swap"]}, "ansible_included_var_files": ["/tmp/tmp7ksfxpzz/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.storage : define an empty list of pools to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : define an empty list of volumes to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : include the appropriate provider tasks] ***** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:22 included: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [linux-system-roles.storage : get a list of rpm packages installed on host machine] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : make sure blivet is available] ************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: python3-blivet", "Installed: libblockdev-crypto", "Installed: libblockdev-dm", "Installed: libblockdev-lvm", "Installed: libblockdev-mdraid", "Installed: libblockdev-swap"]} TASK [linux-system-roles.storage : initialize internal facts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools": [], "_storage_vol_defaults": [], "_storage_vol_pools": [], "_storage_vols_no_defaults": [], "_storage_vols_no_defaults_by_pool": {}, "_storage_vols_w_defaults": [], "_storage_volumes": []}, "changed": false} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [1/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:28 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'state': u'present', u'name': u'vg1', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'lv1', u'size': u'2g'}, {u'mount_point': u'/opt/test2', u'name': u'lv2', u'size': u'3g'}, {u'mount_point': u'/opt/test3', u'name': u'lv3', u'size': u'3g'}], u'disks': [u'vda', u'vdb'], u'type': u'lvm', u'raid_level': u'raid0'}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vda", "vdb"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": "raid0", "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "lv1", "size": "2g"}, {"mount_point": "/opt/test2", "name": "lv2", "size": "3g"}, {"mount_point": "/opt/test3", "name": "lv3", "size": "3g"}]}]}, "ansible_loop_var": "pool", "changed": false, "pool": {"disks": ["vda", "vdb"], "name": "vg1", "raid_level": "raid0", "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "lv1", "size": "2g"}, {"mount_point": "/opt/test2", "name": "lv2", "size": "3g"}, {"mount_point": "/opt/test3", "name": "lv3", "size": "3g"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [2/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:36 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'vg1', u'encryption_password': None, u'encryption': False, u'disks': [u'vda', u'vdb'], u'raid_level': u'raid0', u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'lv1', u'size': u'2g'}, {u'mount_point': u'/opt/test2', u'name': u'lv2', u'size': u'3g'}, {u'mount_point': u'/opt/test3', u'name': u'lv3', u'size': u'3g'}], u'type': u'lvm', u'encryption_key_size': None}, {u'mount_point': u'/opt/test1', u'name': u'lv1', u'size': u'2g'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}], "_storage_vol_pools": ["vg1"], "_storage_vols_no_defaults": [{"mount_point": "/opt/test1", "name": "lv1", "size": "2g"}]}, "ansible_loop_var": "item", "changed": false, "item": [{"disks": ["vda", "vdb"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": "raid0", "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "lv1", "size": "2g"}, {"mount_point": "/opt/test2", "name": "lv2", "size": "3g"}, {"mount_point": "/opt/test3", "name": "lv3", "size": "3g"}]}, {"mount_point": "/opt/test1", "name": "lv1", "size": "2g"}]} ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'vg1', u'encryption_password': None, u'encryption': False, u'disks': [u'vda', u'vdb'], u'raid_level': u'raid0', u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'lv1', u'size': u'2g'}, {u'mount_point': u'/opt/test2', u'name': u'lv2', u'size': u'3g'}, {u'mount_point': u'/opt/test3', u'name': u'lv3', u'size': u'3g'}], u'type': u'lvm', u'encryption_key_size': None}, {u'mount_point': u'/opt/test2', u'name': u'lv2', u'size': u'3g'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}], "_storage_vol_pools": ["vg1", "vg1"], "_storage_vols_no_defaults": [{"mount_point": "/opt/test1", "name": "lv1", "size": "2g"}, {"mount_point": "/opt/test2", "name": "lv2", "size": "3g"}]}, "ansible_loop_var": "item", "changed": false, "item": [{"disks": ["vda", "vdb"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": "raid0", "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "lv1", "size": "2g"}, {"mount_point": "/opt/test2", "name": "lv2", "size": "3g"}, {"mount_point": "/opt/test3", "name": "lv3", "size": "3g"}]}, {"mount_point": "/opt/test2", "name": "lv2", "size": "3g"}]} ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'vg1', u'encryption_password': None, u'encryption': False, u'disks': [u'vda', u'vdb'], u'raid_level': u'raid0', u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'lv1', u'size': u'2g'}, {u'mount_point': u'/opt/test2', u'name': u'lv2', u'size': u'3g'}, {u'mount_point': u'/opt/test3', u'name': u'lv3', u'size': u'3g'}], u'type': u'lvm', u'encryption_key_size': None}, {u'mount_point': u'/opt/test3', u'name': u'lv3', u'size': u'3g'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}], "_storage_vol_pools": ["vg1", "vg1", "vg1"], "_storage_vols_no_defaults": [{"mount_point": "/opt/test1", "name": "lv1", "size": "2g"}, {"mount_point": "/opt/test2", "name": "lv2", "size": "3g"}, {"mount_point": "/opt/test3", "name": "lv3", "size": "3g"}]}, "ansible_loop_var": "item", "changed": false, "item": [{"disks": ["vda", "vdb"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": "raid0", "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "lv1", "size": "2g"}, {"mount_point": "/opt/test2", "name": "lv2", "size": "3g"}, {"mount_point": "/opt/test3", "name": "lv3", "size": "3g"}]}, {"mount_point": "/opt/test3", "name": "lv3", "size": "3g"}]} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [3/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:44 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'mount_point': u'/opt/test1', u'name': u'lv1', u'size': u'2g'}, {u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'fs_label': u'', u'raid_level': None, u'mount_device_identifier': u'uuid', u'fs_type': u'xfs', u'mount_options': u'defaults', u'encryption_luks_version': None, u'raid_spare_count': None, u'size': 0, u'mount_point': u'', u'encryption_password': None, u'encryption': False, u'raid_chunk_size': None, u'raid_device_count': None, u'state': u'present', u'mount_check': 0, u'mount_passno': 0, u'fs_overwrite_existing': True, u'type': u'lvm', u'encryption_key_size': None, u'fs_create_options': u''}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "lv1", "pool": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "2g", "state": "present", "type": "lvm"}]}, "ansible_index_var": "idx", "ansible_loop_var": "item", "changed": false, "idx": 0, "item": [{"mount_point": "/opt/test1", "name": "lv1", "size": "2g"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}]} ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'mount_point': u'/opt/test2', u'name': u'lv2', u'size': u'3g'}, {u'raid_metadata_version': None, u'encryption_key_size': None, u'encryption_key': None, u'fs_label': u'', u'raid_chunk_size': None, u'mount_device_identifier': u'uuid', u'fs_type': u'xfs', u'mount_options': u'defaults', u'encryption_luks_version': None, u'raid_spare_count': None, u'size': 0, u'mount_point': u'', u'encryption_password': None, u'encryption': False, u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'mount_check': 0, u'mount_passno': 0, u'fs_overwrite_existing': True, u'type': u'lvm', u'encryption_cipher': None, u'fs_create_options': u''}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "lv1", "pool": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "2g", "state": "present", "type": "lvm"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "lv2", "pool": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm"}]}, "ansible_index_var": "idx", "ansible_loop_var": "item", "changed": false, "idx": 1, "item": [{"mount_point": "/opt/test2", "name": "lv2", "size": "3g"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}]} ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'mount_point': u'/opt/test3', u'name': u'lv3', u'size': u'3g'}, {u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'fs_label': u'', u'raid_level': None, u'mount_device_identifier': u'uuid', u'fs_type': u'xfs', u'mount_options': u'defaults', u'encryption_luks_version': None, u'raid_spare_count': None, u'size': 0, u'mount_point': u'', u'encryption_password': None, u'encryption': False, u'raid_chunk_size': None, u'raid_device_count': None, u'state': u'present', u'mount_check': 0, u'mount_passno': 0, u'fs_overwrite_existing': True, u'type': u'lvm', u'encryption_key_size': None, u'fs_create_options': u''}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "lv1", "pool": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "2g", "state": "present", "type": "lvm"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "lv2", "pool": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test3", "name": "lv3", "pool": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm"}]}, "ansible_index_var": "idx", "ansible_loop_var": "item", "changed": false, "idx": 2, "item": [{"mount_point": "/opt/test3", "name": "lv3", "size": "3g"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}]} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [4/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:52 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'vg1', u'encryption_password': None, u'encryption': False, u'disks': [u'vda', u'vdb'], u'raid_level': u'raid0', u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'lv1', u'size': u'2g'}, {u'mount_point': u'/opt/test2', u'name': u'lv2', u'size': u'3g'}, {u'mount_point': u'/opt/test3', u'name': u'lv3', u'size': u'3g'}], u'type': u'lvm', u'encryption_key_size': None}) => {"ansible_facts": {"_storage_vols_no_defaults_by_pool": {"vg1": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "lv1", "pool": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "2g", "state": "present", "type": "lvm"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "lv2", "pool": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test3", "name": "lv3", "pool": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm"}]}}, "ansible_loop_var": "item", "changed": false, "item": {"disks": ["vda", "vdb"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": "raid0", "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "lv1", "size": "2g"}, {"mount_point": "/opt/test2", "name": "lv2", "size": "3g"}, {"mount_point": "/opt/test3", "name": "lv3", "size": "3g"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [5/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:61 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'vg1', u'encryption_password': None, u'encryption': False, u'disks': [u'vda', u'vdb'], u'raid_level': u'raid0', u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'lv1', u'size': u'2g'}, {u'mount_point': u'/opt/test2', u'name': u'lv2', u'size': u'3g'}, {u'mount_point': u'/opt/test3', u'name': u'lv3', u'size': u'3g'}], u'type': u'lvm', u'encryption_key_size': None}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vda", "vdb"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": "raid0", "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "lv1", "pool": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "2g", "state": "present", "type": "lvm"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "lv2", "pool": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test3", "name": "lv3", "pool": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm"}]}]}, "ansible_index_var": "idx", "ansible_loop_var": "pool", "changed": false, "idx": 0, "pool": {"disks": ["vda", "vdb"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": "raid0", "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "lv1", "size": "2g"}, {"mount_point": "/opt/test2", "name": "lv2", "size": "3g"}, {"mount_point": "/opt/test3", "name": "lv3", "size": "3g"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [6/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:72 TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools": [ { "disks": [ "vda", "vdb" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": "raid0", "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [ { "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "lv1", "pool": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "2g", "state": "present", "type": "lvm" }, { "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "lv2", "pool": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm" }, { "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test3", "name": "lv3", "pool": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm" } ] } ] } TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes": [] } TASK [linux-system-roles.storage : get required packages] ********************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": ["lvm2", "xfsprogs"], "pools": [], "volumes": []} TASK [linux-system-roles.storage : make sure required packages are installed] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: lvm2", "Installed: xfsprogs"]} TASK [linux-system-roles.storage : manage the pools and volumes to match the specified state] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:104 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": ["/dev/sda1", "/dev/sr0", "/dev/mapper/vg1-lv1", "/dev/mapper/vg1-lv2", "/dev/mapper/vg1-lv3", "/dev/vdc"], "mounts": [{"dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "/dev/mapper/vg1-lv1", "state": "mounted"}, {"dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test2", "src": "/dev/mapper/vg1-lv2", "state": "mounted"}, {"dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test3", "src": "/dev/mapper/vg1-lv3", "state": "mounted"}], "packages": ["xfsprogs", "e2fsprogs", "mdadm", "lvm2"], "pools": [{"disks": ["vda", "vdb"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": "raid0", "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"_device": "/dev/mapper/vg1-lv1", "_kernel_device": "/dev/dm-2", "_mount_id": "/dev/mapper/vg1-lv1", "_raw_device": "/dev/mapper/vg1-lv1", "_raw_kernel_device": "/dev/dm-2", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "lv1", "pool": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "2g", "state": "present", "type": "lvm"}, {"_device": "/dev/mapper/vg1-lv2", "_kernel_device": "/dev/dm-1", "_mount_id": "/dev/mapper/vg1-lv2", "_raw_device": "/dev/mapper/vg1-lv2", "_raw_kernel_device": "/dev/dm-1", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "lv2", "pool": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm"}, {"_device": "/dev/mapper/vg1-lv3", "_kernel_device": "/dev/dm-0", "_mount_id": "/dev/mapper/vg1-lv3", "_raw_device": "/dev/mapper/vg1-lv3", "_raw_kernel_device": "/dev/dm-0", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test3", "name": "lv3", "pool": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm"}]}], "volumes": []} TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:114 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "blivet_output": { "actions": [], "changed": false, "crypts": [], "failed": false, "leaves": [ "/dev/sda1", "/dev/sr0", "/dev/mapper/vg1-lv1", "/dev/mapper/vg1-lv2", "/dev/mapper/vg1-lv3", "/dev/vdc" ], "mounts": [ { "dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "/dev/mapper/vg1-lv1", "state": "mounted" }, { "dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test2", "src": "/dev/mapper/vg1-lv2", "state": "mounted" }, { "dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test3", "src": "/dev/mapper/vg1-lv3", "state": "mounted" } ], "packages": [ "xfsprogs", "e2fsprogs", "mdadm", "lvm2" ], "pools": [ { "disks": [ "vda", "vdb" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": "raid0", "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [ { "_device": "/dev/mapper/vg1-lv1", "_kernel_device": "/dev/dm-2", "_mount_id": "/dev/mapper/vg1-lv1", "_raw_device": "/dev/mapper/vg1-lv1", "_raw_kernel_device": "/dev/dm-2", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "lv1", "pool": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "2g", "state": "present", "type": "lvm" }, { "_device": "/dev/mapper/vg1-lv2", "_kernel_device": "/dev/dm-1", "_mount_id": "/dev/mapper/vg1-lv2", "_raw_device": "/dev/mapper/vg1-lv2", "_raw_kernel_device": "/dev/dm-1", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "lv2", "pool": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm" }, { "_device": "/dev/mapper/vg1-lv3", "_kernel_device": "/dev/dm-0", "_mount_id": "/dev/mapper/vg1-lv3", "_raw_device": "/dev/mapper/vg1-lv3", "_raw_kernel_device": "/dev/dm-0", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test3", "name": "lv3", "pool": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm" } ] } ], "volumes": [] } } TASK [linux-system-roles.storage : set the list of pools for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:117 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": [{"disks": ["vda", "vdb"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": "raid0", "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"_device": "/dev/mapper/vg1-lv1", "_kernel_device": "/dev/dm-2", "_mount_id": "/dev/mapper/vg1-lv1", "_raw_device": "/dev/mapper/vg1-lv1", "_raw_kernel_device": "/dev/dm-2", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "lv1", "pool": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "2g", "state": "present", "type": "lvm"}, {"_device": "/dev/mapper/vg1-lv2", "_kernel_device": "/dev/dm-1", "_mount_id": "/dev/mapper/vg1-lv2", "_raw_device": "/dev/mapper/vg1-lv2", "_raw_kernel_device": "/dev/dm-1", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "lv2", "pool": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm"}, {"_device": "/dev/mapper/vg1-lv3", "_kernel_device": "/dev/dm-0", "_mount_id": "/dev/mapper/vg1-lv3", "_raw_device": "/dev/mapper/vg1-lv3", "_raw_kernel_device": "/dev/dm-0", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test3", "name": "lv3", "pool": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm"}]}]}, "changed": false} TASK [linux-system-roles.storage : set the list of volumes for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:121 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : remove obsolete mounts] ********************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:137 TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:148 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [linux-system-roles.storage : set up new/current mounts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:153 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'src': u'/dev/mapper/vg1-lv1', u'state': u'mounted', u'dump': 0, u'path': u'/opt/test1', u'passno': 0, u'opts': u'defaults', u'fstype': u'xfs'}) => {"ansible_loop_var": "mount_info", "changed": false, "dump": "0", "fstab": "/etc/fstab", "fstype": "xfs", "mount_info": {"dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "/dev/mapper/vg1-lv1", "state": "mounted"}, "name": "/opt/test1", "opts": "defaults", "passno": "0", "src": "/dev/mapper/vg1-lv1"} ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'src': u'/dev/mapper/vg1-lv2', u'state': u'mounted', u'dump': 0, u'path': u'/opt/test2', u'passno': 0, u'opts': u'defaults', u'fstype': u'xfs'}) => {"ansible_loop_var": "mount_info", "changed": false, "dump": "0", "fstab": "/etc/fstab", "fstype": "xfs", "mount_info": {"dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test2", "src": "/dev/mapper/vg1-lv2", "state": "mounted"}, "name": "/opt/test2", "opts": "defaults", "passno": "0", "src": "/dev/mapper/vg1-lv2"} ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'src': u'/dev/mapper/vg1-lv3', u'state': u'mounted', u'dump': 0, u'path': u'/opt/test3', u'passno': 0, u'opts': u'defaults', u'fstype': u'xfs'}) => {"ansible_loop_var": "mount_info", "changed": false, "dump": "0", "fstab": "/etc/fstab", "fstype": "xfs", "mount_info": {"dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test3", "src": "/dev/mapper/vg1-lv3", "state": "mounted"}, "name": "/opt/test3", "opts": "defaults", "passno": "0", "src": "/dev/mapper/vg1-lv3"} TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:164 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [linux-system-roles.storage : Manage /etc/crypttab to account for changes we just made] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:172 TASK [linux-system-roles.storage : Update facts] ******************************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:187 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_create_raid_pool_then_remove.yml:66 included: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Print out pool information] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:1 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools_list": [ { "disks": [ "vda", "vdb" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": "raid0", "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [ { "_device": "/dev/mapper/vg1-lv1", "_kernel_device": "/dev/dm-2", "_mount_id": "/dev/mapper/vg1-lv1", "_raw_device": "/dev/mapper/vg1-lv1", "_raw_kernel_device": "/dev/dm-2", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "lv1", "pool": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "2g", "state": "present", "type": "lvm" }, { "_device": "/dev/mapper/vg1-lv2", "_kernel_device": "/dev/dm-1", "_mount_id": "/dev/mapper/vg1-lv2", "_raw_device": "/dev/mapper/vg1-lv2", "_raw_kernel_device": "/dev/dm-1", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "lv2", "pool": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm" }, { "_device": "/dev/mapper/vg1-lv3", "_kernel_device": "/dev/dm-0", "_mount_id": "/dev/mapper/vg1-lv3", "_raw_device": "/dev/mapper/vg1-lv3", "_raw_kernel_device": "/dev/dm-0", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test3", "name": "lv3", "pool": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm" } ] } ] } TASK [Print out volume information] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:6 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {} TASK [Collect info about the volumes.] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "info": {"/dev/mapper/vg1-lv1": {"fstype": "xfs", "label": "", "name": "/dev/mapper/vg1-lv1", "size": "2G", "type": "lvm", "uuid": "2fa0cf67-2353-47e6-9cfe-ff45294f60a0"}, "/dev/mapper/vg1-lv2": {"fstype": "xfs", "label": "", "name": "/dev/mapper/vg1-lv2", "size": "3G", "type": "lvm", "uuid": "ca70fe4b-ecd0-4f4b-bce4-811c35f78df9"}, "/dev/mapper/vg1-lv3": {"fstype": "xfs", "label": "", "name": "/dev/mapper/vg1-lv3", "size": "3G", "type": "lvm", "uuid": "b67b7364-17d4-489f-bb9a-df6f449b1753"}, "/dev/md/vg1-1": {"fstype": "LVM2_member", "label": "", "name": "/dev/md/vg1-1", "size": "20G", "type": "raid0", "uuid": "bNK4m4-rkd7-4Z01-Z710-zcLz-1PGt-yweqYZ"}, "/dev/sda": {"fstype": "", "label": "", "name": "/dev/sda", "size": "4G", "type": "disk", "uuid": ""}, "/dev/sda1": {"fstype": "ext4", "label": "", "name": "/dev/sda1", "size": "4G", "type": "partition", "uuid": "03e702b4-e165-4a39-88c9-9e210cd00434"}, "/dev/sr0": {"fstype": "iso9660", "label": "cidata", "name": "/dev/sr0", "size": "364K", "type": "rom", "uuid": "2020-10-31-12-12-43-00"}, "/dev/vda": {"fstype": "", "label": "", "name": "/dev/vda", "size": "10G", "type": "disk", "uuid": ""}, "/dev/vda1": {"fstype": "linux_raid_member", "label": "vg1-1", "name": "/dev/vda1", "size": "10G", "type": "partition", "uuid": "ed591189-5ab2-3a78-35c8-da8e465196ba"}, "/dev/vdb": {"fstype": "", "label": "", "name": "/dev/vdb", "size": "10G", "type": "disk", "uuid": ""}, "/dev/vdb1": {"fstype": "linux_raid_member", "label": "vg1-1", "name": "/dev/vdb1", "size": "10G", "type": "partition", "uuid": "ed591189-5ab2-3a78-35c8-da8e465196ba"}, "/dev/vdc": {"fstype": "", "label": "", "name": "/dev/vdc", "size": "10G", "type": "disk", "uuid": ""}}} TASK [Read the /etc/fstab file for volume existence] *************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:19 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/fstab"], "delta": "0:00:00.002656", "end": "2020-10-31 12:14:52.009250", "rc": 0, "start": "2020-10-31 12:14:52.006594", "stderr": "", "stderr_lines": [], "stdout": "\n#\n# /etc/fstab\n# Created by anaconda on Sat Oct 31 08:17:58 2020\n#\n# Accessible filesystems, by reference, are maintained under '/dev/disk/'.\n# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.\n#\n# After editing this file, run 'systemctl daemon-reload' to update systemd\n# units generated from this file.\n#\nUUID=03e702b4-e165-4a39-88c9-9e210cd00434 / ext4 defaults 1 1\n/dev/mapper/vg1-lv1 /opt/test1 xfs defaults 0 0\n/dev/mapper/vg1-lv2 /opt/test2 xfs defaults 0 0\n/dev/mapper/vg1-lv3 /opt/test3 xfs defaults 0 0", "stdout_lines": ["", "#", "# /etc/fstab", "# Created by anaconda on Sat Oct 31 08:17:58 2020", "#", "# Accessible filesystems, by reference, are maintained under '/dev/disk/'.", "# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.", "#", "# After editing this file, run 'systemctl daemon-reload' to update systemd", "# units generated from this file.", "#", "UUID=03e702b4-e165-4a39-88c9-9e210cd00434 / ext4 defaults 1 1", "/dev/mapper/vg1-lv1 /opt/test1 xfs defaults 0 0", "/dev/mapper/vg1-lv2 /opt/test2 xfs defaults 0 0", "/dev/mapper/vg1-lv3 /opt/test3 xfs defaults 0 0"]} TASK [Read the /etc/crypttab file] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/crypttab"], "delta": "0:00:00.003148", "end": "2020-10-31 12:14:52.363914", "rc": 0, "start": "2020-10-31 12:14:52.360766", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Verify the volumes listed in storage_pools were correctly managed] ******* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:32 [WARNING]: The loop variable 'storage_test_pool' is already in use. You should set the `loop_var` value in the `loop_control` option for the task to something else to avoid variable collisions and unexpected behavior. included: /tmp/tmp7ksfxpzz/tests/test-verify-pool.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool.yml:5 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pool_tests": ["members", "volumes"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool.yml:17 included: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-pool-volumes.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:1 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_count": "1", "_storage_test_pool_pvs": [], "_storage_test_pool_pvs_lvm": ["/dev/md127"]}, "changed": false} TASK [Get the canonical device path for each member device] ******************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:7 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=/dev/md127) => {"ansible_loop_var": "pv", "changed": false, "device": "/dev/md/vg1-1", "pv": "/dev/md127"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:16 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=/dev/md127) => {"ansible_facts": {"_storage_test_pool_pvs": ["/dev/md/vg1-1"]}, "ansible_index_var": "idx", "ansible_loop_var": "item", "changed": false, "idx": 0, "item": "/dev/md127"} TASK [Verify PV count] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:23 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:29 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_type": "disk"}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:33 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_type": "partition"}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:37 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_type": "raid0"}, "changed": false} TASK [Check the type of each PV] *********************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:41 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=/dev/md/vg1-1) => { "ansible_loop_var": "pv", "changed": false, "msg": "All assertions passed", "pv": "/dev/md/vg1-1" } TASK [Check raid] ************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:50 included: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [get information about RAID] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:6 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["mdadm", "--detail", "/dev/md/vg1-1"], "delta": "0:00:00.007294", "end": "2020-10-31 12:14:53.610241", "rc": 0, "start": "2020-10-31 12:14:53.602947", "stderr": "", "stderr_lines": [], "stdout": "/dev/md/vg1-1:\n Version : 1.2\n Creation Time : Sat Oct 31 12:14:12 2020\n Raid Level : raid0\n Array Size : 20951040 (19.98 GiB 21.45 GB)\n Raid Devices : 2\n Total Devices : 2\n Persistence : Superblock is persistent\n\n Update Time : Sat Oct 31 12:14:12 2020\n State : clean \n Active Devices : 2\n Working Devices : 2\n Failed Devices : 0\n Spare Devices : 0\n\n Chunk Size : 512K\n\nConsistency Policy : none\n\n Name : vg1-1\n UUID : ed591189:5ab23a78:35c8da8e:465196ba\n Events : 0\n\n Number Major Minor RaidDevice State\n 0 252 1 0 active sync /dev/vda1\n 1 252 17 1 active sync /dev/vdb1", "stdout_lines": ["/dev/md/vg1-1:", " Version : 1.2", " Creation Time : Sat Oct 31 12:14:12 2020", " Raid Level : raid0", " Array Size : 20951040 (19.98 GiB 21.45 GB)", " Raid Devices : 2", " Total Devices : 2", " Persistence : Superblock is persistent", "", " Update Time : Sat Oct 31 12:14:12 2020", " State : clean ", " Active Devices : 2", " Working Devices : 2", " Failed Devices : 0", " Spare Devices : 0", "", " Chunk Size : 512K", "", "Consistency Policy : none", "", " Name : vg1-1", " UUID : ed591189:5ab23a78:35c8da8e:465196ba", " Events : 0", "", " Number Major Minor RaidDevice State", " 0 252 1 0 active sync /dev/vda1", " 1 252 17 1 active sync /dev/vdb1"]} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:12 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_md_active_devices_re": "Active\\ Devices\\ \\:\\ None\\\n"}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:16 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_md_spare_devices_re": "Spare\\ Devices\\ \\:\\ None\\\n"}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:20 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_md_metadata_version_re": "Version\\ \\:\\ None\\\n"}, "changed": false} TASK [check RAID active devices count] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:24 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID spare devices count] ****************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:30 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID metadata version] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:36 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:44 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_md_active_devices_re": null, "storage_test_md_metadata_version_re": null, "storage_test_md_spare_devices_re": null}, "changed": false} TASK [Check member encryption] ************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:53 included: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_crypttab_entries": "0", "_storage_test_expected_crypttab_key_file": "-"}, "changed": false} TASK [Validate pool member LUKS settings] ************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:8 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=/dev/md/vg1-1) => {"_storage_test_pool_member_path": "/dev/md/vg1-1", "ansible_loop_var": "_storage_test_pool_member_path", "changed": false, "skip_reason": "Conditional result was False"} TASK [Validate pool member crypttab entries] *********************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:15 included: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:1 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": []}, "changed": false} TASK [Check for /etc/crypttab entry] ******************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Validate the format of the crypttab entry] ******************************* task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:9 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check backing device of crypttab entry] ********************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:15 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check key file of crypttab entry] **************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:27 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:22 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null, "_storage_test_crypttab_key_file": null}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:56 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_count": null, "_storage_test_expected_pv_type": null, "_storage_test_pool_pvs": [], "_storage_test_pool_pvs_lvm": []}, "changed": false} TASK [verify the volumes] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-volumes.yml:3 [WARNING]: The loop variable 'storage_test_volume' is already in use. You should set the `loop_var` value in the `loop_control` option for the task to something else to avoid variable collisions and unexpected behavior. included: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": true, "_storage_volume_tests": ["mount", "fstab", "fs", "device", "encryption", "md", "size"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:10 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Get expected mount device based on device type] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/vg1-lv1"}, "changed": false} TASK [Set some facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [{"block_available": 508753, "block_size": 4096, "block_total": 520704, "block_used": 11951, "device": "/dev/mapper/vg1-lv1", "fstype": "xfs", "inode_available": 1046525, "inode_total": 1046528, "inode_used": 3, "mount": "/opt/test1", "options": "rw,seclabel,relatime,attr2,inode64,logbufs=8,logbsize=32k,sunit=1024,swidth=2048,noquota", "size_available": 2083852288, "size_total": 2132803584, "uuid": "2fa0cf67-2353-47e6-9cfe-ff45294f60a0"}], "storage_test_mount_expected_match_count": "1", "storage_test_mount_point_matches": [{"block_available": 508753, "block_size": 4096, "block_total": 520704, "block_used": 11951, "device": "/dev/mapper/vg1-lv1", "fstype": "xfs", "inode_available": 1046525, "inode_total": 1046528, "inode_used": 3, "mount": "/opt/test1", "options": "rw,seclabel,relatime,attr2,inode64,logbufs=8,logbsize=32k,sunit=1024,swidth=2048,noquota", "size_available": 2083852288, "size_total": 2132803584, "uuid": "2fa0cf67-2353-47e6-9cfe-ff45294f60a0"}], "storage_test_swap_expected_matches": "0"}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:22 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:31 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:39 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [command] ***************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Gather swap info] ******************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:52 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify swap status] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:57 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Unset facts] ************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:67 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null, "storage_test_swap_expected_matches": null, "storage_test_swaps": null, "storage_test_sys_node": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": "1", "storage_test_fstab_expected_mount_point_matches": "1", "storage_test_fstab_id_matches": ["/dev/mapper/vg1-lv1 "], "storage_test_fstab_mount_point_matches": [" /opt/test1 "]}, "changed": false} TASK [Verify that the device identifier appears in /etc/fstab] ***************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:17 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": null, "storage_test_fstab_expected_mount_point_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [Verify fs type] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify fs label] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [See whether the device node is present] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "stat": {"atime": 1604146458.5136347, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "ctime": 1604146458.5136347, "dev": 5, "device_type": 64770, "executable": false, "exists": true, "gid": 6, "gr_name": "disk", "inode": 48168, "isblk": true, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mimetype": "inode/symlink", "mode": "0660", "mtime": 1604146458.5136347, "nlink": 1, "path": "/dev/mapper/vg1-lv1", "pw_name": "root", "readable": true, "rgrp": true, "roth": false, "rusr": true, "size": 0, "uid": 0, "version": null, "wgrp": true, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}} TASK [Verify the presence/absence of the device node] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "lvm"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:28 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:33 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Stat the LUKS device, if encrypted] ************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:3 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Collect LUKS info for this volume] *************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:10 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the presence/absence of the LUKS device node] ********************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:16 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify that the raw device is the same as the device if not encrypted] *** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:25 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about the LUKS volume if encrypted] **************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the LUKS volume's device type if encrypted] *********************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS version] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:42 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS key size] ***************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS cipher] ******************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:54 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:60 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": [], "_storage_test_expected_crypttab_entries": "0", "_storage_test_expected_crypttab_key_file": "-"}, "changed": false} TASK [Check for /etc/crypttab entry] ******************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:65 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Validate the format of the crypttab entry] ******************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:70 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check backing device of crypttab entry] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:76 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check key file of crypttab entry] **************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:82 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:88 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null, "_storage_test_expected_crypttab_entries": null, "_storage_test_expected_crypttab_key_file": null}, "changed": false} TASK [get information about RAID] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:7 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:13 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:17 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID active devices count] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:25 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID spare devices count] ****************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID metadata version] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [parse the actual size of the volume] ************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:3 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"bytes": 2147483648, "changed": false, "lvm": "2g", "parted": "2GiB", "size": "2 GiB"} TASK [parse the requested size of the volume] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:9 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"bytes": 2147483648, "changed": false, "lvm": "2g", "parted": "2GiB", "size": "2 GiB"} TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:15 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_actual_size": { "bytes": 2147483648, "changed": false, "failed": false, "lvm": "2g", "parted": "2GiB", "size": "2 GiB" } } TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_requested_size": { "bytes": 2147483648, "changed": false, "failed": false, "lvm": "2g", "parted": "2GiB", "size": "2 GiB" } } TASK [assert] ****************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:21 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:16 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": true, "_storage_volume_tests": ["mount", "fstab", "fs", "device", "encryption", "md", "size"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:10 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Get expected mount device based on device type] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/vg1-lv2"}, "changed": false} TASK [Set some facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [{"block_available": 769066, "block_size": 4096, "block_total": 782848, "block_used": 13782, "device": "/dev/mapper/vg1-lv2", "fstype": "xfs", "inode_available": 1570813, "inode_total": 1570816, "inode_used": 3, "mount": "/opt/test2", "options": "rw,seclabel,relatime,attr2,inode64,logbufs=8,logbsize=32k,sunit=1024,swidth=2048,noquota", "size_available": 3150094336, "size_total": 3206545408, "uuid": "ca70fe4b-ecd0-4f4b-bce4-811c35f78df9"}], "storage_test_mount_expected_match_count": "1", "storage_test_mount_point_matches": [{"block_available": 769066, "block_size": 4096, "block_total": 782848, "block_used": 13782, "device": "/dev/mapper/vg1-lv2", "fstype": "xfs", "inode_available": 1570813, "inode_total": 1570816, "inode_used": 3, "mount": "/opt/test2", "options": "rw,seclabel,relatime,attr2,inode64,logbufs=8,logbsize=32k,sunit=1024,swidth=2048,noquota", "size_available": 3150094336, "size_total": 3206545408, "uuid": "ca70fe4b-ecd0-4f4b-bce4-811c35f78df9"}], "storage_test_swap_expected_matches": "0"}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:22 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:31 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:39 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [command] ***************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Gather swap info] ******************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:52 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify swap status] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:57 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Unset facts] ************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:67 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null, "storage_test_swap_expected_matches": null, "storage_test_swaps": null, "storage_test_sys_node": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": "1", "storage_test_fstab_expected_mount_point_matches": "1", "storage_test_fstab_id_matches": ["/dev/mapper/vg1-lv2 "], "storage_test_fstab_mount_point_matches": [" /opt/test2 "]}, "changed": false} TASK [Verify that the device identifier appears in /etc/fstab] ***************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:17 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": null, "storage_test_fstab_expected_mount_point_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [Verify fs type] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify fs label] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [See whether the device node is present] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "stat": {"atime": 1604146458.3186347, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "ctime": 1604146458.3186347, "dev": 5, "device_type": 64769, "executable": false, "exists": true, "gid": 6, "gr_name": "disk", "inode": 48167, "isblk": true, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mimetype": "inode/symlink", "mode": "0660", "mtime": 1604146458.3186347, "nlink": 1, "path": "/dev/mapper/vg1-lv2", "pw_name": "root", "readable": true, "rgrp": true, "roth": false, "rusr": true, "size": 0, "uid": 0, "version": null, "wgrp": true, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}} TASK [Verify the presence/absence of the device node] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "lvm"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:28 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:33 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Stat the LUKS device, if encrypted] ************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:3 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Collect LUKS info for this volume] *************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:10 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the presence/absence of the LUKS device node] ********************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:16 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify that the raw device is the same as the device if not encrypted] *** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:25 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about the LUKS volume if encrypted] **************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the LUKS volume's device type if encrypted] *********************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS version] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:42 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS key size] ***************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS cipher] ******************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:54 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:60 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": [], "_storage_test_expected_crypttab_entries": "0", "_storage_test_expected_crypttab_key_file": "-"}, "changed": false} TASK [Check for /etc/crypttab entry] ******************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:65 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Validate the format of the crypttab entry] ******************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:70 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check backing device of crypttab entry] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:76 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check key file of crypttab entry] **************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:82 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:88 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null, "_storage_test_expected_crypttab_entries": null, "_storage_test_expected_crypttab_key_file": null}, "changed": false} TASK [get information about RAID] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:7 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:13 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:17 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID active devices count] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:25 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID spare devices count] ****************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID metadata version] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [parse the actual size of the volume] ************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:3 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"bytes": 3221225472, "changed": false, "lvm": "3g", "parted": "3GiB", "size": "3 GiB"} TASK [parse the requested size of the volume] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:9 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"bytes": 3221225472, "changed": false, "lvm": "3g", "parted": "3GiB", "size": "3 GiB"} TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:15 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_actual_size": { "bytes": 3221225472, "changed": false, "failed": false, "lvm": "3g", "parted": "3GiB", "size": "3 GiB" } } TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_requested_size": { "bytes": 3221225472, "changed": false, "failed": false, "lvm": "3g", "parted": "3GiB", "size": "3 GiB" } } TASK [assert] ****************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:21 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:16 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": true, "_storage_volume_tests": ["mount", "fstab", "fs", "device", "encryption", "md", "size"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:10 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Get expected mount device based on device type] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/vg1-lv3"}, "changed": false} TASK [Set some facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [{"block_available": 769066, "block_size": 4096, "block_total": 782848, "block_used": 13782, "device": "/dev/mapper/vg1-lv3", "fstype": "xfs", "inode_available": 1570813, "inode_total": 1570816, "inode_used": 3, "mount": "/opt/test3", "options": "rw,seclabel,relatime,attr2,inode64,logbufs=8,logbsize=32k,sunit=1024,swidth=2048,noquota", "size_available": 3150094336, "size_total": 3206545408, "uuid": "b67b7364-17d4-489f-bb9a-df6f449b1753"}], "storage_test_mount_expected_match_count": "1", "storage_test_mount_point_matches": [{"block_available": 769066, "block_size": 4096, "block_total": 782848, "block_used": 13782, "device": "/dev/mapper/vg1-lv3", "fstype": "xfs", "inode_available": 1570813, "inode_total": 1570816, "inode_used": 3, "mount": "/opt/test3", "options": "rw,seclabel,relatime,attr2,inode64,logbufs=8,logbsize=32k,sunit=1024,swidth=2048,noquota", "size_available": 3150094336, "size_total": 3206545408, "uuid": "b67b7364-17d4-489f-bb9a-df6f449b1753"}], "storage_test_swap_expected_matches": "0"}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:22 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:31 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:39 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [command] ***************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Gather swap info] ******************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:52 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify swap status] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:57 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Unset facts] ************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:67 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null, "storage_test_swap_expected_matches": null, "storage_test_swaps": null, "storage_test_sys_node": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": "1", "storage_test_fstab_expected_mount_point_matches": "1", "storage_test_fstab_id_matches": ["/dev/mapper/vg1-lv3 "], "storage_test_fstab_mount_point_matches": [" /opt/test3 "]}, "changed": false} TASK [Verify that the device identifier appears in /etc/fstab] ***************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:17 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": null, "storage_test_fstab_expected_mount_point_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [Verify fs type] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify fs label] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [See whether the device node is present] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "stat": {"atime": 1604146458.1336348, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "ctime": 1604146458.1336348, "dev": 5, "device_type": 64768, "executable": false, "exists": true, "gid": 6, "gr_name": "disk", "inode": 48166, "isblk": true, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mimetype": "inode/symlink", "mode": "0660", "mtime": 1604146458.1336348, "nlink": 1, "path": "/dev/mapper/vg1-lv3", "pw_name": "root", "readable": true, "rgrp": true, "roth": false, "rusr": true, "size": 0, "uid": 0, "version": null, "wgrp": true, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}} TASK [Verify the presence/absence of the device node] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "lvm"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:28 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:33 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Stat the LUKS device, if encrypted] ************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:3 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Collect LUKS info for this volume] *************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:10 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the presence/absence of the LUKS device node] ********************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:16 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify that the raw device is the same as the device if not encrypted] *** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:25 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about the LUKS volume if encrypted] **************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the LUKS volume's device type if encrypted] *********************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS version] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:42 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS key size] ***************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS cipher] ******************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:54 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:60 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": [], "_storage_test_expected_crypttab_entries": "0", "_storage_test_expected_crypttab_key_file": "-"}, "changed": false} TASK [Check for /etc/crypttab entry] ******************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:65 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Validate the format of the crypttab entry] ******************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:70 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check backing device of crypttab entry] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:76 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check key file of crypttab entry] **************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:82 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:88 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null, "_storage_test_expected_crypttab_entries": null, "_storage_test_expected_crypttab_key_file": null}, "changed": false} TASK [get information about RAID] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:7 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:13 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:17 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID active devices count] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:25 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID spare devices count] ****************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID metadata version] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [parse the actual size of the volume] ************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:3 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"bytes": 3221225472, "changed": false, "lvm": "3g", "parted": "3GiB", "size": "3 GiB"} TASK [parse the requested size of the volume] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:9 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"bytes": 3221225472, "changed": false, "lvm": "3g", "parted": "3GiB", "size": "3 GiB"} TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:15 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_actual_size": { "bytes": 3221225472, "changed": false, "failed": false, "lvm": "3g", "parted": "3GiB", "size": "3 GiB" } } TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_requested_size": { "bytes": 3221225472, "changed": false, "failed": false, "lvm": "3g", "parted": "3GiB", "size": "3 GiB" } } TASK [assert] ****************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:21 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:16 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:39 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_pool": null}, "changed": false} TASK [Verify the volumes with no pool were correctly managed] ****************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:46 TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:56 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_blkinfo": null, "storage_test_crypttab": null, "storage_test_fstab": null, "storage_test_volume": null}, "changed": false} TASK [Remove the device created above] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_create_raid_pool_then_remove.yml:68 TASK [linux-system-roles.storage : Set version specific variables] ************* task path: /tmp/tmp7ksfxpzz/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-crypto", "libblockdev-dm", "libblockdev-lvm", "libblockdev-mdraid", "libblockdev-swap"]}, "ansible_included_var_files": ["/tmp/tmp7ksfxpzz/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.storage : define an empty list of pools to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : define an empty list of volumes to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : include the appropriate provider tasks] ***** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:22 included: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [linux-system-roles.storage : get a list of rpm packages installed on host machine] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : make sure blivet is available] ************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: python3-blivet", "Installed: libblockdev-crypto", "Installed: libblockdev-dm", "Installed: libblockdev-lvm", "Installed: libblockdev-mdraid", "Installed: libblockdev-swap"]} TASK [linux-system-roles.storage : initialize internal facts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools": [], "_storage_vol_defaults": [], "_storage_vol_pools": [], "_storage_vols_no_defaults": [], "_storage_vols_no_defaults_by_pool": {}, "_storage_vols_w_defaults": [], "_storage_volumes": []}, "changed": false} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [1/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:28 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'state': u'absent', u'name': u'vg1', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'lv1', u'size': u'2g'}, {u'mount_point': u'/opt/test2', u'name': u'lv2', u'size': u'3g'}, {u'mount_point': u'/opt/test3', u'name': u'lv3', u'size': u'3g'}], u'disks': [u'vda', u'vdb'], u'type': u'lvm', u'raid_level': u'raid0'}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vda", "vdb"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": "raid0", "raid_metadata_version": null, "raid_spare_count": null, "state": "absent", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "lv1", "size": "2g"}, {"mount_point": "/opt/test2", "name": "lv2", "size": "3g"}, {"mount_point": "/opt/test3", "name": "lv3", "size": "3g"}]}]}, "ansible_loop_var": "pool", "changed": false, "pool": {"disks": ["vda", "vdb"], "name": "vg1", "raid_level": "raid0", "state": "absent", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "lv1", "size": "2g"}, {"mount_point": "/opt/test2", "name": "lv2", "size": "3g"}, {"mount_point": "/opt/test3", "name": "lv3", "size": "3g"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [2/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:36 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'vg1', u'encryption_password': None, u'encryption': False, u'disks': [u'vda', u'vdb'], u'raid_level': u'raid0', u'raid_device_count': None, u'state': u'absent', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'lv1', u'size': u'2g'}, {u'mount_point': u'/opt/test2', u'name': u'lv2', u'size': u'3g'}, {u'mount_point': u'/opt/test3', u'name': u'lv3', u'size': u'3g'}], u'type': u'lvm', u'encryption_key_size': None}, {u'mount_point': u'/opt/test1', u'name': u'lv1', u'size': u'2g'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}], "_storage_vol_pools": ["vg1"], "_storage_vols_no_defaults": [{"mount_point": "/opt/test1", "name": "lv1", "size": "2g"}]}, "ansible_loop_var": "item", "changed": false, "item": [{"disks": ["vda", "vdb"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": "raid0", "raid_metadata_version": null, "raid_spare_count": null, "state": "absent", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "lv1", "size": "2g"}, {"mount_point": "/opt/test2", "name": "lv2", "size": "3g"}, {"mount_point": "/opt/test3", "name": "lv3", "size": "3g"}]}, {"mount_point": "/opt/test1", "name": "lv1", "size": "2g"}]} ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'vg1', u'encryption_password': None, u'encryption': False, u'disks': [u'vda', u'vdb'], u'raid_level': u'raid0', u'raid_device_count': None, u'state': u'absent', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'lv1', u'size': u'2g'}, {u'mount_point': u'/opt/test2', u'name': u'lv2', u'size': u'3g'}, {u'mount_point': u'/opt/test3', u'name': u'lv3', u'size': u'3g'}], u'type': u'lvm', u'encryption_key_size': None}, {u'mount_point': u'/opt/test2', u'name': u'lv2', u'size': u'3g'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}], "_storage_vol_pools": ["vg1", "vg1"], "_storage_vols_no_defaults": [{"mount_point": "/opt/test1", "name": "lv1", "size": "2g"}, {"mount_point": "/opt/test2", "name": "lv2", "size": "3g"}]}, "ansible_loop_var": "item", "changed": false, "item": [{"disks": ["vda", "vdb"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": "raid0", "raid_metadata_version": null, "raid_spare_count": null, "state": "absent", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "lv1", "size": "2g"}, {"mount_point": "/opt/test2", "name": "lv2", "size": "3g"}, {"mount_point": "/opt/test3", "name": "lv3", "size": "3g"}]}, {"mount_point": "/opt/test2", "name": "lv2", "size": "3g"}]} ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'vg1', u'encryption_password': None, u'encryption': False, u'disks': [u'vda', u'vdb'], u'raid_level': u'raid0', u'raid_device_count': None, u'state': u'absent', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'lv1', u'size': u'2g'}, {u'mount_point': u'/opt/test2', u'name': u'lv2', u'size': u'3g'}, {u'mount_point': u'/opt/test3', u'name': u'lv3', u'size': u'3g'}], u'type': u'lvm', u'encryption_key_size': None}, {u'mount_point': u'/opt/test3', u'name': u'lv3', u'size': u'3g'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}], "_storage_vol_pools": ["vg1", "vg1", "vg1"], "_storage_vols_no_defaults": [{"mount_point": "/opt/test1", "name": "lv1", "size": "2g"}, {"mount_point": "/opt/test2", "name": "lv2", "size": "3g"}, {"mount_point": "/opt/test3", "name": "lv3", "size": "3g"}]}, "ansible_loop_var": "item", "changed": false, "item": [{"disks": ["vda", "vdb"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": "raid0", "raid_metadata_version": null, "raid_spare_count": null, "state": "absent", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "lv1", "size": "2g"}, {"mount_point": "/opt/test2", "name": "lv2", "size": "3g"}, {"mount_point": "/opt/test3", "name": "lv3", "size": "3g"}]}, {"mount_point": "/opt/test3", "name": "lv3", "size": "3g"}]} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [3/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:44 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'mount_point': u'/opt/test1', u'name': u'lv1', u'size': u'2g'}, {u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'fs_label': u'', u'raid_level': None, u'mount_device_identifier': u'uuid', u'fs_type': u'xfs', u'mount_options': u'defaults', u'encryption_luks_version': None, u'raid_spare_count': None, u'size': 0, u'mount_point': u'', u'encryption_password': None, u'encryption': False, u'raid_chunk_size': None, u'raid_device_count': None, u'state': u'present', u'mount_check': 0, u'mount_passno': 0, u'fs_overwrite_existing': True, u'type': u'lvm', u'encryption_key_size': None, u'fs_create_options': u''}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "lv1", "pool": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "2g", "state": "present", "type": "lvm"}]}, "ansible_index_var": "idx", "ansible_loop_var": "item", "changed": false, "idx": 0, "item": [{"mount_point": "/opt/test1", "name": "lv1", "size": "2g"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}]} ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'mount_point': u'/opt/test2', u'name': u'lv2', u'size': u'3g'}, {u'raid_metadata_version': None, u'encryption_key_size': None, u'encryption_key': None, u'fs_label': u'', u'raid_chunk_size': None, u'mount_device_identifier': u'uuid', u'fs_type': u'xfs', u'mount_options': u'defaults', u'encryption_luks_version': None, u'raid_spare_count': None, u'size': 0, u'mount_point': u'', u'encryption_password': None, u'encryption': False, u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'mount_check': 0, u'mount_passno': 0, u'fs_overwrite_existing': True, u'type': u'lvm', u'encryption_cipher': None, u'fs_create_options': u''}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "lv1", "pool": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "2g", "state": "present", "type": "lvm"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "lv2", "pool": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm"}]}, "ansible_index_var": "idx", "ansible_loop_var": "item", "changed": false, "idx": 1, "item": [{"mount_point": "/opt/test2", "name": "lv2", "size": "3g"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}]} ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'mount_point': u'/opt/test3', u'name': u'lv3', u'size': u'3g'}, {u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'fs_label': u'', u'raid_level': None, u'mount_device_identifier': u'uuid', u'fs_type': u'xfs', u'mount_options': u'defaults', u'encryption_luks_version': None, u'raid_spare_count': None, u'size': 0, u'mount_point': u'', u'encryption_password': None, u'encryption': False, u'raid_chunk_size': None, u'raid_device_count': None, u'state': u'present', u'mount_check': 0, u'mount_passno': 0, u'fs_overwrite_existing': True, u'type': u'lvm', u'encryption_key_size': None, u'fs_create_options': u''}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "lv1", "pool": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "2g", "state": "present", "type": "lvm"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "lv2", "pool": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test3", "name": "lv3", "pool": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm"}]}, "ansible_index_var": "idx", "ansible_loop_var": "item", "changed": false, "idx": 2, "item": [{"mount_point": "/opt/test3", "name": "lv3", "size": "3g"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}]} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [4/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:52 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'vg1', u'encryption_password': None, u'encryption': False, u'disks': [u'vda', u'vdb'], u'raid_level': u'raid0', u'raid_device_count': None, u'state': u'absent', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'lv1', u'size': u'2g'}, {u'mount_point': u'/opt/test2', u'name': u'lv2', u'size': u'3g'}, {u'mount_point': u'/opt/test3', u'name': u'lv3', u'size': u'3g'}], u'type': u'lvm', u'encryption_key_size': None}) => {"ansible_facts": {"_storage_vols_no_defaults_by_pool": {"vg1": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "lv1", "pool": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "2g", "state": "present", "type": "lvm"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "lv2", "pool": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test3", "name": "lv3", "pool": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm"}]}}, "ansible_loop_var": "item", "changed": false, "item": {"disks": ["vda", "vdb"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": "raid0", "raid_metadata_version": null, "raid_spare_count": null, "state": "absent", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "lv1", "size": "2g"}, {"mount_point": "/opt/test2", "name": "lv2", "size": "3g"}, {"mount_point": "/opt/test3", "name": "lv3", "size": "3g"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [5/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:61 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'vg1', u'encryption_password': None, u'encryption': False, u'disks': [u'vda', u'vdb'], u'raid_level': u'raid0', u'raid_device_count': None, u'state': u'absent', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'lv1', u'size': u'2g'}, {u'mount_point': u'/opt/test2', u'name': u'lv2', u'size': u'3g'}, {u'mount_point': u'/opt/test3', u'name': u'lv3', u'size': u'3g'}], u'type': u'lvm', u'encryption_key_size': None}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vda", "vdb"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": "raid0", "raid_metadata_version": null, "raid_spare_count": null, "state": "absent", "type": "lvm", "volumes": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "lv1", "pool": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "2g", "state": "present", "type": "lvm"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "lv2", "pool": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test3", "name": "lv3", "pool": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm"}]}]}, "ansible_index_var": "idx", "ansible_loop_var": "pool", "changed": false, "idx": 0, "pool": {"disks": ["vda", "vdb"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": "raid0", "raid_metadata_version": null, "raid_spare_count": null, "state": "absent", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "lv1", "size": "2g"}, {"mount_point": "/opt/test2", "name": "lv2", "size": "3g"}, {"mount_point": "/opt/test3", "name": "lv3", "size": "3g"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [6/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:72 TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools": [ { "disks": [ "vda", "vdb" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": "raid0", "raid_metadata_version": null, "raid_spare_count": null, "state": "absent", "type": "lvm", "volumes": [ { "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "lv1", "pool": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "2g", "state": "present", "type": "lvm" }, { "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "lv2", "pool": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm" }, { "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test3", "name": "lv3", "pool": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm" } ] } ] } TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes": [] } TASK [linux-system-roles.storage : get required packages] ********************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": []} TASK [linux-system-roles.storage : make sure required packages are installed] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [linux-system-roles.storage : manage the pools and volumes to match the specified state] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:104 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [{"action": "destroy format", "device": "/dev/mapper/vg1-lv3", "fs_type": "xfs"}, {"action": "destroy device", "device": "/dev/mapper/vg1-lv3", "fs_type": null}, {"action": "destroy format", "device": "/dev/mapper/vg1-lv2", "fs_type": "xfs"}, {"action": "destroy device", "device": "/dev/mapper/vg1-lv2", "fs_type": null}, {"action": "destroy format", "device": "/dev/mapper/vg1-lv1", "fs_type": "xfs"}, {"action": "destroy device", "device": "/dev/mapper/vg1-lv1", "fs_type": null}, {"action": "destroy device", "device": "/dev/vg1", "fs_type": null}, {"action": "destroy format", "device": "/dev/md/vg1-1", "fs_type": "lvmpv"}, {"action": "destroy device", "device": "/dev/md/vg1-1", "fs_type": null}, {"action": "destroy format", "device": "/dev/vda1", "fs_type": "mdmember"}, {"action": "destroy device", "device": "/dev/vda1", "fs_type": null}, {"action": "destroy format", "device": "/dev/vda", "fs_type": "disklabel"}, {"action": "destroy format", "device": "/dev/vdb1", "fs_type": "mdmember"}, {"action": "destroy device", "device": "/dev/vdb1", "fs_type": null}, {"action": "destroy format", "device": "/dev/vdb", "fs_type": "disklabel"}], "changed": true, "crypts": [], "leaves": ["/dev/sda1", "/dev/sr0", "/dev/vda", "/dev/vdb", "/dev/vdc"], "mounts": [{"fstype": "xfs", "path": "/opt/test3", "src": "/dev/mapper/vg1-lv3", "state": "absent"}, {"fstype": "xfs", "path": "/opt/test2", "src": "/dev/mapper/vg1-lv2", "state": "absent"}, {"fstype": "xfs", "path": "/opt/test1", "src": "/dev/mapper/vg1-lv1", "state": "absent"}], "packages": ["e2fsprogs"], "pools": [{"disks": ["vda", "vdb"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": "raid0", "raid_metadata_version": null, "raid_spare_count": null, "state": "absent", "type": "lvm", "volumes": [{"_device": "/dev/mapper/vg1-lv1", "_mount_id": "/dev/mapper/vg1-lv1", "_raw_device": "/dev/mapper/vg1-lv1", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "lv1", "pool": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "2g", "state": "present", "type": "lvm"}, {"_device": "/dev/mapper/vg1-lv2", "_mount_id": "/dev/mapper/vg1-lv2", "_raw_device": "/dev/mapper/vg1-lv2", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "lv2", "pool": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm"}, {"_device": "/dev/mapper/vg1-lv3", "_mount_id": "/dev/mapper/vg1-lv3", "_raw_device": "/dev/mapper/vg1-lv3", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test3", "name": "lv3", "pool": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm"}]}], "volumes": []} TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:114 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "blivet_output": { "actions": [ { "action": "destroy format", "device": "/dev/mapper/vg1-lv3", "fs_type": "xfs" }, { "action": "destroy device", "device": "/dev/mapper/vg1-lv3", "fs_type": null }, { "action": "destroy format", "device": "/dev/mapper/vg1-lv2", "fs_type": "xfs" }, { "action": "destroy device", "device": "/dev/mapper/vg1-lv2", "fs_type": null }, { "action": "destroy format", "device": "/dev/mapper/vg1-lv1", "fs_type": "xfs" }, { "action": "destroy device", "device": "/dev/mapper/vg1-lv1", "fs_type": null }, { "action": "destroy device", "device": "/dev/vg1", "fs_type": null }, { "action": "destroy format", "device": "/dev/md/vg1-1", "fs_type": "lvmpv" }, { "action": "destroy device", "device": "/dev/md/vg1-1", "fs_type": null }, { "action": "destroy format", "device": "/dev/vda1", "fs_type": "mdmember" }, { "action": "destroy device", "device": "/dev/vda1", "fs_type": null }, { "action": "destroy format", "device": "/dev/vda", "fs_type": "disklabel" }, { "action": "destroy format", "device": "/dev/vdb1", "fs_type": "mdmember" }, { "action": "destroy device", "device": "/dev/vdb1", "fs_type": null }, { "action": "destroy format", "device": "/dev/vdb", "fs_type": "disklabel" } ], "changed": true, "crypts": [], "failed": false, "leaves": [ "/dev/sda1", "/dev/sr0", "/dev/vda", "/dev/vdb", "/dev/vdc" ], "mounts": [ { "fstype": "xfs", "path": "/opt/test3", "src": "/dev/mapper/vg1-lv3", "state": "absent" }, { "fstype": "xfs", "path": "/opt/test2", "src": "/dev/mapper/vg1-lv2", "state": "absent" }, { "fstype": "xfs", "path": "/opt/test1", "src": "/dev/mapper/vg1-lv1", "state": "absent" } ], "packages": [ "e2fsprogs" ], "pools": [ { "disks": [ "vda", "vdb" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": "raid0", "raid_metadata_version": null, "raid_spare_count": null, "state": "absent", "type": "lvm", "volumes": [ { "_device": "/dev/mapper/vg1-lv1", "_mount_id": "/dev/mapper/vg1-lv1", "_raw_device": "/dev/mapper/vg1-lv1", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "lv1", "pool": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "2g", "state": "present", "type": "lvm" }, { "_device": "/dev/mapper/vg1-lv2", "_mount_id": "/dev/mapper/vg1-lv2", "_raw_device": "/dev/mapper/vg1-lv2", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "lv2", "pool": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm" }, { "_device": "/dev/mapper/vg1-lv3", "_mount_id": "/dev/mapper/vg1-lv3", "_raw_device": "/dev/mapper/vg1-lv3", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test3", "name": "lv3", "pool": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm" } ] } ], "volumes": [] } } TASK [linux-system-roles.storage : set the list of pools for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:117 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": [{"disks": ["vda", "vdb"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": "raid0", "raid_metadata_version": null, "raid_spare_count": null, "state": "absent", "type": "lvm", "volumes": [{"_device": "/dev/mapper/vg1-lv1", "_mount_id": "/dev/mapper/vg1-lv1", "_raw_device": "/dev/mapper/vg1-lv1", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "lv1", "pool": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "2g", "state": "present", "type": "lvm"}, {"_device": "/dev/mapper/vg1-lv2", "_mount_id": "/dev/mapper/vg1-lv2", "_raw_device": "/dev/mapper/vg1-lv2", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "lv2", "pool": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm"}, {"_device": "/dev/mapper/vg1-lv3", "_mount_id": "/dev/mapper/vg1-lv3", "_raw_device": "/dev/mapper/vg1-lv3", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test3", "name": "lv3", "pool": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm"}]}]}, "changed": false} TASK [linux-system-roles.storage : set the list of volumes for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:121 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : remove obsolete mounts] ********************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:137 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'src': u'/dev/mapper/vg1-lv3', u'state': u'absent', u'fstype': u'xfs', u'path': u'/opt/test3'}) => {"ansible_loop_var": "mount_info", "changed": true, "dump": "0", "fstab": "/etc/fstab", "fstype": "xfs", "mount_info": {"fstype": "xfs", "path": "/opt/test3", "src": "/dev/mapper/vg1-lv3", "state": "absent"}, "name": "/opt/test3", "opts": "defaults", "passno": "0", "src": "/dev/mapper/vg1-lv3"} changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'src': u'/dev/mapper/vg1-lv2', u'state': u'absent', u'fstype': u'xfs', u'path': u'/opt/test2'}) => {"ansible_loop_var": "mount_info", "changed": true, "dump": "0", "fstab": "/etc/fstab", "fstype": "xfs", "mount_info": {"fstype": "xfs", "path": "/opt/test2", "src": "/dev/mapper/vg1-lv2", "state": "absent"}, "name": "/opt/test2", "opts": "defaults", "passno": "0", "src": "/dev/mapper/vg1-lv2"} changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'src': u'/dev/mapper/vg1-lv1', u'state': u'absent', u'fstype': u'xfs', u'path': u'/opt/test1'}) => {"ansible_loop_var": "mount_info", "changed": true, "dump": "0", "fstab": "/etc/fstab", "fstype": "xfs", "mount_info": {"fstype": "xfs", "path": "/opt/test1", "src": "/dev/mapper/vg1-lv1", "state": "absent"}, "name": "/opt/test1", "opts": "defaults", "passno": "0", "src": "/dev/mapper/vg1-lv1"} TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:148 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [linux-system-roles.storage : set up new/current mounts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:153 TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:164 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [linux-system-roles.storage : Manage /etc/crypttab to account for changes we just made] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:172 TASK [linux-system-roles.storage : Update facts] ******************************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:187 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_create_raid_pool_then_remove.yml:89 included: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Print out pool information] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:1 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools_list": [ { "disks": [ "vda", "vdb" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": "raid0", "raid_metadata_version": null, "raid_spare_count": null, "state": "absent", "type": "lvm", "volumes": [ { "_device": "/dev/mapper/vg1-lv1", "_mount_id": "/dev/mapper/vg1-lv1", "_raw_device": "/dev/mapper/vg1-lv1", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "lv1", "pool": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "2g", "state": "present", "type": "lvm" }, { "_device": "/dev/mapper/vg1-lv2", "_mount_id": "/dev/mapper/vg1-lv2", "_raw_device": "/dev/mapper/vg1-lv2", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "lv2", "pool": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm" }, { "_device": "/dev/mapper/vg1-lv3", "_mount_id": "/dev/mapper/vg1-lv3", "_raw_device": "/dev/mapper/vg1-lv3", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test3", "name": "lv3", "pool": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm" } ] } ] } TASK [Print out volume information] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:6 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {} TASK [Collect info about the volumes.] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "info": {"/dev/sda": {"fstype": "", "label": "", "name": "/dev/sda", "size": "4G", "type": "disk", "uuid": ""}, "/dev/sda1": {"fstype": "ext4", "label": "", "name": "/dev/sda1", "size": "4G", "type": "partition", "uuid": "03e702b4-e165-4a39-88c9-9e210cd00434"}, "/dev/sr0": {"fstype": "iso9660", "label": "cidata", "name": "/dev/sr0", "size": "364K", "type": "rom", "uuid": "2020-10-31-12-12-43-00"}, "/dev/vda": {"fstype": "", "label": "", "name": "/dev/vda", "size": "10G", "type": "disk", "uuid": ""}, "/dev/vdb": {"fstype": "", "label": "", "name": "/dev/vdb", "size": "10G", "type": "disk", "uuid": ""}, "/dev/vdc": {"fstype": "", "label": "", "name": "/dev/vdc", "size": "10G", "type": "disk", "uuid": ""}}} TASK [Read the /etc/fstab file for volume existence] *************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:19 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/fstab"], "delta": "0:00:01.004247", "end": "2020-10-31 12:15:23.360643", "rc": 0, "start": "2020-10-31 12:15:22.356396", "stderr": "", "stderr_lines": [], "stdout": "\n#\n# /etc/fstab\n# Created by anaconda on Sat Oct 31 08:17:58 2020\n#\n# Accessible filesystems, by reference, are maintained under '/dev/disk/'.\n# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.\n#\n# After editing this file, run 'systemctl daemon-reload' to update systemd\n# units generated from this file.\n#\nUUID=03e702b4-e165-4a39-88c9-9e210cd00434 / ext4 defaults 1 1", "stdout_lines": ["", "#", "# /etc/fstab", "# Created by anaconda on Sat Oct 31 08:17:58 2020", "#", "# Accessible filesystems, by reference, are maintained under '/dev/disk/'.", "# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.", "#", "# After editing this file, run 'systemctl daemon-reload' to update systemd", "# units generated from this file.", "#", "UUID=03e702b4-e165-4a39-88c9-9e210cd00434 / ext4 defaults 1 1"]} TASK [Read the /etc/crypttab file] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/crypttab"], "delta": "0:00:00.002325", "end": "2020-10-31 12:15:23.700242", "rc": 0, "start": "2020-10-31 12:15:23.697917", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Verify the volumes listed in storage_pools were correctly managed] ******* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:32 [WARNING]: The loop variable 'storage_test_pool' is already in use. You should set the `loop_var` value in the `loop_control` option for the task to something else to avoid variable collisions and unexpected behavior. included: /tmp/tmp7ksfxpzz/tests/test-verify-pool.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool.yml:5 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pool_tests": ["members", "volumes"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool.yml:17 included: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-pool-volumes.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:1 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_count": "0", "_storage_test_pool_pvs": [], "_storage_test_pool_pvs_lvm": []}, "changed": false} TASK [Get the canonical device path for each member device] ******************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:7 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:16 TASK [Verify PV count] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:23 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:29 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_type": "disk"}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:33 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_type": "partition"}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:37 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_type": "raid0"}, "changed": false} TASK [Check the type of each PV] *********************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:41 TASK [Check raid] ************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:50 included: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [get information about RAID] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:6 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:12 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:16 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:20 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID active devices count] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:24 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID spare devices count] ****************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:30 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID metadata version] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:36 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:44 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_md_active_devices_re": null, "storage_test_md_metadata_version_re": null, "storage_test_md_spare_devices_re": null}, "changed": false} TASK [Check member encryption] ************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:53 included: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_crypttab_entries": "0", "_storage_test_expected_crypttab_key_file": "-"}, "changed": false} TASK [Validate pool member LUKS settings] ************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:8 TASK [Validate pool member crypttab entries] *********************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:15 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:22 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null, "_storage_test_crypttab_key_file": null}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:56 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_count": null, "_storage_test_expected_pv_type": null, "_storage_test_pool_pvs": [], "_storage_test_pool_pvs_lvm": []}, "changed": false} TASK [verify the volumes] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-volumes.yml:3 [WARNING]: The loop variable 'storage_test_volume' is already in use. You should set the `loop_var` value in the `loop_control` option for the task to something else to avoid variable collisions and unexpected behavior. included: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": false, "_storage_volume_tests": ["mount", "fstab", "fs", "device", "encryption", "md", "size"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:10 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Get expected mount device based on device type] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/vg1-lv1"}, "changed": false} TASK [Set some facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [], "storage_test_mount_expected_match_count": "0", "storage_test_mount_point_matches": [], "storage_test_swap_expected_matches": "0"}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:22 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:31 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:39 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [command] ***************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Gather swap info] ******************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:52 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify swap status] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:57 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Unset facts] ************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:67 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null, "storage_test_swap_expected_matches": null, "storage_test_swaps": null, "storage_test_sys_node": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": "0", "storage_test_fstab_expected_mount_point_matches": "0", "storage_test_fstab_id_matches": [], "storage_test_fstab_mount_point_matches": []}, "changed": false} TASK [Verify that the device identifier appears in /etc/fstab] ***************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:10 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:17 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": null, "storage_test_fstab_expected_mount_point_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [Verify fs type] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:4 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify fs label] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:10 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [See whether the device node is present] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "stat": {"exists": false}} TASK [Verify the presence/absence of the device node] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:18 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "lvm"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:28 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:33 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Stat the LUKS device, if encrypted] ************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:3 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Collect LUKS info for this volume] *************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:10 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the presence/absence of the LUKS device node] ********************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:16 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify that the raw device is the same as the device if not encrypted] *** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:25 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Make sure we got info about the LUKS volume if encrypted] **************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the LUKS volume's device type if encrypted] *********************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS version] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:42 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS key size] ***************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS cipher] ******************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:54 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:60 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": [], "_storage_test_expected_crypttab_entries": "0", "_storage_test_expected_crypttab_key_file": "-"}, "changed": false} TASK [Check for /etc/crypttab entry] ******************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:65 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Validate the format of the crypttab entry] ******************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:70 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check backing device of crypttab entry] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:76 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check key file of crypttab entry] **************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:82 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:88 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null, "_storage_test_expected_crypttab_entries": null, "_storage_test_expected_crypttab_key_file": null}, "changed": false} TASK [get information about RAID] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:7 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:13 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:17 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID active devices count] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:25 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID spare devices count] ****************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID metadata version] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [parse the actual size of the volume] ************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:3 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [parse the requested size of the volume] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:9 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:15 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_actual_size": { "changed": false, "skip_reason": "Conditional result was False", "skipped": true } } TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_requested_size": { "changed": false, "skip_reason": "Conditional result was False", "skipped": true } } TASK [assert] ****************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Clean up facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:16 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": false, "_storage_volume_tests": ["mount", "fstab", "fs", "device", "encryption", "md", "size"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:10 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Get expected mount device based on device type] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/vg1-lv2"}, "changed": false} TASK [Set some facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [], "storage_test_mount_expected_match_count": "0", "storage_test_mount_point_matches": [], "storage_test_swap_expected_matches": "0"}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:22 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:31 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:39 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [command] ***************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Gather swap info] ******************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:52 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify swap status] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:57 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Unset facts] ************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:67 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null, "storage_test_swap_expected_matches": null, "storage_test_swaps": null, "storage_test_sys_node": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": "0", "storage_test_fstab_expected_mount_point_matches": "0", "storage_test_fstab_id_matches": [], "storage_test_fstab_mount_point_matches": []}, "changed": false} TASK [Verify that the device identifier appears in /etc/fstab] ***************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:10 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:17 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": null, "storage_test_fstab_expected_mount_point_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [Verify fs type] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:4 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify fs label] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:10 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [See whether the device node is present] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "stat": {"exists": false}} TASK [Verify the presence/absence of the device node] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:18 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "lvm"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:28 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:33 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Stat the LUKS device, if encrypted] ************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:3 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Collect LUKS info for this volume] *************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:10 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the presence/absence of the LUKS device node] ********************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:16 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify that the raw device is the same as the device if not encrypted] *** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:25 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Make sure we got info about the LUKS volume if encrypted] **************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the LUKS volume's device type if encrypted] *********************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS version] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:42 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS key size] ***************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS cipher] ******************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:54 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:60 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": [], "_storage_test_expected_crypttab_entries": "0", "_storage_test_expected_crypttab_key_file": "-"}, "changed": false} TASK [Check for /etc/crypttab entry] ******************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:65 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Validate the format of the crypttab entry] ******************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:70 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check backing device of crypttab entry] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:76 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check key file of crypttab entry] **************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:82 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:88 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null, "_storage_test_expected_crypttab_entries": null, "_storage_test_expected_crypttab_key_file": null}, "changed": false} TASK [get information about RAID] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:7 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:13 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:17 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID active devices count] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:25 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID spare devices count] ****************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID metadata version] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [parse the actual size of the volume] ************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:3 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [parse the requested size of the volume] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:9 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:15 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_actual_size": { "changed": false, "skip_reason": "Conditional result was False", "skipped": true } } TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_requested_size": { "changed": false, "skip_reason": "Conditional result was False", "skipped": true } } TASK [assert] ****************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Clean up facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:16 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": false, "_storage_volume_tests": ["mount", "fstab", "fs", "device", "encryption", "md", "size"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:10 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Get expected mount device based on device type] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/vg1-lv3"}, "changed": false} TASK [Set some facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [], "storage_test_mount_expected_match_count": "0", "storage_test_mount_point_matches": [], "storage_test_swap_expected_matches": "0"}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:22 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:31 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:39 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [command] ***************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Gather swap info] ******************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:52 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify swap status] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:57 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Unset facts] ************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:67 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null, "storage_test_swap_expected_matches": null, "storage_test_swaps": null, "storage_test_sys_node": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": "0", "storage_test_fstab_expected_mount_point_matches": "0", "storage_test_fstab_id_matches": [], "storage_test_fstab_mount_point_matches": []}, "changed": false} TASK [Verify that the device identifier appears in /etc/fstab] ***************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:10 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:17 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": null, "storage_test_fstab_expected_mount_point_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [Verify fs type] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:4 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify fs label] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:10 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [See whether the device node is present] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "stat": {"exists": false}} TASK [Verify the presence/absence of the device node] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:18 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "lvm"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:28 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:33 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Stat the LUKS device, if encrypted] ************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:3 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Collect LUKS info for this volume] *************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:10 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the presence/absence of the LUKS device node] ********************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:16 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify that the raw device is the same as the device if not encrypted] *** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:25 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Make sure we got info about the LUKS volume if encrypted] **************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the LUKS volume's device type if encrypted] *********************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS version] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:42 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS key size] ***************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS cipher] ******************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:54 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:60 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": [], "_storage_test_expected_crypttab_entries": "0", "_storage_test_expected_crypttab_key_file": "-"}, "changed": false} TASK [Check for /etc/crypttab entry] ******************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:65 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Validate the format of the crypttab entry] ******************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:70 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check backing device of crypttab entry] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:76 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check key file of crypttab entry] **************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:82 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:88 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null, "_storage_test_expected_crypttab_entries": null, "_storage_test_expected_crypttab_key_file": null}, "changed": false} TASK [get information about RAID] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:7 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:13 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:17 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID active devices count] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:25 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID spare devices count] ****************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID metadata version] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [parse the actual size of the volume] ************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:3 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [parse the requested size of the volume] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:9 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:15 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_actual_size": { "changed": false, "skip_reason": "Conditional result was False", "skipped": true } } TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_requested_size": { "changed": false, "skip_reason": "Conditional result was False", "skipped": true } } TASK [assert] ****************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Clean up facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:16 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:39 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_pool": null}, "changed": false} TASK [Verify the volumes with no pool were correctly managed] ****************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:46 TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:56 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_blkinfo": null, "storage_test_crypttab": null, "storage_test_fstab": null, "storage_test_volume": null}, "changed": false} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 : ok=469 changed=5 unreachable=0 failed=0 skipped=289 rescued=0 ignored=0 + cd /tmp/tmp7ksfxpzz/tests; TEST_SUBJECTS=/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_storage-178-e856157-fedora-31-87qzp9iq/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmp7ksfxpzz/_setup.yml /tmp/tmp7ksfxpzz/tests/tests_create_raid_volume_then_remove.yml ansible-playbook 2.8.16 config file = /etc/ansible/ansible.cfg configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python2.7/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 2.7.5 (default, Apr 2 2020, 13:16:51) [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)] Using /etc/ansible/ansible.cfg as config file PLAYBOOK: _setup.yml *********************************************************** 1 plays in /tmp/tmp7ksfxpzz/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/_setup.yml:5 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "groups": { "all": [ "/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2" ], "localhost": [ "/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2" ], "subjects": [ "/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmp7ksfxpzz/_setup.yml:6 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 : ok=1 changed=0 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 PLAYBOOK: tests_create_raid_volume_then_remove.yml ***************************** 1 plays in /tmp/tmp7ksfxpzz/tests/tests_create_raid_volume_then_remove.yml PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/tests_create_raid_volume_then_remove.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] META: ran handlers TASK [include_role : linux-system-roles.storage] ******************************* task path: /tmp/tmp7ksfxpzz/tests/tests_create_raid_volume_then_remove.yml:10 TASK [linux-system-roles.storage : Set version specific variables] ************* task path: /tmp/tmp7ksfxpzz/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-crypto", "libblockdev-dm", "libblockdev-lvm", "libblockdev-mdraid", "libblockdev-swap"]}, "ansible_included_var_files": ["/tmp/tmp7ksfxpzz/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.storage : define an empty list of pools to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : define an empty list of volumes to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : include the appropriate provider tasks] ***** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:22 included: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [linux-system-roles.storage : get a list of rpm packages installed on host machine] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : make sure blivet is available] ************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:7 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: python3-blivet", "Installed: libblockdev-crypto", "Installed: libblockdev-dm", "Installed: libblockdev-lvm", "Installed: libblockdev-mdraid", "Installed: libblockdev-swap", "Installed: libblockdev-2.24-2.fc31.x86_64", "Installed: libblockdev-btrfs-2.24-2.fc31.x86_64", "Installed: btrfs-progs-5.7-4.fc31.x86_64", "Installed: libblockdev-crypto-2.24-2.fc31.x86_64", "Installed: ndctl-70.1-1.fc31.x86_64", "Installed: gdisk-1.0.5-1.fc31.x86_64", "Installed: ndctl-libs-70.1-1.fc31.x86_64", "Installed: libblockdev-dm-2.24-2.fc31.x86_64", "Installed: compat-readline5-5.2-34.fc31.x86_64", "Installed: dmraid-1.0.0.rc16-43.fc31.x86_64", "Installed: dmraid-events-1.0.0.rc16-43.fc31.x86_64", "Installed: libblockdev-fs-2.24-2.fc31.x86_64", "Installed: mdadm-4.1-5.fc31.x86_64", "Installed: lzo-2.08-16.fc31.x86_64", "Installed: libblockdev-kbd-2.24-2.fc31.x86_64", "Installed: nspr-4.29.0-1.fc31.x86_64", "Installed: libblockdev-loop-2.24-2.fc31.x86_64", "Installed: nss-3.57.0-1.fc31.x86_64", "Installed: libblockdev-lvm-2.24-2.fc31.x86_64", "Installed: lsof-4.93.2-2.fc31.x86_64", "Installed: lvm2-2.03.09-1.fc31.x86_64", "Installed: nss-softokn-3.57.0-1.fc31.x86_64", "Installed: libblockdev-mdraid-2.24-2.fc31.x86_64", "Installed: nss-softokn-freebl-3.57.0-1.fc31.x86_64", "Installed: lvm2-libs-2.03.09-1.fc31.x86_64", "Installed: python3-gobject-base-3.34.0-3.fc31.x86_64", "Installed: libblockdev-mpath-2.24-2.fc31.x86_64", "Installed: nss-sysinit-3.57.0-1.fc31.x86_64", "Installed: device-mapper-event-1.02.171-1.fc31.x86_64", "Installed: nss-util-3.57.0-1.fc31.x86_64", "Installed: libblockdev-nvdimm-2.24-2.fc31.x86_64", "Installed: gobject-introspection-1.62.0-1.fc31.x86_64", "Installed: device-mapper-event-libs-1.02.171-1.fc31.x86_64", "Installed: userspace-rcu-0.11.1-2.fc31.x86_64", "Installed: libblockdev-part-2.24-2.fc31.x86_64", "Installed: volume_key-libs-0.3.12-4.fc31.x86_64", "Installed: libblockdev-swap-2.24-2.fc31.x86_64", "Installed: libblockdev-utils-2.24-2.fc31.x86_64", "Installed: blivet-data-1:3.1.7-2.fc31.noarch", "Installed: device-mapper-multipath-0.8.0-3.fc31.x86_64", "Installed: device-mapper-multipath-libs-0.8.0-3.fc31.x86_64", "Installed: device-mapper-persistent-data-0.8.5-2.fc31.x86_64", "Installed: sgpio-1.2.0.10-24.fc31.x86_64", "Installed: bcache-tools-1.0.8-16.fc31.x86_64", "Installed: python3-blivet-1:3.1.7-2.fc31.noarch", "Installed: daxctl-libs-70.1-1.fc31.x86_64", "Installed: python3-blockdev-2.24-2.fc31.x86_64", "Installed: python3-pyudev-0.21.0-11.fc31.noarch", "Installed: python3-pyparted-1:3.11.2-2.fc31.x86_64", "Installed: libbytesize-2.3-1.fc31.x86_64", "Installed: libaio-0.3.111-6.fc31.x86_64", "Installed: python3-bytesize-2.3-1.fc31.x86_64"]} TASK [linux-system-roles.storage : initialize internal facts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools": [], "_storage_vol_defaults": [], "_storage_vol_pools": [], "_storage_vols_no_defaults": [], "_storage_vols_no_defaults_by_pool": {}, "_storage_vols_w_defaults": [], "_storage_volumes": []}, "changed": false} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [1/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:28 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [2/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:36 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [3/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:44 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [4/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:52 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [5/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:61 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [6/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:72 TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools": [] } TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes": [] } TASK [linux-system-roles.storage : get required packages] ********************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": []} TASK [linux-system-roles.storage : make sure required packages are installed] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [linux-system-roles.storage : manage the pools and volumes to match the specified state] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:104 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": []} TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:114 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "blivet_output": { "actions": [], "changed": false, "crypts": [], "failed": false, "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": [] } } TASK [linux-system-roles.storage : set the list of pools for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:117 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : set the list of volumes for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:121 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : remove obsolete mounts] ********************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:137 TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:148 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : set up new/current mounts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:153 TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:164 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : Manage /etc/crypttab to account for changes we just made] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:172 TASK [linux-system-roles.storage : Update facts] ******************************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:187 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_create_raid_volume_then_remove.yml:13 included: /tmp/tmp7ksfxpzz/tests/get_unused_disk.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Find unused disks in the system] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/get_unused_disk.yml:2 [WARNING]: The value 0 (type int) in a string field was converted to '0' (type string). If this does not look like what you expect, quote the entire value to ensure it does not change. ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "disks": ["vda", "vdb"]} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/get_unused_disk.yml:8 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"unused_disks": ["vda", "vdb"]}, "changed": false} TASK [Exit playbook when there's not enough unused disks in the system] ******** task path: /tmp/tmp7ksfxpzz/tests/get_unused_disk.yml:12 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Print unused disks] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/get_unused_disk.yml:17 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "unused_disks": [ "vda", "vdb" ] } TASK [Create a RAID0 device mounted on "/opt/test1"] *************************** task path: /tmp/tmp7ksfxpzz/tests/tests_create_raid_volume_then_remove.yml:17 TASK [linux-system-roles.storage : Set version specific variables] ************* task path: /tmp/tmp7ksfxpzz/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-crypto", "libblockdev-dm", "libblockdev-lvm", "libblockdev-mdraid", "libblockdev-swap"]}, "ansible_included_var_files": ["/tmp/tmp7ksfxpzz/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.storage : define an empty list of pools to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : define an empty list of volumes to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : include the appropriate provider tasks] ***** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:22 included: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [linux-system-roles.storage : get a list of rpm packages installed on host machine] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : make sure blivet is available] ************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: python3-blivet", "Installed: libblockdev-crypto", "Installed: libblockdev-dm", "Installed: libblockdev-lvm", "Installed: libblockdev-mdraid", "Installed: libblockdev-swap"]} TASK [linux-system-roles.storage : initialize internal facts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools": [], "_storage_vol_defaults": [], "_storage_vol_pools": [], "_storage_vols_no_defaults": [], "_storage_vols_no_defaults_by_pool": {}, "_storage_vols_w_defaults": [], "_storage_volumes": []}, "changed": false} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [1/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:28 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [2/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:36 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [3/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:44 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [4/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:52 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [5/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:61 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [6/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:72 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'disks': [u'vda', u'vdb'], u'type': u'raid', u'mount_point': u'/opt/test1', u'name': u'test1', u'raid_level': u'raid0'}) => {"ansible_facts": {"_storage_volumes": [{"disks": ["vda", "vdb"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": "raid0", "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "raid"}]}, "ansible_loop_var": "volume", "changed": false, "volume": {"disks": ["vda", "vdb"], "mount_point": "/opt/test1", "name": "test1", "raid_level": "raid0", "type": "raid"}} TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools": [] } TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes": [ { "disks": [ "vda", "vdb" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": "raid0", "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "raid" } ] } TASK [linux-system-roles.storage : get required packages] ********************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": ["xfsprogs"], "pools": [], "volumes": []} TASK [linux-system-roles.storage : make sure required packages are installed] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: xfsprogs"]} TASK [linux-system-roles.storage : manage the pools and volumes to match the specified state] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:104 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [{"action": "create format", "device": "/dev/vdb", "fs_type": "disklabel"}, {"action": "create device", "device": "/dev/vdb1", "fs_type": null}, {"action": "create format", "device": "/dev/vdb1", "fs_type": "mdmember"}, {"action": "create format", "device": "/dev/vda", "fs_type": "disklabel"}, {"action": "create device", "device": "/dev/vda1", "fs_type": null}, {"action": "create format", "device": "/dev/vda1", "fs_type": "mdmember"}, {"action": "create device", "device": "/dev/md/test1", "fs_type": null}, {"action": "create format", "device": "/dev/md/test1", "fs_type": "xfs"}], "changed": true, "crypts": [], "leaves": ["/dev/sda1", "/dev/sr0", "/dev/vdc", "/dev/md/test1"], "mounts": [{"dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "UUID=ecc56493-c597-4ca8-b9a2-913ef8693699", "state": "mounted"}], "packages": ["mdadm", "xfsprogs", "e2fsprogs"], "pools": [], "volumes": [{"_device": "/dev/md/test1", "_kernel_device": "/dev/md127", "_mount_id": "UUID=ecc56493-c597-4ca8-b9a2-913ef8693699", "_raw_device": "/dev/md/test1", "_raw_kernel_device": "/dev/md127", "disks": ["vda", "vdb"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": "raid0", "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "raid"}]} TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:114 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "blivet_output": { "actions": [ { "action": "create format", "device": "/dev/vdb", "fs_type": "disklabel" }, { "action": "create device", "device": "/dev/vdb1", "fs_type": null }, { "action": "create format", "device": "/dev/vdb1", "fs_type": "mdmember" }, { "action": "create format", "device": "/dev/vda", "fs_type": "disklabel" }, { "action": "create device", "device": "/dev/vda1", "fs_type": null }, { "action": "create format", "device": "/dev/vda1", "fs_type": "mdmember" }, { "action": "create device", "device": "/dev/md/test1", "fs_type": null }, { "action": "create format", "device": "/dev/md/test1", "fs_type": "xfs" } ], "changed": true, "crypts": [], "failed": false, "leaves": [ "/dev/sda1", "/dev/sr0", "/dev/vdc", "/dev/md/test1" ], "mounts": [ { "dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "UUID=ecc56493-c597-4ca8-b9a2-913ef8693699", "state": "mounted" } ], "packages": [ "mdadm", "xfsprogs", "e2fsprogs" ], "pools": [], "volumes": [ { "_device": "/dev/md/test1", "_kernel_device": "/dev/md127", "_mount_id": "UUID=ecc56493-c597-4ca8-b9a2-913ef8693699", "_raw_device": "/dev/md/test1", "_raw_kernel_device": "/dev/md127", "disks": [ "vda", "vdb" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": "raid0", "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "raid" } ] } } TASK [linux-system-roles.storage : set the list of pools for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:117 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : set the list of volumes for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:121 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": [{"_device": "/dev/md/test1", "_kernel_device": "/dev/md127", "_mount_id": "UUID=ecc56493-c597-4ca8-b9a2-913ef8693699", "_raw_device": "/dev/md/test1", "_raw_kernel_device": "/dev/md127", "disks": ["vda", "vdb"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": "raid0", "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "raid"}]}, "changed": false} TASK [linux-system-roles.storage : remove obsolete mounts] ********************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:137 TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:148 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [linux-system-roles.storage : set up new/current mounts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:153 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'src': u'UUID=ecc56493-c597-4ca8-b9a2-913ef8693699', u'state': u'mounted', u'dump': 0, u'path': u'/opt/test1', u'passno': 0, u'opts': u'defaults', u'fstype': u'xfs'}) => {"ansible_loop_var": "mount_info", "changed": true, "dump": "0", "fstab": "/etc/fstab", "fstype": "xfs", "mount_info": {"dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "UUID=ecc56493-c597-4ca8-b9a2-913ef8693699", "state": "mounted"}, "name": "/opt/test1", "opts": "defaults", "passno": "0", "src": "UUID=ecc56493-c597-4ca8-b9a2-913ef8693699"} TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:164 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [linux-system-roles.storage : Manage /etc/crypttab to account for changes we just made] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:172 TASK [linux-system-roles.storage : Update facts] ******************************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:187 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_create_raid_volume_then_remove.yml:29 included: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Print out pool information] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:1 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {} TASK [Print out volume information] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:6 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes_list": [ { "_device": "/dev/md/test1", "_kernel_device": "/dev/md127", "_mount_id": "UUID=ecc56493-c597-4ca8-b9a2-913ef8693699", "_raw_device": "/dev/md/test1", "_raw_kernel_device": "/dev/md127", "disks": [ "vda", "vdb" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": "raid0", "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "raid" } ] } TASK [Collect info about the volumes.] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "info": {"/dev/md/test1": {"fstype": "xfs", "label": "", "name": "/dev/md/test1", "size": "20G", "type": "raid0", "uuid": "ecc56493-c597-4ca8-b9a2-913ef8693699"}, "/dev/sda": {"fstype": "", "label": "", "name": "/dev/sda", "size": "4G", "type": "disk", "uuid": ""}, "/dev/sda1": {"fstype": "ext4", "label": "", "name": "/dev/sda1", "size": "4G", "type": "partition", "uuid": "03e702b4-e165-4a39-88c9-9e210cd00434"}, "/dev/sr0": {"fstype": "iso9660", "label": "cidata", "name": "/dev/sr0", "size": "364K", "type": "rom", "uuid": "2020-10-31-12-15-31-00"}, "/dev/vda": {"fstype": "", "label": "", "name": "/dev/vda", "size": "10G", "type": "disk", "uuid": ""}, "/dev/vda1": {"fstype": "linux_raid_member", "label": "test1", "name": "/dev/vda1", "size": "10G", "type": "partition", "uuid": "fbe676e9-47f8-8bb2-fe05-efc9298077aa"}, "/dev/vdb": {"fstype": "", "label": "", "name": "/dev/vdb", "size": "10G", "type": "disk", "uuid": ""}, "/dev/vdb1": {"fstype": "linux_raid_member", "label": "test1", "name": "/dev/vdb1", "size": "10G", "type": "partition", "uuid": "fbe676e9-47f8-8bb2-fe05-efc9298077aa"}, "/dev/vdc": {"fstype": "", "label": "", "name": "/dev/vdc", "size": "10G", "type": "disk", "uuid": ""}}} TASK [Read the /etc/fstab file for volume existence] *************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:19 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/fstab"], "delta": "0:00:00.002477", "end": "2020-10-31 12:17:07.961069", "rc": 0, "start": "2020-10-31 12:17:07.958592", "stderr": "", "stderr_lines": [], "stdout": "\n#\n# /etc/fstab\n# Created by anaconda on Sat Oct 31 08:17:58 2020\n#\n# Accessible filesystems, by reference, are maintained under '/dev/disk/'.\n# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.\n#\n# After editing this file, run 'systemctl daemon-reload' to update systemd\n# units generated from this file.\n#\nUUID=03e702b4-e165-4a39-88c9-9e210cd00434 / ext4 defaults 1 1\nUUID=ecc56493-c597-4ca8-b9a2-913ef8693699 /opt/test1 xfs defaults 0 0", "stdout_lines": ["", "#", "# /etc/fstab", "# Created by anaconda on Sat Oct 31 08:17:58 2020", "#", "# Accessible filesystems, by reference, are maintained under '/dev/disk/'.", "# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.", "#", "# After editing this file, run 'systemctl daemon-reload' to update systemd", "# units generated from this file.", "#", "UUID=03e702b4-e165-4a39-88c9-9e210cd00434 / ext4 defaults 1 1", "UUID=ecc56493-c597-4ca8-b9a2-913ef8693699 /opt/test1 xfs defaults 0 0"]} TASK [Read the /etc/crypttab file] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/crypttab"], "delta": "0:00:01.004120", "end": "2020-10-31 12:17:09.286077", "rc": 0, "start": "2020-10-31 12:17:08.281957", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Verify the volumes listed in storage_pools were correctly managed] ******* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:32 TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:39 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_pool": null}, "changed": false} TASK [Verify the volumes with no pool were correctly managed] ****************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:46 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": true, "_storage_volume_tests": ["mount", "fstab", "fs", "device", "encryption", "md", "size"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:10 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Get expected mount device based on device type] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/md127"}, "changed": false} TASK [Set some facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [{"block_available": 5189226, "block_size": 4096, "block_total": 5234176, "block_used": 44950, "device": "/dev/md127", "fstype": "xfs", "inode_available": 10473469, "inode_total": 10473472, "inode_used": 3, "mount": "/opt/test1", "options": "rw,seclabel,relatime,attr2,inode64,logbufs=8,logbsize=32k,sunit=1024,swidth=2048,noquota", "size_available": 21255069696, "size_total": 21439184896, "uuid": "ecc56493-c597-4ca8-b9a2-913ef8693699"}], "storage_test_mount_expected_match_count": "1", "storage_test_mount_point_matches": [{"block_available": 5189226, "block_size": 4096, "block_total": 5234176, "block_used": 44950, "device": "/dev/md127", "fstype": "xfs", "inode_available": 10473469, "inode_total": 10473472, "inode_used": 3, "mount": "/opt/test1", "options": "rw,seclabel,relatime,attr2,inode64,logbufs=8,logbsize=32k,sunit=1024,swidth=2048,noquota", "size_available": 21255069696, "size_total": 21439184896, "uuid": "ecc56493-c597-4ca8-b9a2-913ef8693699"}], "storage_test_swap_expected_matches": "0"}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:22 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:31 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:39 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [command] ***************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Gather swap info] ******************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:52 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify swap status] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:57 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Unset facts] ************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:67 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null, "storage_test_swap_expected_matches": null, "storage_test_swaps": null, "storage_test_sys_node": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": "1", "storage_test_fstab_expected_mount_point_matches": "1", "storage_test_fstab_id_matches": ["UUID=ecc56493-c597-4ca8-b9a2-913ef8693699 "], "storage_test_fstab_mount_point_matches": [" /opt/test1 "]}, "changed": false} TASK [Verify that the device identifier appears in /etc/fstab] ***************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:17 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": null, "storage_test_fstab_expected_mount_point_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [Verify fs type] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify fs label] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [See whether the device node is present] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "stat": {"atime": 1604146623.9462461, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "ctime": 1604146623.9462461, "dev": 5, "device_type": 2431, "executable": false, "exists": true, "gid": 6, "gr_name": "disk", "inode": 50323, "isblk": true, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mimetype": "inode/symlink", "mode": "0660", "mtime": 1604146623.9462461, "nlink": 1, "path": "/dev/md/test1", "pw_name": "root", "readable": true, "rgrp": true, "roth": false, "rusr": true, "size": 0, "uid": 0, "version": null, "wgrp": true, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}} TASK [Verify the presence/absence of the device node] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "raid"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:28 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "raid0"}, "changed": false} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:33 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Stat the LUKS device, if encrypted] ************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:3 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Collect LUKS info for this volume] *************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:10 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the presence/absence of the LUKS device node] ********************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:16 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify that the raw device is the same as the device if not encrypted] *** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:25 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about the LUKS volume if encrypted] **************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the LUKS volume's device type if encrypted] *********************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS version] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:42 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS key size] ***************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS cipher] ******************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:54 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:60 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": [], "_storage_test_expected_crypttab_entries": "0", "_storage_test_expected_crypttab_key_file": "-"}, "changed": false} TASK [Check for /etc/crypttab entry] ******************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:65 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Validate the format of the crypttab entry] ******************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:70 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check backing device of crypttab entry] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:76 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check key file of crypttab entry] **************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:82 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:88 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null, "_storage_test_expected_crypttab_entries": null, "_storage_test_expected_crypttab_key_file": null}, "changed": false} TASK [get information about RAID] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:7 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["mdadm", "--detail", "/dev/md/test1"], "delta": "0:00:00.009601", "end": "2020-10-31 12:17:11.503695", "rc": 0, "start": "2020-10-31 12:17:11.494094", "stderr": "", "stderr_lines": [], "stdout": "/dev/md/test1:\n Version : 1.2\n Creation Time : Sat Oct 31 12:16:58 2020\n Raid Level : raid0\n Array Size : 20951040 (19.98 GiB 21.45 GB)\n Raid Devices : 2\n Total Devices : 2\n Persistence : Superblock is persistent\n\n Update Time : Sat Oct 31 12:16:58 2020\n State : clean \n Active Devices : 2\n Working Devices : 2\n Failed Devices : 0\n Spare Devices : 0\n\n Chunk Size : 512K\n\nConsistency Policy : none\n\n Name : test1\n UUID : fbe676e9:47f88bb2:fe05efc9:298077aa\n Events : 0\n\n Number Major Minor RaidDevice State\n 0 252 1 0 active sync /dev/vda1\n 1 252 17 1 active sync /dev/vdb1", "stdout_lines": ["/dev/md/test1:", " Version : 1.2", " Creation Time : Sat Oct 31 12:16:58 2020", " Raid Level : raid0", " Array Size : 20951040 (19.98 GiB 21.45 GB)", " Raid Devices : 2", " Total Devices : 2", " Persistence : Superblock is persistent", "", " Update Time : Sat Oct 31 12:16:58 2020", " State : clean ", " Active Devices : 2", " Working Devices : 2", " Failed Devices : 0", " Spare Devices : 0", "", " Chunk Size : 512K", "", "Consistency Policy : none", "", " Name : test1", " UUID : fbe676e9:47f88bb2:fe05efc9:298077aa", " Events : 0", "", " Number Major Minor RaidDevice State", " 0 252 1 0 active sync /dev/vda1", " 1 252 17 1 active sync /dev/vdb1"]} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:13 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_md_active_devices_re": "Active\\ Devices\\ \\:\\ None\\\n"}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:17 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_md_spare_devices_re": "Spare\\ Devices\\ \\:\\ None\\\n"}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:21 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_md_metadata_version_re": "Version\\ \\:\\ None\\\n"}, "changed": false} TASK [check RAID active devices count] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:25 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID spare devices count] ****************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID metadata version] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [parse the actual size of the volume] ************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:3 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"bytes": 21474836480, "changed": false, "lvm": "20g", "parted": "20GiB", "size": "20 GiB"} TASK [parse the requested size of the volume] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:9 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:15 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_actual_size": { "bytes": 21474836480, "changed": false, "failed": false, "lvm": "20g", "parted": "20GiB", "size": "20 GiB" } } TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_requested_size": { "changed": false, "skip_reason": "Conditional result was False", "skipped": true } } TASK [assert] ****************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Clean up facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:16 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:56 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_blkinfo": null, "storage_test_crypttab": null, "storage_test_fstab": null, "storage_test_volume": null}, "changed": false} TASK [Repeat the previous invocation to verify idempotence] ******************** task path: /tmp/tmp7ksfxpzz/tests/tests_create_raid_volume_then_remove.yml:31 TASK [linux-system-roles.storage : Set version specific variables] ************* task path: /tmp/tmp7ksfxpzz/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-crypto", "libblockdev-dm", "libblockdev-lvm", "libblockdev-mdraid", "libblockdev-swap"]}, "ansible_included_var_files": ["/tmp/tmp7ksfxpzz/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.storage : define an empty list of pools to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : define an empty list of volumes to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : include the appropriate provider tasks] ***** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:22 included: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [linux-system-roles.storage : get a list of rpm packages installed on host machine] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : make sure blivet is available] ************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: python3-blivet", "Installed: libblockdev-crypto", "Installed: libblockdev-dm", "Installed: libblockdev-lvm", "Installed: libblockdev-mdraid", "Installed: libblockdev-swap"]} TASK [linux-system-roles.storage : initialize internal facts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools": [], "_storage_vol_defaults": [], "_storage_vol_pools": [], "_storage_vols_no_defaults": [], "_storage_vols_no_defaults_by_pool": {}, "_storage_vols_w_defaults": [], "_storage_volumes": []}, "changed": false} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [1/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:28 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [2/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:36 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [3/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:44 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [4/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:52 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [5/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:61 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [6/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:72 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'disks': [u'vda', u'vdb'], u'type': u'raid', u'mount_point': u'/opt/test1', u'name': u'test1', u'raid_level': u'raid0'}) => {"ansible_facts": {"_storage_volumes": [{"disks": ["vda", "vdb"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": "raid0", "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "raid"}]}, "ansible_loop_var": "volume", "changed": false, "volume": {"disks": ["vda", "vdb"], "mount_point": "/opt/test1", "name": "test1", "raid_level": "raid0", "type": "raid"}} TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools": [] } TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes": [ { "disks": [ "vda", "vdb" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": "raid0", "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "raid" } ] } TASK [linux-system-roles.storage : get required packages] ********************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": ["xfsprogs"], "pools": [], "volumes": []} TASK [linux-system-roles.storage : make sure required packages are installed] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: xfsprogs"]} TASK [linux-system-roles.storage : manage the pools and volumes to match the specified state] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:104 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": ["/dev/sda1", "/dev/sr0", "/dev/md/test1", "/dev/vdc"], "mounts": [{"dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "UUID=ecc56493-c597-4ca8-b9a2-913ef8693699", "state": "mounted"}], "packages": ["xfsprogs", "mdadm", "e2fsprogs"], "pools": [], "volumes": [{"_device": "/dev/md/test1", "_kernel_device": "/dev/md127", "_mount_id": "UUID=ecc56493-c597-4ca8-b9a2-913ef8693699", "_raw_device": "/dev/md/test1", "_raw_kernel_device": "/dev/md127", "disks": ["vda", "vdb"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": "raid0", "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "raid"}]} TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:114 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "blivet_output": { "actions": [], "changed": false, "crypts": [], "failed": false, "leaves": [ "/dev/sda1", "/dev/sr0", "/dev/md/test1", "/dev/vdc" ], "mounts": [ { "dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "UUID=ecc56493-c597-4ca8-b9a2-913ef8693699", "state": "mounted" } ], "packages": [ "xfsprogs", "mdadm", "e2fsprogs" ], "pools": [], "volumes": [ { "_device": "/dev/md/test1", "_kernel_device": "/dev/md127", "_mount_id": "UUID=ecc56493-c597-4ca8-b9a2-913ef8693699", "_raw_device": "/dev/md/test1", "_raw_kernel_device": "/dev/md127", "disks": [ "vda", "vdb" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": "raid0", "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "raid" } ] } } TASK [linux-system-roles.storage : set the list of pools for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:117 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : set the list of volumes for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:121 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": [{"_device": "/dev/md/test1", "_kernel_device": "/dev/md127", "_mount_id": "UUID=ecc56493-c597-4ca8-b9a2-913ef8693699", "_raw_device": "/dev/md/test1", "_raw_kernel_device": "/dev/md127", "disks": ["vda", "vdb"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": "raid0", "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "raid"}]}, "changed": false} TASK [linux-system-roles.storage : remove obsolete mounts] ********************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:137 TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:148 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [linux-system-roles.storage : set up new/current mounts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:153 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'src': u'UUID=ecc56493-c597-4ca8-b9a2-913ef8693699', u'state': u'mounted', u'dump': 0, u'path': u'/opt/test1', u'passno': 0, u'opts': u'defaults', u'fstype': u'xfs'}) => {"ansible_loop_var": "mount_info", "changed": false, "dump": "0", "fstab": "/etc/fstab", "fstype": "xfs", "mount_info": {"dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "UUID=ecc56493-c597-4ca8-b9a2-913ef8693699", "state": "mounted"}, "name": "/opt/test1", "opts": "defaults", "passno": "0", "src": "UUID=ecc56493-c597-4ca8-b9a2-913ef8693699"} TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:164 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [linux-system-roles.storage : Manage /etc/crypttab to account for changes we just made] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:172 TASK [linux-system-roles.storage : Update facts] ******************************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:187 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_create_raid_volume_then_remove.yml:43 included: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Print out pool information] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:1 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {} TASK [Print out volume information] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:6 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes_list": [ { "_device": "/dev/md/test1", "_kernel_device": "/dev/md127", "_mount_id": "UUID=ecc56493-c597-4ca8-b9a2-913ef8693699", "_raw_device": "/dev/md/test1", "_raw_kernel_device": "/dev/md127", "disks": [ "vda", "vdb" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": "raid0", "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "raid" } ] } TASK [Collect info about the volumes.] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "info": {"/dev/md/test1": {"fstype": "xfs", "label": "", "name": "/dev/md/test1", "size": "20G", "type": "raid0", "uuid": "ecc56493-c597-4ca8-b9a2-913ef8693699"}, "/dev/sda": {"fstype": "", "label": "", "name": "/dev/sda", "size": "4G", "type": "disk", "uuid": ""}, "/dev/sda1": {"fstype": "ext4", "label": "", "name": "/dev/sda1", "size": "4G", "type": "partition", "uuid": "03e702b4-e165-4a39-88c9-9e210cd00434"}, "/dev/sr0": {"fstype": "iso9660", "label": "cidata", "name": "/dev/sr0", "size": "364K", "type": "rom", "uuid": "2020-10-31-12-15-31-00"}, "/dev/vda": {"fstype": "", "label": "", "name": "/dev/vda", "size": "10G", "type": "disk", "uuid": ""}, "/dev/vda1": {"fstype": "linux_raid_member", "label": "test1", "name": "/dev/vda1", "size": "10G", "type": "partition", "uuid": "fbe676e9-47f8-8bb2-fe05-efc9298077aa"}, "/dev/vdb": {"fstype": "", "label": "", "name": "/dev/vdb", "size": "10G", "type": "disk", "uuid": ""}, "/dev/vdb1": {"fstype": "linux_raid_member", "label": "test1", "name": "/dev/vdb1", "size": "10G", "type": "partition", "uuid": "fbe676e9-47f8-8bb2-fe05-efc9298077aa"}, "/dev/vdc": {"fstype": "", "label": "", "name": "/dev/vdc", "size": "10G", "type": "disk", "uuid": ""}}} TASK [Read the /etc/fstab file for volume existence] *************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:19 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/fstab"], "delta": "0:00:00.002924", "end": "2020-10-31 12:17:27.555792", "rc": 0, "start": "2020-10-31 12:17:27.552868", "stderr": "", "stderr_lines": [], "stdout": "\n#\n# /etc/fstab\n# Created by anaconda on Sat Oct 31 08:17:58 2020\n#\n# Accessible filesystems, by reference, are maintained under '/dev/disk/'.\n# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.\n#\n# After editing this file, run 'systemctl daemon-reload' to update systemd\n# units generated from this file.\n#\nUUID=03e702b4-e165-4a39-88c9-9e210cd00434 / ext4 defaults 1 1\nUUID=ecc56493-c597-4ca8-b9a2-913ef8693699 /opt/test1 xfs defaults 0 0", "stdout_lines": ["", "#", "# /etc/fstab", "# Created by anaconda on Sat Oct 31 08:17:58 2020", "#", "# Accessible filesystems, by reference, are maintained under '/dev/disk/'.", "# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.", "#", "# After editing this file, run 'systemctl daemon-reload' to update systemd", "# units generated from this file.", "#", "UUID=03e702b4-e165-4a39-88c9-9e210cd00434 / ext4 defaults 1 1", "UUID=ecc56493-c597-4ca8-b9a2-913ef8693699 /opt/test1 xfs defaults 0 0"]} TASK [Read the /etc/crypttab file] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/crypttab"], "delta": "0:00:00.003319", "end": "2020-10-31 12:17:27.891959", "rc": 0, "start": "2020-10-31 12:17:27.888640", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Verify the volumes listed in storage_pools were correctly managed] ******* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:32 TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:39 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_pool": null}, "changed": false} TASK [Verify the volumes with no pool were correctly managed] ****************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:46 [WARNING]: The loop variable 'storage_test_volume' is already in use. You should set the `loop_var` value in the `loop_control` option for the task to something else to avoid variable collisions and unexpected behavior. included: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": true, "_storage_volume_tests": ["mount", "fstab", "fs", "device", "encryption", "md", "size"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:10 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Get expected mount device based on device type] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/md127"}, "changed": false} TASK [Set some facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [{"block_available": 5189226, "block_size": 4096, "block_total": 5234176, "block_used": 44950, "device": "/dev/md127", "fstype": "xfs", "inode_available": 10473469, "inode_total": 10473472, "inode_used": 3, "mount": "/opt/test1", "options": "rw,seclabel,relatime,attr2,inode64,logbufs=8,logbsize=32k,sunit=1024,swidth=2048,noquota", "size_available": 21255069696, "size_total": 21439184896, "uuid": "ecc56493-c597-4ca8-b9a2-913ef8693699"}], "storage_test_mount_expected_match_count": "1", "storage_test_mount_point_matches": [{"block_available": 5189226, "block_size": 4096, "block_total": 5234176, "block_used": 44950, "device": "/dev/md127", "fstype": "xfs", "inode_available": 10473469, "inode_total": 10473472, "inode_used": 3, "mount": "/opt/test1", "options": "rw,seclabel,relatime,attr2,inode64,logbufs=8,logbsize=32k,sunit=1024,swidth=2048,noquota", "size_available": 21255069696, "size_total": 21439184896, "uuid": "ecc56493-c597-4ca8-b9a2-913ef8693699"}], "storage_test_swap_expected_matches": "0"}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:22 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:31 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:39 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [command] ***************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Gather swap info] ******************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:52 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify swap status] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:57 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Unset facts] ************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:67 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null, "storage_test_swap_expected_matches": null, "storage_test_swaps": null, "storage_test_sys_node": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": "1", "storage_test_fstab_expected_mount_point_matches": "1", "storage_test_fstab_id_matches": ["UUID=ecc56493-c597-4ca8-b9a2-913ef8693699 "], "storage_test_fstab_mount_point_matches": [" /opt/test1 "]}, "changed": false} TASK [Verify that the device identifier appears in /etc/fstab] ***************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:17 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": null, "storage_test_fstab_expected_mount_point_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [Verify fs type] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify fs label] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [See whether the device node is present] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "stat": {"atime": 1604146623.9462461, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "ctime": 1604146623.9462461, "dev": 5, "device_type": 2431, "executable": false, "exists": true, "gid": 6, "gr_name": "disk", "inode": 50323, "isblk": true, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mimetype": "inode/symlink", "mode": "0660", "mtime": 1604146623.9462461, "nlink": 1, "path": "/dev/md/test1", "pw_name": "root", "readable": true, "rgrp": true, "roth": false, "rusr": true, "size": 0, "uid": 0, "version": null, "wgrp": true, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}} TASK [Verify the presence/absence of the device node] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "raid"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:28 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "raid0"}, "changed": false} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:33 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Stat the LUKS device, if encrypted] ************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:3 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Collect LUKS info for this volume] *************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:10 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the presence/absence of the LUKS device node] ********************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:16 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify that the raw device is the same as the device if not encrypted] *** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:25 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about the LUKS volume if encrypted] **************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the LUKS volume's device type if encrypted] *********************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS version] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:42 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS key size] ***************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS cipher] ******************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:54 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:60 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": [], "_storage_test_expected_crypttab_entries": "0", "_storage_test_expected_crypttab_key_file": "-"}, "changed": false} TASK [Check for /etc/crypttab entry] ******************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:65 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Validate the format of the crypttab entry] ******************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:70 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check backing device of crypttab entry] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:76 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check key file of crypttab entry] **************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:82 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:88 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null, "_storage_test_expected_crypttab_entries": null, "_storage_test_expected_crypttab_key_file": null}, "changed": false} TASK [get information about RAID] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:7 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["mdadm", "--detail", "/dev/md/test1"], "delta": "0:00:00.008751", "end": "2020-10-31 12:17:29.782728", "rc": 0, "start": "2020-10-31 12:17:29.773977", "stderr": "", "stderr_lines": [], "stdout": "/dev/md/test1:\n Version : 1.2\n Creation Time : Sat Oct 31 12:16:58 2020\n Raid Level : raid0\n Array Size : 20951040 (19.98 GiB 21.45 GB)\n Raid Devices : 2\n Total Devices : 2\n Persistence : Superblock is persistent\n\n Update Time : Sat Oct 31 12:16:58 2020\n State : clean \n Active Devices : 2\n Working Devices : 2\n Failed Devices : 0\n Spare Devices : 0\n\n Chunk Size : 512K\n\nConsistency Policy : none\n\n Name : test1\n UUID : fbe676e9:47f88bb2:fe05efc9:298077aa\n Events : 0\n\n Number Major Minor RaidDevice State\n 0 252 1 0 active sync /dev/vda1\n 1 252 17 1 active sync /dev/vdb1", "stdout_lines": ["/dev/md/test1:", " Version : 1.2", " Creation Time : Sat Oct 31 12:16:58 2020", " Raid Level : raid0", " Array Size : 20951040 (19.98 GiB 21.45 GB)", " Raid Devices : 2", " Total Devices : 2", " Persistence : Superblock is persistent", "", " Update Time : Sat Oct 31 12:16:58 2020", " State : clean ", " Active Devices : 2", " Working Devices : 2", " Failed Devices : 0", " Spare Devices : 0", "", " Chunk Size : 512K", "", "Consistency Policy : none", "", " Name : test1", " UUID : fbe676e9:47f88bb2:fe05efc9:298077aa", " Events : 0", "", " Number Major Minor RaidDevice State", " 0 252 1 0 active sync /dev/vda1", " 1 252 17 1 active sync /dev/vdb1"]} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:13 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_md_active_devices_re": "Active\\ Devices\\ \\:\\ None\\\n"}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:17 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_md_spare_devices_re": "Spare\\ Devices\\ \\:\\ None\\\n"}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:21 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_md_metadata_version_re": "Version\\ \\:\\ None\\\n"}, "changed": false} TASK [check RAID active devices count] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:25 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID spare devices count] ****************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID metadata version] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [parse the actual size of the volume] ************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:3 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"bytes": 21474836480, "changed": false, "lvm": "20g", "parted": "20GiB", "size": "20 GiB"} TASK [parse the requested size of the volume] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:9 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:15 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_actual_size": { "bytes": 21474836480, "changed": false, "failed": false, "lvm": "20g", "parted": "20GiB", "size": "20 GiB" } } TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_requested_size": { "changed": false, "skip_reason": "Conditional result was False", "skipped": true } } TASK [assert] ****************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Clean up facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:16 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:56 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_blkinfo": null, "storage_test_crypttab": null, "storage_test_fstab": null, "storage_test_volume": null}, "changed": false} TASK [Remove the disk device created above] ************************************ task path: /tmp/tmp7ksfxpzz/tests/tests_create_raid_volume_then_remove.yml:45 TASK [linux-system-roles.storage : Set version specific variables] ************* task path: /tmp/tmp7ksfxpzz/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-crypto", "libblockdev-dm", "libblockdev-lvm", "libblockdev-mdraid", "libblockdev-swap"]}, "ansible_included_var_files": ["/tmp/tmp7ksfxpzz/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.storage : define an empty list of pools to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : define an empty list of volumes to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : include the appropriate provider tasks] ***** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:22 included: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [linux-system-roles.storage : get a list of rpm packages installed on host machine] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : make sure blivet is available] ************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: python3-blivet", "Installed: libblockdev-crypto", "Installed: libblockdev-dm", "Installed: libblockdev-lvm", "Installed: libblockdev-mdraid", "Installed: libblockdev-swap"]} TASK [linux-system-roles.storage : initialize internal facts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools": [], "_storage_vol_defaults": [], "_storage_vol_pools": [], "_storage_vols_no_defaults": [], "_storage_vols_no_defaults_by_pool": {}, "_storage_vols_w_defaults": [], "_storage_volumes": []}, "changed": false} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [1/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:28 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [2/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:36 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [3/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:44 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [4/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:52 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [5/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:61 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [6/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:72 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'state': u'absent', u'mount_point': u'/opt/test1', u'name': u'test1', u'disks': [u'vda', u'vdb'], u'type': u'raid', u'raid_level': u'raid0'}) => {"ansible_facts": {"_storage_volumes": [{"disks": ["vda", "vdb"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": "raid0", "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "absent", "type": "raid"}]}, "ansible_loop_var": "volume", "changed": false, "volume": {"disks": ["vda", "vdb"], "mount_point": "/opt/test1", "name": "test1", "raid_level": "raid0", "state": "absent", "type": "raid"}} TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools": [] } TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes": [ { "disks": [ "vda", "vdb" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": "raid0", "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "absent", "type": "raid" } ] } TASK [linux-system-roles.storage : get required packages] ********************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": []} TASK [linux-system-roles.storage : make sure required packages are installed] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [linux-system-roles.storage : manage the pools and volumes to match the specified state] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:104 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [{"action": "destroy format", "device": "/dev/md/test1", "fs_type": "xfs"}, {"action": "destroy device", "device": "/dev/md/test1", "fs_type": null}, {"action": "destroy format", "device": "/dev/vda1", "fs_type": "mdmember"}, {"action": "destroy device", "device": "/dev/vda1", "fs_type": null}, {"action": "destroy format", "device": "/dev/vda", "fs_type": "disklabel"}, {"action": "destroy format", "device": "/dev/vdb1", "fs_type": "mdmember"}, {"action": "destroy device", "device": "/dev/vdb1", "fs_type": null}, {"action": "destroy format", "device": "/dev/vdb", "fs_type": "disklabel"}], "changed": true, "crypts": [], "leaves": ["/dev/sda1", "/dev/sr0", "/dev/vda", "/dev/vdb", "/dev/vdc"], "mounts": [{"fstype": "xfs", "path": "/opt/test1", "src": "UUID=ecc56493-c597-4ca8-b9a2-913ef8693699", "state": "absent"}], "packages": ["e2fsprogs"], "pools": [], "volumes": [{"_device": "", "_mount_id": "", "_raw_device": "", "disks": ["vda", "vdb"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": "raid0", "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "absent", "type": "raid"}]} TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:114 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "blivet_output": { "actions": [ { "action": "destroy format", "device": "/dev/md/test1", "fs_type": "xfs" }, { "action": "destroy device", "device": "/dev/md/test1", "fs_type": null }, { "action": "destroy format", "device": "/dev/vda1", "fs_type": "mdmember" }, { "action": "destroy device", "device": "/dev/vda1", "fs_type": null }, { "action": "destroy format", "device": "/dev/vda", "fs_type": "disklabel" }, { "action": "destroy format", "device": "/dev/vdb1", "fs_type": "mdmember" }, { "action": "destroy device", "device": "/dev/vdb1", "fs_type": null }, { "action": "destroy format", "device": "/dev/vdb", "fs_type": "disklabel" } ], "changed": true, "crypts": [], "failed": false, "leaves": [ "/dev/sda1", "/dev/sr0", "/dev/vda", "/dev/vdb", "/dev/vdc" ], "mounts": [ { "fstype": "xfs", "path": "/opt/test1", "src": "UUID=ecc56493-c597-4ca8-b9a2-913ef8693699", "state": "absent" } ], "packages": [ "e2fsprogs" ], "pools": [], "volumes": [ { "_device": "", "_mount_id": "", "_raw_device": "", "disks": [ "vda", "vdb" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": "raid0", "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "absent", "type": "raid" } ] } } TASK [linux-system-roles.storage : set the list of pools for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:117 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : set the list of volumes for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:121 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": [{"_device": "", "_mount_id": "", "_raw_device": "", "disks": ["vda", "vdb"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": "raid0", "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "absent", "type": "raid"}]}, "changed": false} TASK [linux-system-roles.storage : remove obsolete mounts] ********************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:137 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'src': u'UUID=ecc56493-c597-4ca8-b9a2-913ef8693699', u'state': u'absent', u'fstype': u'xfs', u'path': u'/opt/test1'}) => {"ansible_loop_var": "mount_info", "changed": true, "dump": "0", "fstab": "/etc/fstab", "fstype": "xfs", "mount_info": {"fstype": "xfs", "path": "/opt/test1", "src": "UUID=ecc56493-c597-4ca8-b9a2-913ef8693699", "state": "absent"}, "name": "/opt/test1", "opts": "defaults", "passno": "0", "src": "UUID=ecc56493-c597-4ca8-b9a2-913ef8693699"} TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:148 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [linux-system-roles.storage : set up new/current mounts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:153 TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:164 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [linux-system-roles.storage : Manage /etc/crypttab to account for changes we just made] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:172 TASK [linux-system-roles.storage : Update facts] ******************************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:187 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_create_raid_volume_then_remove.yml:58 included: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Print out pool information] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:1 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {} TASK [Print out volume information] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:6 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes_list": [ { "_device": "", "_mount_id": "", "_raw_device": "", "disks": [ "vda", "vdb" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": "raid0", "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "absent", "type": "raid" } ] } TASK [Collect info about the volumes.] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "info": {"/dev/sda": {"fstype": "", "label": "", "name": "/dev/sda", "size": "4G", "type": "disk", "uuid": ""}, "/dev/sda1": {"fstype": "ext4", "label": "", "name": "/dev/sda1", "size": "4G", "type": "partition", "uuid": "03e702b4-e165-4a39-88c9-9e210cd00434"}, "/dev/sr0": {"fstype": "iso9660", "label": "cidata", "name": "/dev/sr0", "size": "364K", "type": "rom", "uuid": "2020-10-31-12-15-31-00"}, "/dev/vda": {"fstype": "", "label": "", "name": "/dev/vda", "size": "10G", "type": "disk", "uuid": ""}, "/dev/vdb": {"fstype": "", "label": "", "name": "/dev/vdb", "size": "10G", "type": "disk", "uuid": ""}, "/dev/vdc": {"fstype": "", "label": "", "name": "/dev/vdc", "size": "10G", "type": "disk", "uuid": ""}}} TASK [Read the /etc/fstab file for volume existence] *************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:19 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/fstab"], "delta": "0:00:00.002610", "end": "2020-10-31 12:17:46.383728", "rc": 0, "start": "2020-10-31 12:17:46.381118", "stderr": "", "stderr_lines": [], "stdout": "\n#\n# /etc/fstab\n# Created by anaconda on Sat Oct 31 08:17:58 2020\n#\n# Accessible filesystems, by reference, are maintained under '/dev/disk/'.\n# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.\n#\n# After editing this file, run 'systemctl daemon-reload' to update systemd\n# units generated from this file.\n#\nUUID=03e702b4-e165-4a39-88c9-9e210cd00434 / ext4 defaults 1 1", "stdout_lines": ["", "#", "# /etc/fstab", "# Created by anaconda on Sat Oct 31 08:17:58 2020", "#", "# Accessible filesystems, by reference, are maintained under '/dev/disk/'.", "# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.", "#", "# After editing this file, run 'systemctl daemon-reload' to update systemd", "# units generated from this file.", "#", "UUID=03e702b4-e165-4a39-88c9-9e210cd00434 / ext4 defaults 1 1"]} TASK [Read the /etc/crypttab file] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/crypttab"], "delta": "0:00:00.003516", "end": "2020-10-31 12:17:46.736717", "rc": 0, "start": "2020-10-31 12:17:46.733201", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Verify the volumes listed in storage_pools were correctly managed] ******* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:32 TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:39 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_pool": null}, "changed": false} TASK [Verify the volumes with no pool were correctly managed] ****************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:46 [WARNING]: The loop variable 'storage_test_volume' is already in use. You should set the `loop_var` value in the `loop_control` option for the task to something else to avoid variable collisions and unexpected behavior. included: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": false, "_storage_volume_tests": ["mount", "fstab", "fs", "device", "encryption", "md", "size"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:10 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Get expected mount device based on device type] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": ""}, "changed": false} TASK [Set some facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [], "storage_test_mount_expected_match_count": "0", "storage_test_mount_point_matches": [], "storage_test_swap_expected_matches": "0"}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:22 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:31 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:39 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [command] ***************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Gather swap info] ******************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:52 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify swap status] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:57 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Unset facts] ************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:67 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null, "storage_test_swap_expected_matches": null, "storage_test_swaps": null, "storage_test_sys_node": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": "0", "storage_test_fstab_expected_mount_point_matches": "0", "storage_test_fstab_id_matches": [], "storage_test_fstab_mount_point_matches": []}, "changed": false} TASK [Verify that the device identifier appears in /etc/fstab] ***************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:10 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:17 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": null, "storage_test_fstab_expected_mount_point_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [Verify fs type] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:4 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify fs label] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:10 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [See whether the device node is present] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "stat": {"exists": false}} TASK [Verify the presence/absence of the device node] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:18 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "raid"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:28 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "raid0"}, "changed": false} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:33 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Stat the LUKS device, if encrypted] ************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:3 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Collect LUKS info for this volume] *************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:10 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the presence/absence of the LUKS device node] ********************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:16 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify that the raw device is the same as the device if not encrypted] *** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:25 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Make sure we got info about the LUKS volume if encrypted] **************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the LUKS volume's device type if encrypted] *********************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS version] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:42 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS key size] ***************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS cipher] ******************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:54 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:60 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": [], "_storage_test_expected_crypttab_entries": "0", "_storage_test_expected_crypttab_key_file": "-"}, "changed": false} TASK [Check for /etc/crypttab entry] ******************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:65 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Validate the format of the crypttab entry] ******************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:70 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check backing device of crypttab entry] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:76 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check key file of crypttab entry] **************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:82 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:88 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null, "_storage_test_expected_crypttab_entries": null, "_storage_test_expected_crypttab_key_file": null}, "changed": false} TASK [get information about RAID] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:7 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:13 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:17 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID active devices count] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:25 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID spare devices count] ****************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID metadata version] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [parse the actual size of the volume] ************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:3 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [parse the requested size of the volume] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:9 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:15 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_actual_size": { "changed": false, "skip_reason": "Conditional result was False", "skipped": true } } TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_requested_size": { "changed": false, "skip_reason": "Conditional result was False", "skipped": true } } TASK [assert] ****************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Clean up facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:16 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:56 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_blkinfo": null, "storage_test_crypttab": null, "storage_test_fstab": null, "storage_test_volume": null}, "changed": false} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 : ok=203 changed=5 unreachable=0 failed=0 skipped=114 rescued=0 ignored=0 + cd /tmp/tmp7ksfxpzz/tests; TEST_SUBJECTS=/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_storage-178-e856157-fedora-31-87qzp9iq/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmp7ksfxpzz/_setup.yml /tmp/tmp7ksfxpzz/tests/tests_default.yml ansible-playbook 2.8.16 config file = /etc/ansible/ansible.cfg configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python2.7/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 2.7.5 (default, Apr 2 2020, 13:16:51) [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)] Using /etc/ansible/ansible.cfg as config file PLAYBOOK: _setup.yml *********************************************************** 1 plays in /tmp/tmp7ksfxpzz/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/_setup.yml:5 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "groups": { "all": [ "/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2" ], "localhost": [ "/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2" ], "subjects": [ "/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmp7ksfxpzz/_setup.yml:6 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 : ok=1 changed=0 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 PLAYBOOK: tests_default.yml **************************************************** 1 plays in /tmp/tmp7ksfxpzz/tests/tests_default.yml PLAY [Ensure that the role runs with default parameters] *********************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/tests_default.yml:1 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] META: ran handlers TASK [linux-system-roles.storage : Set version specific variables] ************* task path: /tmp/tmp7ksfxpzz/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-crypto", "libblockdev-dm", "libblockdev-lvm", "libblockdev-mdraid", "libblockdev-swap"]}, "ansible_included_var_files": ["/tmp/tmp7ksfxpzz/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.storage : define an empty list of pools to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : define an empty list of volumes to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : include the appropriate provider tasks] ***** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:22 included: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [linux-system-roles.storage : get a list of rpm packages installed on host machine] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : make sure blivet is available] ************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:7 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: python3-blivet", "Installed: libblockdev-crypto", "Installed: libblockdev-dm", "Installed: libblockdev-lvm", "Installed: libblockdev-mdraid", "Installed: libblockdev-swap", "Installed: libblockdev-kbd-2.24-2.fc31.x86_64", "Installed: nspr-4.29.0-1.fc31.x86_64", "Installed: libblockdev-loop-2.24-2.fc31.x86_64", "Installed: nss-3.57.0-1.fc31.x86_64", "Installed: libblockdev-lvm-2.24-2.fc31.x86_64", "Installed: lsof-4.93.2-2.fc31.x86_64", "Installed: lvm2-2.03.09-1.fc31.x86_64", "Installed: nss-softokn-3.57.0-1.fc31.x86_64", "Installed: libblockdev-mdraid-2.24-2.fc31.x86_64", "Installed: nss-softokn-freebl-3.57.0-1.fc31.x86_64", "Installed: lvm2-libs-2.03.09-1.fc31.x86_64", "Installed: python3-gobject-base-3.34.0-3.fc31.x86_64", "Installed: libblockdev-mpath-2.24-2.fc31.x86_64", "Installed: nss-sysinit-3.57.0-1.fc31.x86_64", "Installed: device-mapper-event-1.02.171-1.fc31.x86_64", "Installed: nss-util-3.57.0-1.fc31.x86_64", "Installed: libblockdev-nvdimm-2.24-2.fc31.x86_64", "Installed: gobject-introspection-1.62.0-1.fc31.x86_64", "Installed: device-mapper-event-libs-1.02.171-1.fc31.x86_64", "Installed: userspace-rcu-0.11.1-2.fc31.x86_64", "Installed: libblockdev-part-2.24-2.fc31.x86_64", "Installed: lzo-2.08-16.fc31.x86_64", "Installed: volume_key-libs-0.3.12-4.fc31.x86_64", "Installed: dmraid-1.0.0.rc16-43.fc31.x86_64", "Installed: libblockdev-swap-2.24-2.fc31.x86_64", "Installed: libblockdev-utils-2.24-2.fc31.x86_64", "Installed: blivet-data-1:3.1.7-2.fc31.noarch", "Installed: device-mapper-multipath-0.8.0-3.fc31.x86_64", "Installed: device-mapper-multipath-libs-0.8.0-3.fc31.x86_64", "Installed: device-mapper-persistent-data-0.8.5-2.fc31.x86_64", "Installed: sgpio-1.2.0.10-24.fc31.x86_64", "Installed: bcache-tools-1.0.8-16.fc31.x86_64", "Installed: python3-blivet-1:3.1.7-2.fc31.noarch", "Installed: daxctl-libs-70.1-1.fc31.x86_64", "Installed: python3-blockdev-2.24-2.fc31.x86_64", "Installed: mdadm-4.1-5.fc31.x86_64", "Installed: python3-pyudev-0.21.0-11.fc31.noarch", "Installed: python3-pyparted-1:3.11.2-2.fc31.x86_64", "Installed: libbytesize-2.3-1.fc31.x86_64", "Installed: libaio-0.3.111-6.fc31.x86_64", "Installed: python3-bytesize-2.3-1.fc31.x86_64", "Installed: libblockdev-2.24-2.fc31.x86_64", "Installed: libblockdev-btrfs-2.24-2.fc31.x86_64", "Installed: btrfs-progs-5.7-4.fc31.x86_64", "Installed: libblockdev-crypto-2.24-2.fc31.x86_64", "Installed: ndctl-70.1-1.fc31.x86_64", "Installed: compat-readline5-5.2-34.fc31.x86_64", "Installed: gdisk-1.0.5-1.fc31.x86_64", "Installed: ndctl-libs-70.1-1.fc31.x86_64", "Installed: libblockdev-dm-2.24-2.fc31.x86_64", "Installed: dmraid-events-1.0.0.rc16-43.fc31.x86_64", "Installed: libblockdev-fs-2.24-2.fc31.x86_64"]} TASK [linux-system-roles.storage : initialize internal facts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools": [], "_storage_vol_defaults": [], "_storage_vol_pools": [], "_storage_vols_no_defaults": [], "_storage_vols_no_defaults_by_pool": {}, "_storage_vols_w_defaults": [], "_storage_volumes": []}, "changed": false} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [1/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:28 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [2/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:36 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [3/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:44 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [4/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:52 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [5/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:61 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [6/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:72 TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools": [] } TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes": [] } TASK [linux-system-roles.storage : get required packages] ********************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": []} TASK [linux-system-roles.storage : make sure required packages are installed] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [linux-system-roles.storage : manage the pools and volumes to match the specified state] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:104 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": []} TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:114 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "blivet_output": { "actions": [], "changed": false, "crypts": [], "failed": false, "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": [] } } TASK [linux-system-roles.storage : set the list of pools for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:117 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : set the list of volumes for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:121 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : remove obsolete mounts] ********************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:137 TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:148 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : set up new/current mounts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:153 TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:164 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : Manage /etc/crypttab to account for changes we just made] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:172 TASK [linux-system-roles.storage : Update facts] ******************************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:187 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 : ok=17 changed=1 unreachable=0 failed=0 skipped=13 rescued=0 ignored=0 + cd /tmp/tmp7ksfxpzz/tests; TEST_SUBJECTS=/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_storage-178-e856157-fedora-31-87qzp9iq/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmp7ksfxpzz/_setup.yml /tmp/tmp7ksfxpzz/tests/tests_deps.yml ansible-playbook 2.8.16 config file = /etc/ansible/ansible.cfg configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python2.7/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 2.7.5 (default, Apr 2 2020, 13:16:51) [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)] Using /etc/ansible/ansible.cfg as config file PLAYBOOK: _setup.yml *********************************************************** 1 plays in /tmp/tmp7ksfxpzz/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/_setup.yml:5 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "groups": { "all": [ "/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2" ], "localhost": [ "/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2" ], "subjects": [ "/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmp7ksfxpzz/_setup.yml:6 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 : ok=1 changed=0 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 PLAYBOOK: tests_deps.yml ******************************************************* 1 plays in /tmp/tmp7ksfxpzz/tests/tests_deps.yml PLAY [all localhost] *********************************************************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/tests_deps.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] META: ran handlers TASK [include_role : linux-system-roles.storage] ******************************* task path: /tmp/tmp7ksfxpzz/tests/tests_deps.yml:6 TASK [linux-system-roles.storage : Set version specific variables] ************* task path: /tmp/tmp7ksfxpzz/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-crypto", "libblockdev-dm", "libblockdev-lvm", "libblockdev-mdraid", "libblockdev-swap"]}, "ansible_included_var_files": ["/tmp/tmp7ksfxpzz/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.storage : define an empty list of pools to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : define an empty list of volumes to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : include the appropriate provider tasks] ***** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:22 included: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [linux-system-roles.storage : get a list of rpm packages installed on host machine] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : make sure blivet is available] ************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:7 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: python3-blivet", "Installed: libblockdev-crypto", "Installed: libblockdev-dm", "Installed: libblockdev-lvm", "Installed: libblockdev-mdraid", "Installed: libblockdev-swap", "Installed: libblockdev-kbd-2.24-2.fc31.x86_64", "Installed: nspr-4.29.0-1.fc31.x86_64", "Installed: libblockdev-loop-2.24-2.fc31.x86_64", "Installed: nss-3.57.0-1.fc31.x86_64", "Installed: libblockdev-lvm-2.24-2.fc31.x86_64", "Installed: lsof-4.93.2-2.fc31.x86_64", "Installed: lvm2-2.03.09-1.fc31.x86_64", "Installed: nss-softokn-3.57.0-1.fc31.x86_64", "Installed: libblockdev-mdraid-2.24-2.fc31.x86_64", "Installed: nss-softokn-freebl-3.57.0-1.fc31.x86_64", "Installed: lvm2-libs-2.03.09-1.fc31.x86_64", "Installed: python3-gobject-base-3.34.0-3.fc31.x86_64", "Installed: libblockdev-mpath-2.24-2.fc31.x86_64", "Installed: nss-sysinit-3.57.0-1.fc31.x86_64", "Installed: device-mapper-event-1.02.171-1.fc31.x86_64", "Installed: nss-util-3.57.0-1.fc31.x86_64", "Installed: libblockdev-nvdimm-2.24-2.fc31.x86_64", "Installed: gobject-introspection-1.62.0-1.fc31.x86_64", "Installed: device-mapper-event-libs-1.02.171-1.fc31.x86_64", "Installed: userspace-rcu-0.11.1-2.fc31.x86_64", "Installed: libblockdev-part-2.24-2.fc31.x86_64", "Installed: lzo-2.08-16.fc31.x86_64", "Installed: volume_key-libs-0.3.12-4.fc31.x86_64", "Installed: dmraid-1.0.0.rc16-43.fc31.x86_64", "Installed: libblockdev-swap-2.24-2.fc31.x86_64", "Installed: libblockdev-utils-2.24-2.fc31.x86_64", "Installed: blivet-data-1:3.1.7-2.fc31.noarch", "Installed: device-mapper-multipath-0.8.0-3.fc31.x86_64", "Installed: device-mapper-multipath-libs-0.8.0-3.fc31.x86_64", "Installed: device-mapper-persistent-data-0.8.5-2.fc31.x86_64", "Installed: sgpio-1.2.0.10-24.fc31.x86_64", "Installed: bcache-tools-1.0.8-16.fc31.x86_64", "Installed: python3-blivet-1:3.1.7-2.fc31.noarch", "Installed: daxctl-libs-70.1-1.fc31.x86_64", "Installed: python3-blockdev-2.24-2.fc31.x86_64", "Installed: mdadm-4.1-5.fc31.x86_64", "Installed: python3-pyudev-0.21.0-11.fc31.noarch", "Installed: python3-pyparted-1:3.11.2-2.fc31.x86_64", "Installed: libbytesize-2.3-1.fc31.x86_64", "Installed: libaio-0.3.111-6.fc31.x86_64", "Installed: python3-bytesize-2.3-1.fc31.x86_64", "Installed: libblockdev-2.24-2.fc31.x86_64", "Installed: libblockdev-btrfs-2.24-2.fc31.x86_64", "Installed: btrfs-progs-5.7-4.fc31.x86_64", "Installed: libblockdev-crypto-2.24-2.fc31.x86_64", "Installed: ndctl-70.1-1.fc31.x86_64", "Installed: compat-readline5-5.2-34.fc31.x86_64", "Installed: gdisk-1.0.5-1.fc31.x86_64", "Installed: ndctl-libs-70.1-1.fc31.x86_64", "Installed: libblockdev-dm-2.24-2.fc31.x86_64", "Installed: dmraid-events-1.0.0.rc16-43.fc31.x86_64", "Installed: libblockdev-fs-2.24-2.fc31.x86_64"]} TASK [linux-system-roles.storage : initialize internal facts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools": [], "_storage_vol_defaults": [], "_storage_vol_pools": [], "_storage_vols_no_defaults": [], "_storage_vols_no_defaults_by_pool": {}, "_storage_vols_w_defaults": [], "_storage_volumes": []}, "changed": false} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [1/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:28 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [2/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:36 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [3/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:44 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [4/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:52 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [5/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:61 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [6/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:72 TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools": [] } TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes": [] } TASK [linux-system-roles.storage : get required packages] ********************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": []} TASK [linux-system-roles.storage : make sure required packages are installed] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [linux-system-roles.storage : manage the pools and volumes to match the specified state] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:104 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": []} TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:114 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "blivet_output": { "actions": [], "changed": false, "crypts": [], "failed": false, "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": [] } } TASK [linux-system-roles.storage : set the list of pools for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:117 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : set the list of volumes for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:121 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : remove obsolete mounts] ********************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:137 TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:148 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : set up new/current mounts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:153 TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:164 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : Manage /etc/crypttab to account for changes we just made] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:172 TASK [linux-system-roles.storage : Update facts] ******************************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:187 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] TASK [test lvm and xfs package deps] ******************************************* task path: /tmp/tmp7ksfxpzz/tests/tests_deps.yml:9 included: /tmp/tmp7ksfxpzz/tests/run_blivet.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [test lvm and xfs package deps] ******************************************* task path: /tmp/tmp7ksfxpzz/tests/run_blivet.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": ["lvm2", "xfsprogs"], "pools": [], "volumes": []} TASK [assert] ****************************************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_deps.yml:27 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [test disk and ext4 package deps] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_deps.yml:33 included: /tmp/tmp7ksfxpzz/tests/run_blivet.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [test lvm and xfs package deps] ******************************************* task path: /tmp/tmp7ksfxpzz/tests/run_blivet.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": ["e2fsprogs"], "pools": [], "volumes": []} TASK [assert] ****************************************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_deps.yml:45 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [test disk and swap package deps] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_deps.yml:51 included: /tmp/tmp7ksfxpzz/tests/run_blivet.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [test lvm and xfs package deps] ******************************************* task path: /tmp/tmp7ksfxpzz/tests/run_blivet.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": []} TASK [assert] ****************************************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_deps.yml:63 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 : ok=26 changed=1 unreachable=0 failed=0 skipped=13 rescued=0 ignored=0 + cd /tmp/tmp7ksfxpzz/tests; TEST_SUBJECTS=/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_storage-178-e856157-fedora-31-87qzp9iq/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmp7ksfxpzz/_setup.yml /tmp/tmp7ksfxpzz/tests/tests_disk_errors.yml ansible-playbook 2.8.16 config file = /etc/ansible/ansible.cfg configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python2.7/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 2.7.5 (default, Apr 2 2020, 13:16:51) [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)] Using /etc/ansible/ansible.cfg as config file PLAYBOOK: _setup.yml *********************************************************** 1 plays in /tmp/tmp7ksfxpzz/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/_setup.yml:5 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "groups": { "all": [ "/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2" ], "localhost": [ "/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2" ], "subjects": [ "/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmp7ksfxpzz/_setup.yml:6 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 : ok=1 changed=0 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 PLAYBOOK: tests_disk_errors.yml ************************************************ 1 plays in /tmp/tmp7ksfxpzz/tests/tests_disk_errors.yml PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/tests_disk_errors.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] META: ran handlers TASK [include_role : linux-system-roles.storage] ******************************* task path: /tmp/tmp7ksfxpzz/tests/tests_disk_errors.yml:9 TASK [linux-system-roles.storage : Set version specific variables] ************* task path: /tmp/tmp7ksfxpzz/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-crypto", "libblockdev-dm", "libblockdev-lvm", "libblockdev-mdraid", "libblockdev-swap"]}, "ansible_included_var_files": ["/tmp/tmp7ksfxpzz/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.storage : define an empty list of pools to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : define an empty list of volumes to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : include the appropriate provider tasks] ***** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:22 included: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [linux-system-roles.storage : get a list of rpm packages installed on host machine] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : make sure blivet is available] ************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:7 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: python3-blivet", "Installed: libblockdev-crypto", "Installed: libblockdev-dm", "Installed: libblockdev-lvm", "Installed: libblockdev-mdraid", "Installed: libblockdev-swap", "Installed: libblockdev-2.24-2.fc31.x86_64", "Installed: libblockdev-btrfs-2.24-2.fc31.x86_64", "Installed: btrfs-progs-5.7-4.fc31.x86_64", "Installed: libblockdev-crypto-2.24-2.fc31.x86_64", "Installed: ndctl-70.1-1.fc31.x86_64", "Installed: gdisk-1.0.5-1.fc31.x86_64", "Installed: ndctl-libs-70.1-1.fc31.x86_64", "Installed: libblockdev-dm-2.24-2.fc31.x86_64", "Installed: compat-readline5-5.2-34.fc31.x86_64", "Installed: dmraid-1.0.0.rc16-43.fc31.x86_64", "Installed: dmraid-events-1.0.0.rc16-43.fc31.x86_64", "Installed: libblockdev-fs-2.24-2.fc31.x86_64", "Installed: mdadm-4.1-5.fc31.x86_64", "Installed: lzo-2.08-16.fc31.x86_64", "Installed: libblockdev-kbd-2.24-2.fc31.x86_64", "Installed: nspr-4.29.0-1.fc31.x86_64", "Installed: libblockdev-loop-2.24-2.fc31.x86_64", "Installed: nss-3.57.0-1.fc31.x86_64", "Installed: libblockdev-lvm-2.24-2.fc31.x86_64", "Installed: lsof-4.93.2-2.fc31.x86_64", "Installed: lvm2-2.03.09-1.fc31.x86_64", "Installed: nss-softokn-3.57.0-1.fc31.x86_64", "Installed: libblockdev-mdraid-2.24-2.fc31.x86_64", "Installed: nss-softokn-freebl-3.57.0-1.fc31.x86_64", "Installed: lvm2-libs-2.03.09-1.fc31.x86_64", "Installed: python3-gobject-base-3.34.0-3.fc31.x86_64", "Installed: libblockdev-mpath-2.24-2.fc31.x86_64", "Installed: nss-sysinit-3.57.0-1.fc31.x86_64", "Installed: device-mapper-event-1.02.171-1.fc31.x86_64", "Installed: nss-util-3.57.0-1.fc31.x86_64", "Installed: libblockdev-nvdimm-2.24-2.fc31.x86_64", "Installed: gobject-introspection-1.62.0-1.fc31.x86_64", "Installed: device-mapper-event-libs-1.02.171-1.fc31.x86_64", "Installed: userspace-rcu-0.11.1-2.fc31.x86_64", "Installed: libblockdev-part-2.24-2.fc31.x86_64", "Installed: volume_key-libs-0.3.12-4.fc31.x86_64", "Installed: libblockdev-swap-2.24-2.fc31.x86_64", "Installed: libblockdev-utils-2.24-2.fc31.x86_64", "Installed: blivet-data-1:3.1.7-2.fc31.noarch", "Installed: device-mapper-multipath-0.8.0-3.fc31.x86_64", "Installed: device-mapper-multipath-libs-0.8.0-3.fc31.x86_64", "Installed: device-mapper-persistent-data-0.8.5-2.fc31.x86_64", "Installed: sgpio-1.2.0.10-24.fc31.x86_64", "Installed: bcache-tools-1.0.8-16.fc31.x86_64", "Installed: python3-blivet-1:3.1.7-2.fc31.noarch", "Installed: daxctl-libs-70.1-1.fc31.x86_64", "Installed: python3-blockdev-2.24-2.fc31.x86_64", "Installed: python3-pyudev-0.21.0-11.fc31.noarch", "Installed: python3-pyparted-1:3.11.2-2.fc31.x86_64", "Installed: libbytesize-2.3-1.fc31.x86_64", "Installed: libaio-0.3.111-6.fc31.x86_64", "Installed: python3-bytesize-2.3-1.fc31.x86_64"]} TASK [linux-system-roles.storage : initialize internal facts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools": [], "_storage_vol_defaults": [], "_storage_vol_pools": [], "_storage_vols_no_defaults": [], "_storage_vols_no_defaults_by_pool": {}, "_storage_vols_w_defaults": [], "_storage_volumes": []}, "changed": false} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [1/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:28 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [2/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:36 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [3/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:44 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [4/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:52 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [5/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:61 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [6/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:72 TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools": [] } TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes": [] } TASK [linux-system-roles.storage : get required packages] ********************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": []} TASK [linux-system-roles.storage : make sure required packages are installed] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [linux-system-roles.storage : manage the pools and volumes to match the specified state] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:104 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": []} TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:114 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "blivet_output": { "actions": [], "changed": false, "crypts": [], "failed": false, "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": [] } } TASK [linux-system-roles.storage : set the list of pools for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:117 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : set the list of volumes for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:121 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : remove obsolete mounts] ********************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:137 TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:148 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : set up new/current mounts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:153 TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:164 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : Manage /etc/crypttab to account for changes we just made] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:172 TASK [linux-system-roles.storage : Update facts] ******************************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:187 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_disk_errors.yml:12 included: /tmp/tmp7ksfxpzz/tests/get_unused_disk.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Find unused disks in the system] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/get_unused_disk.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "disks": ["vda"]} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/get_unused_disk.yml:8 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"unused_disks": ["vda"]}, "changed": false} TASK [Exit playbook when there's not enough unused disks in the system] ******** task path: /tmp/tmp7ksfxpzz/tests/get_unused_disk.yml:12 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Print unused disks] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/get_unused_disk.yml:17 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "unused_disks": [ "vda" ] } TASK [Create a disk volume mounted at "/opt/test1"] **************************** task path: /tmp/tmp7ksfxpzz/tests/tests_disk_errors.yml:19 TASK [linux-system-roles.storage : Set version specific variables] ************* task path: /tmp/tmp7ksfxpzz/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-crypto", "libblockdev-dm", "libblockdev-lvm", "libblockdev-mdraid", "libblockdev-swap"]}, "ansible_included_var_files": ["/tmp/tmp7ksfxpzz/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.storage : define an empty list of pools to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : define an empty list of volumes to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : include the appropriate provider tasks] ***** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:22 included: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [linux-system-roles.storage : get a list of rpm packages installed on host machine] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : make sure blivet is available] ************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: python3-blivet", "Installed: libblockdev-crypto", "Installed: libblockdev-dm", "Installed: libblockdev-lvm", "Installed: libblockdev-mdraid", "Installed: libblockdev-swap"]} TASK [linux-system-roles.storage : initialize internal facts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools": [], "_storage_vol_defaults": [], "_storage_vol_pools": [], "_storage_vols_no_defaults": [], "_storage_vols_no_defaults_by_pool": {}, "_storage_vols_w_defaults": [], "_storage_volumes": []}, "changed": false} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [1/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:28 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [2/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:36 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [3/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:44 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [4/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:52 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [5/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:61 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [6/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:72 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'mount_point': u'/opt/test1', u'type': u'disk', u'disks': [u'/dev/surelyidonotexist'], u'name': u'test1'}) => {"ansible_facts": {"_storage_volumes": [{"disks": ["/dev/surelyidonotexist"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "disk"}]}, "ansible_loop_var": "volume", "changed": false, "volume": {"disks": ["/dev/surelyidonotexist"], "mount_point": "/opt/test1", "name": "test1", "type": "disk"}} TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools": [] } TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes": [ { "disks": [ "/dev/surelyidonotexist" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "disk" } ] } TASK [linux-system-roles.storage : get required packages] ********************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": ["xfsprogs"], "pools": [], "volumes": []} TASK [linux-system-roles.storage : make sure required packages are installed] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: xfsprogs"]} TASK [linux-system-roles.storage : manage the pools and volumes to match the specified state] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:104 fatal: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2]: FAILED! => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "msg": "unable to resolve disk specified for volume 'test1' (['/dev/surelyidonotexist'])", "packages": [], "pools": [], "volumes": []} TASK [Check that we failed in the role] **************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_disk_errors.yml:34 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Try to create two volumes w/ the same name] ****************************** task path: /tmp/tmp7ksfxpzz/tests/tests_disk_errors.yml:53 TASK [linux-system-roles.storage : Set version specific variables] ************* task path: /tmp/tmp7ksfxpzz/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-crypto", "libblockdev-dm", "libblockdev-lvm", "libblockdev-mdraid", "libblockdev-swap"]}, "ansible_included_var_files": ["/tmp/tmp7ksfxpzz/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.storage : define an empty list of pools to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : define an empty list of volumes to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : include the appropriate provider tasks] ***** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:22 included: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [linux-system-roles.storage : get a list of rpm packages installed on host machine] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : make sure blivet is available] ************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: python3-blivet", "Installed: libblockdev-crypto", "Installed: libblockdev-dm", "Installed: libblockdev-lvm", "Installed: libblockdev-mdraid", "Installed: libblockdev-swap"]} TASK [linux-system-roles.storage : initialize internal facts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools": [], "_storage_vol_defaults": [], "_storage_vol_pools": [], "_storage_vols_no_defaults": [], "_storage_vols_no_defaults_by_pool": {}, "_storage_vols_w_defaults": [], "_storage_volumes": []}, "changed": false} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [1/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:28 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [2/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:36 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [3/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:44 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [4/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:52 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [5/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:61 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [6/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:72 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'disks': [u'vda'], u'type': u'disk', u'name': u'vol1'}) => {"ansible_facts": {"_storage_volumes": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "name": "vol1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "disk"}]}, "ansible_loop_var": "volume", "changed": false, "volume": {"disks": ["vda"], "name": "vol1", "type": "disk"}} ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'disks': [u'vda'], u'type': u'disk', u'name': u'vol1'}) => {"ansible_facts": {"_storage_volumes": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "name": "vol1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "disk"}, {"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "name": "vol1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "disk"}]}, "ansible_loop_var": "volume", "changed": false, "volume": {"disks": ["vda"], "name": "vol1", "type": "disk"}} TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools": [] } TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "name": "vol1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "disk" }, { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "name": "vol1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "disk" } ] } TASK [linux-system-roles.storage : get required packages] ********************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": ["xfsprogs"], "pools": [], "volumes": []} TASK [linux-system-roles.storage : make sure required packages are installed] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: xfsprogs"]} TASK [linux-system-roles.storage : manage the pools and volumes to match the specified state] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:104 fatal: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2]: FAILED! => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "msg": "multiple volumes with the same name: vol1", "packages": [], "pools": [], "volumes": []} TASK [Check that we failed in the role] **************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_disk_errors.yml:70 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the output of the duplicate volumes test] ************************* task path: /tmp/tmp7ksfxpzz/tests/tests_disk_errors.yml:76 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Create a file system on disk] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_disk_errors.yml:83 TASK [linux-system-roles.storage : Set version specific variables] ************* task path: /tmp/tmp7ksfxpzz/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-crypto", "libblockdev-dm", "libblockdev-lvm", "libblockdev-mdraid", "libblockdev-swap"]}, "ansible_included_var_files": ["/tmp/tmp7ksfxpzz/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.storage : define an empty list of pools to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : define an empty list of volumes to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : include the appropriate provider tasks] ***** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:22 included: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [linux-system-roles.storage : get a list of rpm packages installed on host machine] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : make sure blivet is available] ************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: python3-blivet", "Installed: libblockdev-crypto", "Installed: libblockdev-dm", "Installed: libblockdev-lvm", "Installed: libblockdev-mdraid", "Installed: libblockdev-swap"]} TASK [linux-system-roles.storage : initialize internal facts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools": [], "_storage_vol_defaults": [], "_storage_vol_pools": [], "_storage_vols_no_defaults": [], "_storage_vols_no_defaults_by_pool": {}, "_storage_vols_w_defaults": [], "_storage_volumes": []}, "changed": false} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [1/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:28 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [2/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:36 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [3/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:44 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [4/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:52 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [5/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:61 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [6/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:72 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'mount_point': u'/opt/test1', u'fs_type': u'ext4', u'type': u'disk', u'disks': [u'vda'], u'name': u'test1'}) => {"ansible_facts": {"_storage_volumes": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "ext4", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "disk"}]}, "ansible_loop_var": "volume", "changed": false, "volume": {"disks": ["vda"], "fs_type": "ext4", "mount_point": "/opt/test1", "name": "test1", "type": "disk"}} TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools": [] } TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "ext4", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "disk" } ] } TASK [linux-system-roles.storage : get required packages] ********************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": ["e2fsprogs"], "pools": [], "volumes": []} TASK [linux-system-roles.storage : make sure required packages are installed] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: e2fsprogs"]} TASK [linux-system-roles.storage : manage the pools and volumes to match the specified state] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:104 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [{"action": "create format", "device": "/dev/vda", "fs_type": "ext4"}], "changed": true, "crypts": [], "leaves": ["/dev/sda1", "/dev/sr0", "/dev/vda", "/dev/vdb", "/dev/vdc"], "mounts": [{"dump": 0, "fstype": "ext4", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "UUID=0b2e6f1b-f0c0-4803-90ce-a150a7f4bf23", "state": "mounted"}], "packages": ["e2fsprogs"], "pools": [], "volumes": [{"_device": "/dev/vda", "_kernel_device": "/dev/vda", "_mount_id": "UUID=0b2e6f1b-f0c0-4803-90ce-a150a7f4bf23", "_raw_device": "/dev/vda", "_raw_kernel_device": "/dev/vda", "disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "ext4", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "disk"}]} TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:114 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "blivet_output": { "actions": [ { "action": "create format", "device": "/dev/vda", "fs_type": "ext4" } ], "changed": true, "crypts": [], "failed": false, "leaves": [ "/dev/sda1", "/dev/sr0", "/dev/vda", "/dev/vdb", "/dev/vdc" ], "mounts": [ { "dump": 0, "fstype": "ext4", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "UUID=0b2e6f1b-f0c0-4803-90ce-a150a7f4bf23", "state": "mounted" } ], "packages": [ "e2fsprogs" ], "pools": [], "volumes": [ { "_device": "/dev/vda", "_kernel_device": "/dev/vda", "_mount_id": "UUID=0b2e6f1b-f0c0-4803-90ce-a150a7f4bf23", "_raw_device": "/dev/vda", "_raw_kernel_device": "/dev/vda", "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "ext4", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "disk" } ] } } TASK [linux-system-roles.storage : set the list of pools for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:117 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : set the list of volumes for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:121 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": [{"_device": "/dev/vda", "_kernel_device": "/dev/vda", "_mount_id": "UUID=0b2e6f1b-f0c0-4803-90ce-a150a7f4bf23", "_raw_device": "/dev/vda", "_raw_kernel_device": "/dev/vda", "disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "ext4", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "disk"}]}, "changed": false} TASK [linux-system-roles.storage : remove obsolete mounts] ********************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:137 TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:148 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [linux-system-roles.storage : set up new/current mounts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:153 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'src': u'UUID=0b2e6f1b-f0c0-4803-90ce-a150a7f4bf23', u'state': u'mounted', u'dump': 0, u'path': u'/opt/test1', u'passno': 0, u'opts': u'defaults', u'fstype': u'ext4'}) => {"ansible_loop_var": "mount_info", "changed": true, "dump": "0", "fstab": "/etc/fstab", "fstype": "ext4", "mount_info": {"dump": 0, "fstype": "ext4", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "UUID=0b2e6f1b-f0c0-4803-90ce-a150a7f4bf23", "state": "mounted"}, "name": "/opt/test1", "opts": "defaults", "passno": "0", "src": "UUID=0b2e6f1b-f0c0-4803-90ce-a150a7f4bf23"} TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:164 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [linux-system-roles.storage : Manage /etc/crypttab to account for changes we just made] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:172 TASK [linux-system-roles.storage : Update facts] ******************************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:187 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] TASK [create a file] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_disk_errors.yml:94 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": true, "dest": "/opt/test1/quux", "gid": 0, "group": "root", "mode": "0644", "owner": "root", "secontext": "unconfined_u:object_r:unlabeled_t:s0", "size": 0, "state": "file", "uid": 0} TASK [Try to replace the file system on disk in safe mode] ********************* task path: /tmp/tmp7ksfxpzz/tests/tests_disk_errors.yml:101 TASK [linux-system-roles.storage : Set version specific variables] ************* task path: /tmp/tmp7ksfxpzz/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-crypto", "libblockdev-dm", "libblockdev-lvm", "libblockdev-mdraid", "libblockdev-swap"]}, "ansible_included_var_files": ["/tmp/tmp7ksfxpzz/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.storage : define an empty list of pools to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : define an empty list of volumes to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : include the appropriate provider tasks] ***** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:22 included: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [linux-system-roles.storage : get a list of rpm packages installed on host machine] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : make sure blivet is available] ************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: python3-blivet", "Installed: libblockdev-crypto", "Installed: libblockdev-dm", "Installed: libblockdev-lvm", "Installed: libblockdev-mdraid", "Installed: libblockdev-swap"]} TASK [linux-system-roles.storage : initialize internal facts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools": [], "_storage_vol_defaults": [], "_storage_vol_pools": [], "_storage_vols_no_defaults": [], "_storage_vols_no_defaults_by_pool": {}, "_storage_vols_w_defaults": [], "_storage_volumes": []}, "changed": false} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [1/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:28 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [2/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:36 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [3/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:44 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [4/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:52 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [5/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:61 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [6/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:72 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'fs_type': u'ext3', u'type': u'disk', u'disks': [u'vda'], u'name': u'test1'}) => {"ansible_facts": {"_storage_volumes": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "ext3", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "name": "test1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "disk"}]}, "ansible_loop_var": "volume", "changed": false, "volume": {"disks": ["vda"], "fs_type": "ext3", "name": "test1", "type": "disk"}} TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools": [] } TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "ext3", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "name": "test1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "disk" } ] } TASK [linux-system-roles.storage : get required packages] ********************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": ["e2fsprogs"], "pools": [], "volumes": []} TASK [linux-system-roles.storage : make sure required packages are installed] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: e2fsprogs"]} TASK [linux-system-roles.storage : manage the pools and volumes to match the specified state] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:104 fatal: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2]: FAILED! => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "msg": "cannot remove existing formatting on volume 'test1' in safe mode", "packages": [], "pools": [], "volumes": []} TASK [Check that we failed in the role] **************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_disk_errors.yml:116 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the output] ******************************************************* task path: /tmp/tmp7ksfxpzz/tests/tests_disk_errors.yml:122 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Unmount file system] ***************************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_disk_errors.yml:129 TASK [linux-system-roles.storage : Set version specific variables] ************* task path: /tmp/tmp7ksfxpzz/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-crypto", "libblockdev-dm", "libblockdev-lvm", "libblockdev-mdraid", "libblockdev-swap"]}, "ansible_included_var_files": ["/tmp/tmp7ksfxpzz/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.storage : define an empty list of pools to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : define an empty list of volumes to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : include the appropriate provider tasks] ***** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:22 included: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [linux-system-roles.storage : get a list of rpm packages installed on host machine] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : make sure blivet is available] ************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: python3-blivet", "Installed: libblockdev-crypto", "Installed: libblockdev-dm", "Installed: libblockdev-lvm", "Installed: libblockdev-mdraid", "Installed: libblockdev-swap"]} TASK [linux-system-roles.storage : initialize internal facts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools": [], "_storage_vol_defaults": [], "_storage_vol_pools": [], "_storage_vols_no_defaults": [], "_storage_vols_no_defaults_by_pool": {}, "_storage_vols_w_defaults": [], "_storage_volumes": []}, "changed": false} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [1/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:28 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [2/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:36 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [3/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:44 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [4/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:52 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [5/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:61 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [6/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:72 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'mount_point': u'none', u'fs_type': u'ext4', u'type': u'disk', u'disks': [u'vda'], u'name': u'test1'}) => {"ansible_facts": {"_storage_volumes": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "ext4", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "none", "name": "test1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "disk"}]}, "ansible_loop_var": "volume", "changed": false, "volume": {"disks": ["vda"], "fs_type": "ext4", "mount_point": "none", "name": "test1", "type": "disk"}} TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools": [] } TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "ext4", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "none", "name": "test1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "disk" } ] } TASK [linux-system-roles.storage : get required packages] ********************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": ["e2fsprogs"], "pools": [], "volumes": []} TASK [linux-system-roles.storage : make sure required packages are installed] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: e2fsprogs"]} TASK [linux-system-roles.storage : manage the pools and volumes to match the specified state] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:104 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": ["/dev/sda1", "/dev/sr0", "/dev/vda", "/dev/vdb", "/dev/vdc"], "mounts": [{"path": "/opt/test1", "state": "absent"}], "packages": ["e2fsprogs"], "pools": [], "volumes": [{"_device": "/dev/vda", "_kernel_device": "/dev/vda", "_mount_id": "UUID=0b2e6f1b-f0c0-4803-90ce-a150a7f4bf23", "_raw_device": "/dev/vda", "_raw_kernel_device": "/dev/vda", "disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "ext4", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "none", "name": "test1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "disk"}]} TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:114 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "blivet_output": { "actions": [], "changed": false, "crypts": [], "failed": false, "leaves": [ "/dev/sda1", "/dev/sr0", "/dev/vda", "/dev/vdb", "/dev/vdc" ], "mounts": [ { "path": "/opt/test1", "state": "absent" } ], "packages": [ "e2fsprogs" ], "pools": [], "volumes": [ { "_device": "/dev/vda", "_kernel_device": "/dev/vda", "_mount_id": "UUID=0b2e6f1b-f0c0-4803-90ce-a150a7f4bf23", "_raw_device": "/dev/vda", "_raw_kernel_device": "/dev/vda", "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "ext4", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "none", "name": "test1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "disk" } ] } } TASK [linux-system-roles.storage : set the list of pools for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:117 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : set the list of volumes for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:121 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": [{"_device": "/dev/vda", "_kernel_device": "/dev/vda", "_mount_id": "UUID=0b2e6f1b-f0c0-4803-90ce-a150a7f4bf23", "_raw_device": "/dev/vda", "_raw_kernel_device": "/dev/vda", "disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "ext4", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "none", "name": "test1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "disk"}]}, "changed": false} TASK [linux-system-roles.storage : remove obsolete mounts] ********************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:137 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'path': u'/opt/test1', u'state': u'absent'}) => {"ansible_loop_var": "mount_info", "changed": true, "dump": "0", "fstab": "/etc/fstab", "mount_info": {"path": "/opt/test1", "state": "absent"}, "name": "/opt/test1", "opts": "defaults", "passno": "0"} TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:148 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [linux-system-roles.storage : set up new/current mounts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:153 TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:164 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [linux-system-roles.storage : Manage /etc/crypttab to account for changes we just made] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:172 TASK [linux-system-roles.storage : Update facts] ******************************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:187 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] TASK [Try to replace the file system on disk in safe mode] ********************* task path: /tmp/tmp7ksfxpzz/tests/tests_disk_errors.yml:142 TASK [linux-system-roles.storage : Set version specific variables] ************* task path: /tmp/tmp7ksfxpzz/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-crypto", "libblockdev-dm", "libblockdev-lvm", "libblockdev-mdraid", "libblockdev-swap"]}, "ansible_included_var_files": ["/tmp/tmp7ksfxpzz/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.storage : define an empty list of pools to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : define an empty list of volumes to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : include the appropriate provider tasks] ***** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:22 included: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [linux-system-roles.storage : get a list of rpm packages installed on host machine] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : make sure blivet is available] ************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: python3-blivet", "Installed: libblockdev-crypto", "Installed: libblockdev-dm", "Installed: libblockdev-lvm", "Installed: libblockdev-mdraid", "Installed: libblockdev-swap"]} TASK [linux-system-roles.storage : initialize internal facts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools": [], "_storage_vol_defaults": [], "_storage_vol_pools": [], "_storage_vols_no_defaults": [], "_storage_vols_no_defaults_by_pool": {}, "_storage_vols_w_defaults": [], "_storage_volumes": []}, "changed": false} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [1/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:28 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [2/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:36 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [3/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:44 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [4/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:52 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [5/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:61 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [6/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:72 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'fs_type': u'ext3', u'type': u'disk', u'disks': [u'vda'], u'name': u'test1'}) => {"ansible_facts": {"_storage_volumes": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "ext3", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "name": "test1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "disk"}]}, "ansible_loop_var": "volume", "changed": false, "volume": {"disks": ["vda"], "fs_type": "ext3", "name": "test1", "type": "disk"}} TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools": [] } TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "ext3", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "name": "test1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "disk" } ] } TASK [linux-system-roles.storage : get required packages] ********************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": ["e2fsprogs"], "pools": [], "volumes": []} TASK [linux-system-roles.storage : make sure required packages are installed] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: e2fsprogs"]} TASK [linux-system-roles.storage : manage the pools and volumes to match the specified state] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:104 fatal: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2]: FAILED! => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "msg": "cannot remove existing formatting on volume 'test1' in safe mode", "packages": [], "pools": [], "volumes": []} TASK [Check that we failed in the role] **************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_disk_errors.yml:157 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the output] ******************************************************* task path: /tmp/tmp7ksfxpzz/tests/tests_disk_errors.yml:163 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Remount file system] ***************************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_disk_errors.yml:170 TASK [linux-system-roles.storage : Set version specific variables] ************* task path: /tmp/tmp7ksfxpzz/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-crypto", "libblockdev-dm", "libblockdev-lvm", "libblockdev-mdraid", "libblockdev-swap"]}, "ansible_included_var_files": ["/tmp/tmp7ksfxpzz/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.storage : define an empty list of pools to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : define an empty list of volumes to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : include the appropriate provider tasks] ***** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:22 included: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [linux-system-roles.storage : get a list of rpm packages installed on host machine] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : make sure blivet is available] ************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: python3-blivet", "Installed: libblockdev-crypto", "Installed: libblockdev-dm", "Installed: libblockdev-lvm", "Installed: libblockdev-mdraid", "Installed: libblockdev-swap"]} TASK [linux-system-roles.storage : initialize internal facts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools": [], "_storage_vol_defaults": [], "_storage_vol_pools": [], "_storage_vols_no_defaults": [], "_storage_vols_no_defaults_by_pool": {}, "_storage_vols_w_defaults": [], "_storage_volumes": []}, "changed": false} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [1/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:28 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [2/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:36 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [3/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:44 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [4/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:52 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [5/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:61 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [6/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:72 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'mount_point': u'/opt/test1', u'fs_type': u'ext4', u'type': u'disk', u'disks': [u'vda'], u'name': u'test1'}) => {"ansible_facts": {"_storage_volumes": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "ext4", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "disk"}]}, "ansible_loop_var": "volume", "changed": false, "volume": {"disks": ["vda"], "fs_type": "ext4", "mount_point": "/opt/test1", "name": "test1", "type": "disk"}} TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools": [] } TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "ext4", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "disk" } ] } TASK [linux-system-roles.storage : get required packages] ********************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": ["e2fsprogs"], "pools": [], "volumes": []} TASK [linux-system-roles.storage : make sure required packages are installed] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: e2fsprogs"]} TASK [linux-system-roles.storage : manage the pools and volumes to match the specified state] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:104 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": ["/dev/sda1", "/dev/sr0", "/dev/vda", "/dev/vdb", "/dev/vdc"], "mounts": [{"dump": 0, "fstype": "ext4", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "UUID=0b2e6f1b-f0c0-4803-90ce-a150a7f4bf23", "state": "mounted"}], "packages": ["e2fsprogs"], "pools": [], "volumes": [{"_device": "/dev/vda", "_kernel_device": "/dev/vda", "_mount_id": "UUID=0b2e6f1b-f0c0-4803-90ce-a150a7f4bf23", "_raw_device": "/dev/vda", "_raw_kernel_device": "/dev/vda", "disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "ext4", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "disk"}]} TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:114 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "blivet_output": { "actions": [], "changed": false, "crypts": [], "failed": false, "leaves": [ "/dev/sda1", "/dev/sr0", "/dev/vda", "/dev/vdb", "/dev/vdc" ], "mounts": [ { "dump": 0, "fstype": "ext4", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "UUID=0b2e6f1b-f0c0-4803-90ce-a150a7f4bf23", "state": "mounted" } ], "packages": [ "e2fsprogs" ], "pools": [], "volumes": [ { "_device": "/dev/vda", "_kernel_device": "/dev/vda", "_mount_id": "UUID=0b2e6f1b-f0c0-4803-90ce-a150a7f4bf23", "_raw_device": "/dev/vda", "_raw_kernel_device": "/dev/vda", "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "ext4", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "disk" } ] } } TASK [linux-system-roles.storage : set the list of pools for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:117 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : set the list of volumes for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:121 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": [{"_device": "/dev/vda", "_kernel_device": "/dev/vda", "_mount_id": "UUID=0b2e6f1b-f0c0-4803-90ce-a150a7f4bf23", "_raw_device": "/dev/vda", "_raw_kernel_device": "/dev/vda", "disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "ext4", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "disk"}]}, "changed": false} TASK [linux-system-roles.storage : remove obsolete mounts] ********************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:137 TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:148 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [linux-system-roles.storage : set up new/current mounts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:153 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'src': u'UUID=0b2e6f1b-f0c0-4803-90ce-a150a7f4bf23', u'state': u'mounted', u'dump': 0, u'path': u'/opt/test1', u'passno': 0, u'opts': u'defaults', u'fstype': u'ext4'}) => {"ansible_loop_var": "mount_info", "changed": true, "dump": "0", "fstab": "/etc/fstab", "fstype": "ext4", "mount_info": {"dump": 0, "fstype": "ext4", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "UUID=0b2e6f1b-f0c0-4803-90ce-a150a7f4bf23", "state": "mounted"}, "name": "/opt/test1", "opts": "defaults", "passno": "0", "src": "UUID=0b2e6f1b-f0c0-4803-90ce-a150a7f4bf23"} TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:164 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [linux-system-roles.storage : Manage /etc/crypttab to account for changes we just made] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:172 TASK [linux-system-roles.storage : Update facts] ******************************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:187 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] TASK [stat the file] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_disk_errors.yml:181 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "stat": {"atime": 1604146935.9151666, "attr_flags": "e", "attributes": ["extents"], "block_size": 4096, "blocks": 0, "charset": "binary", "checksum": "da39a3ee5e6b4b0d3255bfef95601890afd80709", "ctime": 1604146935.9151666, "dev": 64512, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 12, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "inode/x-empty", "mode": "0644", "mtime": 1604146935.9151666, "nlink": 1, "path": "/opt/test1/quux", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 0, "uid": 0, "version": "4013254964", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}} TASK [assert file presence] **************************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_disk_errors.yml:186 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Try to create a partition pool on the disk already containing a file system in safe_mode] *** task path: /tmp/tmp7ksfxpzz/tests/tests_disk_errors.yml:194 TASK [linux-system-roles.storage : Set version specific variables] ************* task path: /tmp/tmp7ksfxpzz/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-crypto", "libblockdev-dm", "libblockdev-lvm", "libblockdev-mdraid", "libblockdev-swap"]}, "ansible_included_var_files": ["/tmp/tmp7ksfxpzz/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.storage : define an empty list of pools to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : define an empty list of volumes to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : include the appropriate provider tasks] ***** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:22 included: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [linux-system-roles.storage : get a list of rpm packages installed on host machine] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : make sure blivet is available] ************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: python3-blivet", "Installed: libblockdev-crypto", "Installed: libblockdev-dm", "Installed: libblockdev-lvm", "Installed: libblockdev-mdraid", "Installed: libblockdev-swap"]} TASK [linux-system-roles.storage : initialize internal facts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools": [], "_storage_vol_defaults": [], "_storage_vol_pools": [], "_storage_vols_no_defaults": [], "_storage_vols_no_defaults_by_pool": {}, "_storage_vols_w_defaults": [], "_storage_volumes": []}, "changed": false} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [1/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:28 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'disks': [u'vda'], u'type': u'partition', u'name': u'foo'}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "partition", "volumes": []}]}, "ansible_loop_var": "pool", "changed": false, "pool": {"disks": ["vda"], "name": "foo", "type": "partition"}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [2/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:36 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [3/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:44 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [4/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:52 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [], u'type': u'partition', u'encryption_key_size': None}) => {"ansible_facts": {"_storage_vols_no_defaults_by_pool": {"foo": []}}, "ansible_loop_var": "item", "changed": false, "item": {"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "partition", "volumes": []}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [5/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:61 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [], u'type': u'partition', u'encryption_key_size': None}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "partition", "volumes": []}]}, "ansible_index_var": "idx", "ansible_loop_var": "pool", "changed": false, "idx": 0, "pool": {"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "partition", "volumes": []}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [6/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:72 TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "partition", "volumes": [] } ] } TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes": [] } TASK [linux-system-roles.storage : get required packages] ********************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": []} TASK [linux-system-roles.storage : make sure required packages are installed] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [linux-system-roles.storage : manage the pools and volumes to match the specified state] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:104 fatal: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2]: FAILED! => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "msg": "cannot remove existing formatting and/or devices on disk 'vda' (pool 'foo') in safe mode", "packages": [], "pools": [], "volumes": []} TASK [Check that we failed in the role] **************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_disk_errors.yml:208 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the output] ******************************************************* task path: /tmp/tmp7ksfxpzz/tests/tests_disk_errors.yml:214 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Try to create LVM pool on disk that already belongs to an existing filesystem] *** task path: /tmp/tmp7ksfxpzz/tests/tests_disk_errors.yml:223 TASK [linux-system-roles.storage : Set version specific variables] ************* task path: /tmp/tmp7ksfxpzz/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-crypto", "libblockdev-dm", "libblockdev-lvm", "libblockdev-mdraid", "libblockdev-swap"]}, "ansible_included_var_files": ["/tmp/tmp7ksfxpzz/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.storage : define an empty list of pools to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : define an empty list of volumes to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : include the appropriate provider tasks] ***** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:22 included: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [linux-system-roles.storage : get a list of rpm packages installed on host machine] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : make sure blivet is available] ************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: python3-blivet", "Installed: libblockdev-crypto", "Installed: libblockdev-dm", "Installed: libblockdev-lvm", "Installed: libblockdev-mdraid", "Installed: libblockdev-swap"]} TASK [linux-system-roles.storage : initialize internal facts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools": [], "_storage_vol_defaults": [], "_storage_vol_pools": [], "_storage_vols_no_defaults": [], "_storage_vols_no_defaults_by_pool": {}, "_storage_vols_w_defaults": [], "_storage_volumes": []}, "changed": false} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [1/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:28 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'disks': [u'vda'], u'type': u'lvm', u'name': u'foo'}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": []}]}, "ansible_loop_var": "pool", "changed": false, "pool": {"disks": ["vda"], "name": "foo", "type": "lvm"}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [2/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:36 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [3/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:44 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [4/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:52 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [], u'type': u'lvm', u'encryption_key_size': None}) => {"ansible_facts": {"_storage_vols_no_defaults_by_pool": {"foo": []}}, "ansible_loop_var": "item", "changed": false, "item": {"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": []}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [5/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:61 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [], u'type': u'lvm', u'encryption_key_size': None}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": []}]}, "ansible_index_var": "idx", "ansible_loop_var": "pool", "changed": false, "idx": 0, "pool": {"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": []}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [6/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:72 TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [] } ] } TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes": [] } TASK [linux-system-roles.storage : get required packages] ********************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": ["lvm2"], "pools": [], "volumes": []} TASK [linux-system-roles.storage : make sure required packages are installed] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: lvm2"]} TASK [linux-system-roles.storage : manage the pools and volumes to match the specified state] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:104 fatal: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2]: FAILED! => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "msg": "cannot remove existing formatting and/or devices on disk 'vda' (pool 'foo') in safe mode", "packages": [], "pools": [], "volumes": []} TASK [Check that we failed in the role] **************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_disk_errors.yml:237 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the output] ******************************************************* task path: /tmp/tmp7ksfxpzz/tests/tests_disk_errors.yml:243 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [stat the file] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_disk_errors.yml:250 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "stat": {"atime": 1604146986.0891666, "attr_flags": "e", "attributes": ["extents"], "block_size": 4096, "blocks": 0, "charset": "binary", "checksum": "da39a3ee5e6b4b0d3255bfef95601890afd80709", "ctime": 1604146935.9151666, "dev": 64512, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 12, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "inode/x-empty", "mode": "0644", "mtime": 1604146935.9151666, "nlink": 1, "path": "/opt/test1/quux", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 0, "uid": 0, "version": "4013254964", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}} TASK [assert file presence] **************************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_disk_errors.yml:255 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Create a partition pool on the disk already containing a file system w/o safe_mode] *** task path: /tmp/tmp7ksfxpzz/tests/tests_disk_errors.yml:261 TASK [linux-system-roles.storage : Set version specific variables] ************* task path: /tmp/tmp7ksfxpzz/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-crypto", "libblockdev-dm", "libblockdev-lvm", "libblockdev-mdraid", "libblockdev-swap"]}, "ansible_included_var_files": ["/tmp/tmp7ksfxpzz/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.storage : define an empty list of pools to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : define an empty list of volumes to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : include the appropriate provider tasks] ***** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:22 included: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [linux-system-roles.storage : get a list of rpm packages installed on host machine] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : make sure blivet is available] ************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: python3-blivet", "Installed: libblockdev-crypto", "Installed: libblockdev-dm", "Installed: libblockdev-lvm", "Installed: libblockdev-mdraid", "Installed: libblockdev-swap"]} TASK [linux-system-roles.storage : initialize internal facts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools": [], "_storage_vol_defaults": [], "_storage_vol_pools": [], "_storage_vols_no_defaults": [], "_storage_vols_no_defaults_by_pool": {}, "_storage_vols_w_defaults": [], "_storage_volumes": []}, "changed": false} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [1/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:28 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'disks': [u'vda'], u'type': u'partition', u'name': u'foo'}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "partition", "volumes": []}]}, "ansible_loop_var": "pool", "changed": false, "pool": {"disks": ["vda"], "name": "foo", "type": "partition"}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [2/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:36 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [3/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:44 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [4/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:52 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [], u'type': u'partition', u'encryption_key_size': None}) => {"ansible_facts": {"_storage_vols_no_defaults_by_pool": {"foo": []}}, "ansible_loop_var": "item", "changed": false, "item": {"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "partition", "volumes": []}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [5/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:61 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [], u'type': u'partition', u'encryption_key_size': None}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "partition", "volumes": []}]}, "ansible_index_var": "idx", "ansible_loop_var": "pool", "changed": false, "idx": 0, "pool": {"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "partition", "volumes": []}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [6/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:72 TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "partition", "volumes": [] } ] } TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes": [] } TASK [linux-system-roles.storage : get required packages] ********************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": []} TASK [linux-system-roles.storage : make sure required packages are installed] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [linux-system-roles.storage : manage the pools and volumes to match the specified state] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:104 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [{"action": "destroy format", "device": "/dev/vda", "fs_type": "ext4"}, {"action": "create format", "device": "/dev/vda", "fs_type": "disklabel"}], "changed": true, "crypts": [], "leaves": ["/dev/sda1", "/dev/sr0", "/dev/vda", "/dev/vdb", "/dev/vdc"], "mounts": [{"fstype": "ext4", "path": "/opt/test1", "src": "UUID=0b2e6f1b-f0c0-4803-90ce-a150a7f4bf23", "state": "absent"}], "packages": ["e2fsprogs"], "pools": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "partition", "volumes": []}], "volumes": []} TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:114 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "blivet_output": { "actions": [ { "action": "destroy format", "device": "/dev/vda", "fs_type": "ext4" }, { "action": "create format", "device": "/dev/vda", "fs_type": "disklabel" } ], "changed": true, "crypts": [], "failed": false, "leaves": [ "/dev/sda1", "/dev/sr0", "/dev/vda", "/dev/vdb", "/dev/vdc" ], "mounts": [ { "fstype": "ext4", "path": "/opt/test1", "src": "UUID=0b2e6f1b-f0c0-4803-90ce-a150a7f4bf23", "state": "absent" } ], "packages": [ "e2fsprogs" ], "pools": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "partition", "volumes": [] } ], "volumes": [] } } TASK [linux-system-roles.storage : set the list of pools for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:117 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "partition", "volumes": []}]}, "changed": false} TASK [linux-system-roles.storage : set the list of volumes for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:121 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : remove obsolete mounts] ********************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:137 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'src': u'UUID=0b2e6f1b-f0c0-4803-90ce-a150a7f4bf23', u'state': u'absent', u'fstype': u'ext4', u'path': u'/opt/test1'}) => {"ansible_loop_var": "mount_info", "changed": true, "dump": "0", "fstab": "/etc/fstab", "fstype": "ext4", "mount_info": {"fstype": "ext4", "path": "/opt/test1", "src": "UUID=0b2e6f1b-f0c0-4803-90ce-a150a7f4bf23", "state": "absent"}, "name": "/opt/test1", "opts": "defaults", "passno": "0", "src": "UUID=0b2e6f1b-f0c0-4803-90ce-a150a7f4bf23"} TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:148 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [linux-system-roles.storage : set up new/current mounts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:153 TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:164 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [linux-system-roles.storage : Manage /etc/crypttab to account for changes we just made] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:172 TASK [linux-system-roles.storage : Update facts] ******************************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:187 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] TASK [Verify the output] ******************************************************* task path: /tmp/tmp7ksfxpzz/tests/tests_disk_errors.yml:271 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_disk_errors.yml:276 TASK [linux-system-roles.storage : Set version specific variables] ************* task path: /tmp/tmp7ksfxpzz/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-crypto", "libblockdev-dm", "libblockdev-lvm", "libblockdev-mdraid", "libblockdev-swap"]}, "ansible_included_var_files": ["/tmp/tmp7ksfxpzz/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.storage : define an empty list of pools to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : define an empty list of volumes to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : include the appropriate provider tasks] ***** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:22 included: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [linux-system-roles.storage : get a list of rpm packages installed on host machine] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : make sure blivet is available] ************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: python3-blivet", "Installed: libblockdev-crypto", "Installed: libblockdev-dm", "Installed: libblockdev-lvm", "Installed: libblockdev-mdraid", "Installed: libblockdev-swap"]} TASK [linux-system-roles.storage : initialize internal facts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools": [], "_storage_vol_defaults": [], "_storage_vol_pools": [], "_storage_vols_no_defaults": [], "_storage_vols_no_defaults_by_pool": {}, "_storage_vols_w_defaults": [], "_storage_volumes": []}, "changed": false} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [1/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:28 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'state': u'absent', u'disks': [u'vda'], u'type': u'partition', u'name': u'foo'}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "absent", "type": "partition", "volumes": []}]}, "ansible_loop_var": "pool", "changed": false, "pool": {"disks": ["vda"], "name": "foo", "state": "absent", "type": "partition"}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [2/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:36 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [3/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:44 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [4/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:52 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'absent', u'volumes': [], u'type': u'partition', u'encryption_key_size': None}) => {"ansible_facts": {"_storage_vols_no_defaults_by_pool": {"foo": []}}, "ansible_loop_var": "item", "changed": false, "item": {"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "absent", "type": "partition", "volumes": []}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [5/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:61 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'absent', u'volumes': [], u'type': u'partition', u'encryption_key_size': None}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "absent", "type": "partition", "volumes": []}]}, "ansible_index_var": "idx", "ansible_loop_var": "pool", "changed": false, "idx": 0, "pool": {"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "absent", "type": "partition", "volumes": []}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [6/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:72 TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "absent", "type": "partition", "volumes": [] } ] } TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes": [] } TASK [linux-system-roles.storage : get required packages] ********************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": []} TASK [linux-system-roles.storage : make sure required packages are installed] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [linux-system-roles.storage : manage the pools and volumes to match the specified state] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:104 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [{"action": "destroy format", "device": "/dev/vda", "fs_type": "disklabel"}], "changed": true, "crypts": [], "leaves": ["/dev/sda1", "/dev/sr0", "/dev/vda", "/dev/vdb", "/dev/vdc"], "mounts": [], "packages": ["e2fsprogs"], "pools": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "absent", "type": "partition", "volumes": []}], "volumes": []} TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:114 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "blivet_output": { "actions": [ { "action": "destroy format", "device": "/dev/vda", "fs_type": "disklabel" } ], "changed": true, "crypts": [], "failed": false, "leaves": [ "/dev/sda1", "/dev/sr0", "/dev/vda", "/dev/vdb", "/dev/vdc" ], "mounts": [], "packages": [ "e2fsprogs" ], "pools": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "absent", "type": "partition", "volumes": [] } ], "volumes": [] } } TASK [linux-system-roles.storage : set the list of pools for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:117 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "absent", "type": "partition", "volumes": []}]}, "changed": false} TASK [linux-system-roles.storage : set the list of volumes for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:121 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : remove obsolete mounts] ********************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:137 TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:148 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : set up new/current mounts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:153 TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:164 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : Manage /etc/crypttab to account for changes we just made] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:172 TASK [linux-system-roles.storage : Update facts] ******************************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:187 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 : ok=204 changed=9 unreachable=0 failed=0 skipped=85 rescued=6 ignored=0 + cd /tmp/tmp7ksfxpzz/tests; TEST_SUBJECTS=/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_storage-178-e856157-fedora-31-87qzp9iq/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmp7ksfxpzz/_setup.yml /tmp/tmp7ksfxpzz/tests/tests_fatals_raid_pool.yml ansible-playbook 2.8.16 config file = /etc/ansible/ansible.cfg configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python2.7/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 2.7.5 (default, Apr 2 2020, 13:16:51) [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)] Using /etc/ansible/ansible.cfg as config file PLAYBOOK: _setup.yml *********************************************************** 1 plays in /tmp/tmp7ksfxpzz/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/_setup.yml:5 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "groups": { "all": [ "/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2" ], "localhost": [ "/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2" ], "subjects": [ "/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmp7ksfxpzz/_setup.yml:6 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 : ok=1 changed=0 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 PLAYBOOK: tests_fatals_raid_pool.yml ******************************************* 1 plays in /tmp/tmp7ksfxpzz/tests/tests_fatals_raid_pool.yml PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/tests_fatals_raid_pool.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] META: ran handlers TASK [include_role : linux-system-roles.storage] ******************************* task path: /tmp/tmp7ksfxpzz/tests/tests_fatals_raid_pool.yml:15 TASK [linux-system-roles.storage : Set version specific variables] ************* task path: /tmp/tmp7ksfxpzz/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-crypto", "libblockdev-dm", "libblockdev-lvm", "libblockdev-mdraid", "libblockdev-swap"]}, "ansible_included_var_files": ["/tmp/tmp7ksfxpzz/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.storage : define an empty list of pools to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : define an empty list of volumes to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : include the appropriate provider tasks] ***** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:22 included: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [linux-system-roles.storage : get a list of rpm packages installed on host machine] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : make sure blivet is available] ************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:7 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: python3-blivet", "Installed: libblockdev-crypto", "Installed: libblockdev-dm", "Installed: libblockdev-lvm", "Installed: libblockdev-mdraid", "Installed: libblockdev-swap", "Installed: libblockdev-2.24-2.fc31.x86_64", "Installed: libblockdev-btrfs-2.24-2.fc31.x86_64", "Installed: btrfs-progs-5.7-4.fc31.x86_64", "Installed: libblockdev-crypto-2.24-2.fc31.x86_64", "Installed: ndctl-70.1-1.fc31.x86_64", "Installed: gdisk-1.0.5-1.fc31.x86_64", "Installed: ndctl-libs-70.1-1.fc31.x86_64", "Installed: libblockdev-dm-2.24-2.fc31.x86_64", "Installed: compat-readline5-5.2-34.fc31.x86_64", "Installed: dmraid-1.0.0.rc16-43.fc31.x86_64", "Installed: dmraid-events-1.0.0.rc16-43.fc31.x86_64", "Installed: libblockdev-fs-2.24-2.fc31.x86_64", "Installed: mdadm-4.1-5.fc31.x86_64", "Installed: lzo-2.08-16.fc31.x86_64", "Installed: libblockdev-kbd-2.24-2.fc31.x86_64", "Installed: nspr-4.29.0-1.fc31.x86_64", "Installed: libblockdev-loop-2.24-2.fc31.x86_64", "Installed: nss-3.57.0-1.fc31.x86_64", "Installed: libblockdev-lvm-2.24-2.fc31.x86_64", "Installed: lsof-4.93.2-2.fc31.x86_64", "Installed: lvm2-2.03.09-1.fc31.x86_64", "Installed: nss-softokn-3.57.0-1.fc31.x86_64", "Installed: libblockdev-mdraid-2.24-2.fc31.x86_64", "Installed: nss-softokn-freebl-3.57.0-1.fc31.x86_64", "Installed: lvm2-libs-2.03.09-1.fc31.x86_64", "Installed: python3-gobject-base-3.34.0-3.fc31.x86_64", "Installed: libblockdev-mpath-2.24-2.fc31.x86_64", "Installed: nss-sysinit-3.57.0-1.fc31.x86_64", "Installed: device-mapper-event-1.02.171-1.fc31.x86_64", "Installed: nss-util-3.57.0-1.fc31.x86_64", "Installed: libblockdev-nvdimm-2.24-2.fc31.x86_64", "Installed: gobject-introspection-1.62.0-1.fc31.x86_64", "Installed: device-mapper-event-libs-1.02.171-1.fc31.x86_64", "Installed: userspace-rcu-0.11.1-2.fc31.x86_64", "Installed: libblockdev-part-2.24-2.fc31.x86_64", "Installed: volume_key-libs-0.3.12-4.fc31.x86_64", "Installed: libblockdev-swap-2.24-2.fc31.x86_64", "Installed: libblockdev-utils-2.24-2.fc31.x86_64", "Installed: blivet-data-1:3.1.7-2.fc31.noarch", "Installed: device-mapper-multipath-0.8.0-3.fc31.x86_64", "Installed: device-mapper-multipath-libs-0.8.0-3.fc31.x86_64", "Installed: device-mapper-persistent-data-0.8.5-2.fc31.x86_64", "Installed: sgpio-1.2.0.10-24.fc31.x86_64", "Installed: bcache-tools-1.0.8-16.fc31.x86_64", "Installed: python3-blivet-1:3.1.7-2.fc31.noarch", "Installed: daxctl-libs-70.1-1.fc31.x86_64", "Installed: python3-blockdev-2.24-2.fc31.x86_64", "Installed: python3-pyudev-0.21.0-11.fc31.noarch", "Installed: python3-pyparted-1:3.11.2-2.fc31.x86_64", "Installed: libbytesize-2.3-1.fc31.x86_64", "Installed: libaio-0.3.111-6.fc31.x86_64", "Installed: python3-bytesize-2.3-1.fc31.x86_64"]} TASK [linux-system-roles.storage : initialize internal facts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools": [], "_storage_vol_defaults": [], "_storage_vol_pools": [], "_storage_vols_no_defaults": [], "_storage_vols_no_defaults_by_pool": {}, "_storage_vols_w_defaults": [], "_storage_volumes": []}, "changed": false} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [1/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:28 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [2/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:36 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [3/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:44 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [4/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:52 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [5/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:61 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [6/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:72 TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools": [] } TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes": [] } TASK [linux-system-roles.storage : get required packages] ********************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": []} TASK [linux-system-roles.storage : make sure required packages are installed] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [linux-system-roles.storage : manage the pools and volumes to match the specified state] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:104 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": []} TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:114 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "blivet_output": { "actions": [], "changed": false, "crypts": [], "failed": false, "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": [] } } TASK [linux-system-roles.storage : set the list of pools for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:117 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : set the list of volumes for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:121 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : remove obsolete mounts] ********************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:137 TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:148 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : set up new/current mounts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:153 TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:164 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : Manage /etc/crypttab to account for changes we just made] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:172 TASK [linux-system-roles.storage : Update facts] ******************************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:187 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_fatals_raid_pool.yml:18 included: /tmp/tmp7ksfxpzz/tests/get_unused_disk.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Find unused disks in the system] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/get_unused_disk.yml:2 [WARNING]: The value 0 (type int) in a string field was converted to '0' (type string). If this does not look like what you expect, quote the entire value to ensure it does not change. ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "disks": ["vda", "vdb"]} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/get_unused_disk.yml:8 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"unused_disks": ["vda", "vdb"]}, "changed": false} TASK [Exit playbook when there's not enough unused disks in the system] ******** task path: /tmp/tmp7ksfxpzz/tests/get_unused_disk.yml:12 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Print unused disks] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/get_unused_disk.yml:17 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "unused_disks": [ "vda", "vdb" ] } TASK [Create a disk volume mounted at "{{ mount_location }}"] ****************** task path: /tmp/tmp7ksfxpzz/tests/tests_fatals_raid_pool.yml:24 TASK [linux-system-roles.storage : Set version specific variables] ************* task path: /tmp/tmp7ksfxpzz/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-crypto", "libblockdev-dm", "libblockdev-lvm", "libblockdev-mdraid", "libblockdev-swap"]}, "ansible_included_var_files": ["/tmp/tmp7ksfxpzz/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.storage : define an empty list of pools to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : define an empty list of volumes to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : include the appropriate provider tasks] ***** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:22 included: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [linux-system-roles.storage : get a list of rpm packages installed on host machine] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : make sure blivet is available] ************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: python3-blivet", "Installed: libblockdev-crypto", "Installed: libblockdev-dm", "Installed: libblockdev-lvm", "Installed: libblockdev-mdraid", "Installed: libblockdev-swap"]} TASK [linux-system-roles.storage : initialize internal facts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools": [], "_storage_vol_defaults": [], "_storage_vol_pools": [], "_storage_vols_no_defaults": [], "_storage_vols_no_defaults_by_pool": {}, "_storage_vols_w_defaults": [], "_storage_volumes": []}, "changed": false} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [1/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:28 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'state': u'present', u'name': u'vg1', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'lv1', u'size': u'2g'}, {u'mount_point': u'/opt/test2', u'name': u'lv2', u'size': u'3g'}, {u'mount_point': u'/opt/test3', u'name': u'lv3', u'size': u'3g'}], u'disks': [u'vda', u'vdb'], u'type': u'lvm', u'raid_level': u'fail'}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vda", "vdb"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": "fail", "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "lv1", "size": "2g"}, {"mount_point": "/opt/test2", "name": "lv2", "size": "3g"}, {"mount_point": "/opt/test3", "name": "lv3", "size": "3g"}]}]}, "ansible_loop_var": "pool", "changed": false, "pool": {"disks": ["vda", "vdb"], "name": "vg1", "raid_level": "fail", "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "lv1", "size": "2g"}, {"mount_point": "/opt/test2", "name": "lv2", "size": "3g"}, {"mount_point": "/opt/test3", "name": "lv3", "size": "3g"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [2/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:36 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'vg1', u'encryption_password': None, u'encryption': False, u'disks': [u'vda', u'vdb'], u'raid_level': u'fail', u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'lv1', u'size': u'2g'}, {u'mount_point': u'/opt/test2', u'name': u'lv2', u'size': u'3g'}, {u'mount_point': u'/opt/test3', u'name': u'lv3', u'size': u'3g'}], u'type': u'lvm', u'encryption_key_size': None}, {u'mount_point': u'/opt/test1', u'name': u'lv1', u'size': u'2g'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}], "_storage_vol_pools": ["vg1"], "_storage_vols_no_defaults": [{"mount_point": "/opt/test1", "name": "lv1", "size": "2g"}]}, "ansible_loop_var": "item", "changed": false, "item": [{"disks": ["vda", "vdb"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": "fail", "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "lv1", "size": "2g"}, {"mount_point": "/opt/test2", "name": "lv2", "size": "3g"}, {"mount_point": "/opt/test3", "name": "lv3", "size": "3g"}]}, {"mount_point": "/opt/test1", "name": "lv1", "size": "2g"}]} ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'vg1', u'encryption_password': None, u'encryption': False, u'disks': [u'vda', u'vdb'], u'raid_level': u'fail', u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'lv1', u'size': u'2g'}, {u'mount_point': u'/opt/test2', u'name': u'lv2', u'size': u'3g'}, {u'mount_point': u'/opt/test3', u'name': u'lv3', u'size': u'3g'}], u'type': u'lvm', u'encryption_key_size': None}, {u'mount_point': u'/opt/test2', u'name': u'lv2', u'size': u'3g'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}], "_storage_vol_pools": ["vg1", "vg1"], "_storage_vols_no_defaults": [{"mount_point": "/opt/test1", "name": "lv1", "size": "2g"}, {"mount_point": "/opt/test2", "name": "lv2", "size": "3g"}]}, "ansible_loop_var": "item", "changed": false, "item": [{"disks": ["vda", "vdb"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": "fail", "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "lv1", "size": "2g"}, {"mount_point": "/opt/test2", "name": "lv2", "size": "3g"}, {"mount_point": "/opt/test3", "name": "lv3", "size": "3g"}]}, {"mount_point": "/opt/test2", "name": "lv2", "size": "3g"}]} ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'vg1', u'encryption_password': None, u'encryption': False, u'disks': [u'vda', u'vdb'], u'raid_level': u'fail', u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'lv1', u'size': u'2g'}, {u'mount_point': u'/opt/test2', u'name': u'lv2', u'size': u'3g'}, {u'mount_point': u'/opt/test3', u'name': u'lv3', u'size': u'3g'}], u'type': u'lvm', u'encryption_key_size': None}, {u'mount_point': u'/opt/test3', u'name': u'lv3', u'size': u'3g'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}], "_storage_vol_pools": ["vg1", "vg1", "vg1"], "_storage_vols_no_defaults": [{"mount_point": "/opt/test1", "name": "lv1", "size": "2g"}, {"mount_point": "/opt/test2", "name": "lv2", "size": "3g"}, {"mount_point": "/opt/test3", "name": "lv3", "size": "3g"}]}, "ansible_loop_var": "item", "changed": false, "item": [{"disks": ["vda", "vdb"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": "fail", "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "lv1", "size": "2g"}, {"mount_point": "/opt/test2", "name": "lv2", "size": "3g"}, {"mount_point": "/opt/test3", "name": "lv3", "size": "3g"}]}, {"mount_point": "/opt/test3", "name": "lv3", "size": "3g"}]} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [3/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:44 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'mount_point': u'/opt/test1', u'name': u'lv1', u'size': u'2g'}, {u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'fs_label': u'', u'raid_level': None, u'mount_device_identifier': u'uuid', u'fs_type': u'xfs', u'mount_options': u'defaults', u'encryption_luks_version': None, u'raid_spare_count': None, u'size': 0, u'mount_point': u'', u'encryption_password': None, u'encryption': False, u'raid_chunk_size': None, u'raid_device_count': None, u'state': u'present', u'mount_check': 0, u'mount_passno': 0, u'fs_overwrite_existing': True, u'type': u'lvm', u'encryption_key_size': None, u'fs_create_options': u''}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "lv1", "pool": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "2g", "state": "present", "type": "lvm"}]}, "ansible_index_var": "idx", "ansible_loop_var": "item", "changed": false, "idx": 0, "item": [{"mount_point": "/opt/test1", "name": "lv1", "size": "2g"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}]} ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'mount_point': u'/opt/test2', u'name': u'lv2', u'size': u'3g'}, {u'raid_metadata_version': None, u'encryption_key_size': None, u'encryption_key': None, u'fs_label': u'', u'raid_chunk_size': None, u'mount_device_identifier': u'uuid', u'fs_type': u'xfs', u'mount_options': u'defaults', u'encryption_luks_version': None, u'raid_spare_count': None, u'size': 0, u'mount_point': u'', u'encryption_password': None, u'encryption': False, u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'mount_check': 0, u'mount_passno': 0, u'fs_overwrite_existing': True, u'type': u'lvm', u'encryption_cipher': None, u'fs_create_options': u''}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "lv1", "pool": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "2g", "state": "present", "type": "lvm"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "lv2", "pool": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm"}]}, "ansible_index_var": "idx", "ansible_loop_var": "item", "changed": false, "idx": 1, "item": [{"mount_point": "/opt/test2", "name": "lv2", "size": "3g"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}]} ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'mount_point': u'/opt/test3', u'name': u'lv3', u'size': u'3g'}, {u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'fs_label': u'', u'raid_level': None, u'mount_device_identifier': u'uuid', u'fs_type': u'xfs', u'mount_options': u'defaults', u'encryption_luks_version': None, u'raid_spare_count': None, u'size': 0, u'mount_point': u'', u'encryption_password': None, u'encryption': False, u'raid_chunk_size': None, u'raid_device_count': None, u'state': u'present', u'mount_check': 0, u'mount_passno': 0, u'fs_overwrite_existing': True, u'type': u'lvm', u'encryption_key_size': None, u'fs_create_options': u''}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "lv1", "pool": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "2g", "state": "present", "type": "lvm"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "lv2", "pool": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test3", "name": "lv3", "pool": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm"}]}, "ansible_index_var": "idx", "ansible_loop_var": "item", "changed": false, "idx": 2, "item": [{"mount_point": "/opt/test3", "name": "lv3", "size": "3g"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}]} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [4/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:52 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'vg1', u'encryption_password': None, u'encryption': False, u'disks': [u'vda', u'vdb'], u'raid_level': u'fail', u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'lv1', u'size': u'2g'}, {u'mount_point': u'/opt/test2', u'name': u'lv2', u'size': u'3g'}, {u'mount_point': u'/opt/test3', u'name': u'lv3', u'size': u'3g'}], u'type': u'lvm', u'encryption_key_size': None}) => {"ansible_facts": {"_storage_vols_no_defaults_by_pool": {"vg1": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "lv1", "pool": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "2g", "state": "present", "type": "lvm"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "lv2", "pool": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test3", "name": "lv3", "pool": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm"}]}}, "ansible_loop_var": "item", "changed": false, "item": {"disks": ["vda", "vdb"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": "fail", "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "lv1", "size": "2g"}, {"mount_point": "/opt/test2", "name": "lv2", "size": "3g"}, {"mount_point": "/opt/test3", "name": "lv3", "size": "3g"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [5/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:61 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'vg1', u'encryption_password': None, u'encryption': False, u'disks': [u'vda', u'vdb'], u'raid_level': u'fail', u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'lv1', u'size': u'2g'}, {u'mount_point': u'/opt/test2', u'name': u'lv2', u'size': u'3g'}, {u'mount_point': u'/opt/test3', u'name': u'lv3', u'size': u'3g'}], u'type': u'lvm', u'encryption_key_size': None}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vda", "vdb"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": "fail", "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "lv1", "pool": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "2g", "state": "present", "type": "lvm"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "lv2", "pool": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test3", "name": "lv3", "pool": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm"}]}]}, "ansible_index_var": "idx", "ansible_loop_var": "pool", "changed": false, "idx": 0, "pool": {"disks": ["vda", "vdb"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": "fail", "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "lv1", "size": "2g"}, {"mount_point": "/opt/test2", "name": "lv2", "size": "3g"}, {"mount_point": "/opt/test3", "name": "lv3", "size": "3g"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [6/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:72 TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools": [ { "disks": [ "vda", "vdb" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": "fail", "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [ { "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "lv1", "pool": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "2g", "state": "present", "type": "lvm" }, { "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "lv2", "pool": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm" }, { "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test3", "name": "lv3", "pool": "vg1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm" } ] } ] } TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes": [] } TASK [linux-system-roles.storage : get required packages] ********************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": ["lvm2", "xfsprogs"], "pools": [], "volumes": []} TASK [linux-system-roles.storage : make sure required packages are installed] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: lvm2", "Installed: xfsprogs"]} TASK [linux-system-roles.storage : manage the pools and volumes to match the specified state] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:104 fatal: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2]: FAILED! => {"changed": false, "module_stderr": "Shared connection to 127.0.0.3 closed.\r\n", "module_stdout": "/root/.ansible/tmp/ansible-tmp-1604147123.88-247060-206332114922110/AnsiballZ_blivet.py:18: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses\r\n import imp\r\nTraceback (most recent call last):\r\n File \"/usr/lib/python3.7/site-packages/blivet/devices/raid.py\", line 77, in _get_level\r\n level = levels.raid_level(value)\r\n File \"/usr/lib/python3.7/site-packages/blivet/devicelibs/raid.py\", line 377, in raid_level\r\n raise RaidError(\"invalid RAID level descriptor %s\" % descriptor)\r\nblivet.errors.RaidError: invalid RAID level descriptor fail\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nTraceback (most recent call last):\r\n File \"/usr/lib/python3.7/site-packages/blivet/devices/md.py\", line 195, in level\r\n level = self._get_level(value, self._levels)\r\n File \"/usr/lib/python3.7/site-packages/blivet/threads.py\", line 53, in run_with_lock\r\n return m(*args, **kwargs)\r\n File \"/usr/lib/python3.7/site-packages/blivet/threads.py\", line 53, in run_with_lock\r\n return m(*args, **kwargs)\r\n File \"/usr/lib/python3.7/site-packages/blivet/devices/raid.py\", line 81, in _get_level\r\n raise ValueError(message % {\"raid_level\": value, \"levels\": choices})\r\nValueError: RAID level fail is an invalid value. Must be one of (raid4, raid10, raid0, raid5, linear, raid6, raid1).\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nTraceback (most recent call last):\r\n File \"/root/.ansible/tmp/ansible-tmp-1604147123.88-247060-206332114922110/AnsiballZ_blivet.py\", line 114, in \r\n _ansiballz_main()\r\n File \"/root/.ansible/tmp/ansible-tmp-1604147123.88-247060-206332114922110/AnsiballZ_blivet.py\", line 106, in _ansiballz_main\r\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\r\n File \"/root/.ansible/tmp/ansible-tmp-1604147123.88-247060-206332114922110/AnsiballZ_blivet.py\", line 49, in invoke_module\r\n imp.load_module('__main__', mod, module, MOD_DESC)\r\n File \"/usr/lib64/python3.7/imp.py\", line 234, in load_module\r\n return load_source(name, filename, file)\r\n File \"/usr/lib64/python3.7/imp.py\", line 169, in load_source\r\n module = _exec(spec, sys.modules[name])\r\n File \"\", line 630, in _exec\r\n File \"\", line 728, in exec_module\r\n File \"\", line 219, in _call_with_frames_removed\r\n File \"/tmp/ansible_blivet_payload_kxhhj0vr/__main__.py\", line 1265, in \r\n File \"/tmp/ansible_blivet_payload_kxhhj0vr/__main__.py\", line 1262, in main\r\n File \"/tmp/ansible_blivet_payload_kxhhj0vr/__main__.py\", line 1215, in run_module\r\n File \"/tmp/ansible_blivet_payload_kxhhj0vr/__main__.py\", line 947, in manage_pool\r\n File \"/tmp/ansible_blivet_payload_kxhhj0vr/__main__.py\", line 852, in manage\r\n File \"/tmp/ansible_blivet_payload_kxhhj0vr/__main__.py\", line 911, in _create\r\n File \"/tmp/ansible_blivet_payload_kxhhj0vr/__main__.py\", line 805, in _create_members\r\n File \"/tmp/ansible_blivet_payload_kxhhj0vr/__main__.py\", line 267, in _new_mdarray\r\n File \"/usr/lib/python3.7/site-packages/blivet/threads.py\", line 53, in run_with_lock\r\n return m(*args, **kwargs)\r\n File \"/usr/lib/python3.7/site-packages/blivet/blivet.py\", line 520, in new_mdarray\r\n return MDRaidArrayDevice(name, *args, **kwargs)\r\n File \"/usr/lib/python3.7/site-packages/blivet/threads.py\", line 53, in run_with_lock\r\n return m(*args, **kwargs)\r\n File \"/usr/lib/python3.7/site-packages/blivet/devices/md.py\", line 132, in __init__\r\n raise e\r\n File \"/usr/lib/python3.7/site-packages/blivet/devices/md.py\", line 126, in __init__\r\n self.level = level\r\n File \"/usr/lib/python3.7/site-packages/blivet/threads.py\", line 53, in run_with_lock\r\n return m(*args, **kwargs)\r\n File \"/usr/lib/python3.7/site-packages/blivet/devices/md.py\", line 197, in level\r\n raise errors.DeviceError(e)\r\nblivet.errors.DeviceError: RAID level fail is an invalid value. Must be one of (raid4, raid10, raid0, raid5, linear, raid6, raid1).\r\n", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1} TASK [Check that we failed in the role] **************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_fatals_raid_pool.yml:50 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 : ok=37 changed=1 unreachable=0 failed=0 skipped=16 rescued=1 ignored=0 + cd /tmp/tmp7ksfxpzz/tests; TEST_SUBJECTS=/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_storage-178-e856157-fedora-31-87qzp9iq/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmp7ksfxpzz/_setup.yml /tmp/tmp7ksfxpzz/tests/tests_fatals_raid_volume.yml ansible-playbook 2.8.16 config file = /etc/ansible/ansible.cfg configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python2.7/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 2.7.5 (default, Apr 2 2020, 13:16:51) [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)] Using /etc/ansible/ansible.cfg as config file PLAYBOOK: _setup.yml *********************************************************** 1 plays in /tmp/tmp7ksfxpzz/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/_setup.yml:5 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "groups": { "all": [ "/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2" ], "localhost": [ "/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2" ], "subjects": [ "/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmp7ksfxpzz/_setup.yml:6 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 : ok=1 changed=0 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 PLAYBOOK: tests_fatals_raid_volume.yml ***************************************** 1 plays in /tmp/tmp7ksfxpzz/tests/tests_fatals_raid_volume.yml PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/tests_fatals_raid_volume.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] META: ran handlers TASK [include_role : linux-system-roles.storage] ******************************* task path: /tmp/tmp7ksfxpzz/tests/tests_fatals_raid_volume.yml:10 TASK [linux-system-roles.storage : Set version specific variables] ************* task path: /tmp/tmp7ksfxpzz/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-crypto", "libblockdev-dm", "libblockdev-lvm", "libblockdev-mdraid", "libblockdev-swap"]}, "ansible_included_var_files": ["/tmp/tmp7ksfxpzz/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.storage : define an empty list of pools to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : define an empty list of volumes to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : include the appropriate provider tasks] ***** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:22 included: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [linux-system-roles.storage : get a list of rpm packages installed on host machine] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : make sure blivet is available] ************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:7 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: python3-blivet", "Installed: libblockdev-crypto", "Installed: libblockdev-dm", "Installed: libblockdev-lvm", "Installed: libblockdev-mdraid", "Installed: libblockdev-swap", "Installed: libblockdev-kbd-2.24-2.fc31.x86_64", "Installed: nspr-4.29.0-1.fc31.x86_64", "Installed: libblockdev-loop-2.24-2.fc31.x86_64", "Installed: nss-3.57.0-1.fc31.x86_64", "Installed: libblockdev-lvm-2.24-2.fc31.x86_64", "Installed: lsof-4.93.2-2.fc31.x86_64", "Installed: lvm2-2.03.09-1.fc31.x86_64", "Installed: nss-softokn-3.57.0-1.fc31.x86_64", "Installed: libblockdev-mdraid-2.24-2.fc31.x86_64", "Installed: nss-softokn-freebl-3.57.0-1.fc31.x86_64", "Installed: lvm2-libs-2.03.09-1.fc31.x86_64", "Installed: python3-gobject-base-3.34.0-3.fc31.x86_64", "Installed: libblockdev-mpath-2.24-2.fc31.x86_64", "Installed: nss-sysinit-3.57.0-1.fc31.x86_64", "Installed: device-mapper-event-1.02.171-1.fc31.x86_64", "Installed: nss-util-3.57.0-1.fc31.x86_64", "Installed: libblockdev-nvdimm-2.24-2.fc31.x86_64", "Installed: gobject-introspection-1.62.0-1.fc31.x86_64", "Installed: device-mapper-event-libs-1.02.171-1.fc31.x86_64", "Installed: userspace-rcu-0.11.1-2.fc31.x86_64", "Installed: libblockdev-part-2.24-2.fc31.x86_64", "Installed: lzo-2.08-16.fc31.x86_64", "Installed: volume_key-libs-0.3.12-4.fc31.x86_64", "Installed: dmraid-1.0.0.rc16-43.fc31.x86_64", "Installed: libblockdev-swap-2.24-2.fc31.x86_64", "Installed: libblockdev-utils-2.24-2.fc31.x86_64", "Installed: blivet-data-1:3.1.7-2.fc31.noarch", "Installed: device-mapper-multipath-0.8.0-3.fc31.x86_64", "Installed: device-mapper-multipath-libs-0.8.0-3.fc31.x86_64", "Installed: device-mapper-persistent-data-0.8.5-2.fc31.x86_64", "Installed: sgpio-1.2.0.10-24.fc31.x86_64", "Installed: bcache-tools-1.0.8-16.fc31.x86_64", "Installed: python3-blivet-1:3.1.7-2.fc31.noarch", "Installed: daxctl-libs-70.1-1.fc31.x86_64", "Installed: python3-blockdev-2.24-2.fc31.x86_64", "Installed: mdadm-4.1-5.fc31.x86_64", "Installed: python3-pyudev-0.21.0-11.fc31.noarch", "Installed: python3-pyparted-1:3.11.2-2.fc31.x86_64", "Installed: libbytesize-2.3-1.fc31.x86_64", "Installed: libaio-0.3.111-6.fc31.x86_64", "Installed: python3-bytesize-2.3-1.fc31.x86_64", "Installed: libblockdev-2.24-2.fc31.x86_64", "Installed: libblockdev-btrfs-2.24-2.fc31.x86_64", "Installed: btrfs-progs-5.7-4.fc31.x86_64", "Installed: libblockdev-crypto-2.24-2.fc31.x86_64", "Installed: ndctl-70.1-1.fc31.x86_64", "Installed: compat-readline5-5.2-34.fc31.x86_64", "Installed: gdisk-1.0.5-1.fc31.x86_64", "Installed: ndctl-libs-70.1-1.fc31.x86_64", "Installed: libblockdev-dm-2.24-2.fc31.x86_64", "Installed: dmraid-events-1.0.0.rc16-43.fc31.x86_64", "Installed: libblockdev-fs-2.24-2.fc31.x86_64"]} TASK [linux-system-roles.storage : initialize internal facts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools": [], "_storage_vol_defaults": [], "_storage_vol_pools": [], "_storage_vols_no_defaults": [], "_storage_vols_no_defaults_by_pool": {}, "_storage_vols_w_defaults": [], "_storage_volumes": []}, "changed": false} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [1/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:28 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [2/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:36 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [3/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:44 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [4/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:52 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [5/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:61 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [6/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:72 TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools": [] } TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes": [] } TASK [linux-system-roles.storage : get required packages] ********************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": []} TASK [linux-system-roles.storage : make sure required packages are installed] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [linux-system-roles.storage : manage the pools and volumes to match the specified state] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:104 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": []} TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:114 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "blivet_output": { "actions": [], "changed": false, "crypts": [], "failed": false, "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": [] } } TASK [linux-system-roles.storage : set the list of pools for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:117 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : set the list of volumes for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:121 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : remove obsolete mounts] ********************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:137 TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:148 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : set up new/current mounts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:153 TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:164 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : Manage /etc/crypttab to account for changes we just made] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:172 TASK [linux-system-roles.storage : Update facts] ******************************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:187 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_fatals_raid_volume.yml:13 included: /tmp/tmp7ksfxpzz/tests/get_unused_disk.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Find unused disks in the system] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/get_unused_disk.yml:2 [WARNING]: The value 0 (type int) in a string field was converted to '0' (type string). If this does not look like what you expect, quote the entire value to ensure it does not change. ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "disks": ["vda", "vdb"]} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/get_unused_disk.yml:8 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"unused_disks": ["vda", "vdb"]}, "changed": false} TASK [Exit playbook when there's not enough unused disks in the system] ******** task path: /tmp/tmp7ksfxpzz/tests/get_unused_disk.yml:12 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Print unused disks] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/get_unused_disk.yml:17 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "unused_disks": [ "vda", "vdb" ] } TASK [Create a RAID0 device mounted on "/opt/test1"] *************************** task path: /tmp/tmp7ksfxpzz/tests/tests_fatals_raid_volume.yml:19 TASK [linux-system-roles.storage : Set version specific variables] ************* task path: /tmp/tmp7ksfxpzz/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-crypto", "libblockdev-dm", "libblockdev-lvm", "libblockdev-mdraid", "libblockdev-swap"]}, "ansible_included_var_files": ["/tmp/tmp7ksfxpzz/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.storage : define an empty list of pools to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : define an empty list of volumes to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : include the appropriate provider tasks] ***** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:22 included: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [linux-system-roles.storage : get a list of rpm packages installed on host machine] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : make sure blivet is available] ************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: python3-blivet", "Installed: libblockdev-crypto", "Installed: libblockdev-dm", "Installed: libblockdev-lvm", "Installed: libblockdev-mdraid", "Installed: libblockdev-swap"]} TASK [linux-system-roles.storage : initialize internal facts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools": [], "_storage_vol_defaults": [], "_storage_vol_pools": [], "_storage_vols_no_defaults": [], "_storage_vols_no_defaults_by_pool": {}, "_storage_vols_w_defaults": [], "_storage_volumes": []}, "changed": false} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [1/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:28 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [2/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:36 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [3/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:44 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [4/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:52 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [5/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:61 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [6/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:72 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'disks': [u'vda', u'vdb'], u'type': u'raid', u'mount_point': u'/opt/test1', u'name': u'test1', u'raid_level': u'null'}) => {"ansible_facts": {"_storage_volumes": [{"disks": ["vda", "vdb"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": "null", "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "raid"}]}, "ansible_loop_var": "volume", "changed": false, "volume": {"disks": ["vda", "vdb"], "mount_point": "/opt/test1", "name": "test1", "raid_level": "null", "type": "raid"}} TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools": [] } TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes": [ { "disks": [ "vda", "vdb" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": "null", "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "raid" } ] } TASK [linux-system-roles.storage : get required packages] ********************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": ["xfsprogs"], "pools": [], "volumes": []} TASK [linux-system-roles.storage : make sure required packages are installed] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: xfsprogs"]} TASK [linux-system-roles.storage : manage the pools and volumes to match the specified state] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:104 fatal: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2]: FAILED! => {"changed": false, "module_stderr": "Shared connection to 127.0.0.3 closed.\r\n", "module_stdout": "/root/.ansible/tmp/ansible-tmp-1604147212.74-247463-92901843392811/AnsiballZ_blivet.py:18: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses\r\n import imp\r\nTraceback (most recent call last):\r\n File \"/usr/lib/python3.7/site-packages/blivet/devices/raid.py\", line 77, in _get_level\r\n level = levels.raid_level(value)\r\n File \"/usr/lib/python3.7/site-packages/blivet/devicelibs/raid.py\", line 377, in raid_level\r\n raise RaidError(\"invalid RAID level descriptor %s\" % descriptor)\r\nblivet.errors.RaidError: invalid RAID level descriptor null\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nTraceback (most recent call last):\r\n File \"/usr/lib/python3.7/site-packages/blivet/devices/md.py\", line 195, in level\r\n level = self._get_level(value, self._levels)\r\n File \"/usr/lib/python3.7/site-packages/blivet/threads.py\", line 53, in run_with_lock\r\n return m(*args, **kwargs)\r\n File \"/usr/lib/python3.7/site-packages/blivet/threads.py\", line 53, in run_with_lock\r\n return m(*args, **kwargs)\r\n File \"/usr/lib/python3.7/site-packages/blivet/devices/raid.py\", line 81, in _get_level\r\n raise ValueError(message % {\"raid_level\": value, \"levels\": choices})\r\nValueError: RAID level null is an invalid value. Must be one of (raid6, raid0, raid5, linear, raid1, raid10, raid4).\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nTraceback (most recent call last):\r\n File \"/root/.ansible/tmp/ansible-tmp-1604147212.74-247463-92901843392811/AnsiballZ_blivet.py\", line 114, in \r\n _ansiballz_main()\r\n File \"/root/.ansible/tmp/ansible-tmp-1604147212.74-247463-92901843392811/AnsiballZ_blivet.py\", line 106, in _ansiballz_main\r\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\r\n File \"/root/.ansible/tmp/ansible-tmp-1604147212.74-247463-92901843392811/AnsiballZ_blivet.py\", line 49, in invoke_module\r\n imp.load_module('__main__', mod, module, MOD_DESC)\r\n File \"/usr/lib64/python3.7/imp.py\", line 234, in load_module\r\n return load_source(name, filename, file)\r\n File \"/usr/lib64/python3.7/imp.py\", line 169, in load_source\r\n module = _exec(spec, sys.modules[name])\r\n File \"\", line 630, in _exec\r\n File \"\", line 728, in exec_module\r\n File \"\", line 219, in _call_with_frames_removed\r\n File \"/tmp/ansible_blivet_payload_c8__8g8_/__main__.py\", line 1265, in \r\n File \"/tmp/ansible_blivet_payload_c8__8g8_/__main__.py\", line 1262, in main\r\n File \"/tmp/ansible_blivet_payload_c8__8g8_/__main__.py\", line 1225, in run_module\r\n File \"/tmp/ansible_blivet_payload_c8__8g8_/__main__.py\", line 938, in manage_volume\r\n File \"/tmp/ansible_blivet_payload_c8__8g8_/__main__.py\", line 432, in manage\r\n File \"/tmp/ansible_blivet_payload_c8__8g8_/__main__.py\", line 632, in _create\r\n File \"/tmp/ansible_blivet_payload_c8__8g8_/__main__.py\", line 267, in _new_mdarray\r\n File \"/usr/lib/python3.7/site-packages/blivet/threads.py\", line 53, in run_with_lock\r\n return m(*args, **kwargs)\r\n File \"/usr/lib/python3.7/site-packages/blivet/blivet.py\", line 520, in new_mdarray\r\n return MDRaidArrayDevice(name, *args, **kwargs)\r\n File \"/usr/lib/python3.7/site-packages/blivet/threads.py\", line 53, in run_with_lock\r\n return m(*args, **kwargs)\r\n File \"/usr/lib/python3.7/site-packages/blivet/devices/md.py\", line 132, in __init__\r\n raise e\r\n File \"/usr/lib/python3.7/site-packages/blivet/devices/md.py\", line 126, in __init__\r\n self.level = level\r\n File \"/usr/lib/python3.7/site-packages/blivet/threads.py\", line 53, in run_with_lock\r\n return m(*args, **kwargs)\r\n File \"/usr/lib/python3.7/site-packages/blivet/devices/md.py\", line 197, in level\r\n raise errors.DeviceError(e)\r\nblivet.errors.DeviceError: RAID level null is an invalid value. Must be one of (raid6, raid0, raid5, linear, raid1, raid10, raid4).\r\n", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1} TASK [Check that we failed in the role] **************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_fatals_raid_volume.yml:36 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 : ok=33 changed=1 unreachable=0 failed=0 skipped=20 rescued=1 ignored=0 + cd /tmp/tmp7ksfxpzz/tests; TEST_SUBJECTS=/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_storage-178-e856157-fedora-31-87qzp9iq/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmp7ksfxpzz/_setup.yml /tmp/tmp7ksfxpzz/tests/tests_filesystem_one_disk.yml ansible-playbook 2.8.16 config file = /etc/ansible/ansible.cfg configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python2.7/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 2.7.5 (default, Apr 2 2020, 13:16:51) [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)] Using /etc/ansible/ansible.cfg as config file PLAYBOOK: _setup.yml *********************************************************** 1 plays in /tmp/tmp7ksfxpzz/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/_setup.yml:5 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "groups": { "all": [ "/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2" ], "localhost": [ "/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2" ], "subjects": [ "/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmp7ksfxpzz/_setup.yml:6 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 : ok=1 changed=0 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 PLAYBOOK: tests_filesystem_one_disk.yml **************************************** 1 plays in /tmp/tmp7ksfxpzz/tests/tests_filesystem_one_disk.yml PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/tests_filesystem_one_disk.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] META: ran handlers TASK [include_role : linux-system-roles.storage] ******************************* task path: /tmp/tmp7ksfxpzz/tests/tests_filesystem_one_disk.yml:8 TASK [linux-system-roles.storage : Set version specific variables] ************* task path: /tmp/tmp7ksfxpzz/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-crypto", "libblockdev-dm", "libblockdev-lvm", "libblockdev-mdraid", "libblockdev-swap"]}, "ansible_included_var_files": ["/tmp/tmp7ksfxpzz/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.storage : define an empty list of pools to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : define an empty list of volumes to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : include the appropriate provider tasks] ***** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:22 included: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [linux-system-roles.storage : get a list of rpm packages installed on host machine] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : make sure blivet is available] ************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:7 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: python3-blivet", "Installed: libblockdev-crypto", "Installed: libblockdev-dm", "Installed: libblockdev-lvm", "Installed: libblockdev-mdraid", "Installed: libblockdev-swap", "Installed: nss-3.57.0-1.fc31.x86_64", "Installed: libblockdev-loop-2.24-2.fc31.x86_64", "Installed: libblockdev-lvm-2.24-2.fc31.x86_64", "Installed: python3-gobject-base-3.34.0-3.fc31.x86_64", "Installed: lvm2-2.03.09-1.fc31.x86_64", "Installed: nss-softokn-3.57.0-1.fc31.x86_64", "Installed: userspace-rcu-0.11.1-2.fc31.x86_64", "Installed: libblockdev-mdraid-2.24-2.fc31.x86_64", "Installed: lvm2-libs-2.03.09-1.fc31.x86_64", "Installed: nss-softokn-freebl-3.57.0-1.fc31.x86_64", "Installed: nss-sysinit-3.57.0-1.fc31.x86_64", "Installed: libblockdev-mpath-2.24-2.fc31.x86_64", "Installed: gobject-introspection-1.62.0-1.fc31.x86_64", "Installed: device-mapper-event-1.02.171-1.fc31.x86_64", "Installed: nss-util-3.57.0-1.fc31.x86_64", "Installed: libblockdev-nvdimm-2.24-2.fc31.x86_64", "Installed: lsof-4.93.2-2.fc31.x86_64", "Installed: device-mapper-event-libs-1.02.171-1.fc31.x86_64", "Installed: libblockdev-part-2.24-2.fc31.x86_64", "Installed: libblockdev-swap-2.24-2.fc31.x86_64", "Installed: libblockdev-utils-2.24-2.fc31.x86_64", "Installed: blivet-data-1:3.1.7-2.fc31.noarch", "Installed: device-mapper-multipath-0.8.0-3.fc31.x86_64", "Installed: device-mapper-multipath-libs-0.8.0-3.fc31.x86_64", "Installed: device-mapper-persistent-data-0.8.5-2.fc31.x86_64", "Installed: sgpio-1.2.0.10-24.fc31.x86_64", "Installed: bcache-tools-1.0.8-16.fc31.x86_64", "Installed: python3-pyudev-0.21.0-11.fc31.noarch", "Installed: python3-blivet-1:3.1.7-2.fc31.noarch", "Installed: python3-blockdev-2.24-2.fc31.x86_64", "Installed: daxctl-libs-70.1-1.fc31.x86_64", "Installed: python3-pyparted-1:3.11.2-2.fc31.x86_64", "Installed: libaio-0.3.111-6.fc31.x86_64", "Installed: libbytesize-2.3-1.fc31.x86_64", "Installed: python3-bytesize-2.3-1.fc31.x86_64", "Installed: libblockdev-2.24-2.fc31.x86_64", "Installed: libblockdev-btrfs-2.24-2.fc31.x86_64", "Installed: compat-readline5-5.2-34.fc31.x86_64", "Installed: dmraid-1.0.0.rc16-43.fc31.x86_64", "Installed: libblockdev-crypto-2.24-2.fc31.x86_64", "Installed: ndctl-70.1-1.fc31.x86_64", "Installed: dmraid-events-1.0.0.rc16-43.fc31.x86_64", "Installed: btrfs-progs-5.7-4.fc31.x86_64", "Installed: gdisk-1.0.5-1.fc31.x86_64", "Installed: ndctl-libs-70.1-1.fc31.x86_64", "Installed: libblockdev-dm-2.24-2.fc31.x86_64", "Installed: lzo-2.08-16.fc31.x86_64", "Installed: volume_key-libs-0.3.12-4.fc31.x86_64", "Installed: mdadm-4.1-5.fc31.x86_64", "Installed: libblockdev-fs-2.24-2.fc31.x86_64", "Installed: nspr-4.29.0-1.fc31.x86_64", "Installed: libblockdev-kbd-2.24-2.fc31.x86_64"]} TASK [linux-system-roles.storage : initialize internal facts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools": [], "_storage_vol_defaults": [], "_storage_vol_pools": [], "_storage_vols_no_defaults": [], "_storage_vols_no_defaults_by_pool": {}, "_storage_vols_w_defaults": [], "_storage_volumes": []}, "changed": false} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [1/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:28 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [2/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:36 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [3/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:44 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [4/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:52 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [5/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:61 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [6/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:72 TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools": [] } TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes": [] } TASK [linux-system-roles.storage : get required packages] ********************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": []} TASK [linux-system-roles.storage : make sure required packages are installed] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [linux-system-roles.storage : manage the pools and volumes to match the specified state] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:104 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": []} TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:114 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "blivet_output": { "actions": [], "changed": false, "crypts": [], "failed": false, "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": [] } } TASK [linux-system-roles.storage : set the list of pools for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:117 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : set the list of volumes for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:121 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : remove obsolete mounts] ********************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:137 TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:148 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : set up new/current mounts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:153 TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:164 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : Manage /etc/crypttab to account for changes we just made] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:172 TASK [linux-system-roles.storage : Update facts] ******************************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:187 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_filesystem_one_disk.yml:11 included: /tmp/tmp7ksfxpzz/tests/get_unused_disk.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Find unused disks in the system] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/get_unused_disk.yml:2 [WARNING]: The value 0 (type int) in a string field was converted to '0' (type string). If this does not look like what you expect, quote the entire value to ensure it does not change. ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "disks": ["vda"]} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/get_unused_disk.yml:8 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"unused_disks": ["vda"]}, "changed": false} TASK [Exit playbook when there's not enough unused disks in the system] ******** task path: /tmp/tmp7ksfxpzz/tests/get_unused_disk.yml:12 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Print unused disks] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/get_unused_disk.yml:17 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "unused_disks": [ "vda" ] } TASK [Initialize a disk device with the default fs type] *********************** task path: /tmp/tmp7ksfxpzz/tests/tests_filesystem_one_disk.yml:15 TASK [linux-system-roles.storage : Set version specific variables] ************* task path: /tmp/tmp7ksfxpzz/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-crypto", "libblockdev-dm", "libblockdev-lvm", "libblockdev-mdraid", "libblockdev-swap"]}, "ansible_included_var_files": ["/tmp/tmp7ksfxpzz/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.storage : define an empty list of pools to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : define an empty list of volumes to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : include the appropriate provider tasks] ***** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:22 included: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [linux-system-roles.storage : get a list of rpm packages installed on host machine] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : make sure blivet is available] ************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: python3-blivet", "Installed: libblockdev-crypto", "Installed: libblockdev-dm", "Installed: libblockdev-lvm", "Installed: libblockdev-mdraid", "Installed: libblockdev-swap"]} TASK [linux-system-roles.storage : initialize internal facts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools": [], "_storage_vol_defaults": [], "_storage_vol_pools": [], "_storage_vols_no_defaults": [], "_storage_vols_no_defaults_by_pool": {}, "_storage_vols_w_defaults": [], "_storage_volumes": []}, "changed": false} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [1/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:28 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [2/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:36 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [3/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:44 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [4/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:52 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [5/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:61 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [6/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:72 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'disks': [u'vda'], u'type': u'disk', u'mount_point': u'/opt/test1', u'name': u'test1'}) => {"ansible_facts": {"_storage_volumes": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "disk"}]}, "ansible_loop_var": "volume", "changed": false, "volume": {"disks": ["vda"], "mount_point": "/opt/test1", "name": "test1", "type": "disk"}} TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools": [] } TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "disk" } ] } TASK [linux-system-roles.storage : get required packages] ********************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": ["xfsprogs"], "pools": [], "volumes": []} TASK [linux-system-roles.storage : make sure required packages are installed] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: xfsprogs"]} TASK [linux-system-roles.storage : manage the pools and volumes to match the specified state] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:104 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [{"action": "create format", "device": "/dev/vda", "fs_type": "xfs"}], "changed": true, "crypts": [], "leaves": ["/dev/sda1", "/dev/sr0", "/dev/vda", "/dev/vdb", "/dev/vdc"], "mounts": [{"dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "UUID=f6300374-b815-40cb-9e7e-9c49f5d78e3c", "state": "mounted"}], "packages": ["e2fsprogs", "xfsprogs"], "pools": [], "volumes": [{"_device": "/dev/vda", "_kernel_device": "/dev/vda", "_mount_id": "UUID=f6300374-b815-40cb-9e7e-9c49f5d78e3c", "_raw_device": "/dev/vda", "_raw_kernel_device": "/dev/vda", "disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "disk"}]} TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:114 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "blivet_output": { "actions": [ { "action": "create format", "device": "/dev/vda", "fs_type": "xfs" } ], "changed": true, "crypts": [], "failed": false, "leaves": [ "/dev/sda1", "/dev/sr0", "/dev/vda", "/dev/vdb", "/dev/vdc" ], "mounts": [ { "dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "UUID=f6300374-b815-40cb-9e7e-9c49f5d78e3c", "state": "mounted" } ], "packages": [ "e2fsprogs", "xfsprogs" ], "pools": [], "volumes": [ { "_device": "/dev/vda", "_kernel_device": "/dev/vda", "_mount_id": "UUID=f6300374-b815-40cb-9e7e-9c49f5d78e3c", "_raw_device": "/dev/vda", "_raw_kernel_device": "/dev/vda", "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "disk" } ] } } TASK [linux-system-roles.storage : set the list of pools for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:117 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : set the list of volumes for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:121 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": [{"_device": "/dev/vda", "_kernel_device": "/dev/vda", "_mount_id": "UUID=f6300374-b815-40cb-9e7e-9c49f5d78e3c", "_raw_device": "/dev/vda", "_raw_kernel_device": "/dev/vda", "disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "disk"}]}, "changed": false} TASK [linux-system-roles.storage : remove obsolete mounts] ********************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:137 TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:148 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [linux-system-roles.storage : set up new/current mounts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:153 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'src': u'UUID=f6300374-b815-40cb-9e7e-9c49f5d78e3c', u'state': u'mounted', u'dump': 0, u'path': u'/opt/test1', u'passno': 0, u'opts': u'defaults', u'fstype': u'xfs'}) => {"ansible_loop_var": "mount_info", "changed": true, "dump": "0", "fstab": "/etc/fstab", "fstype": "xfs", "mount_info": {"dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "UUID=f6300374-b815-40cb-9e7e-9c49f5d78e3c", "state": "mounted"}, "name": "/opt/test1", "opts": "defaults", "passno": "0", "src": "UUID=f6300374-b815-40cb-9e7e-9c49f5d78e3c"} TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:164 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [linux-system-roles.storage : Manage /etc/crypttab to account for changes we just made] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:172 TASK [linux-system-roles.storage : Update facts] ******************************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:187 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_filesystem_one_disk.yml:25 included: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Print out pool information] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:1 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {} TASK [Print out volume information] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:6 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes_list": [ { "_device": "/dev/vda", "_kernel_device": "/dev/vda", "_mount_id": "UUID=f6300374-b815-40cb-9e7e-9c49f5d78e3c", "_raw_device": "/dev/vda", "_raw_kernel_device": "/dev/vda", "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "disk" } ] } TASK [Collect info about the volumes.] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "info": {"/dev/sda": {"fstype": "", "label": "", "name": "/dev/sda", "size": "4G", "type": "disk", "uuid": ""}, "/dev/sda1": {"fstype": "ext4", "label": "", "name": "/dev/sda1", "size": "4G", "type": "partition", "uuid": "03e702b4-e165-4a39-88c9-9e210cd00434"}, "/dev/sr0": {"fstype": "iso9660", "label": "cidata", "name": "/dev/sr0", "size": "364K", "type": "rom", "uuid": "2020-10-31-12-26-54-00"}, "/dev/vda": {"fstype": "xfs", "label": "", "name": "/dev/vda", "size": "10G", "type": "disk", "uuid": "f6300374-b815-40cb-9e7e-9c49f5d78e3c"}, "/dev/vdb": {"fstype": "", "label": "", "name": "/dev/vdb", "size": "10G", "type": "disk", "uuid": ""}, "/dev/vdc": {"fstype": "", "label": "", "name": "/dev/vdc", "size": "10G", "type": "disk", "uuid": ""}}} TASK [Read the /etc/fstab file for volume existence] *************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:19 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/fstab"], "delta": "0:00:00.003222", "end": "2020-10-31 12:28:27.242835", "rc": 0, "start": "2020-10-31 12:28:27.239613", "stderr": "", "stderr_lines": [], "stdout": "\n#\n# /etc/fstab\n# Created by anaconda on Sat Oct 31 08:17:58 2020\n#\n# Accessible filesystems, by reference, are maintained under '/dev/disk/'.\n# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.\n#\n# After editing this file, run 'systemctl daemon-reload' to update systemd\n# units generated from this file.\n#\nUUID=03e702b4-e165-4a39-88c9-9e210cd00434 / ext4 defaults 1 1\nUUID=f6300374-b815-40cb-9e7e-9c49f5d78e3c /opt/test1 xfs defaults 0 0", "stdout_lines": ["", "#", "# /etc/fstab", "# Created by anaconda on Sat Oct 31 08:17:58 2020", "#", "# Accessible filesystems, by reference, are maintained under '/dev/disk/'.", "# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.", "#", "# After editing this file, run 'systemctl daemon-reload' to update systemd", "# units generated from this file.", "#", "UUID=03e702b4-e165-4a39-88c9-9e210cd00434 / ext4 defaults 1 1", "UUID=f6300374-b815-40cb-9e7e-9c49f5d78e3c /opt/test1 xfs defaults 0 0"]} TASK [Read the /etc/crypttab file] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/crypttab"], "delta": "0:00:00.002673", "end": "2020-10-31 12:28:27.573541", "rc": 0, "start": "2020-10-31 12:28:27.570868", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Verify the volumes listed in storage_pools were correctly managed] ******* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:32 TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:39 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_pool": null}, "changed": false} TASK [Verify the volumes with no pool were correctly managed] ****************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:46 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": true, "_storage_volume_tests": ["mount", "fstab", "fs", "device", "encryption", "md", "size"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:10 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Get expected mount device based on device type] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/vda"}, "changed": false} TASK [Set some facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [{"block_available": 2592358, "block_size": 4096, "block_total": 2618880, "block_used": 26522, "device": "/dev/vda", "fstype": "xfs", "inode_available": 5242877, "inode_total": 5242880, "inode_used": 3, "mount": "/opt/test1", "options": "rw,seclabel,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota", "size_available": 10618298368, "size_total": 10726932480, "uuid": "f6300374-b815-40cb-9e7e-9c49f5d78e3c"}], "storage_test_mount_expected_match_count": "1", "storage_test_mount_point_matches": [{"block_available": 2592358, "block_size": 4096, "block_total": 2618880, "block_used": 26522, "device": "/dev/vda", "fstype": "xfs", "inode_available": 5242877, "inode_total": 5242880, "inode_used": 3, "mount": "/opt/test1", "options": "rw,seclabel,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota", "size_available": 10618298368, "size_total": 10726932480, "uuid": "f6300374-b815-40cb-9e7e-9c49f5d78e3c"}], "storage_test_swap_expected_matches": "0"}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:22 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:31 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:39 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [command] ***************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Gather swap info] ******************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:52 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify swap status] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:57 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Unset facts] ************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:67 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null, "storage_test_swap_expected_matches": null, "storage_test_swaps": null, "storage_test_sys_node": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": "1", "storage_test_fstab_expected_mount_point_matches": "1", "storage_test_fstab_id_matches": ["UUID=f6300374-b815-40cb-9e7e-9c49f5d78e3c "], "storage_test_fstab_mount_point_matches": [" /opt/test1 "]}, "changed": false} TASK [Verify that the device identifier appears in /etc/fstab] ***************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:17 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": null, "storage_test_fstab_expected_mount_point_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [Verify fs type] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify fs label] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [See whether the device node is present] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "stat": {"atime": 1604147302.9190977, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "ctime": 1604147302.9190977, "dev": 5, "device_type": 64512, "executable": false, "exists": true, "gid": 6, "gr_name": "disk", "inode": 1697, "isblk": true, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mimetype": "inode/blockdevice", "mode": "0660", "mtime": 1604147302.9190977, "nlink": 1, "path": "/dev/vda", "pw_name": "root", "readable": true, "rgrp": true, "roth": false, "rusr": true, "size": 0, "uid": 0, "version": null, "wgrp": true, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}} TASK [Verify the presence/absence of the device node] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "disk"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:28 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:33 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Stat the LUKS device, if encrypted] ************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:3 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Collect LUKS info for this volume] *************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:10 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the presence/absence of the LUKS device node] ********************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:16 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify that the raw device is the same as the device if not encrypted] *** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:25 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about the LUKS volume if encrypted] **************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the LUKS volume's device type if encrypted] *********************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS version] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:42 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS key size] ***************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS cipher] ******************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:54 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:60 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": [], "_storage_test_expected_crypttab_entries": "0", "_storage_test_expected_crypttab_key_file": "-"}, "changed": false} TASK [Check for /etc/crypttab entry] ******************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:65 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Validate the format of the crypttab entry] ******************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:70 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check backing device of crypttab entry] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:76 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check key file of crypttab entry] **************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:82 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:88 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null, "_storage_test_expected_crypttab_entries": null, "_storage_test_expected_crypttab_key_file": null}, "changed": false} TASK [get information about RAID] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:7 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:13 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:17 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID active devices count] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:25 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID spare devices count] ****************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID metadata version] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [parse the actual size of the volume] ************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:3 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [parse the requested size of the volume] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:9 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:15 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_actual_size": { "changed": false, "skip_reason": "Conditional result was False", "skipped": true } } TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_requested_size": { "changed": false, "skip_reason": "Conditional result was False", "skipped": true } } TASK [assert] ****************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Clean up facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:16 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:56 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_blkinfo": null, "storage_test_crypttab": null, "storage_test_fstab": null, "storage_test_volume": null}, "changed": false} TASK [Repeat the previous invocation to verify idempotence] ******************** task path: /tmp/tmp7ksfxpzz/tests/tests_filesystem_one_disk.yml:27 TASK [linux-system-roles.storage : Set version specific variables] ************* task path: /tmp/tmp7ksfxpzz/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-crypto", "libblockdev-dm", "libblockdev-lvm", "libblockdev-mdraid", "libblockdev-swap"]}, "ansible_included_var_files": ["/tmp/tmp7ksfxpzz/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.storage : define an empty list of pools to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : define an empty list of volumes to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : include the appropriate provider tasks] ***** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:22 included: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [linux-system-roles.storage : get a list of rpm packages installed on host machine] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : make sure blivet is available] ************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: python3-blivet", "Installed: libblockdev-crypto", "Installed: libblockdev-dm", "Installed: libblockdev-lvm", "Installed: libblockdev-mdraid", "Installed: libblockdev-swap"]} TASK [linux-system-roles.storage : initialize internal facts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools": [], "_storage_vol_defaults": [], "_storage_vol_pools": [], "_storage_vols_no_defaults": [], "_storage_vols_no_defaults_by_pool": {}, "_storage_vols_w_defaults": [], "_storage_volumes": []}, "changed": false} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [1/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:28 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [2/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:36 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [3/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:44 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [4/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:52 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [5/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:61 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [6/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:72 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'disks': [u'vda'], u'type': u'disk', u'mount_point': u'/opt/test1', u'name': u'test1'}) => {"ansible_facts": {"_storage_volumes": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "disk"}]}, "ansible_loop_var": "volume", "changed": false, "volume": {"disks": ["vda"], "mount_point": "/opt/test1", "name": "test1", "type": "disk"}} TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools": [] } TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "disk" } ] } TASK [linux-system-roles.storage : get required packages] ********************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": ["xfsprogs"], "pools": [], "volumes": []} TASK [linux-system-roles.storage : make sure required packages are installed] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: xfsprogs"]} TASK [linux-system-roles.storage : manage the pools and volumes to match the specified state] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:104 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": ["/dev/sda1", "/dev/sr0", "/dev/vda", "/dev/vdb", "/dev/vdc"], "mounts": [{"dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "UUID=f6300374-b815-40cb-9e7e-9c49f5d78e3c", "state": "mounted"}], "packages": ["e2fsprogs", "xfsprogs"], "pools": [], "volumes": [{"_device": "/dev/vda", "_kernel_device": "/dev/vda", "_mount_id": "UUID=f6300374-b815-40cb-9e7e-9c49f5d78e3c", "_raw_device": "/dev/vda", "_raw_kernel_device": "/dev/vda", "disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "disk"}]} TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:114 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "blivet_output": { "actions": [], "changed": false, "crypts": [], "failed": false, "leaves": [ "/dev/sda1", "/dev/sr0", "/dev/vda", "/dev/vdb", "/dev/vdc" ], "mounts": [ { "dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "UUID=f6300374-b815-40cb-9e7e-9c49f5d78e3c", "state": "mounted" } ], "packages": [ "e2fsprogs", "xfsprogs" ], "pools": [], "volumes": [ { "_device": "/dev/vda", "_kernel_device": "/dev/vda", "_mount_id": "UUID=f6300374-b815-40cb-9e7e-9c49f5d78e3c", "_raw_device": "/dev/vda", "_raw_kernel_device": "/dev/vda", "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "disk" } ] } } TASK [linux-system-roles.storage : set the list of pools for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:117 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : set the list of volumes for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:121 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": [{"_device": "/dev/vda", "_kernel_device": "/dev/vda", "_mount_id": "UUID=f6300374-b815-40cb-9e7e-9c49f5d78e3c", "_raw_device": "/dev/vda", "_raw_kernel_device": "/dev/vda", "disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "disk"}]}, "changed": false} TASK [linux-system-roles.storage : remove obsolete mounts] ********************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:137 TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:148 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [linux-system-roles.storage : set up new/current mounts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:153 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'src': u'UUID=f6300374-b815-40cb-9e7e-9c49f5d78e3c', u'state': u'mounted', u'dump': 0, u'path': u'/opt/test1', u'passno': 0, u'opts': u'defaults', u'fstype': u'xfs'}) => {"ansible_loop_var": "mount_info", "changed": false, "dump": "0", "fstab": "/etc/fstab", "fstype": "xfs", "mount_info": {"dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "UUID=f6300374-b815-40cb-9e7e-9c49f5d78e3c", "state": "mounted"}, "name": "/opt/test1", "opts": "defaults", "passno": "0", "src": "UUID=f6300374-b815-40cb-9e7e-9c49f5d78e3c"} TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:164 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [linux-system-roles.storage : Manage /etc/crypttab to account for changes we just made] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:172 TASK [linux-system-roles.storage : Update facts] ******************************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:187 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_filesystem_one_disk.yml:37 included: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Print out pool information] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:1 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {} TASK [Print out volume information] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:6 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes_list": [ { "_device": "/dev/vda", "_kernel_device": "/dev/vda", "_mount_id": "UUID=f6300374-b815-40cb-9e7e-9c49f5d78e3c", "_raw_device": "/dev/vda", "_raw_kernel_device": "/dev/vda", "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "disk" } ] } TASK [Collect info about the volumes.] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "info": {"/dev/sda": {"fstype": "", "label": "", "name": "/dev/sda", "size": "4G", "type": "disk", "uuid": ""}, "/dev/sda1": {"fstype": "ext4", "label": "", "name": "/dev/sda1", "size": "4G", "type": "partition", "uuid": "03e702b4-e165-4a39-88c9-9e210cd00434"}, "/dev/sr0": {"fstype": "iso9660", "label": "cidata", "name": "/dev/sr0", "size": "364K", "type": "rom", "uuid": "2020-10-31-12-26-54-00"}, "/dev/vda": {"fstype": "xfs", "label": "", "name": "/dev/vda", "size": "10G", "type": "disk", "uuid": "f6300374-b815-40cb-9e7e-9c49f5d78e3c"}, "/dev/vdb": {"fstype": "", "label": "", "name": "/dev/vdb", "size": "10G", "type": "disk", "uuid": ""}, "/dev/vdc": {"fstype": "", "label": "", "name": "/dev/vdc", "size": "10G", "type": "disk", "uuid": ""}}} TASK [Read the /etc/fstab file for volume existence] *************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:19 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/fstab"], "delta": "0:00:00.003602", "end": "2020-10-31 12:28:44.727933", "rc": 0, "start": "2020-10-31 12:28:44.724331", "stderr": "", "stderr_lines": [], "stdout": "\n#\n# /etc/fstab\n# Created by anaconda on Sat Oct 31 08:17:58 2020\n#\n# Accessible filesystems, by reference, are maintained under '/dev/disk/'.\n# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.\n#\n# After editing this file, run 'systemctl daemon-reload' to update systemd\n# units generated from this file.\n#\nUUID=03e702b4-e165-4a39-88c9-9e210cd00434 / ext4 defaults 1 1\nUUID=f6300374-b815-40cb-9e7e-9c49f5d78e3c /opt/test1 xfs defaults 0 0", "stdout_lines": ["", "#", "# /etc/fstab", "# Created by anaconda on Sat Oct 31 08:17:58 2020", "#", "# Accessible filesystems, by reference, are maintained under '/dev/disk/'.", "# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.", "#", "# After editing this file, run 'systemctl daemon-reload' to update systemd", "# units generated from this file.", "#", "UUID=03e702b4-e165-4a39-88c9-9e210cd00434 / ext4 defaults 1 1", "UUID=f6300374-b815-40cb-9e7e-9c49f5d78e3c /opt/test1 xfs defaults 0 0"]} TASK [Read the /etc/crypttab file] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/crypttab"], "delta": "0:00:00.002500", "end": "2020-10-31 12:28:45.068438", "rc": 0, "start": "2020-10-31 12:28:45.065938", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Verify the volumes listed in storage_pools were correctly managed] ******* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:32 TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:39 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_pool": null}, "changed": false} TASK [Verify the volumes with no pool were correctly managed] ****************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:46 [WARNING]: The loop variable 'storage_test_volume' is already in use. You should set the `loop_var` value in the `loop_control` option for the task to something else to avoid variable collisions and unexpected behavior. included: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": true, "_storage_volume_tests": ["mount", "fstab", "fs", "device", "encryption", "md", "size"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:10 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Get expected mount device based on device type] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/vda"}, "changed": false} TASK [Set some facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [{"block_available": 2592358, "block_size": 4096, "block_total": 2618880, "block_used": 26522, "device": "/dev/vda", "fstype": "xfs", "inode_available": 5242877, "inode_total": 5242880, "inode_used": 3, "mount": "/opt/test1", "options": "rw,seclabel,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota", "size_available": 10618298368, "size_total": 10726932480, "uuid": "f6300374-b815-40cb-9e7e-9c49f5d78e3c"}], "storage_test_mount_expected_match_count": "1", "storage_test_mount_point_matches": [{"block_available": 2592358, "block_size": 4096, "block_total": 2618880, "block_used": 26522, "device": "/dev/vda", "fstype": "xfs", "inode_available": 5242877, "inode_total": 5242880, "inode_used": 3, "mount": "/opt/test1", "options": "rw,seclabel,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota", "size_available": 10618298368, "size_total": 10726932480, "uuid": "f6300374-b815-40cb-9e7e-9c49f5d78e3c"}], "storage_test_swap_expected_matches": "0"}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:22 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:31 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:39 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [command] ***************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Gather swap info] ******************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:52 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify swap status] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:57 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Unset facts] ************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:67 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null, "storage_test_swap_expected_matches": null, "storage_test_swaps": null, "storage_test_sys_node": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": "1", "storage_test_fstab_expected_mount_point_matches": "1", "storage_test_fstab_id_matches": ["UUID=f6300374-b815-40cb-9e7e-9c49f5d78e3c "], "storage_test_fstab_mount_point_matches": [" /opt/test1 "]}, "changed": false} TASK [Verify that the device identifier appears in /etc/fstab] ***************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:17 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": null, "storage_test_fstab_expected_mount_point_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [Verify fs type] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify fs label] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [See whether the device node is present] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "stat": {"atime": 1604147302.9190977, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "ctime": 1604147302.9190977, "dev": 5, "device_type": 64512, "executable": false, "exists": true, "gid": 6, "gr_name": "disk", "inode": 1697, "isblk": true, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mimetype": "inode/blockdevice", "mode": "0660", "mtime": 1604147302.9190977, "nlink": 1, "path": "/dev/vda", "pw_name": "root", "readable": true, "rgrp": true, "roth": false, "rusr": true, "size": 0, "uid": 0, "version": null, "wgrp": true, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}} TASK [Verify the presence/absence of the device node] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "disk"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:28 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:33 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Stat the LUKS device, if encrypted] ************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:3 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Collect LUKS info for this volume] *************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:10 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the presence/absence of the LUKS device node] ********************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:16 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify that the raw device is the same as the device if not encrypted] *** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:25 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about the LUKS volume if encrypted] **************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the LUKS volume's device type if encrypted] *********************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS version] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:42 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS key size] ***************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS cipher] ******************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:54 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:60 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": [], "_storage_test_expected_crypttab_entries": "0", "_storage_test_expected_crypttab_key_file": "-"}, "changed": false} TASK [Check for /etc/crypttab entry] ******************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:65 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Validate the format of the crypttab entry] ******************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:70 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check backing device of crypttab entry] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:76 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check key file of crypttab entry] **************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:82 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:88 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null, "_storage_test_expected_crypttab_entries": null, "_storage_test_expected_crypttab_key_file": null}, "changed": false} TASK [get information about RAID] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:7 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:13 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:17 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID active devices count] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:25 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID spare devices count] ****************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID metadata version] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [parse the actual size of the volume] ************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:3 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [parse the requested size of the volume] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:9 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:15 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_actual_size": { "changed": false, "skip_reason": "Conditional result was False", "skipped": true } } TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_requested_size": { "changed": false, "skip_reason": "Conditional result was False", "skipped": true } } TASK [assert] ****************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Clean up facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:16 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:56 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_blkinfo": null, "storage_test_crypttab": null, "storage_test_fstab": null, "storage_test_volume": null}, "changed": false} TASK [Clean up] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_filesystem_one_disk.yml:39 TASK [linux-system-roles.storage : Set version specific variables] ************* task path: /tmp/tmp7ksfxpzz/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-crypto", "libblockdev-dm", "libblockdev-lvm", "libblockdev-mdraid", "libblockdev-swap"]}, "ansible_included_var_files": ["/tmp/tmp7ksfxpzz/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.storage : define an empty list of pools to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : define an empty list of volumes to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : include the appropriate provider tasks] ***** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:22 included: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [linux-system-roles.storage : get a list of rpm packages installed on host machine] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : make sure blivet is available] ************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: python3-blivet", "Installed: libblockdev-crypto", "Installed: libblockdev-dm", "Installed: libblockdev-lvm", "Installed: libblockdev-mdraid", "Installed: libblockdev-swap"]} TASK [linux-system-roles.storage : initialize internal facts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools": [], "_storage_vol_defaults": [], "_storage_vol_pools": [], "_storage_vols_no_defaults": [], "_storage_vols_no_defaults_by_pool": {}, "_storage_vols_w_defaults": [], "_storage_volumes": []}, "changed": false} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [1/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:28 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [2/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:36 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [3/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:44 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [4/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:52 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [5/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:61 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [6/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:72 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'state': u'absent', u'disks': [u'vda'], u'type': u'disk', u'mount_point': u'/opt/test1', u'name': u'test1'}) => {"ansible_facts": {"_storage_volumes": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "absent", "type": "disk"}]}, "ansible_loop_var": "volume", "changed": false, "volume": {"disks": ["vda"], "mount_point": "/opt/test1", "name": "test1", "state": "absent", "type": "disk"}} TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools": [] } TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "absent", "type": "disk" } ] } TASK [linux-system-roles.storage : get required packages] ********************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": []} TASK [linux-system-roles.storage : make sure required packages are installed] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [linux-system-roles.storage : manage the pools and volumes to match the specified state] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:104 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [{"action": "destroy format", "device": "/dev/vda", "fs_type": "xfs"}], "changed": true, "crypts": [], "leaves": ["/dev/sda1", "/dev/sr0", "/dev/vda", "/dev/vdb", "/dev/vdc"], "mounts": [{"fstype": "xfs", "path": "/opt/test1", "src": "UUID=f6300374-b815-40cb-9e7e-9c49f5d78e3c", "state": "absent"}], "packages": ["e2fsprogs"], "pools": [], "volumes": [{"_device": "/dev/vda", "_mount_id": "UUID=f6300374-b815-40cb-9e7e-9c49f5d78e3c", "_raw_device": "/dev/vda", "disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "absent", "type": "disk"}]} TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:114 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "blivet_output": { "actions": [ { "action": "destroy format", "device": "/dev/vda", "fs_type": "xfs" } ], "changed": true, "crypts": [], "failed": false, "leaves": [ "/dev/sda1", "/dev/sr0", "/dev/vda", "/dev/vdb", "/dev/vdc" ], "mounts": [ { "fstype": "xfs", "path": "/opt/test1", "src": "UUID=f6300374-b815-40cb-9e7e-9c49f5d78e3c", "state": "absent" } ], "packages": [ "e2fsprogs" ], "pools": [], "volumes": [ { "_device": "/dev/vda", "_mount_id": "UUID=f6300374-b815-40cb-9e7e-9c49f5d78e3c", "_raw_device": "/dev/vda", "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "absent", "type": "disk" } ] } } TASK [linux-system-roles.storage : set the list of pools for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:117 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : set the list of volumes for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:121 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": [{"_device": "/dev/vda", "_mount_id": "UUID=f6300374-b815-40cb-9e7e-9c49f5d78e3c", "_raw_device": "/dev/vda", "disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "absent", "type": "disk"}]}, "changed": false} TASK [linux-system-roles.storage : remove obsolete mounts] ********************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:137 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'src': u'UUID=f6300374-b815-40cb-9e7e-9c49f5d78e3c', u'state': u'absent', u'fstype': u'xfs', u'path': u'/opt/test1'}) => {"ansible_loop_var": "mount_info", "changed": true, "dump": "0", "fstab": "/etc/fstab", "fstype": "xfs", "mount_info": {"fstype": "xfs", "path": "/opt/test1", "src": "UUID=f6300374-b815-40cb-9e7e-9c49f5d78e3c", "state": "absent"}, "name": "/opt/test1", "opts": "defaults", "passno": "0", "src": "UUID=f6300374-b815-40cb-9e7e-9c49f5d78e3c"} TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:148 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [linux-system-roles.storage : set up new/current mounts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:153 TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:164 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [linux-system-roles.storage : Manage /etc/crypttab to account for changes we just made] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:172 TASK [linux-system-roles.storage : Update facts] ******************************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:187 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_filesystem_one_disk.yml:50 included: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Print out pool information] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:1 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {} TASK [Print out volume information] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:6 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes_list": [ { "_device": "/dev/vda", "_mount_id": "UUID=f6300374-b815-40cb-9e7e-9c49f5d78e3c", "_raw_device": "/dev/vda", "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "absent", "type": "disk" } ] } TASK [Collect info about the volumes.] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "info": {"/dev/sda": {"fstype": "", "label": "", "name": "/dev/sda", "size": "4G", "type": "disk", "uuid": ""}, "/dev/sda1": {"fstype": "ext4", "label": "", "name": "/dev/sda1", "size": "4G", "type": "partition", "uuid": "03e702b4-e165-4a39-88c9-9e210cd00434"}, "/dev/sr0": {"fstype": "iso9660", "label": "cidata", "name": "/dev/sr0", "size": "364K", "type": "rom", "uuid": "2020-10-31-12-26-54-00"}, "/dev/vda": {"fstype": "", "label": "", "name": "/dev/vda", "size": "10G", "type": "disk", "uuid": ""}, "/dev/vdb": {"fstype": "", "label": "", "name": "/dev/vdb", "size": "10G", "type": "disk", "uuid": ""}, "/dev/vdc": {"fstype": "", "label": "", "name": "/dev/vdc", "size": "10G", "type": "disk", "uuid": ""}}} TASK [Read the /etc/fstab file for volume existence] *************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:19 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/fstab"], "delta": "0:00:00.002711", "end": "2020-10-31 12:29:02.225698", "rc": 0, "start": "2020-10-31 12:29:02.222987", "stderr": "", "stderr_lines": [], "stdout": "\n#\n# /etc/fstab\n# Created by anaconda on Sat Oct 31 08:17:58 2020\n#\n# Accessible filesystems, by reference, are maintained under '/dev/disk/'.\n# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.\n#\n# After editing this file, run 'systemctl daemon-reload' to update systemd\n# units generated from this file.\n#\nUUID=03e702b4-e165-4a39-88c9-9e210cd00434 / ext4 defaults 1 1", "stdout_lines": ["", "#", "# /etc/fstab", "# Created by anaconda on Sat Oct 31 08:17:58 2020", "#", "# Accessible filesystems, by reference, are maintained under '/dev/disk/'.", "# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.", "#", "# After editing this file, run 'systemctl daemon-reload' to update systemd", "# units generated from this file.", "#", "UUID=03e702b4-e165-4a39-88c9-9e210cd00434 / ext4 defaults 1 1"]} TASK [Read the /etc/crypttab file] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/crypttab"], "delta": "0:00:00.002616", "end": "2020-10-31 12:29:02.560937", "rc": 0, "start": "2020-10-31 12:29:02.558321", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Verify the volumes listed in storage_pools were correctly managed] ******* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:32 TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:39 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_pool": null}, "changed": false} TASK [Verify the volumes with no pool were correctly managed] ****************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:46 [WARNING]: The loop variable 'storage_test_volume' is already in use. You should set the `loop_var` value in the `loop_control` option for the task to something else to avoid variable collisions and unexpected behavior. included: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": false, "_storage_volume_tests": ["mount", "fstab", "fs", "device", "encryption", "md", "size"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:10 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Get expected mount device based on device type] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/vda"}, "changed": false} TASK [Set some facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [], "storage_test_mount_expected_match_count": "0", "storage_test_mount_point_matches": [], "storage_test_swap_expected_matches": "0"}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:22 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:31 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:39 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [command] ***************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Gather swap info] ******************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:52 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify swap status] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:57 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Unset facts] ************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:67 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null, "storage_test_swap_expected_matches": null, "storage_test_swaps": null, "storage_test_sys_node": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": "0", "storage_test_fstab_expected_mount_point_matches": "0", "storage_test_fstab_id_matches": [], "storage_test_fstab_mount_point_matches": []}, "changed": false} TASK [Verify that the device identifier appears in /etc/fstab] ***************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:10 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:17 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": null, "storage_test_fstab_expected_mount_point_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [Verify fs type] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:4 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify fs label] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:10 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [See whether the device node is present] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "stat": {"atime": 1604147338.8530977, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "ctime": 1604147338.8530977, "dev": 5, "device_type": 64512, "executable": false, "exists": true, "gid": 6, "gr_name": "disk", "inode": 1697, "isblk": true, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mimetype": "inode/blockdevice", "mode": "0660", "mtime": 1604147338.8530977, "nlink": 1, "path": "/dev/vda", "pw_name": "root", "readable": true, "rgrp": true, "roth": false, "rusr": true, "size": 0, "uid": 0, "version": null, "wgrp": true, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}} TASK [Verify the presence/absence of the device node] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:18 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "disk"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:28 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:33 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Stat the LUKS device, if encrypted] ************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:3 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Collect LUKS info for this volume] *************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:10 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the presence/absence of the LUKS device node] ********************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:16 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify that the raw device is the same as the device if not encrypted] *** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:25 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Make sure we got info about the LUKS volume if encrypted] **************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the LUKS volume's device type if encrypted] *********************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS version] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:42 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS key size] ***************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS cipher] ******************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:54 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:60 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": [], "_storage_test_expected_crypttab_entries": "0", "_storage_test_expected_crypttab_key_file": "-"}, "changed": false} TASK [Check for /etc/crypttab entry] ******************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:65 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Validate the format of the crypttab entry] ******************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:70 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check backing device of crypttab entry] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:76 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check key file of crypttab entry] **************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:82 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:88 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null, "_storage_test_expected_crypttab_entries": null, "_storage_test_expected_crypttab_key_file": null}, "changed": false} TASK [get information about RAID] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:7 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:13 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:17 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID active devices count] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:25 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID spare devices count] ****************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID metadata version] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [parse the actual size of the volume] ************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:3 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [parse the requested size of the volume] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:9 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:15 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_actual_size": { "changed": false, "skip_reason": "Conditional result was False", "skipped": true } } TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_requested_size": { "changed": false, "skip_reason": "Conditional result was False", "skipped": true } } TASK [assert] ****************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Clean up facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:16 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:56 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_blkinfo": null, "storage_test_crypttab": null, "storage_test_fstab": null, "storage_test_volume": null}, "changed": false} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 : ok=190 changed=5 unreachable=0 failed=0 skipped=127 rescued=0 ignored=0 + cd /tmp/tmp7ksfxpzz/tests; TEST_SUBJECTS=/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_storage-178-e856157-fedora-31-87qzp9iq/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmp7ksfxpzz/_setup.yml /tmp/tmp7ksfxpzz/tests/tests_include_vars_from_parent.yml ansible-playbook 2.8.16 config file = /etc/ansible/ansible.cfg configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python2.7/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 2.7.5 (default, Apr 2 2020, 13:16:51) [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)] Using /etc/ansible/ansible.cfg as config file PLAYBOOK: _setup.yml *********************************************************** 1 plays in /tmp/tmp7ksfxpzz/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/_setup.yml:5 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "groups": { "all": [ "/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2" ], "localhost": [ "/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2" ], "subjects": [ "/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmp7ksfxpzz/_setup.yml:6 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 : ok=1 changed=0 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 PLAYBOOK: tests_include_vars_from_parent.yml *********************************** 1 plays in /tmp/tmp7ksfxpzz/tests/tests_include_vars_from_parent.yml PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/tests_include_vars_from_parent.yml:1 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] META: ran handlers TASK [create var file in caller that can override the one in called role] ****** task path: /tmp/tmp7ksfxpzz/tests/tests_include_vars_from_parent.yml:3 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 -> localhost] => (item=Fedora-31) => {"ansible_loop_var": "item", "changed": true, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "dest": "/tmp/tmp7ksfxpzz/tests/roles/caller/vars/Fedora-31.yml", "gid": 0, "group": "root", "item": "Fedora-31", "md5sum": "5a57da448a1d752b982858b38aab344d", "mode": "0644", "owner": "root", "size": 23, "src": "/root/.ansible/tmp/ansible-tmp-1604147368.62-248983-224886167269939/source", "state": "file", "uid": 0} changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 -> localhost] => (item=Fedora_31) => {"ansible_loop_var": "item", "changed": true, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "dest": "/tmp/tmp7ksfxpzz/tests/roles/caller/vars/Fedora_31.yml", "gid": 0, "group": "root", "item": "Fedora_31", "md5sum": "5a57da448a1d752b982858b38aab344d", "mode": "0644", "owner": "root", "size": 23, "src": "/root/.ansible/tmp/ansible-tmp-1604147369.13-248983-40020251416691/source", "state": "file", "uid": 0} changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 -> localhost] => (item=Fedora) => {"ansible_loop_var": "item", "changed": true, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "dest": "/tmp/tmp7ksfxpzz/tests/roles/caller/vars/Fedora.yml", "gid": 0, "group": "root", "item": "Fedora", "md5sum": "5a57da448a1d752b982858b38aab344d", "mode": "0644", "owner": "root", "size": 23, "src": "/root/.ansible/tmp/ansible-tmp-1604147369.37-248983-25300485318051/source", "state": "file", "uid": 0} changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 -> localhost] => (item=RedHat) => {"ansible_loop_var": "item", "changed": true, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "dest": "/tmp/tmp7ksfxpzz/tests/roles/caller/vars/RedHat.yml", "gid": 0, "group": "root", "item": "RedHat", "md5sum": "5a57da448a1d752b982858b38aab344d", "mode": "0644", "owner": "root", "size": 23, "src": "/root/.ansible/tmp/ansible-tmp-1604147369.6-248983-166623488974008/source", "state": "file", "uid": 0} TASK [include_role : {{ roletoinclude }}] ************************************** task path: /tmp/tmp7ksfxpzz/tests/roles/caller/tasks/main.yml:4 TASK [linux-system-roles.storage : Set version specific variables] ************* task path: /tmp/tmp7ksfxpzz/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-crypto", "libblockdev-dm", "libblockdev-lvm", "libblockdev-mdraid", "libblockdev-swap"]}, "ansible_included_var_files": ["/tmp/tmp7ksfxpzz/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.storage : define an empty list of pools to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : define an empty list of volumes to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : include the appropriate provider tasks] ***** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:22 included: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [linux-system-roles.storage : get a list of rpm packages installed on host machine] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : make sure blivet is available] ************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:7 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: python3-blivet", "Installed: libblockdev-crypto", "Installed: libblockdev-dm", "Installed: libblockdev-lvm", "Installed: libblockdev-mdraid", "Installed: libblockdev-swap", "Installed: libblockdev-2.24-2.fc31.x86_64", "Installed: libblockdev-btrfs-2.24-2.fc31.x86_64", "Installed: btrfs-progs-5.7-4.fc31.x86_64", "Installed: libblockdev-crypto-2.24-2.fc31.x86_64", "Installed: ndctl-70.1-1.fc31.x86_64", "Installed: gdisk-1.0.5-1.fc31.x86_64", "Installed: ndctl-libs-70.1-1.fc31.x86_64", "Installed: libblockdev-dm-2.24-2.fc31.x86_64", "Installed: compat-readline5-5.2-34.fc31.x86_64", "Installed: dmraid-1.0.0.rc16-43.fc31.x86_64", "Installed: dmraid-events-1.0.0.rc16-43.fc31.x86_64", "Installed: libblockdev-fs-2.24-2.fc31.x86_64", "Installed: mdadm-4.1-5.fc31.x86_64", "Installed: lzo-2.08-16.fc31.x86_64", "Installed: libblockdev-kbd-2.24-2.fc31.x86_64", "Installed: nspr-4.29.0-1.fc31.x86_64", "Installed: libblockdev-loop-2.24-2.fc31.x86_64", "Installed: nss-3.57.0-1.fc31.x86_64", "Installed: libblockdev-lvm-2.24-2.fc31.x86_64", "Installed: lsof-4.93.2-2.fc31.x86_64", "Installed: lvm2-2.03.09-1.fc31.x86_64", "Installed: nss-softokn-3.57.0-1.fc31.x86_64", "Installed: libblockdev-mdraid-2.24-2.fc31.x86_64", "Installed: nss-softokn-freebl-3.57.0-1.fc31.x86_64", "Installed: lvm2-libs-2.03.09-1.fc31.x86_64", "Installed: python3-gobject-base-3.34.0-3.fc31.x86_64", "Installed: libblockdev-mpath-2.24-2.fc31.x86_64", "Installed: nss-sysinit-3.57.0-1.fc31.x86_64", "Installed: device-mapper-event-1.02.171-1.fc31.x86_64", "Installed: nss-util-3.57.0-1.fc31.x86_64", "Installed: libblockdev-nvdimm-2.24-2.fc31.x86_64", "Installed: gobject-introspection-1.62.0-1.fc31.x86_64", "Installed: device-mapper-event-libs-1.02.171-1.fc31.x86_64", "Installed: userspace-rcu-0.11.1-2.fc31.x86_64", "Installed: libblockdev-part-2.24-2.fc31.x86_64", "Installed: volume_key-libs-0.3.12-4.fc31.x86_64", "Installed: libblockdev-swap-2.24-2.fc31.x86_64", "Installed: libblockdev-utils-2.24-2.fc31.x86_64", "Installed: blivet-data-1:3.1.7-2.fc31.noarch", "Installed: device-mapper-multipath-0.8.0-3.fc31.x86_64", "Installed: device-mapper-multipath-libs-0.8.0-3.fc31.x86_64", "Installed: device-mapper-persistent-data-0.8.5-2.fc31.x86_64", "Installed: sgpio-1.2.0.10-24.fc31.x86_64", "Installed: bcache-tools-1.0.8-16.fc31.x86_64", "Installed: python3-blivet-1:3.1.7-2.fc31.noarch", "Installed: daxctl-libs-70.1-1.fc31.x86_64", "Installed: python3-blockdev-2.24-2.fc31.x86_64", "Installed: python3-pyudev-0.21.0-11.fc31.noarch", "Installed: python3-pyparted-1:3.11.2-2.fc31.x86_64", "Installed: libbytesize-2.3-1.fc31.x86_64", "Installed: libaio-0.3.111-6.fc31.x86_64", "Installed: python3-bytesize-2.3-1.fc31.x86_64"]} TASK [linux-system-roles.storage : initialize internal facts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools": [], "_storage_vol_defaults": [], "_storage_vol_pools": [], "_storage_vols_no_defaults": [], "_storage_vols_no_defaults_by_pool": {}, "_storage_vols_w_defaults": [], "_storage_volumes": []}, "changed": false} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [1/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:28 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [2/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:36 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [3/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:44 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [4/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:52 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [5/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:61 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [6/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:72 TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools": [] } TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes": [] } TASK [linux-system-roles.storage : get required packages] ********************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": []} TASK [linux-system-roles.storage : make sure required packages are installed] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [linux-system-roles.storage : manage the pools and volumes to match the specified state] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:104 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": []} TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:114 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "blivet_output": { "actions": [], "changed": false, "crypts": [], "failed": false, "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": [] } } TASK [linux-system-roles.storage : set the list of pools for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:117 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : set the list of volumes for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:121 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : remove obsolete mounts] ********************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:137 TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:148 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : set up new/current mounts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:153 TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:164 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : Manage /etc/crypttab to account for changes we just made] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:172 TASK [linux-system-roles.storage : Update facts] ******************************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:187 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] TASK [caller : assert] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/roles/caller/tasks/main.yml:7 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 : ok=19 changed=2 unreachable=0 failed=0 skipped=13 rescued=0 ignored=0 + cd /tmp/tmp7ksfxpzz/tests; TEST_SUBJECTS=/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_storage-178-e856157-fedora-31-87qzp9iq/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmp7ksfxpzz/_setup.yml /tmp/tmp7ksfxpzz/tests/tests_luks.yml ansible-playbook 2.8.16 config file = /etc/ansible/ansible.cfg configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python2.7/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 2.7.5 (default, Apr 2 2020, 13:16:51) [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)] Using /etc/ansible/ansible.cfg as config file PLAYBOOK: _setup.yml *********************************************************** 1 plays in /tmp/tmp7ksfxpzz/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/_setup.yml:5 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "groups": { "all": [ "/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2" ], "localhost": [ "/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2" ], "subjects": [ "/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmp7ksfxpzz/_setup.yml:6 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 : ok=1 changed=0 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 statically imported: /tmp/tmp7ksfxpzz/tests/create-test-file.yml statically imported: /tmp/tmp7ksfxpzz/tests/verify-data-preservation.yml statically imported: /tmp/tmp7ksfxpzz/tests/create-test-file.yml statically imported: /tmp/tmp7ksfxpzz/tests/verify-data-preservation.yml statically imported: /tmp/tmp7ksfxpzz/tests/create-test-file.yml statically imported: /tmp/tmp7ksfxpzz/tests/verify-data-preservation.yml statically imported: /tmp/tmp7ksfxpzz/tests/create-test-file.yml statically imported: /tmp/tmp7ksfxpzz/tests/verify-data-preservation.yml statically imported: /tmp/tmp7ksfxpzz/tests/create-test-file.yml statically imported: /tmp/tmp7ksfxpzz/tests/verify-data-preservation.yml statically imported: /tmp/tmp7ksfxpzz/tests/create-test-file.yml statically imported: /tmp/tmp7ksfxpzz/tests/verify-data-preservation.yml PLAYBOOK: tests_luks.yml ******************************************************* 1 plays in /tmp/tmp7ksfxpzz/tests/tests_luks.yml PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/tests_luks.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] META: ran handlers TASK [include_role : linux-system-roles.storage] ******************************* task path: /tmp/tmp7ksfxpzz/tests/tests_luks.yml:10 TASK [linux-system-roles.storage : Set version specific variables] ************* task path: /tmp/tmp7ksfxpzz/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-crypto", "libblockdev-dm", "libblockdev-lvm", "libblockdev-mdraid", "libblockdev-swap"]}, "ansible_included_var_files": ["/tmp/tmp7ksfxpzz/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.storage : define an empty list of pools to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : define an empty list of volumes to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : include the appropriate provider tasks] ***** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:22 included: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [linux-system-roles.storage : get a list of rpm packages installed on host machine] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : make sure blivet is available] ************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:7 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: python3-blivet", "Installed: libblockdev-crypto", "Installed: libblockdev-dm", "Installed: libblockdev-lvm", "Installed: libblockdev-mdraid", "Installed: libblockdev-swap", "Installed: libblockdev-2.24-2.fc31.x86_64", "Installed: libblockdev-btrfs-2.24-2.fc31.x86_64", "Installed: btrfs-progs-5.7-4.fc31.x86_64", "Installed: libblockdev-crypto-2.24-2.fc31.x86_64", "Installed: ndctl-70.1-1.fc31.x86_64", "Installed: gdisk-1.0.5-1.fc31.x86_64", "Installed: ndctl-libs-70.1-1.fc31.x86_64", "Installed: libblockdev-dm-2.24-2.fc31.x86_64", "Installed: compat-readline5-5.2-34.fc31.x86_64", "Installed: dmraid-1.0.0.rc16-43.fc31.x86_64", "Installed: dmraid-events-1.0.0.rc16-43.fc31.x86_64", "Installed: libblockdev-fs-2.24-2.fc31.x86_64", "Installed: mdadm-4.1-5.fc31.x86_64", "Installed: lzo-2.08-16.fc31.x86_64", "Installed: libblockdev-kbd-2.24-2.fc31.x86_64", "Installed: nspr-4.29.0-1.fc31.x86_64", "Installed: libblockdev-loop-2.24-2.fc31.x86_64", "Installed: nss-3.57.0-1.fc31.x86_64", "Installed: libblockdev-lvm-2.24-2.fc31.x86_64", "Installed: lsof-4.93.2-2.fc31.x86_64", "Installed: lvm2-2.03.09-1.fc31.x86_64", "Installed: nss-softokn-3.57.0-1.fc31.x86_64", "Installed: libblockdev-mdraid-2.24-2.fc31.x86_64", "Installed: nss-softokn-freebl-3.57.0-1.fc31.x86_64", "Installed: lvm2-libs-2.03.09-1.fc31.x86_64", "Installed: python3-gobject-base-3.34.0-3.fc31.x86_64", "Installed: libblockdev-mpath-2.24-2.fc31.x86_64", "Installed: nss-sysinit-3.57.0-1.fc31.x86_64", "Installed: device-mapper-event-1.02.171-1.fc31.x86_64", "Installed: nss-util-3.57.0-1.fc31.x86_64", "Installed: libblockdev-nvdimm-2.24-2.fc31.x86_64", "Installed: gobject-introspection-1.62.0-1.fc31.x86_64", "Installed: device-mapper-event-libs-1.02.171-1.fc31.x86_64", "Installed: userspace-rcu-0.11.1-2.fc31.x86_64", "Installed: libblockdev-part-2.24-2.fc31.x86_64", "Installed: volume_key-libs-0.3.12-4.fc31.x86_64", "Installed: libblockdev-swap-2.24-2.fc31.x86_64", "Installed: libblockdev-utils-2.24-2.fc31.x86_64", "Installed: blivet-data-1:3.1.7-2.fc31.noarch", "Installed: device-mapper-multipath-0.8.0-3.fc31.x86_64", "Installed: device-mapper-multipath-libs-0.8.0-3.fc31.x86_64", "Installed: device-mapper-persistent-data-0.8.5-2.fc31.x86_64", "Installed: sgpio-1.2.0.10-24.fc31.x86_64", "Installed: bcache-tools-1.0.8-16.fc31.x86_64", "Installed: python3-blivet-1:3.1.7-2.fc31.noarch", "Installed: daxctl-libs-70.1-1.fc31.x86_64", "Installed: python3-blockdev-2.24-2.fc31.x86_64", "Installed: python3-pyudev-0.21.0-11.fc31.noarch", "Installed: python3-pyparted-1:3.11.2-2.fc31.x86_64", "Installed: libbytesize-2.3-1.fc31.x86_64", "Installed: libaio-0.3.111-6.fc31.x86_64", "Installed: python3-bytesize-2.3-1.fc31.x86_64"]} TASK [linux-system-roles.storage : initialize internal facts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools": [], "_storage_vol_defaults": [], "_storage_vol_pools": [], "_storage_vols_no_defaults": [], "_storage_vols_no_defaults_by_pool": {}, "_storage_vols_w_defaults": [], "_storage_volumes": []}, "changed": false} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [1/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:28 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [2/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:36 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [3/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:44 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [4/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:52 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [5/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:61 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [6/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:72 TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools": [] } TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes": [] } TASK [linux-system-roles.storage : get required packages] ********************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": []} TASK [linux-system-roles.storage : make sure required packages are installed] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [linux-system-roles.storage : manage the pools and volumes to match the specified state] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:104 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": []} TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:114 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "blivet_output": { "actions": [], "changed": false, "crypts": [], "failed": false, "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": [] } } TASK [linux-system-roles.storage : set the list of pools for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:117 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : set the list of volumes for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:121 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : remove obsolete mounts] ********************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:137 TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:148 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : set up new/current mounts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:153 TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:164 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : Manage /etc/crypttab to account for changes we just made] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:172 TASK [linux-system-roles.storage : Update facts] ******************************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:187 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_luks.yml:13 included: /tmp/tmp7ksfxpzz/tests/get_unused_disk.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Find unused disks in the system] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/get_unused_disk.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "disks": ["vda"]} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/get_unused_disk.yml:8 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"unused_disks": ["vda"]}, "changed": false} TASK [Exit playbook when there's not enough unused disks in the system] ******** task path: /tmp/tmp7ksfxpzz/tests/get_unused_disk.yml:12 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Print unused disks] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/get_unused_disk.yml:17 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "unused_disks": [ "vda" ] } TASK [Create an encrypted disk volume w/ default fs] *************************** task path: /tmp/tmp7ksfxpzz/tests/tests_luks.yml:23 TASK [linux-system-roles.storage : Set version specific variables] ************* task path: /tmp/tmp7ksfxpzz/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-crypto", "libblockdev-dm", "libblockdev-lvm", "libblockdev-mdraid", "libblockdev-swap"]}, "ansible_included_var_files": ["/tmp/tmp7ksfxpzz/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.storage : define an empty list of pools to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : define an empty list of volumes to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : include the appropriate provider tasks] ***** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:22 included: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [linux-system-roles.storage : get a list of rpm packages installed on host machine] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : make sure blivet is available] ************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: python3-blivet", "Installed: libblockdev-crypto", "Installed: libblockdev-dm", "Installed: libblockdev-lvm", "Installed: libblockdev-mdraid", "Installed: libblockdev-swap"]} TASK [linux-system-roles.storage : initialize internal facts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools": [], "_storage_vol_defaults": [], "_storage_vol_pools": [], "_storage_vols_no_defaults": [], "_storage_vols_no_defaults_by_pool": {}, "_storage_vols_w_defaults": [], "_storage_volumes": []}, "changed": false} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [1/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:28 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [2/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:36 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [3/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:44 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [4/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:52 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [5/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:61 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [6/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:72 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'encryption': True, u'mount_point': u'/opt/test1', u'type': u'disk', u'disks': [u'vda'], u'name': u'foo'}) => {"ansible_facts": {"_storage_volumes": [{"disks": ["vda"], "encryption": true, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "disk"}]}, "ansible_loop_var": "volume", "changed": false, "volume": {"disks": ["vda"], "encryption": true, "mount_point": "/opt/test1", "name": "foo", "type": "disk"}} TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools": [] } TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes": [ { "disks": [ "vda" ], "encryption": true, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "disk" } ] } TASK [linux-system-roles.storage : get required packages] ********************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": ["cryptsetup", "xfsprogs"], "pools": [], "volumes": []} TASK [linux-system-roles.storage : make sure required packages are installed] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:99 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: cryptsetup", "Installed: xfsprogs", "Installed: cryptsetup-2.3.4-1.fc31.x86_64"]} TASK [linux-system-roles.storage : manage the pools and volumes to match the specified state] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:104 fatal: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2]: FAILED! => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "msg": "encrypted volume 'foo' missing key/password", "packages": [], "pools": [], "volumes": []} TASK [Check that we failed in the role] **************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_luks.yml:39 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the output of the keyless luks test] ****************************** task path: /tmp/tmp7ksfxpzz/tests/tests_luks.yml:45 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Create an encrypted disk volume w/ default fs] *************************** task path: /tmp/tmp7ksfxpzz/tests/tests_luks.yml:53 TASK [linux-system-roles.storage : Set version specific variables] ************* task path: /tmp/tmp7ksfxpzz/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-crypto", "libblockdev-dm", "libblockdev-lvm", "libblockdev-mdraid", "libblockdev-swap"]}, "ansible_included_var_files": ["/tmp/tmp7ksfxpzz/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.storage : define an empty list of pools to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : define an empty list of volumes to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : include the appropriate provider tasks] ***** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:22 included: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [linux-system-roles.storage : get a list of rpm packages installed on host machine] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : make sure blivet is available] ************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: python3-blivet", "Installed: libblockdev-crypto", "Installed: libblockdev-dm", "Installed: libblockdev-lvm", "Installed: libblockdev-mdraid", "Installed: libblockdev-swap"]} TASK [linux-system-roles.storage : initialize internal facts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools": [], "_storage_vol_defaults": [], "_storage_vol_pools": [], "_storage_vols_no_defaults": [], "_storage_vols_no_defaults_by_pool": {}, "_storage_vols_w_defaults": [], "_storage_volumes": []}, "changed": false} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [1/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:28 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [2/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:36 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [3/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:44 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [4/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:52 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [5/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:61 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [6/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:72 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'mount_point': u'/opt/test1', u'name': u'foo', u'encryption_password': u'yabbadabbadoo', u'encryption': True, u'disks': [u'vda'], u'type': u'disk'}) => {"ansible_facts": {"_storage_volumes": [{"disks": ["vda"], "encryption": true, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": "yabbadabbadoo", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "disk"}]}, "ansible_loop_var": "volume", "changed": false, "volume": {"disks": ["vda"], "encryption": true, "encryption_password": "yabbadabbadoo", "mount_point": "/opt/test1", "name": "foo", "type": "disk"}} TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools": [] } TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes": [ { "disks": [ "vda" ], "encryption": true, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": "yabbadabbadoo", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "disk" } ] } TASK [linux-system-roles.storage : get required packages] ********************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": ["cryptsetup", "xfsprogs"], "pools": [], "volumes": []} TASK [linux-system-roles.storage : make sure required packages are installed] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: cryptsetup", "Installed: xfsprogs"]} TASK [linux-system-roles.storage : manage the pools and volumes to match the specified state] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:104 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [{"action": "create format", "device": "/dev/vda", "fs_type": "luks"}, {"action": "create device", "device": "/dev/mapper/luks-49871fbe-c6ba-4674-824d-64d37d78b90a", "fs_type": null}, {"action": "create format", "device": "/dev/mapper/luks-49871fbe-c6ba-4674-824d-64d37d78b90a", "fs_type": "xfs"}], "changed": true, "crypts": [{"backing_device": "/dev/vda", "name": "luks-49871fbe-c6ba-4674-824d-64d37d78b90a", "password": "-", "state": "present"}], "leaves": ["/dev/sda1", "/dev/sr0", "/dev/vdb", "/dev/vdc", "/dev/mapper/luks-49871fbe-c6ba-4674-824d-64d37d78b90a"], "mounts": [{"dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "/dev/mapper/luks-49871fbe-c6ba-4674-824d-64d37d78b90a", "state": "mounted"}], "packages": ["cryptsetup", "e2fsprogs", "xfsprogs"], "pools": [], "volumes": [{"_device": "/dev/mapper/luks-49871fbe-c6ba-4674-824d-64d37d78b90a", "_kernel_device": "/dev/dm-0", "_mount_id": "/dev/mapper/luks-49871fbe-c6ba-4674-824d-64d37d78b90a", "_raw_device": "/dev/vda", "_raw_kernel_device": "/dev/vda", "disks": ["vda"], "encryption": true, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": "yabbadabbadoo", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "disk"}]} TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:114 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "blivet_output": { "actions": [ { "action": "create format", "device": "/dev/vda", "fs_type": "luks" }, { "action": "create device", "device": "/dev/mapper/luks-49871fbe-c6ba-4674-824d-64d37d78b90a", "fs_type": null }, { "action": "create format", "device": "/dev/mapper/luks-49871fbe-c6ba-4674-824d-64d37d78b90a", "fs_type": "xfs" } ], "changed": true, "crypts": [ { "backing_device": "/dev/vda", "name": "luks-49871fbe-c6ba-4674-824d-64d37d78b90a", "password": "-", "state": "present" } ], "failed": false, "leaves": [ "/dev/sda1", "/dev/sr0", "/dev/vdb", "/dev/vdc", "/dev/mapper/luks-49871fbe-c6ba-4674-824d-64d37d78b90a" ], "mounts": [ { "dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "/dev/mapper/luks-49871fbe-c6ba-4674-824d-64d37d78b90a", "state": "mounted" } ], "packages": [ "cryptsetup", "e2fsprogs", "xfsprogs" ], "pools": [], "volumes": [ { "_device": "/dev/mapper/luks-49871fbe-c6ba-4674-824d-64d37d78b90a", "_kernel_device": "/dev/dm-0", "_mount_id": "/dev/mapper/luks-49871fbe-c6ba-4674-824d-64d37d78b90a", "_raw_device": "/dev/vda", "_raw_kernel_device": "/dev/vda", "disks": [ "vda" ], "encryption": true, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": "yabbadabbadoo", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "disk" } ] } } TASK [linux-system-roles.storage : set the list of pools for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:117 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : set the list of volumes for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:121 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": [{"_device": "/dev/mapper/luks-49871fbe-c6ba-4674-824d-64d37d78b90a", "_kernel_device": "/dev/dm-0", "_mount_id": "/dev/mapper/luks-49871fbe-c6ba-4674-824d-64d37d78b90a", "_raw_device": "/dev/vda", "_raw_kernel_device": "/dev/vda", "disks": ["vda"], "encryption": true, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": "yabbadabbadoo", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "disk"}]}, "changed": false} TASK [linux-system-roles.storage : remove obsolete mounts] ********************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:137 TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:148 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [linux-system-roles.storage : set up new/current mounts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:153 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'src': u'/dev/mapper/luks-49871fbe-c6ba-4674-824d-64d37d78b90a', u'state': u'mounted', u'dump': 0, u'path': u'/opt/test1', u'passno': 0, u'opts': u'defaults', u'fstype': u'xfs'}) => {"ansible_loop_var": "mount_info", "changed": true, "dump": "0", "fstab": "/etc/fstab", "fstype": "xfs", "mount_info": {"dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "/dev/mapper/luks-49871fbe-c6ba-4674-824d-64d37d78b90a", "state": "mounted"}, "name": "/opt/test1", "opts": "defaults", "passno": "0", "src": "/dev/mapper/luks-49871fbe-c6ba-4674-824d-64d37d78b90a"} TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:164 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [linux-system-roles.storage : Manage /etc/crypttab to account for changes we just made] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:172 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'state': u'present', u'password': u'-', u'name': u'luks-49871fbe-c6ba-4674-824d-64d37d78b90a', u'backing_device': u'/dev/vda'}) => {"ansible_loop_var": "entry", "backing_device": "/dev/vda", "changed": true, "entry": {"backing_device": "/dev/vda", "name": "luks-49871fbe-c6ba-4674-824d-64d37d78b90a", "password": "-", "state": "present"}, "gid": 0, "group": "root", "mode": "0600", "msg": "added line", "name": "luks-49871fbe-c6ba-4674-824d-64d37d78b90a", "opts": null, "owner": "root", "password": "-", "path": "/etc/crypttab", "secontext": "system_u:object_r:etc_t:s0", "size": 53, "state": "file", "uid": 0, "warnings": ["Module did not set no_log for password"]} [WARNING]: Module did not set no_log for password TASK [linux-system-roles.storage : Update facts] ******************************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:187 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_luks.yml:65 included: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Print out pool information] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:1 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {} TASK [Print out volume information] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:6 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes_list": [ { "_device": "/dev/mapper/luks-49871fbe-c6ba-4674-824d-64d37d78b90a", "_kernel_device": "/dev/dm-0", "_mount_id": "/dev/mapper/luks-49871fbe-c6ba-4674-824d-64d37d78b90a", "_raw_device": "/dev/vda", "_raw_kernel_device": "/dev/vda", "disks": [ "vda" ], "encryption": true, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": "yabbadabbadoo", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "disk" } ] } TASK [Collect info about the volumes.] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "info": {"/dev/mapper/luks-49871fbe-c6ba-4674-824d-64d37d78b90a": {"fstype": "xfs", "label": "", "name": "/dev/mapper/luks-49871fbe-c6ba-4674-824d-64d37d78b90a", "size": "10G", "type": "crypt", "uuid": "7c63fd5d-03d7-4ab6-93da-3f27d80b8fd1"}, "/dev/sda": {"fstype": "", "label": "", "name": "/dev/sda", "size": "4G", "type": "disk", "uuid": ""}, "/dev/sda1": {"fstype": "ext4", "label": "", "name": "/dev/sda1", "size": "4G", "type": "partition", "uuid": "03e702b4-e165-4a39-88c9-9e210cd00434"}, "/dev/sr0": {"fstype": "iso9660", "label": "cidata", "name": "/dev/sr0", "size": "364K", "type": "rom", "uuid": "2020-10-31-12-30-28-00"}, "/dev/vda": {"fstype": "crypto_LUKS", "label": "", "name": "/dev/vda", "size": "10G", "type": "disk", "uuid": "49871fbe-c6ba-4674-824d-64d37d78b90a"}, "/dev/vdb": {"fstype": "", "label": "", "name": "/dev/vdb", "size": "10G", "type": "disk", "uuid": ""}, "/dev/vdc": {"fstype": "", "label": "", "name": "/dev/vdc", "size": "10G", "type": "disk", "uuid": ""}}} TASK [Read the /etc/fstab file for volume existence] *************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:19 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/fstab"], "delta": "0:00:00.002478", "end": "2020-10-31 12:32:15.663749", "rc": 0, "start": "2020-10-31 12:32:15.661271", "stderr": "", "stderr_lines": [], "stdout": "\n#\n# /etc/fstab\n# Created by anaconda on Sat Oct 31 08:17:58 2020\n#\n# Accessible filesystems, by reference, are maintained under '/dev/disk/'.\n# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.\n#\n# After editing this file, run 'systemctl daemon-reload' to update systemd\n# units generated from this file.\n#\nUUID=03e702b4-e165-4a39-88c9-9e210cd00434 / ext4 defaults 1 1\n/dev/mapper/luks-49871fbe-c6ba-4674-824d-64d37d78b90a /opt/test1 xfs defaults 0 0", "stdout_lines": ["", "#", "# /etc/fstab", "# Created by anaconda on Sat Oct 31 08:17:58 2020", "#", "# Accessible filesystems, by reference, are maintained under '/dev/disk/'.", "# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.", "#", "# After editing this file, run 'systemctl daemon-reload' to update systemd", "# units generated from this file.", "#", "UUID=03e702b4-e165-4a39-88c9-9e210cd00434 / ext4 defaults 1 1", "/dev/mapper/luks-49871fbe-c6ba-4674-824d-64d37d78b90a /opt/test1 xfs defaults 0 0"]} TASK [Read the /etc/crypttab file] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/crypttab"], "delta": "0:00:00.002502", "end": "2020-10-31 12:32:16.007704", "rc": 0, "start": "2020-10-31 12:32:16.005202", "stderr": "", "stderr_lines": [], "stdout": "luks-49871fbe-c6ba-4674-824d-64d37d78b90a /dev/vda -", "stdout_lines": ["luks-49871fbe-c6ba-4674-824d-64d37d78b90a /dev/vda -"]} TASK [Verify the volumes listed in storage_pools were correctly managed] ******* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:32 TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:39 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_pool": null}, "changed": false} TASK [Verify the volumes with no pool were correctly managed] ****************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:46 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": true, "_storage_volume_tests": ["mount", "fstab", "fs", "device", "encryption", "md", "size"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:10 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Get expected mount device based on device type] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/luks-49871fbe-c6ba-4674-824d-64d37d78b90a"}, "changed": false} TASK [Set some facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [{"block_available": 2591847, "block_size": 4096, "block_total": 2618368, "block_used": 26521, "device": "/dev/mapper/luks-49871fbe-c6ba-4674-824d-64d37d78b90a", "fstype": "xfs", "inode_available": 5241853, "inode_total": 5241856, "inode_used": 3, "mount": "/opt/test1", "options": "rw,seclabel,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota", "size_available": 10616205312, "size_total": 10724835328, "uuid": "7c63fd5d-03d7-4ab6-93da-3f27d80b8fd1"}], "storage_test_mount_expected_match_count": "1", "storage_test_mount_point_matches": [{"block_available": 2591847, "block_size": 4096, "block_total": 2618368, "block_used": 26521, "device": "/dev/mapper/luks-49871fbe-c6ba-4674-824d-64d37d78b90a", "fstype": "xfs", "inode_available": 5241853, "inode_total": 5241856, "inode_used": 3, "mount": "/opt/test1", "options": "rw,seclabel,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota", "size_available": 10616205312, "size_total": 10724835328, "uuid": "7c63fd5d-03d7-4ab6-93da-3f27d80b8fd1"}], "storage_test_swap_expected_matches": "0"}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:22 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:31 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:39 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [command] ***************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Gather swap info] ******************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:52 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify swap status] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:57 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Unset facts] ************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:67 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null, "storage_test_swap_expected_matches": null, "storage_test_swaps": null, "storage_test_sys_node": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": "1", "storage_test_fstab_expected_mount_point_matches": "1", "storage_test_fstab_id_matches": ["/dev/mapper/luks-49871fbe-c6ba-4674-824d-64d37d78b90a "], "storage_test_fstab_mount_point_matches": [" /opt/test1 "]}, "changed": false} TASK [Verify that the device identifier appears in /etc/fstab] ***************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:17 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": null, "storage_test_fstab_expected_mount_point_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [Verify fs type] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify fs label] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [See whether the device node is present] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "stat": {"atime": 1604147530.8292072, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "ctime": 1604147530.8292072, "dev": 5, "device_type": 64512, "executable": false, "exists": true, "gid": 6, "gr_name": "disk", "inode": 1711, "isblk": true, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mimetype": "inode/blockdevice", "mode": "0660", "mtime": 1604147530.8292072, "nlink": 1, "path": "/dev/vda", "pw_name": "root", "readable": true, "rgrp": true, "roth": false, "rusr": true, "size": 0, "uid": 0, "version": null, "wgrp": true, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}} TASK [Verify the presence/absence of the device node] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "disk"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:28 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:33 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Stat the LUKS device, if encrypted] ************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:3 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "stat": {"atime": 1604147530.9772072, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "ctime": 1604147530.9772072, "dev": 5, "device_type": 64768, "executable": false, "exists": true, "gid": 6, "gr_name": "disk", "inode": 45601, "isblk": true, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mimetype": "inode/symlink", "mode": "0660", "mtime": 1604147530.9772072, "nlink": 1, "path": "/dev/mapper/luks-49871fbe-c6ba-4674-824d-64d37d78b90a", "pw_name": "root", "readable": true, "rgrp": true, "roth": false, "rusr": true, "size": 0, "uid": 0, "version": null, "wgrp": true, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}} TASK [Collect LUKS info for this volume] *************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["cryptsetup", "luksDump", "/dev/vda"], "delta": "0:00:01.036938", "end": "2020-10-31 12:32:19.118735", "rc": 0, "start": "2020-10-31 12:32:18.081797", "stderr": "", "stderr_lines": [], "stdout": "LUKS header information for /dev/vda\n\nVersion: \t1\nCipher name: \taes\nCipher mode: \txts-plain64\nHash spec: \tsha256\nPayload offset:\t4096\nMK bits: \t512\nMK digest: \t69 62 1d 58 a7 7c e4 af 4d 9d e2 0c 7d d9 ef b4 42 b7 95 21 \nMK salt: \t11 4a dd c8 41 e1 7e e4 a3 4f c9 27 53 de 00 45 \n \tbe a4 b0 36 86 c3 83 92 a0 c0 b4 ae 22 fc d1 66 \nMK iterations: \t116198\nUUID: \t49871fbe-c6ba-4674-824d-64d37d78b90a\n\nKey Slot 0: ENABLED\n\tIterations: \t1801676\n\tSalt: \t26 19 6f 9b 68 15 4f a5 f8 1b 76 4b 37 ad 53 d8 \n\t \ta4 f9 5a 4c 8f 60 74 80 6d b8 7a 6d 9d 52 78 8b \n\tKey material offset:\t8\n\tAF stripes: \t4000\nKey Slot 1: DISABLED\nKey Slot 2: DISABLED\nKey Slot 3: DISABLED\nKey Slot 4: DISABLED\nKey Slot 5: DISABLED\nKey Slot 6: DISABLED\nKey Slot 7: DISABLED", "stdout_lines": ["LUKS header information for /dev/vda", "", "Version: \t1", "Cipher name: \taes", "Cipher mode: \txts-plain64", "Hash spec: \tsha256", "Payload offset:\t4096", "MK bits: \t512", "MK digest: \t69 62 1d 58 a7 7c e4 af 4d 9d e2 0c 7d d9 ef b4 42 b7 95 21 ", "MK salt: \t11 4a dd c8 41 e1 7e e4 a3 4f c9 27 53 de 00 45 ", " \tbe a4 b0 36 86 c3 83 92 a0 c0 b4 ae 22 fc d1 66 ", "MK iterations: \t116198", "UUID: \t49871fbe-c6ba-4674-824d-64d37d78b90a", "", "Key Slot 0: ENABLED", "\tIterations: \t1801676", "\tSalt: \t26 19 6f 9b 68 15 4f a5 f8 1b 76 4b 37 ad 53 d8 ", "\t \ta4 f9 5a 4c 8f 60 74 80 6d b8 7a 6d 9d 52 78 8b ", "\tKey material offset:\t8", "\tAF stripes: \t4000", "Key Slot 1: DISABLED", "Key Slot 2: DISABLED", "Key Slot 3: DISABLED", "Key Slot 4: DISABLED", "Key Slot 5: DISABLED", "Key Slot 6: DISABLED", "Key Slot 7: DISABLED"]} TASK [Verify the presence/absence of the LUKS device node] ********************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:16 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify that the raw device is the same as the device if not encrypted] *** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:25 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about the LUKS volume if encrypted] **************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:31 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the LUKS volume's device type if encrypted] *********************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:37 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Check LUKS version] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:42 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS key size] ***************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS cipher] ******************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:54 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:60 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": ["luks-49871fbe-c6ba-4674-824d-64d37d78b90a /dev/vda -"], "_storage_test_expected_crypttab_entries": "1", "_storage_test_expected_crypttab_key_file": "-"}, "changed": false} TASK [Check for /etc/crypttab entry] ******************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:65 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Validate the format of the crypttab entry] ******************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:70 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Check backing device of crypttab entry] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:76 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Check key file of crypttab entry] **************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:82 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:88 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null, "_storage_test_expected_crypttab_entries": null, "_storage_test_expected_crypttab_key_file": null}, "changed": false} TASK [get information about RAID] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:7 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:13 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:17 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID active devices count] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:25 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID spare devices count] ****************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID metadata version] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [parse the actual size of the volume] ************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:3 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [parse the requested size of the volume] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:9 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:15 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_actual_size": { "changed": false, "skip_reason": "Conditional result was False", "skipped": true } } TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_requested_size": { "changed": false, "skip_reason": "Conditional result was False", "skipped": true } } TASK [assert] ****************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Clean up facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:16 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:56 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_blkinfo": null, "storage_test_crypttab": null, "storage_test_fstab": null, "storage_test_volume": null}, "changed": false} TASK [create a file] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/create-test-file.yml:10 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": true, "dest": "/opt/test1/quux", "gid": 0, "group": "root", "mode": "0644", "owner": "root", "secontext": "unconfined_u:object_r:unlabeled_t:s0", "size": 0, "state": "file", "uid": 0} TASK [Remove the encryption layer] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/tests_luks.yml:71 TASK [linux-system-roles.storage : Set version specific variables] ************* task path: /tmp/tmp7ksfxpzz/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-crypto", "libblockdev-dm", "libblockdev-lvm", "libblockdev-mdraid", "libblockdev-swap"]}, "ansible_included_var_files": ["/tmp/tmp7ksfxpzz/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.storage : define an empty list of pools to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : define an empty list of volumes to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : include the appropriate provider tasks] ***** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:22 included: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [linux-system-roles.storage : get a list of rpm packages installed on host machine] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : make sure blivet is available] ************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: python3-blivet", "Installed: libblockdev-crypto", "Installed: libblockdev-dm", "Installed: libblockdev-lvm", "Installed: libblockdev-mdraid", "Installed: libblockdev-swap"]} TASK [linux-system-roles.storage : initialize internal facts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools": [], "_storage_vol_defaults": [], "_storage_vol_pools": [], "_storage_vols_no_defaults": [], "_storage_vols_no_defaults_by_pool": {}, "_storage_vols_w_defaults": [], "_storage_volumes": []}, "changed": false} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [1/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:28 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [2/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:36 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [3/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:44 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [4/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:52 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [5/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:61 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [6/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:72 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'mount_point': u'/opt/test1', u'name': u'foo', u'encryption_password': u'yabbadabbadoo', u'encryption': False, u'disks': [u'vda'], u'type': u'disk'}) => {"ansible_facts": {"_storage_volumes": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": "yabbadabbadoo", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "disk"}]}, "ansible_loop_var": "volume", "changed": false, "volume": {"disks": ["vda"], "encryption": false, "encryption_password": "yabbadabbadoo", "mount_point": "/opt/test1", "name": "foo", "type": "disk"}} TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools": [] } TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": "yabbadabbadoo", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "disk" } ] } TASK [linux-system-roles.storage : get required packages] ********************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": ["xfsprogs"], "pools": [], "volumes": []} TASK [linux-system-roles.storage : make sure required packages are installed] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: xfsprogs"]} TASK [linux-system-roles.storage : manage the pools and volumes to match the specified state] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:104 fatal: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2]: FAILED! => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "msg": "cannot remove existing formatting on device 'luks-49871fbe-c6ba-4674-824d-64d37d78b90a' in safe mode due to encryption removal", "packages": [], "pools": [], "volumes": []} TASK [Check that we failed in the role] **************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_luks.yml:86 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the output of the safe_mode test] ********************************* task path: /tmp/tmp7ksfxpzz/tests/tests_luks.yml:92 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [stat the file] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-data-preservation.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "stat": {"atime": 1604147540.4862072, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "checksum": "da39a3ee5e6b4b0d3255bfef95601890afd80709", "ctime": 1604147540.4862072, "dev": 64768, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 131, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "inode/x-empty", "mode": "0644", "mtime": 1604147540.4862072, "nlink": 1, "path": "/opt/test1/quux", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 0, "uid": 0, "version": "1205351028", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}} TASK [assert file presence] **************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-data-preservation.yml:15 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Remove the encryption layer] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/tests_luks.yml:103 TASK [linux-system-roles.storage : Set version specific variables] ************* task path: /tmp/tmp7ksfxpzz/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-crypto", "libblockdev-dm", "libblockdev-lvm", "libblockdev-mdraid", "libblockdev-swap"]}, "ansible_included_var_files": ["/tmp/tmp7ksfxpzz/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.storage : define an empty list of pools to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : define an empty list of volumes to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : include the appropriate provider tasks] ***** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:22 included: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [linux-system-roles.storage : get a list of rpm packages installed on host machine] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : make sure blivet is available] ************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: python3-blivet", "Installed: libblockdev-crypto", "Installed: libblockdev-dm", "Installed: libblockdev-lvm", "Installed: libblockdev-mdraid", "Installed: libblockdev-swap"]} TASK [linux-system-roles.storage : initialize internal facts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools": [], "_storage_vol_defaults": [], "_storage_vol_pools": [], "_storage_vols_no_defaults": [], "_storage_vols_no_defaults_by_pool": {}, "_storage_vols_w_defaults": [], "_storage_volumes": []}, "changed": false} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [1/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:28 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [2/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:36 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [3/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:44 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [4/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:52 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [5/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:61 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [6/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:72 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'mount_point': u'/opt/test1', u'name': u'foo', u'encryption_password': u'yabbadabbadoo', u'encryption': False, u'disks': [u'vda'], u'type': u'disk'}) => {"ansible_facts": {"_storage_volumes": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": "yabbadabbadoo", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "disk"}]}, "ansible_loop_var": "volume", "changed": false, "volume": {"disks": ["vda"], "encryption": false, "encryption_password": "yabbadabbadoo", "mount_point": "/opt/test1", "name": "foo", "type": "disk"}} TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools": [] } TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": "yabbadabbadoo", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "disk" } ] } TASK [linux-system-roles.storage : get required packages] ********************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": ["xfsprogs"], "pools": [], "volumes": []} TASK [linux-system-roles.storage : make sure required packages are installed] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: xfsprogs"]} TASK [linux-system-roles.storage : manage the pools and volumes to match the specified state] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:104 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [{"action": "destroy format", "device": "/dev/mapper/luks-49871fbe-c6ba-4674-824d-64d37d78b90a", "fs_type": "xfs"}, {"action": "destroy device", "device": "/dev/mapper/luks-49871fbe-c6ba-4674-824d-64d37d78b90a", "fs_type": null}, {"action": "destroy format", "device": "/dev/vda", "fs_type": "luks"}, {"action": "create format", "device": "/dev/vda", "fs_type": "xfs"}], "changed": true, "crypts": [{"backing_device": "/dev/vda", "name": "luks-49871fbe-c6ba-4674-824d-64d37d78b90a", "password": "-", "state": "absent"}], "leaves": ["/dev/sda1", "/dev/sr0", "/dev/vda", "/dev/vdb", "/dev/vdc"], "mounts": [{"fstype": "xfs", "path": "/opt/test1", "src": "/dev/mapper/luks-49871fbe-c6ba-4674-824d-64d37d78b90a", "state": "absent"}, {"dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "UUID=a3e80f9f-31fe-4a6a-a1b2-7739251f8090", "state": "mounted"}], "packages": ["xfsprogs", "e2fsprogs"], "pools": [], "volumes": [{"_device": "/dev/vda", "_kernel_device": "/dev/vda", "_mount_id": "UUID=a3e80f9f-31fe-4a6a-a1b2-7739251f8090", "_raw_device": "/dev/vda", "_raw_kernel_device": "/dev/vda", "disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": "yabbadabbadoo", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "disk"}]} TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:114 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "blivet_output": { "actions": [ { "action": "destroy format", "device": "/dev/mapper/luks-49871fbe-c6ba-4674-824d-64d37d78b90a", "fs_type": "xfs" }, { "action": "destroy device", "device": "/dev/mapper/luks-49871fbe-c6ba-4674-824d-64d37d78b90a", "fs_type": null }, { "action": "destroy format", "device": "/dev/vda", "fs_type": "luks" }, { "action": "create format", "device": "/dev/vda", "fs_type": "xfs" } ], "changed": true, "crypts": [ { "backing_device": "/dev/vda", "name": "luks-49871fbe-c6ba-4674-824d-64d37d78b90a", "password": "-", "state": "absent" } ], "failed": false, "leaves": [ "/dev/sda1", "/dev/sr0", "/dev/vda", "/dev/vdb", "/dev/vdc" ], "mounts": [ { "fstype": "xfs", "path": "/opt/test1", "src": "/dev/mapper/luks-49871fbe-c6ba-4674-824d-64d37d78b90a", "state": "absent" }, { "dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "UUID=a3e80f9f-31fe-4a6a-a1b2-7739251f8090", "state": "mounted" } ], "packages": [ "xfsprogs", "e2fsprogs" ], "pools": [], "volumes": [ { "_device": "/dev/vda", "_kernel_device": "/dev/vda", "_mount_id": "UUID=a3e80f9f-31fe-4a6a-a1b2-7739251f8090", "_raw_device": "/dev/vda", "_raw_kernel_device": "/dev/vda", "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": "yabbadabbadoo", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "disk" } ] } } TASK [linux-system-roles.storage : set the list of pools for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:117 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : set the list of volumes for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:121 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": [{"_device": "/dev/vda", "_kernel_device": "/dev/vda", "_mount_id": "UUID=a3e80f9f-31fe-4a6a-a1b2-7739251f8090", "_raw_device": "/dev/vda", "_raw_kernel_device": "/dev/vda", "disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": "yabbadabbadoo", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "disk"}]}, "changed": false} TASK [linux-system-roles.storage : remove obsolete mounts] ********************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:137 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'src': u'/dev/mapper/luks-49871fbe-c6ba-4674-824d-64d37d78b90a', u'state': u'absent', u'fstype': u'xfs', u'path': u'/opt/test1'}) => {"ansible_loop_var": "mount_info", "changed": true, "dump": "0", "fstab": "/etc/fstab", "fstype": "xfs", "mount_info": {"fstype": "xfs", "path": "/opt/test1", "src": "/dev/mapper/luks-49871fbe-c6ba-4674-824d-64d37d78b90a", "state": "absent"}, "name": "/opt/test1", "opts": "defaults", "passno": "0", "src": "/dev/mapper/luks-49871fbe-c6ba-4674-824d-64d37d78b90a"} TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:148 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [linux-system-roles.storage : set up new/current mounts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:153 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'src': u'UUID=a3e80f9f-31fe-4a6a-a1b2-7739251f8090', u'state': u'mounted', u'dump': 0, u'path': u'/opt/test1', u'passno': 0, u'opts': u'defaults', u'fstype': u'xfs'}) => {"ansible_loop_var": "mount_info", "changed": true, "dump": "0", "fstab": "/etc/fstab", "fstype": "xfs", "mount_info": {"dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "UUID=a3e80f9f-31fe-4a6a-a1b2-7739251f8090", "state": "mounted"}, "name": "/opt/test1", "opts": "defaults", "passno": "0", "src": "UUID=a3e80f9f-31fe-4a6a-a1b2-7739251f8090"} TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:164 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [linux-system-roles.storage : Manage /etc/crypttab to account for changes we just made] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:172 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'state': u'absent', u'password': u'-', u'name': u'luks-49871fbe-c6ba-4674-824d-64d37d78b90a', u'backing_device': u'/dev/vda'}) => {"ansible_loop_var": "entry", "backing_device": "/dev/vda", "changed": true, "entry": {"backing_device": "/dev/vda", "name": "luks-49871fbe-c6ba-4674-824d-64d37d78b90a", "password": "-", "state": "absent"}, "gid": 0, "group": "root", "mode": "0600", "msg": "removed line", "name": "luks-49871fbe-c6ba-4674-824d-64d37d78b90a", "opts": null, "owner": "root", "password": "-", "path": "/etc/crypttab", "secontext": "system_u:object_r:etc_t:s0", "size": 1, "state": "file", "uid": 0, "warnings": ["Module did not set no_log for password"]} TASK [linux-system-roles.storage : Update facts] ******************************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:187 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_luks.yml:116 included: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Print out pool information] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:1 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {} TASK [Print out volume information] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:6 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes_list": [ { "_device": "/dev/vda", "_kernel_device": "/dev/vda", "_mount_id": "UUID=a3e80f9f-31fe-4a6a-a1b2-7739251f8090", "_raw_device": "/dev/vda", "_raw_kernel_device": "/dev/vda", "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": "yabbadabbadoo", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "disk" } ] } TASK [Collect info about the volumes.] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "info": {"/dev/sda": {"fstype": "", "label": "", "name": "/dev/sda", "size": "4G", "type": "disk", "uuid": ""}, "/dev/sda1": {"fstype": "ext4", "label": "", "name": "/dev/sda1", "size": "4G", "type": "partition", "uuid": "03e702b4-e165-4a39-88c9-9e210cd00434"}, "/dev/sr0": {"fstype": "iso9660", "label": "cidata", "name": "/dev/sr0", "size": "364K", "type": "rom", "uuid": "2020-10-31-12-30-28-00"}, "/dev/vda": {"fstype": "xfs", "label": "", "name": "/dev/vda", "size": "10G", "type": "disk", "uuid": "a3e80f9f-31fe-4a6a-a1b2-7739251f8090"}, "/dev/vdb": {"fstype": "", "label": "", "name": "/dev/vdb", "size": "10G", "type": "disk", "uuid": ""}, "/dev/vdc": {"fstype": "", "label": "", "name": "/dev/vdc", "size": "10G", "type": "disk", "uuid": ""}}} TASK [Read the /etc/fstab file for volume existence] *************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:19 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/fstab"], "delta": "0:00:00.002436", "end": "2020-10-31 12:32:48.112906", "rc": 0, "start": "2020-10-31 12:32:48.110470", "stderr": "", "stderr_lines": [], "stdout": "\n#\n# /etc/fstab\n# Created by anaconda on Sat Oct 31 08:17:58 2020\n#\n# Accessible filesystems, by reference, are maintained under '/dev/disk/'.\n# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.\n#\n# After editing this file, run 'systemctl daemon-reload' to update systemd\n# units generated from this file.\n#\nUUID=03e702b4-e165-4a39-88c9-9e210cd00434 / ext4 defaults 1 1\nUUID=a3e80f9f-31fe-4a6a-a1b2-7739251f8090 /opt/test1 xfs defaults 0 0", "stdout_lines": ["", "#", "# /etc/fstab", "# Created by anaconda on Sat Oct 31 08:17:58 2020", "#", "# Accessible filesystems, by reference, are maintained under '/dev/disk/'.", "# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.", "#", "# After editing this file, run 'systemctl daemon-reload' to update systemd", "# units generated from this file.", "#", "UUID=03e702b4-e165-4a39-88c9-9e210cd00434 / ext4 defaults 1 1", "UUID=a3e80f9f-31fe-4a6a-a1b2-7739251f8090 /opt/test1 xfs defaults 0 0"]} TASK [Read the /etc/crypttab file] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/crypttab"], "delta": "0:00:00.002731", "end": "2020-10-31 12:32:48.432975", "rc": 0, "start": "2020-10-31 12:32:48.430244", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Verify the volumes listed in storage_pools were correctly managed] ******* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:32 TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:39 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_pool": null}, "changed": false} TASK [Verify the volumes with no pool were correctly managed] ****************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:46 [WARNING]: The loop variable 'storage_test_volume' is already in use. You should set the `loop_var` value in the `loop_control` option for the task to something else to avoid variable collisions and unexpected behavior. included: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": true, "_storage_volume_tests": ["mount", "fstab", "fs", "device", "encryption", "md", "size"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:10 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Get expected mount device based on device type] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/vda"}, "changed": false} TASK [Set some facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [{"block_available": 2592358, "block_size": 4096, "block_total": 2618880, "block_used": 26522, "device": "/dev/vda", "fstype": "xfs", "inode_available": 5242877, "inode_total": 5242880, "inode_used": 3, "mount": "/opt/test1", "options": "rw,seclabel,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota", "size_available": 10618298368, "size_total": 10726932480, "uuid": "a3e80f9f-31fe-4a6a-a1b2-7739251f8090"}], "storage_test_mount_expected_match_count": "1", "storage_test_mount_point_matches": [{"block_available": 2592358, "block_size": 4096, "block_total": 2618880, "block_used": 26522, "device": "/dev/vda", "fstype": "xfs", "inode_available": 5242877, "inode_total": 5242880, "inode_used": 3, "mount": "/opt/test1", "options": "rw,seclabel,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota", "size_available": 10618298368, "size_total": 10726932480, "uuid": "a3e80f9f-31fe-4a6a-a1b2-7739251f8090"}], "storage_test_swap_expected_matches": "0"}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:22 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:31 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:39 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [command] ***************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Gather swap info] ******************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:52 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify swap status] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:57 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Unset facts] ************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:67 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null, "storage_test_swap_expected_matches": null, "storage_test_swaps": null, "storage_test_sys_node": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": "1", "storage_test_fstab_expected_mount_point_matches": "1", "storage_test_fstab_id_matches": ["UUID=a3e80f9f-31fe-4a6a-a1b2-7739251f8090 "], "storage_test_fstab_mount_point_matches": [" /opt/test1 "]}, "changed": false} TASK [Verify that the device identifier appears in /etc/fstab] ***************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:17 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": null, "storage_test_fstab_expected_mount_point_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [Verify fs type] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify fs label] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [See whether the device node is present] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "stat": {"atime": 1604147564.2732072, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "ctime": 1604147564.2732072, "dev": 5, "device_type": 64512, "executable": false, "exists": true, "gid": 6, "gr_name": "disk", "inode": 1711, "isblk": true, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mimetype": "inode/blockdevice", "mode": "0660", "mtime": 1604147564.2732072, "nlink": 1, "path": "/dev/vda", "pw_name": "root", "readable": true, "rgrp": true, "roth": false, "rusr": true, "size": 0, "uid": 0, "version": null, "wgrp": true, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}} TASK [Verify the presence/absence of the device node] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "disk"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:28 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:33 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Stat the LUKS device, if encrypted] ************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:3 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Collect LUKS info for this volume] *************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:10 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the presence/absence of the LUKS device node] ********************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:16 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify that the raw device is the same as the device if not encrypted] *** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:25 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about the LUKS volume if encrypted] **************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the LUKS volume's device type if encrypted] *********************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS version] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:42 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS key size] ***************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS cipher] ******************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:54 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:60 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": [], "_storage_test_expected_crypttab_entries": "0", "_storage_test_expected_crypttab_key_file": "-"}, "changed": false} TASK [Check for /etc/crypttab entry] ******************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:65 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Validate the format of the crypttab entry] ******************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:70 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check backing device of crypttab entry] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:76 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check key file of crypttab entry] **************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:82 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:88 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null, "_storage_test_expected_crypttab_entries": null, "_storage_test_expected_crypttab_key_file": null}, "changed": false} TASK [get information about RAID] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:7 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:13 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:17 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID active devices count] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:25 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID spare devices count] ****************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID metadata version] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [parse the actual size of the volume] ************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:3 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [parse the requested size of the volume] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:9 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:15 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_actual_size": { "changed": false, "skip_reason": "Conditional result was False", "skipped": true } } TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_requested_size": { "changed": false, "skip_reason": "Conditional result was False", "skipped": true } } TASK [assert] ****************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Clean up facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:16 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:56 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_blkinfo": null, "storage_test_crypttab": null, "storage_test_fstab": null, "storage_test_volume": null}, "changed": false} TASK [create a file] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/create-test-file.yml:10 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": true, "dest": "/opt/test1/quux", "gid": 0, "group": "root", "mode": "0644", "owner": "root", "secontext": "unconfined_u:object_r:unlabeled_t:s0", "size": 0, "state": "file", "uid": 0} TASK [Add encryption to the volume] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_luks.yml:122 TASK [linux-system-roles.storage : Set version specific variables] ************* task path: /tmp/tmp7ksfxpzz/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-crypto", "libblockdev-dm", "libblockdev-lvm", "libblockdev-mdraid", "libblockdev-swap"]}, "ansible_included_var_files": ["/tmp/tmp7ksfxpzz/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.storage : define an empty list of pools to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : define an empty list of volumes to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : include the appropriate provider tasks] ***** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:22 included: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [linux-system-roles.storage : get a list of rpm packages installed on host machine] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : make sure blivet is available] ************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: python3-blivet", "Installed: libblockdev-crypto", "Installed: libblockdev-dm", "Installed: libblockdev-lvm", "Installed: libblockdev-mdraid", "Installed: libblockdev-swap"]} TASK [linux-system-roles.storage : initialize internal facts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools": [], "_storage_vol_defaults": [], "_storage_vol_pools": [], "_storage_vols_no_defaults": [], "_storage_vols_no_defaults_by_pool": {}, "_storage_vols_w_defaults": [], "_storage_volumes": []}, "changed": false} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [1/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:28 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [2/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:36 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [3/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:44 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [4/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:52 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [5/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:61 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [6/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:72 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'mount_point': u'/opt/test1', u'name': u'foo', u'encryption_password': u'yabbadabbadoo', u'encryption': True, u'disks': [u'vda'], u'type': u'disk'}) => {"ansible_facts": {"_storage_volumes": [{"disks": ["vda"], "encryption": true, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": "yabbadabbadoo", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "disk"}]}, "ansible_loop_var": "volume", "changed": false, "volume": {"disks": ["vda"], "encryption": true, "encryption_password": "yabbadabbadoo", "mount_point": "/opt/test1", "name": "foo", "type": "disk"}} TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools": [] } TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes": [ { "disks": [ "vda" ], "encryption": true, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": "yabbadabbadoo", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "disk" } ] } TASK [linux-system-roles.storage : get required packages] ********************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": ["cryptsetup", "xfsprogs"], "pools": [], "volumes": []} TASK [linux-system-roles.storage : make sure required packages are installed] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: cryptsetup", "Installed: xfsprogs"]} TASK [linux-system-roles.storage : manage the pools and volumes to match the specified state] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:104 fatal: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2]: FAILED! => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "msg": "cannot remove existing formatting on device 'vda' in safe mode due to adding encryption", "packages": [], "pools": [], "volumes": []} TASK [Check that we failed in the role] **************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_luks.yml:137 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the output of the safe_mode test] ********************************* task path: /tmp/tmp7ksfxpzz/tests/tests_luks.yml:143 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [stat the file] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-data-preservation.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "stat": {"atime": 1604147570.8112073, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "checksum": "da39a3ee5e6b4b0d3255bfef95601890afd80709", "ctime": 1604147570.8112073, "dev": 64512, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 131, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "inode/x-empty", "mode": "0644", "mtime": 1604147570.8112073, "nlink": 1, "path": "/opt/test1/quux", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 0, "uid": 0, "version": "1035527883", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}} TASK [assert file presence] **************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-data-preservation.yml:15 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Add encryption to the volume] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_luks.yml:154 TASK [linux-system-roles.storage : Set version specific variables] ************* task path: /tmp/tmp7ksfxpzz/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-crypto", "libblockdev-dm", "libblockdev-lvm", "libblockdev-mdraid", "libblockdev-swap"]}, "ansible_included_var_files": ["/tmp/tmp7ksfxpzz/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.storage : define an empty list of pools to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : define an empty list of volumes to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : include the appropriate provider tasks] ***** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:22 included: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [linux-system-roles.storage : get a list of rpm packages installed on host machine] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : make sure blivet is available] ************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: python3-blivet", "Installed: libblockdev-crypto", "Installed: libblockdev-dm", "Installed: libblockdev-lvm", "Installed: libblockdev-mdraid", "Installed: libblockdev-swap"]} TASK [linux-system-roles.storage : initialize internal facts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools": [], "_storage_vol_defaults": [], "_storage_vol_pools": [], "_storage_vols_no_defaults": [], "_storage_vols_no_defaults_by_pool": {}, "_storage_vols_w_defaults": [], "_storage_volumes": []}, "changed": false} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [1/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:28 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [2/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:36 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [3/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:44 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [4/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:52 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [5/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:61 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [6/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:72 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'mount_point': u'/opt/test1', u'name': u'foo', u'encryption_password': u'yabbadabbadoo', u'encryption': True, u'disks': [u'vda'], u'type': u'disk'}) => {"ansible_facts": {"_storage_volumes": [{"disks": ["vda"], "encryption": true, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": "yabbadabbadoo", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "disk"}]}, "ansible_loop_var": "volume", "changed": false, "volume": {"disks": ["vda"], "encryption": true, "encryption_password": "yabbadabbadoo", "mount_point": "/opt/test1", "name": "foo", "type": "disk"}} TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools": [] } TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes": [ { "disks": [ "vda" ], "encryption": true, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": "yabbadabbadoo", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "disk" } ] } TASK [linux-system-roles.storage : get required packages] ********************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": ["cryptsetup", "xfsprogs"], "pools": [], "volumes": []} TASK [linux-system-roles.storage : make sure required packages are installed] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: cryptsetup", "Installed: xfsprogs"]} TASK [linux-system-roles.storage : manage the pools and volumes to match the specified state] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:104 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [{"action": "destroy format", "device": "/dev/vda", "fs_type": "xfs"}, {"action": "create format", "device": "/dev/vda", "fs_type": "luks"}, {"action": "create device", "device": "/dev/mapper/luks-7f277c4c-90fe-46a2-884e-ccced34df750", "fs_type": null}, {"action": "create format", "device": "/dev/mapper/luks-7f277c4c-90fe-46a2-884e-ccced34df750", "fs_type": "xfs"}], "changed": true, "crypts": [{"backing_device": "/dev/vda", "name": "luks-7f277c4c-90fe-46a2-884e-ccced34df750", "password": "-", "state": "present"}], "leaves": ["/dev/sda1", "/dev/sr0", "/dev/vdb", "/dev/vdc", "/dev/mapper/luks-7f277c4c-90fe-46a2-884e-ccced34df750"], "mounts": [{"fstype": "xfs", "path": "/opt/test1", "src": "UUID=a3e80f9f-31fe-4a6a-a1b2-7739251f8090", "state": "absent"}, {"dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "/dev/mapper/luks-7f277c4c-90fe-46a2-884e-ccced34df750", "state": "mounted"}], "packages": ["e2fsprogs", "cryptsetup", "xfsprogs"], "pools": [], "volumes": [{"_device": "/dev/mapper/luks-7f277c4c-90fe-46a2-884e-ccced34df750", "_kernel_device": "/dev/dm-0", "_mount_id": "/dev/mapper/luks-7f277c4c-90fe-46a2-884e-ccced34df750", "_raw_device": "/dev/vda", "_raw_kernel_device": "/dev/vda", "disks": ["vda"], "encryption": true, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": "yabbadabbadoo", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "disk"}]} TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:114 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "blivet_output": { "actions": [ { "action": "destroy format", "device": "/dev/vda", "fs_type": "xfs" }, { "action": "create format", "device": "/dev/vda", "fs_type": "luks" }, { "action": "create device", "device": "/dev/mapper/luks-7f277c4c-90fe-46a2-884e-ccced34df750", "fs_type": null }, { "action": "create format", "device": "/dev/mapper/luks-7f277c4c-90fe-46a2-884e-ccced34df750", "fs_type": "xfs" } ], "changed": true, "crypts": [ { "backing_device": "/dev/vda", "name": "luks-7f277c4c-90fe-46a2-884e-ccced34df750", "password": "-", "state": "present" } ], "failed": false, "leaves": [ "/dev/sda1", "/dev/sr0", "/dev/vdb", "/dev/vdc", "/dev/mapper/luks-7f277c4c-90fe-46a2-884e-ccced34df750" ], "mounts": [ { "fstype": "xfs", "path": "/opt/test1", "src": "UUID=a3e80f9f-31fe-4a6a-a1b2-7739251f8090", "state": "absent" }, { "dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "/dev/mapper/luks-7f277c4c-90fe-46a2-884e-ccced34df750", "state": "mounted" } ], "packages": [ "e2fsprogs", "cryptsetup", "xfsprogs" ], "pools": [], "volumes": [ { "_device": "/dev/mapper/luks-7f277c4c-90fe-46a2-884e-ccced34df750", "_kernel_device": "/dev/dm-0", "_mount_id": "/dev/mapper/luks-7f277c4c-90fe-46a2-884e-ccced34df750", "_raw_device": "/dev/vda", "_raw_kernel_device": "/dev/vda", "disks": [ "vda" ], "encryption": true, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": "yabbadabbadoo", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "disk" } ] } } TASK [linux-system-roles.storage : set the list of pools for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:117 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : set the list of volumes for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:121 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": [{"_device": "/dev/mapper/luks-7f277c4c-90fe-46a2-884e-ccced34df750", "_kernel_device": "/dev/dm-0", "_mount_id": "/dev/mapper/luks-7f277c4c-90fe-46a2-884e-ccced34df750", "_raw_device": "/dev/vda", "_raw_kernel_device": "/dev/vda", "disks": ["vda"], "encryption": true, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": "yabbadabbadoo", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "disk"}]}, "changed": false} TASK [linux-system-roles.storage : remove obsolete mounts] ********************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:137 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'src': u'UUID=a3e80f9f-31fe-4a6a-a1b2-7739251f8090', u'state': u'absent', u'fstype': u'xfs', u'path': u'/opt/test1'}) => {"ansible_loop_var": "mount_info", "changed": true, "dump": "0", "fstab": "/etc/fstab", "fstype": "xfs", "mount_info": {"fstype": "xfs", "path": "/opt/test1", "src": "UUID=a3e80f9f-31fe-4a6a-a1b2-7739251f8090", "state": "absent"}, "name": "/opt/test1", "opts": "defaults", "passno": "0", "src": "UUID=a3e80f9f-31fe-4a6a-a1b2-7739251f8090"} TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:148 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [linux-system-roles.storage : set up new/current mounts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:153 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'src': u'/dev/mapper/luks-7f277c4c-90fe-46a2-884e-ccced34df750', u'state': u'mounted', u'dump': 0, u'path': u'/opt/test1', u'passno': 0, u'opts': u'defaults', u'fstype': u'xfs'}) => {"ansible_loop_var": "mount_info", "changed": true, "dump": "0", "fstab": "/etc/fstab", "fstype": "xfs", "mount_info": {"dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "/dev/mapper/luks-7f277c4c-90fe-46a2-884e-ccced34df750", "state": "mounted"}, "name": "/opt/test1", "opts": "defaults", "passno": "0", "src": "/dev/mapper/luks-7f277c4c-90fe-46a2-884e-ccced34df750"} TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:164 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [linux-system-roles.storage : Manage /etc/crypttab to account for changes we just made] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:172 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'state': u'present', u'password': u'-', u'name': u'luks-7f277c4c-90fe-46a2-884e-ccced34df750', u'backing_device': u'/dev/vda'}) => {"ansible_loop_var": "entry", "backing_device": "/dev/vda", "changed": true, "entry": {"backing_device": "/dev/vda", "name": "luks-7f277c4c-90fe-46a2-884e-ccced34df750", "password": "-", "state": "present"}, "gid": 0, "group": "root", "mode": "0600", "msg": "added line", "name": "luks-7f277c4c-90fe-46a2-884e-ccced34df750", "opts": null, "owner": "root", "password": "-", "path": "/etc/crypttab", "secontext": "system_u:object_r:etc_t:s0", "size": 54, "state": "file", "uid": 0, "warnings": ["Module did not set no_log for password"]} TASK [linux-system-roles.storage : Update facts] ******************************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:187 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_luks.yml:167 included: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Print out pool information] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:1 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {} TASK [Print out volume information] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:6 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes_list": [ { "_device": "/dev/mapper/luks-7f277c4c-90fe-46a2-884e-ccced34df750", "_kernel_device": "/dev/dm-0", "_mount_id": "/dev/mapper/luks-7f277c4c-90fe-46a2-884e-ccced34df750", "_raw_device": "/dev/vda", "_raw_kernel_device": "/dev/vda", "disks": [ "vda" ], "encryption": true, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": "yabbadabbadoo", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "disk" } ] } TASK [Collect info about the volumes.] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "info": {"/dev/mapper/luks-7f277c4c-90fe-46a2-884e-ccced34df750": {"fstype": "xfs", "label": "", "name": "/dev/mapper/luks-7f277c4c-90fe-46a2-884e-ccced34df750", "size": "10G", "type": "crypt", "uuid": "c83dfebd-1876-4936-a01f-a485fb308341"}, "/dev/sda": {"fstype": "", "label": "", "name": "/dev/sda", "size": "4G", "type": "disk", "uuid": ""}, "/dev/sda1": {"fstype": "ext4", "label": "", "name": "/dev/sda1", "size": "4G", "type": "partition", "uuid": "03e702b4-e165-4a39-88c9-9e210cd00434"}, "/dev/sr0": {"fstype": "iso9660", "label": "cidata", "name": "/dev/sr0", "size": "364K", "type": "rom", "uuid": "2020-10-31-12-30-28-00"}, "/dev/vda": {"fstype": "crypto_LUKS", "label": "", "name": "/dev/vda", "size": "10G", "type": "disk", "uuid": "7f277c4c-90fe-46a2-884e-ccced34df750"}, "/dev/vdb": {"fstype": "", "label": "", "name": "/dev/vdb", "size": "10G", "type": "disk", "uuid": ""}, "/dev/vdc": {"fstype": "", "label": "", "name": "/dev/vdc", "size": "10G", "type": "disk", "uuid": ""}}} TASK [Read the /etc/fstab file for volume existence] *************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:19 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/fstab"], "delta": "0:00:00.003163", "end": "2020-10-31 12:33:23.677741", "rc": 0, "start": "2020-10-31 12:33:23.674578", "stderr": "", "stderr_lines": [], "stdout": "\n#\n# /etc/fstab\n# Created by anaconda on Sat Oct 31 08:17:58 2020\n#\n# Accessible filesystems, by reference, are maintained under '/dev/disk/'.\n# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.\n#\n# After editing this file, run 'systemctl daemon-reload' to update systemd\n# units generated from this file.\n#\nUUID=03e702b4-e165-4a39-88c9-9e210cd00434 / ext4 defaults 1 1\n/dev/mapper/luks-7f277c4c-90fe-46a2-884e-ccced34df750 /opt/test1 xfs defaults 0 0", "stdout_lines": ["", "#", "# /etc/fstab", "# Created by anaconda on Sat Oct 31 08:17:58 2020", "#", "# Accessible filesystems, by reference, are maintained under '/dev/disk/'.", "# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.", "#", "# After editing this file, run 'systemctl daemon-reload' to update systemd", "# units generated from this file.", "#", "UUID=03e702b4-e165-4a39-88c9-9e210cd00434 / ext4 defaults 1 1", "/dev/mapper/luks-7f277c4c-90fe-46a2-884e-ccced34df750 /opt/test1 xfs defaults 0 0"]} TASK [Read the /etc/crypttab file] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/crypttab"], "delta": "0:00:00.002453", "end": "2020-10-31 12:33:24.020152", "rc": 0, "start": "2020-10-31 12:33:24.017699", "stderr": "", "stderr_lines": [], "stdout": "\nluks-7f277c4c-90fe-46a2-884e-ccced34df750 /dev/vda -", "stdout_lines": ["", "luks-7f277c4c-90fe-46a2-884e-ccced34df750 /dev/vda -"]} TASK [Verify the volumes listed in storage_pools were correctly managed] ******* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:32 TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:39 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_pool": null}, "changed": false} TASK [Verify the volumes with no pool were correctly managed] ****************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:46 [WARNING]: The loop variable 'storage_test_volume' is already in use. You should set the `loop_var` value in the `loop_control` option for the task to something else to avoid variable collisions and unexpected behavior. included: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": true, "_storage_volume_tests": ["mount", "fstab", "fs", "device", "encryption", "md", "size"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:10 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Get expected mount device based on device type] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/luks-7f277c4c-90fe-46a2-884e-ccced34df750"}, "changed": false} TASK [Set some facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [{"block_available": 2591847, "block_size": 4096, "block_total": 2618368, "block_used": 26521, "device": "/dev/mapper/luks-7f277c4c-90fe-46a2-884e-ccced34df750", "fstype": "xfs", "inode_available": 5241853, "inode_total": 5241856, "inode_used": 3, "mount": "/opt/test1", "options": "rw,seclabel,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota", "size_available": 10616205312, "size_total": 10724835328, "uuid": "c83dfebd-1876-4936-a01f-a485fb308341"}], "storage_test_mount_expected_match_count": "1", "storage_test_mount_point_matches": [{"block_available": 2591847, "block_size": 4096, "block_total": 2618368, "block_used": 26521, "device": "/dev/mapper/luks-7f277c4c-90fe-46a2-884e-ccced34df750", "fstype": "xfs", "inode_available": 5241853, "inode_total": 5241856, "inode_used": 3, "mount": "/opt/test1", "options": "rw,seclabel,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota", "size_available": 10616205312, "size_total": 10724835328, "uuid": "c83dfebd-1876-4936-a01f-a485fb308341"}], "storage_test_swap_expected_matches": "0"}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:22 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:31 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:39 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [command] ***************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Gather swap info] ******************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:52 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify swap status] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:57 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Unset facts] ************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:67 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null, "storage_test_swap_expected_matches": null, "storage_test_swaps": null, "storage_test_sys_node": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": "1", "storage_test_fstab_expected_mount_point_matches": "1", "storage_test_fstab_id_matches": ["/dev/mapper/luks-7f277c4c-90fe-46a2-884e-ccced34df750 "], "storage_test_fstab_mount_point_matches": [" /opt/test1 "]}, "changed": false} TASK [Verify that the device identifier appears in /etc/fstab] ***************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:17 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": null, "storage_test_fstab_expected_mount_point_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [Verify fs type] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify fs label] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [See whether the device node is present] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "stat": {"atime": 1604147599.6282072, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "ctime": 1604147599.6282072, "dev": 5, "device_type": 64512, "executable": false, "exists": true, "gid": 6, "gr_name": "disk", "inode": 1711, "isblk": true, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mimetype": "inode/blockdevice", "mode": "0660", "mtime": 1604147599.6282072, "nlink": 1, "path": "/dev/vda", "pw_name": "root", "readable": true, "rgrp": true, "roth": false, "rusr": true, "size": 0, "uid": 0, "version": null, "wgrp": true, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}} TASK [Verify the presence/absence of the device node] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "disk"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:28 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:33 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Stat the LUKS device, if encrypted] ************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:3 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "stat": {"atime": 1604147599.7202072, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "ctime": 1604147599.7202072, "dev": 5, "device_type": 64768, "executable": false, "exists": true, "gid": 6, "gr_name": "disk", "inode": 46028, "isblk": true, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mimetype": "inode/symlink", "mode": "0660", "mtime": 1604147599.7202072, "nlink": 1, "path": "/dev/mapper/luks-7f277c4c-90fe-46a2-884e-ccced34df750", "pw_name": "root", "readable": true, "rgrp": true, "roth": false, "rusr": true, "size": 0, "uid": 0, "version": null, "wgrp": true, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}} TASK [Collect LUKS info for this volume] *************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["cryptsetup", "luksDump", "/dev/vda"], "delta": "0:00:00.009617", "end": "2020-10-31 12:33:26.037822", "rc": 0, "start": "2020-10-31 12:33:26.028205", "stderr": "", "stderr_lines": [], "stdout": "LUKS header information for /dev/vda\n\nVersion: \t1\nCipher name: \taes\nCipher mode: \txts-plain64\nHash spec: \tsha256\nPayload offset:\t4096\nMK bits: \t512\nMK digest: \tee 2c e8 88 77 bc d3 55 2e ce 5a 74 f6 58 c8 f8 c9 ca 91 1f \nMK salt: \t94 ef 2a 55 ca 15 af 0e 74 1d d4 b3 d3 76 fb ff \n \t97 9d ba f6 63 89 06 52 bc d3 be 51 d0 69 1e 9c \nMK iterations: \t118724\nUUID: \t7f277c4c-90fe-46a2-884e-ccced34df750\n\nKey Slot 0: ENABLED\n\tIterations: \t1882542\n\tSalt: \te6 f2 54 02 23 20 0a 4c c0 10 96 cb 8e f8 22 79 \n\t \t48 94 22 cc f2 f2 99 1e ec bc 62 b3 a5 18 e2 1d \n\tKey material offset:\t8\n\tAF stripes: \t4000\nKey Slot 1: DISABLED\nKey Slot 2: DISABLED\nKey Slot 3: DISABLED\nKey Slot 4: DISABLED\nKey Slot 5: DISABLED\nKey Slot 6: DISABLED\nKey Slot 7: DISABLED", "stdout_lines": ["LUKS header information for /dev/vda", "", "Version: \t1", "Cipher name: \taes", "Cipher mode: \txts-plain64", "Hash spec: \tsha256", "Payload offset:\t4096", "MK bits: \t512", "MK digest: \tee 2c e8 88 77 bc d3 55 2e ce 5a 74 f6 58 c8 f8 c9 ca 91 1f ", "MK salt: \t94 ef 2a 55 ca 15 af 0e 74 1d d4 b3 d3 76 fb ff ", " \t97 9d ba f6 63 89 06 52 bc d3 be 51 d0 69 1e 9c ", "MK iterations: \t118724", "UUID: \t7f277c4c-90fe-46a2-884e-ccced34df750", "", "Key Slot 0: ENABLED", "\tIterations: \t1882542", "\tSalt: \te6 f2 54 02 23 20 0a 4c c0 10 96 cb 8e f8 22 79 ", "\t \t48 94 22 cc f2 f2 99 1e ec bc 62 b3 a5 18 e2 1d ", "\tKey material offset:\t8", "\tAF stripes: \t4000", "Key Slot 1: DISABLED", "Key Slot 2: DISABLED", "Key Slot 3: DISABLED", "Key Slot 4: DISABLED", "Key Slot 5: DISABLED", "Key Slot 6: DISABLED", "Key Slot 7: DISABLED"]} TASK [Verify the presence/absence of the LUKS device node] ********************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:16 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify that the raw device is the same as the device if not encrypted] *** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:25 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about the LUKS volume if encrypted] **************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:31 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the LUKS volume's device type if encrypted] *********************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:37 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Check LUKS version] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:42 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS key size] ***************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS cipher] ******************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:54 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:60 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": ["luks-7f277c4c-90fe-46a2-884e-ccced34df750 /dev/vda -"], "_storage_test_expected_crypttab_entries": "1", "_storage_test_expected_crypttab_key_file": "-"}, "changed": false} TASK [Check for /etc/crypttab entry] ******************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:65 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Validate the format of the crypttab entry] ******************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:70 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Check backing device of crypttab entry] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:76 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Check key file of crypttab entry] **************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:82 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:88 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null, "_storage_test_expected_crypttab_entries": null, "_storage_test_expected_crypttab_key_file": null}, "changed": false} TASK [get information about RAID] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:7 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:13 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:17 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID active devices count] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:25 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID spare devices count] ****************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID metadata version] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [parse the actual size of the volume] ************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:3 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [parse the requested size of the volume] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:9 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:15 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_actual_size": { "changed": false, "skip_reason": "Conditional result was False", "skipped": true } } TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_requested_size": { "changed": false, "skip_reason": "Conditional result was False", "skipped": true } } TASK [assert] ****************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Clean up facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:16 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:56 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_blkinfo": null, "storage_test_crypttab": null, "storage_test_fstab": null, "storage_test_volume": null}, "changed": false} TASK [Create an encrypted partition volume w/ default fs] ********************** task path: /tmp/tmp7ksfxpzz/tests/tests_luks.yml:175 TASK [linux-system-roles.storage : Set version specific variables] ************* task path: /tmp/tmp7ksfxpzz/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-crypto", "libblockdev-dm", "libblockdev-lvm", "libblockdev-mdraid", "libblockdev-swap"]}, "ansible_included_var_files": ["/tmp/tmp7ksfxpzz/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.storage : define an empty list of pools to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : define an empty list of volumes to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : include the appropriate provider tasks] ***** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:22 included: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [linux-system-roles.storage : get a list of rpm packages installed on host machine] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : make sure blivet is available] ************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: python3-blivet", "Installed: libblockdev-crypto", "Installed: libblockdev-dm", "Installed: libblockdev-lvm", "Installed: libblockdev-mdraid", "Installed: libblockdev-swap"]} TASK [linux-system-roles.storage : initialize internal facts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools": [], "_storage_vol_defaults": [], "_storage_vol_pools": [], "_storage_vols_no_defaults": [], "_storage_vols_no_defaults_by_pool": {}, "_storage_vols_w_defaults": [], "_storage_volumes": []}, "changed": false} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [1/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:28 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'disks': [u'vda'], u'type': u'partition', u'name': u'foo', u'volumes': [{u'encryption': True, u'mount_point': u'/opt/test1', u'type': u'partition', u'name': u'test1', u'size': u'4g'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "partition", "volumes": [{"encryption": true, "mount_point": "/opt/test1", "name": "test1", "size": "4g", "type": "partition"}]}]}, "ansible_loop_var": "pool", "changed": false, "pool": {"disks": ["vda"], "name": "foo", "type": "partition", "volumes": [{"encryption": true, "mount_point": "/opt/test1", "name": "test1", "size": "4g", "type": "partition"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [2/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:36 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'encryption': True, u'mount_point': u'/opt/test1', u'type': u'partition', u'name': u'test1', u'size': u'4g'}], u'type': u'partition', u'encryption_key_size': None}, {u'encryption': True, u'mount_point': u'/opt/test1', u'type': u'partition', u'name': u'test1', u'size': u'4g'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}], "_storage_vol_pools": ["foo"], "_storage_vols_no_defaults": [{"encryption": true, "mount_point": "/opt/test1", "name": "test1", "size": "4g", "type": "partition"}]}, "ansible_loop_var": "item", "changed": false, "item": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "partition", "volumes": [{"encryption": true, "mount_point": "/opt/test1", "name": "test1", "size": "4g", "type": "partition"}]}, {"encryption": true, "mount_point": "/opt/test1", "name": "test1", "size": "4g", "type": "partition"}]} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [3/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:44 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'encryption': True, u'mount_point': u'/opt/test1', u'type': u'partition', u'name': u'test1', u'size': u'4g'}, {u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'fs_label': u'', u'raid_level': None, u'mount_device_identifier': u'uuid', u'fs_type': u'xfs', u'mount_options': u'defaults', u'encryption_luks_version': None, u'raid_spare_count': None, u'size': 0, u'mount_point': u'', u'encryption_password': None, u'encryption': False, u'raid_chunk_size': None, u'raid_device_count': None, u'state': u'present', u'mount_check': 0, u'mount_passno': 0, u'fs_overwrite_existing': True, u'type': u'lvm', u'encryption_key_size': None, u'fs_create_options': u''}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"encryption": true, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "partition"}]}, "ansible_index_var": "idx", "ansible_loop_var": "item", "changed": false, "idx": 0, "item": [{"encryption": true, "mount_point": "/opt/test1", "name": "test1", "size": "4g", "type": "partition"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}]} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [4/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:52 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'encryption': True, u'mount_point': u'/opt/test1', u'type': u'partition', u'name': u'test1', u'size': u'4g'}], u'type': u'partition', u'encryption_key_size': None}) => {"ansible_facts": {"_storage_vols_no_defaults_by_pool": {"foo": [{"encryption": true, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "partition"}]}}, "ansible_loop_var": "item", "changed": false, "item": {"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "partition", "volumes": [{"encryption": true, "mount_point": "/opt/test1", "name": "test1", "size": "4g", "type": "partition"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [5/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:61 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'encryption': True, u'mount_point': u'/opt/test1', u'type': u'partition', u'name': u'test1', u'size': u'4g'}], u'type': u'partition', u'encryption_key_size': None}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "partition", "volumes": [{"encryption": true, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "partition"}]}]}, "ansible_index_var": "idx", "ansible_loop_var": "pool", "changed": false, "idx": 0, "pool": {"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "partition", "volumes": [{"encryption": true, "mount_point": "/opt/test1", "name": "test1", "size": "4g", "type": "partition"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [6/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:72 TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "partition", "volumes": [ { "encryption": true, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "partition" } ] } ] } TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes": [] } TASK [linux-system-roles.storage : get required packages] ********************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": ["cryptsetup", "xfsprogs"], "pools": [], "volumes": []} TASK [linux-system-roles.storage : make sure required packages are installed] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: cryptsetup", "Installed: xfsprogs"]} TASK [linux-system-roles.storage : manage the pools and volumes to match the specified state] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:104 fatal: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2]: FAILED! => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "msg": "encrypted volume 'test1' missing key/password", "packages": [], "pools": [], "volumes": []} TASK [Check that we failed in the role] **************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_luks.yml:196 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the output of the keyless luks test] ****************************** task path: /tmp/tmp7ksfxpzz/tests/tests_luks.yml:202 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Create an encrypted partition volume w/ default fs] ********************** task path: /tmp/tmp7ksfxpzz/tests/tests_luks.yml:209 TASK [linux-system-roles.storage : Set version specific variables] ************* task path: /tmp/tmp7ksfxpzz/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-crypto", "libblockdev-dm", "libblockdev-lvm", "libblockdev-mdraid", "libblockdev-swap"]}, "ansible_included_var_files": ["/tmp/tmp7ksfxpzz/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.storage : define an empty list of pools to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : define an empty list of volumes to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : include the appropriate provider tasks] ***** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:22 included: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [linux-system-roles.storage : get a list of rpm packages installed on host machine] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : make sure blivet is available] ************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: python3-blivet", "Installed: libblockdev-crypto", "Installed: libblockdev-dm", "Installed: libblockdev-lvm", "Installed: libblockdev-mdraid", "Installed: libblockdev-swap"]} TASK [linux-system-roles.storage : initialize internal facts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools": [], "_storage_vol_defaults": [], "_storage_vol_pools": [], "_storage_vols_no_defaults": [], "_storage_vols_no_defaults_by_pool": {}, "_storage_vols_w_defaults": [], "_storage_volumes": []}, "changed": false} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [1/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:28 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'disks': [u'vda'], u'type': u'partition', u'name': u'foo', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'encryption_password': u'yabbadabbadoo', u'encryption': True, u'type': u'partition', u'size': u'4g'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "partition", "volumes": [{"encryption": true, "encryption_password": "yabbadabbadoo", "mount_point": "/opt/test1", "name": "test1", "size": "4g", "type": "partition"}]}]}, "ansible_loop_var": "pool", "changed": false, "pool": {"disks": ["vda"], "name": "foo", "type": "partition", "volumes": [{"encryption": true, "encryption_password": "yabbadabbadoo", "mount_point": "/opt/test1", "name": "test1", "size": "4g", "type": "partition"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [2/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:36 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'encryption_password': u'yabbadabbadoo', u'encryption': True, u'type': u'partition', u'size': u'4g'}], u'type': u'partition', u'encryption_key_size': None}, {u'mount_point': u'/opt/test1', u'name': u'test1', u'encryption_password': u'yabbadabbadoo', u'encryption': True, u'type': u'partition', u'size': u'4g'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}], "_storage_vol_pools": ["foo"], "_storage_vols_no_defaults": [{"encryption": true, "encryption_password": "yabbadabbadoo", "mount_point": "/opt/test1", "name": "test1", "size": "4g", "type": "partition"}]}, "ansible_loop_var": "item", "changed": false, "item": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "partition", "volumes": [{"encryption": true, "encryption_password": "yabbadabbadoo", "mount_point": "/opt/test1", "name": "test1", "size": "4g", "type": "partition"}]}, {"encryption": true, "encryption_password": "yabbadabbadoo", "mount_point": "/opt/test1", "name": "test1", "size": "4g", "type": "partition"}]} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [3/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:44 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'mount_point': u'/opt/test1', u'name': u'test1', u'encryption_password': u'yabbadabbadoo', u'encryption': True, u'type': u'partition', u'size': u'4g'}, {u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'fs_label': u'', u'raid_level': None, u'mount_device_identifier': u'uuid', u'fs_type': u'xfs', u'mount_options': u'defaults', u'encryption_luks_version': None, u'raid_spare_count': None, u'size': 0, u'mount_point': u'', u'encryption_password': None, u'encryption': False, u'raid_chunk_size': None, u'raid_device_count': None, u'state': u'present', u'mount_check': 0, u'mount_passno': 0, u'fs_overwrite_existing': True, u'type': u'lvm', u'encryption_key_size': None, u'fs_create_options': u''}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"encryption": true, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": "yabbadabbadoo", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "partition"}]}, "ansible_index_var": "idx", "ansible_loop_var": "item", "changed": false, "idx": 0, "item": [{"encryption": true, "encryption_password": "yabbadabbadoo", "mount_point": "/opt/test1", "name": "test1", "size": "4g", "type": "partition"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}]} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [4/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:52 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'encryption_password': u'yabbadabbadoo', u'encryption': True, u'type': u'partition', u'size': u'4g'}], u'type': u'partition', u'encryption_key_size': None}) => {"ansible_facts": {"_storage_vols_no_defaults_by_pool": {"foo": [{"encryption": true, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": "yabbadabbadoo", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "partition"}]}}, "ansible_loop_var": "item", "changed": false, "item": {"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "partition", "volumes": [{"encryption": true, "encryption_password": "yabbadabbadoo", "mount_point": "/opt/test1", "name": "test1", "size": "4g", "type": "partition"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [5/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:61 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'encryption_password': u'yabbadabbadoo', u'encryption': True, u'type': u'partition', u'size': u'4g'}], u'type': u'partition', u'encryption_key_size': None}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "partition", "volumes": [{"encryption": true, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": "yabbadabbadoo", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "partition"}]}]}, "ansible_index_var": "idx", "ansible_loop_var": "pool", "changed": false, "idx": 0, "pool": {"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "partition", "volumes": [{"encryption": true, "encryption_password": "yabbadabbadoo", "mount_point": "/opt/test1", "name": "test1", "size": "4g", "type": "partition"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [6/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:72 TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "partition", "volumes": [ { "encryption": true, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": "yabbadabbadoo", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "partition" } ] } ] } TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes": [] } TASK [linux-system-roles.storage : get required packages] ********************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": ["cryptsetup", "xfsprogs"], "pools": [], "volumes": []} TASK [linux-system-roles.storage : make sure required packages are installed] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: cryptsetup", "Installed: xfsprogs"]} TASK [linux-system-roles.storage : manage the pools and volumes to match the specified state] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:104 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [{"action": "destroy format", "device": "/dev/mapper/luks-7f277c4c-90fe-46a2-884e-ccced34df750", "fs_type": "xfs"}, {"action": "destroy device", "device": "/dev/mapper/luks-7f277c4c-90fe-46a2-884e-ccced34df750", "fs_type": null}, {"action": "destroy format", "device": "/dev/vda", "fs_type": "luks"}, {"action": "create format", "device": "/dev/vda", "fs_type": "disklabel"}, {"action": "create device", "device": "/dev/vda1", "fs_type": null}, {"action": "create format", "device": "/dev/vda1", "fs_type": "luks"}, {"action": "create device", "device": "/dev/mapper/luks-e4d36bd1-8554-4368-b758-f1a79ecc524e", "fs_type": null}, {"action": "create format", "device": "/dev/mapper/luks-e4d36bd1-8554-4368-b758-f1a79ecc524e", "fs_type": "xfs"}], "changed": true, "crypts": [{"backing_device": "/dev/vda", "name": "luks-7f277c4c-90fe-46a2-884e-ccced34df750", "password": "-", "state": "absent"}, {"backing_device": "/dev/vda1", "name": "luks-e4d36bd1-8554-4368-b758-f1a79ecc524e", "password": "-", "state": "present"}], "leaves": ["/dev/sda1", "/dev/sr0", "/dev/vdb", "/dev/vdc", "/dev/mapper/luks-e4d36bd1-8554-4368-b758-f1a79ecc524e"], "mounts": [{"fstype": "xfs", "path": "/opt/test1", "src": "/dev/mapper/luks-7f277c4c-90fe-46a2-884e-ccced34df750", "state": "absent"}, {"dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "/dev/mapper/luks-e4d36bd1-8554-4368-b758-f1a79ecc524e", "state": "mounted"}], "packages": ["cryptsetup", "xfsprogs", "e2fsprogs"], "pools": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "partition", "volumes": [{"_device": "/dev/mapper/luks-e4d36bd1-8554-4368-b758-f1a79ecc524e", "_kernel_device": "/dev/dm-0", "_mount_id": "/dev/mapper/luks-e4d36bd1-8554-4368-b758-f1a79ecc524e", "_raw_device": "/dev/vda1", "_raw_kernel_device": "/dev/vda1", "encryption": true, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": "yabbadabbadoo", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "partition"}]}], "volumes": []} TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:114 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "blivet_output": { "actions": [ { "action": "destroy format", "device": "/dev/mapper/luks-7f277c4c-90fe-46a2-884e-ccced34df750", "fs_type": "xfs" }, { "action": "destroy device", "device": "/dev/mapper/luks-7f277c4c-90fe-46a2-884e-ccced34df750", "fs_type": null }, { "action": "destroy format", "device": "/dev/vda", "fs_type": "luks" }, { "action": "create format", "device": "/dev/vda", "fs_type": "disklabel" }, { "action": "create device", "device": "/dev/vda1", "fs_type": null }, { "action": "create format", "device": "/dev/vda1", "fs_type": "luks" }, { "action": "create device", "device": "/dev/mapper/luks-e4d36bd1-8554-4368-b758-f1a79ecc524e", "fs_type": null }, { "action": "create format", "device": "/dev/mapper/luks-e4d36bd1-8554-4368-b758-f1a79ecc524e", "fs_type": "xfs" } ], "changed": true, "crypts": [ { "backing_device": "/dev/vda", "name": "luks-7f277c4c-90fe-46a2-884e-ccced34df750", "password": "-", "state": "absent" }, { "backing_device": "/dev/vda1", "name": "luks-e4d36bd1-8554-4368-b758-f1a79ecc524e", "password": "-", "state": "present" } ], "failed": false, "leaves": [ "/dev/sda1", "/dev/sr0", "/dev/vdb", "/dev/vdc", "/dev/mapper/luks-e4d36bd1-8554-4368-b758-f1a79ecc524e" ], "mounts": [ { "fstype": "xfs", "path": "/opt/test1", "src": "/dev/mapper/luks-7f277c4c-90fe-46a2-884e-ccced34df750", "state": "absent" }, { "dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "/dev/mapper/luks-e4d36bd1-8554-4368-b758-f1a79ecc524e", "state": "mounted" } ], "packages": [ "cryptsetup", "xfsprogs", "e2fsprogs" ], "pools": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "partition", "volumes": [ { "_device": "/dev/mapper/luks-e4d36bd1-8554-4368-b758-f1a79ecc524e", "_kernel_device": "/dev/dm-0", "_mount_id": "/dev/mapper/luks-e4d36bd1-8554-4368-b758-f1a79ecc524e", "_raw_device": "/dev/vda1", "_raw_kernel_device": "/dev/vda1", "encryption": true, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": "yabbadabbadoo", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "partition" } ] } ], "volumes": [] } } TASK [linux-system-roles.storage : set the list of pools for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:117 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "partition", "volumes": [{"_device": "/dev/mapper/luks-e4d36bd1-8554-4368-b758-f1a79ecc524e", "_kernel_device": "/dev/dm-0", "_mount_id": "/dev/mapper/luks-e4d36bd1-8554-4368-b758-f1a79ecc524e", "_raw_device": "/dev/vda1", "_raw_kernel_device": "/dev/vda1", "encryption": true, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": "yabbadabbadoo", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "partition"}]}]}, "changed": false} TASK [linux-system-roles.storage : set the list of volumes for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:121 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : remove obsolete mounts] ********************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:137 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'src': u'/dev/mapper/luks-7f277c4c-90fe-46a2-884e-ccced34df750', u'state': u'absent', u'fstype': u'xfs', u'path': u'/opt/test1'}) => {"ansible_loop_var": "mount_info", "changed": true, "dump": "0", "fstab": "/etc/fstab", "fstype": "xfs", "mount_info": {"fstype": "xfs", "path": "/opt/test1", "src": "/dev/mapper/luks-7f277c4c-90fe-46a2-884e-ccced34df750", "state": "absent"}, "name": "/opt/test1", "opts": "defaults", "passno": "0", "src": "/dev/mapper/luks-7f277c4c-90fe-46a2-884e-ccced34df750"} TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:148 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [linux-system-roles.storage : set up new/current mounts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:153 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'src': u'/dev/mapper/luks-e4d36bd1-8554-4368-b758-f1a79ecc524e', u'state': u'mounted', u'dump': 0, u'path': u'/opt/test1', u'passno': 0, u'opts': u'defaults', u'fstype': u'xfs'}) => {"ansible_loop_var": "mount_info", "changed": true, "dump": "0", "fstab": "/etc/fstab", "fstype": "xfs", "mount_info": {"dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "/dev/mapper/luks-e4d36bd1-8554-4368-b758-f1a79ecc524e", "state": "mounted"}, "name": "/opt/test1", "opts": "defaults", "passno": "0", "src": "/dev/mapper/luks-e4d36bd1-8554-4368-b758-f1a79ecc524e"} TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:164 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [linux-system-roles.storage : Manage /etc/crypttab to account for changes we just made] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:172 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'state': u'absent', u'password': u'-', u'name': u'luks-7f277c4c-90fe-46a2-884e-ccced34df750', u'backing_device': u'/dev/vda'}) => {"ansible_loop_var": "entry", "backing_device": "/dev/vda", "changed": true, "entry": {"backing_device": "/dev/vda", "name": "luks-7f277c4c-90fe-46a2-884e-ccced34df750", "password": "-", "state": "absent"}, "gid": 0, "group": "root", "mode": "0600", "msg": "removed line", "name": "luks-7f277c4c-90fe-46a2-884e-ccced34df750", "opts": null, "owner": "root", "password": "-", "path": "/etc/crypttab", "secontext": "system_u:object_r:etc_t:s0", "size": 1, "state": "file", "uid": 0, "warnings": ["Module did not set no_log for password"]} changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'state': u'present', u'password': u'-', u'name': u'luks-e4d36bd1-8554-4368-b758-f1a79ecc524e', u'backing_device': u'/dev/vda1'}) => {"ansible_loop_var": "entry", "backing_device": "/dev/vda1", "changed": true, "entry": {"backing_device": "/dev/vda1", "name": "luks-e4d36bd1-8554-4368-b758-f1a79ecc524e", "password": "-", "state": "present"}, "gid": 0, "group": "root", "mode": "0600", "msg": "added line", "name": "luks-e4d36bd1-8554-4368-b758-f1a79ecc524e", "opts": null, "owner": "root", "password": "-", "path": "/etc/crypttab", "secontext": "system_u:object_r:etc_t:s0", "size": 55, "state": "file", "uid": 0, "warnings": ["Module did not set no_log for password"]} TASK [linux-system-roles.storage : Update facts] ******************************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:187 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_luks.yml:226 included: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Print out pool information] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:1 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools_list": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "partition", "volumes": [ { "_device": "/dev/mapper/luks-e4d36bd1-8554-4368-b758-f1a79ecc524e", "_kernel_device": "/dev/dm-0", "_mount_id": "/dev/mapper/luks-e4d36bd1-8554-4368-b758-f1a79ecc524e", "_raw_device": "/dev/vda1", "_raw_kernel_device": "/dev/vda1", "encryption": true, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": "yabbadabbadoo", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "partition" } ] } ] } TASK [Print out volume information] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:6 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {} TASK [Collect info about the volumes.] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "info": {"/dev/mapper/luks-e4d36bd1-8554-4368-b758-f1a79ecc524e": {"fstype": "xfs", "label": "", "name": "/dev/mapper/luks-e4d36bd1-8554-4368-b758-f1a79ecc524e", "size": "10G", "type": "crypt", "uuid": "95a41bb3-aeba-40d1-a99d-22ee391b2de0"}, "/dev/sda": {"fstype": "", "label": "", "name": "/dev/sda", "size": "4G", "type": "disk", "uuid": ""}, "/dev/sda1": {"fstype": "ext4", "label": "", "name": "/dev/sda1", "size": "4G", "type": "partition", "uuid": "03e702b4-e165-4a39-88c9-9e210cd00434"}, "/dev/sr0": {"fstype": "iso9660", "label": "cidata", "name": "/dev/sr0", "size": "364K", "type": "rom", "uuid": "2020-10-31-12-30-28-00"}, "/dev/vda": {"fstype": "", "label": "", "name": "/dev/vda", "size": "10G", "type": "disk", "uuid": ""}, "/dev/vda1": {"fstype": "crypto_LUKS", "label": "", "name": "/dev/vda1", "size": "10G", "type": "partition", "uuid": "e4d36bd1-8554-4368-b758-f1a79ecc524e"}, "/dev/vdb": {"fstype": "", "label": "", "name": "/dev/vdb", "size": "10G", "type": "disk", "uuid": ""}, "/dev/vdc": {"fstype": "", "label": "", "name": "/dev/vdc", "size": "10G", "type": "disk", "uuid": ""}}} TASK [Read the /etc/fstab file for volume existence] *************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:19 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/fstab"], "delta": "0:00:00.003187", "end": "2020-10-31 12:34:00.713607", "rc": 0, "start": "2020-10-31 12:34:00.710420", "stderr": "", "stderr_lines": [], "stdout": "\n#\n# /etc/fstab\n# Created by anaconda on Sat Oct 31 08:17:58 2020\n#\n# Accessible filesystems, by reference, are maintained under '/dev/disk/'.\n# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.\n#\n# After editing this file, run 'systemctl daemon-reload' to update systemd\n# units generated from this file.\n#\nUUID=03e702b4-e165-4a39-88c9-9e210cd00434 / ext4 defaults 1 1\n/dev/mapper/luks-e4d36bd1-8554-4368-b758-f1a79ecc524e /opt/test1 xfs defaults 0 0", "stdout_lines": ["", "#", "# /etc/fstab", "# Created by anaconda on Sat Oct 31 08:17:58 2020", "#", "# Accessible filesystems, by reference, are maintained under '/dev/disk/'.", "# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.", "#", "# After editing this file, run 'systemctl daemon-reload' to update systemd", "# units generated from this file.", "#", "UUID=03e702b4-e165-4a39-88c9-9e210cd00434 / ext4 defaults 1 1", "/dev/mapper/luks-e4d36bd1-8554-4368-b758-f1a79ecc524e /opt/test1 xfs defaults 0 0"]} TASK [Read the /etc/crypttab file] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/crypttab"], "delta": "0:00:00.002655", "end": "2020-10-31 12:34:01.066715", "rc": 0, "start": "2020-10-31 12:34:01.064060", "stderr": "", "stderr_lines": [], "stdout": "\nluks-e4d36bd1-8554-4368-b758-f1a79ecc524e /dev/vda1 -", "stdout_lines": ["", "luks-e4d36bd1-8554-4368-b758-f1a79ecc524e /dev/vda1 -"]} TASK [Verify the volumes listed in storage_pools were correctly managed] ******* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:32 [WARNING]: The loop variable 'storage_test_pool' is already in use. You should set the `loop_var` value in the `loop_control` option for the task to something else to avoid variable collisions and unexpected behavior. included: /tmp/tmp7ksfxpzz/tests/test-verify-pool.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool.yml:5 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pool_tests": ["members", "volumes"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool.yml:17 included: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-pool-volumes.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:1 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Get the canonical device path for each member device] ******************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:7 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:16 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify PV count] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:23 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:29 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:33 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check the type of each PV] *********************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:41 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check raid] ************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:50 included: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [get information about RAID] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:6 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:12 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:16 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:20 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID active devices count] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:24 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID spare devices count] ****************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:30 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID metadata version] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:36 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:44 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_md_active_devices_re": null, "storage_test_md_metadata_version_re": null, "storage_test_md_spare_devices_re": null}, "changed": false} TASK [Check member encryption] ************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:53 included: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_crypttab_entries": "0", "_storage_test_expected_crypttab_key_file": "-"}, "changed": false} TASK [Validate pool member LUKS settings] ************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:8 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Validate pool member crypttab entries] *********************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:15 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:22 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null, "_storage_test_crypttab_key_file": null}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:56 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_count": null, "_storage_test_expected_pv_type": null, "_storage_test_pool_pvs": [], "_storage_test_pool_pvs_lvm": []}, "changed": false} TASK [verify the volumes] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-volumes.yml:3 [WARNING]: The loop variable 'storage_test_volume' is already in use. You should set the `loop_var` value in the `loop_control` option for the task to something else to avoid variable collisions and unexpected behavior. included: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": true, "_storage_volume_tests": ["mount", "fstab", "fs", "device", "encryption", "md", "size"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:10 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Get expected mount device based on device type] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/luks-e4d36bd1-8554-4368-b758-f1a79ecc524e"}, "changed": false} TASK [Set some facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [{"block_available": 2591597, "block_size": 4096, "block_total": 2618112, "block_used": 26515, "device": "/dev/mapper/luks-e4d36bd1-8554-4368-b758-f1a79ecc524e", "fstype": "xfs", "inode_available": 5241341, "inode_total": 5241344, "inode_used": 3, "mount": "/opt/test1", "options": "rw,seclabel,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota", "size_available": 10615181312, "size_total": 10723786752, "uuid": "95a41bb3-aeba-40d1-a99d-22ee391b2de0"}], "storage_test_mount_expected_match_count": "1", "storage_test_mount_point_matches": [{"block_available": 2591597, "block_size": 4096, "block_total": 2618112, "block_used": 26515, "device": "/dev/mapper/luks-e4d36bd1-8554-4368-b758-f1a79ecc524e", "fstype": "xfs", "inode_available": 5241341, "inode_total": 5241344, "inode_used": 3, "mount": "/opt/test1", "options": "rw,seclabel,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota", "size_available": 10615181312, "size_total": 10723786752, "uuid": "95a41bb3-aeba-40d1-a99d-22ee391b2de0"}], "storage_test_swap_expected_matches": "0"}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:22 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:31 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:39 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [command] ***************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Gather swap info] ******************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:52 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify swap status] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:57 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Unset facts] ************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:67 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null, "storage_test_swap_expected_matches": null, "storage_test_swaps": null, "storage_test_sys_node": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": "1", "storage_test_fstab_expected_mount_point_matches": "1", "storage_test_fstab_id_matches": ["/dev/mapper/luks-e4d36bd1-8554-4368-b758-f1a79ecc524e "], "storage_test_fstab_mount_point_matches": [" /opt/test1 "]}, "changed": false} TASK [Verify that the device identifier appears in /etc/fstab] ***************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:17 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": null, "storage_test_fstab_expected_mount_point_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [Verify fs type] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify fs label] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [See whether the device node is present] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "stat": {"atime": 1604147636.3802073, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "ctime": 1604147636.3802073, "dev": 5, "device_type": 64513, "executable": false, "exists": true, "gid": 6, "gr_name": "disk", "inode": 82623, "isblk": true, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mimetype": "inode/blockdevice", "mode": "0660", "mtime": 1604147636.3802073, "nlink": 1, "path": "/dev/vda1", "pw_name": "root", "readable": true, "rgrp": true, "roth": false, "rusr": true, "size": 0, "uid": 0, "version": null, "wgrp": true, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}} TASK [Verify the presence/absence of the device node] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "partition"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:28 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:33 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Stat the LUKS device, if encrypted] ************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:3 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "stat": {"atime": 1604147636.4752073, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "ctime": 1604147636.4752073, "dev": 5, "device_type": 64768, "executable": false, "exists": true, "gid": 6, "gr_name": "disk", "inode": 82627, "isblk": true, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mimetype": "inode/symlink", "mode": "0660", "mtime": 1604147636.4752073, "nlink": 1, "path": "/dev/mapper/luks-e4d36bd1-8554-4368-b758-f1a79ecc524e", "pw_name": "root", "readable": true, "rgrp": true, "roth": false, "rusr": true, "size": 0, "uid": 0, "version": null, "wgrp": true, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}} TASK [Collect LUKS info for this volume] *************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["cryptsetup", "luksDump", "/dev/vda1"], "delta": "0:00:00.010129", "end": "2020-10-31 12:34:03.937312", "rc": 0, "start": "2020-10-31 12:34:03.927183", "stderr": "", "stderr_lines": [], "stdout": "LUKS header information for /dev/vda1\n\nVersion: \t1\nCipher name: \taes\nCipher mode: \txts-plain64\nHash spec: \tsha256\nPayload offset:\t4096\nMK bits: \t512\nMK digest: \t6e 2c 9e 81 fb 2b 30 99 43 77 fa 2c 1c 6c 59 10 b6 9b 77 e2 \nMK salt: \t9b 89 f7 a3 9f d9 f5 bf cf 57 15 08 6e 12 2e 8d \n \tc9 94 be b7 e3 57 56 eb 45 6f c0 c4 d4 2f 67 05 \nMK iterations: \t118724\nUUID: \te4d36bd1-8554-4368-b758-f1a79ecc524e\n\nKey Slot 0: ENABLED\n\tIterations: \t1909974\n\tSalt: \t41 01 40 b6 bf 84 8f 39 13 3b a1 a3 de 35 d1 64 \n\t \ted e0 db e3 6e c4 c3 24 4c 4a 96 05 66 39 16 89 \n\tKey material offset:\t8\n\tAF stripes: \t4000\nKey Slot 1: DISABLED\nKey Slot 2: DISABLED\nKey Slot 3: DISABLED\nKey Slot 4: DISABLED\nKey Slot 5: DISABLED\nKey Slot 6: DISABLED\nKey Slot 7: DISABLED", "stdout_lines": ["LUKS header information for /dev/vda1", "", "Version: \t1", "Cipher name: \taes", "Cipher mode: \txts-plain64", "Hash spec: \tsha256", "Payload offset:\t4096", "MK bits: \t512", "MK digest: \t6e 2c 9e 81 fb 2b 30 99 43 77 fa 2c 1c 6c 59 10 b6 9b 77 e2 ", "MK salt: \t9b 89 f7 a3 9f d9 f5 bf cf 57 15 08 6e 12 2e 8d ", " \tc9 94 be b7 e3 57 56 eb 45 6f c0 c4 d4 2f 67 05 ", "MK iterations: \t118724", "UUID: \te4d36bd1-8554-4368-b758-f1a79ecc524e", "", "Key Slot 0: ENABLED", "\tIterations: \t1909974", "\tSalt: \t41 01 40 b6 bf 84 8f 39 13 3b a1 a3 de 35 d1 64 ", "\t \ted e0 db e3 6e c4 c3 24 4c 4a 96 05 66 39 16 89 ", "\tKey material offset:\t8", "\tAF stripes: \t4000", "Key Slot 1: DISABLED", "Key Slot 2: DISABLED", "Key Slot 3: DISABLED", "Key Slot 4: DISABLED", "Key Slot 5: DISABLED", "Key Slot 6: DISABLED", "Key Slot 7: DISABLED"]} TASK [Verify the presence/absence of the LUKS device node] ********************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:16 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify that the raw device is the same as the device if not encrypted] *** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:25 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about the LUKS volume if encrypted] **************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:31 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the LUKS volume's device type if encrypted] *********************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:37 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Check LUKS version] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:42 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS key size] ***************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS cipher] ******************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:54 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:60 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": ["luks-e4d36bd1-8554-4368-b758-f1a79ecc524e /dev/vda1 -"], "_storage_test_expected_crypttab_entries": "1", "_storage_test_expected_crypttab_key_file": "-"}, "changed": false} TASK [Check for /etc/crypttab entry] ******************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:65 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Validate the format of the crypttab entry] ******************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:70 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Check backing device of crypttab entry] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:76 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Check key file of crypttab entry] **************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:82 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:88 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null, "_storage_test_expected_crypttab_entries": null, "_storage_test_expected_crypttab_key_file": null}, "changed": false} TASK [get information about RAID] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:7 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:13 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:17 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID active devices count] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:25 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID spare devices count] ****************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID metadata version] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [parse the actual size of the volume] ************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:3 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [parse the requested size of the volume] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:9 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:15 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_actual_size": { "changed": false, "skip_reason": "Conditional result was False", "skipped": true } } TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_requested_size": { "changed": false, "skip_reason": "Conditional result was False", "skipped": true } } TASK [assert] ****************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Clean up facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:16 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:39 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_pool": null}, "changed": false} TASK [Verify the volumes with no pool were correctly managed] ****************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:46 TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:56 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_blkinfo": null, "storage_test_crypttab": null, "storage_test_fstab": null, "storage_test_volume": null}, "changed": false} TASK [create a file] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/create-test-file.yml:10 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": true, "dest": "/opt/test1/quux", "gid": 0, "group": "root", "mode": "0644", "owner": "root", "secontext": "unconfined_u:object_r:unlabeled_t:s0", "size": 0, "state": "file", "uid": 0} TASK [Remove the encryption layer] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/tests_luks.yml:232 TASK [linux-system-roles.storage : Set version specific variables] ************* task path: /tmp/tmp7ksfxpzz/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-crypto", "libblockdev-dm", "libblockdev-lvm", "libblockdev-mdraid", "libblockdev-swap"]}, "ansible_included_var_files": ["/tmp/tmp7ksfxpzz/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.storage : define an empty list of pools to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : define an empty list of volumes to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : include the appropriate provider tasks] ***** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:22 included: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [linux-system-roles.storage : get a list of rpm packages installed on host machine] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : make sure blivet is available] ************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: python3-blivet", "Installed: libblockdev-crypto", "Installed: libblockdev-dm", "Installed: libblockdev-lvm", "Installed: libblockdev-mdraid", "Installed: libblockdev-swap"]} TASK [linux-system-roles.storage : initialize internal facts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools": [], "_storage_vol_defaults": [], "_storage_vol_pools": [], "_storage_vols_no_defaults": [], "_storage_vols_no_defaults_by_pool": {}, "_storage_vols_w_defaults": [], "_storage_volumes": []}, "changed": false} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [1/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:28 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'disks': [u'vda'], u'type': u'partition', u'name': u'foo', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'encryption_password': u'yabbadabbadoo', u'encryption': False, u'type': u'partition', u'size': u'4g'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "partition", "volumes": [{"encryption": false, "encryption_password": "yabbadabbadoo", "mount_point": "/opt/test1", "name": "test1", "size": "4g", "type": "partition"}]}]}, "ansible_loop_var": "pool", "changed": false, "pool": {"disks": ["vda"], "name": "foo", "type": "partition", "volumes": [{"encryption": false, "encryption_password": "yabbadabbadoo", "mount_point": "/opt/test1", "name": "test1", "size": "4g", "type": "partition"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [2/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:36 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'encryption_password': u'yabbadabbadoo', u'encryption': False, u'type': u'partition', u'size': u'4g'}], u'type': u'partition', u'encryption_key_size': None}, {u'mount_point': u'/opt/test1', u'name': u'test1', u'encryption_password': u'yabbadabbadoo', u'encryption': False, u'type': u'partition', u'size': u'4g'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}], "_storage_vol_pools": ["foo"], "_storage_vols_no_defaults": [{"encryption": false, "encryption_password": "yabbadabbadoo", "mount_point": "/opt/test1", "name": "test1", "size": "4g", "type": "partition"}]}, "ansible_loop_var": "item", "changed": false, "item": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "partition", "volumes": [{"encryption": false, "encryption_password": "yabbadabbadoo", "mount_point": "/opt/test1", "name": "test1", "size": "4g", "type": "partition"}]}, {"encryption": false, "encryption_password": "yabbadabbadoo", "mount_point": "/opt/test1", "name": "test1", "size": "4g", "type": "partition"}]} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [3/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:44 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'mount_point': u'/opt/test1', u'name': u'test1', u'encryption_password': u'yabbadabbadoo', u'encryption': False, u'type': u'partition', u'size': u'4g'}, {u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'fs_label': u'', u'raid_level': None, u'mount_device_identifier': u'uuid', u'fs_type': u'xfs', u'mount_options': u'defaults', u'encryption_luks_version': None, u'raid_spare_count': None, u'size': 0, u'mount_point': u'', u'encryption_password': None, u'encryption': False, u'raid_chunk_size': None, u'raid_device_count': None, u'state': u'present', u'mount_check': 0, u'mount_passno': 0, u'fs_overwrite_existing': True, u'type': u'lvm', u'encryption_key_size': None, u'fs_create_options': u''}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": "yabbadabbadoo", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "partition"}]}, "ansible_index_var": "idx", "ansible_loop_var": "item", "changed": false, "idx": 0, "item": [{"encryption": false, "encryption_password": "yabbadabbadoo", "mount_point": "/opt/test1", "name": "test1", "size": "4g", "type": "partition"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}]} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [4/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:52 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'encryption_password': u'yabbadabbadoo', u'encryption': False, u'type': u'partition', u'size': u'4g'}], u'type': u'partition', u'encryption_key_size': None}) => {"ansible_facts": {"_storage_vols_no_defaults_by_pool": {"foo": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": "yabbadabbadoo", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "partition"}]}}, "ansible_loop_var": "item", "changed": false, "item": {"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "partition", "volumes": [{"encryption": false, "encryption_password": "yabbadabbadoo", "mount_point": "/opt/test1", "name": "test1", "size": "4g", "type": "partition"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [5/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:61 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'encryption_password': u'yabbadabbadoo', u'encryption': False, u'type': u'partition', u'size': u'4g'}], u'type': u'partition', u'encryption_key_size': None}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "partition", "volumes": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": "yabbadabbadoo", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "partition"}]}]}, "ansible_index_var": "idx", "ansible_loop_var": "pool", "changed": false, "idx": 0, "pool": {"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "partition", "volumes": [{"encryption": false, "encryption_password": "yabbadabbadoo", "mount_point": "/opt/test1", "name": "test1", "size": "4g", "type": "partition"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [6/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:72 TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "partition", "volumes": [ { "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": "yabbadabbadoo", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "partition" } ] } ] } TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes": [] } TASK [linux-system-roles.storage : get required packages] ********************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": ["xfsprogs"], "pools": [], "volumes": []} TASK [linux-system-roles.storage : make sure required packages are installed] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: xfsprogs"]} TASK [linux-system-roles.storage : manage the pools and volumes to match the specified state] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:104 fatal: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2]: FAILED! => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "msg": "cannot remove existing formatting on device 'luks-e4d36bd1-8554-4368-b758-f1a79ecc524e' in safe mode due to encryption removal", "packages": [], "pools": [], "volumes": []} TASK [Check that we failed in the role] **************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_luks.yml:251 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the output of the safe_mode test] ********************************* task path: /tmp/tmp7ksfxpzz/tests/tests_luks.yml:257 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [stat the file] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-data-preservation.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "stat": {"atime": 1604147645.2532072, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "checksum": "da39a3ee5e6b4b0d3255bfef95601890afd80709", "ctime": 1604147645.2532072, "dev": 64768, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 131, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "inode/x-empty", "mode": "0644", "mtime": 1604147645.2532072, "nlink": 1, "path": "/opt/test1/quux", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 0, "uid": 0, "version": "959177614", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}} TASK [assert file presence] **************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-data-preservation.yml:15 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Remove the encryption layer] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/tests_luks.yml:268 TASK [linux-system-roles.storage : Set version specific variables] ************* task path: /tmp/tmp7ksfxpzz/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-crypto", "libblockdev-dm", "libblockdev-lvm", "libblockdev-mdraid", "libblockdev-swap"]}, "ansible_included_var_files": ["/tmp/tmp7ksfxpzz/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.storage : define an empty list of pools to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : define an empty list of volumes to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : include the appropriate provider tasks] ***** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:22 included: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [linux-system-roles.storage : get a list of rpm packages installed on host machine] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : make sure blivet is available] ************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: python3-blivet", "Installed: libblockdev-crypto", "Installed: libblockdev-dm", "Installed: libblockdev-lvm", "Installed: libblockdev-mdraid", "Installed: libblockdev-swap"]} TASK [linux-system-roles.storage : initialize internal facts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools": [], "_storage_vol_defaults": [], "_storage_vol_pools": [], "_storage_vols_no_defaults": [], "_storage_vols_no_defaults_by_pool": {}, "_storage_vols_w_defaults": [], "_storage_volumes": []}, "changed": false} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [1/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:28 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'disks': [u'vda'], u'type': u'partition', u'name': u'foo', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'encryption_password': u'yabbadabbadoo', u'encryption': False, u'type': u'partition', u'size': u'4g'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "partition", "volumes": [{"encryption": false, "encryption_password": "yabbadabbadoo", "mount_point": "/opt/test1", "name": "test1", "size": "4g", "type": "partition"}]}]}, "ansible_loop_var": "pool", "changed": false, "pool": {"disks": ["vda"], "name": "foo", "type": "partition", "volumes": [{"encryption": false, "encryption_password": "yabbadabbadoo", "mount_point": "/opt/test1", "name": "test1", "size": "4g", "type": "partition"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [2/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:36 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'encryption_password': u'yabbadabbadoo', u'encryption': False, u'type': u'partition', u'size': u'4g'}], u'type': u'partition', u'encryption_key_size': None}, {u'mount_point': u'/opt/test1', u'name': u'test1', u'encryption_password': u'yabbadabbadoo', u'encryption': False, u'type': u'partition', u'size': u'4g'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}], "_storage_vol_pools": ["foo"], "_storage_vols_no_defaults": [{"encryption": false, "encryption_password": "yabbadabbadoo", "mount_point": "/opt/test1", "name": "test1", "size": "4g", "type": "partition"}]}, "ansible_loop_var": "item", "changed": false, "item": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "partition", "volumes": [{"encryption": false, "encryption_password": "yabbadabbadoo", "mount_point": "/opt/test1", "name": "test1", "size": "4g", "type": "partition"}]}, {"encryption": false, "encryption_password": "yabbadabbadoo", "mount_point": "/opt/test1", "name": "test1", "size": "4g", "type": "partition"}]} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [3/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:44 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'mount_point': u'/opt/test1', u'name': u'test1', u'encryption_password': u'yabbadabbadoo', u'encryption': False, u'type': u'partition', u'size': u'4g'}, {u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'fs_label': u'', u'raid_level': None, u'mount_device_identifier': u'uuid', u'fs_type': u'xfs', u'mount_options': u'defaults', u'encryption_luks_version': None, u'raid_spare_count': None, u'size': 0, u'mount_point': u'', u'encryption_password': None, u'encryption': False, u'raid_chunk_size': None, u'raid_device_count': None, u'state': u'present', u'mount_check': 0, u'mount_passno': 0, u'fs_overwrite_existing': True, u'type': u'lvm', u'encryption_key_size': None, u'fs_create_options': u''}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": "yabbadabbadoo", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "partition"}]}, "ansible_index_var": "idx", "ansible_loop_var": "item", "changed": false, "idx": 0, "item": [{"encryption": false, "encryption_password": "yabbadabbadoo", "mount_point": "/opt/test1", "name": "test1", "size": "4g", "type": "partition"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}]} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [4/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:52 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'encryption_password': u'yabbadabbadoo', u'encryption': False, u'type': u'partition', u'size': u'4g'}], u'type': u'partition', u'encryption_key_size': None}) => {"ansible_facts": {"_storage_vols_no_defaults_by_pool": {"foo": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": "yabbadabbadoo", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "partition"}]}}, "ansible_loop_var": "item", "changed": false, "item": {"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "partition", "volumes": [{"encryption": false, "encryption_password": "yabbadabbadoo", "mount_point": "/opt/test1", "name": "test1", "size": "4g", "type": "partition"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [5/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:61 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'encryption_password': u'yabbadabbadoo', u'encryption': False, u'type': u'partition', u'size': u'4g'}], u'type': u'partition', u'encryption_key_size': None}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "partition", "volumes": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": "yabbadabbadoo", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "partition"}]}]}, "ansible_index_var": "idx", "ansible_loop_var": "pool", "changed": false, "idx": 0, "pool": {"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "partition", "volumes": [{"encryption": false, "encryption_password": "yabbadabbadoo", "mount_point": "/opt/test1", "name": "test1", "size": "4g", "type": "partition"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [6/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:72 TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "partition", "volumes": [ { "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": "yabbadabbadoo", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "partition" } ] } ] } TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes": [] } TASK [linux-system-roles.storage : get required packages] ********************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": ["xfsprogs"], "pools": [], "volumes": []} TASK [linux-system-roles.storage : make sure required packages are installed] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: xfsprogs"]} TASK [linux-system-roles.storage : manage the pools and volumes to match the specified state] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:104 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [{"action": "destroy format", "device": "/dev/mapper/luks-e4d36bd1-8554-4368-b758-f1a79ecc524e", "fs_type": "xfs"}, {"action": "destroy device", "device": "/dev/mapper/luks-e4d36bd1-8554-4368-b758-f1a79ecc524e", "fs_type": null}, {"action": "destroy format", "device": "/dev/vda1", "fs_type": "luks"}, {"action": "create format", "device": "/dev/vda1", "fs_type": "xfs"}], "changed": true, "crypts": [{"backing_device": "/dev/vda1", "name": "luks-e4d36bd1-8554-4368-b758-f1a79ecc524e", "password": "-", "state": "absent"}], "leaves": ["/dev/sda1", "/dev/sr0", "/dev/vda1", "/dev/vdb", "/dev/vdc"], "mounts": [{"fstype": "xfs", "path": "/opt/test1", "src": "/dev/mapper/luks-e4d36bd1-8554-4368-b758-f1a79ecc524e", "state": "absent"}, {"dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "UUID=e2d6a001-28eb-4560-8dd3-7d48d91bf44c", "state": "mounted"}], "packages": ["e2fsprogs", "xfsprogs"], "pools": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "partition", "volumes": [{"_device": "/dev/vda1", "_kernel_device": "/dev/vda1", "_mount_id": "UUID=e2d6a001-28eb-4560-8dd3-7d48d91bf44c", "_raw_device": "/dev/vda1", "_raw_kernel_device": "/dev/vda1", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": "yabbadabbadoo", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "partition"}]}], "volumes": []} TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:114 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "blivet_output": { "actions": [ { "action": "destroy format", "device": "/dev/mapper/luks-e4d36bd1-8554-4368-b758-f1a79ecc524e", "fs_type": "xfs" }, { "action": "destroy device", "device": "/dev/mapper/luks-e4d36bd1-8554-4368-b758-f1a79ecc524e", "fs_type": null }, { "action": "destroy format", "device": "/dev/vda1", "fs_type": "luks" }, { "action": "create format", "device": "/dev/vda1", "fs_type": "xfs" } ], "changed": true, "crypts": [ { "backing_device": "/dev/vda1", "name": "luks-e4d36bd1-8554-4368-b758-f1a79ecc524e", "password": "-", "state": "absent" } ], "failed": false, "leaves": [ "/dev/sda1", "/dev/sr0", "/dev/vda1", "/dev/vdb", "/dev/vdc" ], "mounts": [ { "fstype": "xfs", "path": "/opt/test1", "src": "/dev/mapper/luks-e4d36bd1-8554-4368-b758-f1a79ecc524e", "state": "absent" }, { "dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "UUID=e2d6a001-28eb-4560-8dd3-7d48d91bf44c", "state": "mounted" } ], "packages": [ "e2fsprogs", "xfsprogs" ], "pools": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "partition", "volumes": [ { "_device": "/dev/vda1", "_kernel_device": "/dev/vda1", "_mount_id": "UUID=e2d6a001-28eb-4560-8dd3-7d48d91bf44c", "_raw_device": "/dev/vda1", "_raw_kernel_device": "/dev/vda1", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": "yabbadabbadoo", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "partition" } ] } ], "volumes": [] } } TASK [linux-system-roles.storage : set the list of pools for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:117 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "partition", "volumes": [{"_device": "/dev/vda1", "_kernel_device": "/dev/vda1", "_mount_id": "UUID=e2d6a001-28eb-4560-8dd3-7d48d91bf44c", "_raw_device": "/dev/vda1", "_raw_kernel_device": "/dev/vda1", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": "yabbadabbadoo", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "partition"}]}]}, "changed": false} TASK [linux-system-roles.storage : set the list of volumes for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:121 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : remove obsolete mounts] ********************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:137 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'src': u'/dev/mapper/luks-e4d36bd1-8554-4368-b758-f1a79ecc524e', u'state': u'absent', u'fstype': u'xfs', u'path': u'/opt/test1'}) => {"ansible_loop_var": "mount_info", "changed": true, "dump": "0", "fstab": "/etc/fstab", "fstype": "xfs", "mount_info": {"fstype": "xfs", "path": "/opt/test1", "src": "/dev/mapper/luks-e4d36bd1-8554-4368-b758-f1a79ecc524e", "state": "absent"}, "name": "/opt/test1", "opts": "defaults", "passno": "0", "src": "/dev/mapper/luks-e4d36bd1-8554-4368-b758-f1a79ecc524e"} TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:148 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [linux-system-roles.storage : set up new/current mounts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:153 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'src': u'UUID=e2d6a001-28eb-4560-8dd3-7d48d91bf44c', u'state': u'mounted', u'dump': 0, u'path': u'/opt/test1', u'passno': 0, u'opts': u'defaults', u'fstype': u'xfs'}) => {"ansible_loop_var": "mount_info", "changed": true, "dump": "0", "fstab": "/etc/fstab", "fstype": "xfs", "mount_info": {"dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "UUID=e2d6a001-28eb-4560-8dd3-7d48d91bf44c", "state": "mounted"}, "name": "/opt/test1", "opts": "defaults", "passno": "0", "src": "UUID=e2d6a001-28eb-4560-8dd3-7d48d91bf44c"} TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:164 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [linux-system-roles.storage : Manage /etc/crypttab to account for changes we just made] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:172 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'state': u'absent', u'password': u'-', u'name': u'luks-e4d36bd1-8554-4368-b758-f1a79ecc524e', u'backing_device': u'/dev/vda1'}) => {"ansible_loop_var": "entry", "backing_device": "/dev/vda1", "changed": true, "entry": {"backing_device": "/dev/vda1", "name": "luks-e4d36bd1-8554-4368-b758-f1a79ecc524e", "password": "-", "state": "absent"}, "gid": 0, "group": "root", "mode": "0600", "msg": "removed line", "name": "luks-e4d36bd1-8554-4368-b758-f1a79ecc524e", "opts": null, "owner": "root", "password": "-", "path": "/etc/crypttab", "secontext": "system_u:object_r:etc_t:s0", "size": 1, "state": "file", "uid": 0, "warnings": ["Module did not set no_log for password"]} TASK [linux-system-roles.storage : Update facts] ******************************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:187 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_luks.yml:285 included: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Print out pool information] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:1 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools_list": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "partition", "volumes": [ { "_device": "/dev/vda1", "_kernel_device": "/dev/vda1", "_mount_id": "UUID=e2d6a001-28eb-4560-8dd3-7d48d91bf44c", "_raw_device": "/dev/vda1", "_raw_kernel_device": "/dev/vda1", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": "yabbadabbadoo", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "partition" } ] } ] } TASK [Print out volume information] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:6 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {} TASK [Collect info about the volumes.] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "info": {"/dev/sda": {"fstype": "", "label": "", "name": "/dev/sda", "size": "4G", "type": "disk", "uuid": ""}, "/dev/sda1": {"fstype": "ext4", "label": "", "name": "/dev/sda1", "size": "4G", "type": "partition", "uuid": "03e702b4-e165-4a39-88c9-9e210cd00434"}, "/dev/sr0": {"fstype": "iso9660", "label": "cidata", "name": "/dev/sr0", "size": "364K", "type": "rom", "uuid": "2020-10-31-12-30-28-00"}, "/dev/vda": {"fstype": "", "label": "", "name": "/dev/vda", "size": "10G", "type": "disk", "uuid": ""}, "/dev/vda1": {"fstype": "xfs", "label": "", "name": "/dev/vda1", "size": "10G", "type": "partition", "uuid": "e2d6a001-28eb-4560-8dd3-7d48d91bf44c"}, "/dev/vdb": {"fstype": "", "label": "", "name": "/dev/vdb", "size": "10G", "type": "disk", "uuid": ""}, "/dev/vdc": {"fstype": "", "label": "", "name": "/dev/vdc", "size": "10G", "type": "disk", "uuid": ""}}} TASK [Read the /etc/fstab file for volume existence] *************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:19 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/fstab"], "delta": "0:00:00.002600", "end": "2020-10-31 12:34:33.684600", "rc": 0, "start": "2020-10-31 12:34:33.682000", "stderr": "", "stderr_lines": [], "stdout": "\n#\n# /etc/fstab\n# Created by anaconda on Sat Oct 31 08:17:58 2020\n#\n# Accessible filesystems, by reference, are maintained under '/dev/disk/'.\n# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.\n#\n# After editing this file, run 'systemctl daemon-reload' to update systemd\n# units generated from this file.\n#\nUUID=03e702b4-e165-4a39-88c9-9e210cd00434 / ext4 defaults 1 1\nUUID=e2d6a001-28eb-4560-8dd3-7d48d91bf44c /opt/test1 xfs defaults 0 0", "stdout_lines": ["", "#", "# /etc/fstab", "# Created by anaconda on Sat Oct 31 08:17:58 2020", "#", "# Accessible filesystems, by reference, are maintained under '/dev/disk/'.", "# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.", "#", "# After editing this file, run 'systemctl daemon-reload' to update systemd", "# units generated from this file.", "#", "UUID=03e702b4-e165-4a39-88c9-9e210cd00434 / ext4 defaults 1 1", "UUID=e2d6a001-28eb-4560-8dd3-7d48d91bf44c /opt/test1 xfs defaults 0 0"]} TASK [Read the /etc/crypttab file] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/crypttab"], "delta": "0:00:00.002845", "end": "2020-10-31 12:34:34.010918", "rc": 0, "start": "2020-10-31 12:34:34.008073", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Verify the volumes listed in storage_pools were correctly managed] ******* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:32 [WARNING]: The loop variable 'storage_test_pool' is already in use. You should set the `loop_var` value in the `loop_control` option for the task to something else to avoid variable collisions and unexpected behavior. included: /tmp/tmp7ksfxpzz/tests/test-verify-pool.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool.yml:5 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pool_tests": ["members", "volumes"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool.yml:17 included: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-pool-volumes.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:1 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Get the canonical device path for each member device] ******************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:7 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:16 TASK [Verify PV count] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:23 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:29 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:33 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check the type of each PV] *********************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:41 TASK [Check raid] ************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:50 included: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [get information about RAID] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:6 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:12 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:16 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:20 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID active devices count] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:24 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID spare devices count] ****************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:30 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID metadata version] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:36 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:44 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_md_active_devices_re": null, "storage_test_md_metadata_version_re": null, "storage_test_md_spare_devices_re": null}, "changed": false} TASK [Check member encryption] ************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:53 included: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_crypttab_entries": "0", "_storage_test_expected_crypttab_key_file": "-"}, "changed": false} TASK [Validate pool member LUKS settings] ************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:8 TASK [Validate pool member crypttab entries] *********************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:15 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:22 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null, "_storage_test_crypttab_key_file": null}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:56 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_count": null, "_storage_test_expected_pv_type": null, "_storage_test_pool_pvs": [], "_storage_test_pool_pvs_lvm": []}, "changed": false} TASK [verify the volumes] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-volumes.yml:3 [WARNING]: The loop variable 'storage_test_volume' is already in use. You should set the `loop_var` value in the `loop_control` option for the task to something else to avoid variable collisions and unexpected behavior. included: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": true, "_storage_volume_tests": ["mount", "fstab", "fs", "device", "encryption", "md", "size"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:10 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Get expected mount device based on device type] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/vda1"}, "changed": false} TASK [Set some facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [{"block_available": 2592102, "block_size": 4096, "block_total": 2618624, "block_used": 26522, "device": "/dev/vda1", "fstype": "xfs", "inode_available": 5242365, "inode_total": 5242368, "inode_used": 3, "mount": "/opt/test1", "options": "rw,seclabel,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota", "size_available": 10617249792, "size_total": 10725883904, "uuid": "e2d6a001-28eb-4560-8dd3-7d48d91bf44c"}], "storage_test_mount_expected_match_count": "1", "storage_test_mount_point_matches": [{"block_available": 2592102, "block_size": 4096, "block_total": 2618624, "block_used": 26522, "device": "/dev/vda1", "fstype": "xfs", "inode_available": 5242365, "inode_total": 5242368, "inode_used": 3, "mount": "/opt/test1", "options": "rw,seclabel,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota", "size_available": 10617249792, "size_total": 10725883904, "uuid": "e2d6a001-28eb-4560-8dd3-7d48d91bf44c"}], "storage_test_swap_expected_matches": "0"}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:22 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:31 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:39 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [command] ***************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Gather swap info] ******************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:52 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify swap status] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:57 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Unset facts] ************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:67 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null, "storage_test_swap_expected_matches": null, "storage_test_swaps": null, "storage_test_sys_node": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": "1", "storage_test_fstab_expected_mount_point_matches": "1", "storage_test_fstab_id_matches": ["UUID=e2d6a001-28eb-4560-8dd3-7d48d91bf44c "], "storage_test_fstab_mount_point_matches": [" /opt/test1 "]}, "changed": false} TASK [Verify that the device identifier appears in /etc/fstab] ***************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:17 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": null, "storage_test_fstab_expected_mount_point_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [Verify fs type] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify fs label] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [See whether the device node is present] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "stat": {"atime": 1604147669.8332074, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "ctime": 1604147669.8332074, "dev": 5, "device_type": 64513, "executable": false, "exists": true, "gid": 6, "gr_name": "disk", "inode": 82623, "isblk": true, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mimetype": "inode/blockdevice", "mode": "0660", "mtime": 1604147669.8332074, "nlink": 1, "path": "/dev/vda1", "pw_name": "root", "readable": true, "rgrp": true, "roth": false, "rusr": true, "size": 0, "uid": 0, "version": null, "wgrp": true, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}} TASK [Verify the presence/absence of the device node] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "partition"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:28 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:33 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Stat the LUKS device, if encrypted] ************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:3 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Collect LUKS info for this volume] *************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:10 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the presence/absence of the LUKS device node] ********************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:16 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify that the raw device is the same as the device if not encrypted] *** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:25 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about the LUKS volume if encrypted] **************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the LUKS volume's device type if encrypted] *********************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS version] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:42 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS key size] ***************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS cipher] ******************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:54 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:60 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": [], "_storage_test_expected_crypttab_entries": "0", "_storage_test_expected_crypttab_key_file": "-"}, "changed": false} TASK [Check for /etc/crypttab entry] ******************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:65 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Validate the format of the crypttab entry] ******************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:70 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check backing device of crypttab entry] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:76 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check key file of crypttab entry] **************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:82 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:88 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null, "_storage_test_expected_crypttab_entries": null, "_storage_test_expected_crypttab_key_file": null}, "changed": false} TASK [get information about RAID] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:7 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:13 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:17 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID active devices count] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:25 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID spare devices count] ****************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID metadata version] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [parse the actual size of the volume] ************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:3 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [parse the requested size of the volume] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:9 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:15 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_actual_size": { "changed": false, "skip_reason": "Conditional result was False", "skipped": true } } TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_requested_size": { "changed": false, "skip_reason": "Conditional result was False", "skipped": true } } TASK [assert] ****************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Clean up facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:16 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:39 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_pool": null}, "changed": false} TASK [Verify the volumes with no pool were correctly managed] ****************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:46 TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:56 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_blkinfo": null, "storage_test_crypttab": null, "storage_test_fstab": null, "storage_test_volume": null}, "changed": false} TASK [create a file] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/create-test-file.yml:10 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": true, "dest": "/opt/test1/quux", "gid": 0, "group": "root", "mode": "0644", "owner": "root", "secontext": "unconfined_u:object_r:unlabeled_t:s0", "size": 0, "state": "file", "uid": 0} TASK [Add encryption to the volume] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_luks.yml:291 TASK [linux-system-roles.storage : Set version specific variables] ************* task path: /tmp/tmp7ksfxpzz/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-crypto", "libblockdev-dm", "libblockdev-lvm", "libblockdev-mdraid", "libblockdev-swap"]}, "ansible_included_var_files": ["/tmp/tmp7ksfxpzz/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.storage : define an empty list of pools to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : define an empty list of volumes to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : include the appropriate provider tasks] ***** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:22 included: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [linux-system-roles.storage : get a list of rpm packages installed on host machine] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : make sure blivet is available] ************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: python3-blivet", "Installed: libblockdev-crypto", "Installed: libblockdev-dm", "Installed: libblockdev-lvm", "Installed: libblockdev-mdraid", "Installed: libblockdev-swap"]} TASK [linux-system-roles.storage : initialize internal facts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools": [], "_storage_vol_defaults": [], "_storage_vol_pools": [], "_storage_vols_no_defaults": [], "_storage_vols_no_defaults_by_pool": {}, "_storage_vols_w_defaults": [], "_storage_volumes": []}, "changed": false} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [1/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:28 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'disks': [u'vda'], u'type': u'partition', u'name': u'foo', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'encryption_password': u'yabbadabbadoo', u'encryption': True, u'type': u'partition', u'size': u'4g'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "partition", "volumes": [{"encryption": true, "encryption_password": "yabbadabbadoo", "mount_point": "/opt/test1", "name": "test1", "size": "4g", "type": "partition"}]}]}, "ansible_loop_var": "pool", "changed": false, "pool": {"disks": ["vda"], "name": "foo", "type": "partition", "volumes": [{"encryption": true, "encryption_password": "yabbadabbadoo", "mount_point": "/opt/test1", "name": "test1", "size": "4g", "type": "partition"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [2/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:36 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'encryption_password': u'yabbadabbadoo', u'encryption': True, u'type': u'partition', u'size': u'4g'}], u'type': u'partition', u'encryption_key_size': None}, {u'mount_point': u'/opt/test1', u'name': u'test1', u'encryption_password': u'yabbadabbadoo', u'encryption': True, u'type': u'partition', u'size': u'4g'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}], "_storage_vol_pools": ["foo"], "_storage_vols_no_defaults": [{"encryption": true, "encryption_password": "yabbadabbadoo", "mount_point": "/opt/test1", "name": "test1", "size": "4g", "type": "partition"}]}, "ansible_loop_var": "item", "changed": false, "item": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "partition", "volumes": [{"encryption": true, "encryption_password": "yabbadabbadoo", "mount_point": "/opt/test1", "name": "test1", "size": "4g", "type": "partition"}]}, {"encryption": true, "encryption_password": "yabbadabbadoo", "mount_point": "/opt/test1", "name": "test1", "size": "4g", "type": "partition"}]} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [3/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:44 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'mount_point': u'/opt/test1', u'name': u'test1', u'encryption_password': u'yabbadabbadoo', u'encryption': True, u'type': u'partition', u'size': u'4g'}, {u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'fs_label': u'', u'raid_level': None, u'mount_device_identifier': u'uuid', u'fs_type': u'xfs', u'mount_options': u'defaults', u'encryption_luks_version': None, u'raid_spare_count': None, u'size': 0, u'mount_point': u'', u'encryption_password': None, u'encryption': False, u'raid_chunk_size': None, u'raid_device_count': None, u'state': u'present', u'mount_check': 0, u'mount_passno': 0, u'fs_overwrite_existing': True, u'type': u'lvm', u'encryption_key_size': None, u'fs_create_options': u''}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"encryption": true, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": "yabbadabbadoo", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "partition"}]}, "ansible_index_var": "idx", "ansible_loop_var": "item", "changed": false, "idx": 0, "item": [{"encryption": true, "encryption_password": "yabbadabbadoo", "mount_point": "/opt/test1", "name": "test1", "size": "4g", "type": "partition"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}]} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [4/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:52 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'encryption_password': u'yabbadabbadoo', u'encryption': True, u'type': u'partition', u'size': u'4g'}], u'type': u'partition', u'encryption_key_size': None}) => {"ansible_facts": {"_storage_vols_no_defaults_by_pool": {"foo": [{"encryption": true, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": "yabbadabbadoo", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "partition"}]}}, "ansible_loop_var": "item", "changed": false, "item": {"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "partition", "volumes": [{"encryption": true, "encryption_password": "yabbadabbadoo", "mount_point": "/opt/test1", "name": "test1", "size": "4g", "type": "partition"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [5/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:61 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'encryption_password': u'yabbadabbadoo', u'encryption': True, u'type': u'partition', u'size': u'4g'}], u'type': u'partition', u'encryption_key_size': None}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "partition", "volumes": [{"encryption": true, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": "yabbadabbadoo", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "partition"}]}]}, "ansible_index_var": "idx", "ansible_loop_var": "pool", "changed": false, "idx": 0, "pool": {"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "partition", "volumes": [{"encryption": true, "encryption_password": "yabbadabbadoo", "mount_point": "/opt/test1", "name": "test1", "size": "4g", "type": "partition"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [6/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:72 TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "partition", "volumes": [ { "encryption": true, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": "yabbadabbadoo", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "partition" } ] } ] } TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes": [] } TASK [linux-system-roles.storage : get required packages] ********************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": ["cryptsetup", "xfsprogs"], "pools": [], "volumes": []} TASK [linux-system-roles.storage : make sure required packages are installed] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: cryptsetup", "Installed: xfsprogs"]} TASK [linux-system-roles.storage : manage the pools and volumes to match the specified state] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:104 fatal: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2]: FAILED! => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "msg": "cannot remove existing formatting on device 'vda1' in safe mode due to adding encryption", "packages": [], "pools": [], "volumes": []} TASK [Check that we failed in the role] **************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_luks.yml:312 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the output of the safe_mode test] ********************************* task path: /tmp/tmp7ksfxpzz/tests/tests_luks.yml:318 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [stat the file] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-data-preservation.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "stat": {"atime": 1604147677.4142072, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "checksum": "da39a3ee5e6b4b0d3255bfef95601890afd80709", "ctime": 1604147677.4142072, "dev": 64513, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 131, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "inode/x-empty", "mode": "0644", "mtime": 1604147677.4142072, "nlink": 1, "path": "/opt/test1/quux", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 0, "uid": 0, "version": "1737579780", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}} TASK [assert file presence] **************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-data-preservation.yml:15 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Create a key file] ******************************************************* task path: /tmp/tmp7ksfxpzz/tests/tests_luks.yml:331 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "gid": 0, "group": "root", "mode": "0600", "owner": "root", "path": "/tmp/storage_testwpg93khelukskey", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 0, "state": "file", "uid": 0} TASK [Write the key into the key file] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_luks.yml:338 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "checksum": "7a4dff3752e2baf5617c57eaac048e2b95e8af91", "dest": "/tmp/storage_testwpg93khelukskey", "gid": 0, "group": "root", "md5sum": "4ac07b967150835c00d0865161e48744", "mode": "0600", "owner": "root", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 32, "src": "/root/.ansible/tmp/ansible-tmp-1604147690.87-252326-121060865172845/source", "state": "file", "uid": 0} TASK [Add encryption to the volume] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_luks.yml:344 TASK [linux-system-roles.storage : Set version specific variables] ************* task path: /tmp/tmp7ksfxpzz/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-crypto", "libblockdev-dm", "libblockdev-lvm", "libblockdev-mdraid", "libblockdev-swap"]}, "ansible_included_var_files": ["/tmp/tmp7ksfxpzz/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.storage : define an empty list of pools to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : define an empty list of volumes to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : include the appropriate provider tasks] ***** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:22 included: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [linux-system-roles.storage : get a list of rpm packages installed on host machine] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : make sure blivet is available] ************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: python3-blivet", "Installed: libblockdev-crypto", "Installed: libblockdev-dm", "Installed: libblockdev-lvm", "Installed: libblockdev-mdraid", "Installed: libblockdev-swap"]} TASK [linux-system-roles.storage : initialize internal facts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools": [], "_storage_vol_defaults": [], "_storage_vol_pools": [], "_storage_vols_no_defaults": [], "_storage_vols_no_defaults_by_pool": {}, "_storage_vols_w_defaults": [], "_storage_volumes": []}, "changed": false} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [1/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:28 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'disks': [u'vda'], u'type': u'partition', u'name': u'foo', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'encryption': True, u'type': u'partition', u'encryption_key': u'/tmp/storage_testwpg93khelukskey', u'size': u'4g'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "partition", "volumes": [{"encryption": true, "encryption_key": "/tmp/storage_testwpg93khelukskey", "mount_point": "/opt/test1", "name": "test1", "size": "4g", "type": "partition"}]}]}, "ansible_loop_var": "pool", "changed": false, "pool": {"disks": ["vda"], "name": "foo", "type": "partition", "volumes": [{"encryption": true, "encryption_key": "/tmp/storage_testwpg93khelukskey", "mount_point": "/opt/test1", "name": "test1", "size": "4g", "type": "partition"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [2/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:36 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'encryption': True, u'type': u'partition', u'encryption_key': u'/tmp/storage_testwpg93khelukskey', u'size': u'4g'}], u'type': u'partition', u'encryption_key_size': None}, {u'mount_point': u'/opt/test1', u'name': u'test1', u'encryption': True, u'type': u'partition', u'encryption_key': u'/tmp/storage_testwpg93khelukskey', u'size': u'4g'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}], "_storage_vol_pools": ["foo"], "_storage_vols_no_defaults": [{"encryption": true, "encryption_key": "/tmp/storage_testwpg93khelukskey", "mount_point": "/opt/test1", "name": "test1", "size": "4g", "type": "partition"}]}, "ansible_loop_var": "item", "changed": false, "item": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "partition", "volumes": [{"encryption": true, "encryption_key": "/tmp/storage_testwpg93khelukskey", "mount_point": "/opt/test1", "name": "test1", "size": "4g", "type": "partition"}]}, {"encryption": true, "encryption_key": "/tmp/storage_testwpg93khelukskey", "mount_point": "/opt/test1", "name": "test1", "size": "4g", "type": "partition"}]} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [3/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:44 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'mount_point': u'/opt/test1', u'name': u'test1', u'encryption': True, u'type': u'partition', u'encryption_key': u'/tmp/storage_testwpg93khelukskey', u'size': u'4g'}, {u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'fs_label': u'', u'raid_level': None, u'mount_device_identifier': u'uuid', u'fs_type': u'xfs', u'mount_options': u'defaults', u'encryption_luks_version': None, u'raid_spare_count': None, u'size': 0, u'mount_point': u'', u'encryption_password': None, u'encryption': False, u'raid_chunk_size': None, u'raid_device_count': None, u'state': u'present', u'mount_check': 0, u'mount_passno': 0, u'fs_overwrite_existing': True, u'type': u'lvm', u'encryption_key_size': None, u'fs_create_options': u''}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"encryption": true, "encryption_cipher": null, "encryption_key": "/tmp/storage_testwpg93khelukskey", "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "partition"}]}, "ansible_index_var": "idx", "ansible_loop_var": "item", "changed": false, "idx": 0, "item": [{"encryption": true, "encryption_key": "/tmp/storage_testwpg93khelukskey", "mount_point": "/opt/test1", "name": "test1", "size": "4g", "type": "partition"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}]} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [4/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:52 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'encryption': True, u'type': u'partition', u'encryption_key': u'/tmp/storage_testwpg93khelukskey', u'size': u'4g'}], u'type': u'partition', u'encryption_key_size': None}) => {"ansible_facts": {"_storage_vols_no_defaults_by_pool": {"foo": [{"encryption": true, "encryption_cipher": null, "encryption_key": "/tmp/storage_testwpg93khelukskey", "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "partition"}]}}, "ansible_loop_var": "item", "changed": false, "item": {"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "partition", "volumes": [{"encryption": true, "encryption_key": "/tmp/storage_testwpg93khelukskey", "mount_point": "/opt/test1", "name": "test1", "size": "4g", "type": "partition"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [5/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:61 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'encryption': True, u'type': u'partition', u'encryption_key': u'/tmp/storage_testwpg93khelukskey', u'size': u'4g'}], u'type': u'partition', u'encryption_key_size': None}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "partition", "volumes": [{"encryption": true, "encryption_cipher": null, "encryption_key": "/tmp/storage_testwpg93khelukskey", "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "partition"}]}]}, "ansible_index_var": "idx", "ansible_loop_var": "pool", "changed": false, "idx": 0, "pool": {"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "partition", "volumes": [{"encryption": true, "encryption_key": "/tmp/storage_testwpg93khelukskey", "mount_point": "/opt/test1", "name": "test1", "size": "4g", "type": "partition"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [6/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:72 TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "partition", "volumes": [ { "encryption": true, "encryption_cipher": null, "encryption_key": "/tmp/storage_testwpg93khelukskey", "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "partition" } ] } ] } TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes": [] } TASK [linux-system-roles.storage : get required packages] ********************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": ["cryptsetup", "xfsprogs"], "pools": [], "volumes": []} TASK [linux-system-roles.storage : make sure required packages are installed] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: cryptsetup", "Installed: xfsprogs"]} TASK [linux-system-roles.storage : manage the pools and volumes to match the specified state] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:104 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [{"action": "destroy format", "device": "/dev/vda1", "fs_type": "xfs"}, {"action": "create format", "device": "/dev/vda1", "fs_type": "luks"}, {"action": "create device", "device": "/dev/mapper/luks-fcca73dd-4057-40ba-ae6b-e58b4e789594", "fs_type": null}, {"action": "create format", "device": "/dev/mapper/luks-fcca73dd-4057-40ba-ae6b-e58b4e789594", "fs_type": "xfs"}], "changed": true, "crypts": [{"backing_device": "/dev/vda1", "name": "luks-fcca73dd-4057-40ba-ae6b-e58b4e789594", "password": "/tmp/storage_testwpg93khelukskey", "state": "present"}], "leaves": ["/dev/sda1", "/dev/sr0", "/dev/vdb", "/dev/vdc", "/dev/mapper/luks-fcca73dd-4057-40ba-ae6b-e58b4e789594"], "mounts": [{"fstype": "xfs", "path": "/opt/test1", "src": "UUID=e2d6a001-28eb-4560-8dd3-7d48d91bf44c", "state": "absent"}, {"dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "/dev/mapper/luks-fcca73dd-4057-40ba-ae6b-e58b4e789594", "state": "mounted"}], "packages": ["xfsprogs", "cryptsetup", "e2fsprogs"], "pools": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "partition", "volumes": [{"_device": "/dev/mapper/luks-fcca73dd-4057-40ba-ae6b-e58b4e789594", "_kernel_device": "/dev/dm-0", "_mount_id": "/dev/mapper/luks-fcca73dd-4057-40ba-ae6b-e58b4e789594", "_raw_device": "/dev/vda1", "_raw_kernel_device": "/dev/vda1", "encryption": true, "encryption_cipher": null, "encryption_key": "/tmp/storage_testwpg93khelukskey", "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "partition"}]}], "volumes": []} TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:114 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "blivet_output": { "actions": [ { "action": "destroy format", "device": "/dev/vda1", "fs_type": "xfs" }, { "action": "create format", "device": "/dev/vda1", "fs_type": "luks" }, { "action": "create device", "device": "/dev/mapper/luks-fcca73dd-4057-40ba-ae6b-e58b4e789594", "fs_type": null }, { "action": "create format", "device": "/dev/mapper/luks-fcca73dd-4057-40ba-ae6b-e58b4e789594", "fs_type": "xfs" } ], "changed": true, "crypts": [ { "backing_device": "/dev/vda1", "name": "luks-fcca73dd-4057-40ba-ae6b-e58b4e789594", "password": "/tmp/storage_testwpg93khelukskey", "state": "present" } ], "failed": false, "leaves": [ "/dev/sda1", "/dev/sr0", "/dev/vdb", "/dev/vdc", "/dev/mapper/luks-fcca73dd-4057-40ba-ae6b-e58b4e789594" ], "mounts": [ { "fstype": "xfs", "path": "/opt/test1", "src": "UUID=e2d6a001-28eb-4560-8dd3-7d48d91bf44c", "state": "absent" }, { "dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "/dev/mapper/luks-fcca73dd-4057-40ba-ae6b-e58b4e789594", "state": "mounted" } ], "packages": [ "xfsprogs", "cryptsetup", "e2fsprogs" ], "pools": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "partition", "volumes": [ { "_device": "/dev/mapper/luks-fcca73dd-4057-40ba-ae6b-e58b4e789594", "_kernel_device": "/dev/dm-0", "_mount_id": "/dev/mapper/luks-fcca73dd-4057-40ba-ae6b-e58b4e789594", "_raw_device": "/dev/vda1", "_raw_kernel_device": "/dev/vda1", "encryption": true, "encryption_cipher": null, "encryption_key": "/tmp/storage_testwpg93khelukskey", "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "partition" } ] } ], "volumes": [] } } TASK [linux-system-roles.storage : set the list of pools for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:117 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "partition", "volumes": [{"_device": "/dev/mapper/luks-fcca73dd-4057-40ba-ae6b-e58b4e789594", "_kernel_device": "/dev/dm-0", "_mount_id": "/dev/mapper/luks-fcca73dd-4057-40ba-ae6b-e58b4e789594", "_raw_device": "/dev/vda1", "_raw_kernel_device": "/dev/vda1", "encryption": true, "encryption_cipher": null, "encryption_key": "/tmp/storage_testwpg93khelukskey", "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "partition"}]}]}, "changed": false} TASK [linux-system-roles.storage : set the list of volumes for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:121 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : remove obsolete mounts] ********************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:137 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'src': u'UUID=e2d6a001-28eb-4560-8dd3-7d48d91bf44c', u'state': u'absent', u'fstype': u'xfs', u'path': u'/opt/test1'}) => {"ansible_loop_var": "mount_info", "changed": true, "dump": "0", "fstab": "/etc/fstab", "fstype": "xfs", "mount_info": {"fstype": "xfs", "path": "/opt/test1", "src": "UUID=e2d6a001-28eb-4560-8dd3-7d48d91bf44c", "state": "absent"}, "name": "/opt/test1", "opts": "defaults", "passno": "0", "src": "UUID=e2d6a001-28eb-4560-8dd3-7d48d91bf44c"} TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:148 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [linux-system-roles.storage : set up new/current mounts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:153 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'src': u'/dev/mapper/luks-fcca73dd-4057-40ba-ae6b-e58b4e789594', u'state': u'mounted', u'dump': 0, u'path': u'/opt/test1', u'passno': 0, u'opts': u'defaults', u'fstype': u'xfs'}) => {"ansible_loop_var": "mount_info", "changed": true, "dump": "0", "fstab": "/etc/fstab", "fstype": "xfs", "mount_info": {"dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "/dev/mapper/luks-fcca73dd-4057-40ba-ae6b-e58b4e789594", "state": "mounted"}, "name": "/opt/test1", "opts": "defaults", "passno": "0", "src": "/dev/mapper/luks-fcca73dd-4057-40ba-ae6b-e58b4e789594"} TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:164 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [linux-system-roles.storage : Manage /etc/crypttab to account for changes we just made] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:172 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'state': u'present', u'password': u'/tmp/storage_testwpg93khelukskey', u'name': u'luks-fcca73dd-4057-40ba-ae6b-e58b4e789594', u'backing_device': u'/dev/vda1'}) => {"ansible_loop_var": "entry", "backing_device": "/dev/vda1", "changed": true, "entry": {"backing_device": "/dev/vda1", "name": "luks-fcca73dd-4057-40ba-ae6b-e58b4e789594", "password": "/tmp/storage_testwpg93khelukskey", "state": "present"}, "gid": 0, "group": "root", "mode": "0600", "msg": "added line", "name": "luks-fcca73dd-4057-40ba-ae6b-e58b4e789594", "opts": null, "owner": "root", "password": "/tmp/storage_testwpg93khelukskey", "path": "/etc/crypttab", "secontext": "system_u:object_r:etc_t:s0", "size": 86, "state": "file", "uid": 0, "warnings": ["Module did not set no_log for password"]} TASK [linux-system-roles.storage : Update facts] ******************************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:187 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_luks.yml:361 included: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Print out pool information] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:1 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools_list": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "partition", "volumes": [ { "_device": "/dev/mapper/luks-fcca73dd-4057-40ba-ae6b-e58b4e789594", "_kernel_device": "/dev/dm-0", "_mount_id": "/dev/mapper/luks-fcca73dd-4057-40ba-ae6b-e58b4e789594", "_raw_device": "/dev/vda1", "_raw_kernel_device": "/dev/vda1", "encryption": true, "encryption_cipher": null, "encryption_key": "/tmp/storage_testwpg93khelukskey", "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "partition" } ] } ] } TASK [Print out volume information] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:6 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {} TASK [Collect info about the volumes.] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "info": {"/dev/mapper/luks-fcca73dd-4057-40ba-ae6b-e58b4e789594": {"fstype": "xfs", "label": "", "name": "/dev/mapper/luks-fcca73dd-4057-40ba-ae6b-e58b4e789594", "size": "10G", "type": "crypt", "uuid": "45a64cc5-af00-4e58-aebc-41b55753cc27"}, "/dev/sda": {"fstype": "", "label": "", "name": "/dev/sda", "size": "4G", "type": "disk", "uuid": ""}, "/dev/sda1": {"fstype": "ext4", "label": "", "name": "/dev/sda1", "size": "4G", "type": "partition", "uuid": "03e702b4-e165-4a39-88c9-9e210cd00434"}, "/dev/sr0": {"fstype": "iso9660", "label": "cidata", "name": "/dev/sr0", "size": "364K", "type": "rom", "uuid": "2020-10-31-12-30-28-00"}, "/dev/vda": {"fstype": "", "label": "", "name": "/dev/vda", "size": "10G", "type": "disk", "uuid": ""}, "/dev/vda1": {"fstype": "crypto_LUKS", "label": "", "name": "/dev/vda1", "size": "10G", "type": "partition", "uuid": "fcca73dd-4057-40ba-ae6b-e58b4e789594"}, "/dev/vdb": {"fstype": "", "label": "", "name": "/dev/vdb", "size": "10G", "type": "disk", "uuid": ""}, "/dev/vdc": {"fstype": "", "label": "", "name": "/dev/vdc", "size": "10G", "type": "disk", "uuid": ""}}} TASK [Read the /etc/fstab file for volume existence] *************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:19 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/fstab"], "delta": "0:00:01.004373", "end": "2020-10-31 12:35:14.084813", "rc": 0, "start": "2020-10-31 12:35:13.080440", "stderr": "", "stderr_lines": [], "stdout": "\n#\n# /etc/fstab\n# Created by anaconda on Sat Oct 31 08:17:58 2020\n#\n# Accessible filesystems, by reference, are maintained under '/dev/disk/'.\n# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.\n#\n# After editing this file, run 'systemctl daemon-reload' to update systemd\n# units generated from this file.\n#\nUUID=03e702b4-e165-4a39-88c9-9e210cd00434 / ext4 defaults 1 1\n/dev/mapper/luks-fcca73dd-4057-40ba-ae6b-e58b4e789594 /opt/test1 xfs defaults 0 0", "stdout_lines": ["", "#", "# /etc/fstab", "# Created by anaconda on Sat Oct 31 08:17:58 2020", "#", "# Accessible filesystems, by reference, are maintained under '/dev/disk/'.", "# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.", "#", "# After editing this file, run 'systemctl daemon-reload' to update systemd", "# units generated from this file.", "#", "UUID=03e702b4-e165-4a39-88c9-9e210cd00434 / ext4 defaults 1 1", "/dev/mapper/luks-fcca73dd-4057-40ba-ae6b-e58b4e789594 /opt/test1 xfs defaults 0 0"]} TASK [Read the /etc/crypttab file] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/crypttab"], "delta": "0:00:00.002334", "end": "2020-10-31 12:35:14.421009", "rc": 0, "start": "2020-10-31 12:35:14.418675", "stderr": "", "stderr_lines": [], "stdout": "\nluks-fcca73dd-4057-40ba-ae6b-e58b4e789594 /dev/vda1 /tmp/storage_testwpg93khelukskey", "stdout_lines": ["", "luks-fcca73dd-4057-40ba-ae6b-e58b4e789594 /dev/vda1 /tmp/storage_testwpg93khelukskey"]} TASK [Verify the volumes listed in storage_pools were correctly managed] ******* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:32 [WARNING]: The loop variable 'storage_test_pool' is already in use. You should set the `loop_var` value in the `loop_control` option for the task to something else to avoid variable collisions and unexpected behavior. included: /tmp/tmp7ksfxpzz/tests/test-verify-pool.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool.yml:5 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pool_tests": ["members", "volumes"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool.yml:17 included: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-pool-volumes.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:1 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Get the canonical device path for each member device] ******************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:7 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:16 TASK [Verify PV count] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:23 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:29 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:33 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check the type of each PV] *********************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:41 TASK [Check raid] ************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:50 included: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [get information about RAID] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:6 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:12 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:16 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:20 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID active devices count] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:24 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID spare devices count] ****************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:30 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID metadata version] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:36 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:44 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_md_active_devices_re": null, "storage_test_md_metadata_version_re": null, "storage_test_md_spare_devices_re": null}, "changed": false} TASK [Check member encryption] ************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:53 included: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_crypttab_entries": "0", "_storage_test_expected_crypttab_key_file": "-"}, "changed": false} TASK [Validate pool member LUKS settings] ************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:8 TASK [Validate pool member crypttab entries] *********************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:15 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:22 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null, "_storage_test_crypttab_key_file": null}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:56 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_count": null, "_storage_test_expected_pv_type": null, "_storage_test_pool_pvs": [], "_storage_test_pool_pvs_lvm": []}, "changed": false} TASK [verify the volumes] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-volumes.yml:3 [WARNING]: The loop variable 'storage_test_volume' is already in use. You should set the `loop_var` value in the `loop_control` option for the task to something else to avoid variable collisions and unexpected behavior. included: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": true, "_storage_volume_tests": ["mount", "fstab", "fs", "device", "encryption", "md", "size"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:10 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Get expected mount device based on device type] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/luks-fcca73dd-4057-40ba-ae6b-e58b4e789594"}, "changed": false} TASK [Set some facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [{"block_available": 2591597, "block_size": 4096, "block_total": 2618112, "block_used": 26515, "device": "/dev/mapper/luks-fcca73dd-4057-40ba-ae6b-e58b4e789594", "fstype": "xfs", "inode_available": 5241341, "inode_total": 5241344, "inode_used": 3, "mount": "/opt/test1", "options": "rw,seclabel,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota", "size_available": 10615181312, "size_total": 10723786752, "uuid": "45a64cc5-af00-4e58-aebc-41b55753cc27"}], "storage_test_mount_expected_match_count": "1", "storage_test_mount_point_matches": [{"block_available": 2591597, "block_size": 4096, "block_total": 2618112, "block_used": 26515, "device": "/dev/mapper/luks-fcca73dd-4057-40ba-ae6b-e58b4e789594", "fstype": "xfs", "inode_available": 5241341, "inode_total": 5241344, "inode_used": 3, "mount": "/opt/test1", "options": "rw,seclabel,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota", "size_available": 10615181312, "size_total": 10723786752, "uuid": "45a64cc5-af00-4e58-aebc-41b55753cc27"}], "storage_test_swap_expected_matches": "0"}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:22 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:31 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:39 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [command] ***************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Gather swap info] ******************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:52 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify swap status] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:57 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Unset facts] ************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:67 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null, "storage_test_swap_expected_matches": null, "storage_test_swaps": null, "storage_test_sys_node": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": "1", "storage_test_fstab_expected_mount_point_matches": "1", "storage_test_fstab_id_matches": ["/dev/mapper/luks-fcca73dd-4057-40ba-ae6b-e58b4e789594 "], "storage_test_fstab_mount_point_matches": [" /opt/test1 "]}, "changed": false} TASK [Verify that the device identifier appears in /etc/fstab] ***************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:17 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": null, "storage_test_fstab_expected_mount_point_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [Verify fs type] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify fs label] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [See whether the device node is present] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "stat": {"atime": 1604147708.0342073, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "ctime": 1604147708.0342073, "dev": 5, "device_type": 64513, "executable": false, "exists": true, "gid": 6, "gr_name": "disk", "inode": 82623, "isblk": true, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mimetype": "inode/blockdevice", "mode": "0660", "mtime": 1604147708.0342073, "nlink": 1, "path": "/dev/vda1", "pw_name": "root", "readable": true, "rgrp": true, "roth": false, "rusr": true, "size": 0, "uid": 0, "version": null, "wgrp": true, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}} TASK [Verify the presence/absence of the device node] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "partition"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:28 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:33 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Stat the LUKS device, if encrypted] ************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:3 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "stat": {"atime": 1604147708.1272073, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "ctime": 1604147708.1272073, "dev": 5, "device_type": 64768, "executable": false, "exists": true, "gid": 6, "gr_name": "disk", "inode": 100451, "isblk": true, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mimetype": "inode/symlink", "mode": "0660", "mtime": 1604147708.1272073, "nlink": 1, "path": "/dev/mapper/luks-fcca73dd-4057-40ba-ae6b-e58b4e789594", "pw_name": "root", "readable": true, "rgrp": true, "roth": false, "rusr": true, "size": 0, "uid": 0, "version": null, "wgrp": true, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}} TASK [Collect LUKS info for this volume] *************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["cryptsetup", "luksDump", "/dev/vda1"], "delta": "0:00:00.010461", "end": "2020-10-31 12:35:17.130035", "rc": 0, "start": "2020-10-31 12:35:17.119574", "stderr": "", "stderr_lines": [], "stdout": "LUKS header information for /dev/vda1\n\nVersion: \t1\nCipher name: \taes\nCipher mode: \txts-plain64\nHash spec: \tsha256\nPayload offset:\t4096\nMK bits: \t512\nMK digest: \t90 88 13 ae b4 36 0a 1b 2e 05 e7 23 cb c0 bd 4f be de fd e9 \nMK salt: \t79 a9 82 29 a1 ef 74 09 9e 7f a4 eb 7d 0c c9 94 \n \tee c2 b8 97 9d 41 5d a7 74 d6 5e fa 82 0c f0 ba \nMK iterations: \t119156\nUUID: \tfcca73dd-4057-40ba-ae6b-e58b4e789594\n\nKey Slot 0: ENABLED\n\tIterations: \t1916956\n\tSalt: \t2d a7 ff f0 d1 99 b2 bb df 34 6b 86 2d 00 78 9c \n\t \t63 70 2f c5 d8 e9 1d 76 34 b5 80 2d 6b e3 5e 8e \n\tKey material offset:\t8\n\tAF stripes: \t4000\nKey Slot 1: DISABLED\nKey Slot 2: DISABLED\nKey Slot 3: DISABLED\nKey Slot 4: DISABLED\nKey Slot 5: DISABLED\nKey Slot 6: DISABLED\nKey Slot 7: DISABLED", "stdout_lines": ["LUKS header information for /dev/vda1", "", "Version: \t1", "Cipher name: \taes", "Cipher mode: \txts-plain64", "Hash spec: \tsha256", "Payload offset:\t4096", "MK bits: \t512", "MK digest: \t90 88 13 ae b4 36 0a 1b 2e 05 e7 23 cb c0 bd 4f be de fd e9 ", "MK salt: \t79 a9 82 29 a1 ef 74 09 9e 7f a4 eb 7d 0c c9 94 ", " \tee c2 b8 97 9d 41 5d a7 74 d6 5e fa 82 0c f0 ba ", "MK iterations: \t119156", "UUID: \tfcca73dd-4057-40ba-ae6b-e58b4e789594", "", "Key Slot 0: ENABLED", "\tIterations: \t1916956", "\tSalt: \t2d a7 ff f0 d1 99 b2 bb df 34 6b 86 2d 00 78 9c ", "\t \t63 70 2f c5 d8 e9 1d 76 34 b5 80 2d 6b e3 5e 8e ", "\tKey material offset:\t8", "\tAF stripes: \t4000", "Key Slot 1: DISABLED", "Key Slot 2: DISABLED", "Key Slot 3: DISABLED", "Key Slot 4: DISABLED", "Key Slot 5: DISABLED", "Key Slot 6: DISABLED", "Key Slot 7: DISABLED"]} TASK [Verify the presence/absence of the LUKS device node] ********************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:16 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify that the raw device is the same as the device if not encrypted] *** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:25 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about the LUKS volume if encrypted] **************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:31 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the LUKS volume's device type if encrypted] *********************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:37 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Check LUKS version] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:42 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS key size] ***************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS cipher] ******************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:54 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:60 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": ["luks-fcca73dd-4057-40ba-ae6b-e58b4e789594 /dev/vda1 /tmp/storage_testwpg93khelukskey"], "_storage_test_expected_crypttab_entries": "1", "_storage_test_expected_crypttab_key_file": "/tmp/storage_testwpg93khelukskey"}, "changed": false} TASK [Check for /etc/crypttab entry] ******************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:65 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Validate the format of the crypttab entry] ******************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:70 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Check backing device of crypttab entry] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:76 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Check key file of crypttab entry] **************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:82 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:88 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null, "_storage_test_expected_crypttab_entries": null, "_storage_test_expected_crypttab_key_file": null}, "changed": false} TASK [get information about RAID] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:7 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:13 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:17 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID active devices count] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:25 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID spare devices count] ****************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID metadata version] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [parse the actual size of the volume] ************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:3 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [parse the requested size of the volume] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:9 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:15 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_actual_size": { "changed": false, "skip_reason": "Conditional result was False", "skipped": true } } TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_requested_size": { "changed": false, "skip_reason": "Conditional result was False", "skipped": true } } TASK [assert] ****************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Clean up facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:16 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:39 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_pool": null}, "changed": false} TASK [Verify the volumes with no pool were correctly managed] ****************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:46 TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:56 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_blkinfo": null, "storage_test_crypttab": null, "storage_test_fstab": null, "storage_test_volume": null}, "changed": false} TASK [Remove the key file] ***************************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_luks.yml:363 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "path": "/tmp/storage_testwpg93khelukskey", "state": "absent"} TASK [Create an encrypted lvm volume w/ default fs] **************************** task path: /tmp/tmp7ksfxpzz/tests/tests_luks.yml:375 TASK [linux-system-roles.storage : Set version specific variables] ************* task path: /tmp/tmp7ksfxpzz/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-crypto", "libblockdev-dm", "libblockdev-lvm", "libblockdev-mdraid", "libblockdev-swap"]}, "ansible_included_var_files": ["/tmp/tmp7ksfxpzz/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.storage : define an empty list of pools to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : define an empty list of volumes to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : include the appropriate provider tasks] ***** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:22 included: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [linux-system-roles.storage : get a list of rpm packages installed on host machine] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : make sure blivet is available] ************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: python3-blivet", "Installed: libblockdev-crypto", "Installed: libblockdev-dm", "Installed: libblockdev-lvm", "Installed: libblockdev-mdraid", "Installed: libblockdev-swap"]} TASK [linux-system-roles.storage : initialize internal facts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools": [], "_storage_vol_defaults": [], "_storage_vol_pools": [], "_storage_vols_no_defaults": [], "_storage_vols_no_defaults_by_pool": {}, "_storage_vols_w_defaults": [], "_storage_volumes": []}, "changed": false} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [1/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:28 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'disks': [u'vda'], u'type': u'lvm', u'name': u'foo', u'volumes': [{u'encryption': True, u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'4g'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"encryption": true, "mount_point": "/opt/test1", "name": "test1", "size": "4g"}]}]}, "ansible_loop_var": "pool", "changed": false, "pool": {"disks": ["vda"], "name": "foo", "type": "lvm", "volumes": [{"encryption": true, "mount_point": "/opt/test1", "name": "test1", "size": "4g"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [2/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:36 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'encryption': True, u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'4g'}], u'type': u'lvm', u'encryption_key_size': None}, {u'encryption': True, u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'4g'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}], "_storage_vol_pools": ["foo"], "_storage_vols_no_defaults": [{"encryption": true, "mount_point": "/opt/test1", "name": "test1", "size": "4g"}]}, "ansible_loop_var": "item", "changed": false, "item": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"encryption": true, "mount_point": "/opt/test1", "name": "test1", "size": "4g"}]}, {"encryption": true, "mount_point": "/opt/test1", "name": "test1", "size": "4g"}]} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [3/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:44 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'encryption': True, u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'4g'}, {u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'fs_label': u'', u'raid_level': None, u'mount_device_identifier': u'uuid', u'fs_type': u'xfs', u'mount_options': u'defaults', u'encryption_luks_version': None, u'raid_spare_count': None, u'size': 0, u'mount_point': u'', u'encryption_password': None, u'encryption': False, u'raid_chunk_size': None, u'raid_device_count': None, u'state': u'present', u'mount_check': 0, u'mount_passno': 0, u'fs_overwrite_existing': True, u'type': u'lvm', u'encryption_key_size': None, u'fs_create_options': u''}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"encryption": true, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm"}]}, "ansible_index_var": "idx", "ansible_loop_var": "item", "changed": false, "idx": 0, "item": [{"encryption": true, "mount_point": "/opt/test1", "name": "test1", "size": "4g"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}]} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [4/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:52 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'encryption': True, u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'4g'}], u'type': u'lvm', u'encryption_key_size': None}) => {"ansible_facts": {"_storage_vols_no_defaults_by_pool": {"foo": [{"encryption": true, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm"}]}}, "ansible_loop_var": "item", "changed": false, "item": {"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"encryption": true, "mount_point": "/opt/test1", "name": "test1", "size": "4g"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [5/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:61 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'encryption': True, u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'4g'}], u'type': u'lvm', u'encryption_key_size': None}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"encryption": true, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm"}]}]}, "ansible_index_var": "idx", "ansible_loop_var": "pool", "changed": false, "idx": 0, "pool": {"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"encryption": true, "mount_point": "/opt/test1", "name": "test1", "size": "4g"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [6/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:72 TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [ { "encryption": true, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm" } ] } ] } TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes": [] } TASK [linux-system-roles.storage : get required packages] ********************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": ["cryptsetup", "lvm2", "xfsprogs"], "pools": [], "volumes": []} TASK [linux-system-roles.storage : make sure required packages are installed] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: cryptsetup", "Installed: lvm2", "Installed: xfsprogs"]} TASK [linux-system-roles.storage : manage the pools and volumes to match the specified state] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:104 fatal: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2]: FAILED! => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "msg": "encrypted volume 'test1' missing key/password", "packages": [], "pools": [], "volumes": []} TASK [Check that we failed in the role] **************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_luks.yml:395 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the output of the keyless luks test] ****************************** task path: /tmp/tmp7ksfxpzz/tests/tests_luks.yml:401 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Create an encrypted lvm volume w/ default fs] **************************** task path: /tmp/tmp7ksfxpzz/tests/tests_luks.yml:408 TASK [linux-system-roles.storage : Set version specific variables] ************* task path: /tmp/tmp7ksfxpzz/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-crypto", "libblockdev-dm", "libblockdev-lvm", "libblockdev-mdraid", "libblockdev-swap"]}, "ansible_included_var_files": ["/tmp/tmp7ksfxpzz/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.storage : define an empty list of pools to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : define an empty list of volumes to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : include the appropriate provider tasks] ***** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:22 included: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [linux-system-roles.storage : get a list of rpm packages installed on host machine] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : make sure blivet is available] ************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: python3-blivet", "Installed: libblockdev-crypto", "Installed: libblockdev-dm", "Installed: libblockdev-lvm", "Installed: libblockdev-mdraid", "Installed: libblockdev-swap"]} TASK [linux-system-roles.storage : initialize internal facts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools": [], "_storage_vol_defaults": [], "_storage_vol_pools": [], "_storage_vols_no_defaults": [], "_storage_vols_no_defaults_by_pool": {}, "_storage_vols_w_defaults": [], "_storage_volumes": []}, "changed": false} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [1/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:28 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'disks': [u'vda'], u'type': u'lvm', u'name': u'foo', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'encryption_password': u'yabbadabbadoo', u'encryption': True, u'encryption_key_size': 512, u'encryption_luks_version': u'luks1', u'encryption_cipher': u'serpent-xts-plain64', u'size': u'4g'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"encryption": true, "encryption_cipher": "serpent-xts-plain64", "encryption_key_size": 512, "encryption_luks_version": "luks1", "encryption_password": "yabbadabbadoo", "mount_point": "/opt/test1", "name": "test1", "size": "4g"}]}]}, "ansible_loop_var": "pool", "changed": false, "pool": {"disks": ["vda"], "name": "foo", "type": "lvm", "volumes": [{"encryption": true, "encryption_cipher": "serpent-xts-plain64", "encryption_key_size": 512, "encryption_luks_version": "luks1", "encryption_password": "yabbadabbadoo", "mount_point": "/opt/test1", "name": "test1", "size": "4g"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [2/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:36 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'encryption_password': u'yabbadabbadoo', u'encryption': True, u'encryption_key_size': 512, u'encryption_luks_version': u'luks1', u'encryption_cipher': u'serpent-xts-plain64', u'size': u'4g'}], u'type': u'lvm', u'encryption_key_size': None}, {u'mount_point': u'/opt/test1', u'name': u'test1', u'encryption_password': u'yabbadabbadoo', u'encryption': True, u'encryption_key_size': 512, u'encryption_luks_version': u'luks1', u'encryption_cipher': u'serpent-xts-plain64', u'size': u'4g'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}], "_storage_vol_pools": ["foo"], "_storage_vols_no_defaults": [{"encryption": true, "encryption_cipher": "serpent-xts-plain64", "encryption_key_size": 512, "encryption_luks_version": "luks1", "encryption_password": "yabbadabbadoo", "mount_point": "/opt/test1", "name": "test1", "size": "4g"}]}, "ansible_loop_var": "item", "changed": false, "item": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"encryption": true, "encryption_cipher": "serpent-xts-plain64", "encryption_key_size": 512, "encryption_luks_version": "luks1", "encryption_password": "yabbadabbadoo", "mount_point": "/opt/test1", "name": "test1", "size": "4g"}]}, {"encryption": true, "encryption_cipher": "serpent-xts-plain64", "encryption_key_size": 512, "encryption_luks_version": "luks1", "encryption_password": "yabbadabbadoo", "mount_point": "/opt/test1", "name": "test1", "size": "4g"}]} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [3/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:44 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'mount_point': u'/opt/test1', u'name': u'test1', u'encryption_password': u'yabbadabbadoo', u'encryption': True, u'encryption_key_size': 512, u'encryption_luks_version': u'luks1', u'encryption_cipher': u'serpent-xts-plain64', u'size': u'4g'}, {u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'fs_label': u'', u'raid_level': None, u'mount_device_identifier': u'uuid', u'fs_type': u'xfs', u'mount_options': u'defaults', u'encryption_luks_version': None, u'raid_spare_count': None, u'size': 0, u'mount_point': u'', u'encryption_password': None, u'encryption': False, u'raid_chunk_size': None, u'raid_device_count': None, u'state': u'present', u'mount_check': 0, u'mount_passno': 0, u'fs_overwrite_existing': True, u'type': u'lvm', u'encryption_key_size': None, u'fs_create_options': u''}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"encryption": true, "encryption_cipher": "serpent-xts-plain64", "encryption_key": null, "encryption_key_size": 512, "encryption_luks_version": "luks1", "encryption_password": "yabbadabbadoo", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm"}]}, "ansible_index_var": "idx", "ansible_loop_var": "item", "changed": false, "idx": 0, "item": [{"encryption": true, "encryption_cipher": "serpent-xts-plain64", "encryption_key_size": 512, "encryption_luks_version": "luks1", "encryption_password": "yabbadabbadoo", "mount_point": "/opt/test1", "name": "test1", "size": "4g"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}]} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [4/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:52 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'encryption_password': u'yabbadabbadoo', u'encryption': True, u'encryption_key_size': 512, u'encryption_luks_version': u'luks1', u'encryption_cipher': u'serpent-xts-plain64', u'size': u'4g'}], u'type': u'lvm', u'encryption_key_size': None}) => {"ansible_facts": {"_storage_vols_no_defaults_by_pool": {"foo": [{"encryption": true, "encryption_cipher": "serpent-xts-plain64", "encryption_key": null, "encryption_key_size": 512, "encryption_luks_version": "luks1", "encryption_password": "yabbadabbadoo", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm"}]}}, "ansible_loop_var": "item", "changed": false, "item": {"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"encryption": true, "encryption_cipher": "serpent-xts-plain64", "encryption_key_size": 512, "encryption_luks_version": "luks1", "encryption_password": "yabbadabbadoo", "mount_point": "/opt/test1", "name": "test1", "size": "4g"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [5/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:61 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'encryption_password': u'yabbadabbadoo', u'encryption': True, u'encryption_key_size': 512, u'encryption_luks_version': u'luks1', u'encryption_cipher': u'serpent-xts-plain64', u'size': u'4g'}], u'type': u'lvm', u'encryption_key_size': None}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"encryption": true, "encryption_cipher": "serpent-xts-plain64", "encryption_key": null, "encryption_key_size": 512, "encryption_luks_version": "luks1", "encryption_password": "yabbadabbadoo", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm"}]}]}, "ansible_index_var": "idx", "ansible_loop_var": "pool", "changed": false, "idx": 0, "pool": {"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"encryption": true, "encryption_cipher": "serpent-xts-plain64", "encryption_key_size": 512, "encryption_luks_version": "luks1", "encryption_password": "yabbadabbadoo", "mount_point": "/opt/test1", "name": "test1", "size": "4g"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [6/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:72 TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [ { "encryption": true, "encryption_cipher": "serpent-xts-plain64", "encryption_key": null, "encryption_key_size": 512, "encryption_luks_version": "luks1", "encryption_password": "yabbadabbadoo", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm" } ] } ] } TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes": [] } TASK [linux-system-roles.storage : get required packages] ********************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": ["cryptsetup", "lvm2", "xfsprogs"], "pools": [], "volumes": []} TASK [linux-system-roles.storage : make sure required packages are installed] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: cryptsetup", "Installed: lvm2", "Installed: xfsprogs"]} TASK [linux-system-roles.storage : manage the pools and volumes to match the specified state] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:104 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [{"action": "destroy format", "device": "/dev/mapper/luks-fcca73dd-4057-40ba-ae6b-e58b4e789594", "fs_type": "xfs"}, {"action": "destroy device", "device": "/dev/mapper/luks-fcca73dd-4057-40ba-ae6b-e58b4e789594", "fs_type": null}, {"action": "destroy format", "device": "/dev/vda1", "fs_type": "luks"}, {"action": "destroy device", "device": "/dev/vda1", "fs_type": null}, {"action": "destroy format", "device": "/dev/vda", "fs_type": "disklabel"}, {"action": "create format", "device": "/dev/vda", "fs_type": "lvmpv"}, {"action": "create device", "device": "/dev/foo", "fs_type": null}, {"action": "create device", "device": "/dev/mapper/foo-test1", "fs_type": null}, {"action": "create format", "device": "/dev/mapper/foo-test1", "fs_type": "luks"}, {"action": "create device", "device": "/dev/mapper/luks-0e1b7b2c-1413-45bd-9baf-ea412846f70e", "fs_type": null}, {"action": "create format", "device": "/dev/mapper/luks-0e1b7b2c-1413-45bd-9baf-ea412846f70e", "fs_type": "xfs"}], "changed": true, "crypts": [{"backing_device": "/dev/vda1", "name": "luks-fcca73dd-4057-40ba-ae6b-e58b4e789594", "password": "-", "state": "absent"}, {"backing_device": "/dev/mapper/foo-test1", "name": "luks-0e1b7b2c-1413-45bd-9baf-ea412846f70e", "password": "-", "state": "present"}], "leaves": ["/dev/sda1", "/dev/sr0", "/dev/vdb", "/dev/vdc", "/dev/mapper/luks-0e1b7b2c-1413-45bd-9baf-ea412846f70e"], "mounts": [{"fstype": "xfs", "path": "/opt/test1", "src": "/dev/mapper/luks-fcca73dd-4057-40ba-ae6b-e58b4e789594", "state": "absent"}, {"dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "/dev/mapper/luks-0e1b7b2c-1413-45bd-9baf-ea412846f70e", "state": "mounted"}], "packages": ["lvm2", "e2fsprogs", "cryptsetup", "xfsprogs"], "pools": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"_device": "/dev/mapper/luks-0e1b7b2c-1413-45bd-9baf-ea412846f70e", "_kernel_device": "/dev/dm-1", "_mount_id": "/dev/mapper/luks-0e1b7b2c-1413-45bd-9baf-ea412846f70e", "_raw_device": "/dev/mapper/foo-test1", "_raw_kernel_device": "/dev/dm-0", "encryption": true, "encryption_cipher": "serpent-xts-plain64", "encryption_key": null, "encryption_key_size": 512, "encryption_luks_version": "luks1", "encryption_password": "yabbadabbadoo", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm"}]}], "volumes": []} TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:114 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "blivet_output": { "actions": [ { "action": "destroy format", "device": "/dev/mapper/luks-fcca73dd-4057-40ba-ae6b-e58b4e789594", "fs_type": "xfs" }, { "action": "destroy device", "device": "/dev/mapper/luks-fcca73dd-4057-40ba-ae6b-e58b4e789594", "fs_type": null }, { "action": "destroy format", "device": "/dev/vda1", "fs_type": "luks" }, { "action": "destroy device", "device": "/dev/vda1", "fs_type": null }, { "action": "destroy format", "device": "/dev/vda", "fs_type": "disklabel" }, { "action": "create format", "device": "/dev/vda", "fs_type": "lvmpv" }, { "action": "create device", "device": "/dev/foo", "fs_type": null }, { "action": "create device", "device": "/dev/mapper/foo-test1", "fs_type": null }, { "action": "create format", "device": "/dev/mapper/foo-test1", "fs_type": "luks" }, { "action": "create device", "device": "/dev/mapper/luks-0e1b7b2c-1413-45bd-9baf-ea412846f70e", "fs_type": null }, { "action": "create format", "device": "/dev/mapper/luks-0e1b7b2c-1413-45bd-9baf-ea412846f70e", "fs_type": "xfs" } ], "changed": true, "crypts": [ { "backing_device": "/dev/vda1", "name": "luks-fcca73dd-4057-40ba-ae6b-e58b4e789594", "password": "-", "state": "absent" }, { "backing_device": "/dev/mapper/foo-test1", "name": "luks-0e1b7b2c-1413-45bd-9baf-ea412846f70e", "password": "-", "state": "present" } ], "failed": false, "leaves": [ "/dev/sda1", "/dev/sr0", "/dev/vdb", "/dev/vdc", "/dev/mapper/luks-0e1b7b2c-1413-45bd-9baf-ea412846f70e" ], "mounts": [ { "fstype": "xfs", "path": "/opt/test1", "src": "/dev/mapper/luks-fcca73dd-4057-40ba-ae6b-e58b4e789594", "state": "absent" }, { "dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "/dev/mapper/luks-0e1b7b2c-1413-45bd-9baf-ea412846f70e", "state": "mounted" } ], "packages": [ "lvm2", "e2fsprogs", "cryptsetup", "xfsprogs" ], "pools": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [ { "_device": "/dev/mapper/luks-0e1b7b2c-1413-45bd-9baf-ea412846f70e", "_kernel_device": "/dev/dm-1", "_mount_id": "/dev/mapper/luks-0e1b7b2c-1413-45bd-9baf-ea412846f70e", "_raw_device": "/dev/mapper/foo-test1", "_raw_kernel_device": "/dev/dm-0", "encryption": true, "encryption_cipher": "serpent-xts-plain64", "encryption_key": null, "encryption_key_size": 512, "encryption_luks_version": "luks1", "encryption_password": "yabbadabbadoo", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm" } ] } ], "volumes": [] } } TASK [linux-system-roles.storage : set the list of pools for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:117 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"_device": "/dev/mapper/luks-0e1b7b2c-1413-45bd-9baf-ea412846f70e", "_kernel_device": "/dev/dm-1", "_mount_id": "/dev/mapper/luks-0e1b7b2c-1413-45bd-9baf-ea412846f70e", "_raw_device": "/dev/mapper/foo-test1", "_raw_kernel_device": "/dev/dm-0", "encryption": true, "encryption_cipher": "serpent-xts-plain64", "encryption_key": null, "encryption_key_size": 512, "encryption_luks_version": "luks1", "encryption_password": "yabbadabbadoo", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm"}]}]}, "changed": false} TASK [linux-system-roles.storage : set the list of volumes for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:121 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : remove obsolete mounts] ********************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:137 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'src': u'/dev/mapper/luks-fcca73dd-4057-40ba-ae6b-e58b4e789594', u'state': u'absent', u'fstype': u'xfs', u'path': u'/opt/test1'}) => {"ansible_loop_var": "mount_info", "changed": true, "dump": "0", "fstab": "/etc/fstab", "fstype": "xfs", "mount_info": {"fstype": "xfs", "path": "/opt/test1", "src": "/dev/mapper/luks-fcca73dd-4057-40ba-ae6b-e58b4e789594", "state": "absent"}, "name": "/opt/test1", "opts": "defaults", "passno": "0", "src": "/dev/mapper/luks-fcca73dd-4057-40ba-ae6b-e58b4e789594"} TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:148 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [linux-system-roles.storage : set up new/current mounts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:153 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'src': u'/dev/mapper/luks-0e1b7b2c-1413-45bd-9baf-ea412846f70e', u'state': u'mounted', u'dump': 0, u'path': u'/opt/test1', u'passno': 0, u'opts': u'defaults', u'fstype': u'xfs'}) => {"ansible_loop_var": "mount_info", "changed": true, "dump": "0", "fstab": "/etc/fstab", "fstype": "xfs", "mount_info": {"dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "/dev/mapper/luks-0e1b7b2c-1413-45bd-9baf-ea412846f70e", "state": "mounted"}, "name": "/opt/test1", "opts": "defaults", "passno": "0", "src": "/dev/mapper/luks-0e1b7b2c-1413-45bd-9baf-ea412846f70e"} TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:164 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [linux-system-roles.storage : Manage /etc/crypttab to account for changes we just made] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:172 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'state': u'absent', u'password': u'-', u'name': u'luks-fcca73dd-4057-40ba-ae6b-e58b4e789594', u'backing_device': u'/dev/vda1'}) => {"ansible_loop_var": "entry", "backing_device": "/dev/vda1", "changed": true, "entry": {"backing_device": "/dev/vda1", "name": "luks-fcca73dd-4057-40ba-ae6b-e58b4e789594", "password": "-", "state": "absent"}, "gid": 0, "group": "root", "mode": "0600", "msg": "removed line", "name": "luks-fcca73dd-4057-40ba-ae6b-e58b4e789594", "opts": null, "owner": "root", "password": "-", "path": "/etc/crypttab", "secontext": "system_u:object_r:etc_t:s0", "size": 1, "state": "file", "uid": 0, "warnings": ["Module did not set no_log for password"]} changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'state': u'present', u'password': u'-', u'name': u'luks-0e1b7b2c-1413-45bd-9baf-ea412846f70e', u'backing_device': u'/dev/mapper/foo-test1'}) => {"ansible_loop_var": "entry", "backing_device": "/dev/mapper/foo-test1", "changed": true, "entry": {"backing_device": "/dev/mapper/foo-test1", "name": "luks-0e1b7b2c-1413-45bd-9baf-ea412846f70e", "password": "-", "state": "present"}, "gid": 0, "group": "root", "mode": "0600", "msg": "added line", "name": "luks-0e1b7b2c-1413-45bd-9baf-ea412846f70e", "opts": null, "owner": "root", "password": "-", "path": "/etc/crypttab", "secontext": "system_u:object_r:etc_t:s0", "size": 67, "state": "file", "uid": 0, "warnings": ["Module did not set no_log for password"]} TASK [linux-system-roles.storage : Update facts] ******************************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:187 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_luks.yml:427 included: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Print out pool information] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:1 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools_list": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [ { "_device": "/dev/mapper/luks-0e1b7b2c-1413-45bd-9baf-ea412846f70e", "_kernel_device": "/dev/dm-1", "_mount_id": "/dev/mapper/luks-0e1b7b2c-1413-45bd-9baf-ea412846f70e", "_raw_device": "/dev/mapper/foo-test1", "_raw_kernel_device": "/dev/dm-0", "encryption": true, "encryption_cipher": "serpent-xts-plain64", "encryption_key": null, "encryption_key_size": 512, "encryption_luks_version": "luks1", "encryption_password": "yabbadabbadoo", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm" } ] } ] } TASK [Print out volume information] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:6 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {} TASK [Collect info about the volumes.] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "info": {"/dev/mapper/foo-test1": {"fstype": "crypto_LUKS", "label": "", "name": "/dev/mapper/foo-test1", "size": "4G", "type": "lvm", "uuid": "0e1b7b2c-1413-45bd-9baf-ea412846f70e"}, "/dev/mapper/luks-0e1b7b2c-1413-45bd-9baf-ea412846f70e": {"fstype": "xfs", "label": "", "name": "/dev/mapper/luks-0e1b7b2c-1413-45bd-9baf-ea412846f70e", "size": "4G", "type": "crypt", "uuid": "4e936b0c-6318-4131-81f2-e27237e8ffb8"}, "/dev/sda": {"fstype": "", "label": "", "name": "/dev/sda", "size": "4G", "type": "disk", "uuid": ""}, "/dev/sda1": {"fstype": "ext4", "label": "", "name": "/dev/sda1", "size": "4G", "type": "partition", "uuid": "03e702b4-e165-4a39-88c9-9e210cd00434"}, "/dev/sr0": {"fstype": "iso9660", "label": "cidata", "name": "/dev/sr0", "size": "364K", "type": "rom", "uuid": "2020-10-31-12-30-28-00"}, "/dev/vda": {"fstype": "LVM2_member", "label": "", "name": "/dev/vda", "size": "10G", "type": "disk", "uuid": "OjdMdU-OK5B-SMkS-9I7s-3I3j-PTVr-tg0jqV"}, "/dev/vdb": {"fstype": "", "label": "", "name": "/dev/vdb", "size": "10G", "type": "disk", "uuid": ""}, "/dev/vdc": {"fstype": "", "label": "", "name": "/dev/vdc", "size": "10G", "type": "disk", "uuid": ""}}} TASK [Read the /etc/fstab file for volume existence] *************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:19 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/fstab"], "delta": "0:00:00.002689", "end": "2020-10-31 12:35:53.079273", "rc": 0, "start": "2020-10-31 12:35:53.076584", "stderr": "", "stderr_lines": [], "stdout": "\n#\n# /etc/fstab\n# Created by anaconda on Sat Oct 31 08:17:58 2020\n#\n# Accessible filesystems, by reference, are maintained under '/dev/disk/'.\n# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.\n#\n# After editing this file, run 'systemctl daemon-reload' to update systemd\n# units generated from this file.\n#\nUUID=03e702b4-e165-4a39-88c9-9e210cd00434 / ext4 defaults 1 1\n/dev/mapper/luks-0e1b7b2c-1413-45bd-9baf-ea412846f70e /opt/test1 xfs defaults 0 0", "stdout_lines": ["", "#", "# /etc/fstab", "# Created by anaconda on Sat Oct 31 08:17:58 2020", "#", "# Accessible filesystems, by reference, are maintained under '/dev/disk/'.", "# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.", "#", "# After editing this file, run 'systemctl daemon-reload' to update systemd", "# units generated from this file.", "#", "UUID=03e702b4-e165-4a39-88c9-9e210cd00434 / ext4 defaults 1 1", "/dev/mapper/luks-0e1b7b2c-1413-45bd-9baf-ea412846f70e /opt/test1 xfs defaults 0 0"]} TASK [Read the /etc/crypttab file] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/crypttab"], "delta": "0:00:00.003178", "end": "2020-10-31 12:35:53.421547", "rc": 0, "start": "2020-10-31 12:35:53.418369", "stderr": "", "stderr_lines": [], "stdout": "\nluks-0e1b7b2c-1413-45bd-9baf-ea412846f70e /dev/mapper/foo-test1 -", "stdout_lines": ["", "luks-0e1b7b2c-1413-45bd-9baf-ea412846f70e /dev/mapper/foo-test1 -"]} TASK [Verify the volumes listed in storage_pools were correctly managed] ******* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:32 [WARNING]: The loop variable 'storage_test_pool' is already in use. You should set the `loop_var` value in the `loop_control` option for the task to something else to avoid variable collisions and unexpected behavior. included: /tmp/tmp7ksfxpzz/tests/test-verify-pool.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool.yml:5 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pool_tests": ["members", "volumes"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool.yml:17 included: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-pool-volumes.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:1 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_count": "1", "_storage_test_pool_pvs": [], "_storage_test_pool_pvs_lvm": ["/dev/vda"]}, "changed": false} TASK [Get the canonical device path for each member device] ******************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:7 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=/dev/vda) => {"ansible_loop_var": "pv", "changed": false, "device": "/dev/vda", "pv": "/dev/vda"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:16 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=/dev/vda) => {"ansible_facts": {"_storage_test_pool_pvs": ["/dev/vda"]}, "ansible_index_var": "idx", "ansible_loop_var": "item", "changed": false, "idx": 0, "item": "/dev/vda"} TASK [Verify PV count] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:23 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:29 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_type": "disk"}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:33 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_type": "disk"}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check the type of each PV] *********************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:41 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=/dev/vda) => { "ansible_loop_var": "pv", "changed": false, "msg": "All assertions passed", "pv": "/dev/vda" } TASK [Check raid] ************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:50 included: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [get information about RAID] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:6 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:12 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:16 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:20 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID active devices count] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:24 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID spare devices count] ****************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:30 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID metadata version] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:36 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:44 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_md_active_devices_re": null, "storage_test_md_metadata_version_re": null, "storage_test_md_spare_devices_re": null}, "changed": false} TASK [Check member encryption] ************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:53 included: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_crypttab_entries": "0", "_storage_test_expected_crypttab_key_file": "-"}, "changed": false} TASK [Validate pool member LUKS settings] ************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:8 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=/dev/vda) => {"_storage_test_pool_member_path": "/dev/vda", "ansible_loop_var": "_storage_test_pool_member_path", "changed": false, "skip_reason": "Conditional result was False"} TASK [Validate pool member crypttab entries] *********************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:15 included: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:1 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": []}, "changed": false} TASK [Check for /etc/crypttab entry] ******************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Validate the format of the crypttab entry] ******************************* task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:9 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check backing device of crypttab entry] ********************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:15 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check key file of crypttab entry] **************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:27 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:22 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null, "_storage_test_crypttab_key_file": null}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:56 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_count": null, "_storage_test_expected_pv_type": null, "_storage_test_pool_pvs": [], "_storage_test_pool_pvs_lvm": []}, "changed": false} TASK [verify the volumes] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-volumes.yml:3 [WARNING]: The loop variable 'storage_test_volume' is already in use. You should set the `loop_var` value in the `loop_control` option for the task to something else to avoid variable collisions and unexpected behavior. included: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": true, "_storage_volume_tests": ["mount", "fstab", "fs", "device", "encryption", "md", "size"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:10 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Get expected mount device based on device type] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/luks-0e1b7b2c-1413-45bd-9baf-ea412846f70e"}, "changed": false} TASK [Set some facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [{"block_available": 1029949, "block_size": 4096, "block_total": 1045504, "block_used": 15555, "device": "/dev/mapper/luks-0e1b7b2c-1413-45bd-9baf-ea412846f70e", "fstype": "xfs", "inode_available": 2096125, "inode_total": 2096128, "inode_used": 3, "mount": "/opt/test1", "options": "rw,seclabel,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota", "size_available": 4218671104, "size_total": 4282384384, "uuid": "4e936b0c-6318-4131-81f2-e27237e8ffb8"}], "storage_test_mount_expected_match_count": "1", "storage_test_mount_point_matches": [{"block_available": 1029949, "block_size": 4096, "block_total": 1045504, "block_used": 15555, "device": "/dev/mapper/luks-0e1b7b2c-1413-45bd-9baf-ea412846f70e", "fstype": "xfs", "inode_available": 2096125, "inode_total": 2096128, "inode_used": 3, "mount": "/opt/test1", "options": "rw,seclabel,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota", "size_available": 4218671104, "size_total": 4282384384, "uuid": "4e936b0c-6318-4131-81f2-e27237e8ffb8"}], "storage_test_swap_expected_matches": "0"}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:22 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:31 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:39 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [command] ***************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Gather swap info] ******************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:52 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify swap status] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:57 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Unset facts] ************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:67 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null, "storage_test_swap_expected_matches": null, "storage_test_swaps": null, "storage_test_sys_node": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": "1", "storage_test_fstab_expected_mount_point_matches": "1", "storage_test_fstab_id_matches": ["/dev/mapper/luks-0e1b7b2c-1413-45bd-9baf-ea412846f70e "], "storage_test_fstab_mount_point_matches": [" /opt/test1 "]}, "changed": false} TASK [Verify that the device identifier appears in /etc/fstab] ***************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:17 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": null, "storage_test_fstab_expected_mount_point_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [Verify fs type] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify fs label] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [See whether the device node is present] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "stat": {"atime": 1604147748.6302073, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "ctime": 1604147748.6302073, "dev": 5, "device_type": 64768, "executable": false, "exists": true, "gid": 6, "gr_name": "disk", "inode": 101197, "isblk": true, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mimetype": "inode/symlink", "mode": "0660", "mtime": 1604147748.6302073, "nlink": 1, "path": "/dev/mapper/foo-test1", "pw_name": "root", "readable": true, "rgrp": true, "roth": false, "rusr": true, "size": 0, "uid": 0, "version": null, "wgrp": true, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}} TASK [Verify the presence/absence of the device node] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "lvm"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:28 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:33 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Stat the LUKS device, if encrypted] ************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:3 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "stat": {"atime": 1604147748.7422073, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "ctime": 1604147748.7422073, "dev": 5, "device_type": 64769, "executable": false, "exists": true, "gid": 6, "gr_name": "disk", "inode": 101206, "isblk": true, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mimetype": "inode/symlink", "mode": "0660", "mtime": 1604147748.7422073, "nlink": 1, "path": "/dev/mapper/luks-0e1b7b2c-1413-45bd-9baf-ea412846f70e", "pw_name": "root", "readable": true, "rgrp": true, "roth": false, "rusr": true, "size": 0, "uid": 0, "version": null, "wgrp": true, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}} TASK [Collect LUKS info for this volume] *************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["cryptsetup", "luksDump", "/dev/mapper/foo-test1"], "delta": "0:00:00.009338", "end": "2020-10-31 12:35:57.155605", "rc": 0, "start": "2020-10-31 12:35:57.146267", "stderr": "", "stderr_lines": [], "stdout": "LUKS header information for /dev/mapper/foo-test1\n\nVersion: \t1\nCipher name: \tserpent\nCipher mode: \txts-plain64\nHash spec: \tsha256\nPayload offset:\t4096\nMK bits: \t512\nMK digest: \tff a9 45 90 0b 66 4a 64 bf ca c2 dc 80 01 55 0e a2 bc 4a c5 \nMK salt: \t1f 99 17 da 95 4f 3f 94 b1 69 06 97 6b b3 76 99 \n \tf8 18 f2 4d 0c 88 66 dd 07 56 95 65 bc f0 0f 97 \nMK iterations: \t119809\nUUID: \t0e1b7b2c-1413-45bd-9baf-ea412846f70e\n\nKey Slot 0: ENABLED\n\tIterations: \t1913458\n\tSalt: \t8a 26 0c 8b cc 22 80 b8 1b 36 33 f5 a6 d7 22 be \n\t \t6f 6e c0 81 54 3c 97 21 29 1e c0 70 97 47 b6 39 \n\tKey material offset:\t8\n\tAF stripes: \t4000\nKey Slot 1: DISABLED\nKey Slot 2: DISABLED\nKey Slot 3: DISABLED\nKey Slot 4: DISABLED\nKey Slot 5: DISABLED\nKey Slot 6: DISABLED\nKey Slot 7: DISABLED", "stdout_lines": ["LUKS header information for /dev/mapper/foo-test1", "", "Version: \t1", "Cipher name: \tserpent", "Cipher mode: \txts-plain64", "Hash spec: \tsha256", "Payload offset:\t4096", "MK bits: \t512", "MK digest: \tff a9 45 90 0b 66 4a 64 bf ca c2 dc 80 01 55 0e a2 bc 4a c5 ", "MK salt: \t1f 99 17 da 95 4f 3f 94 b1 69 06 97 6b b3 76 99 ", " \tf8 18 f2 4d 0c 88 66 dd 07 56 95 65 bc f0 0f 97 ", "MK iterations: \t119809", "UUID: \t0e1b7b2c-1413-45bd-9baf-ea412846f70e", "", "Key Slot 0: ENABLED", "\tIterations: \t1913458", "\tSalt: \t8a 26 0c 8b cc 22 80 b8 1b 36 33 f5 a6 d7 22 be ", "\t \t6f 6e c0 81 54 3c 97 21 29 1e c0 70 97 47 b6 39 ", "\tKey material offset:\t8", "\tAF stripes: \t4000", "Key Slot 1: DISABLED", "Key Slot 2: DISABLED", "Key Slot 3: DISABLED", "Key Slot 4: DISABLED", "Key Slot 5: DISABLED", "Key Slot 6: DISABLED", "Key Slot 7: DISABLED"]} TASK [Verify the presence/absence of the LUKS device node] ********************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:16 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify that the raw device is the same as the device if not encrypted] *** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:25 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about the LUKS volume if encrypted] **************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:31 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the LUKS volume's device type if encrypted] *********************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:37 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Check LUKS version] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:42 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Check LUKS key size] ***************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:48 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Check LUKS cipher] ******************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:54 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:60 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": ["luks-0e1b7b2c-1413-45bd-9baf-ea412846f70e /dev/mapper/foo-test1 -"], "_storage_test_expected_crypttab_entries": "1", "_storage_test_expected_crypttab_key_file": "-"}, "changed": false} TASK [Check for /etc/crypttab entry] ******************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:65 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Validate the format of the crypttab entry] ******************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:70 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Check backing device of crypttab entry] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:76 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Check key file of crypttab entry] **************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:82 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:88 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null, "_storage_test_expected_crypttab_entries": null, "_storage_test_expected_crypttab_key_file": null}, "changed": false} TASK [get information about RAID] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:7 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:13 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:17 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID active devices count] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:25 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID spare devices count] ****************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID metadata version] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [parse the actual size of the volume] ************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:3 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"bytes": 4294967296, "changed": false, "lvm": "4g", "parted": "4GiB", "size": "4 GiB"} TASK [parse the requested size of the volume] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:9 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"bytes": 4294967296, "changed": false, "lvm": "4g", "parted": "4GiB", "size": "4 GiB"} TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:15 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_actual_size": { "bytes": 4294967296, "changed": false, "failed": false, "lvm": "4g", "parted": "4GiB", "size": "4 GiB" } } TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_requested_size": { "bytes": 4294967296, "changed": false, "failed": false, "lvm": "4g", "parted": "4GiB", "size": "4 GiB" } } TASK [assert] ****************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:21 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:16 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:39 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_pool": null}, "changed": false} TASK [Verify the volumes with no pool were correctly managed] ****************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:46 TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:56 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_blkinfo": null, "storage_test_crypttab": null, "storage_test_fstab": null, "storage_test_volume": null}, "changed": false} TASK [create a file] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/create-test-file.yml:10 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": true, "dest": "/opt/test1/quux", "gid": 0, "group": "root", "mode": "0644", "owner": "root", "secontext": "unconfined_u:object_r:unlabeled_t:s0", "size": 0, "state": "file", "uid": 0} TASK [Remove the encryption layer] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/tests_luks.yml:433 TASK [linux-system-roles.storage : Set version specific variables] ************* task path: /tmp/tmp7ksfxpzz/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-crypto", "libblockdev-dm", "libblockdev-lvm", "libblockdev-mdraid", "libblockdev-swap"]}, "ansible_included_var_files": ["/tmp/tmp7ksfxpzz/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.storage : define an empty list of pools to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : define an empty list of volumes to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : include the appropriate provider tasks] ***** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:22 included: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [linux-system-roles.storage : get a list of rpm packages installed on host machine] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : make sure blivet is available] ************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: python3-blivet", "Installed: libblockdev-crypto", "Installed: libblockdev-dm", "Installed: libblockdev-lvm", "Installed: libblockdev-mdraid", "Installed: libblockdev-swap"]} TASK [linux-system-roles.storage : initialize internal facts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools": [], "_storage_vol_defaults": [], "_storage_vol_pools": [], "_storage_vols_no_defaults": [], "_storage_vols_no_defaults_by_pool": {}, "_storage_vols_w_defaults": [], "_storage_volumes": []}, "changed": false} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [1/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:28 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'disks': [u'vda'], u'type': u'lvm', u'name': u'foo', u'volumes': [{u'encryption': False, u'mount_point': u'/opt/test1', u'name': u'test1', u'encryption_password': u'yabbadabbadoo', u'size': u'4g'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"encryption": false, "encryption_password": "yabbadabbadoo", "mount_point": "/opt/test1", "name": "test1", "size": "4g"}]}]}, "ansible_loop_var": "pool", "changed": false, "pool": {"disks": ["vda"], "name": "foo", "type": "lvm", "volumes": [{"encryption": false, "encryption_password": "yabbadabbadoo", "mount_point": "/opt/test1", "name": "test1", "size": "4g"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [2/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:36 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'encryption': False, u'mount_point': u'/opt/test1', u'name': u'test1', u'encryption_password': u'yabbadabbadoo', u'size': u'4g'}], u'type': u'lvm', u'encryption_key_size': None}, {u'encryption': False, u'mount_point': u'/opt/test1', u'name': u'test1', u'encryption_password': u'yabbadabbadoo', u'size': u'4g'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}], "_storage_vol_pools": ["foo"], "_storage_vols_no_defaults": [{"encryption": false, "encryption_password": "yabbadabbadoo", "mount_point": "/opt/test1", "name": "test1", "size": "4g"}]}, "ansible_loop_var": "item", "changed": false, "item": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"encryption": false, "encryption_password": "yabbadabbadoo", "mount_point": "/opt/test1", "name": "test1", "size": "4g"}]}, {"encryption": false, "encryption_password": "yabbadabbadoo", "mount_point": "/opt/test1", "name": "test1", "size": "4g"}]} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [3/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:44 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'encryption': False, u'mount_point': u'/opt/test1', u'name': u'test1', u'encryption_password': u'yabbadabbadoo', u'size': u'4g'}, {u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'fs_label': u'', u'raid_level': None, u'mount_device_identifier': u'uuid', u'fs_type': u'xfs', u'mount_options': u'defaults', u'encryption_luks_version': None, u'raid_spare_count': None, u'size': 0, u'mount_point': u'', u'encryption_password': None, u'encryption': False, u'raid_chunk_size': None, u'raid_device_count': None, u'state': u'present', u'mount_check': 0, u'mount_passno': 0, u'fs_overwrite_existing': True, u'type': u'lvm', u'encryption_key_size': None, u'fs_create_options': u''}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": "yabbadabbadoo", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm"}]}, "ansible_index_var": "idx", "ansible_loop_var": "item", "changed": false, "idx": 0, "item": [{"encryption": false, "encryption_password": "yabbadabbadoo", "mount_point": "/opt/test1", "name": "test1", "size": "4g"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}]} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [4/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:52 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'encryption': False, u'mount_point': u'/opt/test1', u'name': u'test1', u'encryption_password': u'yabbadabbadoo', u'size': u'4g'}], u'type': u'lvm', u'encryption_key_size': None}) => {"ansible_facts": {"_storage_vols_no_defaults_by_pool": {"foo": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": "yabbadabbadoo", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm"}]}}, "ansible_loop_var": "item", "changed": false, "item": {"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"encryption": false, "encryption_password": "yabbadabbadoo", "mount_point": "/opt/test1", "name": "test1", "size": "4g"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [5/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:61 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'encryption': False, u'mount_point': u'/opt/test1', u'name': u'test1', u'encryption_password': u'yabbadabbadoo', u'size': u'4g'}], u'type': u'lvm', u'encryption_key_size': None}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": "yabbadabbadoo", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm"}]}]}, "ansible_index_var": "idx", "ansible_loop_var": "pool", "changed": false, "idx": 0, "pool": {"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"encryption": false, "encryption_password": "yabbadabbadoo", "mount_point": "/opt/test1", "name": "test1", "size": "4g"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [6/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:72 TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [ { "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": "yabbadabbadoo", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm" } ] } ] } TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes": [] } TASK [linux-system-roles.storage : get required packages] ********************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": ["lvm2", "xfsprogs"], "pools": [], "volumes": []} TASK [linux-system-roles.storage : make sure required packages are installed] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: lvm2", "Installed: xfsprogs"]} TASK [linux-system-roles.storage : manage the pools and volumes to match the specified state] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:104 fatal: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2]: FAILED! => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "msg": "cannot remove existing formatting on device 'luks-0e1b7b2c-1413-45bd-9baf-ea412846f70e' in safe mode due to encryption removal", "packages": [], "pools": [], "volumes": []} TASK [Check that we failed in the role] **************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_luks.yml:453 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the output of the safe_mode test] ********************************* task path: /tmp/tmp7ksfxpzz/tests/tests_luks.yml:459 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [stat the file] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-data-preservation.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "stat": {"atime": 1604147759.2292073, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "checksum": "da39a3ee5e6b4b0d3255bfef95601890afd80709", "ctime": 1604147759.2292073, "dev": 64769, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 131, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "inode/x-empty", "mode": "0644", "mtime": 1604147759.2292073, "nlink": 1, "path": "/opt/test1/quux", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 0, "uid": 0, "version": "2849078948", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}} TASK [assert file presence] **************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-data-preservation.yml:15 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Remove the encryption layer] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/tests_luks.yml:470 TASK [linux-system-roles.storage : Set version specific variables] ************* task path: /tmp/tmp7ksfxpzz/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-crypto", "libblockdev-dm", "libblockdev-lvm", "libblockdev-mdraid", "libblockdev-swap"]}, "ansible_included_var_files": ["/tmp/tmp7ksfxpzz/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.storage : define an empty list of pools to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : define an empty list of volumes to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : include the appropriate provider tasks] ***** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:22 included: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [linux-system-roles.storage : get a list of rpm packages installed on host machine] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : make sure blivet is available] ************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: python3-blivet", "Installed: libblockdev-crypto", "Installed: libblockdev-dm", "Installed: libblockdev-lvm", "Installed: libblockdev-mdraid", "Installed: libblockdev-swap"]} TASK [linux-system-roles.storage : initialize internal facts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools": [], "_storage_vol_defaults": [], "_storage_vol_pools": [], "_storage_vols_no_defaults": [], "_storage_vols_no_defaults_by_pool": {}, "_storage_vols_w_defaults": [], "_storage_volumes": []}, "changed": false} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [1/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:28 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'disks': [u'vda'], u'type': u'lvm', u'name': u'foo', u'volumes': [{u'encryption': False, u'mount_point': u'/opt/test1', u'name': u'test1', u'encryption_password': u'yabbadabbadoo', u'size': u'4g'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"encryption": false, "encryption_password": "yabbadabbadoo", "mount_point": "/opt/test1", "name": "test1", "size": "4g"}]}]}, "ansible_loop_var": "pool", "changed": false, "pool": {"disks": ["vda"], "name": "foo", "type": "lvm", "volumes": [{"encryption": false, "encryption_password": "yabbadabbadoo", "mount_point": "/opt/test1", "name": "test1", "size": "4g"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [2/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:36 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'encryption': False, u'mount_point': u'/opt/test1', u'name': u'test1', u'encryption_password': u'yabbadabbadoo', u'size': u'4g'}], u'type': u'lvm', u'encryption_key_size': None}, {u'encryption': False, u'mount_point': u'/opt/test1', u'name': u'test1', u'encryption_password': u'yabbadabbadoo', u'size': u'4g'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}], "_storage_vol_pools": ["foo"], "_storage_vols_no_defaults": [{"encryption": false, "encryption_password": "yabbadabbadoo", "mount_point": "/opt/test1", "name": "test1", "size": "4g"}]}, "ansible_loop_var": "item", "changed": false, "item": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"encryption": false, "encryption_password": "yabbadabbadoo", "mount_point": "/opt/test1", "name": "test1", "size": "4g"}]}, {"encryption": false, "encryption_password": "yabbadabbadoo", "mount_point": "/opt/test1", "name": "test1", "size": "4g"}]} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [3/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:44 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'encryption': False, u'mount_point': u'/opt/test1', u'name': u'test1', u'encryption_password': u'yabbadabbadoo', u'size': u'4g'}, {u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'fs_label': u'', u'raid_level': None, u'mount_device_identifier': u'uuid', u'fs_type': u'xfs', u'mount_options': u'defaults', u'encryption_luks_version': None, u'raid_spare_count': None, u'size': 0, u'mount_point': u'', u'encryption_password': None, u'encryption': False, u'raid_chunk_size': None, u'raid_device_count': None, u'state': u'present', u'mount_check': 0, u'mount_passno': 0, u'fs_overwrite_existing': True, u'type': u'lvm', u'encryption_key_size': None, u'fs_create_options': u''}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": "yabbadabbadoo", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm"}]}, "ansible_index_var": "idx", "ansible_loop_var": "item", "changed": false, "idx": 0, "item": [{"encryption": false, "encryption_password": "yabbadabbadoo", "mount_point": "/opt/test1", "name": "test1", "size": "4g"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}]} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [4/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:52 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'encryption': False, u'mount_point': u'/opt/test1', u'name': u'test1', u'encryption_password': u'yabbadabbadoo', u'size': u'4g'}], u'type': u'lvm', u'encryption_key_size': None}) => {"ansible_facts": {"_storage_vols_no_defaults_by_pool": {"foo": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": "yabbadabbadoo", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm"}]}}, "ansible_loop_var": "item", "changed": false, "item": {"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"encryption": false, "encryption_password": "yabbadabbadoo", "mount_point": "/opt/test1", "name": "test1", "size": "4g"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [5/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:61 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'encryption': False, u'mount_point': u'/opt/test1', u'name': u'test1', u'encryption_password': u'yabbadabbadoo', u'size': u'4g'}], u'type': u'lvm', u'encryption_key_size': None}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": "yabbadabbadoo", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm"}]}]}, "ansible_index_var": "idx", "ansible_loop_var": "pool", "changed": false, "idx": 0, "pool": {"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"encryption": false, "encryption_password": "yabbadabbadoo", "mount_point": "/opt/test1", "name": "test1", "size": "4g"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [6/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:72 TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [ { "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": "yabbadabbadoo", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm" } ] } ] } TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes": [] } TASK [linux-system-roles.storage : get required packages] ********************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": ["lvm2", "xfsprogs"], "pools": [], "volumes": []} TASK [linux-system-roles.storage : make sure required packages are installed] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: lvm2", "Installed: xfsprogs"]} TASK [linux-system-roles.storage : manage the pools and volumes to match the specified state] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:104 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [{"action": "destroy format", "device": "/dev/mapper/luks-0e1b7b2c-1413-45bd-9baf-ea412846f70e", "fs_type": "xfs"}, {"action": "destroy device", "device": "/dev/mapper/luks-0e1b7b2c-1413-45bd-9baf-ea412846f70e", "fs_type": null}, {"action": "destroy format", "device": "/dev/mapper/foo-test1", "fs_type": "luks"}, {"action": "create format", "device": "/dev/mapper/foo-test1", "fs_type": "xfs"}], "changed": true, "crypts": [{"backing_device": "/dev/mapper/foo-test1", "name": "luks-0e1b7b2c-1413-45bd-9baf-ea412846f70e", "password": "-", "state": "absent"}], "leaves": ["/dev/sda1", "/dev/sr0", "/dev/mapper/foo-test1", "/dev/vdb", "/dev/vdc"], "mounts": [{"fstype": "xfs", "path": "/opt/test1", "src": "/dev/mapper/luks-0e1b7b2c-1413-45bd-9baf-ea412846f70e", "state": "absent"}, {"dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "/dev/mapper/foo-test1", "state": "mounted"}], "packages": ["e2fsprogs", "lvm2", "xfsprogs"], "pools": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"_device": "/dev/mapper/foo-test1", "_kernel_device": "/dev/dm-0", "_mount_id": "/dev/mapper/foo-test1", "_raw_device": "/dev/mapper/foo-test1", "_raw_kernel_device": "/dev/dm-0", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": "yabbadabbadoo", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm"}]}], "volumes": []} TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:114 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "blivet_output": { "actions": [ { "action": "destroy format", "device": "/dev/mapper/luks-0e1b7b2c-1413-45bd-9baf-ea412846f70e", "fs_type": "xfs" }, { "action": "destroy device", "device": "/dev/mapper/luks-0e1b7b2c-1413-45bd-9baf-ea412846f70e", "fs_type": null }, { "action": "destroy format", "device": "/dev/mapper/foo-test1", "fs_type": "luks" }, { "action": "create format", "device": "/dev/mapper/foo-test1", "fs_type": "xfs" } ], "changed": true, "crypts": [ { "backing_device": "/dev/mapper/foo-test1", "name": "luks-0e1b7b2c-1413-45bd-9baf-ea412846f70e", "password": "-", "state": "absent" } ], "failed": false, "leaves": [ "/dev/sda1", "/dev/sr0", "/dev/mapper/foo-test1", "/dev/vdb", "/dev/vdc" ], "mounts": [ { "fstype": "xfs", "path": "/opt/test1", "src": "/dev/mapper/luks-0e1b7b2c-1413-45bd-9baf-ea412846f70e", "state": "absent" }, { "dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "/dev/mapper/foo-test1", "state": "mounted" } ], "packages": [ "e2fsprogs", "lvm2", "xfsprogs" ], "pools": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [ { "_device": "/dev/mapper/foo-test1", "_kernel_device": "/dev/dm-0", "_mount_id": "/dev/mapper/foo-test1", "_raw_device": "/dev/mapper/foo-test1", "_raw_kernel_device": "/dev/dm-0", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": "yabbadabbadoo", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm" } ] } ], "volumes": [] } } TASK [linux-system-roles.storage : set the list of pools for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:117 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"_device": "/dev/mapper/foo-test1", "_kernel_device": "/dev/dm-0", "_mount_id": "/dev/mapper/foo-test1", "_raw_device": "/dev/mapper/foo-test1", "_raw_kernel_device": "/dev/dm-0", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": "yabbadabbadoo", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm"}]}]}, "changed": false} TASK [linux-system-roles.storage : set the list of volumes for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:121 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : remove obsolete mounts] ********************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:137 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'src': u'/dev/mapper/luks-0e1b7b2c-1413-45bd-9baf-ea412846f70e', u'state': u'absent', u'fstype': u'xfs', u'path': u'/opt/test1'}) => {"ansible_loop_var": "mount_info", "changed": true, "dump": "0", "fstab": "/etc/fstab", "fstype": "xfs", "mount_info": {"fstype": "xfs", "path": "/opt/test1", "src": "/dev/mapper/luks-0e1b7b2c-1413-45bd-9baf-ea412846f70e", "state": "absent"}, "name": "/opt/test1", "opts": "defaults", "passno": "0", "src": "/dev/mapper/luks-0e1b7b2c-1413-45bd-9baf-ea412846f70e"} TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:148 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [linux-system-roles.storage : set up new/current mounts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:153 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'src': u'/dev/mapper/foo-test1', u'state': u'mounted', u'dump': 0, u'path': u'/opt/test1', u'passno': 0, u'opts': u'defaults', u'fstype': u'xfs'}) => {"ansible_loop_var": "mount_info", "changed": true, "dump": "0", "fstab": "/etc/fstab", "fstype": "xfs", "mount_info": {"dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "/dev/mapper/foo-test1", "state": "mounted"}, "name": "/opt/test1", "opts": "defaults", "passno": "0", "src": "/dev/mapper/foo-test1"} TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:164 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [linux-system-roles.storage : Manage /etc/crypttab to account for changes we just made] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:172 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'state': u'absent', u'password': u'-', u'name': u'luks-0e1b7b2c-1413-45bd-9baf-ea412846f70e', u'backing_device': u'/dev/mapper/foo-test1'}) => {"ansible_loop_var": "entry", "backing_device": "/dev/mapper/foo-test1", "changed": true, "entry": {"backing_device": "/dev/mapper/foo-test1", "name": "luks-0e1b7b2c-1413-45bd-9baf-ea412846f70e", "password": "-", "state": "absent"}, "gid": 0, "group": "root", "mode": "0600", "msg": "removed line", "name": "luks-0e1b7b2c-1413-45bd-9baf-ea412846f70e", "opts": null, "owner": "root", "password": "-", "path": "/etc/crypttab", "secontext": "system_u:object_r:etc_t:s0", "size": 1, "state": "file", "uid": 0, "warnings": ["Module did not set no_log for password"]} TASK [linux-system-roles.storage : Update facts] ******************************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:187 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_luks.yml:486 included: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Print out pool information] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:1 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools_list": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [ { "_device": "/dev/mapper/foo-test1", "_kernel_device": "/dev/dm-0", "_mount_id": "/dev/mapper/foo-test1", "_raw_device": "/dev/mapper/foo-test1", "_raw_kernel_device": "/dev/dm-0", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": "yabbadabbadoo", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm" } ] } ] } TASK [Print out volume information] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:6 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {} TASK [Collect info about the volumes.] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "info": {"/dev/mapper/foo-test1": {"fstype": "xfs", "label": "", "name": "/dev/mapper/foo-test1", "size": "4G", "type": "lvm", "uuid": "33af8385-307b-4c3b-a9cc-d45b02e0fb4c"}, "/dev/sda": {"fstype": "", "label": "", "name": "/dev/sda", "size": "4G", "type": "disk", "uuid": ""}, "/dev/sda1": {"fstype": "ext4", "label": "", "name": "/dev/sda1", "size": "4G", "type": "partition", "uuid": "03e702b4-e165-4a39-88c9-9e210cd00434"}, "/dev/sr0": {"fstype": "iso9660", "label": "cidata", "name": "/dev/sr0", "size": "364K", "type": "rom", "uuid": "2020-10-31-12-30-28-00"}, "/dev/vda": {"fstype": "LVM2_member", "label": "", "name": "/dev/vda", "size": "10G", "type": "disk", "uuid": "OjdMdU-OK5B-SMkS-9I7s-3I3j-PTVr-tg0jqV"}, "/dev/vdb": {"fstype": "", "label": "", "name": "/dev/vdb", "size": "10G", "type": "disk", "uuid": ""}, "/dev/vdc": {"fstype": "", "label": "", "name": "/dev/vdc", "size": "10G", "type": "disk", "uuid": ""}}} TASK [Read the /etc/fstab file for volume existence] *************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:19 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/fstab"], "delta": "0:00:00.002381", "end": "2020-10-31 12:36:28.617226", "rc": 0, "start": "2020-10-31 12:36:28.614845", "stderr": "", "stderr_lines": [], "stdout": "\n#\n# /etc/fstab\n# Created by anaconda on Sat Oct 31 08:17:58 2020\n#\n# Accessible filesystems, by reference, are maintained under '/dev/disk/'.\n# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.\n#\n# After editing this file, run 'systemctl daemon-reload' to update systemd\n# units generated from this file.\n#\nUUID=03e702b4-e165-4a39-88c9-9e210cd00434 / ext4 defaults 1 1\n/dev/mapper/foo-test1 /opt/test1 xfs defaults 0 0", "stdout_lines": ["", "#", "# /etc/fstab", "# Created by anaconda on Sat Oct 31 08:17:58 2020", "#", "# Accessible filesystems, by reference, are maintained under '/dev/disk/'.", "# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.", "#", "# After editing this file, run 'systemctl daemon-reload' to update systemd", "# units generated from this file.", "#", "UUID=03e702b4-e165-4a39-88c9-9e210cd00434 / ext4 defaults 1 1", "/dev/mapper/foo-test1 /opt/test1 xfs defaults 0 0"]} TASK [Read the /etc/crypttab file] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/crypttab"], "delta": "0:00:00.002324", "end": "2020-10-31 12:36:28.938812", "rc": 0, "start": "2020-10-31 12:36:28.936488", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Verify the volumes listed in storage_pools were correctly managed] ******* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:32 [WARNING]: The loop variable 'storage_test_pool' is already in use. You should set the `loop_var` value in the `loop_control` option for the task to something else to avoid variable collisions and unexpected behavior. included: /tmp/tmp7ksfxpzz/tests/test-verify-pool.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool.yml:5 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pool_tests": ["members", "volumes"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool.yml:17 included: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-pool-volumes.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:1 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_count": "1", "_storage_test_pool_pvs": [], "_storage_test_pool_pvs_lvm": ["/dev/vda"]}, "changed": false} TASK [Get the canonical device path for each member device] ******************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:7 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=/dev/vda) => {"ansible_loop_var": "pv", "changed": false, "device": "/dev/vda", "pv": "/dev/vda"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:16 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=/dev/vda) => {"ansible_facts": {"_storage_test_pool_pvs": ["/dev/vda"]}, "ansible_index_var": "idx", "ansible_loop_var": "item", "changed": false, "idx": 0, "item": "/dev/vda"} TASK [Verify PV count] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:23 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:29 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_type": "disk"}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:33 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_type": "disk"}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check the type of each PV] *********************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:41 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=/dev/vda) => { "ansible_loop_var": "pv", "changed": false, "msg": "All assertions passed", "pv": "/dev/vda" } TASK [Check raid] ************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:50 included: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [get information about RAID] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:6 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:12 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:16 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:20 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID active devices count] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:24 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID spare devices count] ****************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:30 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID metadata version] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:36 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:44 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_md_active_devices_re": null, "storage_test_md_metadata_version_re": null, "storage_test_md_spare_devices_re": null}, "changed": false} TASK [Check member encryption] ************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:53 included: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_crypttab_entries": "0", "_storage_test_expected_crypttab_key_file": "-"}, "changed": false} TASK [Validate pool member LUKS settings] ************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:8 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=/dev/vda) => {"_storage_test_pool_member_path": "/dev/vda", "ansible_loop_var": "_storage_test_pool_member_path", "changed": false, "skip_reason": "Conditional result was False"} TASK [Validate pool member crypttab entries] *********************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:15 included: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:1 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": []}, "changed": false} TASK [Check for /etc/crypttab entry] ******************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Validate the format of the crypttab entry] ******************************* task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:9 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check backing device of crypttab entry] ********************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:15 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check key file of crypttab entry] **************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:27 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:22 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null, "_storage_test_crypttab_key_file": null}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:56 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_count": null, "_storage_test_expected_pv_type": null, "_storage_test_pool_pvs": [], "_storage_test_pool_pvs_lvm": []}, "changed": false} TASK [verify the volumes] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-volumes.yml:3 [WARNING]: The loop variable 'storage_test_volume' is already in use. You should set the `loop_var` value in the `loop_control` option for the task to something else to avoid variable collisions and unexpected behavior. included: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": true, "_storage_volume_tests": ["mount", "fstab", "fs", "device", "encryption", "md", "size"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:10 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Get expected mount device based on device type] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/foo-test1"}, "changed": false} TASK [Set some facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [{"block_available": 1030454, "block_size": 4096, "block_total": 1046016, "block_used": 15562, "device": "/dev/mapper/foo-test1", "fstype": "xfs", "inode_available": 2097149, "inode_total": 2097152, "inode_used": 3, "mount": "/opt/test1", "options": "rw,seclabel,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota", "size_available": 4220739584, "size_total": 4284481536, "uuid": "33af8385-307b-4c3b-a9cc-d45b02e0fb4c"}], "storage_test_mount_expected_match_count": "1", "storage_test_mount_point_matches": [{"block_available": 1030454, "block_size": 4096, "block_total": 1046016, "block_used": 15562, "device": "/dev/mapper/foo-test1", "fstype": "xfs", "inode_available": 2097149, "inode_total": 2097152, "inode_used": 3, "mount": "/opt/test1", "options": "rw,seclabel,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota", "size_available": 4220739584, "size_total": 4284481536, "uuid": "33af8385-307b-4c3b-a9cc-d45b02e0fb4c"}], "storage_test_swap_expected_matches": "0"}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:22 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:31 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:39 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [command] ***************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Gather swap info] ******************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:52 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify swap status] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:57 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Unset facts] ************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:67 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null, "storage_test_swap_expected_matches": null, "storage_test_swaps": null, "storage_test_sys_node": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": "1", "storage_test_fstab_expected_mount_point_matches": "1", "storage_test_fstab_id_matches": ["/dev/mapper/foo-test1 "], "storage_test_fstab_mount_point_matches": [" /opt/test1 "]}, "changed": false} TASK [Verify that the device identifier appears in /etc/fstab] ***************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:17 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": null, "storage_test_fstab_expected_mount_point_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [Verify fs type] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify fs label] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [See whether the device node is present] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "stat": {"atime": 1604147784.5902073, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "ctime": 1604147784.5902073, "dev": 5, "device_type": 64768, "executable": false, "exists": true, "gid": 6, "gr_name": "disk", "inode": 120572, "isblk": true, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mimetype": "inode/symlink", "mode": "0660", "mtime": 1604147784.5902073, "nlink": 1, "path": "/dev/mapper/foo-test1", "pw_name": "root", "readable": true, "rgrp": true, "roth": false, "rusr": true, "size": 0, "uid": 0, "version": null, "wgrp": true, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}} TASK [Verify the presence/absence of the device node] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "lvm"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:28 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:33 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Stat the LUKS device, if encrypted] ************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:3 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Collect LUKS info for this volume] *************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:10 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the presence/absence of the LUKS device node] ********************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:16 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify that the raw device is the same as the device if not encrypted] *** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:25 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about the LUKS volume if encrypted] **************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the LUKS volume's device type if encrypted] *********************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS version] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:42 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS key size] ***************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS cipher] ******************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:54 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:60 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": [], "_storage_test_expected_crypttab_entries": "0", "_storage_test_expected_crypttab_key_file": "-"}, "changed": false} TASK [Check for /etc/crypttab entry] ******************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:65 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Validate the format of the crypttab entry] ******************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:70 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check backing device of crypttab entry] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:76 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check key file of crypttab entry] **************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:82 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:88 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null, "_storage_test_expected_crypttab_entries": null, "_storage_test_expected_crypttab_key_file": null}, "changed": false} TASK [get information about RAID] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:7 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:13 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:17 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID active devices count] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:25 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID spare devices count] ****************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID metadata version] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [parse the actual size of the volume] ************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:3 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"bytes": 4294967296, "changed": false, "lvm": "4g", "parted": "4GiB", "size": "4 GiB"} TASK [parse the requested size of the volume] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:9 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"bytes": 4294967296, "changed": false, "lvm": "4g", "parted": "4GiB", "size": "4 GiB"} TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:15 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_actual_size": { "bytes": 4294967296, "changed": false, "failed": false, "lvm": "4g", "parted": "4GiB", "size": "4 GiB" } } TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_requested_size": { "bytes": 4294967296, "changed": false, "failed": false, "lvm": "4g", "parted": "4GiB", "size": "4 GiB" } } TASK [assert] ****************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:21 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:16 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:39 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_pool": null}, "changed": false} TASK [Verify the volumes with no pool were correctly managed] ****************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:46 TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:56 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_blkinfo": null, "storage_test_crypttab": null, "storage_test_fstab": null, "storage_test_volume": null}, "changed": false} TASK [create a file] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/create-test-file.yml:10 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": true, "dest": "/opt/test1/quux", "gid": 0, "group": "root", "mode": "0644", "owner": "root", "secontext": "unconfined_u:object_r:unlabeled_t:s0", "size": 0, "state": "file", "uid": 0} TASK [Add encryption to the volume] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_luks.yml:492 TASK [linux-system-roles.storage : Set version specific variables] ************* task path: /tmp/tmp7ksfxpzz/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-crypto", "libblockdev-dm", "libblockdev-lvm", "libblockdev-mdraid", "libblockdev-swap"]}, "ansible_included_var_files": ["/tmp/tmp7ksfxpzz/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.storage : define an empty list of pools to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : define an empty list of volumes to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : include the appropriate provider tasks] ***** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:22 included: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [linux-system-roles.storage : get a list of rpm packages installed on host machine] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : make sure blivet is available] ************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: python3-blivet", "Installed: libblockdev-crypto", "Installed: libblockdev-dm", "Installed: libblockdev-lvm", "Installed: libblockdev-mdraid", "Installed: libblockdev-swap"]} TASK [linux-system-roles.storage : initialize internal facts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools": [], "_storage_vol_defaults": [], "_storage_vol_pools": [], "_storage_vols_no_defaults": [], "_storage_vols_no_defaults_by_pool": {}, "_storage_vols_w_defaults": [], "_storage_volumes": []}, "changed": false} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [1/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:28 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'disks': [u'vda'], u'type': u'lvm', u'name': u'foo', u'volumes': [{u'encryption': True, u'mount_point': u'/opt/test1', u'name': u'test1', u'encryption_password': u'yabbadabbadoo', u'size': u'4g'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"encryption": true, "encryption_password": "yabbadabbadoo", "mount_point": "/opt/test1", "name": "test1", "size": "4g"}]}]}, "ansible_loop_var": "pool", "changed": false, "pool": {"disks": ["vda"], "name": "foo", "type": "lvm", "volumes": [{"encryption": true, "encryption_password": "yabbadabbadoo", "mount_point": "/opt/test1", "name": "test1", "size": "4g"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [2/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:36 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'encryption': True, u'mount_point': u'/opt/test1', u'name': u'test1', u'encryption_password': u'yabbadabbadoo', u'size': u'4g'}], u'type': u'lvm', u'encryption_key_size': None}, {u'encryption': True, u'mount_point': u'/opt/test1', u'name': u'test1', u'encryption_password': u'yabbadabbadoo', u'size': u'4g'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}], "_storage_vol_pools": ["foo"], "_storage_vols_no_defaults": [{"encryption": true, "encryption_password": "yabbadabbadoo", "mount_point": "/opt/test1", "name": "test1", "size": "4g"}]}, "ansible_loop_var": "item", "changed": false, "item": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"encryption": true, "encryption_password": "yabbadabbadoo", "mount_point": "/opt/test1", "name": "test1", "size": "4g"}]}, {"encryption": true, "encryption_password": "yabbadabbadoo", "mount_point": "/opt/test1", "name": "test1", "size": "4g"}]} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [3/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:44 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'encryption': True, u'mount_point': u'/opt/test1', u'name': u'test1', u'encryption_password': u'yabbadabbadoo', u'size': u'4g'}, {u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'fs_label': u'', u'raid_level': None, u'mount_device_identifier': u'uuid', u'fs_type': u'xfs', u'mount_options': u'defaults', u'encryption_luks_version': None, u'raid_spare_count': None, u'size': 0, u'mount_point': u'', u'encryption_password': None, u'encryption': False, u'raid_chunk_size': None, u'raid_device_count': None, u'state': u'present', u'mount_check': 0, u'mount_passno': 0, u'fs_overwrite_existing': True, u'type': u'lvm', u'encryption_key_size': None, u'fs_create_options': u''}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"encryption": true, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": "yabbadabbadoo", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm"}]}, "ansible_index_var": "idx", "ansible_loop_var": "item", "changed": false, "idx": 0, "item": [{"encryption": true, "encryption_password": "yabbadabbadoo", "mount_point": "/opt/test1", "name": "test1", "size": "4g"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}]} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [4/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:52 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'encryption': True, u'mount_point': u'/opt/test1', u'name': u'test1', u'encryption_password': u'yabbadabbadoo', u'size': u'4g'}], u'type': u'lvm', u'encryption_key_size': None}) => {"ansible_facts": {"_storage_vols_no_defaults_by_pool": {"foo": [{"encryption": true, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": "yabbadabbadoo", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm"}]}}, "ansible_loop_var": "item", "changed": false, "item": {"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"encryption": true, "encryption_password": "yabbadabbadoo", "mount_point": "/opt/test1", "name": "test1", "size": "4g"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [5/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:61 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'encryption': True, u'mount_point': u'/opt/test1', u'name': u'test1', u'encryption_password': u'yabbadabbadoo', u'size': u'4g'}], u'type': u'lvm', u'encryption_key_size': None}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"encryption": true, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": "yabbadabbadoo", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm"}]}]}, "ansible_index_var": "idx", "ansible_loop_var": "pool", "changed": false, "idx": 0, "pool": {"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"encryption": true, "encryption_password": "yabbadabbadoo", "mount_point": "/opt/test1", "name": "test1", "size": "4g"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [6/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:72 TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [ { "encryption": true, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": "yabbadabbadoo", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm" } ] } ] } TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes": [] } TASK [linux-system-roles.storage : get required packages] ********************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": ["cryptsetup", "lvm2", "xfsprogs"], "pools": [], "volumes": []} TASK [linux-system-roles.storage : make sure required packages are installed] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: cryptsetup", "Installed: lvm2", "Installed: xfsprogs"]} TASK [linux-system-roles.storage : manage the pools and volumes to match the specified state] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:104 fatal: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2]: FAILED! => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "msg": "cannot remove existing formatting on device 'test1' in safe mode due to adding encryption", "packages": [], "pools": [], "volumes": []} TASK [Check that we failed in the role] **************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_luks.yml:512 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the output of the safe_mode test] ********************************* task path: /tmp/tmp7ksfxpzz/tests/tests_luks.yml:518 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [stat the file] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-data-preservation.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "stat": {"atime": 1604147793.5632071, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "checksum": "da39a3ee5e6b4b0d3255bfef95601890afd80709", "ctime": 1604147793.5632071, "dev": 64768, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 131, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "inode/x-empty", "mode": "0644", "mtime": 1604147793.5632071, "nlink": 1, "path": "/opt/test1/quux", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 0, "uid": 0, "version": "1749620638", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}} TASK [assert file presence] **************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-data-preservation.yml:15 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Add encryption to the volume] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_luks.yml:529 TASK [linux-system-roles.storage : Set version specific variables] ************* task path: /tmp/tmp7ksfxpzz/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-crypto", "libblockdev-dm", "libblockdev-lvm", "libblockdev-mdraid", "libblockdev-swap"]}, "ansible_included_var_files": ["/tmp/tmp7ksfxpzz/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.storage : define an empty list of pools to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : define an empty list of volumes to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : include the appropriate provider tasks] ***** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:22 included: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [linux-system-roles.storage : get a list of rpm packages installed on host machine] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : make sure blivet is available] ************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: python3-blivet", "Installed: libblockdev-crypto", "Installed: libblockdev-dm", "Installed: libblockdev-lvm", "Installed: libblockdev-mdraid", "Installed: libblockdev-swap"]} TASK [linux-system-roles.storage : initialize internal facts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools": [], "_storage_vol_defaults": [], "_storage_vol_pools": [], "_storage_vols_no_defaults": [], "_storage_vols_no_defaults_by_pool": {}, "_storage_vols_w_defaults": [], "_storage_volumes": []}, "changed": false} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [1/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:28 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'disks': [u'vda'], u'type': u'lvm', u'name': u'foo', u'volumes': [{u'encryption': True, u'mount_point': u'/opt/test1', u'name': u'test1', u'encryption_password': u'yabbadabbadoo', u'size': u'4g'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"encryption": true, "encryption_password": "yabbadabbadoo", "mount_point": "/opt/test1", "name": "test1", "size": "4g"}]}]}, "ansible_loop_var": "pool", "changed": false, "pool": {"disks": ["vda"], "name": "foo", "type": "lvm", "volumes": [{"encryption": true, "encryption_password": "yabbadabbadoo", "mount_point": "/opt/test1", "name": "test1", "size": "4g"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [2/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:36 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'encryption': True, u'mount_point': u'/opt/test1', u'name': u'test1', u'encryption_password': u'yabbadabbadoo', u'size': u'4g'}], u'type': u'lvm', u'encryption_key_size': None}, {u'encryption': True, u'mount_point': u'/opt/test1', u'name': u'test1', u'encryption_password': u'yabbadabbadoo', u'size': u'4g'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}], "_storage_vol_pools": ["foo"], "_storage_vols_no_defaults": [{"encryption": true, "encryption_password": "yabbadabbadoo", "mount_point": "/opt/test1", "name": "test1", "size": "4g"}]}, "ansible_loop_var": "item", "changed": false, "item": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"encryption": true, "encryption_password": "yabbadabbadoo", "mount_point": "/opt/test1", "name": "test1", "size": "4g"}]}, {"encryption": true, "encryption_password": "yabbadabbadoo", "mount_point": "/opt/test1", "name": "test1", "size": "4g"}]} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [3/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:44 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'encryption': True, u'mount_point': u'/opt/test1', u'name': u'test1', u'encryption_password': u'yabbadabbadoo', u'size': u'4g'}, {u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'fs_label': u'', u'raid_level': None, u'mount_device_identifier': u'uuid', u'fs_type': u'xfs', u'mount_options': u'defaults', u'encryption_luks_version': None, u'raid_spare_count': None, u'size': 0, u'mount_point': u'', u'encryption_password': None, u'encryption': False, u'raid_chunk_size': None, u'raid_device_count': None, u'state': u'present', u'mount_check': 0, u'mount_passno': 0, u'fs_overwrite_existing': True, u'type': u'lvm', u'encryption_key_size': None, u'fs_create_options': u''}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"encryption": true, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": "yabbadabbadoo", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm"}]}, "ansible_index_var": "idx", "ansible_loop_var": "item", "changed": false, "idx": 0, "item": [{"encryption": true, "encryption_password": "yabbadabbadoo", "mount_point": "/opt/test1", "name": "test1", "size": "4g"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}]} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [4/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:52 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'encryption': True, u'mount_point': u'/opt/test1', u'name': u'test1', u'encryption_password': u'yabbadabbadoo', u'size': u'4g'}], u'type': u'lvm', u'encryption_key_size': None}) => {"ansible_facts": {"_storage_vols_no_defaults_by_pool": {"foo": [{"encryption": true, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": "yabbadabbadoo", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm"}]}}, "ansible_loop_var": "item", "changed": false, "item": {"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"encryption": true, "encryption_password": "yabbadabbadoo", "mount_point": "/opt/test1", "name": "test1", "size": "4g"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [5/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:61 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'encryption': True, u'mount_point': u'/opt/test1', u'name': u'test1', u'encryption_password': u'yabbadabbadoo', u'size': u'4g'}], u'type': u'lvm', u'encryption_key_size': None}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"encryption": true, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": "yabbadabbadoo", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm"}]}]}, "ansible_index_var": "idx", "ansible_loop_var": "pool", "changed": false, "idx": 0, "pool": {"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"encryption": true, "encryption_password": "yabbadabbadoo", "mount_point": "/opt/test1", "name": "test1", "size": "4g"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [6/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:72 TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [ { "encryption": true, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": "yabbadabbadoo", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm" } ] } ] } TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes": [] } TASK [linux-system-roles.storage : get required packages] ********************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": ["cryptsetup", "lvm2", "xfsprogs"], "pools": [], "volumes": []} TASK [linux-system-roles.storage : make sure required packages are installed] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: cryptsetup", "Installed: lvm2", "Installed: xfsprogs"]} TASK [linux-system-roles.storage : manage the pools and volumes to match the specified state] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:104 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [{"action": "destroy format", "device": "/dev/mapper/foo-test1", "fs_type": "xfs"}, {"action": "create format", "device": "/dev/mapper/foo-test1", "fs_type": "luks"}, {"action": "create device", "device": "/dev/mapper/luks-cf228560-e81f-4b92-bc9e-896c69a9c5f6", "fs_type": null}, {"action": "create format", "device": "/dev/mapper/luks-cf228560-e81f-4b92-bc9e-896c69a9c5f6", "fs_type": "xfs"}], "changed": true, "crypts": [{"backing_device": "/dev/mapper/foo-test1", "name": "luks-cf228560-e81f-4b92-bc9e-896c69a9c5f6", "password": "-", "state": "present"}], "leaves": ["/dev/sda1", "/dev/sr0", "/dev/vdb", "/dev/vdc", "/dev/mapper/luks-cf228560-e81f-4b92-bc9e-896c69a9c5f6"], "mounts": [{"fstype": "xfs", "path": "/opt/test1", "src": "/dev/mapper/foo-test1", "state": "absent"}, {"dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "/dev/mapper/luks-cf228560-e81f-4b92-bc9e-896c69a9c5f6", "state": "mounted"}], "packages": ["xfsprogs", "lvm2", "cryptsetup", "e2fsprogs"], "pools": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"_device": "/dev/mapper/luks-cf228560-e81f-4b92-bc9e-896c69a9c5f6", "_kernel_device": "/dev/dm-1", "_mount_id": "/dev/mapper/luks-cf228560-e81f-4b92-bc9e-896c69a9c5f6", "_raw_device": "/dev/mapper/foo-test1", "_raw_kernel_device": "/dev/dm-0", "encryption": true, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": "yabbadabbadoo", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm"}]}], "volumes": []} TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:114 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "blivet_output": { "actions": [ { "action": "destroy format", "device": "/dev/mapper/foo-test1", "fs_type": "xfs" }, { "action": "create format", "device": "/dev/mapper/foo-test1", "fs_type": "luks" }, { "action": "create device", "device": "/dev/mapper/luks-cf228560-e81f-4b92-bc9e-896c69a9c5f6", "fs_type": null }, { "action": "create format", "device": "/dev/mapper/luks-cf228560-e81f-4b92-bc9e-896c69a9c5f6", "fs_type": "xfs" } ], "changed": true, "crypts": [ { "backing_device": "/dev/mapper/foo-test1", "name": "luks-cf228560-e81f-4b92-bc9e-896c69a9c5f6", "password": "-", "state": "present" } ], "failed": false, "leaves": [ "/dev/sda1", "/dev/sr0", "/dev/vdb", "/dev/vdc", "/dev/mapper/luks-cf228560-e81f-4b92-bc9e-896c69a9c5f6" ], "mounts": [ { "fstype": "xfs", "path": "/opt/test1", "src": "/dev/mapper/foo-test1", "state": "absent" }, { "dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "/dev/mapper/luks-cf228560-e81f-4b92-bc9e-896c69a9c5f6", "state": "mounted" } ], "packages": [ "xfsprogs", "lvm2", "cryptsetup", "e2fsprogs" ], "pools": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [ { "_device": "/dev/mapper/luks-cf228560-e81f-4b92-bc9e-896c69a9c5f6", "_kernel_device": "/dev/dm-1", "_mount_id": "/dev/mapper/luks-cf228560-e81f-4b92-bc9e-896c69a9c5f6", "_raw_device": "/dev/mapper/foo-test1", "_raw_kernel_device": "/dev/dm-0", "encryption": true, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": "yabbadabbadoo", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm" } ] } ], "volumes": [] } } TASK [linux-system-roles.storage : set the list of pools for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:117 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"_device": "/dev/mapper/luks-cf228560-e81f-4b92-bc9e-896c69a9c5f6", "_kernel_device": "/dev/dm-1", "_mount_id": "/dev/mapper/luks-cf228560-e81f-4b92-bc9e-896c69a9c5f6", "_raw_device": "/dev/mapper/foo-test1", "_raw_kernel_device": "/dev/dm-0", "encryption": true, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": "yabbadabbadoo", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm"}]}]}, "changed": false} TASK [linux-system-roles.storage : set the list of volumes for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:121 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : remove obsolete mounts] ********************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:137 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'src': u'/dev/mapper/foo-test1', u'state': u'absent', u'fstype': u'xfs', u'path': u'/opt/test1'}) => {"ansible_loop_var": "mount_info", "changed": true, "dump": "0", "fstab": "/etc/fstab", "fstype": "xfs", "mount_info": {"fstype": "xfs", "path": "/opt/test1", "src": "/dev/mapper/foo-test1", "state": "absent"}, "name": "/opt/test1", "opts": "defaults", "passno": "0", "src": "/dev/mapper/foo-test1"} TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:148 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [linux-system-roles.storage : set up new/current mounts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:153 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'src': u'/dev/mapper/luks-cf228560-e81f-4b92-bc9e-896c69a9c5f6', u'state': u'mounted', u'dump': 0, u'path': u'/opt/test1', u'passno': 0, u'opts': u'defaults', u'fstype': u'xfs'}) => {"ansible_loop_var": "mount_info", "changed": true, "dump": "0", "fstab": "/etc/fstab", "fstype": "xfs", "mount_info": {"dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "/dev/mapper/luks-cf228560-e81f-4b92-bc9e-896c69a9c5f6", "state": "mounted"}, "name": "/opt/test1", "opts": "defaults", "passno": "0", "src": "/dev/mapper/luks-cf228560-e81f-4b92-bc9e-896c69a9c5f6"} TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:164 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [linux-system-roles.storage : Manage /etc/crypttab to account for changes we just made] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:172 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'state': u'present', u'password': u'-', u'name': u'luks-cf228560-e81f-4b92-bc9e-896c69a9c5f6', u'backing_device': u'/dev/mapper/foo-test1'}) => {"ansible_loop_var": "entry", "backing_device": "/dev/mapper/foo-test1", "changed": true, "entry": {"backing_device": "/dev/mapper/foo-test1", "name": "luks-cf228560-e81f-4b92-bc9e-896c69a9c5f6", "password": "-", "state": "present"}, "gid": 0, "group": "root", "mode": "0600", "msg": "added line", "name": "luks-cf228560-e81f-4b92-bc9e-896c69a9c5f6", "opts": null, "owner": "root", "password": "-", "path": "/etc/crypttab", "secontext": "system_u:object_r:etc_t:s0", "size": 67, "state": "file", "uid": 0, "warnings": ["Module did not set no_log for password"]} TASK [linux-system-roles.storage : Update facts] ******************************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:187 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_luks.yml:545 included: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Print out pool information] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:1 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools_list": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [ { "_device": "/dev/mapper/luks-cf228560-e81f-4b92-bc9e-896c69a9c5f6", "_kernel_device": "/dev/dm-1", "_mount_id": "/dev/mapper/luks-cf228560-e81f-4b92-bc9e-896c69a9c5f6", "_raw_device": "/dev/mapper/foo-test1", "_raw_kernel_device": "/dev/dm-0", "encryption": true, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": "yabbadabbadoo", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm" } ] } ] } TASK [Print out volume information] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:6 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {} TASK [Collect info about the volumes.] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "info": {"/dev/mapper/foo-test1": {"fstype": "crypto_LUKS", "label": "", "name": "/dev/mapper/foo-test1", "size": "4G", "type": "lvm", "uuid": "cf228560-e81f-4b92-bc9e-896c69a9c5f6"}, "/dev/mapper/luks-cf228560-e81f-4b92-bc9e-896c69a9c5f6": {"fstype": "xfs", "label": "", "name": "/dev/mapper/luks-cf228560-e81f-4b92-bc9e-896c69a9c5f6", "size": "4G", "type": "crypt", "uuid": "0e6a0fb2-4af3-4598-80e1-93c50d026e54"}, "/dev/sda": {"fstype": "", "label": "", "name": "/dev/sda", "size": "4G", "type": "disk", "uuid": ""}, "/dev/sda1": {"fstype": "ext4", "label": "", "name": "/dev/sda1", "size": "4G", "type": "partition", "uuid": "03e702b4-e165-4a39-88c9-9e210cd00434"}, "/dev/sr0": {"fstype": "iso9660", "label": "cidata", "name": "/dev/sr0", "size": "364K", "type": "rom", "uuid": "2020-10-31-12-30-28-00"}, "/dev/vda": {"fstype": "LVM2_member", "label": "", "name": "/dev/vda", "size": "10G", "type": "disk", "uuid": "OjdMdU-OK5B-SMkS-9I7s-3I3j-PTVr-tg0jqV"}, "/dev/vdb": {"fstype": "", "label": "", "name": "/dev/vdb", "size": "10G", "type": "disk", "uuid": ""}, "/dev/vdc": {"fstype": "", "label": "", "name": "/dev/vdc", "size": "10G", "type": "disk", "uuid": ""}}} TASK [Read the /etc/fstab file for volume existence] *************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:19 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/fstab"], "delta": "0:00:00.002535", "end": "2020-10-31 12:37:07.658918", "rc": 0, "start": "2020-10-31 12:37:07.656383", "stderr": "", "stderr_lines": [], "stdout": "\n#\n# /etc/fstab\n# Created by anaconda on Sat Oct 31 08:17:58 2020\n#\n# Accessible filesystems, by reference, are maintained under '/dev/disk/'.\n# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.\n#\n# After editing this file, run 'systemctl daemon-reload' to update systemd\n# units generated from this file.\n#\nUUID=03e702b4-e165-4a39-88c9-9e210cd00434 / ext4 defaults 1 1\n/dev/mapper/luks-cf228560-e81f-4b92-bc9e-896c69a9c5f6 /opt/test1 xfs defaults 0 0", "stdout_lines": ["", "#", "# /etc/fstab", "# Created by anaconda on Sat Oct 31 08:17:58 2020", "#", "# Accessible filesystems, by reference, are maintained under '/dev/disk/'.", "# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.", "#", "# After editing this file, run 'systemctl daemon-reload' to update systemd", "# units generated from this file.", "#", "UUID=03e702b4-e165-4a39-88c9-9e210cd00434 / ext4 defaults 1 1", "/dev/mapper/luks-cf228560-e81f-4b92-bc9e-896c69a9c5f6 /opt/test1 xfs defaults 0 0"]} TASK [Read the /etc/crypttab file] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/crypttab"], "delta": "0:00:01.003885", "end": "2020-10-31 12:37:08.999064", "rc": 0, "start": "2020-10-31 12:37:07.995179", "stderr": "", "stderr_lines": [], "stdout": "\nluks-cf228560-e81f-4b92-bc9e-896c69a9c5f6 /dev/mapper/foo-test1 -", "stdout_lines": ["", "luks-cf228560-e81f-4b92-bc9e-896c69a9c5f6 /dev/mapper/foo-test1 -"]} TASK [Verify the volumes listed in storage_pools were correctly managed] ******* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:32 [WARNING]: The loop variable 'storage_test_pool' is already in use. You should set the `loop_var` value in the `loop_control` option for the task to something else to avoid variable collisions and unexpected behavior. included: /tmp/tmp7ksfxpzz/tests/test-verify-pool.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool.yml:5 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pool_tests": ["members", "volumes"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool.yml:17 included: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-pool-volumes.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:1 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_count": "1", "_storage_test_pool_pvs": [], "_storage_test_pool_pvs_lvm": ["/dev/vda"]}, "changed": false} TASK [Get the canonical device path for each member device] ******************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:7 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=/dev/vda) => {"ansible_loop_var": "pv", "changed": false, "device": "/dev/vda", "pv": "/dev/vda"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:16 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=/dev/vda) => {"ansible_facts": {"_storage_test_pool_pvs": ["/dev/vda"]}, "ansible_index_var": "idx", "ansible_loop_var": "item", "changed": false, "idx": 0, "item": "/dev/vda"} TASK [Verify PV count] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:23 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:29 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_type": "disk"}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:33 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_type": "disk"}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check the type of each PV] *********************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:41 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=/dev/vda) => { "ansible_loop_var": "pv", "changed": false, "msg": "All assertions passed", "pv": "/dev/vda" } TASK [Check raid] ************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:50 included: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [get information about RAID] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:6 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:12 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:16 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:20 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID active devices count] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:24 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID spare devices count] ****************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:30 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID metadata version] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:36 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:44 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_md_active_devices_re": null, "storage_test_md_metadata_version_re": null, "storage_test_md_spare_devices_re": null}, "changed": false} TASK [Check member encryption] ************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:53 included: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_crypttab_entries": "0", "_storage_test_expected_crypttab_key_file": "-"}, "changed": false} TASK [Validate pool member LUKS settings] ************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:8 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=/dev/vda) => {"_storage_test_pool_member_path": "/dev/vda", "ansible_loop_var": "_storage_test_pool_member_path", "changed": false, "skip_reason": "Conditional result was False"} TASK [Validate pool member crypttab entries] *********************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:15 included: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:1 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": []}, "changed": false} TASK [Check for /etc/crypttab entry] ******************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Validate the format of the crypttab entry] ******************************* task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:9 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check backing device of crypttab entry] ********************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:15 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check key file of crypttab entry] **************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:27 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:22 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null, "_storage_test_crypttab_key_file": null}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:56 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_count": null, "_storage_test_expected_pv_type": null, "_storage_test_pool_pvs": [], "_storage_test_pool_pvs_lvm": []}, "changed": false} TASK [verify the volumes] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-volumes.yml:3 [WARNING]: The loop variable 'storage_test_volume' is already in use. You should set the `loop_var` value in the `loop_control` option for the task to something else to avoid variable collisions and unexpected behavior. included: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": true, "_storage_volume_tests": ["mount", "fstab", "fs", "device", "encryption", "md", "size"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:10 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Get expected mount device based on device type] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/luks-cf228560-e81f-4b92-bc9e-896c69a9c5f6"}, "changed": false} TASK [Set some facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [{"block_available": 1029949, "block_size": 4096, "block_total": 1045504, "block_used": 15555, "device": "/dev/mapper/luks-cf228560-e81f-4b92-bc9e-896c69a9c5f6", "fstype": "xfs", "inode_available": 2096125, "inode_total": 2096128, "inode_used": 3, "mount": "/opt/test1", "options": "rw,seclabel,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota", "size_available": 4218671104, "size_total": 4282384384, "uuid": "0e6a0fb2-4af3-4598-80e1-93c50d026e54"}], "storage_test_mount_expected_match_count": "1", "storage_test_mount_point_matches": [{"block_available": 1029949, "block_size": 4096, "block_total": 1045504, "block_used": 15555, "device": "/dev/mapper/luks-cf228560-e81f-4b92-bc9e-896c69a9c5f6", "fstype": "xfs", "inode_available": 2096125, "inode_total": 2096128, "inode_used": 3, "mount": "/opt/test1", "options": "rw,seclabel,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota", "size_available": 4218671104, "size_total": 4282384384, "uuid": "0e6a0fb2-4af3-4598-80e1-93c50d026e54"}], "storage_test_swap_expected_matches": "0"}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:22 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:31 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:39 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [command] ***************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Gather swap info] ******************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:52 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify swap status] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:57 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Unset facts] ************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:67 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null, "storage_test_swap_expected_matches": null, "storage_test_swaps": null, "storage_test_sys_node": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": "1", "storage_test_fstab_expected_mount_point_matches": "1", "storage_test_fstab_id_matches": ["/dev/mapper/luks-cf228560-e81f-4b92-bc9e-896c69a9c5f6 "], "storage_test_fstab_mount_point_matches": [" /opt/test1 "]}, "changed": false} TASK [Verify that the device identifier appears in /etc/fstab] ***************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:17 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": null, "storage_test_fstab_expected_mount_point_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [Verify fs type] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify fs label] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [See whether the device node is present] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "stat": {"atime": 1604147823.6512072, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "ctime": 1604147823.6512072, "dev": 5, "device_type": 64768, "executable": false, "exists": true, "gid": 6, "gr_name": "disk", "inode": 120572, "isblk": true, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mimetype": "inode/symlink", "mode": "0660", "mtime": 1604147823.6512072, "nlink": 1, "path": "/dev/mapper/foo-test1", "pw_name": "root", "readable": true, "rgrp": true, "roth": false, "rusr": true, "size": 0, "uid": 0, "version": null, "wgrp": true, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}} TASK [Verify the presence/absence of the device node] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "lvm"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:28 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:33 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Stat the LUKS device, if encrypted] ************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:3 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "stat": {"atime": 1604147823.7342072, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "ctime": 1604147823.7342072, "dev": 5, "device_type": 64769, "executable": false, "exists": true, "gid": 6, "gr_name": "disk", "inode": 128314, "isblk": true, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mimetype": "inode/symlink", "mode": "0660", "mtime": 1604147823.7342072, "nlink": 1, "path": "/dev/mapper/luks-cf228560-e81f-4b92-bc9e-896c69a9c5f6", "pw_name": "root", "readable": true, "rgrp": true, "roth": false, "rusr": true, "size": 0, "uid": 0, "version": null, "wgrp": true, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}} TASK [Collect LUKS info for this volume] *************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["cryptsetup", "luksDump", "/dev/mapper/foo-test1"], "delta": "0:00:00.010151", "end": "2020-10-31 12:37:12.598647", "rc": 0, "start": "2020-10-31 12:37:12.588496", "stderr": "", "stderr_lines": [], "stdout": "LUKS header information for /dev/mapper/foo-test1\n\nVersion: \t1\nCipher name: \taes\nCipher mode: \txts-plain64\nHash spec: \tsha256\nPayload offset:\t4096\nMK bits: \t512\nMK digest: \t11 b0 18 b4 07 7e b0 c5 34 e7 10 db cb 8d f6 1f a1 4d 7c 11 \nMK salt: \t8a 4e 6e d7 f0 b8 67 09 22 1f 8a 42 d0 f3 93 6b \n \tff 11 b0 37 e7 bd fa cd 28 de 80 a4 44 8f ec 1d \nMK iterations: \t120915\nUUID: \tcf228560-e81f-4b92-bc9e-896c69a9c5f6\n\nKey Slot 0: ENABLED\n\tIterations: \t1945410\n\tSalt: \t97 f6 c9 03 be dc 5b 1a 35 fa 52 a0 26 1f 7d 00 \n\t \t4e 21 50 f4 27 fc 18 3b 73 5a 26 52 98 bb ca 52 \n\tKey material offset:\t8\n\tAF stripes: \t4000\nKey Slot 1: DISABLED\nKey Slot 2: DISABLED\nKey Slot 3: DISABLED\nKey Slot 4: DISABLED\nKey Slot 5: DISABLED\nKey Slot 6: DISABLED\nKey Slot 7: DISABLED", "stdout_lines": ["LUKS header information for /dev/mapper/foo-test1", "", "Version: \t1", "Cipher name: \taes", "Cipher mode: \txts-plain64", "Hash spec: \tsha256", "Payload offset:\t4096", "MK bits: \t512", "MK digest: \t11 b0 18 b4 07 7e b0 c5 34 e7 10 db cb 8d f6 1f a1 4d 7c 11 ", "MK salt: \t8a 4e 6e d7 f0 b8 67 09 22 1f 8a 42 d0 f3 93 6b ", " \tff 11 b0 37 e7 bd fa cd 28 de 80 a4 44 8f ec 1d ", "MK iterations: \t120915", "UUID: \tcf228560-e81f-4b92-bc9e-896c69a9c5f6", "", "Key Slot 0: ENABLED", "\tIterations: \t1945410", "\tSalt: \t97 f6 c9 03 be dc 5b 1a 35 fa 52 a0 26 1f 7d 00 ", "\t \t4e 21 50 f4 27 fc 18 3b 73 5a 26 52 98 bb ca 52 ", "\tKey material offset:\t8", "\tAF stripes: \t4000", "Key Slot 1: DISABLED", "Key Slot 2: DISABLED", "Key Slot 3: DISABLED", "Key Slot 4: DISABLED", "Key Slot 5: DISABLED", "Key Slot 6: DISABLED", "Key Slot 7: DISABLED"]} TASK [Verify the presence/absence of the LUKS device node] ********************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:16 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify that the raw device is the same as the device if not encrypted] *** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:25 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about the LUKS volume if encrypted] **************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:31 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the LUKS volume's device type if encrypted] *********************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:37 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Check LUKS version] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:42 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS key size] ***************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS cipher] ******************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:54 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:60 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": ["luks-cf228560-e81f-4b92-bc9e-896c69a9c5f6 /dev/mapper/foo-test1 -"], "_storage_test_expected_crypttab_entries": "1", "_storage_test_expected_crypttab_key_file": "-"}, "changed": false} TASK [Check for /etc/crypttab entry] ******************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:65 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Validate the format of the crypttab entry] ******************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:70 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Check backing device of crypttab entry] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:76 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Check key file of crypttab entry] **************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:82 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:88 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null, "_storage_test_expected_crypttab_entries": null, "_storage_test_expected_crypttab_key_file": null}, "changed": false} TASK [get information about RAID] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:7 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:13 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:17 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID active devices count] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:25 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID spare devices count] ****************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID metadata version] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [parse the actual size of the volume] ************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:3 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"bytes": 4294967296, "changed": false, "lvm": "4g", "parted": "4GiB", "size": "4 GiB"} TASK [parse the requested size of the volume] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:9 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"bytes": 4294967296, "changed": false, "lvm": "4g", "parted": "4GiB", "size": "4 GiB"} TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:15 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_actual_size": { "bytes": 4294967296, "changed": false, "failed": false, "lvm": "4g", "parted": "4GiB", "size": "4 GiB" } } TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_requested_size": { "bytes": 4294967296, "changed": false, "failed": false, "lvm": "4g", "parted": "4GiB", "size": "4 GiB" } } TASK [assert] ****************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:21 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:16 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:39 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_pool": null}, "changed": false} TASK [Verify the volumes with no pool were correctly managed] ****************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:46 TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:56 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_blkinfo": null, "storage_test_crypttab": null, "storage_test_fstab": null, "storage_test_volume": null}, "changed": false} TASK [Clean up] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_luks.yml:547 TASK [linux-system-roles.storage : Set version specific variables] ************* task path: /tmp/tmp7ksfxpzz/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-crypto", "libblockdev-dm", "libblockdev-lvm", "libblockdev-mdraid", "libblockdev-swap"]}, "ansible_included_var_files": ["/tmp/tmp7ksfxpzz/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.storage : define an empty list of pools to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : define an empty list of volumes to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : include the appropriate provider tasks] ***** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:22 included: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [linux-system-roles.storage : get a list of rpm packages installed on host machine] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : make sure blivet is available] ************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: python3-blivet", "Installed: libblockdev-crypto", "Installed: libblockdev-dm", "Installed: libblockdev-lvm", "Installed: libblockdev-mdraid", "Installed: libblockdev-swap"]} TASK [linux-system-roles.storage : initialize internal facts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools": [], "_storage_vol_defaults": [], "_storage_vol_pools": [], "_storage_vols_no_defaults": [], "_storage_vols_no_defaults_by_pool": {}, "_storage_vols_w_defaults": [], "_storage_volumes": []}, "changed": false} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [1/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:28 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [2/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:36 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [3/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:44 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [4/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:52 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [5/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:61 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [6/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:72 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'state': u'absent', u'disks': [u'vda'], u'type': u'disk', u'name': u'foo'}) => {"ansible_facts": {"_storage_volumes": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "absent", "type": "disk"}]}, "ansible_loop_var": "volume", "changed": false, "volume": {"disks": ["vda"], "name": "foo", "state": "absent", "type": "disk"}} TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools": [] } TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "absent", "type": "disk" } ] } TASK [linux-system-roles.storage : get required packages] ********************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": []} TASK [linux-system-roles.storage : make sure required packages are installed] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [linux-system-roles.storage : manage the pools and volumes to match the specified state] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:104 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [{"action": "destroy format", "device": "/dev/mapper/luks-cf228560-e81f-4b92-bc9e-896c69a9c5f6", "fs_type": "xfs"}, {"action": "destroy device", "device": "/dev/mapper/luks-cf228560-e81f-4b92-bc9e-896c69a9c5f6", "fs_type": null}, {"action": "destroy format", "device": "/dev/mapper/foo-test1", "fs_type": "luks"}, {"action": "destroy device", "device": "/dev/mapper/foo-test1", "fs_type": null}, {"action": "destroy device", "device": "/dev/foo", "fs_type": null}, {"action": "destroy format", "device": "/dev/vda", "fs_type": "lvmpv"}], "changed": true, "crypts": [{"backing_device": "/dev/mapper/foo-test1", "name": "luks-cf228560-e81f-4b92-bc9e-896c69a9c5f6", "password": "-", "state": "absent"}], "leaves": ["/dev/sda1", "/dev/sr0", "/dev/vda", "/dev/vdb", "/dev/vdc"], "mounts": [{"fstype": "xfs", "path": "/opt/test1", "src": "/dev/mapper/luks-cf228560-e81f-4b92-bc9e-896c69a9c5f6", "state": "absent"}], "packages": ["e2fsprogs"], "pools": [], "volumes": [{"_device": "/dev/vda", "_mount_id": "UUID=OjdMdU-OK5B-SMkS-9I7s-3I3j-PTVr-tg0jqV", "_raw_device": "/dev/vda", "disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "absent", "type": "disk"}]} TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:114 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "blivet_output": { "actions": [ { "action": "destroy format", "device": "/dev/mapper/luks-cf228560-e81f-4b92-bc9e-896c69a9c5f6", "fs_type": "xfs" }, { "action": "destroy device", "device": "/dev/mapper/luks-cf228560-e81f-4b92-bc9e-896c69a9c5f6", "fs_type": null }, { "action": "destroy format", "device": "/dev/mapper/foo-test1", "fs_type": "luks" }, { "action": "destroy device", "device": "/dev/mapper/foo-test1", "fs_type": null }, { "action": "destroy device", "device": "/dev/foo", "fs_type": null }, { "action": "destroy format", "device": "/dev/vda", "fs_type": "lvmpv" } ], "changed": true, "crypts": [ { "backing_device": "/dev/mapper/foo-test1", "name": "luks-cf228560-e81f-4b92-bc9e-896c69a9c5f6", "password": "-", "state": "absent" } ], "failed": false, "leaves": [ "/dev/sda1", "/dev/sr0", "/dev/vda", "/dev/vdb", "/dev/vdc" ], "mounts": [ { "fstype": "xfs", "path": "/opt/test1", "src": "/dev/mapper/luks-cf228560-e81f-4b92-bc9e-896c69a9c5f6", "state": "absent" } ], "packages": [ "e2fsprogs" ], "pools": [], "volumes": [ { "_device": "/dev/vda", "_mount_id": "UUID=OjdMdU-OK5B-SMkS-9I7s-3I3j-PTVr-tg0jqV", "_raw_device": "/dev/vda", "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "absent", "type": "disk" } ] } } TASK [linux-system-roles.storage : set the list of pools for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:117 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : set the list of volumes for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:121 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": [{"_device": "/dev/vda", "_mount_id": "UUID=OjdMdU-OK5B-SMkS-9I7s-3I3j-PTVr-tg0jqV", "_raw_device": "/dev/vda", "disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "absent", "type": "disk"}]}, "changed": false} TASK [linux-system-roles.storage : remove obsolete mounts] ********************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:137 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'src': u'/dev/mapper/luks-cf228560-e81f-4b92-bc9e-896c69a9c5f6', u'state': u'absent', u'fstype': u'xfs', u'path': u'/opt/test1'}) => {"ansible_loop_var": "mount_info", "changed": true, "dump": "0", "fstab": "/etc/fstab", "fstype": "xfs", "mount_info": {"fstype": "xfs", "path": "/opt/test1", "src": "/dev/mapper/luks-cf228560-e81f-4b92-bc9e-896c69a9c5f6", "state": "absent"}, "name": "/opt/test1", "opts": "defaults", "passno": "0", "src": "/dev/mapper/luks-cf228560-e81f-4b92-bc9e-896c69a9c5f6"} TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:148 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [linux-system-roles.storage : set up new/current mounts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:153 TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:164 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [linux-system-roles.storage : Manage /etc/crypttab to account for changes we just made] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:172 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'state': u'absent', u'password': u'-', u'name': u'luks-cf228560-e81f-4b92-bc9e-896c69a9c5f6', u'backing_device': u'/dev/mapper/foo-test1'}) => {"ansible_loop_var": "entry", "backing_device": "/dev/mapper/foo-test1", "changed": true, "entry": {"backing_device": "/dev/mapper/foo-test1", "name": "luks-cf228560-e81f-4b92-bc9e-896c69a9c5f6", "password": "-", "state": "absent"}, "gid": 0, "group": "root", "mode": "0600", "msg": "removed line", "name": "luks-cf228560-e81f-4b92-bc9e-896c69a9c5f6", "opts": null, "owner": "root", "password": "-", "path": "/etc/crypttab", "secontext": "system_u:object_r:etc_t:s0", "size": 1, "state": "file", "uid": 0, "warnings": ["Module did not set no_log for password"]} TASK [linux-system-roles.storage : Update facts] ******************************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:187 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_luks.yml:557 included: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Print out pool information] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:1 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {} TASK [Print out volume information] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:6 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes_list": [ { "_device": "/dev/vda", "_mount_id": "UUID=OjdMdU-OK5B-SMkS-9I7s-3I3j-PTVr-tg0jqV", "_raw_device": "/dev/vda", "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "absent", "type": "disk" } ] } TASK [Collect info about the volumes.] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "info": {"/dev/sda": {"fstype": "", "label": "", "name": "/dev/sda", "size": "4G", "type": "disk", "uuid": ""}, "/dev/sda1": {"fstype": "ext4", "label": "", "name": "/dev/sda1", "size": "4G", "type": "partition", "uuid": "03e702b4-e165-4a39-88c9-9e210cd00434"}, "/dev/sr0": {"fstype": "iso9660", "label": "cidata", "name": "/dev/sr0", "size": "364K", "type": "rom", "uuid": "2020-10-31-12-30-28-00"}, "/dev/vda": {"fstype": "", "label": "", "name": "/dev/vda", "size": "10G", "type": "disk", "uuid": ""}, "/dev/vdb": {"fstype": "", "label": "", "name": "/dev/vdb", "size": "10G", "type": "disk", "uuid": ""}, "/dev/vdc": {"fstype": "", "label": "", "name": "/dev/vdc", "size": "10G", "type": "disk", "uuid": ""}}} TASK [Read the /etc/fstab file for volume existence] *************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:19 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/fstab"], "delta": "0:00:00.002644", "end": "2020-10-31 12:37:30.921036", "rc": 0, "start": "2020-10-31 12:37:30.918392", "stderr": "", "stderr_lines": [], "stdout": "\n#\n# /etc/fstab\n# Created by anaconda on Sat Oct 31 08:17:58 2020\n#\n# Accessible filesystems, by reference, are maintained under '/dev/disk/'.\n# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.\n#\n# After editing this file, run 'systemctl daemon-reload' to update systemd\n# units generated from this file.\n#\nUUID=03e702b4-e165-4a39-88c9-9e210cd00434 / ext4 defaults 1 1", "stdout_lines": ["", "#", "# /etc/fstab", "# Created by anaconda on Sat Oct 31 08:17:58 2020", "#", "# Accessible filesystems, by reference, are maintained under '/dev/disk/'.", "# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.", "#", "# After editing this file, run 'systemctl daemon-reload' to update systemd", "# units generated from this file.", "#", "UUID=03e702b4-e165-4a39-88c9-9e210cd00434 / ext4 defaults 1 1"]} TASK [Read the /etc/crypttab file] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/crypttab"], "delta": "0:00:00.003050", "end": "2020-10-31 12:37:31.248434", "rc": 0, "start": "2020-10-31 12:37:31.245384", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Verify the volumes listed in storage_pools were correctly managed] ******* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:32 TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:39 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_pool": null}, "changed": false} TASK [Verify the volumes with no pool were correctly managed] ****************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:46 [WARNING]: The loop variable 'storage_test_volume' is already in use. You should set the `loop_var` value in the `loop_control` option for the task to something else to avoid variable collisions and unexpected behavior. included: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": false, "_storage_volume_tests": ["mount", "fstab", "fs", "device", "encryption", "md", "size"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:10 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Get expected mount device based on device type] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/vda"}, "changed": false} TASK [Set some facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [], "storage_test_mount_expected_match_count": "0", "storage_test_mount_point_matches": [], "storage_test_swap_expected_matches": "0"}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:22 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:31 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:39 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [command] ***************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Gather swap info] ******************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:52 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify swap status] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:57 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Unset facts] ************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:67 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null, "storage_test_swap_expected_matches": null, "storage_test_swaps": null, "storage_test_sys_node": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": "0", "storage_test_fstab_expected_mount_point_matches": "0", "storage_test_fstab_id_matches": [], "storage_test_fstab_mount_point_matches": []}, "changed": false} TASK [Verify that the device identifier appears in /etc/fstab] ***************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:10 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:17 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": null, "storage_test_fstab_expected_mount_point_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [Verify fs type] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:4 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify fs label] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:10 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [See whether the device node is present] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "stat": {"atime": 1604147847.1732073, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "ctime": 1604147847.1732073, "dev": 5, "device_type": 64512, "executable": false, "exists": true, "gid": 6, "gr_name": "disk", "inode": 1711, "isblk": true, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mimetype": "inode/blockdevice", "mode": "0660", "mtime": 1604147847.1732073, "nlink": 1, "path": "/dev/vda", "pw_name": "root", "readable": true, "rgrp": true, "roth": false, "rusr": true, "size": 0, "uid": 0, "version": null, "wgrp": true, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}} TASK [Verify the presence/absence of the device node] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:18 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "disk"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:28 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:33 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Stat the LUKS device, if encrypted] ************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:3 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Collect LUKS info for this volume] *************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:10 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the presence/absence of the LUKS device node] ********************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:16 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify that the raw device is the same as the device if not encrypted] *** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:25 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Make sure we got info about the LUKS volume if encrypted] **************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the LUKS volume's device type if encrypted] *********************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS version] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:42 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS key size] ***************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS cipher] ******************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:54 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:60 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": [], "_storage_test_expected_crypttab_entries": "0", "_storage_test_expected_crypttab_key_file": "-"}, "changed": false} TASK [Check for /etc/crypttab entry] ******************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:65 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Validate the format of the crypttab entry] ******************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:70 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check backing device of crypttab entry] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:76 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check key file of crypttab entry] **************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:82 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:88 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null, "_storage_test_expected_crypttab_entries": null, "_storage_test_expected_crypttab_key_file": null}, "changed": false} TASK [get information about RAID] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:7 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:13 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:17 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID active devices count] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:25 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID spare devices count] ****************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID metadata version] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [parse the actual size of the volume] ************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:3 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [parse the requested size of the volume] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:9 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:15 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_actual_size": { "changed": false, "skip_reason": "Conditional result was False", "skipped": true } } TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_requested_size": { "changed": false, "skip_reason": "Conditional result was False", "skipped": true } } TASK [assert] ****************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Clean up facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:16 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:56 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_blkinfo": null, "storage_test_crypttab": null, "storage_test_fstab": null, "storage_test_volume": null}, "changed": false} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 : ok=960 changed=46 unreachable=0 failed=0 skipped=387 rescued=9 ignored=0 + cd /tmp/tmp7ksfxpzz/tests; TEST_SUBJECTS=/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_storage-178-e856157-fedora-31-87qzp9iq/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmp7ksfxpzz/_setup.yml /tmp/tmp7ksfxpzz/tests/tests_luks_pool.yml ansible-playbook 2.8.16 config file = /etc/ansible/ansible.cfg configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python2.7/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 2.7.5 (default, Apr 2 2020, 13:16:51) [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)] Using /etc/ansible/ansible.cfg as config file PLAYBOOK: _setup.yml *********************************************************** 1 plays in /tmp/tmp7ksfxpzz/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/_setup.yml:5 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "groups": { "all": [ "/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2" ], "localhost": [ "/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2" ], "subjects": [ "/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmp7ksfxpzz/_setup.yml:6 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 : ok=1 changed=0 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 statically imported: /tmp/tmp7ksfxpzz/tests/create-test-file.yml statically imported: /tmp/tmp7ksfxpzz/tests/verify-data-preservation.yml statically imported: /tmp/tmp7ksfxpzz/tests/create-test-file.yml statically imported: /tmp/tmp7ksfxpzz/tests/verify-data-preservation.yml statically imported: /tmp/tmp7ksfxpzz/tests/create-test-file.yml statically imported: /tmp/tmp7ksfxpzz/tests/verify-data-preservation.yml PLAYBOOK: tests_luks_pool.yml ************************************************** 1 plays in /tmp/tmp7ksfxpzz/tests/tests_luks_pool.yml PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/tests_luks_pool.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] META: ran handlers TASK [include_role : linux-system-roles.storage] ******************************* task path: /tmp/tmp7ksfxpzz/tests/tests_luks_pool.yml:12 TASK [linux-system-roles.storage : Set version specific variables] ************* task path: /tmp/tmp7ksfxpzz/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-crypto", "libblockdev-dm", "libblockdev-lvm", "libblockdev-mdraid", "libblockdev-swap"]}, "ansible_included_var_files": ["/tmp/tmp7ksfxpzz/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.storage : define an empty list of pools to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : define an empty list of volumes to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : include the appropriate provider tasks] ***** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:22 included: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [linux-system-roles.storage : get a list of rpm packages installed on host machine] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : make sure blivet is available] ************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:7 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: python3-blivet", "Installed: libblockdev-crypto", "Installed: libblockdev-dm", "Installed: libblockdev-lvm", "Installed: libblockdev-mdraid", "Installed: libblockdev-swap", "Installed: libblockdev-2.24-2.fc31.x86_64", "Installed: libblockdev-btrfs-2.24-2.fc31.x86_64", "Installed: btrfs-progs-5.7-4.fc31.x86_64", "Installed: libblockdev-crypto-2.24-2.fc31.x86_64", "Installed: ndctl-70.1-1.fc31.x86_64", "Installed: gdisk-1.0.5-1.fc31.x86_64", "Installed: ndctl-libs-70.1-1.fc31.x86_64", "Installed: libblockdev-dm-2.24-2.fc31.x86_64", "Installed: compat-readline5-5.2-34.fc31.x86_64", "Installed: dmraid-1.0.0.rc16-43.fc31.x86_64", "Installed: dmraid-events-1.0.0.rc16-43.fc31.x86_64", "Installed: libblockdev-fs-2.24-2.fc31.x86_64", "Installed: mdadm-4.1-5.fc31.x86_64", "Installed: lzo-2.08-16.fc31.x86_64", "Installed: libblockdev-kbd-2.24-2.fc31.x86_64", "Installed: nspr-4.29.0-1.fc31.x86_64", "Installed: libblockdev-loop-2.24-2.fc31.x86_64", "Installed: nss-3.57.0-1.fc31.x86_64", "Installed: libblockdev-lvm-2.24-2.fc31.x86_64", "Installed: lsof-4.93.2-2.fc31.x86_64", "Installed: lvm2-2.03.09-1.fc31.x86_64", "Installed: nss-softokn-3.57.0-1.fc31.x86_64", "Installed: libblockdev-mdraid-2.24-2.fc31.x86_64", "Installed: nss-softokn-freebl-3.57.0-1.fc31.x86_64", "Installed: lvm2-libs-2.03.09-1.fc31.x86_64", "Installed: python3-gobject-base-3.34.0-3.fc31.x86_64", "Installed: libblockdev-mpath-2.24-2.fc31.x86_64", "Installed: nss-sysinit-3.57.0-1.fc31.x86_64", "Installed: device-mapper-event-1.02.171-1.fc31.x86_64", "Installed: nss-util-3.57.0-1.fc31.x86_64", "Installed: libblockdev-nvdimm-2.24-2.fc31.x86_64", "Installed: gobject-introspection-1.62.0-1.fc31.x86_64", "Installed: device-mapper-event-libs-1.02.171-1.fc31.x86_64", "Installed: userspace-rcu-0.11.1-2.fc31.x86_64", "Installed: libblockdev-part-2.24-2.fc31.x86_64", "Installed: volume_key-libs-0.3.12-4.fc31.x86_64", "Installed: libblockdev-swap-2.24-2.fc31.x86_64", "Installed: libblockdev-utils-2.24-2.fc31.x86_64", "Installed: blivet-data-1:3.1.7-2.fc31.noarch", "Installed: device-mapper-multipath-0.8.0-3.fc31.x86_64", "Installed: device-mapper-multipath-libs-0.8.0-3.fc31.x86_64", "Installed: device-mapper-persistent-data-0.8.5-2.fc31.x86_64", "Installed: sgpio-1.2.0.10-24.fc31.x86_64", "Installed: bcache-tools-1.0.8-16.fc31.x86_64", "Installed: python3-blivet-1:3.1.7-2.fc31.noarch", "Installed: daxctl-libs-70.1-1.fc31.x86_64", "Installed: python3-blockdev-2.24-2.fc31.x86_64", "Installed: python3-pyudev-0.21.0-11.fc31.noarch", "Installed: python3-pyparted-1:3.11.2-2.fc31.x86_64", "Installed: libbytesize-2.3-1.fc31.x86_64", "Installed: libaio-0.3.111-6.fc31.x86_64", "Installed: python3-bytesize-2.3-1.fc31.x86_64"]} TASK [linux-system-roles.storage : initialize internal facts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools": [], "_storage_vol_defaults": [], "_storage_vol_pools": [], "_storage_vols_no_defaults": [], "_storage_vols_no_defaults_by_pool": {}, "_storage_vols_w_defaults": [], "_storage_volumes": []}, "changed": false} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [1/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:28 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [2/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:36 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [3/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:44 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [4/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:52 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [5/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:61 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [6/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:72 TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools": [] } TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes": [] } TASK [linux-system-roles.storage : get required packages] ********************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": []} TASK [linux-system-roles.storage : make sure required packages are installed] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [linux-system-roles.storage : manage the pools and volumes to match the specified state] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:104 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": []} TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:114 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "blivet_output": { "actions": [], "changed": false, "crypts": [], "failed": false, "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": [] } } TASK [linux-system-roles.storage : set the list of pools for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:117 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : set the list of volumes for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:121 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : remove obsolete mounts] ********************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:137 TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:148 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : set up new/current mounts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:153 TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:164 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : Manage /etc/crypttab to account for changes we just made] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:172 TASK [linux-system-roles.storage : Update facts] ******************************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:187 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_luks_pool.yml:15 included: /tmp/tmp7ksfxpzz/tests/get_unused_disk.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Find unused disks in the system] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/get_unused_disk.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "disks": ["vda"]} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/get_unused_disk.yml:8 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"unused_disks": ["vda"]}, "changed": false} TASK [Exit playbook when there's not enough unused disks in the system] ******** task path: /tmp/tmp7ksfxpzz/tests/get_unused_disk.yml:12 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Print unused disks] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/get_unused_disk.yml:17 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "unused_disks": [ "vda" ] } TASK [Create an encrypted lvm pool] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_luks_pool.yml:26 TASK [linux-system-roles.storage : Set version specific variables] ************* task path: /tmp/tmp7ksfxpzz/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-crypto", "libblockdev-dm", "libblockdev-lvm", "libblockdev-mdraid", "libblockdev-swap"]}, "ansible_included_var_files": ["/tmp/tmp7ksfxpzz/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.storage : define an empty list of pools to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : define an empty list of volumes to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : include the appropriate provider tasks] ***** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:22 included: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [linux-system-roles.storage : get a list of rpm packages installed on host machine] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : make sure blivet is available] ************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: python3-blivet", "Installed: libblockdev-crypto", "Installed: libblockdev-dm", "Installed: libblockdev-lvm", "Installed: libblockdev-mdraid", "Installed: libblockdev-swap"]} TASK [linux-system-roles.storage : initialize internal facts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools": [], "_storage_vol_defaults": [], "_storage_vol_pools": [], "_storage_vols_no_defaults": [], "_storage_vols_no_defaults_by_pool": {}, "_storage_vols_w_defaults": [], "_storage_volumes": []}, "changed": false} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [1/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:28 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'encryption': True, u'disks': [u'vda'], u'type': u'lvm', u'name': u'foo', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'4g'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vda"], "encryption": true, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "4g"}]}]}, "ansible_loop_var": "pool", "changed": false, "pool": {"disks": ["vda"], "encryption": true, "name": "foo", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "4g"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [2/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:36 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': None, u'encryption': True, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'4g'}], u'type': u'lvm', u'encryption_key_size': None}, {u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'4g'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}], "_storage_vol_pools": ["foo"], "_storage_vols_no_defaults": [{"mount_point": "/opt/test1", "name": "test1", "size": "4g"}]}, "ansible_loop_var": "item", "changed": false, "item": [{"disks": ["vda"], "encryption": true, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "4g"}]}, {"mount_point": "/opt/test1", "name": "test1", "size": "4g"}]} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [3/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:44 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'4g'}, {u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'fs_label': u'', u'raid_level': None, u'mount_device_identifier': u'uuid', u'fs_type': u'xfs', u'mount_options': u'defaults', u'encryption_luks_version': None, u'raid_spare_count': None, u'size': 0, u'mount_point': u'', u'encryption_password': None, u'encryption': False, u'raid_chunk_size': None, u'raid_device_count': None, u'state': u'present', u'mount_check': 0, u'mount_passno': 0, u'fs_overwrite_existing': True, u'type': u'lvm', u'encryption_key_size': None, u'fs_create_options': u''}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm"}]}, "ansible_index_var": "idx", "ansible_loop_var": "item", "changed": false, "idx": 0, "item": [{"mount_point": "/opt/test1", "name": "test1", "size": "4g"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}]} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [4/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:52 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': None, u'encryption': True, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'4g'}], u'type': u'lvm', u'encryption_key_size': None}) => {"ansible_facts": {"_storage_vols_no_defaults_by_pool": {"foo": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm"}]}}, "ansible_loop_var": "item", "changed": false, "item": {"disks": ["vda"], "encryption": true, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "4g"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [5/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:61 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': None, u'encryption': True, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'4g'}], u'type': u'lvm', u'encryption_key_size': None}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vda"], "encryption": true, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm"}]}]}, "ansible_index_var": "idx", "ansible_loop_var": "pool", "changed": false, "idx": 0, "pool": {"disks": ["vda"], "encryption": true, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "4g"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [6/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:72 TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools": [ { "disks": [ "vda" ], "encryption": true, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [ { "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm" } ] } ] } TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes": [] } TASK [linux-system-roles.storage : get required packages] ********************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": ["cryptsetup", "lvm2", "xfsprogs"], "pools": [], "volumes": []} TASK [linux-system-roles.storage : make sure required packages are installed] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:99 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: cryptsetup", "Installed: lvm2", "Installed: xfsprogs", "Installed: cryptsetup-2.3.4-1.fc31.x86_64"]} TASK [linux-system-roles.storage : manage the pools and volumes to match the specified state] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:104 fatal: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2]: FAILED! => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "msg": "encrypted pool 'foo' missing key/password", "packages": [], "pools": [], "volumes": []} TASK [Check that we failed in the role] **************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_luks_pool.yml:45 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the output of the keyless luks test] ****************************** task path: /tmp/tmp7ksfxpzz/tests/tests_luks_pool.yml:51 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Create a key file] ******************************************************* task path: /tmp/tmp7ksfxpzz/tests/tests_luks_pool.yml:60 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "gid": 0, "group": "root", "mode": "0600", "owner": "root", "path": "/tmp/storage_testl0zwem1ilukskey", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 0, "state": "file", "uid": 0} TASK [Write the key into the key file] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_luks_pool.yml:67 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "checksum": "7a4dff3752e2baf5617c57eaac048e2b95e8af91", "dest": "/tmp/storage_testl0zwem1ilukskey", "gid": 0, "group": "root", "md5sum": "4ac07b967150835c00d0865161e48744", "mode": "0600", "owner": "root", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 32, "src": "/root/.ansible/tmp/ansible-tmp-1604147947.39-255474-42522130924388/source", "state": "file", "uid": 0} TASK [Create an encrypted lvm pool using a key file] *************************** task path: /tmp/tmp7ksfxpzz/tests/tests_luks_pool.yml:73 TASK [linux-system-roles.storage : Set version specific variables] ************* task path: /tmp/tmp7ksfxpzz/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-crypto", "libblockdev-dm", "libblockdev-lvm", "libblockdev-mdraid", "libblockdev-swap"]}, "ansible_included_var_files": ["/tmp/tmp7ksfxpzz/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.storage : define an empty list of pools to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : define an empty list of volumes to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : include the appropriate provider tasks] ***** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:22 included: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [linux-system-roles.storage : get a list of rpm packages installed on host machine] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : make sure blivet is available] ************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: python3-blivet", "Installed: libblockdev-crypto", "Installed: libblockdev-dm", "Installed: libblockdev-lvm", "Installed: libblockdev-mdraid", "Installed: libblockdev-swap"]} TASK [linux-system-roles.storage : initialize internal facts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools": [], "_storage_vol_defaults": [], "_storage_vol_pools": [], "_storage_vols_no_defaults": [], "_storage_vols_no_defaults_by_pool": {}, "_storage_vols_w_defaults": [], "_storage_volumes": []}, "changed": false} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [1/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:28 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'name': u'foo', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'4g'}], u'encryption': True, u'disks': [u'vda'], u'type': u'lvm', u'encryption_key': u'/tmp/storage_testl0zwem1ilukskey'}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vda"], "encryption": true, "encryption_cipher": null, "encryption_key": "/tmp/storage_testl0zwem1ilukskey", "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "4g"}]}]}, "ansible_loop_var": "pool", "changed": false, "pool": {"disks": ["vda"], "encryption": true, "encryption_key": "/tmp/storage_testl0zwem1ilukskey", "name": "foo", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "4g"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [2/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:36 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': u'/tmp/storage_testl0zwem1ilukskey', u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': None, u'encryption': True, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'4g'}], u'type': u'lvm', u'encryption_key_size': None}, {u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'4g'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}], "_storage_vol_pools": ["foo"], "_storage_vols_no_defaults": [{"mount_point": "/opt/test1", "name": "test1", "size": "4g"}]}, "ansible_loop_var": "item", "changed": false, "item": [{"disks": ["vda"], "encryption": true, "encryption_cipher": null, "encryption_key": "/tmp/storage_testl0zwem1ilukskey", "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "4g"}]}, {"mount_point": "/opt/test1", "name": "test1", "size": "4g"}]} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [3/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:44 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'4g'}, {u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'fs_label': u'', u'raid_level': None, u'mount_device_identifier': u'uuid', u'fs_type': u'xfs', u'mount_options': u'defaults', u'encryption_luks_version': None, u'raid_spare_count': None, u'size': 0, u'mount_point': u'', u'encryption_password': None, u'encryption': False, u'raid_chunk_size': None, u'raid_device_count': None, u'state': u'present', u'mount_check': 0, u'mount_passno': 0, u'fs_overwrite_existing': True, u'type': u'lvm', u'encryption_key_size': None, u'fs_create_options': u''}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm"}]}, "ansible_index_var": "idx", "ansible_loop_var": "item", "changed": false, "idx": 0, "item": [{"mount_point": "/opt/test1", "name": "test1", "size": "4g"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}]} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [4/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:52 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': u'/tmp/storage_testl0zwem1ilukskey', u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': None, u'encryption': True, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'4g'}], u'type': u'lvm', u'encryption_key_size': None}) => {"ansible_facts": {"_storage_vols_no_defaults_by_pool": {"foo": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm"}]}}, "ansible_loop_var": "item", "changed": false, "item": {"disks": ["vda"], "encryption": true, "encryption_cipher": null, "encryption_key": "/tmp/storage_testl0zwem1ilukskey", "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "4g"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [5/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:61 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': u'/tmp/storage_testl0zwem1ilukskey', u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': None, u'encryption': True, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'4g'}], u'type': u'lvm', u'encryption_key_size': None}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vda"], "encryption": true, "encryption_cipher": null, "encryption_key": "/tmp/storage_testl0zwem1ilukskey", "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm"}]}]}, "ansible_index_var": "idx", "ansible_loop_var": "pool", "changed": false, "idx": 0, "pool": {"disks": ["vda"], "encryption": true, "encryption_cipher": null, "encryption_key": "/tmp/storage_testl0zwem1ilukskey", "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "4g"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [6/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:72 TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools": [ { "disks": [ "vda" ], "encryption": true, "encryption_cipher": null, "encryption_key": "/tmp/storage_testl0zwem1ilukskey", "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [ { "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm" } ] } ] } TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes": [] } TASK [linux-system-roles.storage : get required packages] ********************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": ["cryptsetup", "lvm2", "xfsprogs"], "pools": [], "volumes": []} TASK [linux-system-roles.storage : make sure required packages are installed] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: cryptsetup", "Installed: lvm2", "Installed: xfsprogs"]} TASK [linux-system-roles.storage : manage the pools and volumes to match the specified state] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:104 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [{"action": "create format", "device": "/dev/vda", "fs_type": "luks"}, {"action": "create device", "device": "/dev/mapper/luks-3dd7bc97-fdc6-4e3f-863c-a734ae3b5ebb", "fs_type": null}, {"action": "create format", "device": "/dev/mapper/luks-3dd7bc97-fdc6-4e3f-863c-a734ae3b5ebb", "fs_type": "lvmpv"}, {"action": "create device", "device": "/dev/foo", "fs_type": null}, {"action": "create device", "device": "/dev/mapper/foo-test1", "fs_type": null}, {"action": "create format", "device": "/dev/mapper/foo-test1", "fs_type": "xfs"}], "changed": true, "crypts": [{"backing_device": "/dev/vda", "name": "luks-3dd7bc97-fdc6-4e3f-863c-a734ae3b5ebb", "password": "/tmp/storage_testl0zwem1ilukskey", "state": "present"}], "leaves": ["/dev/sda1", "/dev/sr0", "/dev/vdb", "/dev/vdc", "/dev/mapper/foo-test1"], "mounts": [{"dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "/dev/mapper/foo-test1", "state": "mounted"}], "packages": ["xfsprogs", "lvm2", "e2fsprogs", "cryptsetup"], "pools": [{"disks": ["vda"], "encryption": true, "encryption_cipher": null, "encryption_key": "/tmp/storage_testl0zwem1ilukskey", "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"_device": "/dev/mapper/foo-test1", "_kernel_device": "/dev/dm-1", "_mount_id": "/dev/mapper/foo-test1", "_raw_device": "/dev/mapper/foo-test1", "_raw_kernel_device": "/dev/dm-1", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm"}]}], "volumes": []} TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:114 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "blivet_output": { "actions": [ { "action": "create format", "device": "/dev/vda", "fs_type": "luks" }, { "action": "create device", "device": "/dev/mapper/luks-3dd7bc97-fdc6-4e3f-863c-a734ae3b5ebb", "fs_type": null }, { "action": "create format", "device": "/dev/mapper/luks-3dd7bc97-fdc6-4e3f-863c-a734ae3b5ebb", "fs_type": "lvmpv" }, { "action": "create device", "device": "/dev/foo", "fs_type": null }, { "action": "create device", "device": "/dev/mapper/foo-test1", "fs_type": null }, { "action": "create format", "device": "/dev/mapper/foo-test1", "fs_type": "xfs" } ], "changed": true, "crypts": [ { "backing_device": "/dev/vda", "name": "luks-3dd7bc97-fdc6-4e3f-863c-a734ae3b5ebb", "password": "/tmp/storage_testl0zwem1ilukskey", "state": "present" } ], "failed": false, "leaves": [ "/dev/sda1", "/dev/sr0", "/dev/vdb", "/dev/vdc", "/dev/mapper/foo-test1" ], "mounts": [ { "dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "/dev/mapper/foo-test1", "state": "mounted" } ], "packages": [ "xfsprogs", "lvm2", "e2fsprogs", "cryptsetup" ], "pools": [ { "disks": [ "vda" ], "encryption": true, "encryption_cipher": null, "encryption_key": "/tmp/storage_testl0zwem1ilukskey", "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [ { "_device": "/dev/mapper/foo-test1", "_kernel_device": "/dev/dm-1", "_mount_id": "/dev/mapper/foo-test1", "_raw_device": "/dev/mapper/foo-test1", "_raw_kernel_device": "/dev/dm-1", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm" } ] } ], "volumes": [] } } TASK [linux-system-roles.storage : set the list of pools for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:117 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": [{"disks": ["vda"], "encryption": true, "encryption_cipher": null, "encryption_key": "/tmp/storage_testl0zwem1ilukskey", "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"_device": "/dev/mapper/foo-test1", "_kernel_device": "/dev/dm-1", "_mount_id": "/dev/mapper/foo-test1", "_raw_device": "/dev/mapper/foo-test1", "_raw_kernel_device": "/dev/dm-1", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm"}]}]}, "changed": false} TASK [linux-system-roles.storage : set the list of volumes for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:121 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : remove obsolete mounts] ********************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:137 TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:148 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [linux-system-roles.storage : set up new/current mounts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:153 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'src': u'/dev/mapper/foo-test1', u'state': u'mounted', u'dump': 0, u'path': u'/opt/test1', u'passno': 0, u'opts': u'defaults', u'fstype': u'xfs'}) => {"ansible_loop_var": "mount_info", "changed": true, "dump": "0", "fstab": "/etc/fstab", "fstype": "xfs", "mount_info": {"dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "/dev/mapper/foo-test1", "state": "mounted"}, "name": "/opt/test1", "opts": "defaults", "passno": "0", "src": "/dev/mapper/foo-test1"} TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:164 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [linux-system-roles.storage : Manage /etc/crypttab to account for changes we just made] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:172 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'state': u'present', u'password': u'/tmp/storage_testl0zwem1ilukskey', u'name': u'luks-3dd7bc97-fdc6-4e3f-863c-a734ae3b5ebb', u'backing_device': u'/dev/vda'}) => {"ansible_loop_var": "entry", "backing_device": "/dev/vda", "changed": true, "entry": {"backing_device": "/dev/vda", "name": "luks-3dd7bc97-fdc6-4e3f-863c-a734ae3b5ebb", "password": "/tmp/storage_testl0zwem1ilukskey", "state": "present"}, "gid": 0, "group": "root", "mode": "0600", "msg": "added line", "name": "luks-3dd7bc97-fdc6-4e3f-863c-a734ae3b5ebb", "opts": null, "owner": "root", "password": "/tmp/storage_testl0zwem1ilukskey", "path": "/etc/crypttab", "secontext": "system_u:object_r:etc_t:s0", "size": 84, "state": "file", "uid": 0, "warnings": ["Module did not set no_log for password"]} [WARNING]: Module did not set no_log for password TASK [linux-system-roles.storage : Update facts] ******************************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:187 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_luks_pool.yml:88 included: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Print out pool information] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:1 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools_list": [ { "disks": [ "vda" ], "encryption": true, "encryption_cipher": null, "encryption_key": "/tmp/storage_testl0zwem1ilukskey", "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [ { "_device": "/dev/mapper/foo-test1", "_kernel_device": "/dev/dm-1", "_mount_id": "/dev/mapper/foo-test1", "_raw_device": "/dev/mapper/foo-test1", "_raw_kernel_device": "/dev/dm-1", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm" } ] } ] } TASK [Print out volume information] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:6 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {} TASK [Collect info about the volumes.] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "info": {"/dev/mapper/foo-test1": {"fstype": "xfs", "label": "", "name": "/dev/mapper/foo-test1", "size": "4G", "type": "lvm", "uuid": "054a93dc-f92c-4b7f-8070-8a8b648a8a36"}, "/dev/mapper/luks-3dd7bc97-fdc6-4e3f-863c-a734ae3b5ebb": {"fstype": "LVM2_member", "label": "", "name": "/dev/mapper/luks-3dd7bc97-fdc6-4e3f-863c-a734ae3b5ebb", "size": "10G", "type": "crypt", "uuid": "lxGsdo-2Wxz-ebBW-NcM5-8d45-wjLO-MR92zN"}, "/dev/sda": {"fstype": "", "label": "", "name": "/dev/sda", "size": "4G", "type": "disk", "uuid": ""}, "/dev/sda1": {"fstype": "ext4", "label": "", "name": "/dev/sda1", "size": "4G", "type": "partition", "uuid": "03e702b4-e165-4a39-88c9-9e210cd00434"}, "/dev/sr0": {"fstype": "iso9660", "label": "cidata", "name": "/dev/sr0", "size": "364K", "type": "rom", "uuid": "2020-10-31-12-37-34-00"}, "/dev/vda": {"fstype": "crypto_LUKS", "label": "", "name": "/dev/vda", "size": "10G", "type": "disk", "uuid": "3dd7bc97-fdc6-4e3f-863c-a734ae3b5ebb"}, "/dev/vdb": {"fstype": "", "label": "", "name": "/dev/vdb", "size": "10G", "type": "disk", "uuid": ""}, "/dev/vdc": {"fstype": "", "label": "", "name": "/dev/vdc", "size": "10G", "type": "disk", "uuid": ""}}} TASK [Read the /etc/fstab file for volume existence] *************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:19 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/fstab"], "delta": "0:00:01.003870", "end": "2020-10-31 12:39:32.225269", "rc": 0, "start": "2020-10-31 12:39:31.221399", "stderr": "", "stderr_lines": [], "stdout": "\n#\n# /etc/fstab\n# Created by anaconda on Sat Oct 31 08:17:58 2020\n#\n# Accessible filesystems, by reference, are maintained under '/dev/disk/'.\n# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.\n#\n# After editing this file, run 'systemctl daemon-reload' to update systemd\n# units generated from this file.\n#\nUUID=03e702b4-e165-4a39-88c9-9e210cd00434 / ext4 defaults 1 1\n/dev/mapper/foo-test1 /opt/test1 xfs defaults 0 0", "stdout_lines": ["", "#", "# /etc/fstab", "# Created by anaconda on Sat Oct 31 08:17:58 2020", "#", "# Accessible filesystems, by reference, are maintained under '/dev/disk/'.", "# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.", "#", "# After editing this file, run 'systemctl daemon-reload' to update systemd", "# units generated from this file.", "#", "UUID=03e702b4-e165-4a39-88c9-9e210cd00434 / ext4 defaults 1 1", "/dev/mapper/foo-test1 /opt/test1 xfs defaults 0 0"]} TASK [Read the /etc/crypttab file] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/crypttab"], "delta": "0:00:00.003078", "end": "2020-10-31 12:39:32.573177", "rc": 0, "start": "2020-10-31 12:39:32.570099", "stderr": "", "stderr_lines": [], "stdout": "luks-3dd7bc97-fdc6-4e3f-863c-a734ae3b5ebb /dev/vda /tmp/storage_testl0zwem1ilukskey", "stdout_lines": ["luks-3dd7bc97-fdc6-4e3f-863c-a734ae3b5ebb /dev/vda /tmp/storage_testl0zwem1ilukskey"]} TASK [Verify the volumes listed in storage_pools were correctly managed] ******* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:32 included: /tmp/tmp7ksfxpzz/tests/test-verify-pool.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool.yml:5 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pool_tests": ["members", "volumes"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool.yml:17 included: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-pool-volumes.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:1 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_count": "1", "_storage_test_pool_pvs": [], "_storage_test_pool_pvs_lvm": ["/dev/mapper/luks-3dd7bc97-fdc6-4e3f-863c-a734ae3b5ebb"]}, "changed": false} TASK [Get the canonical device path for each member device] ******************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:7 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=/dev/mapper/luks-3dd7bc97-fdc6-4e3f-863c-a734ae3b5ebb) => {"ansible_loop_var": "pv", "changed": false, "device": "/dev/mapper/luks-3dd7bc97-fdc6-4e3f-863c-a734ae3b5ebb", "pv": "/dev/mapper/luks-3dd7bc97-fdc6-4e3f-863c-a734ae3b5ebb"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:16 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=/dev/mapper/luks-3dd7bc97-fdc6-4e3f-863c-a734ae3b5ebb) => {"ansible_facts": {"_storage_test_pool_pvs": ["/dev/mapper/luks-3dd7bc97-fdc6-4e3f-863c-a734ae3b5ebb"]}, "ansible_index_var": "idx", "ansible_loop_var": "item", "changed": false, "idx": 0, "item": "/dev/mapper/luks-3dd7bc97-fdc6-4e3f-863c-a734ae3b5ebb"} TASK [Verify PV count] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:23 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:29 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_type": "crypt"}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:33 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check the type of each PV] *********************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:41 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=/dev/mapper/luks-3dd7bc97-fdc6-4e3f-863c-a734ae3b5ebb) => { "ansible_loop_var": "pv", "changed": false, "msg": "All assertions passed", "pv": "/dev/mapper/luks-3dd7bc97-fdc6-4e3f-863c-a734ae3b5ebb" } TASK [Check raid] ************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:50 included: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [get information about RAID] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:6 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:12 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:16 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:20 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID active devices count] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:24 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID spare devices count] ****************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:30 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID metadata version] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:36 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:44 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_md_active_devices_re": null, "storage_test_md_metadata_version_re": null, "storage_test_md_spare_devices_re": null}, "changed": false} TASK [Check member encryption] ************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:53 included: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_crypttab_entries": "1", "_storage_test_expected_crypttab_key_file": "/tmp/storage_testl0zwem1ilukskey"}, "changed": false} TASK [Validate pool member LUKS settings] ************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:8 included: /tmp/tmp7ksfxpzz/tests/verify-pool-member-encryption.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Get the backing device path] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-encryption.yml:1 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/disk/by-uuid/3dd7bc97-fdc6-4e3f-863c-a734ae3b5ebb"], "delta": "0:00:00.005477", "end": "2020-10-31 12:39:34.298525", "rc": 0, "start": "2020-10-31 12:39:34.293048", "stderr": "", "stderr_lines": [], "stdout": "/dev/vda", "stdout_lines": ["/dev/vda"]} TASK [Collect LUKS info for this member] *************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-encryption.yml:6 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["cryptsetup", "luksDump", "/dev/vda"], "delta": "0:00:00.032805", "end": "2020-10-31 12:39:34.667550", "rc": 0, "start": "2020-10-31 12:39:34.634745", "stderr": "", "stderr_lines": [], "stdout": "LUKS header information for /dev/vda\n\nVersion: \t1\nCipher name: \taes\nCipher mode: \txts-plain64\nHash spec: \tsha256\nPayload offset:\t4096\nMK bits: \t512\nMK digest: \t46 33 ce ed 1d fc 02 55 1e c7 7c 3a 00 62 7b 81 4e 30 f1 22 \nMK salt: \t16 79 35 aa fc 85 94 dc 3c b3 24 72 f9 76 2d 1d \n \t17 f7 6e 7f b6 95 06 7b a8 c2 53 6d 4e a0 ae 33 \nMK iterations: \t117658\nUUID: \t3dd7bc97-fdc6-4e3f-863c-a734ae3b5ebb\n\nKey Slot 0: ENABLED\n\tIterations: \t1855886\n\tSalt: \t6d 5e 03 2c d4 d1 c6 08 a2 63 87 fb e5 08 1f be \n\t \td4 b9 b9 e4 e8 91 a6 fa 05 44 62 0c 6e 83 bc 93 \n\tKey material offset:\t8\n\tAF stripes: \t4000\nKey Slot 1: DISABLED\nKey Slot 2: DISABLED\nKey Slot 3: DISABLED\nKey Slot 4: DISABLED\nKey Slot 5: DISABLED\nKey Slot 6: DISABLED\nKey Slot 7: DISABLED", "stdout_lines": ["LUKS header information for /dev/vda", "", "Version: \t1", "Cipher name: \taes", "Cipher mode: \txts-plain64", "Hash spec: \tsha256", "Payload offset:\t4096", "MK bits: \t512", "MK digest: \t46 33 ce ed 1d fc 02 55 1e c7 7c 3a 00 62 7b 81 4e 30 f1 22 ", "MK salt: \t16 79 35 aa fc 85 94 dc 3c b3 24 72 f9 76 2d 1d ", " \t17 f7 6e 7f b6 95 06 7b a8 c2 53 6d 4e a0 ae 33 ", "MK iterations: \t117658", "UUID: \t3dd7bc97-fdc6-4e3f-863c-a734ae3b5ebb", "", "Key Slot 0: ENABLED", "\tIterations: \t1855886", "\tSalt: \t6d 5e 03 2c d4 d1 c6 08 a2 63 87 fb e5 08 1f be ", "\t \td4 b9 b9 e4 e8 91 a6 fa 05 44 62 0c 6e 83 bc 93 ", "\tKey material offset:\t8", "\tAF stripes: \t4000", "Key Slot 1: DISABLED", "Key Slot 2: DISABLED", "Key Slot 3: DISABLED", "Key Slot 4: DISABLED", "Key Slot 5: DISABLED", "Key Slot 6: DISABLED", "Key Slot 7: DISABLED"]} TASK [Check LUKS version] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-encryption.yml:12 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS key size] ***************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-encryption.yml:18 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS cipher] ******************************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-encryption.yml:24 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Validate pool member crypttab entries] *********************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:15 included: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:1 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": ["luks-3dd7bc97-fdc6-4e3f-863c-a734ae3b5ebb /dev/vda /tmp/storage_testl0zwem1ilukskey"]}, "changed": false} TASK [Check for /etc/crypttab entry] ******************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Validate the format of the crypttab entry] ******************************* task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:9 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Check backing device of crypttab entry] ********************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:15 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check key file of crypttab entry] **************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:21 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:27 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:22 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null, "_storage_test_crypttab_key_file": null}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:56 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_count": null, "_storage_test_expected_pv_type": null, "_storage_test_pool_pvs": [], "_storage_test_pool_pvs_lvm": []}, "changed": false} TASK [verify the volumes] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-volumes.yml:3 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": true, "_storage_volume_tests": ["mount", "fstab", "fs", "device", "encryption", "md", "size"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:10 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Get expected mount device based on device type] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/foo-test1"}, "changed": false} TASK [Set some facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [{"block_available": 1030454, "block_size": 4096, "block_total": 1046016, "block_used": 15562, "device": "/dev/mapper/foo-test1", "fstype": "xfs", "inode_available": 2097149, "inode_total": 2097152, "inode_used": 3, "mount": "/opt/test1", "options": "rw,seclabel,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota", "size_available": 4220739584, "size_total": 4284481536, "uuid": "054a93dc-f92c-4b7f-8070-8a8b648a8a36"}], "storage_test_mount_expected_match_count": "1", "storage_test_mount_point_matches": [{"block_available": 1030454, "block_size": 4096, "block_total": 1046016, "block_used": 15562, "device": "/dev/mapper/foo-test1", "fstype": "xfs", "inode_available": 2097149, "inode_total": 2097152, "inode_used": 3, "mount": "/opt/test1", "options": "rw,seclabel,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota", "size_available": 4220739584, "size_total": 4284481536, "uuid": "054a93dc-f92c-4b7f-8070-8a8b648a8a36"}], "storage_test_swap_expected_matches": "0"}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:22 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:31 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:39 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [command] ***************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Gather swap info] ******************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:52 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify swap status] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:57 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Unset facts] ************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:67 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null, "storage_test_swap_expected_matches": null, "storage_test_swaps": null, "storage_test_sys_node": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": "1", "storage_test_fstab_expected_mount_point_matches": "1", "storage_test_fstab_id_matches": ["/dev/mapper/foo-test1 "], "storage_test_fstab_mount_point_matches": [" /opt/test1 "]}, "changed": false} TASK [Verify that the device identifier appears in /etc/fstab] ***************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:17 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": null, "storage_test_fstab_expected_mount_point_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [Verify fs type] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify fs label] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [See whether the device node is present] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "stat": {"atime": 1604147966.4847932, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "ctime": 1604147966.4847932, "dev": 5, "device_type": 64769, "executable": false, "exists": true, "gid": 6, "gr_name": "disk", "inode": 48428, "isblk": true, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mimetype": "inode/symlink", "mode": "0660", "mtime": 1604147966.4847932, "nlink": 1, "path": "/dev/mapper/foo-test1", "pw_name": "root", "readable": true, "rgrp": true, "roth": false, "rusr": true, "size": 0, "uid": 0, "version": null, "wgrp": true, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}} TASK [Verify the presence/absence of the device node] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "lvm"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:28 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:33 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Stat the LUKS device, if encrypted] ************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:3 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Collect LUKS info for this volume] *************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:10 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the presence/absence of the LUKS device node] ********************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:16 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify that the raw device is the same as the device if not encrypted] *** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:25 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about the LUKS volume if encrypted] **************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the LUKS volume's device type if encrypted] *********************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS version] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:42 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS key size] ***************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS cipher] ******************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:54 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:60 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": [], "_storage_test_expected_crypttab_entries": "0", "_storage_test_expected_crypttab_key_file": "-"}, "changed": false} TASK [Check for /etc/crypttab entry] ******************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:65 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Validate the format of the crypttab entry] ******************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:70 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check backing device of crypttab entry] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:76 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check key file of crypttab entry] **************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:82 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:88 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null, "_storage_test_expected_crypttab_entries": null, "_storage_test_expected_crypttab_key_file": null}, "changed": false} TASK [get information about RAID] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:7 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:13 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:17 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID active devices count] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:25 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID spare devices count] ****************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID metadata version] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [parse the actual size of the volume] ************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:3 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"bytes": 4294967296, "changed": false, "lvm": "4g", "parted": "4GiB", "size": "4 GiB"} TASK [parse the requested size of the volume] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:9 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"bytes": 4294967296, "changed": false, "lvm": "4g", "parted": "4GiB", "size": "4 GiB"} TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:15 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_actual_size": { "bytes": 4294967296, "changed": false, "failed": false, "lvm": "4g", "parted": "4GiB", "size": "4 GiB" } } TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_requested_size": { "bytes": 4294967296, "changed": false, "failed": false, "lvm": "4g", "parted": "4GiB", "size": "4 GiB" } } TASK [assert] ****************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:21 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:16 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:39 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_pool": null}, "changed": false} TASK [Verify the volumes with no pool were correctly managed] ****************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:46 TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:56 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_blkinfo": null, "storage_test_crypttab": null, "storage_test_fstab": null, "storage_test_volume": null}, "changed": false} TASK [Remove the key file] ***************************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_luks_pool.yml:90 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "path": "/tmp/storage_testl0zwem1ilukskey", "state": "absent"} TASK [create a file] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/create-test-file.yml:10 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": true, "dest": "/opt/test1/quux", "gid": 0, "group": "root", "mode": "0644", "owner": "root", "secontext": "unconfined_u:object_r:unlabeled_t:s0", "size": 0, "state": "file", "uid": 0} TASK [Remove the encryption layer] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/tests_luks_pool.yml:100 TASK [linux-system-roles.storage : Set version specific variables] ************* task path: /tmp/tmp7ksfxpzz/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-crypto", "libblockdev-dm", "libblockdev-lvm", "libblockdev-mdraid", "libblockdev-swap"]}, "ansible_included_var_files": ["/tmp/tmp7ksfxpzz/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.storage : define an empty list of pools to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : define an empty list of volumes to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : include the appropriate provider tasks] ***** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:22 included: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [linux-system-roles.storage : get a list of rpm packages installed on host machine] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : make sure blivet is available] ************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: python3-blivet", "Installed: libblockdev-crypto", "Installed: libblockdev-dm", "Installed: libblockdev-lvm", "Installed: libblockdev-mdraid", "Installed: libblockdev-swap"]} TASK [linux-system-roles.storage : initialize internal facts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools": [], "_storage_vol_defaults": [], "_storage_vol_pools": [], "_storage_vols_no_defaults": [], "_storage_vols_no_defaults_by_pool": {}, "_storage_vols_w_defaults": [], "_storage_volumes": []}, "changed": false} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [1/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:28 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'name': u'foo', u'encryption_password': u'yabbadabbadoo', u'encryption': False, u'disks': [u'vda'], u'type': u'lvm', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'4g'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": "yabbadabbadoo", "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "4g"}]}]}, "ansible_loop_var": "pool", "changed": false, "pool": {"disks": ["vda"], "encryption": false, "encryption_password": "yabbadabbadoo", "name": "foo", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "4g"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [2/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:36 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': u'yabbadabbadoo', u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'4g'}], u'type': u'lvm', u'encryption_key_size': None}, {u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'4g'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}], "_storage_vol_pools": ["foo"], "_storage_vols_no_defaults": [{"mount_point": "/opt/test1", "name": "test1", "size": "4g"}]}, "ansible_loop_var": "item", "changed": false, "item": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": "yabbadabbadoo", "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "4g"}]}, {"mount_point": "/opt/test1", "name": "test1", "size": "4g"}]} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [3/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:44 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'4g'}, {u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'fs_label': u'', u'raid_level': None, u'mount_device_identifier': u'uuid', u'fs_type': u'xfs', u'mount_options': u'defaults', u'encryption_luks_version': None, u'raid_spare_count': None, u'size': 0, u'mount_point': u'', u'encryption_password': None, u'encryption': False, u'raid_chunk_size': None, u'raid_device_count': None, u'state': u'present', u'mount_check': 0, u'mount_passno': 0, u'fs_overwrite_existing': True, u'type': u'lvm', u'encryption_key_size': None, u'fs_create_options': u''}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm"}]}, "ansible_index_var": "idx", "ansible_loop_var": "item", "changed": false, "idx": 0, "item": [{"mount_point": "/opt/test1", "name": "test1", "size": "4g"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}]} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [4/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:52 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': u'yabbadabbadoo', u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'4g'}], u'type': u'lvm', u'encryption_key_size': None}) => {"ansible_facts": {"_storage_vols_no_defaults_by_pool": {"foo": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm"}]}}, "ansible_loop_var": "item", "changed": false, "item": {"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": "yabbadabbadoo", "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "4g"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [5/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:61 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': u'yabbadabbadoo', u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'4g'}], u'type': u'lvm', u'encryption_key_size': None}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": "yabbadabbadoo", "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm"}]}]}, "ansible_index_var": "idx", "ansible_loop_var": "pool", "changed": false, "idx": 0, "pool": {"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": "yabbadabbadoo", "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "4g"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [6/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:72 TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": "yabbadabbadoo", "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [ { "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm" } ] } ] } TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes": [] } TASK [linux-system-roles.storage : get required packages] ********************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": ["lvm2", "xfsprogs"], "pools": [], "volumes": []} TASK [linux-system-roles.storage : make sure required packages are installed] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: lvm2", "Installed: xfsprogs"]} TASK [linux-system-roles.storage : manage the pools and volumes to match the specified state] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:104 fatal: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2]: FAILED! => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "msg": "cannot remove and recreate existing pool 'foo' in safe mode", "packages": [], "pools": [], "volumes": []} TASK [Check that we failed in the role] **************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_luks_pool.yml:118 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the output of the safe_mode test] ********************************* task path: /tmp/tmp7ksfxpzz/tests/tests_luks_pool.yml:124 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [stat the file] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-data-preservation.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "stat": {"atime": 1604147979.0187933, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "checksum": "da39a3ee5e6b4b0d3255bfef95601890afd80709", "ctime": 1604147979.0187933, "dev": 64769, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 131, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "inode/x-empty", "mode": "0644", "mtime": 1604147979.0187933, "nlink": 1, "path": "/opt/test1/quux", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 0, "uid": 0, "version": "3568576834", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}} TASK [assert file presence] **************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-data-preservation.yml:15 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Remove the encryption layer] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/tests_luks_pool.yml:135 TASK [linux-system-roles.storage : Set version specific variables] ************* task path: /tmp/tmp7ksfxpzz/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-crypto", "libblockdev-dm", "libblockdev-lvm", "libblockdev-mdraid", "libblockdev-swap"]}, "ansible_included_var_files": ["/tmp/tmp7ksfxpzz/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.storage : define an empty list of pools to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : define an empty list of volumes to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : include the appropriate provider tasks] ***** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:22 included: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [linux-system-roles.storage : get a list of rpm packages installed on host machine] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : make sure blivet is available] ************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: python3-blivet", "Installed: libblockdev-crypto", "Installed: libblockdev-dm", "Installed: libblockdev-lvm", "Installed: libblockdev-mdraid", "Installed: libblockdev-swap"]} TASK [linux-system-roles.storage : initialize internal facts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools": [], "_storage_vol_defaults": [], "_storage_vol_pools": [], "_storage_vols_no_defaults": [], "_storage_vols_no_defaults_by_pool": {}, "_storage_vols_w_defaults": [], "_storage_volumes": []}, "changed": false} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [1/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:28 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'name': u'foo', u'encryption_password': u'yabbadabbadoo', u'encryption': False, u'disks': [u'vda'], u'type': u'lvm', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'4g'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": "yabbadabbadoo", "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "4g"}]}]}, "ansible_loop_var": "pool", "changed": false, "pool": {"disks": ["vda"], "encryption": false, "encryption_password": "yabbadabbadoo", "name": "foo", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "4g"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [2/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:36 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': u'yabbadabbadoo', u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'4g'}], u'type': u'lvm', u'encryption_key_size': None}, {u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'4g'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}], "_storage_vol_pools": ["foo"], "_storage_vols_no_defaults": [{"mount_point": "/opt/test1", "name": "test1", "size": "4g"}]}, "ansible_loop_var": "item", "changed": false, "item": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": "yabbadabbadoo", "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "4g"}]}, {"mount_point": "/opt/test1", "name": "test1", "size": "4g"}]} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [3/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:44 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'4g'}, {u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'fs_label': u'', u'raid_level': None, u'mount_device_identifier': u'uuid', u'fs_type': u'xfs', u'mount_options': u'defaults', u'encryption_luks_version': None, u'raid_spare_count': None, u'size': 0, u'mount_point': u'', u'encryption_password': None, u'encryption': False, u'raid_chunk_size': None, u'raid_device_count': None, u'state': u'present', u'mount_check': 0, u'mount_passno': 0, u'fs_overwrite_existing': True, u'type': u'lvm', u'encryption_key_size': None, u'fs_create_options': u''}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm"}]}, "ansible_index_var": "idx", "ansible_loop_var": "item", "changed": false, "idx": 0, "item": [{"mount_point": "/opt/test1", "name": "test1", "size": "4g"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}]} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [4/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:52 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': u'yabbadabbadoo', u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'4g'}], u'type': u'lvm', u'encryption_key_size': None}) => {"ansible_facts": {"_storage_vols_no_defaults_by_pool": {"foo": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm"}]}}, "ansible_loop_var": "item", "changed": false, "item": {"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": "yabbadabbadoo", "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "4g"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [5/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:61 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': u'yabbadabbadoo', u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'4g'}], u'type': u'lvm', u'encryption_key_size': None}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": "yabbadabbadoo", "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm"}]}]}, "ansible_index_var": "idx", "ansible_loop_var": "pool", "changed": false, "idx": 0, "pool": {"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": "yabbadabbadoo", "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "4g"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [6/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:72 TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": "yabbadabbadoo", "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [ { "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm" } ] } ] } TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes": [] } TASK [linux-system-roles.storage : get required packages] ********************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": ["lvm2", "xfsprogs"], "pools": [], "volumes": []} TASK [linux-system-roles.storage : make sure required packages are installed] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: lvm2", "Installed: xfsprogs"]} TASK [linux-system-roles.storage : manage the pools and volumes to match the specified state] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:104 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [{"action": "destroy format", "device": "/dev/mapper/foo-test1", "fs_type": "xfs"}, {"action": "destroy device", "device": "/dev/mapper/foo-test1", "fs_type": null}, {"action": "destroy device", "device": "/dev/foo", "fs_type": null}, {"action": "destroy format", "device": "/dev/mapper/luks-3dd7bc97-fdc6-4e3f-863c-a734ae3b5ebb", "fs_type": "lvmpv"}, {"action": "destroy device", "device": "/dev/mapper/luks-3dd7bc97-fdc6-4e3f-863c-a734ae3b5ebb", "fs_type": null}, {"action": "destroy format", "device": "/dev/vda", "fs_type": "luks"}, {"action": "create format", "device": "/dev/vda", "fs_type": "lvmpv"}, {"action": "create device", "device": "/dev/foo", "fs_type": null}, {"action": "create device", "device": "/dev/mapper/foo-test1", "fs_type": null}, {"action": "create format", "device": "/dev/mapper/foo-test1", "fs_type": "xfs"}], "changed": true, "crypts": [{"backing_device": "/dev/vda", "name": "luks-3dd7bc97-fdc6-4e3f-863c-a734ae3b5ebb", "password": "-", "state": "absent"}], "leaves": ["/dev/sda1", "/dev/sr0", "/dev/vdb", "/dev/vdc", "/dev/mapper/foo-test1"], "mounts": [{"fstype": "xfs", "path": "/opt/test1", "src": "/dev/mapper/foo-test1", "state": "absent"}, {"dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "/dev/mapper/foo-test1", "state": "mounted"}], "packages": ["e2fsprogs", "xfsprogs", "lvm2"], "pools": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": "yabbadabbadoo", "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"_device": "/dev/mapper/foo-test1", "_kernel_device": "/dev/dm-0", "_mount_id": "/dev/mapper/foo-test1", "_raw_device": "/dev/mapper/foo-test1", "_raw_kernel_device": "/dev/dm-0", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm"}]}], "volumes": []} TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:114 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "blivet_output": { "actions": [ { "action": "destroy format", "device": "/dev/mapper/foo-test1", "fs_type": "xfs" }, { "action": "destroy device", "device": "/dev/mapper/foo-test1", "fs_type": null }, { "action": "destroy device", "device": "/dev/foo", "fs_type": null }, { "action": "destroy format", "device": "/dev/mapper/luks-3dd7bc97-fdc6-4e3f-863c-a734ae3b5ebb", "fs_type": "lvmpv" }, { "action": "destroy device", "device": "/dev/mapper/luks-3dd7bc97-fdc6-4e3f-863c-a734ae3b5ebb", "fs_type": null }, { "action": "destroy format", "device": "/dev/vda", "fs_type": "luks" }, { "action": "create format", "device": "/dev/vda", "fs_type": "lvmpv" }, { "action": "create device", "device": "/dev/foo", "fs_type": null }, { "action": "create device", "device": "/dev/mapper/foo-test1", "fs_type": null }, { "action": "create format", "device": "/dev/mapper/foo-test1", "fs_type": "xfs" } ], "changed": true, "crypts": [ { "backing_device": "/dev/vda", "name": "luks-3dd7bc97-fdc6-4e3f-863c-a734ae3b5ebb", "password": "-", "state": "absent" } ], "failed": false, "leaves": [ "/dev/sda1", "/dev/sr0", "/dev/vdb", "/dev/vdc", "/dev/mapper/foo-test1" ], "mounts": [ { "fstype": "xfs", "path": "/opt/test1", "src": "/dev/mapper/foo-test1", "state": "absent" }, { "dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "/dev/mapper/foo-test1", "state": "mounted" } ], "packages": [ "e2fsprogs", "xfsprogs", "lvm2" ], "pools": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": "yabbadabbadoo", "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [ { "_device": "/dev/mapper/foo-test1", "_kernel_device": "/dev/dm-0", "_mount_id": "/dev/mapper/foo-test1", "_raw_device": "/dev/mapper/foo-test1", "_raw_kernel_device": "/dev/dm-0", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm" } ] } ], "volumes": [] } } TASK [linux-system-roles.storage : set the list of pools for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:117 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": "yabbadabbadoo", "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"_device": "/dev/mapper/foo-test1", "_kernel_device": "/dev/dm-0", "_mount_id": "/dev/mapper/foo-test1", "_raw_device": "/dev/mapper/foo-test1", "_raw_kernel_device": "/dev/dm-0", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm"}]}]}, "changed": false} TASK [linux-system-roles.storage : set the list of volumes for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:121 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : remove obsolete mounts] ********************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:137 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'src': u'/dev/mapper/foo-test1', u'state': u'absent', u'fstype': u'xfs', u'path': u'/opt/test1'}) => {"ansible_loop_var": "mount_info", "changed": true, "dump": "0", "fstab": "/etc/fstab", "fstype": "xfs", "mount_info": {"fstype": "xfs", "path": "/opt/test1", "src": "/dev/mapper/foo-test1", "state": "absent"}, "name": "/opt/test1", "opts": "defaults", "passno": "0", "src": "/dev/mapper/foo-test1"} TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:148 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [linux-system-roles.storage : set up new/current mounts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:153 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'src': u'/dev/mapper/foo-test1', u'state': u'mounted', u'dump': 0, u'path': u'/opt/test1', u'passno': 0, u'opts': u'defaults', u'fstype': u'xfs'}) => {"ansible_loop_var": "mount_info", "changed": true, "dump": "0", "fstab": "/etc/fstab", "fstype": "xfs", "mount_info": {"dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "/dev/mapper/foo-test1", "state": "mounted"}, "name": "/opt/test1", "opts": "defaults", "passno": "0", "src": "/dev/mapper/foo-test1"} TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:164 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [linux-system-roles.storage : Manage /etc/crypttab to account for changes we just made] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:172 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'state': u'absent', u'password': u'-', u'name': u'luks-3dd7bc97-fdc6-4e3f-863c-a734ae3b5ebb', u'backing_device': u'/dev/vda'}) => {"ansible_loop_var": "entry", "backing_device": "/dev/vda", "changed": true, "entry": {"backing_device": "/dev/vda", "name": "luks-3dd7bc97-fdc6-4e3f-863c-a734ae3b5ebb", "password": "-", "state": "absent"}, "gid": 0, "group": "root", "mode": "0600", "msg": "removed line", "name": "luks-3dd7bc97-fdc6-4e3f-863c-a734ae3b5ebb", "opts": null, "owner": "root", "password": "-", "path": "/etc/crypttab", "secontext": "system_u:object_r:etc_t:s0", "size": 1, "state": "file", "uid": 0, "warnings": ["Module did not set no_log for password"]} TASK [linux-system-roles.storage : Update facts] ******************************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:187 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_luks_pool.yml:151 included: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Print out pool information] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:1 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools_list": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": "yabbadabbadoo", "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [ { "_device": "/dev/mapper/foo-test1", "_kernel_device": "/dev/dm-0", "_mount_id": "/dev/mapper/foo-test1", "_raw_device": "/dev/mapper/foo-test1", "_raw_kernel_device": "/dev/dm-0", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm" } ] } ] } TASK [Print out volume information] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:6 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {} TASK [Collect info about the volumes.] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "info": {"/dev/mapper/foo-test1": {"fstype": "xfs", "label": "", "name": "/dev/mapper/foo-test1", "size": "4G", "type": "lvm", "uuid": "c79ac8d2-aae0-48d0-94a7-4f620fcdf171"}, "/dev/sda": {"fstype": "", "label": "", "name": "/dev/sda", "size": "4G", "type": "disk", "uuid": ""}, "/dev/sda1": {"fstype": "ext4", "label": "", "name": "/dev/sda1", "size": "4G", "type": "partition", "uuid": "03e702b4-e165-4a39-88c9-9e210cd00434"}, "/dev/sr0": {"fstype": "iso9660", "label": "cidata", "name": "/dev/sr0", "size": "364K", "type": "rom", "uuid": "2020-10-31-12-37-34-00"}, "/dev/vda": {"fstype": "LVM2_member", "label": "", "name": "/dev/vda", "size": "10G", "type": "disk", "uuid": "D2dTbF-CUlG-uJCh-kHiY-d67S-OwkI-eJVj9j"}, "/dev/vdb": {"fstype": "", "label": "", "name": "/dev/vdb", "size": "10G", "type": "disk", "uuid": ""}, "/dev/vdc": {"fstype": "", "label": "", "name": "/dev/vdc", "size": "10G", "type": "disk", "uuid": ""}}} TASK [Read the /etc/fstab file for volume existence] *************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:19 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/fstab"], "delta": "0:00:00.003584", "end": "2020-10-31 12:40:10.660999", "rc": 0, "start": "2020-10-31 12:40:10.657415", "stderr": "", "stderr_lines": [], "stdout": "\n#\n# /etc/fstab\n# Created by anaconda on Sat Oct 31 08:17:58 2020\n#\n# Accessible filesystems, by reference, are maintained under '/dev/disk/'.\n# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.\n#\n# After editing this file, run 'systemctl daemon-reload' to update systemd\n# units generated from this file.\n#\nUUID=03e702b4-e165-4a39-88c9-9e210cd00434 / ext4 defaults 1 1\n/dev/mapper/foo-test1 /opt/test1 xfs defaults 0 0", "stdout_lines": ["", "#", "# /etc/fstab", "# Created by anaconda on Sat Oct 31 08:17:58 2020", "#", "# Accessible filesystems, by reference, are maintained under '/dev/disk/'.", "# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.", "#", "# After editing this file, run 'systemctl daemon-reload' to update systemd", "# units generated from this file.", "#", "UUID=03e702b4-e165-4a39-88c9-9e210cd00434 / ext4 defaults 1 1", "/dev/mapper/foo-test1 /opt/test1 xfs defaults 0 0"]} TASK [Read the /etc/crypttab file] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/crypttab"], "delta": "0:00:01.004031", "end": "2020-10-31 12:40:12.036528", "rc": 0, "start": "2020-10-31 12:40:11.032497", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Verify the volumes listed in storage_pools were correctly managed] ******* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:32 [WARNING]: The loop variable 'storage_test_pool' is already in use. You should set the `loop_var` value in the `loop_control` option for the task to something else to avoid variable collisions and unexpected behavior. included: /tmp/tmp7ksfxpzz/tests/test-verify-pool.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool.yml:5 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pool_tests": ["members", "volumes"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool.yml:17 included: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-pool-volumes.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:1 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_count": "1", "_storage_test_pool_pvs": [], "_storage_test_pool_pvs_lvm": ["/dev/vda"]}, "changed": false} TASK [Get the canonical device path for each member device] ******************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:7 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=/dev/vda) => {"ansible_loop_var": "pv", "changed": false, "device": "/dev/vda", "pv": "/dev/vda"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:16 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=/dev/vda) => {"ansible_facts": {"_storage_test_pool_pvs": ["/dev/vda"]}, "ansible_index_var": "idx", "ansible_loop_var": "item", "changed": false, "idx": 0, "item": "/dev/vda"} TASK [Verify PV count] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:23 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:29 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_type": "disk"}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:33 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_type": "disk"}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check the type of each PV] *********************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:41 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=/dev/vda) => { "ansible_loop_var": "pv", "changed": false, "msg": "All assertions passed", "pv": "/dev/vda" } TASK [Check raid] ************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:50 included: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [get information about RAID] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:6 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:12 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:16 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:20 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID active devices count] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:24 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID spare devices count] ****************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:30 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID metadata version] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:36 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:44 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_md_active_devices_re": null, "storage_test_md_metadata_version_re": null, "storage_test_md_spare_devices_re": null}, "changed": false} TASK [Check member encryption] ************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:53 included: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_crypttab_entries": "0", "_storage_test_expected_crypttab_key_file": "-"}, "changed": false} TASK [Validate pool member LUKS settings] ************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:8 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=/dev/vda) => {"_storage_test_pool_member_path": "/dev/vda", "ansible_loop_var": "_storage_test_pool_member_path", "changed": false, "skip_reason": "Conditional result was False"} TASK [Validate pool member crypttab entries] *********************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:15 included: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:1 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": []}, "changed": false} TASK [Check for /etc/crypttab entry] ******************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Validate the format of the crypttab entry] ******************************* task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:9 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check backing device of crypttab entry] ********************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:15 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check key file of crypttab entry] **************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:27 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:22 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null, "_storage_test_crypttab_key_file": null}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:56 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_count": null, "_storage_test_expected_pv_type": null, "_storage_test_pool_pvs": [], "_storage_test_pool_pvs_lvm": []}, "changed": false} TASK [verify the volumes] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-volumes.yml:3 [WARNING]: The loop variable 'storage_test_volume' is already in use. You should set the `loop_var` value in the `loop_control` option for the task to something else to avoid variable collisions and unexpected behavior. included: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": true, "_storage_volume_tests": ["mount", "fstab", "fs", "device", "encryption", "md", "size"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:10 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Get expected mount device based on device type] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/foo-test1"}, "changed": false} TASK [Set some facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [{"block_available": 1030454, "block_size": 4096, "block_total": 1046016, "block_used": 15562, "device": "/dev/mapper/foo-test1", "fstype": "xfs", "inode_available": 2097149, "inode_total": 2097152, "inode_used": 3, "mount": "/opt/test1", "options": "rw,seclabel,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota", "size_available": 4220739584, "size_total": 4284481536, "uuid": "c79ac8d2-aae0-48d0-94a7-4f620fcdf171"}], "storage_test_mount_expected_match_count": "1", "storage_test_mount_point_matches": [{"block_available": 1030454, "block_size": 4096, "block_total": 1046016, "block_used": 15562, "device": "/dev/mapper/foo-test1", "fstype": "xfs", "inode_available": 2097149, "inode_total": 2097152, "inode_used": 3, "mount": "/opt/test1", "options": "rw,seclabel,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota", "size_available": 4220739584, "size_total": 4284481536, "uuid": "c79ac8d2-aae0-48d0-94a7-4f620fcdf171"}], "storage_test_swap_expected_matches": "0"}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:22 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:31 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:39 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [command] ***************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Gather swap info] ******************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:52 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify swap status] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:57 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Unset facts] ************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:67 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null, "storage_test_swap_expected_matches": null, "storage_test_swaps": null, "storage_test_sys_node": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": "1", "storage_test_fstab_expected_mount_point_matches": "1", "storage_test_fstab_id_matches": ["/dev/mapper/foo-test1 "], "storage_test_fstab_mount_point_matches": [" /opt/test1 "]}, "changed": false} TASK [Verify that the device identifier appears in /etc/fstab] ***************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:17 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": null, "storage_test_fstab_expected_mount_point_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [Verify fs type] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify fs label] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [See whether the device node is present] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "stat": {"atime": 1604148006.5237932, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "ctime": 1604148006.5237932, "dev": 5, "device_type": 64768, "executable": false, "exists": true, "gid": 6, "gr_name": "disk", "inode": 88184, "isblk": true, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mimetype": "inode/symlink", "mode": "0660", "mtime": 1604148006.5237932, "nlink": 1, "path": "/dev/mapper/foo-test1", "pw_name": "root", "readable": true, "rgrp": true, "roth": false, "rusr": true, "size": 0, "uid": 0, "version": null, "wgrp": true, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}} TASK [Verify the presence/absence of the device node] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "lvm"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:28 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:33 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Stat the LUKS device, if encrypted] ************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:3 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Collect LUKS info for this volume] *************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:10 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the presence/absence of the LUKS device node] ********************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:16 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify that the raw device is the same as the device if not encrypted] *** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:25 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about the LUKS volume if encrypted] **************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the LUKS volume's device type if encrypted] *********************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS version] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:42 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS key size] ***************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS cipher] ******************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:54 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:60 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": [], "_storage_test_expected_crypttab_entries": "0", "_storage_test_expected_crypttab_key_file": "-"}, "changed": false} TASK [Check for /etc/crypttab entry] ******************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:65 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Validate the format of the crypttab entry] ******************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:70 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check backing device of crypttab entry] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:76 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check key file of crypttab entry] **************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:82 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:88 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null, "_storage_test_expected_crypttab_entries": null, "_storage_test_expected_crypttab_key_file": null}, "changed": false} TASK [get information about RAID] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:7 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:13 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:17 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID active devices count] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:25 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID spare devices count] ****************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID metadata version] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [parse the actual size of the volume] ************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:3 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"bytes": 4294967296, "changed": false, "lvm": "4g", "parted": "4GiB", "size": "4 GiB"} TASK [parse the requested size of the volume] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:9 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"bytes": 4294967296, "changed": false, "lvm": "4g", "parted": "4GiB", "size": "4 GiB"} TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:15 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_actual_size": { "bytes": 4294967296, "changed": false, "failed": false, "lvm": "4g", "parted": "4GiB", "size": "4 GiB" } } TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_requested_size": { "bytes": 4294967296, "changed": false, "failed": false, "lvm": "4g", "parted": "4GiB", "size": "4 GiB" } } TASK [assert] ****************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:21 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:16 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:39 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_pool": null}, "changed": false} TASK [Verify the volumes with no pool were correctly managed] ****************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:46 TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:56 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_blkinfo": null, "storage_test_crypttab": null, "storage_test_fstab": null, "storage_test_volume": null}, "changed": false} TASK [create a file] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/create-test-file.yml:10 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": true, "dest": "/opt/test1/quux", "gid": 0, "group": "root", "mode": "0644", "owner": "root", "secontext": "unconfined_u:object_r:unlabeled_t:s0", "size": 0, "state": "file", "uid": 0} TASK [Add encryption to the pool] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_luks_pool.yml:157 TASK [linux-system-roles.storage : Set version specific variables] ************* task path: /tmp/tmp7ksfxpzz/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-crypto", "libblockdev-dm", "libblockdev-lvm", "libblockdev-mdraid", "libblockdev-swap"]}, "ansible_included_var_files": ["/tmp/tmp7ksfxpzz/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.storage : define an empty list of pools to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : define an empty list of volumes to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : include the appropriate provider tasks] ***** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:22 included: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [linux-system-roles.storage : get a list of rpm packages installed on host machine] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : make sure blivet is available] ************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: python3-blivet", "Installed: libblockdev-crypto", "Installed: libblockdev-dm", "Installed: libblockdev-lvm", "Installed: libblockdev-mdraid", "Installed: libblockdev-swap"]} TASK [linux-system-roles.storage : initialize internal facts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools": [], "_storage_vol_defaults": [], "_storage_vol_pools": [], "_storage_vols_no_defaults": [], "_storage_vols_no_defaults_by_pool": {}, "_storage_vols_w_defaults": [], "_storage_volumes": []}, "changed": false} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [1/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:28 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'name': u'foo', u'encryption_password': u'yabbadabbadoo', u'encryption': True, u'encryption_key_size': 512, u'disks': [u'vda'], u'encryption_luks_version': u'luks1', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'4g'}], u'type': u'lvm', u'encryption_cipher': u'serpent-xts-plain64'}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vda"], "encryption": true, "encryption_cipher": "serpent-xts-plain64", "encryption_key": null, "encryption_key_size": 512, "encryption_luks_version": "luks1", "encryption_password": "yabbadabbadoo", "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "4g"}]}]}, "ansible_loop_var": "pool", "changed": false, "pool": {"disks": ["vda"], "encryption": true, "encryption_cipher": "serpent-xts-plain64", "encryption_key_size": 512, "encryption_luks_version": "luks1", "encryption_password": "yabbadabbadoo", "name": "foo", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "4g"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [2/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:36 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'raid_metadata_version': None, u'encryption_cipher': u'serpent-xts-plain64', u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': u'luks1', u'raid_spare_count': None, u'name': u'foo', u'encryption_password': u'yabbadabbadoo', u'encryption': True, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'4g'}], u'type': u'lvm', u'encryption_key_size': 512}, {u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'4g'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}], "_storage_vol_pools": ["foo"], "_storage_vols_no_defaults": [{"mount_point": "/opt/test1", "name": "test1", "size": "4g"}]}, "ansible_loop_var": "item", "changed": false, "item": [{"disks": ["vda"], "encryption": true, "encryption_cipher": "serpent-xts-plain64", "encryption_key": null, "encryption_key_size": 512, "encryption_luks_version": "luks1", "encryption_password": "yabbadabbadoo", "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "4g"}]}, {"mount_point": "/opt/test1", "name": "test1", "size": "4g"}]} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [3/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:44 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'4g'}, {u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'fs_label': u'', u'raid_level': None, u'mount_device_identifier': u'uuid', u'fs_type': u'xfs', u'mount_options': u'defaults', u'encryption_luks_version': None, u'raid_spare_count': None, u'size': 0, u'mount_point': u'', u'encryption_password': None, u'encryption': False, u'raid_chunk_size': None, u'raid_device_count': None, u'state': u'present', u'mount_check': 0, u'mount_passno': 0, u'fs_overwrite_existing': True, u'type': u'lvm', u'encryption_key_size': None, u'fs_create_options': u''}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm"}]}, "ansible_index_var": "idx", "ansible_loop_var": "item", "changed": false, "idx": 0, "item": [{"mount_point": "/opt/test1", "name": "test1", "size": "4g"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}]} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [4/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:52 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': u'serpent-xts-plain64', u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': u'luks1', u'raid_spare_count': None, u'name': u'foo', u'encryption_password': u'yabbadabbadoo', u'encryption': True, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'4g'}], u'type': u'lvm', u'encryption_key_size': 512}) => {"ansible_facts": {"_storage_vols_no_defaults_by_pool": {"foo": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm"}]}}, "ansible_loop_var": "item", "changed": false, "item": {"disks": ["vda"], "encryption": true, "encryption_cipher": "serpent-xts-plain64", "encryption_key": null, "encryption_key_size": 512, "encryption_luks_version": "luks1", "encryption_password": "yabbadabbadoo", "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "4g"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [5/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:61 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': u'serpent-xts-plain64', u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': u'luks1', u'raid_spare_count': None, u'name': u'foo', u'encryption_password': u'yabbadabbadoo', u'encryption': True, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'4g'}], u'type': u'lvm', u'encryption_key_size': 512}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vda"], "encryption": true, "encryption_cipher": "serpent-xts-plain64", "encryption_key": null, "encryption_key_size": 512, "encryption_luks_version": "luks1", "encryption_password": "yabbadabbadoo", "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm"}]}]}, "ansible_index_var": "idx", "ansible_loop_var": "pool", "changed": false, "idx": 0, "pool": {"disks": ["vda"], "encryption": true, "encryption_cipher": "serpent-xts-plain64", "encryption_key": null, "encryption_key_size": 512, "encryption_luks_version": "luks1", "encryption_password": "yabbadabbadoo", "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "4g"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [6/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:72 TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools": [ { "disks": [ "vda" ], "encryption": true, "encryption_cipher": "serpent-xts-plain64", "encryption_key": null, "encryption_key_size": 512, "encryption_luks_version": "luks1", "encryption_password": "yabbadabbadoo", "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [ { "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm" } ] } ] } TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes": [] } TASK [linux-system-roles.storage : get required packages] ********************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": ["cryptsetup", "lvm2", "xfsprogs"], "pools": [], "volumes": []} TASK [linux-system-roles.storage : make sure required packages are installed] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: cryptsetup", "Installed: lvm2", "Installed: xfsprogs"]} TASK [linux-system-roles.storage : manage the pools and volumes to match the specified state] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:104 fatal: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2]: FAILED! => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "msg": "cannot remove and recreate existing pool 'foo' in safe mode", "packages": [], "pools": [], "volumes": []} TASK [Check that we failed in the role] **************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_luks_pool.yml:178 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the output of the safe_mode test] ********************************* task path: /tmp/tmp7ksfxpzz/tests/tests_luks_pool.yml:184 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [stat the file] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-data-preservation.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "stat": {"atime": 1604148016.7427933, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "checksum": "da39a3ee5e6b4b0d3255bfef95601890afd80709", "ctime": 1604148016.7427933, "dev": 64768, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 131, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "inode/x-empty", "mode": "0644", "mtime": 1604148016.7427933, "nlink": 1, "path": "/opt/test1/quux", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 0, "uid": 0, "version": "417920485", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}} TASK [assert file presence] **************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-data-preservation.yml:15 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Add encryption to the pool] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_luks_pool.yml:195 TASK [linux-system-roles.storage : Set version specific variables] ************* task path: /tmp/tmp7ksfxpzz/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-crypto", "libblockdev-dm", "libblockdev-lvm", "libblockdev-mdraid", "libblockdev-swap"]}, "ansible_included_var_files": ["/tmp/tmp7ksfxpzz/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.storage : define an empty list of pools to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : define an empty list of volumes to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : include the appropriate provider tasks] ***** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:22 included: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [linux-system-roles.storage : get a list of rpm packages installed on host machine] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : make sure blivet is available] ************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: python3-blivet", "Installed: libblockdev-crypto", "Installed: libblockdev-dm", "Installed: libblockdev-lvm", "Installed: libblockdev-mdraid", "Installed: libblockdev-swap"]} TASK [linux-system-roles.storage : initialize internal facts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools": [], "_storage_vol_defaults": [], "_storage_vol_pools": [], "_storage_vols_no_defaults": [], "_storage_vols_no_defaults_by_pool": {}, "_storage_vols_w_defaults": [], "_storage_volumes": []}, "changed": false} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [1/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:28 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'name': u'foo', u'encryption_password': u'yabbadabbadoo', u'encryption': True, u'encryption_key_size': 512, u'disks': [u'vda'], u'encryption_luks_version': u'luks1', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'4g'}], u'type': u'lvm', u'encryption_cipher': u'serpent-xts-plain64'}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vda"], "encryption": true, "encryption_cipher": "serpent-xts-plain64", "encryption_key": null, "encryption_key_size": 512, "encryption_luks_version": "luks1", "encryption_password": "yabbadabbadoo", "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "4g"}]}]}, "ansible_loop_var": "pool", "changed": false, "pool": {"disks": ["vda"], "encryption": true, "encryption_cipher": "serpent-xts-plain64", "encryption_key_size": 512, "encryption_luks_version": "luks1", "encryption_password": "yabbadabbadoo", "name": "foo", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "4g"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [2/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:36 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'raid_metadata_version': None, u'encryption_cipher': u'serpent-xts-plain64', u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': u'luks1', u'raid_spare_count': None, u'name': u'foo', u'encryption_password': u'yabbadabbadoo', u'encryption': True, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'4g'}], u'type': u'lvm', u'encryption_key_size': 512}, {u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'4g'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}], "_storage_vol_pools": ["foo"], "_storage_vols_no_defaults": [{"mount_point": "/opt/test1", "name": "test1", "size": "4g"}]}, "ansible_loop_var": "item", "changed": false, "item": [{"disks": ["vda"], "encryption": true, "encryption_cipher": "serpent-xts-plain64", "encryption_key": null, "encryption_key_size": 512, "encryption_luks_version": "luks1", "encryption_password": "yabbadabbadoo", "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "4g"}]}, {"mount_point": "/opt/test1", "name": "test1", "size": "4g"}]} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [3/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:44 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'4g'}, {u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'fs_label': u'', u'raid_level': None, u'mount_device_identifier': u'uuid', u'fs_type': u'xfs', u'mount_options': u'defaults', u'encryption_luks_version': None, u'raid_spare_count': None, u'size': 0, u'mount_point': u'', u'encryption_password': None, u'encryption': False, u'raid_chunk_size': None, u'raid_device_count': None, u'state': u'present', u'mount_check': 0, u'mount_passno': 0, u'fs_overwrite_existing': True, u'type': u'lvm', u'encryption_key_size': None, u'fs_create_options': u''}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm"}]}, "ansible_index_var": "idx", "ansible_loop_var": "item", "changed": false, "idx": 0, "item": [{"mount_point": "/opt/test1", "name": "test1", "size": "4g"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}]} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [4/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:52 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': u'serpent-xts-plain64', u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': u'luks1', u'raid_spare_count': None, u'name': u'foo', u'encryption_password': u'yabbadabbadoo', u'encryption': True, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'4g'}], u'type': u'lvm', u'encryption_key_size': 512}) => {"ansible_facts": {"_storage_vols_no_defaults_by_pool": {"foo": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm"}]}}, "ansible_loop_var": "item", "changed": false, "item": {"disks": ["vda"], "encryption": true, "encryption_cipher": "serpent-xts-plain64", "encryption_key": null, "encryption_key_size": 512, "encryption_luks_version": "luks1", "encryption_password": "yabbadabbadoo", "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "4g"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [5/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:61 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': u'serpent-xts-plain64', u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': u'luks1', u'raid_spare_count': None, u'name': u'foo', u'encryption_password': u'yabbadabbadoo', u'encryption': True, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'4g'}], u'type': u'lvm', u'encryption_key_size': 512}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vda"], "encryption": true, "encryption_cipher": "serpent-xts-plain64", "encryption_key": null, "encryption_key_size": 512, "encryption_luks_version": "luks1", "encryption_password": "yabbadabbadoo", "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm"}]}]}, "ansible_index_var": "idx", "ansible_loop_var": "pool", "changed": false, "idx": 0, "pool": {"disks": ["vda"], "encryption": true, "encryption_cipher": "serpent-xts-plain64", "encryption_key": null, "encryption_key_size": 512, "encryption_luks_version": "luks1", "encryption_password": "yabbadabbadoo", "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "4g"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [6/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:72 TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools": [ { "disks": [ "vda" ], "encryption": true, "encryption_cipher": "serpent-xts-plain64", "encryption_key": null, "encryption_key_size": 512, "encryption_luks_version": "luks1", "encryption_password": "yabbadabbadoo", "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [ { "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm" } ] } ] } TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes": [] } TASK [linux-system-roles.storage : get required packages] ********************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": ["cryptsetup", "lvm2", "xfsprogs"], "pools": [], "volumes": []} TASK [linux-system-roles.storage : make sure required packages are installed] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: cryptsetup", "Installed: lvm2", "Installed: xfsprogs"]} TASK [linux-system-roles.storage : manage the pools and volumes to match the specified state] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:104 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [{"action": "destroy format", "device": "/dev/mapper/foo-test1", "fs_type": "xfs"}, {"action": "destroy device", "device": "/dev/mapper/foo-test1", "fs_type": null}, {"action": "destroy device", "device": "/dev/foo", "fs_type": null}, {"action": "destroy format", "device": "/dev/vda", "fs_type": "lvmpv"}, {"action": "create format", "device": "/dev/vda", "fs_type": "luks"}, {"action": "create device", "device": "/dev/mapper/luks-6a08ad58-5b45-4b33-a701-4dae20e6b1c3", "fs_type": null}, {"action": "create format", "device": "/dev/mapper/luks-6a08ad58-5b45-4b33-a701-4dae20e6b1c3", "fs_type": "lvmpv"}, {"action": "create device", "device": "/dev/foo", "fs_type": null}, {"action": "create device", "device": "/dev/mapper/foo-test1", "fs_type": null}, {"action": "create format", "device": "/dev/mapper/foo-test1", "fs_type": "xfs"}], "changed": true, "crypts": [{"backing_device": "/dev/vda", "name": "luks-6a08ad58-5b45-4b33-a701-4dae20e6b1c3", "password": "-", "state": "present"}], "leaves": ["/dev/sda1", "/dev/sr0", "/dev/vdb", "/dev/vdc", "/dev/mapper/foo-test1"], "mounts": [{"fstype": "xfs", "path": "/opt/test1", "src": "/dev/mapper/foo-test1", "state": "absent"}, {"dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "/dev/mapper/foo-test1", "state": "mounted"}], "packages": ["e2fsprogs", "cryptsetup", "lvm2", "xfsprogs"], "pools": [{"disks": ["vda"], "encryption": true, "encryption_cipher": "serpent-xts-plain64", "encryption_key": null, "encryption_key_size": 512, "encryption_luks_version": "luks1", "encryption_password": "yabbadabbadoo", "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"_device": "/dev/mapper/foo-test1", "_kernel_device": "/dev/dm-1", "_mount_id": "/dev/mapper/foo-test1", "_raw_device": "/dev/mapper/foo-test1", "_raw_kernel_device": "/dev/dm-1", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm"}]}], "volumes": []} TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:114 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "blivet_output": { "actions": [ { "action": "destroy format", "device": "/dev/mapper/foo-test1", "fs_type": "xfs" }, { "action": "destroy device", "device": "/dev/mapper/foo-test1", "fs_type": null }, { "action": "destroy device", "device": "/dev/foo", "fs_type": null }, { "action": "destroy format", "device": "/dev/vda", "fs_type": "lvmpv" }, { "action": "create format", "device": "/dev/vda", "fs_type": "luks" }, { "action": "create device", "device": "/dev/mapper/luks-6a08ad58-5b45-4b33-a701-4dae20e6b1c3", "fs_type": null }, { "action": "create format", "device": "/dev/mapper/luks-6a08ad58-5b45-4b33-a701-4dae20e6b1c3", "fs_type": "lvmpv" }, { "action": "create device", "device": "/dev/foo", "fs_type": null }, { "action": "create device", "device": "/dev/mapper/foo-test1", "fs_type": null }, { "action": "create format", "device": "/dev/mapper/foo-test1", "fs_type": "xfs" } ], "changed": true, "crypts": [ { "backing_device": "/dev/vda", "name": "luks-6a08ad58-5b45-4b33-a701-4dae20e6b1c3", "password": "-", "state": "present" } ], "failed": false, "leaves": [ "/dev/sda1", "/dev/sr0", "/dev/vdb", "/dev/vdc", "/dev/mapper/foo-test1" ], "mounts": [ { "fstype": "xfs", "path": "/opt/test1", "src": "/dev/mapper/foo-test1", "state": "absent" }, { "dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "/dev/mapper/foo-test1", "state": "mounted" } ], "packages": [ "e2fsprogs", "cryptsetup", "lvm2", "xfsprogs" ], "pools": [ { "disks": [ "vda" ], "encryption": true, "encryption_cipher": "serpent-xts-plain64", "encryption_key": null, "encryption_key_size": 512, "encryption_luks_version": "luks1", "encryption_password": "yabbadabbadoo", "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [ { "_device": "/dev/mapper/foo-test1", "_kernel_device": "/dev/dm-1", "_mount_id": "/dev/mapper/foo-test1", "_raw_device": "/dev/mapper/foo-test1", "_raw_kernel_device": "/dev/dm-1", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm" } ] } ], "volumes": [] } } TASK [linux-system-roles.storage : set the list of pools for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:117 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": [{"disks": ["vda"], "encryption": true, "encryption_cipher": "serpent-xts-plain64", "encryption_key": null, "encryption_key_size": 512, "encryption_luks_version": "luks1", "encryption_password": "yabbadabbadoo", "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"_device": "/dev/mapper/foo-test1", "_kernel_device": "/dev/dm-1", "_mount_id": "/dev/mapper/foo-test1", "_raw_device": "/dev/mapper/foo-test1", "_raw_kernel_device": "/dev/dm-1", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm"}]}]}, "changed": false} TASK [linux-system-roles.storage : set the list of volumes for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:121 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : remove obsolete mounts] ********************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:137 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'src': u'/dev/mapper/foo-test1', u'state': u'absent', u'fstype': u'xfs', u'path': u'/opt/test1'}) => {"ansible_loop_var": "mount_info", "changed": true, "dump": "0", "fstab": "/etc/fstab", "fstype": "xfs", "mount_info": {"fstype": "xfs", "path": "/opt/test1", "src": "/dev/mapper/foo-test1", "state": "absent"}, "name": "/opt/test1", "opts": "defaults", "passno": "0", "src": "/dev/mapper/foo-test1"} TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:148 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [linux-system-roles.storage : set up new/current mounts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:153 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'src': u'/dev/mapper/foo-test1', u'state': u'mounted', u'dump': 0, u'path': u'/opt/test1', u'passno': 0, u'opts': u'defaults', u'fstype': u'xfs'}) => {"ansible_loop_var": "mount_info", "changed": true, "dump": "0", "fstab": "/etc/fstab", "fstype": "xfs", "mount_info": {"dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "/dev/mapper/foo-test1", "state": "mounted"}, "name": "/opt/test1", "opts": "defaults", "passno": "0", "src": "/dev/mapper/foo-test1"} TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:164 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [linux-system-roles.storage : Manage /etc/crypttab to account for changes we just made] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:172 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'state': u'present', u'password': u'-', u'name': u'luks-6a08ad58-5b45-4b33-a701-4dae20e6b1c3', u'backing_device': u'/dev/vda'}) => {"ansible_loop_var": "entry", "backing_device": "/dev/vda", "changed": true, "entry": {"backing_device": "/dev/vda", "name": "luks-6a08ad58-5b45-4b33-a701-4dae20e6b1c3", "password": "-", "state": "present"}, "gid": 0, "group": "root", "mode": "0600", "msg": "added line", "name": "luks-6a08ad58-5b45-4b33-a701-4dae20e6b1c3", "opts": null, "owner": "root", "password": "-", "path": "/etc/crypttab", "secontext": "system_u:object_r:etc_t:s0", "size": 54, "state": "file", "uid": 0, "warnings": ["Module did not set no_log for password"]} TASK [linux-system-roles.storage : Update facts] ******************************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:187 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_luks_pool.yml:214 included: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Print out pool information] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:1 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools_list": [ { "disks": [ "vda" ], "encryption": true, "encryption_cipher": "serpent-xts-plain64", "encryption_key": null, "encryption_key_size": 512, "encryption_luks_version": "luks1", "encryption_password": "yabbadabbadoo", "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [ { "_device": "/dev/mapper/foo-test1", "_kernel_device": "/dev/dm-1", "_mount_id": "/dev/mapper/foo-test1", "_raw_device": "/dev/mapper/foo-test1", "_raw_kernel_device": "/dev/dm-1", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm" } ] } ] } TASK [Print out volume information] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:6 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {} TASK [Collect info about the volumes.] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "info": {"/dev/mapper/foo-test1": {"fstype": "xfs", "label": "", "name": "/dev/mapper/foo-test1", "size": "4G", "type": "lvm", "uuid": "26cdf339-ea86-488d-a99a-649048472a63"}, "/dev/mapper/luks-6a08ad58-5b45-4b33-a701-4dae20e6b1c3": {"fstype": "LVM2_member", "label": "", "name": "/dev/mapper/luks-6a08ad58-5b45-4b33-a701-4dae20e6b1c3", "size": "10G", "type": "crypt", "uuid": "sLms1W-pEWn-cHXn-8QI8-xSss-3SpN-Iz8iLW"}, "/dev/sda": {"fstype": "", "label": "", "name": "/dev/sda", "size": "4G", "type": "disk", "uuid": ""}, "/dev/sda1": {"fstype": "ext4", "label": "", "name": "/dev/sda1", "size": "4G", "type": "partition", "uuid": "03e702b4-e165-4a39-88c9-9e210cd00434"}, "/dev/sr0": {"fstype": "iso9660", "label": "cidata", "name": "/dev/sr0", "size": "364K", "type": "rom", "uuid": "2020-10-31-12-37-34-00"}, "/dev/vda": {"fstype": "crypto_LUKS", "label": "", "name": "/dev/vda", "size": "10G", "type": "disk", "uuid": "6a08ad58-5b45-4b33-a701-4dae20e6b1c3"}, "/dev/vdb": {"fstype": "", "label": "", "name": "/dev/vdb", "size": "10G", "type": "disk", "uuid": ""}, "/dev/vdc": {"fstype": "", "label": "", "name": "/dev/vdc", "size": "10G", "type": "disk", "uuid": ""}}} TASK [Read the /etc/fstab file for volume existence] *************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:19 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/fstab"], "delta": "0:00:00.003392", "end": "2020-10-31 12:40:54.272503", "rc": 0, "start": "2020-10-31 12:40:54.269111", "stderr": "", "stderr_lines": [], "stdout": "\n#\n# /etc/fstab\n# Created by anaconda on Sat Oct 31 08:17:58 2020\n#\n# Accessible filesystems, by reference, are maintained under '/dev/disk/'.\n# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.\n#\n# After editing this file, run 'systemctl daemon-reload' to update systemd\n# units generated from this file.\n#\nUUID=03e702b4-e165-4a39-88c9-9e210cd00434 / ext4 defaults 1 1\n/dev/mapper/foo-test1 /opt/test1 xfs defaults 0 0", "stdout_lines": ["", "#", "# /etc/fstab", "# Created by anaconda on Sat Oct 31 08:17:58 2020", "#", "# Accessible filesystems, by reference, are maintained under '/dev/disk/'.", "# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.", "#", "# After editing this file, run 'systemctl daemon-reload' to update systemd", "# units generated from this file.", "#", "UUID=03e702b4-e165-4a39-88c9-9e210cd00434 / ext4 defaults 1 1", "/dev/mapper/foo-test1 /opt/test1 xfs defaults 0 0"]} TASK [Read the /etc/crypttab file] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/crypttab"], "delta": "0:00:00.002971", "end": "2020-10-31 12:40:54.623930", "rc": 0, "start": "2020-10-31 12:40:54.620959", "stderr": "", "stderr_lines": [], "stdout": "\nluks-6a08ad58-5b45-4b33-a701-4dae20e6b1c3 /dev/vda -", "stdout_lines": ["", "luks-6a08ad58-5b45-4b33-a701-4dae20e6b1c3 /dev/vda -"]} TASK [Verify the volumes listed in storage_pools were correctly managed] ******* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:32 [WARNING]: The loop variable 'storage_test_pool' is already in use. You should set the `loop_var` value in the `loop_control` option for the task to something else to avoid variable collisions and unexpected behavior. included: /tmp/tmp7ksfxpzz/tests/test-verify-pool.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool.yml:5 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pool_tests": ["members", "volumes"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool.yml:17 included: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-pool-volumes.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:1 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_count": "1", "_storage_test_pool_pvs": [], "_storage_test_pool_pvs_lvm": ["/dev/mapper/luks-6a08ad58-5b45-4b33-a701-4dae20e6b1c3"]}, "changed": false} TASK [Get the canonical device path for each member device] ******************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:7 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=/dev/mapper/luks-6a08ad58-5b45-4b33-a701-4dae20e6b1c3) => {"ansible_loop_var": "pv", "changed": false, "device": "/dev/mapper/luks-6a08ad58-5b45-4b33-a701-4dae20e6b1c3", "pv": "/dev/mapper/luks-6a08ad58-5b45-4b33-a701-4dae20e6b1c3"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:16 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=/dev/mapper/luks-6a08ad58-5b45-4b33-a701-4dae20e6b1c3) => {"ansible_facts": {"_storage_test_pool_pvs": ["/dev/mapper/luks-6a08ad58-5b45-4b33-a701-4dae20e6b1c3"]}, "ansible_index_var": "idx", "ansible_loop_var": "item", "changed": false, "idx": 0, "item": "/dev/mapper/luks-6a08ad58-5b45-4b33-a701-4dae20e6b1c3"} TASK [Verify PV count] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:23 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:29 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_type": "crypt"}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:33 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check the type of each PV] *********************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:41 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=/dev/mapper/luks-6a08ad58-5b45-4b33-a701-4dae20e6b1c3) => { "ansible_loop_var": "pv", "changed": false, "msg": "All assertions passed", "pv": "/dev/mapper/luks-6a08ad58-5b45-4b33-a701-4dae20e6b1c3" } TASK [Check raid] ************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:50 included: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [get information about RAID] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:6 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:12 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:16 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:20 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID active devices count] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:24 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID spare devices count] ****************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:30 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID metadata version] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:36 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:44 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_md_active_devices_re": null, "storage_test_md_metadata_version_re": null, "storage_test_md_spare_devices_re": null}, "changed": false} TASK [Check member encryption] ************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:53 included: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_crypttab_entries": "1", "_storage_test_expected_crypttab_key_file": "-"}, "changed": false} TASK [Validate pool member LUKS settings] ************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:8 included: /tmp/tmp7ksfxpzz/tests/verify-pool-member-encryption.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Get the backing device path] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-encryption.yml:1 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/disk/by-uuid/6a08ad58-5b45-4b33-a701-4dae20e6b1c3"], "delta": "0:00:00.003023", "end": "2020-10-31 12:40:56.190341", "rc": 0, "start": "2020-10-31 12:40:56.187318", "stderr": "", "stderr_lines": [], "stdout": "/dev/vda", "stdout_lines": ["/dev/vda"]} TASK [Collect LUKS info for this member] *************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-encryption.yml:6 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["cryptsetup", "luksDump", "/dev/vda"], "delta": "0:00:00.009296", "end": "2020-10-31 12:40:56.530176", "rc": 0, "start": "2020-10-31 12:40:56.520880", "stderr": "", "stderr_lines": [], "stdout": "LUKS header information for /dev/vda\n\nVersion: \t1\nCipher name: \tserpent\nCipher mode: \txts-plain64\nHash spec: \tsha256\nPayload offset:\t4096\nMK bits: \t512\nMK digest: \t3c dd 32 57 ed 3f d9 0c 91 ad 98 d0 a1 21 0a 6a 14 78 21 68 \nMK salt: \te0 10 1f bd 4d 89 62 06 7a e1 f7 c8 62 a4 7b 08 \n \teb 09 1b 74 07 c6 ac f9 27 4c 6f ff 08 cf c7 ea \nMK iterations: \t119591\nUUID: \t6a08ad58-5b45-4b33-a701-4dae20e6b1c3\n\nKey Slot 0: ENABLED\n\tIterations: \t1923992\n\tSalt: \t71 7c c2 ec 2b 50 37 8d ac c3 bf bf e6 73 cb 05 \n\t \t71 0c 67 b3 2c f0 93 40 88 8c 71 69 20 48 cf 52 \n\tKey material offset:\t8\n\tAF stripes: \t4000\nKey Slot 1: DISABLED\nKey Slot 2: DISABLED\nKey Slot 3: DISABLED\nKey Slot 4: DISABLED\nKey Slot 5: DISABLED\nKey Slot 6: DISABLED\nKey Slot 7: DISABLED", "stdout_lines": ["LUKS header information for /dev/vda", "", "Version: \t1", "Cipher name: \tserpent", "Cipher mode: \txts-plain64", "Hash spec: \tsha256", "Payload offset:\t4096", "MK bits: \t512", "MK digest: \t3c dd 32 57 ed 3f d9 0c 91 ad 98 d0 a1 21 0a 6a 14 78 21 68 ", "MK salt: \te0 10 1f bd 4d 89 62 06 7a e1 f7 c8 62 a4 7b 08 ", " \teb 09 1b 74 07 c6 ac f9 27 4c 6f ff 08 cf c7 ea ", "MK iterations: \t119591", "UUID: \t6a08ad58-5b45-4b33-a701-4dae20e6b1c3", "", "Key Slot 0: ENABLED", "\tIterations: \t1923992", "\tSalt: \t71 7c c2 ec 2b 50 37 8d ac c3 bf bf e6 73 cb 05 ", "\t \t71 0c 67 b3 2c f0 93 40 88 8c 71 69 20 48 cf 52 ", "\tKey material offset:\t8", "\tAF stripes: \t4000", "Key Slot 1: DISABLED", "Key Slot 2: DISABLED", "Key Slot 3: DISABLED", "Key Slot 4: DISABLED", "Key Slot 5: DISABLED", "Key Slot 6: DISABLED", "Key Slot 7: DISABLED"]} TASK [Check LUKS version] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-encryption.yml:12 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Check LUKS key size] ***************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-encryption.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Check LUKS cipher] ******************************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-encryption.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Validate pool member crypttab entries] *********************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:15 included: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:1 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": ["luks-6a08ad58-5b45-4b33-a701-4dae20e6b1c3 /dev/vda -"]}, "changed": false} TASK [Check for /etc/crypttab entry] ******************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Validate the format of the crypttab entry] ******************************* task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:9 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Check backing device of crypttab entry] ********************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:15 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check key file of crypttab entry] **************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:21 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:27 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:22 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null, "_storage_test_crypttab_key_file": null}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:56 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_count": null, "_storage_test_expected_pv_type": null, "_storage_test_pool_pvs": [], "_storage_test_pool_pvs_lvm": []}, "changed": false} TASK [verify the volumes] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-volumes.yml:3 [WARNING]: The loop variable 'storage_test_volume' is already in use. You should set the `loop_var` value in the `loop_control` option for the task to something else to avoid variable collisions and unexpected behavior. included: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": true, "_storage_volume_tests": ["mount", "fstab", "fs", "device", "encryption", "md", "size"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:10 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Get expected mount device based on device type] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/foo-test1"}, "changed": false} TASK [Set some facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [{"block_available": 1030454, "block_size": 4096, "block_total": 1046016, "block_used": 15562, "device": "/dev/mapper/foo-test1", "fstype": "xfs", "inode_available": 2097149, "inode_total": 2097152, "inode_used": 3, "mount": "/opt/test1", "options": "rw,seclabel,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota", "size_available": 4220739584, "size_total": 4284481536, "uuid": "26cdf339-ea86-488d-a99a-649048472a63"}], "storage_test_mount_expected_match_count": "1", "storage_test_mount_point_matches": [{"block_available": 1030454, "block_size": 4096, "block_total": 1046016, "block_used": 15562, "device": "/dev/mapper/foo-test1", "fstype": "xfs", "inode_available": 2097149, "inode_total": 2097152, "inode_used": 3, "mount": "/opt/test1", "options": "rw,seclabel,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota", "size_available": 4220739584, "size_total": 4284481536, "uuid": "26cdf339-ea86-488d-a99a-649048472a63"}], "storage_test_swap_expected_matches": "0"}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:22 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:31 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:39 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [command] ***************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Gather swap info] ******************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:52 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify swap status] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:57 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Unset facts] ************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:67 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null, "storage_test_swap_expected_matches": null, "storage_test_swaps": null, "storage_test_sys_node": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": "1", "storage_test_fstab_expected_mount_point_matches": "1", "storage_test_fstab_id_matches": ["/dev/mapper/foo-test1 "], "storage_test_fstab_mount_point_matches": [" /opt/test1 "]}, "changed": false} TASK [Verify that the device identifier appears in /etc/fstab] ***************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:17 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": null, "storage_test_fstab_expected_mount_point_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [Verify fs type] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify fs label] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [See whether the device node is present] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "stat": {"atime": 1604148050.2007933, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "ctime": 1604148050.2007933, "dev": 5, "device_type": 64769, "executable": false, "exists": true, "gid": 6, "gr_name": "disk", "inode": 88762, "isblk": true, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mimetype": "inode/symlink", "mode": "0660", "mtime": 1604148050.2007933, "nlink": 1, "path": "/dev/mapper/foo-test1", "pw_name": "root", "readable": true, "rgrp": true, "roth": false, "rusr": true, "size": 0, "uid": 0, "version": null, "wgrp": true, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}} TASK [Verify the presence/absence of the device node] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "lvm"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:28 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:33 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Stat the LUKS device, if encrypted] ************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:3 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Collect LUKS info for this volume] *************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:10 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the presence/absence of the LUKS device node] ********************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:16 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify that the raw device is the same as the device if not encrypted] *** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:25 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about the LUKS volume if encrypted] **************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the LUKS volume's device type if encrypted] *********************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS version] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:42 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS key size] ***************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS cipher] ******************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:54 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:60 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": [], "_storage_test_expected_crypttab_entries": "0", "_storage_test_expected_crypttab_key_file": "-"}, "changed": false} TASK [Check for /etc/crypttab entry] ******************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:65 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Validate the format of the crypttab entry] ******************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:70 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check backing device of crypttab entry] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:76 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check key file of crypttab entry] **************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:82 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:88 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null, "_storage_test_expected_crypttab_entries": null, "_storage_test_expected_crypttab_key_file": null}, "changed": false} TASK [get information about RAID] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:7 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:13 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:17 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID active devices count] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:25 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID spare devices count] ****************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID metadata version] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [parse the actual size of the volume] ************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:3 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"bytes": 4294967296, "changed": false, "lvm": "4g", "parted": "4GiB", "size": "4 GiB"} TASK [parse the requested size of the volume] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:9 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"bytes": 4294967296, "changed": false, "lvm": "4g", "parted": "4GiB", "size": "4 GiB"} TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:15 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_actual_size": { "bytes": 4294967296, "changed": false, "failed": false, "lvm": "4g", "parted": "4GiB", "size": "4 GiB" } } TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_requested_size": { "bytes": 4294967296, "changed": false, "failed": false, "lvm": "4g", "parted": "4GiB", "size": "4 GiB" } } TASK [assert] ****************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:21 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:16 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:39 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_pool": null}, "changed": false} TASK [Verify the volumes with no pool were correctly managed] ****************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:46 TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:56 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_blkinfo": null, "storage_test_crypttab": null, "storage_test_fstab": null, "storage_test_volume": null}, "changed": false} TASK [create a file] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/create-test-file.yml:10 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": true, "dest": "/opt/test1/quux", "gid": 0, "group": "root", "mode": "0644", "owner": "root", "secontext": "unconfined_u:object_r:unlabeled_t:s0", "size": 0, "state": "file", "uid": 0} TASK [Change the mountpoint, leaving encryption in place] ********************** task path: /tmp/tmp7ksfxpzz/tests/tests_luks_pool.yml:218 TASK [linux-system-roles.storage : Set version specific variables] ************* task path: /tmp/tmp7ksfxpzz/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-crypto", "libblockdev-dm", "libblockdev-lvm", "libblockdev-mdraid", "libblockdev-swap"]}, "ansible_included_var_files": ["/tmp/tmp7ksfxpzz/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.storage : define an empty list of pools to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : define an empty list of volumes to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : include the appropriate provider tasks] ***** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:22 included: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [linux-system-roles.storage : get a list of rpm packages installed on host machine] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : make sure blivet is available] ************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: python3-blivet", "Installed: libblockdev-crypto", "Installed: libblockdev-dm", "Installed: libblockdev-lvm", "Installed: libblockdev-mdraid", "Installed: libblockdev-swap"]} TASK [linux-system-roles.storage : initialize internal facts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools": [], "_storage_vol_defaults": [], "_storage_vol_pools": [], "_storage_vols_no_defaults": [], "_storage_vols_no_defaults_by_pool": {}, "_storage_vols_w_defaults": [], "_storage_volumes": []}, "changed": false} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [1/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:28 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'name': u'foo', u'encryption_password': u'yabbadabbadoo', u'encryption': True, u'disks': [u'vda'], u'type': u'lvm', u'volumes': [{u'mount_point': u'/opt/test2', u'name': u'test1', u'size': u'4g'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vda"], "encryption": true, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": "yabbadabbadoo", "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test2", "name": "test1", "size": "4g"}]}]}, "ansible_loop_var": "pool", "changed": false, "pool": {"disks": ["vda"], "encryption": true, "encryption_password": "yabbadabbadoo", "name": "foo", "type": "lvm", "volumes": [{"mount_point": "/opt/test2", "name": "test1", "size": "4g"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [2/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:36 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': u'yabbadabbadoo', u'encryption': True, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test2', u'name': u'test1', u'size': u'4g'}], u'type': u'lvm', u'encryption_key_size': None}, {u'mount_point': u'/opt/test2', u'name': u'test1', u'size': u'4g'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}], "_storage_vol_pools": ["foo"], "_storage_vols_no_defaults": [{"mount_point": "/opt/test2", "name": "test1", "size": "4g"}]}, "ansible_loop_var": "item", "changed": false, "item": [{"disks": ["vda"], "encryption": true, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": "yabbadabbadoo", "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test2", "name": "test1", "size": "4g"}]}, {"mount_point": "/opt/test2", "name": "test1", "size": "4g"}]} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [3/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:44 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'mount_point': u'/opt/test2', u'name': u'test1', u'size': u'4g'}, {u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'fs_label': u'', u'raid_level': None, u'mount_device_identifier': u'uuid', u'fs_type': u'xfs', u'mount_options': u'defaults', u'encryption_luks_version': None, u'raid_spare_count': None, u'size': 0, u'mount_point': u'', u'encryption_password': None, u'encryption': False, u'raid_chunk_size': None, u'raid_device_count': None, u'state': u'present', u'mount_check': 0, u'mount_passno': 0, u'fs_overwrite_existing': True, u'type': u'lvm', u'encryption_key_size': None, u'fs_create_options': u''}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm"}]}, "ansible_index_var": "idx", "ansible_loop_var": "item", "changed": false, "idx": 0, "item": [{"mount_point": "/opt/test2", "name": "test1", "size": "4g"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}]} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [4/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:52 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': u'yabbadabbadoo', u'encryption': True, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test2', u'name': u'test1', u'size': u'4g'}], u'type': u'lvm', u'encryption_key_size': None}) => {"ansible_facts": {"_storage_vols_no_defaults_by_pool": {"foo": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm"}]}}, "ansible_loop_var": "item", "changed": false, "item": {"disks": ["vda"], "encryption": true, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": "yabbadabbadoo", "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test2", "name": "test1", "size": "4g"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [5/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:61 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': u'yabbadabbadoo', u'encryption': True, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test2', u'name': u'test1', u'size': u'4g'}], u'type': u'lvm', u'encryption_key_size': None}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vda"], "encryption": true, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": "yabbadabbadoo", "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm"}]}]}, "ansible_index_var": "idx", "ansible_loop_var": "pool", "changed": false, "idx": 0, "pool": {"disks": ["vda"], "encryption": true, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": "yabbadabbadoo", "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test2", "name": "test1", "size": "4g"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [6/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:72 TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools": [ { "disks": [ "vda" ], "encryption": true, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": "yabbadabbadoo", "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [ { "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm" } ] } ] } TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes": [] } TASK [linux-system-roles.storage : get required packages] ********************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": ["cryptsetup", "lvm2", "xfsprogs"], "pools": [], "volumes": []} TASK [linux-system-roles.storage : make sure required packages are installed] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: cryptsetup", "Installed: lvm2", "Installed: xfsprogs"]} TASK [linux-system-roles.storage : manage the pools and volumes to match the specified state] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:104 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": ["/dev/sda1", "/dev/sr0", "/dev/vdb", "/dev/vdc", "/dev/mapper/foo-test1"], "mounts": [{"path": "/opt/test1", "state": "absent"}, {"dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test2", "src": "/dev/mapper/foo-test1", "state": "mounted"}], "packages": ["cryptsetup", "xfsprogs", "e2fsprogs", "lvm2"], "pools": [{"disks": ["vda"], "encryption": true, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": "yabbadabbadoo", "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"_device": "/dev/mapper/foo-test1", "_kernel_device": "/dev/dm-1", "_mount_id": "/dev/mapper/foo-test1", "_raw_device": "/dev/mapper/foo-test1", "_raw_kernel_device": "/dev/dm-1", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm"}]}], "volumes": []} TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:114 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "blivet_output": { "actions": [], "changed": false, "crypts": [], "failed": false, "leaves": [ "/dev/sda1", "/dev/sr0", "/dev/vdb", "/dev/vdc", "/dev/mapper/foo-test1" ], "mounts": [ { "path": "/opt/test1", "state": "absent" }, { "dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test2", "src": "/dev/mapper/foo-test1", "state": "mounted" } ], "packages": [ "cryptsetup", "xfsprogs", "e2fsprogs", "lvm2" ], "pools": [ { "disks": [ "vda" ], "encryption": true, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": "yabbadabbadoo", "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [ { "_device": "/dev/mapper/foo-test1", "_kernel_device": "/dev/dm-1", "_mount_id": "/dev/mapper/foo-test1", "_raw_device": "/dev/mapper/foo-test1", "_raw_kernel_device": "/dev/dm-1", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm" } ] } ], "volumes": [] } } TASK [linux-system-roles.storage : set the list of pools for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:117 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": [{"disks": ["vda"], "encryption": true, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": "yabbadabbadoo", "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"_device": "/dev/mapper/foo-test1", "_kernel_device": "/dev/dm-1", "_mount_id": "/dev/mapper/foo-test1", "_raw_device": "/dev/mapper/foo-test1", "_raw_kernel_device": "/dev/dm-1", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm"}]}]}, "changed": false} TASK [linux-system-roles.storage : set the list of volumes for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:121 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : remove obsolete mounts] ********************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:137 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'path': u'/opt/test1', u'state': u'absent'}) => {"ansible_loop_var": "mount_info", "changed": true, "dump": "0", "fstab": "/etc/fstab", "mount_info": {"path": "/opt/test1", "state": "absent"}, "name": "/opt/test1", "opts": "defaults", "passno": "0"} TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:148 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [linux-system-roles.storage : set up new/current mounts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:153 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'src': u'/dev/mapper/foo-test1', u'state': u'mounted', u'dump': 0, u'path': u'/opt/test2', u'passno': 0, u'opts': u'defaults', u'fstype': u'xfs'}) => {"ansible_loop_var": "mount_info", "changed": true, "dump": "0", "fstab": "/etc/fstab", "fstype": "xfs", "mount_info": {"dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test2", "src": "/dev/mapper/foo-test1", "state": "mounted"}, "name": "/opt/test2", "opts": "defaults", "passno": "0", "src": "/dev/mapper/foo-test1"} TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:164 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [linux-system-roles.storage : Manage /etc/crypttab to account for changes we just made] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:172 TASK [linux-system-roles.storage : Update facts] ******************************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:187 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] TASK [stat the file] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-data-preservation.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "stat": {"atime": 1604148060.2037933, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "checksum": "da39a3ee5e6b4b0d3255bfef95601890afd80709", "ctime": 1604148060.2037933, "dev": 64769, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 131, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "inode/x-empty", "mode": "0644", "mtime": 1604148060.2037933, "nlink": 1, "path": "/opt/test2/quux", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 0, "uid": 0, "version": "3008579276", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}} TASK [assert file presence] **************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-data-preservation.yml:15 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_luks_pool.yml:237 included: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Print out pool information] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:1 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools_list": [ { "disks": [ "vda" ], "encryption": true, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": "yabbadabbadoo", "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [ { "_device": "/dev/mapper/foo-test1", "_kernel_device": "/dev/dm-1", "_mount_id": "/dev/mapper/foo-test1", "_raw_device": "/dev/mapper/foo-test1", "_raw_kernel_device": "/dev/dm-1", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm" } ] } ] } TASK [Print out volume information] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:6 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {} TASK [Collect info about the volumes.] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "info": {"/dev/mapper/foo-test1": {"fstype": "xfs", "label": "", "name": "/dev/mapper/foo-test1", "size": "4G", "type": "lvm", "uuid": "26cdf339-ea86-488d-a99a-649048472a63"}, "/dev/mapper/luks-6a08ad58-5b45-4b33-a701-4dae20e6b1c3": {"fstype": "LVM2_member", "label": "", "name": "/dev/mapper/luks-6a08ad58-5b45-4b33-a701-4dae20e6b1c3", "size": "10G", "type": "crypt", "uuid": "sLms1W-pEWn-cHXn-8QI8-xSss-3SpN-Iz8iLW"}, "/dev/sda": {"fstype": "", "label": "", "name": "/dev/sda", "size": "4G", "type": "disk", "uuid": ""}, "/dev/sda1": {"fstype": "ext4", "label": "", "name": "/dev/sda1", "size": "4G", "type": "partition", "uuid": "03e702b4-e165-4a39-88c9-9e210cd00434"}, "/dev/sr0": {"fstype": "iso9660", "label": "cidata", "name": "/dev/sr0", "size": "364K", "type": "rom", "uuid": "2020-10-31-12-37-34-00"}, "/dev/vda": {"fstype": "crypto_LUKS", "label": "", "name": "/dev/vda", "size": "10G", "type": "disk", "uuid": "6a08ad58-5b45-4b33-a701-4dae20e6b1c3"}, "/dev/vdb": {"fstype": "", "label": "", "name": "/dev/vdb", "size": "10G", "type": "disk", "uuid": ""}, "/dev/vdc": {"fstype": "", "label": "", "name": "/dev/vdc", "size": "10G", "type": "disk", "uuid": ""}}} TASK [Read the /etc/fstab file for volume existence] *************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:19 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/fstab"], "delta": "0:00:00.003564", "end": "2020-10-31 12:41:17.440596", "rc": 0, "start": "2020-10-31 12:41:17.437032", "stderr": "", "stderr_lines": [], "stdout": "\n#\n# /etc/fstab\n# Created by anaconda on Sat Oct 31 08:17:58 2020\n#\n# Accessible filesystems, by reference, are maintained under '/dev/disk/'.\n# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.\n#\n# After editing this file, run 'systemctl daemon-reload' to update systemd\n# units generated from this file.\n#\nUUID=03e702b4-e165-4a39-88c9-9e210cd00434 / ext4 defaults 1 1\n/dev/mapper/foo-test1 /opt/test2 xfs defaults 0 0", "stdout_lines": ["", "#", "# /etc/fstab", "# Created by anaconda on Sat Oct 31 08:17:58 2020", "#", "# Accessible filesystems, by reference, are maintained under '/dev/disk/'.", "# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.", "#", "# After editing this file, run 'systemctl daemon-reload' to update systemd", "# units generated from this file.", "#", "UUID=03e702b4-e165-4a39-88c9-9e210cd00434 / ext4 defaults 1 1", "/dev/mapper/foo-test1 /opt/test2 xfs defaults 0 0"]} TASK [Read the /etc/crypttab file] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/crypttab"], "delta": "0:00:00.003352", "end": "2020-10-31 12:41:17.802335", "rc": 0, "start": "2020-10-31 12:41:17.798983", "stderr": "", "stderr_lines": [], "stdout": "\nluks-6a08ad58-5b45-4b33-a701-4dae20e6b1c3 /dev/vda -", "stdout_lines": ["", "luks-6a08ad58-5b45-4b33-a701-4dae20e6b1c3 /dev/vda -"]} TASK [Verify the volumes listed in storage_pools were correctly managed] ******* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:32 [WARNING]: The loop variable 'storage_test_pool' is already in use. You should set the `loop_var` value in the `loop_control` option for the task to something else to avoid variable collisions and unexpected behavior. included: /tmp/tmp7ksfxpzz/tests/test-verify-pool.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool.yml:5 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pool_tests": ["members", "volumes"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool.yml:17 included: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-pool-volumes.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:1 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_count": "1", "_storage_test_pool_pvs": [], "_storage_test_pool_pvs_lvm": ["/dev/mapper/luks-6a08ad58-5b45-4b33-a701-4dae20e6b1c3"]}, "changed": false} TASK [Get the canonical device path for each member device] ******************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:7 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=/dev/mapper/luks-6a08ad58-5b45-4b33-a701-4dae20e6b1c3) => {"ansible_loop_var": "pv", "changed": false, "device": "/dev/mapper/luks-6a08ad58-5b45-4b33-a701-4dae20e6b1c3", "pv": "/dev/mapper/luks-6a08ad58-5b45-4b33-a701-4dae20e6b1c3"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:16 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=/dev/mapper/luks-6a08ad58-5b45-4b33-a701-4dae20e6b1c3) => {"ansible_facts": {"_storage_test_pool_pvs": ["/dev/mapper/luks-6a08ad58-5b45-4b33-a701-4dae20e6b1c3"]}, "ansible_index_var": "idx", "ansible_loop_var": "item", "changed": false, "idx": 0, "item": "/dev/mapper/luks-6a08ad58-5b45-4b33-a701-4dae20e6b1c3"} TASK [Verify PV count] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:23 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:29 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_type": "crypt"}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:33 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check the type of each PV] *********************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:41 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=/dev/mapper/luks-6a08ad58-5b45-4b33-a701-4dae20e6b1c3) => { "ansible_loop_var": "pv", "changed": false, "msg": "All assertions passed", "pv": "/dev/mapper/luks-6a08ad58-5b45-4b33-a701-4dae20e6b1c3" } TASK [Check raid] ************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:50 included: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [get information about RAID] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:6 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:12 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:16 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:20 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID active devices count] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:24 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID spare devices count] ****************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:30 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID metadata version] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:36 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:44 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_md_active_devices_re": null, "storage_test_md_metadata_version_re": null, "storage_test_md_spare_devices_re": null}, "changed": false} TASK [Check member encryption] ************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:53 included: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_crypttab_entries": "1", "_storage_test_expected_crypttab_key_file": "-"}, "changed": false} TASK [Validate pool member LUKS settings] ************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:8 included: /tmp/tmp7ksfxpzz/tests/verify-pool-member-encryption.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Get the backing device path] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-encryption.yml:1 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/disk/by-uuid/6a08ad58-5b45-4b33-a701-4dae20e6b1c3"], "delta": "0:00:00.003553", "end": "2020-10-31 12:41:19.453729", "rc": 0, "start": "2020-10-31 12:41:19.450176", "stderr": "", "stderr_lines": [], "stdout": "/dev/vda", "stdout_lines": ["/dev/vda"]} TASK [Collect LUKS info for this member] *************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-encryption.yml:6 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["cryptsetup", "luksDump", "/dev/vda"], "delta": "0:00:00.011069", "end": "2020-10-31 12:41:19.824806", "rc": 0, "start": "2020-10-31 12:41:19.813737", "stderr": "", "stderr_lines": [], "stdout": "LUKS header information for /dev/vda\n\nVersion: \t1\nCipher name: \tserpent\nCipher mode: \txts-plain64\nHash spec: \tsha256\nPayload offset:\t4096\nMK bits: \t512\nMK digest: \t3c dd 32 57 ed 3f d9 0c 91 ad 98 d0 a1 21 0a 6a 14 78 21 68 \nMK salt: \te0 10 1f bd 4d 89 62 06 7a e1 f7 c8 62 a4 7b 08 \n \teb 09 1b 74 07 c6 ac f9 27 4c 6f ff 08 cf c7 ea \nMK iterations: \t119591\nUUID: \t6a08ad58-5b45-4b33-a701-4dae20e6b1c3\n\nKey Slot 0: ENABLED\n\tIterations: \t1923992\n\tSalt: \t71 7c c2 ec 2b 50 37 8d ac c3 bf bf e6 73 cb 05 \n\t \t71 0c 67 b3 2c f0 93 40 88 8c 71 69 20 48 cf 52 \n\tKey material offset:\t8\n\tAF stripes: \t4000\nKey Slot 1: DISABLED\nKey Slot 2: DISABLED\nKey Slot 3: DISABLED\nKey Slot 4: DISABLED\nKey Slot 5: DISABLED\nKey Slot 6: DISABLED\nKey Slot 7: DISABLED", "stdout_lines": ["LUKS header information for /dev/vda", "", "Version: \t1", "Cipher name: \tserpent", "Cipher mode: \txts-plain64", "Hash spec: \tsha256", "Payload offset:\t4096", "MK bits: \t512", "MK digest: \t3c dd 32 57 ed 3f d9 0c 91 ad 98 d0 a1 21 0a 6a 14 78 21 68 ", "MK salt: \te0 10 1f bd 4d 89 62 06 7a e1 f7 c8 62 a4 7b 08 ", " \teb 09 1b 74 07 c6 ac f9 27 4c 6f ff 08 cf c7 ea ", "MK iterations: \t119591", "UUID: \t6a08ad58-5b45-4b33-a701-4dae20e6b1c3", "", "Key Slot 0: ENABLED", "\tIterations: \t1923992", "\tSalt: \t71 7c c2 ec 2b 50 37 8d ac c3 bf bf e6 73 cb 05 ", "\t \t71 0c 67 b3 2c f0 93 40 88 8c 71 69 20 48 cf 52 ", "\tKey material offset:\t8", "\tAF stripes: \t4000", "Key Slot 1: DISABLED", "Key Slot 2: DISABLED", "Key Slot 3: DISABLED", "Key Slot 4: DISABLED", "Key Slot 5: DISABLED", "Key Slot 6: DISABLED", "Key Slot 7: DISABLED"]} TASK [Check LUKS version] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-encryption.yml:12 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS key size] ***************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-encryption.yml:18 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS cipher] ******************************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-encryption.yml:24 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Validate pool member crypttab entries] *********************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:15 included: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:1 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": ["luks-6a08ad58-5b45-4b33-a701-4dae20e6b1c3 /dev/vda -"]}, "changed": false} TASK [Check for /etc/crypttab entry] ******************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Validate the format of the crypttab entry] ******************************* task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:9 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Check backing device of crypttab entry] ********************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:15 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check key file of crypttab entry] **************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:21 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:27 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:22 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null, "_storage_test_crypttab_key_file": null}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:56 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_count": null, "_storage_test_expected_pv_type": null, "_storage_test_pool_pvs": [], "_storage_test_pool_pvs_lvm": []}, "changed": false} TASK [verify the volumes] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-volumes.yml:3 [WARNING]: The loop variable 'storage_test_volume' is already in use. You should set the `loop_var` value in the `loop_control` option for the task to something else to avoid variable collisions and unexpected behavior. included: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": true, "_storage_volume_tests": ["mount", "fstab", "fs", "device", "encryption", "md", "size"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:10 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Get expected mount device based on device type] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/foo-test1"}, "changed": false} TASK [Set some facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [{"block_available": 1030454, "block_size": 4096, "block_total": 1046016, "block_used": 15562, "device": "/dev/mapper/foo-test1", "fstype": "xfs", "inode_available": 2097148, "inode_total": 2097152, "inode_used": 4, "mount": "/opt/test2", "options": "rw,seclabel,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota", "size_available": 4220739584, "size_total": 4284481536, "uuid": "26cdf339-ea86-488d-a99a-649048472a63"}], "storage_test_mount_expected_match_count": "1", "storage_test_mount_point_matches": [{"block_available": 1030454, "block_size": 4096, "block_total": 1046016, "block_used": 15562, "device": "/dev/mapper/foo-test1", "fstype": "xfs", "inode_available": 2097148, "inode_total": 2097152, "inode_used": 4, "mount": "/opt/test2", "options": "rw,seclabel,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota", "size_available": 4220739584, "size_total": 4284481536, "uuid": "26cdf339-ea86-488d-a99a-649048472a63"}], "storage_test_swap_expected_matches": "0"}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:22 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:31 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:39 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [command] ***************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Gather swap info] ******************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:52 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify swap status] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:57 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Unset facts] ************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:67 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null, "storage_test_swap_expected_matches": null, "storage_test_swaps": null, "storage_test_sys_node": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": "1", "storage_test_fstab_expected_mount_point_matches": "1", "storage_test_fstab_id_matches": ["/dev/mapper/foo-test1 "], "storage_test_fstab_mount_point_matches": [" /opt/test2 "]}, "changed": false} TASK [Verify that the device identifier appears in /etc/fstab] ***************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:17 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": null, "storage_test_fstab_expected_mount_point_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [Verify fs type] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify fs label] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [See whether the device node is present] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "stat": {"atime": 1604148050.2007933, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "ctime": 1604148050.2007933, "dev": 5, "device_type": 64769, "executable": false, "exists": true, "gid": 6, "gr_name": "disk", "inode": 88762, "isblk": true, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mimetype": "inode/symlink", "mode": "0660", "mtime": 1604148050.2007933, "nlink": 1, "path": "/dev/mapper/foo-test1", "pw_name": "root", "readable": true, "rgrp": true, "roth": false, "rusr": true, "size": 0, "uid": 0, "version": null, "wgrp": true, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}} TASK [Verify the presence/absence of the device node] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "lvm"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:28 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:33 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Stat the LUKS device, if encrypted] ************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:3 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Collect LUKS info for this volume] *************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:10 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the presence/absence of the LUKS device node] ********************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:16 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify that the raw device is the same as the device if not encrypted] *** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:25 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about the LUKS volume if encrypted] **************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the LUKS volume's device type if encrypted] *********************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS version] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:42 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS key size] ***************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS cipher] ******************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:54 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:60 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": [], "_storage_test_expected_crypttab_entries": "0", "_storage_test_expected_crypttab_key_file": "-"}, "changed": false} TASK [Check for /etc/crypttab entry] ******************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:65 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Validate the format of the crypttab entry] ******************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:70 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check backing device of crypttab entry] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:76 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check key file of crypttab entry] **************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:82 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:88 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null, "_storage_test_expected_crypttab_entries": null, "_storage_test_expected_crypttab_key_file": null}, "changed": false} TASK [get information about RAID] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:7 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:13 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:17 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID active devices count] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:25 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID spare devices count] ****************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID metadata version] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [parse the actual size of the volume] ************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:3 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"bytes": 4294967296, "changed": false, "lvm": "4g", "parted": "4GiB", "size": "4 GiB"} TASK [parse the requested size of the volume] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:9 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"bytes": 4294967296, "changed": false, "lvm": "4g", "parted": "4GiB", "size": "4 GiB"} TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:15 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_actual_size": { "bytes": 4294967296, "changed": false, "failed": false, "lvm": "4g", "parted": "4GiB", "size": "4 GiB" } } TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_requested_size": { "bytes": 4294967296, "changed": false, "failed": false, "lvm": "4g", "parted": "4GiB", "size": "4 GiB" } } TASK [assert] ****************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:21 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:16 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:39 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_pool": null}, "changed": false} TASK [Verify the volumes with no pool were correctly managed] ****************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:46 TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:56 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_blkinfo": null, "storage_test_crypttab": null, "storage_test_fstab": null, "storage_test_volume": null}, "changed": false} TASK [Clean up] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_luks_pool.yml:239 TASK [linux-system-roles.storage : Set version specific variables] ************* task path: /tmp/tmp7ksfxpzz/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-crypto", "libblockdev-dm", "libblockdev-lvm", "libblockdev-mdraid", "libblockdev-swap"]}, "ansible_included_var_files": ["/tmp/tmp7ksfxpzz/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.storage : define an empty list of pools to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : define an empty list of volumes to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : include the appropriate provider tasks] ***** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:22 included: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [linux-system-roles.storage : get a list of rpm packages installed on host machine] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : make sure blivet is available] ************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: python3-blivet", "Installed: libblockdev-crypto", "Installed: libblockdev-dm", "Installed: libblockdev-lvm", "Installed: libblockdev-mdraid", "Installed: libblockdev-swap"]} TASK [linux-system-roles.storage : initialize internal facts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools": [], "_storage_vol_defaults": [], "_storage_vol_pools": [], "_storage_vols_no_defaults": [], "_storage_vols_no_defaults_by_pool": {}, "_storage_vols_w_defaults": [], "_storage_volumes": []}, "changed": false} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [1/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:28 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [2/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:36 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [3/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:44 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [4/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:52 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [5/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:61 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [6/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:72 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'state': u'absent', u'disks': [u'vda'], u'type': u'disk', u'name': u'foo'}) => {"ansible_facts": {"_storage_volumes": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "absent", "type": "disk"}]}, "ansible_loop_var": "volume", "changed": false, "volume": {"disks": ["vda"], "name": "foo", "state": "absent", "type": "disk"}} TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools": [] } TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "absent", "type": "disk" } ] } TASK [linux-system-roles.storage : get required packages] ********************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": []} TASK [linux-system-roles.storage : make sure required packages are installed] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [linux-system-roles.storage : manage the pools and volumes to match the specified state] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:104 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [{"action": "destroy format", "device": "/dev/mapper/foo-test1", "fs_type": "xfs"}, {"action": "destroy device", "device": "/dev/mapper/foo-test1", "fs_type": null}, {"action": "destroy device", "device": "/dev/foo", "fs_type": null}, {"action": "destroy format", "device": "/dev/mapper/luks-6a08ad58-5b45-4b33-a701-4dae20e6b1c3", "fs_type": "lvmpv"}, {"action": "destroy device", "device": "/dev/mapper/luks-6a08ad58-5b45-4b33-a701-4dae20e6b1c3", "fs_type": null}, {"action": "destroy format", "device": "/dev/vda", "fs_type": "luks"}], "changed": true, "crypts": [{"backing_device": "/dev/vda", "name": "luks-6a08ad58-5b45-4b33-a701-4dae20e6b1c3", "password": "-", "state": "absent"}], "leaves": ["/dev/sda1", "/dev/sr0", "/dev/vda", "/dev/vdb", "/dev/vdc"], "mounts": [{"fstype": "xfs", "path": "/opt/test2", "src": "/dev/mapper/foo-test1", "state": "absent"}], "packages": ["e2fsprogs"], "pools": [], "volumes": [{"_device": "/dev/mapper/luks-6a08ad58-5b45-4b33-a701-4dae20e6b1c3", "_mount_id": "/dev/mapper/luks-6a08ad58-5b45-4b33-a701-4dae20e6b1c3", "_raw_device": "/dev/vda", "disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "absent", "type": "disk"}]} TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:114 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "blivet_output": { "actions": [ { "action": "destroy format", "device": "/dev/mapper/foo-test1", "fs_type": "xfs" }, { "action": "destroy device", "device": "/dev/mapper/foo-test1", "fs_type": null }, { "action": "destroy device", "device": "/dev/foo", "fs_type": null }, { "action": "destroy format", "device": "/dev/mapper/luks-6a08ad58-5b45-4b33-a701-4dae20e6b1c3", "fs_type": "lvmpv" }, { "action": "destroy device", "device": "/dev/mapper/luks-6a08ad58-5b45-4b33-a701-4dae20e6b1c3", "fs_type": null }, { "action": "destroy format", "device": "/dev/vda", "fs_type": "luks" } ], "changed": true, "crypts": [ { "backing_device": "/dev/vda", "name": "luks-6a08ad58-5b45-4b33-a701-4dae20e6b1c3", "password": "-", "state": "absent" } ], "failed": false, "leaves": [ "/dev/sda1", "/dev/sr0", "/dev/vda", "/dev/vdb", "/dev/vdc" ], "mounts": [ { "fstype": "xfs", "path": "/opt/test2", "src": "/dev/mapper/foo-test1", "state": "absent" } ], "packages": [ "e2fsprogs" ], "pools": [], "volumes": [ { "_device": "/dev/mapper/luks-6a08ad58-5b45-4b33-a701-4dae20e6b1c3", "_mount_id": "/dev/mapper/luks-6a08ad58-5b45-4b33-a701-4dae20e6b1c3", "_raw_device": "/dev/vda", "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "absent", "type": "disk" } ] } } TASK [linux-system-roles.storage : set the list of pools for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:117 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : set the list of volumes for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:121 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": [{"_device": "/dev/mapper/luks-6a08ad58-5b45-4b33-a701-4dae20e6b1c3", "_mount_id": "/dev/mapper/luks-6a08ad58-5b45-4b33-a701-4dae20e6b1c3", "_raw_device": "/dev/vda", "disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "absent", "type": "disk"}]}, "changed": false} TASK [linux-system-roles.storage : remove obsolete mounts] ********************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:137 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'src': u'/dev/mapper/foo-test1', u'state': u'absent', u'fstype': u'xfs', u'path': u'/opt/test2'}) => {"ansible_loop_var": "mount_info", "changed": true, "dump": "0", "fstab": "/etc/fstab", "fstype": "xfs", "mount_info": {"fstype": "xfs", "path": "/opt/test2", "src": "/dev/mapper/foo-test1", "state": "absent"}, "name": "/opt/test2", "opts": "defaults", "passno": "0", "src": "/dev/mapper/foo-test1"} TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:148 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [linux-system-roles.storage : set up new/current mounts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:153 TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:164 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [linux-system-roles.storage : Manage /etc/crypttab to account for changes we just made] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:172 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'state': u'absent', u'password': u'-', u'name': u'luks-6a08ad58-5b45-4b33-a701-4dae20e6b1c3', u'backing_device': u'/dev/vda'}) => {"ansible_loop_var": "entry", "backing_device": "/dev/vda", "changed": true, "entry": {"backing_device": "/dev/vda", "name": "luks-6a08ad58-5b45-4b33-a701-4dae20e6b1c3", "password": "-", "state": "absent"}, "gid": 0, "group": "root", "mode": "0600", "msg": "removed line", "name": "luks-6a08ad58-5b45-4b33-a701-4dae20e6b1c3", "opts": null, "owner": "root", "password": "-", "path": "/etc/crypttab", "secontext": "system_u:object_r:etc_t:s0", "size": 1, "state": "file", "uid": 0, "warnings": ["Module did not set no_log for password"]} TASK [linux-system-roles.storage : Update facts] ******************************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:187 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_luks_pool.yml:249 included: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Print out pool information] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:1 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {} TASK [Print out volume information] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:6 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes_list": [ { "_device": "/dev/mapper/luks-6a08ad58-5b45-4b33-a701-4dae20e6b1c3", "_mount_id": "/dev/mapper/luks-6a08ad58-5b45-4b33-a701-4dae20e6b1c3", "_raw_device": "/dev/vda", "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "absent", "type": "disk" } ] } TASK [Collect info about the volumes.] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "info": {"/dev/sda": {"fstype": "", "label": "", "name": "/dev/sda", "size": "4G", "type": "disk", "uuid": ""}, "/dev/sda1": {"fstype": "ext4", "label": "", "name": "/dev/sda1", "size": "4G", "type": "partition", "uuid": "03e702b4-e165-4a39-88c9-9e210cd00434"}, "/dev/sr0": {"fstype": "iso9660", "label": "cidata", "name": "/dev/sr0", "size": "364K", "type": "rom", "uuid": "2020-10-31-12-37-34-00"}, "/dev/vda": {"fstype": "", "label": "", "name": "/dev/vda", "size": "10G", "type": "disk", "uuid": ""}, "/dev/vdb": {"fstype": "", "label": "", "name": "/dev/vdb", "size": "10G", "type": "disk", "uuid": ""}, "/dev/vdc": {"fstype": "", "label": "", "name": "/dev/vdc", "size": "10G", "type": "disk", "uuid": ""}}} TASK [Read the /etc/fstab file for volume existence] *************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:19 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/fstab"], "delta": "0:00:00.002879", "end": "2020-10-31 12:41:41.782094", "rc": 0, "start": "2020-10-31 12:41:41.779215", "stderr": "", "stderr_lines": [], "stdout": "\n#\n# /etc/fstab\n# Created by anaconda on Sat Oct 31 08:17:58 2020\n#\n# Accessible filesystems, by reference, are maintained under '/dev/disk/'.\n# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.\n#\n# After editing this file, run 'systemctl daemon-reload' to update systemd\n# units generated from this file.\n#\nUUID=03e702b4-e165-4a39-88c9-9e210cd00434 / ext4 defaults 1 1", "stdout_lines": ["", "#", "# /etc/fstab", "# Created by anaconda on Sat Oct 31 08:17:58 2020", "#", "# Accessible filesystems, by reference, are maintained under '/dev/disk/'.", "# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.", "#", "# After editing this file, run 'systemctl daemon-reload' to update systemd", "# units generated from this file.", "#", "UUID=03e702b4-e165-4a39-88c9-9e210cd00434 / ext4 defaults 1 1"]} TASK [Read the /etc/crypttab file] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/crypttab"], "delta": "0:00:00.003022", "end": "2020-10-31 12:41:42.135214", "rc": 0, "start": "2020-10-31 12:41:42.132192", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Verify the volumes listed in storage_pools were correctly managed] ******* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:32 TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:39 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_pool": null}, "changed": false} TASK [Verify the volumes with no pool were correctly managed] ****************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:46 [WARNING]: The loop variable 'storage_test_volume' is already in use. You should set the `loop_var` value in the `loop_control` option for the task to something else to avoid variable collisions and unexpected behavior. included: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": false, "_storage_volume_tests": ["mount", "fstab", "fs", "device", "encryption", "md", "size"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:10 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Get expected mount device based on device type] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/luks-6a08ad58-5b45-4b33-a701-4dae20e6b1c3"}, "changed": false} TASK [Set some facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [], "storage_test_mount_expected_match_count": "0", "storage_test_mount_point_matches": [], "storage_test_swap_expected_matches": "0"}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:22 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:31 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:39 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [command] ***************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Gather swap info] ******************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:52 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify swap status] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:57 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Unset facts] ************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:67 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null, "storage_test_swap_expected_matches": null, "storage_test_swaps": null, "storage_test_sys_node": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": "0", "storage_test_fstab_expected_mount_point_matches": "0", "storage_test_fstab_id_matches": [], "storage_test_fstab_mount_point_matches": []}, "changed": false} TASK [Verify that the device identifier appears in /etc/fstab] ***************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:10 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:17 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": null, "storage_test_fstab_expected_mount_point_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [Verify fs type] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:4 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify fs label] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:10 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [See whether the device node is present] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "stat": {"atime": 1604148097.1087933, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "ctime": 1604148097.1087933, "dev": 5, "device_type": 64512, "executable": false, "exists": true, "gid": 6, "gr_name": "disk", "inode": 1726, "isblk": true, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mimetype": "inode/blockdevice", "mode": "0660", "mtime": 1604148097.1087933, "nlink": 1, "path": "/dev/vda", "pw_name": "root", "readable": true, "rgrp": true, "roth": false, "rusr": true, "size": 0, "uid": 0, "version": null, "wgrp": true, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}} TASK [Verify the presence/absence of the device node] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:18 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "disk"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:28 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:33 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Stat the LUKS device, if encrypted] ************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:3 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Collect LUKS info for this volume] *************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:10 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the presence/absence of the LUKS device node] ********************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:16 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify that the raw device is the same as the device if not encrypted] *** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:25 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Make sure we got info about the LUKS volume if encrypted] **************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the LUKS volume's device type if encrypted] *********************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS version] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:42 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS key size] ***************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS cipher] ******************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:54 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:60 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": [], "_storage_test_expected_crypttab_entries": "0", "_storage_test_expected_crypttab_key_file": "-"}, "changed": false} TASK [Check for /etc/crypttab entry] ******************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:65 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Validate the format of the crypttab entry] ******************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:70 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check backing device of crypttab entry] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:76 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check key file of crypttab entry] **************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:82 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:88 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null, "_storage_test_expected_crypttab_entries": null, "_storage_test_expected_crypttab_key_file": null}, "changed": false} TASK [get information about RAID] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:7 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:13 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:17 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID active devices count] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:25 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID spare devices count] ****************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID metadata version] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [parse the actual size of the volume] ************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:3 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [parse the requested size of the volume] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:9 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:15 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_actual_size": { "changed": false, "skip_reason": "Conditional result was False", "skipped": true } } TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_requested_size": { "changed": false, "skip_reason": "Conditional result was False", "skipped": true } } TASK [assert] ****************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Clean up facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:16 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:56 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_blkinfo": null, "storage_test_crypttab": null, "storage_test_fstab": null, "storage_test_volume": null}, "changed": false} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 : ok=505 changed=24 unreachable=0 failed=0 skipped=216 rescued=3 ignored=0 + cd /tmp/tmp7ksfxpzz/tests; TEST_SUBJECTS=/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_storage-178-e856157-fedora-31-87qzp9iq/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmp7ksfxpzz/_setup.yml /tmp/tmp7ksfxpzz/tests/tests_lvm_errors.yml ansible-playbook 2.8.16 config file = /etc/ansible/ansible.cfg configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python2.7/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 2.7.5 (default, Apr 2 2020, 13:16:51) [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)] Using /etc/ansible/ansible.cfg as config file PLAYBOOK: _setup.yml *********************************************************** 1 plays in /tmp/tmp7ksfxpzz/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/_setup.yml:5 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "groups": { "all": [ "/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2" ], "localhost": [ "/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2" ], "subjects": [ "/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmp7ksfxpzz/_setup.yml:6 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 : ok=1 changed=0 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 PLAYBOOK: tests_lvm_errors.yml ************************************************* 1 plays in /tmp/tmp7ksfxpzz/tests/tests_lvm_errors.yml PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/tests_lvm_errors.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] META: ran handlers TASK [include_role : linux-system-roles.storage] ******************************* task path: /tmp/tmp7ksfxpzz/tests/tests_lvm_errors.yml:18 TASK [linux-system-roles.storage : Set version specific variables] ************* task path: /tmp/tmp7ksfxpzz/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-crypto", "libblockdev-dm", "libblockdev-lvm", "libblockdev-mdraid", "libblockdev-swap"]}, "ansible_included_var_files": ["/tmp/tmp7ksfxpzz/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.storage : define an empty list of pools to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : define an empty list of volumes to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : include the appropriate provider tasks] ***** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:22 included: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [linux-system-roles.storage : get a list of rpm packages installed on host machine] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : make sure blivet is available] ************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:7 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: python3-blivet", "Installed: libblockdev-crypto", "Installed: libblockdev-dm", "Installed: libblockdev-lvm", "Installed: libblockdev-mdraid", "Installed: libblockdev-swap", "Installed: libblockdev-2.24-2.fc31.x86_64", "Installed: libblockdev-btrfs-2.24-2.fc31.x86_64", "Installed: btrfs-progs-5.7-4.fc31.x86_64", "Installed: libblockdev-crypto-2.24-2.fc31.x86_64", "Installed: ndctl-70.1-1.fc31.x86_64", "Installed: gdisk-1.0.5-1.fc31.x86_64", "Installed: ndctl-libs-70.1-1.fc31.x86_64", "Installed: libblockdev-dm-2.24-2.fc31.x86_64", "Installed: compat-readline5-5.2-34.fc31.x86_64", "Installed: dmraid-1.0.0.rc16-43.fc31.x86_64", "Installed: dmraid-events-1.0.0.rc16-43.fc31.x86_64", "Installed: libblockdev-fs-2.24-2.fc31.x86_64", "Installed: mdadm-4.1-5.fc31.x86_64", "Installed: lzo-2.08-16.fc31.x86_64", "Installed: libblockdev-kbd-2.24-2.fc31.x86_64", "Installed: nspr-4.29.0-1.fc31.x86_64", "Installed: libblockdev-loop-2.24-2.fc31.x86_64", "Installed: nss-3.57.0-1.fc31.x86_64", "Installed: libblockdev-lvm-2.24-2.fc31.x86_64", "Installed: lsof-4.93.2-2.fc31.x86_64", "Installed: lvm2-2.03.09-1.fc31.x86_64", "Installed: nss-softokn-3.57.0-1.fc31.x86_64", "Installed: libblockdev-mdraid-2.24-2.fc31.x86_64", "Installed: nss-softokn-freebl-3.57.0-1.fc31.x86_64", "Installed: lvm2-libs-2.03.09-1.fc31.x86_64", "Installed: python3-gobject-base-3.34.0-3.fc31.x86_64", "Installed: libblockdev-mpath-2.24-2.fc31.x86_64", "Installed: nss-sysinit-3.57.0-1.fc31.x86_64", "Installed: device-mapper-event-1.02.171-1.fc31.x86_64", "Installed: nss-util-3.57.0-1.fc31.x86_64", "Installed: libblockdev-nvdimm-2.24-2.fc31.x86_64", "Installed: gobject-introspection-1.62.0-1.fc31.x86_64", "Installed: device-mapper-event-libs-1.02.171-1.fc31.x86_64", "Installed: userspace-rcu-0.11.1-2.fc31.x86_64", "Installed: libblockdev-part-2.24-2.fc31.x86_64", "Installed: volume_key-libs-0.3.12-4.fc31.x86_64", "Installed: libblockdev-swap-2.24-2.fc31.x86_64", "Installed: libblockdev-utils-2.24-2.fc31.x86_64", "Installed: blivet-data-1:3.1.7-2.fc31.noarch", "Installed: device-mapper-multipath-0.8.0-3.fc31.x86_64", "Installed: device-mapper-multipath-libs-0.8.0-3.fc31.x86_64", "Installed: device-mapper-persistent-data-0.8.5-2.fc31.x86_64", "Installed: sgpio-1.2.0.10-24.fc31.x86_64", "Installed: bcache-tools-1.0.8-16.fc31.x86_64", "Installed: python3-blivet-1:3.1.7-2.fc31.noarch", "Installed: daxctl-libs-70.1-1.fc31.x86_64", "Installed: python3-blockdev-2.24-2.fc31.x86_64", "Installed: python3-pyudev-0.21.0-11.fc31.noarch", "Installed: python3-pyparted-1:3.11.2-2.fc31.x86_64", "Installed: libbytesize-2.3-1.fc31.x86_64", "Installed: libaio-0.3.111-6.fc31.x86_64", "Installed: python3-bytesize-2.3-1.fc31.x86_64"]} TASK [linux-system-roles.storage : initialize internal facts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools": [], "_storage_vol_defaults": [], "_storage_vol_pools": [], "_storage_vols_no_defaults": [], "_storage_vols_no_defaults_by_pool": {}, "_storage_vols_w_defaults": [], "_storage_volumes": []}, "changed": false} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [1/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:28 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [2/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:36 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [3/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:44 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [4/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:52 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [5/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:61 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [6/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:72 TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools": [] } TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes": [] } TASK [linux-system-roles.storage : get required packages] ********************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": []} TASK [linux-system-roles.storage : make sure required packages are installed] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [linux-system-roles.storage : manage the pools and volumes to match the specified state] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:104 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": []} TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:114 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "blivet_output": { "actions": [], "changed": false, "crypts": [], "failed": false, "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": [] } } TASK [linux-system-roles.storage : set the list of pools for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:117 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : set the list of volumes for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:121 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : remove obsolete mounts] ********************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:137 TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:148 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : set up new/current mounts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:153 TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:164 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : Manage /etc/crypttab to account for changes we just made] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:172 TASK [linux-system-roles.storage : Update facts] ******************************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:187 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_lvm_errors.yml:21 included: /tmp/tmp7ksfxpzz/tests/get_unused_disk.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Find unused disks in the system] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/get_unused_disk.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "disks": ["vda"]} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/get_unused_disk.yml:8 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"unused_disks": ["vda"]}, "changed": false} TASK [Exit playbook when there's not enough unused disks in the system] ******** task path: /tmp/tmp7ksfxpzz/tests/get_unused_disk.yml:12 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Print unused disks] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/get_unused_disk.yml:17 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "unused_disks": [ "vda" ] } TASK [Try to create LVM with an invalid disk specification.] ******************* task path: /tmp/tmp7ksfxpzz/tests/tests_lvm_errors.yml:28 TASK [linux-system-roles.storage : Set version specific variables] ************* task path: /tmp/tmp7ksfxpzz/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-crypto", "libblockdev-dm", "libblockdev-lvm", "libblockdev-mdraid", "libblockdev-swap"]}, "ansible_included_var_files": ["/tmp/tmp7ksfxpzz/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.storage : define an empty list of pools to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : define an empty list of volumes to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : include the appropriate provider tasks] ***** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:22 included: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [linux-system-roles.storage : get a list of rpm packages installed on host machine] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : make sure blivet is available] ************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: python3-blivet", "Installed: libblockdev-crypto", "Installed: libblockdev-dm", "Installed: libblockdev-lvm", "Installed: libblockdev-mdraid", "Installed: libblockdev-swap"]} TASK [linux-system-roles.storage : initialize internal facts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools": [], "_storage_vol_defaults": [], "_storage_vol_pools": [], "_storage_vols_no_defaults": [], "_storage_vols_no_defaults_by_pool": {}, "_storage_vols_w_defaults": [], "_storage_volumes": []}, "changed": false} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [1/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:28 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'disks': [u'/non/existent/disk'], u'name': u'foo', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'5g'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["/non/existent/disk"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "5g"}]}]}, "ansible_loop_var": "pool", "changed": false, "pool": {"disks": ["/non/existent/disk"], "name": "foo", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "5g"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [2/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:36 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': None, u'encryption': False, u'disks': [u'/non/existent/disk'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'5g'}], u'type': u'lvm', u'encryption_key_size': None}, {u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'5g'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}], "_storage_vol_pools": ["foo"], "_storage_vols_no_defaults": [{"mount_point": "/opt/test1", "name": "test1", "size": "5g"}]}, "ansible_loop_var": "item", "changed": false, "item": [{"disks": ["/non/existent/disk"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "5g"}]}, {"mount_point": "/opt/test1", "name": "test1", "size": "5g"}]} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [3/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:44 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'5g'}, {u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'fs_label': u'', u'raid_level': None, u'mount_device_identifier': u'uuid', u'fs_type': u'xfs', u'mount_options': u'defaults', u'encryption_luks_version': None, u'raid_spare_count': None, u'size': 0, u'mount_point': u'', u'encryption_password': None, u'encryption': False, u'raid_chunk_size': None, u'raid_device_count': None, u'state': u'present', u'mount_check': 0, u'mount_passno': 0, u'fs_overwrite_existing': True, u'type': u'lvm', u'encryption_key_size': None, u'fs_create_options': u''}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "5g", "state": "present", "type": "lvm"}]}, "ansible_index_var": "idx", "ansible_loop_var": "item", "changed": false, "idx": 0, "item": [{"mount_point": "/opt/test1", "name": "test1", "size": "5g"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}]} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [4/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:52 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': None, u'encryption': False, u'disks': [u'/non/existent/disk'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'5g'}], u'type': u'lvm', u'encryption_key_size': None}) => {"ansible_facts": {"_storage_vols_no_defaults_by_pool": {"foo": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "5g", "state": "present", "type": "lvm"}]}}, "ansible_loop_var": "item", "changed": false, "item": {"disks": ["/non/existent/disk"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "5g"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [5/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:61 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': None, u'encryption': False, u'disks': [u'/non/existent/disk'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'5g'}], u'type': u'lvm', u'encryption_key_size': None}) => {"ansible_facts": {"_storage_pools": [{"disks": ["/non/existent/disk"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "5g", "state": "present", "type": "lvm"}]}]}, "ansible_index_var": "idx", "ansible_loop_var": "pool", "changed": false, "idx": 0, "pool": {"disks": ["/non/existent/disk"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "5g"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [6/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:72 TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools": [ { "disks": [ "/non/existent/disk" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [ { "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "5g", "state": "present", "type": "lvm" } ] } ] } TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes": [] } TASK [linux-system-roles.storage : get required packages] ********************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": ["lvm2", "xfsprogs"], "pools": [], "volumes": []} TASK [linux-system-roles.storage : make sure required packages are installed] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: lvm2", "Installed: xfsprogs"]} TASK [linux-system-roles.storage : manage the pools and volumes to match the specified state] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:104 fatal: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2]: FAILED! => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "msg": "unable to resolve any disks specified for pool 'foo' (['/non/existent/disk'])", "packages": [], "pools": [], "volumes": []} TASK [Check that we failed in the role] **************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_lvm_errors.yml:45 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Try to create LVM with an invalid size specification.] ******************* task path: /tmp/tmp7ksfxpzz/tests/tests_lvm_errors.yml:66 TASK [linux-system-roles.storage : Set version specific variables] ************* task path: /tmp/tmp7ksfxpzz/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-crypto", "libblockdev-dm", "libblockdev-lvm", "libblockdev-mdraid", "libblockdev-swap"]}, "ansible_included_var_files": ["/tmp/tmp7ksfxpzz/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.storage : define an empty list of pools to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : define an empty list of volumes to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : include the appropriate provider tasks] ***** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:22 included: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [linux-system-roles.storage : get a list of rpm packages installed on host machine] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : make sure blivet is available] ************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: python3-blivet", "Installed: libblockdev-crypto", "Installed: libblockdev-dm", "Installed: libblockdev-lvm", "Installed: libblockdev-mdraid", "Installed: libblockdev-swap"]} TASK [linux-system-roles.storage : initialize internal facts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools": [], "_storage_vol_defaults": [], "_storage_vol_pools": [], "_storage_vols_no_defaults": [], "_storage_vols_no_defaults_by_pool": {}, "_storage_vols_w_defaults": [], "_storage_volumes": []}, "changed": false} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [1/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:28 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'disks': [u'vda'], u'name': u'foo', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'xyz GiB'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "xyz GiB"}]}]}, "ansible_loop_var": "pool", "changed": false, "pool": {"disks": ["vda"], "name": "foo", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "xyz GiB"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [2/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:36 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'xyz GiB'}], u'type': u'lvm', u'encryption_key_size': None}, {u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'xyz GiB'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}], "_storage_vol_pools": ["foo"], "_storage_vols_no_defaults": [{"mount_point": "/opt/test1", "name": "test1", "size": "xyz GiB"}]}, "ansible_loop_var": "item", "changed": false, "item": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "xyz GiB"}]}, {"mount_point": "/opt/test1", "name": "test1", "size": "xyz GiB"}]} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [3/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:44 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'xyz GiB'}, {u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'fs_label': u'', u'raid_level': None, u'mount_device_identifier': u'uuid', u'fs_type': u'xfs', u'mount_options': u'defaults', u'encryption_luks_version': None, u'raid_spare_count': None, u'size': 0, u'mount_point': u'', u'encryption_password': None, u'encryption': False, u'raid_chunk_size': None, u'raid_device_count': None, u'state': u'present', u'mount_check': 0, u'mount_passno': 0, u'fs_overwrite_existing': True, u'type': u'lvm', u'encryption_key_size': None, u'fs_create_options': u''}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "xyz GiB", "state": "present", "type": "lvm"}]}, "ansible_index_var": "idx", "ansible_loop_var": "item", "changed": false, "idx": 0, "item": [{"mount_point": "/opt/test1", "name": "test1", "size": "xyz GiB"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}]} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [4/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:52 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'xyz GiB'}], u'type': u'lvm', u'encryption_key_size': None}) => {"ansible_facts": {"_storage_vols_no_defaults_by_pool": {"foo": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "xyz GiB", "state": "present", "type": "lvm"}]}}, "ansible_loop_var": "item", "changed": false, "item": {"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "xyz GiB"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [5/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:61 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'xyz GiB'}], u'type': u'lvm', u'encryption_key_size': None}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "xyz GiB", "state": "present", "type": "lvm"}]}]}, "ansible_index_var": "idx", "ansible_loop_var": "pool", "changed": false, "idx": 0, "pool": {"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "xyz GiB"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [6/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:72 TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [ { "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "xyz GiB", "state": "present", "type": "lvm" } ] } ] } TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes": [] } TASK [linux-system-roles.storage : get required packages] ********************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": ["lvm2", "xfsprogs"], "pools": [], "volumes": []} TASK [linux-system-roles.storage : make sure required packages are installed] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: lvm2", "Installed: xfsprogs"]} TASK [linux-system-roles.storage : manage the pools and volumes to match the specified state] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:104 fatal: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2]: FAILED! => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "msg": "invalid size 'xyz GiB' specified for volume 'test1'", "packages": [], "pools": [], "volumes": []} TASK [Check that we failed in the role] **************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_lvm_errors.yml:83 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Try to create LVM with a too-large volume size.] ************************* task path: /tmp/tmp7ksfxpzz/tests/tests_lvm_errors.yml:99 TASK [linux-system-roles.storage : Set version specific variables] ************* task path: /tmp/tmp7ksfxpzz/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-crypto", "libblockdev-dm", "libblockdev-lvm", "libblockdev-mdraid", "libblockdev-swap"]}, "ansible_included_var_files": ["/tmp/tmp7ksfxpzz/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.storage : define an empty list of pools to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : define an empty list of volumes to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : include the appropriate provider tasks] ***** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:22 included: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [linux-system-roles.storage : get a list of rpm packages installed on host machine] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : make sure blivet is available] ************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: python3-blivet", "Installed: libblockdev-crypto", "Installed: libblockdev-dm", "Installed: libblockdev-lvm", "Installed: libblockdev-mdraid", "Installed: libblockdev-swap"]} TASK [linux-system-roles.storage : initialize internal facts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools": [], "_storage_vol_defaults": [], "_storage_vol_pools": [], "_storage_vols_no_defaults": [], "_storage_vols_no_defaults_by_pool": {}, "_storage_vols_w_defaults": [], "_storage_volumes": []}, "changed": false} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [1/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:28 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'disks': [u'vda'], u'name': u'foo', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'10737418752'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "10737418752"}]}]}, "ansible_loop_var": "pool", "changed": false, "pool": {"disks": ["vda"], "name": "foo", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "10737418752"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [2/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:36 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'10737418752'}], u'type': u'lvm', u'encryption_key_size': None}, {u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'10737418752'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}], "_storage_vol_pools": ["foo"], "_storage_vols_no_defaults": [{"mount_point": "/opt/test1", "name": "test1", "size": "10737418752"}]}, "ansible_loop_var": "item", "changed": false, "item": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "10737418752"}]}, {"mount_point": "/opt/test1", "name": "test1", "size": "10737418752"}]} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [3/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:44 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'10737418752'}, {u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'fs_label': u'', u'raid_level': None, u'mount_device_identifier': u'uuid', u'fs_type': u'xfs', u'mount_options': u'defaults', u'encryption_luks_version': None, u'raid_spare_count': None, u'size': 0, u'mount_point': u'', u'encryption_password': None, u'encryption': False, u'raid_chunk_size': None, u'raid_device_count': None, u'state': u'present', u'mount_check': 0, u'mount_passno': 0, u'fs_overwrite_existing': True, u'type': u'lvm', u'encryption_key_size': None, u'fs_create_options': u''}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "10737418752", "state": "present", "type": "lvm"}]}, "ansible_index_var": "idx", "ansible_loop_var": "item", "changed": false, "idx": 0, "item": [{"mount_point": "/opt/test1", "name": "test1", "size": "10737418752"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}]} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [4/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:52 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'10737418752'}], u'type': u'lvm', u'encryption_key_size': None}) => {"ansible_facts": {"_storage_vols_no_defaults_by_pool": {"foo": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "10737418752", "state": "present", "type": "lvm"}]}}, "ansible_loop_var": "item", "changed": false, "item": {"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "10737418752"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [5/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:61 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'10737418752'}], u'type': u'lvm', u'encryption_key_size': None}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "10737418752", "state": "present", "type": "lvm"}]}]}, "ansible_index_var": "idx", "ansible_loop_var": "pool", "changed": false, "idx": 0, "pool": {"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "10737418752"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [6/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:72 TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [ { "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "10737418752", "state": "present", "type": "lvm" } ] } ] } TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes": [] } TASK [linux-system-roles.storage : get required packages] ********************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": ["lvm2", "xfsprogs"], "pools": [], "volumes": []} TASK [linux-system-roles.storage : make sure required packages are installed] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: lvm2", "Installed: xfsprogs"]} TASK [linux-system-roles.storage : manage the pools and volumes to match the specified state] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:104 fatal: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2]: FAILED! => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "msg": "specified size for volume '10 GiB' exceeds available space in pool 'foo' (10 GiB)", "packages": [], "pools": [], "volumes": []} TASK [Check that we failed in the role] **************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_lvm_errors.yml:116 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Try to create LVM pool with disks specified as non-list.] **************** task path: /tmp/tmp7ksfxpzz/tests/tests_lvm_errors.yml:132 TASK [linux-system-roles.storage : Set version specific variables] ************* task path: /tmp/tmp7ksfxpzz/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-crypto", "libblockdev-dm", "libblockdev-lvm", "libblockdev-mdraid", "libblockdev-swap"]}, "ansible_included_var_files": ["/tmp/tmp7ksfxpzz/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.storage : define an empty list of pools to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : define an empty list of volumes to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : include the appropriate provider tasks] ***** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:22 included: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [linux-system-roles.storage : get a list of rpm packages installed on host machine] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : make sure blivet is available] ************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: python3-blivet", "Installed: libblockdev-crypto", "Installed: libblockdev-dm", "Installed: libblockdev-lvm", "Installed: libblockdev-mdraid", "Installed: libblockdev-swap"]} TASK [linux-system-roles.storage : initialize internal facts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools": [], "_storage_vol_defaults": [], "_storage_vol_pools": [], "_storage_vols_no_defaults": [], "_storage_vols_no_defaults_by_pool": {}, "_storage_vols_w_defaults": [], "_storage_volumes": []}, "changed": false} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [1/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:28 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'disks': u'vda', u'name': u'foo', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'10737418752'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": "vda", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "10737418752"}]}]}, "ansible_loop_var": "pool", "changed": false, "pool": {"disks": "vda", "name": "foo", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "10737418752"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [2/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:36 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': None, u'encryption': False, u'disks': u'vda', u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'10737418752'}], u'type': u'lvm', u'encryption_key_size': None}, {u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'10737418752'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}], "_storage_vol_pools": ["foo"], "_storage_vols_no_defaults": [{"mount_point": "/opt/test1", "name": "test1", "size": "10737418752"}]}, "ansible_loop_var": "item", "changed": false, "item": [{"disks": "vda", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "10737418752"}]}, {"mount_point": "/opt/test1", "name": "test1", "size": "10737418752"}]} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [3/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:44 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'10737418752'}, {u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'fs_label': u'', u'raid_level': None, u'mount_device_identifier': u'uuid', u'fs_type': u'xfs', u'mount_options': u'defaults', u'encryption_luks_version': None, u'raid_spare_count': None, u'size': 0, u'mount_point': u'', u'encryption_password': None, u'encryption': False, u'raid_chunk_size': None, u'raid_device_count': None, u'state': u'present', u'mount_check': 0, u'mount_passno': 0, u'fs_overwrite_existing': True, u'type': u'lvm', u'encryption_key_size': None, u'fs_create_options': u''}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "10737418752", "state": "present", "type": "lvm"}]}, "ansible_index_var": "idx", "ansible_loop_var": "item", "changed": false, "idx": 0, "item": [{"mount_point": "/opt/test1", "name": "test1", "size": "10737418752"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}]} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [4/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:52 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': None, u'encryption': False, u'disks': u'vda', u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'10737418752'}], u'type': u'lvm', u'encryption_key_size': None}) => {"ansible_facts": {"_storage_vols_no_defaults_by_pool": {"foo": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "10737418752", "state": "present", "type": "lvm"}]}}, "ansible_loop_var": "item", "changed": false, "item": {"disks": "vda", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "10737418752"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [5/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:61 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': None, u'encryption': False, u'disks': u'vda', u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'10737418752'}], u'type': u'lvm', u'encryption_key_size': None}) => {"ansible_facts": {"_storage_pools": [{"disks": "vda", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "10737418752", "state": "present", "type": "lvm"}]}]}, "ansible_index_var": "idx", "ansible_loop_var": "pool", "changed": false, "idx": 0, "pool": {"disks": "vda", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "10737418752"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [6/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:72 TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools": [ { "disks": "vda", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [ { "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "10737418752", "state": "present", "type": "lvm" } ] } ] } TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes": [] } TASK [linux-system-roles.storage : get required packages] ********************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": ["lvm2", "xfsprogs"], "pools": [], "volumes": []} TASK [linux-system-roles.storage : make sure required packages are installed] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: lvm2", "Installed: xfsprogs"]} TASK [linux-system-roles.storage : manage the pools and volumes to match the specified state] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:104 fatal: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2]: FAILED! => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "msg": "pool disks must be specified as a list", "packages": [], "pools": [], "volumes": []} TASK [Check that we failed in the role] **************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_lvm_errors.yml:149 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Try to create LVM pool with no disks specified.] ************************* task path: /tmp/tmp7ksfxpzz/tests/tests_lvm_errors.yml:165 TASK [linux-system-roles.storage : Set version specific variables] ************* task path: /tmp/tmp7ksfxpzz/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-crypto", "libblockdev-dm", "libblockdev-lvm", "libblockdev-mdraid", "libblockdev-swap"]}, "ansible_included_var_files": ["/tmp/tmp7ksfxpzz/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.storage : define an empty list of pools to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : define an empty list of volumes to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : include the appropriate provider tasks] ***** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:22 included: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [linux-system-roles.storage : get a list of rpm packages installed on host machine] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : make sure blivet is available] ************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: python3-blivet", "Installed: libblockdev-crypto", "Installed: libblockdev-dm", "Installed: libblockdev-lvm", "Installed: libblockdev-mdraid", "Installed: libblockdev-swap"]} TASK [linux-system-roles.storage : initialize internal facts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools": [], "_storage_vol_defaults": [], "_storage_vol_pools": [], "_storage_vols_no_defaults": [], "_storage_vols_no_defaults_by_pool": {}, "_storage_vols_w_defaults": [], "_storage_volumes": []}, "changed": false} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [1/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:28 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'disks': [], u'name': u'foo', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'10737418752'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": [], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "10737418752"}]}]}, "ansible_loop_var": "pool", "changed": false, "pool": {"disks": [], "name": "foo", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "10737418752"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [2/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:36 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': None, u'encryption': False, u'disks': [], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'10737418752'}], u'type': u'lvm', u'encryption_key_size': None}, {u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'10737418752'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}], "_storage_vol_pools": ["foo"], "_storage_vols_no_defaults": [{"mount_point": "/opt/test1", "name": "test1", "size": "10737418752"}]}, "ansible_loop_var": "item", "changed": false, "item": [{"disks": [], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "10737418752"}]}, {"mount_point": "/opt/test1", "name": "test1", "size": "10737418752"}]} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [3/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:44 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'10737418752'}, {u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'fs_label': u'', u'raid_level': None, u'mount_device_identifier': u'uuid', u'fs_type': u'xfs', u'mount_options': u'defaults', u'encryption_luks_version': None, u'raid_spare_count': None, u'size': 0, u'mount_point': u'', u'encryption_password': None, u'encryption': False, u'raid_chunk_size': None, u'raid_device_count': None, u'state': u'present', u'mount_check': 0, u'mount_passno': 0, u'fs_overwrite_existing': True, u'type': u'lvm', u'encryption_key_size': None, u'fs_create_options': u''}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "10737418752", "state": "present", "type": "lvm"}]}, "ansible_index_var": "idx", "ansible_loop_var": "item", "changed": false, "idx": 0, "item": [{"mount_point": "/opt/test1", "name": "test1", "size": "10737418752"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}]} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [4/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:52 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': None, u'encryption': False, u'disks': [], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'10737418752'}], u'type': u'lvm', u'encryption_key_size': None}) => {"ansible_facts": {"_storage_vols_no_defaults_by_pool": {"foo": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "10737418752", "state": "present", "type": "lvm"}]}}, "ansible_loop_var": "item", "changed": false, "item": {"disks": [], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "10737418752"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [5/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:61 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': None, u'encryption': False, u'disks': [], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'10737418752'}], u'type': u'lvm', u'encryption_key_size': None}) => {"ansible_facts": {"_storage_pools": [{"disks": [], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "10737418752", "state": "present", "type": "lvm"}]}]}, "ansible_index_var": "idx", "ansible_loop_var": "pool", "changed": false, "idx": 0, "pool": {"disks": [], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "10737418752"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [6/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:72 TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools": [ { "disks": [], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [ { "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "10737418752", "state": "present", "type": "lvm" } ] } ] } TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes": [] } TASK [linux-system-roles.storage : get required packages] ********************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": ["lvm2", "xfsprogs"], "pools": [], "volumes": []} TASK [linux-system-roles.storage : make sure required packages are installed] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: lvm2", "Installed: xfsprogs"]} TASK [linux-system-roles.storage : manage the pools and volumes to match the specified state] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:104 fatal: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2]: FAILED! => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "msg": "no disks specified for pool 'foo'", "packages": [], "pools": [], "volumes": []} TASK [Check that we failed in the role] **************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_lvm_errors.yml:182 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Try to create LVM volume from outside of any pool.] ********************** task path: /tmp/tmp7ksfxpzz/tests/tests_lvm_errors.yml:198 TASK [linux-system-roles.storage : Set version specific variables] ************* task path: /tmp/tmp7ksfxpzz/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-crypto", "libblockdev-dm", "libblockdev-lvm", "libblockdev-mdraid", "libblockdev-swap"]}, "ansible_included_var_files": ["/tmp/tmp7ksfxpzz/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.storage : define an empty list of pools to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : define an empty list of volumes to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : include the appropriate provider tasks] ***** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:22 included: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [linux-system-roles.storage : get a list of rpm packages installed on host machine] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : make sure blivet is available] ************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: python3-blivet", "Installed: libblockdev-crypto", "Installed: libblockdev-dm", "Installed: libblockdev-lvm", "Installed: libblockdev-mdraid", "Installed: libblockdev-swap"]} TASK [linux-system-roles.storage : initialize internal facts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools": [], "_storage_vol_defaults": [], "_storage_vol_pools": [], "_storage_vols_no_defaults": [], "_storage_vols_no_defaults_by_pool": {}, "_storage_vols_w_defaults": [], "_storage_volumes": []}, "changed": false} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [1/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:28 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [2/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:36 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [3/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:44 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [4/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:52 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [5/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:61 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [6/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:72 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'size': u'5g', u'mount_point': u'/opt/test1', u'type': u'lvm', u'disks': [], u'name': u'test1'}) => {"ansible_facts": {"_storage_volumes": [{"disks": [], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "5g", "state": "present", "type": "lvm"}]}, "ansible_loop_var": "volume", "changed": false, "volume": {"disks": [], "mount_point": "/opt/test1", "name": "test1", "size": "5g", "type": "lvm"}} TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools": [] } TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes": [ { "disks": [], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "5g", "state": "present", "type": "lvm" } ] } TASK [linux-system-roles.storage : get required packages] ********************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": ["lvm2", "xfsprogs"], "pools": [], "volumes": []} TASK [linux-system-roles.storage : make sure required packages are installed] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: lvm2", "Installed: xfsprogs"]} TASK [linux-system-roles.storage : manage the pools and volumes to match the specified state] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:104 fatal: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2]: FAILED! => {"changed": false, "module_stderr": "Shared connection to 127.0.0.3 closed.\r\n", "module_stdout": "/root/.ansible/tmp/ansible-tmp-1604148244.13-259046-96456927904497/AnsiballZ_blivet.py:18: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses\r\n import imp\r\nTraceback (most recent call last):\r\n File \"/root/.ansible/tmp/ansible-tmp-1604148244.13-259046-96456927904497/AnsiballZ_blivet.py\", line 114, in \r\n _ansiballz_main()\r\n File \"/root/.ansible/tmp/ansible-tmp-1604148244.13-259046-96456927904497/AnsiballZ_blivet.py\", line 106, in _ansiballz_main\r\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\r\n File \"/root/.ansible/tmp/ansible-tmp-1604148244.13-259046-96456927904497/AnsiballZ_blivet.py\", line 49, in invoke_module\r\n imp.load_module('__main__', mod, module, MOD_DESC)\r\n File \"/usr/lib64/python3.7/imp.py\", line 234, in load_module\r\n return load_source(name, filename, file)\r\n File \"/usr/lib64/python3.7/imp.py\", line 169, in load_source\r\n module = _exec(spec, sys.modules[name])\r\n File \"\", line 630, in _exec\r\n File \"\", line 728, in exec_module\r\n File \"\", line 219, in _call_with_frames_removed\r\n File \"/tmp/ansible_blivet_payload_dx63ivlj/__main__.py\", line 1265, in \r\n File \"/tmp/ansible_blivet_payload_dx63ivlj/__main__.py\", line 1262, in main\r\n File \"/tmp/ansible_blivet_payload_dx63ivlj/__main__.py\", line 1225, in run_module\r\n File \"/tmp/ansible_blivet_payload_dx63ivlj/__main__.py\", line 938, in manage_volume\r\n File \"/tmp/ansible_blivet_payload_dx63ivlj/__main__.py\", line 424, in manage\r\n File \"/tmp/ansible_blivet_payload_dx63ivlj/__main__.py\", line 319, in _look_up_device\r\n File \"/tmp/ansible_blivet_payload_dx63ivlj/__main__.py\", line 536, in _get_device_id\r\nAttributeError: 'NoneType' object has no attribute '_device'\r\n", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1} TASK [Check that we failed in the role] **************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_lvm_errors.yml:214 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Try to create two pools w/ the same name] ******************************** task path: /tmp/tmp7ksfxpzz/tests/tests_lvm_errors.yml:230 TASK [linux-system-roles.storage : Set version specific variables] ************* task path: /tmp/tmp7ksfxpzz/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-crypto", "libblockdev-dm", "libblockdev-lvm", "libblockdev-mdraid", "libblockdev-swap"]}, "ansible_included_var_files": ["/tmp/tmp7ksfxpzz/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.storage : define an empty list of pools to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : define an empty list of volumes to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : include the appropriate provider tasks] ***** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:22 included: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [linux-system-roles.storage : get a list of rpm packages installed on host machine] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : make sure blivet is available] ************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: python3-blivet", "Installed: libblockdev-crypto", "Installed: libblockdev-dm", "Installed: libblockdev-lvm", "Installed: libblockdev-mdraid", "Installed: libblockdev-swap"]} TASK [linux-system-roles.storage : initialize internal facts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools": [], "_storage_vol_defaults": [], "_storage_vol_pools": [], "_storage_vols_no_defaults": [], "_storage_vols_no_defaults_by_pool": {}, "_storage_vols_w_defaults": [], "_storage_volumes": []}, "changed": false} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [1/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:28 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'disks': [u'vda'], u'type': u'lvm', u'name': u'pool1'}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "pool1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": []}]}, "ansible_loop_var": "pool", "changed": false, "pool": {"disks": ["vda"], "name": "pool1", "type": "lvm"}} ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'disks': [u'vda'], u'type': u'lvm', u'name': u'pool1'}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "pool1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": []}, {"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "pool1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": []}]}, "ansible_loop_var": "pool", "changed": false, "pool": {"disks": ["vda"], "name": "pool1", "type": "lvm"}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [2/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:36 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [3/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:44 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [4/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:52 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'pool1', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [], u'type': u'lvm', u'encryption_key_size': None}) => {"ansible_facts": {"_storage_vols_no_defaults_by_pool": {"pool1": []}}, "ansible_loop_var": "item", "changed": false, "item": {"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "pool1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": []}} ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'pool1', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [], u'type': u'lvm', u'encryption_key_size': None}) => {"ansible_facts": {"_storage_vols_no_defaults_by_pool": {"pool1": []}}, "ansible_loop_var": "item", "changed": false, "item": {"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "pool1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": []}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [5/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:61 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'pool1', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [], u'type': u'lvm', u'encryption_key_size': None}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "pool1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": []}, {"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "pool1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": []}]}, "ansible_index_var": "idx", "ansible_loop_var": "pool", "changed": false, "idx": 0, "pool": {"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "pool1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": []}} ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'pool1', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [], u'type': u'lvm', u'encryption_key_size': None}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "pool1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": []}, {"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "pool1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": []}]}, "ansible_index_var": "idx", "ansible_loop_var": "pool", "changed": false, "idx": 1, "pool": {"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "pool1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": []}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [6/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:72 TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "pool1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [] }, { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "pool1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [] } ] } TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes": [] } TASK [linux-system-roles.storage : get required packages] ********************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": ["lvm2"], "pools": [], "volumes": []} TASK [linux-system-roles.storage : make sure required packages are installed] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: lvm2"]} TASK [linux-system-roles.storage : manage the pools and volumes to match the specified state] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:104 fatal: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2]: FAILED! => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "msg": "multiple pools with the same name: pool1", "packages": [], "pools": [], "volumes": []} TASK [Check that we failed in the role] **************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_lvm_errors.yml:247 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the output of the duplicate pools test] *************************** task path: /tmp/tmp7ksfxpzz/tests/tests_lvm_errors.yml:253 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Try to create two volumes w/ the same name] ****************************** task path: /tmp/tmp7ksfxpzz/tests/tests_lvm_errors.yml:262 TASK [linux-system-roles.storage : Set version specific variables] ************* task path: /tmp/tmp7ksfxpzz/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-crypto", "libblockdev-dm", "libblockdev-lvm", "libblockdev-mdraid", "libblockdev-swap"]}, "ansible_included_var_files": ["/tmp/tmp7ksfxpzz/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.storage : define an empty list of pools to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : define an empty list of volumes to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : include the appropriate provider tasks] ***** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:22 included: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [linux-system-roles.storage : get a list of rpm packages installed on host machine] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : make sure blivet is available] ************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: python3-blivet", "Installed: libblockdev-crypto", "Installed: libblockdev-dm", "Installed: libblockdev-lvm", "Installed: libblockdev-mdraid", "Installed: libblockdev-swap"]} TASK [linux-system-roles.storage : initialize internal facts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools": [], "_storage_vol_defaults": [], "_storage_vol_pools": [], "_storage_vols_no_defaults": [], "_storage_vols_no_defaults_by_pool": {}, "_storage_vols_w_defaults": [], "_storage_volumes": []}, "changed": false} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [1/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:28 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'disks': [u'vda'], u'type': u'lvm', u'name': u'pool1', u'volumes': [{u'mount_point': u'/opt/test1', u'type': u'lvm', u'name': u'test1', u'size': u'5g'}, {u'mount_point': u'/opt/test2', u'type': u'lvm', u'name': u'test1', u'size': u'2g'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "pool1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "5g", "type": "lvm"}, {"mount_point": "/opt/test2", "name": "test1", "size": "2g", "type": "lvm"}]}]}, "ansible_loop_var": "pool", "changed": false, "pool": {"disks": ["vda"], "name": "pool1", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "5g", "type": "lvm"}, {"mount_point": "/opt/test2", "name": "test1", "size": "2g", "type": "lvm"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [2/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:36 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'pool1', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test1', u'type': u'lvm', u'name': u'test1', u'size': u'5g'}, {u'mount_point': u'/opt/test2', u'type': u'lvm', u'name': u'test1', u'size': u'2g'}], u'type': u'lvm', u'encryption_key_size': None}, {u'mount_point': u'/opt/test1', u'type': u'lvm', u'name': u'test1', u'size': u'5g'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}], "_storage_vol_pools": ["pool1"], "_storage_vols_no_defaults": [{"mount_point": "/opt/test1", "name": "test1", "size": "5g", "type": "lvm"}]}, "ansible_loop_var": "item", "changed": false, "item": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "pool1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "5g", "type": "lvm"}, {"mount_point": "/opt/test2", "name": "test1", "size": "2g", "type": "lvm"}]}, {"mount_point": "/opt/test1", "name": "test1", "size": "5g", "type": "lvm"}]} ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'pool1', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test1', u'type': u'lvm', u'name': u'test1', u'size': u'5g'}, {u'mount_point': u'/opt/test2', u'type': u'lvm', u'name': u'test1', u'size': u'2g'}], u'type': u'lvm', u'encryption_key_size': None}, {u'mount_point': u'/opt/test2', u'type': u'lvm', u'name': u'test1', u'size': u'2g'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}], "_storage_vol_pools": ["pool1", "pool1"], "_storage_vols_no_defaults": [{"mount_point": "/opt/test1", "name": "test1", "size": "5g", "type": "lvm"}, {"mount_point": "/opt/test2", "name": "test1", "size": "2g", "type": "lvm"}]}, "ansible_loop_var": "item", "changed": false, "item": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "pool1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "5g", "type": "lvm"}, {"mount_point": "/opt/test2", "name": "test1", "size": "2g", "type": "lvm"}]}, {"mount_point": "/opt/test2", "name": "test1", "size": "2g", "type": "lvm"}]} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [3/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:44 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'mount_point': u'/opt/test1', u'type': u'lvm', u'name': u'test1', u'size': u'5g'}, {u'raid_metadata_version': None, u'encryption_key_size': None, u'encryption_key': None, u'fs_label': u'', u'raid_chunk_size': None, u'mount_device_identifier': u'uuid', u'fs_type': u'xfs', u'mount_options': u'defaults', u'encryption_luks_version': None, u'raid_spare_count': None, u'size': 0, u'mount_point': u'', u'encryption_password': None, u'encryption': False, u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'mount_check': 0, u'mount_passno': 0, u'fs_overwrite_existing': True, u'type': u'lvm', u'encryption_cipher': None, u'fs_create_options': u''}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "pool1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "5g", "state": "present", "type": "lvm"}]}, "ansible_index_var": "idx", "ansible_loop_var": "item", "changed": false, "idx": 0, "item": [{"mount_point": "/opt/test1", "name": "test1", "size": "5g", "type": "lvm"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}]} ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'mount_point': u'/opt/test2', u'type': u'lvm', u'name': u'test1', u'size': u'2g'}, {u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'fs_label': u'', u'raid_level': None, u'mount_device_identifier': u'uuid', u'fs_type': u'xfs', u'mount_options': u'defaults', u'encryption_luks_version': None, u'raid_spare_count': None, u'size': 0, u'mount_point': u'', u'encryption_password': None, u'encryption': False, u'raid_chunk_size': None, u'raid_device_count': None, u'state': u'present', u'mount_check': 0, u'mount_passno': 0, u'fs_overwrite_existing': True, u'type': u'lvm', u'encryption_key_size': None, u'fs_create_options': u''}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "pool1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "5g", "state": "present", "type": "lvm"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "test1", "pool": "pool1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "2g", "state": "present", "type": "lvm"}]}, "ansible_index_var": "idx", "ansible_loop_var": "item", "changed": false, "idx": 1, "item": [{"mount_point": "/opt/test2", "name": "test1", "size": "2g", "type": "lvm"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}]} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [4/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:52 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'pool1', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test1', u'type': u'lvm', u'name': u'test1', u'size': u'5g'}, {u'mount_point': u'/opt/test2', u'type': u'lvm', u'name': u'test1', u'size': u'2g'}], u'type': u'lvm', u'encryption_key_size': None}) => {"ansible_facts": {"_storage_vols_no_defaults_by_pool": {"pool1": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "pool1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "5g", "state": "present", "type": "lvm"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "test1", "pool": "pool1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "2g", "state": "present", "type": "lvm"}]}}, "ansible_loop_var": "item", "changed": false, "item": {"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "pool1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "5g", "type": "lvm"}, {"mount_point": "/opt/test2", "name": "test1", "size": "2g", "type": "lvm"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [5/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:61 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'pool1', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test1', u'type': u'lvm', u'name': u'test1', u'size': u'5g'}, {u'mount_point': u'/opt/test2', u'type': u'lvm', u'name': u'test1', u'size': u'2g'}], u'type': u'lvm', u'encryption_key_size': None}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "pool1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "pool1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "5g", "state": "present", "type": "lvm"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "test1", "pool": "pool1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "2g", "state": "present", "type": "lvm"}]}]}, "ansible_index_var": "idx", "ansible_loop_var": "pool", "changed": false, "idx": 0, "pool": {"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "pool1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "5g", "type": "lvm"}, {"mount_point": "/opt/test2", "name": "test1", "size": "2g", "type": "lvm"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [6/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:72 TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "pool1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [ { "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "pool1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "5g", "state": "present", "type": "lvm" }, { "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "test1", "pool": "pool1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "2g", "state": "present", "type": "lvm" } ] } ] } TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes": [] } TASK [linux-system-roles.storage : get required packages] ********************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": ["lvm2", "xfsprogs"], "pools": [], "volumes": []} TASK [linux-system-roles.storage : make sure required packages are installed] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: lvm2", "Installed: xfsprogs"]} TASK [linux-system-roles.storage : manage the pools and volumes to match the specified state] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:104 fatal: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2]: FAILED! => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "msg": "multiple volumes in pool 'pool1' with the same name: test1", "packages": [], "pools": [], "volumes": []} TASK [Check that we failed in the role] **************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_lvm_errors.yml:285 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the output of the duplicate volumes test] ************************* task path: /tmp/tmp7ksfxpzz/tests/tests_lvm_errors.yml:291 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Create a pool] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_lvm_errors.yml:298 TASK [linux-system-roles.storage : Set version specific variables] ************* task path: /tmp/tmp7ksfxpzz/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-crypto", "libblockdev-dm", "libblockdev-lvm", "libblockdev-mdraid", "libblockdev-swap"]}, "ansible_included_var_files": ["/tmp/tmp7ksfxpzz/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.storage : define an empty list of pools to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : define an empty list of volumes to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : include the appropriate provider tasks] ***** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:22 included: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [linux-system-roles.storage : get a list of rpm packages installed on host machine] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : make sure blivet is available] ************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: python3-blivet", "Installed: libblockdev-crypto", "Installed: libblockdev-dm", "Installed: libblockdev-lvm", "Installed: libblockdev-mdraid", "Installed: libblockdev-swap"]} TASK [linux-system-roles.storage : initialize internal facts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools": [], "_storage_vol_defaults": [], "_storage_vol_pools": [], "_storage_vols_no_defaults": [], "_storage_vols_no_defaults_by_pool": {}, "_storage_vols_w_defaults": [], "_storage_volumes": []}, "changed": false} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [1/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:28 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'disks': [u'vda'], u'type': u'lvm', u'name': u'testpool1', u'volumes': [{u'fs_type': u'ext4', u'name': u'testvol1', u'size': u'1g'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "testpool1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"fs_type": "ext4", "name": "testvol1", "size": "1g"}]}]}, "ansible_loop_var": "pool", "changed": false, "pool": {"disks": ["vda"], "name": "testpool1", "type": "lvm", "volumes": [{"fs_type": "ext4", "name": "testvol1", "size": "1g"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [2/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:36 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'testpool1', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'fs_type': u'ext4', u'name': u'testvol1', u'size': u'1g'}], u'type': u'lvm', u'encryption_key_size': None}, {u'fs_type': u'ext4', u'name': u'testvol1', u'size': u'1g'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}], "_storage_vol_pools": ["testpool1"], "_storage_vols_no_defaults": [{"fs_type": "ext4", "name": "testvol1", "size": "1g"}]}, "ansible_loop_var": "item", "changed": false, "item": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "testpool1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"fs_type": "ext4", "name": "testvol1", "size": "1g"}]}, {"fs_type": "ext4", "name": "testvol1", "size": "1g"}]} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [3/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:44 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'fs_type': u'ext4', u'name': u'testvol1', u'size': u'1g'}, {u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'fs_label': u'', u'raid_level': None, u'mount_device_identifier': u'uuid', u'fs_type': u'xfs', u'mount_options': u'defaults', u'encryption_luks_version': None, u'raid_spare_count': None, u'size': 0, u'mount_point': u'', u'encryption_password': None, u'encryption': False, u'raid_chunk_size': None, u'raid_device_count': None, u'state': u'present', u'mount_check': 0, u'mount_passno': 0, u'fs_overwrite_existing': True, u'type': u'lvm', u'encryption_key_size': None, u'fs_create_options': u''}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "ext4", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "name": "testvol1", "pool": "testpool1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "1g", "state": "present", "type": "lvm"}]}, "ansible_index_var": "idx", "ansible_loop_var": "item", "changed": false, "idx": 0, "item": [{"fs_type": "ext4", "name": "testvol1", "size": "1g"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}]} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [4/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:52 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'testpool1', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'fs_type': u'ext4', u'name': u'testvol1', u'size': u'1g'}], u'type': u'lvm', u'encryption_key_size': None}) => {"ansible_facts": {"_storage_vols_no_defaults_by_pool": {"testpool1": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "ext4", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "name": "testvol1", "pool": "testpool1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "1g", "state": "present", "type": "lvm"}]}}, "ansible_loop_var": "item", "changed": false, "item": {"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "testpool1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"fs_type": "ext4", "name": "testvol1", "size": "1g"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [5/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:61 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'testpool1', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'fs_type': u'ext4', u'name': u'testvol1', u'size': u'1g'}], u'type': u'lvm', u'encryption_key_size': None}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "testpool1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "ext4", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "name": "testvol1", "pool": "testpool1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "1g", "state": "present", "type": "lvm"}]}]}, "ansible_index_var": "idx", "ansible_loop_var": "pool", "changed": false, "idx": 0, "pool": {"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "testpool1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"fs_type": "ext4", "name": "testvol1", "size": "1g"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [6/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:72 TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "testpool1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [ { "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "ext4", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "name": "testvol1", "pool": "testpool1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "1g", "state": "present", "type": "lvm" } ] } ] } TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes": [] } TASK [linux-system-roles.storage : get required packages] ********************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": ["e2fsprogs", "lvm2"], "pools": [], "volumes": []} TASK [linux-system-roles.storage : make sure required packages are installed] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: e2fsprogs", "Installed: lvm2"]} TASK [linux-system-roles.storage : manage the pools and volumes to match the specified state] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:104 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [{"action": "create format", "device": "/dev/vda", "fs_type": "lvmpv"}, {"action": "create device", "device": "/dev/testpool1", "fs_type": null}, {"action": "create device", "device": "/dev/mapper/testpool1-testvol1", "fs_type": null}, {"action": "create format", "device": "/dev/mapper/testpool1-testvol1", "fs_type": "ext4"}], "changed": true, "crypts": [], "leaves": ["/dev/sda1", "/dev/sr0", "/dev/vdb", "/dev/vdc", "/dev/mapper/testpool1-testvol1"], "mounts": [], "packages": ["lvm2", "e2fsprogs"], "pools": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "testpool1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"_device": "/dev/mapper/testpool1-testvol1", "_kernel_device": "/dev/dm-0", "_mount_id": "/dev/mapper/testpool1-testvol1", "_raw_device": "/dev/mapper/testpool1-testvol1", "_raw_kernel_device": "/dev/dm-0", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "ext4", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "name": "testvol1", "pool": "testpool1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "1g", "state": "present", "type": "lvm"}]}], "volumes": []} TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:114 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "blivet_output": { "actions": [ { "action": "create format", "device": "/dev/vda", "fs_type": "lvmpv" }, { "action": "create device", "device": "/dev/testpool1", "fs_type": null }, { "action": "create device", "device": "/dev/mapper/testpool1-testvol1", "fs_type": null }, { "action": "create format", "device": "/dev/mapper/testpool1-testvol1", "fs_type": "ext4" } ], "changed": true, "crypts": [], "failed": false, "leaves": [ "/dev/sda1", "/dev/sr0", "/dev/vdb", "/dev/vdc", "/dev/mapper/testpool1-testvol1" ], "mounts": [], "packages": [ "lvm2", "e2fsprogs" ], "pools": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "testpool1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [ { "_device": "/dev/mapper/testpool1-testvol1", "_kernel_device": "/dev/dm-0", "_mount_id": "/dev/mapper/testpool1-testvol1", "_raw_device": "/dev/mapper/testpool1-testvol1", "_raw_kernel_device": "/dev/dm-0", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "ext4", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "name": "testvol1", "pool": "testpool1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "1g", "state": "present", "type": "lvm" } ] } ], "volumes": [] } } TASK [linux-system-roles.storage : set the list of pools for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:117 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "testpool1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"_device": "/dev/mapper/testpool1-testvol1", "_kernel_device": "/dev/dm-0", "_mount_id": "/dev/mapper/testpool1-testvol1", "_raw_device": "/dev/mapper/testpool1-testvol1", "_raw_kernel_device": "/dev/dm-0", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "ext4", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "name": "testvol1", "pool": "testpool1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "1g", "state": "present", "type": "lvm"}]}]}, "changed": false} TASK [linux-system-roles.storage : set the list of volumes for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:121 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : remove obsolete mounts] ********************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:137 TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:148 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : set up new/current mounts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:153 TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:164 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : Manage /etc/crypttab to account for changes we just made] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:172 TASK [linux-system-roles.storage : Update facts] ******************************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:187 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] TASK [Try to replace file system in safe mode] ********************************* task path: /tmp/tmp7ksfxpzz/tests/tests_lvm_errors.yml:313 TASK [linux-system-roles.storage : Set version specific variables] ************* task path: /tmp/tmp7ksfxpzz/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-crypto", "libblockdev-dm", "libblockdev-lvm", "libblockdev-mdraid", "libblockdev-swap"]}, "ansible_included_var_files": ["/tmp/tmp7ksfxpzz/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.storage : define an empty list of pools to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : define an empty list of volumes to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : include the appropriate provider tasks] ***** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:22 included: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [linux-system-roles.storage : get a list of rpm packages installed on host machine] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : make sure blivet is available] ************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: python3-blivet", "Installed: libblockdev-crypto", "Installed: libblockdev-dm", "Installed: libblockdev-lvm", "Installed: libblockdev-mdraid", "Installed: libblockdev-swap"]} TASK [linux-system-roles.storage : initialize internal facts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools": [], "_storage_vol_defaults": [], "_storage_vol_pools": [], "_storage_vols_no_defaults": [], "_storage_vols_no_defaults_by_pool": {}, "_storage_vols_w_defaults": [], "_storage_volumes": []}, "changed": false} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [1/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:28 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'disks': [u'vda'], u'type': u'lvm', u'name': u'testpool1', u'volumes': [{u'fs_type': u'ext3', u'name': u'testvol1', u'size': u'1g'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "testpool1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"fs_type": "ext3", "name": "testvol1", "size": "1g"}]}]}, "ansible_loop_var": "pool", "changed": false, "pool": {"disks": ["vda"], "name": "testpool1", "type": "lvm", "volumes": [{"fs_type": "ext3", "name": "testvol1", "size": "1g"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [2/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:36 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'testpool1', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'fs_type': u'ext3', u'name': u'testvol1', u'size': u'1g'}], u'type': u'lvm', u'encryption_key_size': None}, {u'fs_type': u'ext3', u'name': u'testvol1', u'size': u'1g'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}], "_storage_vol_pools": ["testpool1"], "_storage_vols_no_defaults": [{"fs_type": "ext3", "name": "testvol1", "size": "1g"}]}, "ansible_loop_var": "item", "changed": false, "item": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "testpool1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"fs_type": "ext3", "name": "testvol1", "size": "1g"}]}, {"fs_type": "ext3", "name": "testvol1", "size": "1g"}]} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [3/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:44 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'fs_type': u'ext3', u'name': u'testvol1', u'size': u'1g'}, {u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'fs_label': u'', u'raid_level': None, u'mount_device_identifier': u'uuid', u'fs_type': u'xfs', u'mount_options': u'defaults', u'encryption_luks_version': None, u'raid_spare_count': None, u'size': 0, u'mount_point': u'', u'encryption_password': None, u'encryption': False, u'raid_chunk_size': None, u'raid_device_count': None, u'state': u'present', u'mount_check': 0, u'mount_passno': 0, u'fs_overwrite_existing': True, u'type': u'lvm', u'encryption_key_size': None, u'fs_create_options': u''}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "ext3", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "name": "testvol1", "pool": "testpool1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "1g", "state": "present", "type": "lvm"}]}, "ansible_index_var": "idx", "ansible_loop_var": "item", "changed": false, "idx": 0, "item": [{"fs_type": "ext3", "name": "testvol1", "size": "1g"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}]} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [4/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:52 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'testpool1', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'fs_type': u'ext3', u'name': u'testvol1', u'size': u'1g'}], u'type': u'lvm', u'encryption_key_size': None}) => {"ansible_facts": {"_storage_vols_no_defaults_by_pool": {"testpool1": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "ext3", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "name": "testvol1", "pool": "testpool1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "1g", "state": "present", "type": "lvm"}]}}, "ansible_loop_var": "item", "changed": false, "item": {"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "testpool1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"fs_type": "ext3", "name": "testvol1", "size": "1g"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [5/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:61 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'testpool1', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'fs_type': u'ext3', u'name': u'testvol1', u'size': u'1g'}], u'type': u'lvm', u'encryption_key_size': None}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "testpool1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "ext3", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "name": "testvol1", "pool": "testpool1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "1g", "state": "present", "type": "lvm"}]}]}, "ansible_index_var": "idx", "ansible_loop_var": "pool", "changed": false, "idx": 0, "pool": {"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "testpool1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"fs_type": "ext3", "name": "testvol1", "size": "1g"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [6/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:72 TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "testpool1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [ { "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "ext3", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "name": "testvol1", "pool": "testpool1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "1g", "state": "present", "type": "lvm" } ] } ] } TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes": [] } TASK [linux-system-roles.storage : get required packages] ********************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": ["e2fsprogs", "lvm2"], "pools": [], "volumes": []} TASK [linux-system-roles.storage : make sure required packages are installed] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: e2fsprogs", "Installed: lvm2"]} TASK [linux-system-roles.storage : manage the pools and volumes to match the specified state] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:104 fatal: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2]: FAILED! => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "msg": "cannot remove existing formatting on volume 'testvol1' in safe mode", "packages": [], "pools": [], "volumes": []} TASK [Check that we failed in the role] **************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_lvm_errors.yml:331 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the output] ******************************************************* task path: /tmp/tmp7ksfxpzz/tests/tests_lvm_errors.yml:337 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Try to create LVM pool on disks that already belong to an existing pool] *** task path: /tmp/tmp7ksfxpzz/tests/tests_lvm_errors.yml:346 TASK [linux-system-roles.storage : Set version specific variables] ************* task path: /tmp/tmp7ksfxpzz/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-crypto", "libblockdev-dm", "libblockdev-lvm", "libblockdev-mdraid", "libblockdev-swap"]}, "ansible_included_var_files": ["/tmp/tmp7ksfxpzz/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.storage : define an empty list of pools to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : define an empty list of volumes to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : include the appropriate provider tasks] ***** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:22 included: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [linux-system-roles.storage : get a list of rpm packages installed on host machine] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : make sure blivet is available] ************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: python3-blivet", "Installed: libblockdev-crypto", "Installed: libblockdev-dm", "Installed: libblockdev-lvm", "Installed: libblockdev-mdraid", "Installed: libblockdev-swap"]} TASK [linux-system-roles.storage : initialize internal facts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools": [], "_storage_vol_defaults": [], "_storage_vol_pools": [], "_storage_vols_no_defaults": [], "_storage_vols_no_defaults_by_pool": {}, "_storage_vols_w_defaults": [], "_storage_volumes": []}, "changed": false} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [1/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:28 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'disks': [u'vda'], u'type': u'lvm', u'name': u'foo'}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": []}]}, "ansible_loop_var": "pool", "changed": false, "pool": {"disks": ["vda"], "name": "foo", "type": "lvm"}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [2/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:36 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [3/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:44 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [4/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:52 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [], u'type': u'lvm', u'encryption_key_size': None}) => {"ansible_facts": {"_storage_vols_no_defaults_by_pool": {"foo": []}}, "ansible_loop_var": "item", "changed": false, "item": {"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": []}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [5/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:61 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [], u'type': u'lvm', u'encryption_key_size': None}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": []}]}, "ansible_index_var": "idx", "ansible_loop_var": "pool", "changed": false, "idx": 0, "pool": {"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": []}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [6/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:72 TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [] } ] } TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes": [] } TASK [linux-system-roles.storage : get required packages] ********************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": ["lvm2"], "pools": [], "volumes": []} TASK [linux-system-roles.storage : make sure required packages are installed] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: lvm2"]} TASK [linux-system-roles.storage : manage the pools and volumes to match the specified state] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:104 fatal: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2]: FAILED! => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "msg": "cannot remove existing formatting and/or devices on disk 'vda' (pool 'foo') in safe mode", "packages": [], "pools": [], "volumes": []} TASK [Check that we failed in the role] **************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_lvm_errors.yml:360 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the output] ******************************************************* task path: /tmp/tmp7ksfxpzz/tests/tests_lvm_errors.yml:366 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Try to replace a pool by a file system on disk in safe mode] ************* task path: /tmp/tmp7ksfxpzz/tests/tests_lvm_errors.yml:375 TASK [linux-system-roles.storage : Set version specific variables] ************* task path: /tmp/tmp7ksfxpzz/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-crypto", "libblockdev-dm", "libblockdev-lvm", "libblockdev-mdraid", "libblockdev-swap"]}, "ansible_included_var_files": ["/tmp/tmp7ksfxpzz/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.storage : define an empty list of pools to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : define an empty list of volumes to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : include the appropriate provider tasks] ***** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:22 included: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [linux-system-roles.storage : get a list of rpm packages installed on host machine] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : make sure blivet is available] ************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: python3-blivet", "Installed: libblockdev-crypto", "Installed: libblockdev-dm", "Installed: libblockdev-lvm", "Installed: libblockdev-mdraid", "Installed: libblockdev-swap"]} TASK [linux-system-roles.storage : initialize internal facts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools": [], "_storage_vol_defaults": [], "_storage_vol_pools": [], "_storage_vols_no_defaults": [], "_storage_vols_no_defaults_by_pool": {}, "_storage_vols_w_defaults": [], "_storage_volumes": []}, "changed": false} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [1/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:28 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [2/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:36 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [3/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:44 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [4/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:52 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [5/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:61 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [6/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:72 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'fs_type': u'ext3', u'type': u'disk', u'disks': [u'vda'], u'name': u'test1'}) => {"ansible_facts": {"_storage_volumes": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "ext3", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "name": "test1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "disk"}]}, "ansible_loop_var": "volume", "changed": false, "volume": {"disks": ["vda"], "fs_type": "ext3", "name": "test1", "type": "disk"}} TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools": [] } TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "ext3", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "name": "test1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "disk" } ] } TASK [linux-system-roles.storage : get required packages] ********************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": ["e2fsprogs"], "pools": [], "volumes": []} TASK [linux-system-roles.storage : make sure required packages are installed] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: e2fsprogs"]} TASK [linux-system-roles.storage : manage the pools and volumes to match the specified state] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:104 fatal: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2]: FAILED! => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "msg": "cannot remove existing formatting on volume 'test1' in safe mode", "packages": [], "pools": [], "volumes": []} TASK [Check that we failed in the role] **************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_lvm_errors.yml:391 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the output] ******************************************************* task path: /tmp/tmp7ksfxpzz/tests/tests_lvm_errors.yml:397 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_lvm_errors.yml:404 TASK [linux-system-roles.storage : Set version specific variables] ************* task path: /tmp/tmp7ksfxpzz/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-crypto", "libblockdev-dm", "libblockdev-lvm", "libblockdev-mdraid", "libblockdev-swap"]}, "ansible_included_var_files": ["/tmp/tmp7ksfxpzz/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.storage : define an empty list of pools to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : define an empty list of volumes to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : include the appropriate provider tasks] ***** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:22 included: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [linux-system-roles.storage : get a list of rpm packages installed on host machine] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : make sure blivet is available] ************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: python3-blivet", "Installed: libblockdev-crypto", "Installed: libblockdev-dm", "Installed: libblockdev-lvm", "Installed: libblockdev-mdraid", "Installed: libblockdev-swap"]} TASK [linux-system-roles.storage : initialize internal facts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools": [], "_storage_vol_defaults": [], "_storage_vol_pools": [], "_storage_vols_no_defaults": [], "_storage_vols_no_defaults_by_pool": {}, "_storage_vols_w_defaults": [], "_storage_volumes": []}, "changed": false} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [1/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:28 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'state': u'absent', u'disks': [u'vda'], u'type': u'lvm', u'name': u'testpool1'}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "testpool1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "absent", "type": "lvm", "volumes": []}]}, "ansible_loop_var": "pool", "changed": false, "pool": {"disks": ["vda"], "name": "testpool1", "state": "absent", "type": "lvm"}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [2/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:36 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [3/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:44 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [4/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:52 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'testpool1', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'absent', u'volumes': [], u'type': u'lvm', u'encryption_key_size': None}) => {"ansible_facts": {"_storage_vols_no_defaults_by_pool": {"testpool1": []}}, "ansible_loop_var": "item", "changed": false, "item": {"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "testpool1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "absent", "type": "lvm", "volumes": []}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [5/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:61 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'testpool1', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'absent', u'volumes': [], u'type': u'lvm', u'encryption_key_size': None}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "testpool1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "absent", "type": "lvm", "volumes": []}]}, "ansible_index_var": "idx", "ansible_loop_var": "pool", "changed": false, "idx": 0, "pool": {"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "testpool1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "absent", "type": "lvm", "volumes": []}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [6/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:72 TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "testpool1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "absent", "type": "lvm", "volumes": [] } ] } TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes": [] } TASK [linux-system-roles.storage : get required packages] ********************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": []} TASK [linux-system-roles.storage : make sure required packages are installed] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [linux-system-roles.storage : manage the pools and volumes to match the specified state] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:104 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [{"action": "destroy format", "device": "/dev/mapper/testpool1-testvol1", "fs_type": "ext4"}, {"action": "destroy device", "device": "/dev/mapper/testpool1-testvol1", "fs_type": null}, {"action": "destroy device", "device": "/dev/testpool1", "fs_type": null}, {"action": "destroy format", "device": "/dev/vda", "fs_type": "lvmpv"}], "changed": true, "crypts": [], "leaves": ["/dev/sda1", "/dev/sr0", "/dev/vda", "/dev/vdb", "/dev/vdc"], "mounts": [], "packages": ["e2fsprogs"], "pools": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "testpool1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "absent", "type": "lvm", "volumes": []}], "volumes": []} TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:114 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "blivet_output": { "actions": [ { "action": "destroy format", "device": "/dev/mapper/testpool1-testvol1", "fs_type": "ext4" }, { "action": "destroy device", "device": "/dev/mapper/testpool1-testvol1", "fs_type": null }, { "action": "destroy device", "device": "/dev/testpool1", "fs_type": null }, { "action": "destroy format", "device": "/dev/vda", "fs_type": "lvmpv" } ], "changed": true, "crypts": [], "failed": false, "leaves": [ "/dev/sda1", "/dev/sr0", "/dev/vda", "/dev/vdb", "/dev/vdc" ], "mounts": [], "packages": [ "e2fsprogs" ], "pools": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "testpool1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "absent", "type": "lvm", "volumes": [] } ], "volumes": [] } } TASK [linux-system-roles.storage : set the list of pools for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:117 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "testpool1", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "absent", "type": "lvm", "volumes": []}]}, "changed": false} TASK [linux-system-roles.storage : set the list of volumes for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:121 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : remove obsolete mounts] ********************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:137 TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:148 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : set up new/current mounts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:153 TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:164 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : Manage /etc/crypttab to account for changes we just made] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:172 TASK [linux-system-roles.storage : Update facts] ******************************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:187 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 : ok=228 changed=3 unreachable=0 failed=0 skipped=64 rescued=11 ignored=0 + cd /tmp/tmp7ksfxpzz/tests; TEST_SUBJECTS=/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_storage-178-e856157-fedora-31-87qzp9iq/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmp7ksfxpzz/_setup.yml /tmp/tmp7ksfxpzz/tests/tests_lvm_multiple_disks_multiple_volumes.yml ansible-playbook 2.8.16 config file = /etc/ansible/ansible.cfg configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python2.7/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 2.7.5 (default, Apr 2 2020, 13:16:51) [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)] Using /etc/ansible/ansible.cfg as config file PLAYBOOK: _setup.yml *********************************************************** 1 plays in /tmp/tmp7ksfxpzz/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/_setup.yml:5 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "groups": { "all": [ "/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2" ], "localhost": [ "/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2" ], "subjects": [ "/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmp7ksfxpzz/_setup.yml:6 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 : ok=1 changed=0 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 PLAYBOOK: tests_lvm_multiple_disks_multiple_volumes.yml ************************ 1 plays in /tmp/tmp7ksfxpzz/tests/tests_lvm_multiple_disks_multiple_volumes.yml PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/tests_lvm_multiple_disks_multiple_volumes.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] META: ran handlers TASK [include_role : linux-system-roles.storage] ******************************* task path: /tmp/tmp7ksfxpzz/tests/tests_lvm_multiple_disks_multiple_volumes.yml:11 TASK [linux-system-roles.storage : Set version specific variables] ************* task path: /tmp/tmp7ksfxpzz/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-crypto", "libblockdev-dm", "libblockdev-lvm", "libblockdev-mdraid", "libblockdev-swap"]}, "ansible_included_var_files": ["/tmp/tmp7ksfxpzz/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.storage : define an empty list of pools to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : define an empty list of volumes to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : include the appropriate provider tasks] ***** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:22 included: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [linux-system-roles.storage : get a list of rpm packages installed on host machine] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : make sure blivet is available] ************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:7 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: python3-blivet", "Installed: libblockdev-crypto", "Installed: libblockdev-dm", "Installed: libblockdev-lvm", "Installed: libblockdev-mdraid", "Installed: libblockdev-swap", "Installed: dmraid-1.0.0.rc16-43.fc31.x86_64", "Installed: libblockdev-crypto-2.24-2.fc31.x86_64", "Installed: ndctl-70.1-1.fc31.x86_64", "Installed: dmraid-events-1.0.0.rc16-43.fc31.x86_64", "Installed: btrfs-progs-5.7-4.fc31.x86_64", "Installed: gdisk-1.0.5-1.fc31.x86_64", "Installed: ndctl-libs-70.1-1.fc31.x86_64", "Installed: libblockdev-dm-2.24-2.fc31.x86_64", "Installed: lzo-2.08-16.fc31.x86_64", "Installed: mdadm-4.1-5.fc31.x86_64", "Installed: libblockdev-fs-2.24-2.fc31.x86_64", "Installed: nspr-4.29.0-1.fc31.x86_64", "Installed: libblockdev-kbd-2.24-2.fc31.x86_64", "Installed: lsof-4.93.2-2.fc31.x86_64", "Installed: compat-readline5-5.2-34.fc31.x86_64", "Installed: nss-3.57.0-1.fc31.x86_64", "Installed: libblockdev-loop-2.24-2.fc31.x86_64", "Installed: libblockdev-lvm-2.24-2.fc31.x86_64", "Installed: python3-gobject-base-3.34.0-3.fc31.x86_64", "Installed: lvm2-2.03.09-1.fc31.x86_64", "Installed: nss-softokn-3.57.0-1.fc31.x86_64", "Installed: userspace-rcu-0.11.1-2.fc31.x86_64", "Installed: libblockdev-mdraid-2.24-2.fc31.x86_64", "Installed: lvm2-libs-2.03.09-1.fc31.x86_64", "Installed: nss-softokn-freebl-3.57.0-1.fc31.x86_64", "Installed: nss-sysinit-3.57.0-1.fc31.x86_64", "Installed: libblockdev-mpath-2.24-2.fc31.x86_64", "Installed: gobject-introspection-1.62.0-1.fc31.x86_64", "Installed: device-mapper-event-1.02.171-1.fc31.x86_64", "Installed: nss-util-3.57.0-1.fc31.x86_64", "Installed: libblockdev-nvdimm-2.24-2.fc31.x86_64", "Installed: volume_key-libs-0.3.12-4.fc31.x86_64", "Installed: device-mapper-event-libs-1.02.171-1.fc31.x86_64", "Installed: libblockdev-part-2.24-2.fc31.x86_64", "Installed: libblockdev-swap-2.24-2.fc31.x86_64", "Installed: libblockdev-utils-2.24-2.fc31.x86_64", "Installed: blivet-data-1:3.1.7-2.fc31.noarch", "Installed: device-mapper-multipath-0.8.0-3.fc31.x86_64", "Installed: device-mapper-multipath-libs-0.8.0-3.fc31.x86_64", "Installed: device-mapper-persistent-data-0.8.5-2.fc31.x86_64", "Installed: sgpio-1.2.0.10-24.fc31.x86_64", "Installed: bcache-tools-1.0.8-16.fc31.x86_64", "Installed: python3-pyudev-0.21.0-11.fc31.noarch", "Installed: python3-blivet-1:3.1.7-2.fc31.noarch", "Installed: python3-blockdev-2.24-2.fc31.x86_64", "Installed: daxctl-libs-70.1-1.fc31.x86_64", "Installed: python3-pyparted-1:3.11.2-2.fc31.x86_64", "Installed: libaio-0.3.111-6.fc31.x86_64", "Installed: libbytesize-2.3-1.fc31.x86_64", "Installed: python3-bytesize-2.3-1.fc31.x86_64", "Installed: libblockdev-2.24-2.fc31.x86_64", "Installed: libblockdev-btrfs-2.24-2.fc31.x86_64"]} TASK [linux-system-roles.storage : initialize internal facts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools": [], "_storage_vol_defaults": [], "_storage_vol_pools": [], "_storage_vols_no_defaults": [], "_storage_vols_no_defaults_by_pool": {}, "_storage_vols_w_defaults": [], "_storage_volumes": []}, "changed": false} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [1/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:28 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [2/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:36 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [3/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:44 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [4/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:52 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [5/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:61 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [6/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:72 TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools": [] } TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes": [] } TASK [linux-system-roles.storage : get required packages] ********************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": []} TASK [linux-system-roles.storage : make sure required packages are installed] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [linux-system-roles.storage : manage the pools and volumes to match the specified state] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:104 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": []} TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:114 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "blivet_output": { "actions": [], "changed": false, "crypts": [], "failed": false, "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": [] } } TASK [linux-system-roles.storage : set the list of pools for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:117 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : set the list of volumes for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:121 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : remove obsolete mounts] ********************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:137 TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:148 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : set up new/current mounts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:153 TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:164 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : Manage /etc/crypttab to account for changes we just made] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:172 TASK [linux-system-roles.storage : Update facts] ******************************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:187 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_lvm_multiple_disks_multiple_volumes.yml:14 included: /tmp/tmp7ksfxpzz/tests/get_unused_disk.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Find unused disks in the system] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/get_unused_disk.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "disks": ["vda", "vdb"]} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/get_unused_disk.yml:8 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"unused_disks": ["vda", "vdb"]}, "changed": false} TASK [Exit playbook when there's not enough unused disks in the system] ******** task path: /tmp/tmp7ksfxpzz/tests/get_unused_disk.yml:12 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Print unused disks] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/get_unused_disk.yml:17 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "unused_disks": [ "vda", "vdb" ] } TASK [Create a logical volume spanning two physical volumes that changes its mount location] *** task path: /tmp/tmp7ksfxpzz/tests/tests_lvm_multiple_disks_multiple_volumes.yml:20 TASK [linux-system-roles.storage : Set version specific variables] ************* task path: /tmp/tmp7ksfxpzz/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-crypto", "libblockdev-dm", "libblockdev-lvm", "libblockdev-mdraid", "libblockdev-swap"]}, "ansible_included_var_files": ["/tmp/tmp7ksfxpzz/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.storage : define an empty list of pools to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : define an empty list of volumes to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : include the appropriate provider tasks] ***** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:22 included: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [linux-system-roles.storage : get a list of rpm packages installed on host machine] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : make sure blivet is available] ************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: python3-blivet", "Installed: libblockdev-crypto", "Installed: libblockdev-dm", "Installed: libblockdev-lvm", "Installed: libblockdev-mdraid", "Installed: libblockdev-swap"]} TASK [linux-system-roles.storage : initialize internal facts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools": [], "_storage_vol_defaults": [], "_storage_vol_pools": [], "_storage_vols_no_defaults": [], "_storage_vols_no_defaults_by_pool": {}, "_storage_vols_w_defaults": [], "_storage_volumes": []}, "changed": false} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [1/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:28 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'disks': [u'vda', u'vdb'], u'name': u'phi', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'4g'}, {u'mount_point': u'/opt/test2', u'name': u'test2', u'size': u'4g'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vda", "vdb"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "phi", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "4g"}, {"mount_point": "/opt/test2", "name": "test2", "size": "4g"}]}]}, "ansible_loop_var": "pool", "changed": false, "pool": {"disks": ["vda", "vdb"], "name": "phi", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "4g"}, {"mount_point": "/opt/test2", "name": "test2", "size": "4g"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [2/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:36 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'phi', u'encryption_password': None, u'encryption': False, u'disks': [u'vda', u'vdb'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'4g'}, {u'mount_point': u'/opt/test2', u'name': u'test2', u'size': u'4g'}], u'type': u'lvm', u'encryption_key_size': None}, {u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'4g'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}], "_storage_vol_pools": ["phi"], "_storage_vols_no_defaults": [{"mount_point": "/opt/test1", "name": "test1", "size": "4g"}]}, "ansible_loop_var": "item", "changed": false, "item": [{"disks": ["vda", "vdb"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "phi", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "4g"}, {"mount_point": "/opt/test2", "name": "test2", "size": "4g"}]}, {"mount_point": "/opt/test1", "name": "test1", "size": "4g"}]} ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'phi', u'encryption_password': None, u'encryption': False, u'disks': [u'vda', u'vdb'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'4g'}, {u'mount_point': u'/opt/test2', u'name': u'test2', u'size': u'4g'}], u'type': u'lvm', u'encryption_key_size': None}, {u'mount_point': u'/opt/test2', u'name': u'test2', u'size': u'4g'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}], "_storage_vol_pools": ["phi", "phi"], "_storage_vols_no_defaults": [{"mount_point": "/opt/test1", "name": "test1", "size": "4g"}, {"mount_point": "/opt/test2", "name": "test2", "size": "4g"}]}, "ansible_loop_var": "item", "changed": false, "item": [{"disks": ["vda", "vdb"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "phi", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "4g"}, {"mount_point": "/opt/test2", "name": "test2", "size": "4g"}]}, {"mount_point": "/opt/test2", "name": "test2", "size": "4g"}]} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [3/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:44 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'4g'}, {u'raid_metadata_version': None, u'encryption_key_size': None, u'encryption_key': None, u'fs_label': u'', u'raid_chunk_size': None, u'mount_device_identifier': u'uuid', u'fs_type': u'xfs', u'mount_options': u'defaults', u'encryption_luks_version': None, u'raid_spare_count': None, u'size': 0, u'mount_point': u'', u'encryption_password': None, u'encryption': False, u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'mount_check': 0, u'mount_passno': 0, u'fs_overwrite_existing': True, u'type': u'lvm', u'encryption_cipher': None, u'fs_create_options': u''}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "phi", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm"}]}, "ansible_index_var": "idx", "ansible_loop_var": "item", "changed": false, "idx": 0, "item": [{"mount_point": "/opt/test1", "name": "test1", "size": "4g"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}]} ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'mount_point': u'/opt/test2', u'name': u'test2', u'size': u'4g'}, {u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'fs_label': u'', u'raid_level': None, u'mount_device_identifier': u'uuid', u'fs_type': u'xfs', u'mount_options': u'defaults', u'encryption_luks_version': None, u'raid_spare_count': None, u'size': 0, u'mount_point': u'', u'encryption_password': None, u'encryption': False, u'raid_chunk_size': None, u'raid_device_count': None, u'state': u'present', u'mount_check': 0, u'mount_passno': 0, u'fs_overwrite_existing': True, u'type': u'lvm', u'encryption_key_size': None, u'fs_create_options': u''}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "phi", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "test2", "pool": "phi", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm"}]}, "ansible_index_var": "idx", "ansible_loop_var": "item", "changed": false, "idx": 1, "item": [{"mount_point": "/opt/test2", "name": "test2", "size": "4g"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}]} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [4/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:52 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'phi', u'encryption_password': None, u'encryption': False, u'disks': [u'vda', u'vdb'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'4g'}, {u'mount_point': u'/opt/test2', u'name': u'test2', u'size': u'4g'}], u'type': u'lvm', u'encryption_key_size': None}) => {"ansible_facts": {"_storage_vols_no_defaults_by_pool": {"phi": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "phi", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "test2", "pool": "phi", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm"}]}}, "ansible_loop_var": "item", "changed": false, "item": {"disks": ["vda", "vdb"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "phi", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "4g"}, {"mount_point": "/opt/test2", "name": "test2", "size": "4g"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [5/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:61 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'phi', u'encryption_password': None, u'encryption': False, u'disks': [u'vda', u'vdb'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'4g'}, {u'mount_point': u'/opt/test2', u'name': u'test2', u'size': u'4g'}], u'type': u'lvm', u'encryption_key_size': None}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vda", "vdb"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "phi", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "phi", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "test2", "pool": "phi", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm"}]}]}, "ansible_index_var": "idx", "ansible_loop_var": "pool", "changed": false, "idx": 0, "pool": {"disks": ["vda", "vdb"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "phi", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "4g"}, {"mount_point": "/opt/test2", "name": "test2", "size": "4g"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [6/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:72 TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools": [ { "disks": [ "vda", "vdb" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "phi", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [ { "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "phi", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm" }, { "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "test2", "pool": "phi", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm" } ] } ] } TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes": [] } TASK [linux-system-roles.storage : get required packages] ********************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": ["lvm2", "xfsprogs"], "pools": [], "volumes": []} TASK [linux-system-roles.storage : make sure required packages are installed] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: lvm2", "Installed: xfsprogs"]} TASK [linux-system-roles.storage : manage the pools and volumes to match the specified state] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:104 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [{"action": "create format", "device": "/dev/vdb", "fs_type": "lvmpv"}, {"action": "create format", "device": "/dev/vda", "fs_type": "lvmpv"}, {"action": "create device", "device": "/dev/phi", "fs_type": null}, {"action": "create device", "device": "/dev/mapper/phi-test2", "fs_type": null}, {"action": "create format", "device": "/dev/mapper/phi-test2", "fs_type": "xfs"}, {"action": "create device", "device": "/dev/mapper/phi-test1", "fs_type": null}, {"action": "create format", "device": "/dev/mapper/phi-test1", "fs_type": "xfs"}], "changed": true, "crypts": [], "leaves": ["/dev/sda1", "/dev/sr0", "/dev/vdc", "/dev/mapper/phi-test1", "/dev/mapper/phi-test2"], "mounts": [{"dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "/dev/mapper/phi-test1", "state": "mounted"}, {"dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test2", "src": "/dev/mapper/phi-test2", "state": "mounted"}], "packages": ["lvm2", "e2fsprogs", "xfsprogs"], "pools": [{"disks": ["vda", "vdb"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "phi", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"_device": "/dev/mapper/phi-test1", "_kernel_device": "/dev/dm-1", "_mount_id": "/dev/mapper/phi-test1", "_raw_device": "/dev/mapper/phi-test1", "_raw_kernel_device": "/dev/dm-1", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "phi", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm"}, {"_device": "/dev/mapper/phi-test2", "_kernel_device": "/dev/dm-0", "_mount_id": "/dev/mapper/phi-test2", "_raw_device": "/dev/mapper/phi-test2", "_raw_kernel_device": "/dev/dm-0", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "test2", "pool": "phi", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm"}]}], "volumes": []} TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:114 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "blivet_output": { "actions": [ { "action": "create format", "device": "/dev/vdb", "fs_type": "lvmpv" }, { "action": "create format", "device": "/dev/vda", "fs_type": "lvmpv" }, { "action": "create device", "device": "/dev/phi", "fs_type": null }, { "action": "create device", "device": "/dev/mapper/phi-test2", "fs_type": null }, { "action": "create format", "device": "/dev/mapper/phi-test2", "fs_type": "xfs" }, { "action": "create device", "device": "/dev/mapper/phi-test1", "fs_type": null }, { "action": "create format", "device": "/dev/mapper/phi-test1", "fs_type": "xfs" } ], "changed": true, "crypts": [], "failed": false, "leaves": [ "/dev/sda1", "/dev/sr0", "/dev/vdc", "/dev/mapper/phi-test1", "/dev/mapper/phi-test2" ], "mounts": [ { "dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "/dev/mapper/phi-test1", "state": "mounted" }, { "dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test2", "src": "/dev/mapper/phi-test2", "state": "mounted" } ], "packages": [ "lvm2", "e2fsprogs", "xfsprogs" ], "pools": [ { "disks": [ "vda", "vdb" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "phi", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [ { "_device": "/dev/mapper/phi-test1", "_kernel_device": "/dev/dm-1", "_mount_id": "/dev/mapper/phi-test1", "_raw_device": "/dev/mapper/phi-test1", "_raw_kernel_device": "/dev/dm-1", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "phi", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm" }, { "_device": "/dev/mapper/phi-test2", "_kernel_device": "/dev/dm-0", "_mount_id": "/dev/mapper/phi-test2", "_raw_device": "/dev/mapper/phi-test2", "_raw_kernel_device": "/dev/dm-0", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "test2", "pool": "phi", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm" } ] } ], "volumes": [] } } TASK [linux-system-roles.storage : set the list of pools for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:117 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": [{"disks": ["vda", "vdb"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "phi", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"_device": "/dev/mapper/phi-test1", "_kernel_device": "/dev/dm-1", "_mount_id": "/dev/mapper/phi-test1", "_raw_device": "/dev/mapper/phi-test1", "_raw_kernel_device": "/dev/dm-1", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "phi", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm"}, {"_device": "/dev/mapper/phi-test2", "_kernel_device": "/dev/dm-0", "_mount_id": "/dev/mapper/phi-test2", "_raw_device": "/dev/mapper/phi-test2", "_raw_kernel_device": "/dev/dm-0", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "test2", "pool": "phi", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm"}]}]}, "changed": false} TASK [linux-system-roles.storage : set the list of volumes for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:121 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : remove obsolete mounts] ********************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:137 TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:148 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [linux-system-roles.storage : set up new/current mounts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:153 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'src': u'/dev/mapper/phi-test1', u'state': u'mounted', u'dump': 0, u'path': u'/opt/test1', u'passno': 0, u'opts': u'defaults', u'fstype': u'xfs'}) => {"ansible_loop_var": "mount_info", "changed": true, "dump": "0", "fstab": "/etc/fstab", "fstype": "xfs", "mount_info": {"dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "/dev/mapper/phi-test1", "state": "mounted"}, "name": "/opt/test1", "opts": "defaults", "passno": "0", "src": "/dev/mapper/phi-test1"} changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'src': u'/dev/mapper/phi-test2', u'state': u'mounted', u'dump': 0, u'path': u'/opt/test2', u'passno': 0, u'opts': u'defaults', u'fstype': u'xfs'}) => {"ansible_loop_var": "mount_info", "changed": true, "dump": "0", "fstab": "/etc/fstab", "fstype": "xfs", "mount_info": {"dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test2", "src": "/dev/mapper/phi-test2", "state": "mounted"}, "name": "/opt/test2", "opts": "defaults", "passno": "0", "src": "/dev/mapper/phi-test2"} TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:164 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [linux-system-roles.storage : Manage /etc/crypttab to account for changes we just made] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:172 TASK [linux-system-roles.storage : Update facts] ******************************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:187 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_lvm_multiple_disks_multiple_volumes.yml:35 included: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Print out pool information] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:1 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools_list": [ { "disks": [ "vda", "vdb" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "phi", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [ { "_device": "/dev/mapper/phi-test1", "_kernel_device": "/dev/dm-1", "_mount_id": "/dev/mapper/phi-test1", "_raw_device": "/dev/mapper/phi-test1", "_raw_kernel_device": "/dev/dm-1", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "phi", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm" }, { "_device": "/dev/mapper/phi-test2", "_kernel_device": "/dev/dm-0", "_mount_id": "/dev/mapper/phi-test2", "_raw_device": "/dev/mapper/phi-test2", "_raw_kernel_device": "/dev/dm-0", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "test2", "pool": "phi", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm" } ] } ] } TASK [Print out volume information] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:6 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {} TASK [Collect info about the volumes.] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "info": {"/dev/mapper/phi-test1": {"fstype": "xfs", "label": "", "name": "/dev/mapper/phi-test1", "size": "4G", "type": "lvm", "uuid": "8806b478-50c4-4bae-a92f-32415bc6aaa3"}, "/dev/mapper/phi-test2": {"fstype": "xfs", "label": "", "name": "/dev/mapper/phi-test2", "size": "4G", "type": "lvm", "uuid": "6dff3f08-5329-4782-8a41-caf941393c34"}, "/dev/sda": {"fstype": "", "label": "", "name": "/dev/sda", "size": "4G", "type": "disk", "uuid": ""}, "/dev/sda1": {"fstype": "ext4", "label": "", "name": "/dev/sda1", "size": "4G", "type": "partition", "uuid": "03e702b4-e165-4a39-88c9-9e210cd00434"}, "/dev/sr0": {"fstype": "iso9660", "label": "cidata", "name": "/dev/sr0", "size": "364K", "type": "rom", "uuid": "2020-10-31-12-45-28-00"}, "/dev/vda": {"fstype": "LVM2_member", "label": "", "name": "/dev/vda", "size": "10G", "type": "disk", "uuid": "nCglg2-Pc2o-UseW-qvSV-flja-hcoX-V5kTm3"}, "/dev/vdb": {"fstype": "LVM2_member", "label": "", "name": "/dev/vdb", "size": "10G", "type": "disk", "uuid": "pKyadG-zDwx-qaXL-4LtF-VbwE-WuqC-3oGHhE"}, "/dev/vdc": {"fstype": "", "label": "", "name": "/dev/vdc", "size": "10G", "type": "disk", "uuid": ""}}} TASK [Read the /etc/fstab file for volume existence] *************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:19 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/fstab"], "delta": "0:00:00.002547", "end": "2020-10-31 12:47:44.673191", "rc": 0, "start": "2020-10-31 12:47:44.670644", "stderr": "", "stderr_lines": [], "stdout": "\n#\n# /etc/fstab\n# Created by anaconda on Sat Oct 31 08:17:58 2020\n#\n# Accessible filesystems, by reference, are maintained under '/dev/disk/'.\n# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.\n#\n# After editing this file, run 'systemctl daemon-reload' to update systemd\n# units generated from this file.\n#\nUUID=03e702b4-e165-4a39-88c9-9e210cd00434 / ext4 defaults 1 1\n/dev/mapper/phi-test1 /opt/test1 xfs defaults 0 0\n/dev/mapper/phi-test2 /opt/test2 xfs defaults 0 0", "stdout_lines": ["", "#", "# /etc/fstab", "# Created by anaconda on Sat Oct 31 08:17:58 2020", "#", "# Accessible filesystems, by reference, are maintained under '/dev/disk/'.", "# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.", "#", "# After editing this file, run 'systemctl daemon-reload' to update systemd", "# units generated from this file.", "#", "UUID=03e702b4-e165-4a39-88c9-9e210cd00434 / ext4 defaults 1 1", "/dev/mapper/phi-test1 /opt/test1 xfs defaults 0 0", "/dev/mapper/phi-test2 /opt/test2 xfs defaults 0 0"]} TASK [Read the /etc/crypttab file] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/crypttab"], "delta": "0:00:00.002675", "end": "2020-10-31 12:47:44.996225", "rc": 0, "start": "2020-10-31 12:47:44.993550", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Verify the volumes listed in storage_pools were correctly managed] ******* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:32 included: /tmp/tmp7ksfxpzz/tests/test-verify-pool.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool.yml:5 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pool_tests": ["members", "volumes"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool.yml:17 included: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-pool-volumes.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:1 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_count": "2", "_storage_test_pool_pvs": [], "_storage_test_pool_pvs_lvm": ["/dev/vdb", "/dev/vda"]}, "changed": false} TASK [Get the canonical device path for each member device] ******************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:7 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=/dev/vdb) => {"ansible_loop_var": "pv", "changed": false, "device": "/dev/vdb", "pv": "/dev/vdb"} ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=/dev/vda) => {"ansible_loop_var": "pv", "changed": false, "device": "/dev/vda", "pv": "/dev/vda"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:16 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=/dev/vdb) => {"ansible_facts": {"_storage_test_pool_pvs": ["/dev/vdb"]}, "ansible_index_var": "idx", "ansible_loop_var": "item", "changed": false, "idx": 0, "item": "/dev/vdb"} ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=/dev/vda) => {"ansible_facts": {"_storage_test_pool_pvs": ["/dev/vdb", "/dev/vda"]}, "ansible_index_var": "idx", "ansible_loop_var": "item", "changed": false, "idx": 1, "item": "/dev/vda"} TASK [Verify PV count] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:23 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:29 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_type": "disk"}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:33 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_type": "disk"}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check the type of each PV] *********************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:41 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=/dev/vdb) => { "ansible_loop_var": "pv", "changed": false, "msg": "All assertions passed", "pv": "/dev/vdb" } ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=/dev/vda) => { "ansible_loop_var": "pv", "changed": false, "msg": "All assertions passed", "pv": "/dev/vda" } TASK [Check raid] ************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:50 included: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [get information about RAID] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:6 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:12 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:16 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:20 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID active devices count] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:24 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID spare devices count] ****************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:30 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID metadata version] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:36 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:44 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_md_active_devices_re": null, "storage_test_md_metadata_version_re": null, "storage_test_md_spare_devices_re": null}, "changed": false} TASK [Check member encryption] ************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:53 included: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_crypttab_entries": "0", "_storage_test_expected_crypttab_key_file": "-"}, "changed": false} TASK [Validate pool member LUKS settings] ************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:8 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=/dev/vdb) => {"_storage_test_pool_member_path": "/dev/vdb", "ansible_loop_var": "_storage_test_pool_member_path", "changed": false, "skip_reason": "Conditional result was False"} skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=/dev/vda) => {"_storage_test_pool_member_path": "/dev/vda", "ansible_loop_var": "_storage_test_pool_member_path", "changed": false, "skip_reason": "Conditional result was False"} TASK [Validate pool member crypttab entries] *********************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:15 included: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:1 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": []}, "changed": false} TASK [Check for /etc/crypttab entry] ******************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Validate the format of the crypttab entry] ******************************* task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:9 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check backing device of crypttab entry] ********************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:15 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check key file of crypttab entry] **************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:27 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:1 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": []}, "changed": false} TASK [Check for /etc/crypttab entry] ******************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Validate the format of the crypttab entry] ******************************* task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:9 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check backing device of crypttab entry] ********************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:15 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check key file of crypttab entry] **************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:27 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:22 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null, "_storage_test_crypttab_key_file": null}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:56 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_count": null, "_storage_test_expected_pv_type": null, "_storage_test_pool_pvs": [], "_storage_test_pool_pvs_lvm": []}, "changed": false} TASK [verify the volumes] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-volumes.yml:3 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": true, "_storage_volume_tests": ["mount", "fstab", "fs", "device", "encryption", "md", "size"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:10 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Get expected mount device based on device type] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/phi-test1"}, "changed": false} TASK [Set some facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [{"block_available": 1030454, "block_size": 4096, "block_total": 1046016, "block_used": 15562, "device": "/dev/mapper/phi-test1", "fstype": "xfs", "inode_available": 2097149, "inode_total": 2097152, "inode_used": 3, "mount": "/opt/test1", "options": "rw,seclabel,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota", "size_available": 4220739584, "size_total": 4284481536, "uuid": "8806b478-50c4-4bae-a92f-32415bc6aaa3"}], "storage_test_mount_expected_match_count": "1", "storage_test_mount_point_matches": [{"block_available": 1030454, "block_size": 4096, "block_total": 1046016, "block_used": 15562, "device": "/dev/mapper/phi-test1", "fstype": "xfs", "inode_available": 2097149, "inode_total": 2097152, "inode_used": 3, "mount": "/opt/test1", "options": "rw,seclabel,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota", "size_available": 4220739584, "size_total": 4284481536, "uuid": "8806b478-50c4-4bae-a92f-32415bc6aaa3"}], "storage_test_swap_expected_matches": "0"}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:22 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:31 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:39 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [command] ***************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Gather swap info] ******************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:52 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify swap status] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:57 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Unset facts] ************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:67 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null, "storage_test_swap_expected_matches": null, "storage_test_swaps": null, "storage_test_sys_node": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": "1", "storage_test_fstab_expected_mount_point_matches": "1", "storage_test_fstab_id_matches": ["/dev/mapper/phi-test1 "], "storage_test_fstab_mount_point_matches": [" /opt/test1 "]}, "changed": false} TASK [Verify that the device identifier appears in /etc/fstab] ***************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:17 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": null, "storage_test_fstab_expected_mount_point_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [Verify fs type] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify fs label] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [See whether the device node is present] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "stat": {"atime": 1604148460.3595328, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "ctime": 1604148460.3595328, "dev": 5, "device_type": 64769, "executable": false, "exists": true, "gid": 6, "gr_name": "disk", "inode": 68391, "isblk": true, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mimetype": "inode/symlink", "mode": "0660", "mtime": 1604148460.3595328, "nlink": 1, "path": "/dev/mapper/phi-test1", "pw_name": "root", "readable": true, "rgrp": true, "roth": false, "rusr": true, "size": 0, "uid": 0, "version": null, "wgrp": true, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}} TASK [Verify the presence/absence of the device node] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "lvm"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:28 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:33 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Stat the LUKS device, if encrypted] ************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:3 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Collect LUKS info for this volume] *************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:10 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the presence/absence of the LUKS device node] ********************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:16 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify that the raw device is the same as the device if not encrypted] *** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:25 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about the LUKS volume if encrypted] **************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the LUKS volume's device type if encrypted] *********************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS version] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:42 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS key size] ***************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS cipher] ******************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:54 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:60 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": [], "_storage_test_expected_crypttab_entries": "0", "_storage_test_expected_crypttab_key_file": "-"}, "changed": false} TASK [Check for /etc/crypttab entry] ******************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:65 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Validate the format of the crypttab entry] ******************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:70 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check backing device of crypttab entry] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:76 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check key file of crypttab entry] **************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:82 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:88 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null, "_storage_test_expected_crypttab_entries": null, "_storage_test_expected_crypttab_key_file": null}, "changed": false} TASK [get information about RAID] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:7 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:13 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:17 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID active devices count] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:25 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID spare devices count] ****************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID metadata version] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [parse the actual size of the volume] ************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:3 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"bytes": 4294967296, "changed": false, "lvm": "4g", "parted": "4GiB", "size": "4 GiB"} TASK [parse the requested size of the volume] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:9 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"bytes": 4294967296, "changed": false, "lvm": "4g", "parted": "4GiB", "size": "4 GiB"} TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:15 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_actual_size": { "bytes": 4294967296, "changed": false, "failed": false, "lvm": "4g", "parted": "4GiB", "size": "4 GiB" } } TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_requested_size": { "bytes": 4294967296, "changed": false, "failed": false, "lvm": "4g", "parted": "4GiB", "size": "4 GiB" } } TASK [assert] ****************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:21 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:16 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": true, "_storage_volume_tests": ["mount", "fstab", "fs", "device", "encryption", "md", "size"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:10 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Get expected mount device based on device type] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/phi-test2"}, "changed": false} TASK [Set some facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [{"block_available": 1030454, "block_size": 4096, "block_total": 1046016, "block_used": 15562, "device": "/dev/mapper/phi-test2", "fstype": "xfs", "inode_available": 2097149, "inode_total": 2097152, "inode_used": 3, "mount": "/opt/test2", "options": "rw,seclabel,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota", "size_available": 4220739584, "size_total": 4284481536, "uuid": "6dff3f08-5329-4782-8a41-caf941393c34"}], "storage_test_mount_expected_match_count": "1", "storage_test_mount_point_matches": [{"block_available": 1030454, "block_size": 4096, "block_total": 1046016, "block_used": 15562, "device": "/dev/mapper/phi-test2", "fstype": "xfs", "inode_available": 2097149, "inode_total": 2097152, "inode_used": 3, "mount": "/opt/test2", "options": "rw,seclabel,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota", "size_available": 4220739584, "size_total": 4284481536, "uuid": "6dff3f08-5329-4782-8a41-caf941393c34"}], "storage_test_swap_expected_matches": "0"}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:22 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:31 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:39 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [command] ***************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Gather swap info] ******************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:52 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify swap status] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:57 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Unset facts] ************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:67 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null, "storage_test_swap_expected_matches": null, "storage_test_swaps": null, "storage_test_sys_node": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": "1", "storage_test_fstab_expected_mount_point_matches": "1", "storage_test_fstab_id_matches": ["/dev/mapper/phi-test2 "], "storage_test_fstab_mount_point_matches": [" /opt/test2 "]}, "changed": false} TASK [Verify that the device identifier appears in /etc/fstab] ***************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:17 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": null, "storage_test_fstab_expected_mount_point_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [Verify fs type] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify fs label] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [See whether the device node is present] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "stat": {"atime": 1604148460.1655328, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "ctime": 1604148460.1655328, "dev": 5, "device_type": 64768, "executable": false, "exists": true, "gid": 6, "gr_name": "disk", "inode": 68383, "isblk": true, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mimetype": "inode/symlink", "mode": "0660", "mtime": 1604148460.1655328, "nlink": 1, "path": "/dev/mapper/phi-test2", "pw_name": "root", "readable": true, "rgrp": true, "roth": false, "rusr": true, "size": 0, "uid": 0, "version": null, "wgrp": true, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}} TASK [Verify the presence/absence of the device node] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "lvm"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:28 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:33 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Stat the LUKS device, if encrypted] ************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:3 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Collect LUKS info for this volume] *************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:10 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the presence/absence of the LUKS device node] ********************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:16 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify that the raw device is the same as the device if not encrypted] *** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:25 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about the LUKS volume if encrypted] **************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the LUKS volume's device type if encrypted] *********************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS version] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:42 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS key size] ***************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS cipher] ******************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:54 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:60 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": [], "_storage_test_expected_crypttab_entries": "0", "_storage_test_expected_crypttab_key_file": "-"}, "changed": false} TASK [Check for /etc/crypttab entry] ******************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:65 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Validate the format of the crypttab entry] ******************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:70 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check backing device of crypttab entry] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:76 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check key file of crypttab entry] **************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:82 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:88 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null, "_storage_test_expected_crypttab_entries": null, "_storage_test_expected_crypttab_key_file": null}, "changed": false} TASK [get information about RAID] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:7 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:13 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:17 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID active devices count] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:25 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID spare devices count] ****************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID metadata version] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [parse the actual size of the volume] ************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:3 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"bytes": 4294967296, "changed": false, "lvm": "4g", "parted": "4GiB", "size": "4 GiB"} TASK [parse the requested size of the volume] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:9 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"bytes": 4294967296, "changed": false, "lvm": "4g", "parted": "4GiB", "size": "4 GiB"} TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:15 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_actual_size": { "bytes": 4294967296, "changed": false, "failed": false, "lvm": "4g", "parted": "4GiB", "size": "4 GiB" } } TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_requested_size": { "bytes": 4294967296, "changed": false, "failed": false, "lvm": "4g", "parted": "4GiB", "size": "4 GiB" } } TASK [assert] ****************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:21 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:16 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:39 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_pool": null}, "changed": false} TASK [Verify the volumes with no pool were correctly managed] ****************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:46 TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:56 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_blkinfo": null, "storage_test_crypttab": null, "storage_test_fstab": null, "storage_test_volume": null}, "changed": false} TASK [Repeat the previous invocation to verify idempotence] ******************** task path: /tmp/tmp7ksfxpzz/tests/tests_lvm_multiple_disks_multiple_volumes.yml:37 TASK [linux-system-roles.storage : Set version specific variables] ************* task path: /tmp/tmp7ksfxpzz/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-crypto", "libblockdev-dm", "libblockdev-lvm", "libblockdev-mdraid", "libblockdev-swap"]}, "ansible_included_var_files": ["/tmp/tmp7ksfxpzz/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.storage : define an empty list of pools to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : define an empty list of volumes to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : include the appropriate provider tasks] ***** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:22 included: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [linux-system-roles.storage : get a list of rpm packages installed on host machine] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : make sure blivet is available] ************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: python3-blivet", "Installed: libblockdev-crypto", "Installed: libblockdev-dm", "Installed: libblockdev-lvm", "Installed: libblockdev-mdraid", "Installed: libblockdev-swap"]} TASK [linux-system-roles.storage : initialize internal facts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools": [], "_storage_vol_defaults": [], "_storage_vol_pools": [], "_storage_vols_no_defaults": [], "_storage_vols_no_defaults_by_pool": {}, "_storage_vols_w_defaults": [], "_storage_volumes": []}, "changed": false} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [1/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:28 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'disks': [u'vda', u'vdb'], u'name': u'phi', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'4g'}, {u'mount_point': u'/opt/test2', u'name': u'test2', u'size': u'4g'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vda", "vdb"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "phi", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "4g"}, {"mount_point": "/opt/test2", "name": "test2", "size": "4g"}]}]}, "ansible_loop_var": "pool", "changed": false, "pool": {"disks": ["vda", "vdb"], "name": "phi", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "4g"}, {"mount_point": "/opt/test2", "name": "test2", "size": "4g"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [2/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:36 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'phi', u'encryption_password': None, u'encryption': False, u'disks': [u'vda', u'vdb'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'4g'}, {u'mount_point': u'/opt/test2', u'name': u'test2', u'size': u'4g'}], u'type': u'lvm', u'encryption_key_size': None}, {u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'4g'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}], "_storage_vol_pools": ["phi"], "_storage_vols_no_defaults": [{"mount_point": "/opt/test1", "name": "test1", "size": "4g"}]}, "ansible_loop_var": "item", "changed": false, "item": [{"disks": ["vda", "vdb"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "phi", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "4g"}, {"mount_point": "/opt/test2", "name": "test2", "size": "4g"}]}, {"mount_point": "/opt/test1", "name": "test1", "size": "4g"}]} ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'phi', u'encryption_password': None, u'encryption': False, u'disks': [u'vda', u'vdb'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'4g'}, {u'mount_point': u'/opt/test2', u'name': u'test2', u'size': u'4g'}], u'type': u'lvm', u'encryption_key_size': None}, {u'mount_point': u'/opt/test2', u'name': u'test2', u'size': u'4g'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}], "_storage_vol_pools": ["phi", "phi"], "_storage_vols_no_defaults": [{"mount_point": "/opt/test1", "name": "test1", "size": "4g"}, {"mount_point": "/opt/test2", "name": "test2", "size": "4g"}]}, "ansible_loop_var": "item", "changed": false, "item": [{"disks": ["vda", "vdb"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "phi", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "4g"}, {"mount_point": "/opt/test2", "name": "test2", "size": "4g"}]}, {"mount_point": "/opt/test2", "name": "test2", "size": "4g"}]} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [3/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:44 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'4g'}, {u'raid_metadata_version': None, u'encryption_key_size': None, u'encryption_key': None, u'fs_label': u'', u'raid_chunk_size': None, u'mount_device_identifier': u'uuid', u'fs_type': u'xfs', u'mount_options': u'defaults', u'encryption_luks_version': None, u'raid_spare_count': None, u'size': 0, u'mount_point': u'', u'encryption_password': None, u'encryption': False, u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'mount_check': 0, u'mount_passno': 0, u'fs_overwrite_existing': True, u'type': u'lvm', u'encryption_cipher': None, u'fs_create_options': u''}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "phi", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm"}]}, "ansible_index_var": "idx", "ansible_loop_var": "item", "changed": false, "idx": 0, "item": [{"mount_point": "/opt/test1", "name": "test1", "size": "4g"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}]} ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'mount_point': u'/opt/test2', u'name': u'test2', u'size': u'4g'}, {u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'fs_label': u'', u'raid_level': None, u'mount_device_identifier': u'uuid', u'fs_type': u'xfs', u'mount_options': u'defaults', u'encryption_luks_version': None, u'raid_spare_count': None, u'size': 0, u'mount_point': u'', u'encryption_password': None, u'encryption': False, u'raid_chunk_size': None, u'raid_device_count': None, u'state': u'present', u'mount_check': 0, u'mount_passno': 0, u'fs_overwrite_existing': True, u'type': u'lvm', u'encryption_key_size': None, u'fs_create_options': u''}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "phi", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "test2", "pool": "phi", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm"}]}, "ansible_index_var": "idx", "ansible_loop_var": "item", "changed": false, "idx": 1, "item": [{"mount_point": "/opt/test2", "name": "test2", "size": "4g"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}]} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [4/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:52 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'phi', u'encryption_password': None, u'encryption': False, u'disks': [u'vda', u'vdb'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'4g'}, {u'mount_point': u'/opt/test2', u'name': u'test2', u'size': u'4g'}], u'type': u'lvm', u'encryption_key_size': None}) => {"ansible_facts": {"_storage_vols_no_defaults_by_pool": {"phi": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "phi", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "test2", "pool": "phi", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm"}]}}, "ansible_loop_var": "item", "changed": false, "item": {"disks": ["vda", "vdb"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "phi", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "4g"}, {"mount_point": "/opt/test2", "name": "test2", "size": "4g"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [5/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:61 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'phi', u'encryption_password': None, u'encryption': False, u'disks': [u'vda', u'vdb'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'4g'}, {u'mount_point': u'/opt/test2', u'name': u'test2', u'size': u'4g'}], u'type': u'lvm', u'encryption_key_size': None}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vda", "vdb"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "phi", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "phi", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "test2", "pool": "phi", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm"}]}]}, "ansible_index_var": "idx", "ansible_loop_var": "pool", "changed": false, "idx": 0, "pool": {"disks": ["vda", "vdb"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "phi", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "4g"}, {"mount_point": "/opt/test2", "name": "test2", "size": "4g"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [6/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:72 TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools": [ { "disks": [ "vda", "vdb" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "phi", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [ { "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "phi", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm" }, { "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "test2", "pool": "phi", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm" } ] } ] } TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes": [] } TASK [linux-system-roles.storage : get required packages] ********************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": ["lvm2", "xfsprogs"], "pools": [], "volumes": []} TASK [linux-system-roles.storage : make sure required packages are installed] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: lvm2", "Installed: xfsprogs"]} TASK [linux-system-roles.storage : manage the pools and volumes to match the specified state] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:104 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": ["/dev/sda1", "/dev/sr0", "/dev/mapper/phi-test1", "/dev/mapper/phi-test2", "/dev/vdc"], "mounts": [{"dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "/dev/mapper/phi-test1", "state": "mounted"}, {"dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test2", "src": "/dev/mapper/phi-test2", "state": "mounted"}], "packages": ["lvm2", "xfsprogs", "e2fsprogs"], "pools": [{"disks": ["vda", "vdb"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "phi", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"_device": "/dev/mapper/phi-test1", "_kernel_device": "/dev/dm-1", "_mount_id": "/dev/mapper/phi-test1", "_raw_device": "/dev/mapper/phi-test1", "_raw_kernel_device": "/dev/dm-1", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "phi", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm"}, {"_device": "/dev/mapper/phi-test2", "_kernel_device": "/dev/dm-0", "_mount_id": "/dev/mapper/phi-test2", "_raw_device": "/dev/mapper/phi-test2", "_raw_kernel_device": "/dev/dm-0", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "test2", "pool": "phi", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm"}]}], "volumes": []} TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:114 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "blivet_output": { "actions": [], "changed": false, "crypts": [], "failed": false, "leaves": [ "/dev/sda1", "/dev/sr0", "/dev/mapper/phi-test1", "/dev/mapper/phi-test2", "/dev/vdc" ], "mounts": [ { "dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "/dev/mapper/phi-test1", "state": "mounted" }, { "dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test2", "src": "/dev/mapper/phi-test2", "state": "mounted" } ], "packages": [ "lvm2", "xfsprogs", "e2fsprogs" ], "pools": [ { "disks": [ "vda", "vdb" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "phi", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [ { "_device": "/dev/mapper/phi-test1", "_kernel_device": "/dev/dm-1", "_mount_id": "/dev/mapper/phi-test1", "_raw_device": "/dev/mapper/phi-test1", "_raw_kernel_device": "/dev/dm-1", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "phi", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm" }, { "_device": "/dev/mapper/phi-test2", "_kernel_device": "/dev/dm-0", "_mount_id": "/dev/mapper/phi-test2", "_raw_device": "/dev/mapper/phi-test2", "_raw_kernel_device": "/dev/dm-0", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "test2", "pool": "phi", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm" } ] } ], "volumes": [] } } TASK [linux-system-roles.storage : set the list of pools for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:117 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": [{"disks": ["vda", "vdb"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "phi", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"_device": "/dev/mapper/phi-test1", "_kernel_device": "/dev/dm-1", "_mount_id": "/dev/mapper/phi-test1", "_raw_device": "/dev/mapper/phi-test1", "_raw_kernel_device": "/dev/dm-1", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "phi", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm"}, {"_device": "/dev/mapper/phi-test2", "_kernel_device": "/dev/dm-0", "_mount_id": "/dev/mapper/phi-test2", "_raw_device": "/dev/mapper/phi-test2", "_raw_kernel_device": "/dev/dm-0", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "test2", "pool": "phi", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm"}]}]}, "changed": false} TASK [linux-system-roles.storage : set the list of volumes for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:121 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : remove obsolete mounts] ********************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:137 TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:148 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [linux-system-roles.storage : set up new/current mounts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:153 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'src': u'/dev/mapper/phi-test1', u'state': u'mounted', u'dump': 0, u'path': u'/opt/test1', u'passno': 0, u'opts': u'defaults', u'fstype': u'xfs'}) => {"ansible_loop_var": "mount_info", "changed": false, "dump": "0", "fstab": "/etc/fstab", "fstype": "xfs", "mount_info": {"dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "/dev/mapper/phi-test1", "state": "mounted"}, "name": "/opt/test1", "opts": "defaults", "passno": "0", "src": "/dev/mapper/phi-test1"} ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'src': u'/dev/mapper/phi-test2', u'state': u'mounted', u'dump': 0, u'path': u'/opt/test2', u'passno': 0, u'opts': u'defaults', u'fstype': u'xfs'}) => {"ansible_loop_var": "mount_info", "changed": false, "dump": "0", "fstab": "/etc/fstab", "fstype": "xfs", "mount_info": {"dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test2", "src": "/dev/mapper/phi-test2", "state": "mounted"}, "name": "/opt/test2", "opts": "defaults", "passno": "0", "src": "/dev/mapper/phi-test2"} TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:164 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [linux-system-roles.storage : Manage /etc/crypttab to account for changes we just made] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:172 TASK [linux-system-roles.storage : Update facts] ******************************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:187 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_lvm_multiple_disks_multiple_volumes.yml:52 included: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Print out pool information] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:1 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools_list": [ { "disks": [ "vda", "vdb" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "phi", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [ { "_device": "/dev/mapper/phi-test1", "_kernel_device": "/dev/dm-1", "_mount_id": "/dev/mapper/phi-test1", "_raw_device": "/dev/mapper/phi-test1", "_raw_kernel_device": "/dev/dm-1", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "phi", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm" }, { "_device": "/dev/mapper/phi-test2", "_kernel_device": "/dev/dm-0", "_mount_id": "/dev/mapper/phi-test2", "_raw_device": "/dev/mapper/phi-test2", "_raw_kernel_device": "/dev/dm-0", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "test2", "pool": "phi", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm" } ] } ] } TASK [Print out volume information] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:6 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {} TASK [Collect info about the volumes.] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "info": {"/dev/mapper/phi-test1": {"fstype": "xfs", "label": "", "name": "/dev/mapper/phi-test1", "size": "4G", "type": "lvm", "uuid": "8806b478-50c4-4bae-a92f-32415bc6aaa3"}, "/dev/mapper/phi-test2": {"fstype": "xfs", "label": "", "name": "/dev/mapper/phi-test2", "size": "4G", "type": "lvm", "uuid": "6dff3f08-5329-4782-8a41-caf941393c34"}, "/dev/sda": {"fstype": "", "label": "", "name": "/dev/sda", "size": "4G", "type": "disk", "uuid": ""}, "/dev/sda1": {"fstype": "ext4", "label": "", "name": "/dev/sda1", "size": "4G", "type": "partition", "uuid": "03e702b4-e165-4a39-88c9-9e210cd00434"}, "/dev/sr0": {"fstype": "iso9660", "label": "cidata", "name": "/dev/sr0", "size": "364K", "type": "rom", "uuid": "2020-10-31-12-45-28-00"}, "/dev/vda": {"fstype": "LVM2_member", "label": "", "name": "/dev/vda", "size": "10G", "type": "disk", "uuid": "nCglg2-Pc2o-UseW-qvSV-flja-hcoX-V5kTm3"}, "/dev/vdb": {"fstype": "LVM2_member", "label": "", "name": "/dev/vdb", "size": "10G", "type": "disk", "uuid": "pKyadG-zDwx-qaXL-4LtF-VbwE-WuqC-3oGHhE"}, "/dev/vdc": {"fstype": "", "label": "", "name": "/dev/vdc", "size": "10G", "type": "disk", "uuid": ""}}} TASK [Read the /etc/fstab file for volume existence] *************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:19 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/fstab"], "delta": "0:00:00.002689", "end": "2020-10-31 12:48:08.833250", "rc": 0, "start": "2020-10-31 12:48:08.830561", "stderr": "", "stderr_lines": [], "stdout": "\n#\n# /etc/fstab\n# Created by anaconda on Sat Oct 31 08:17:58 2020\n#\n# Accessible filesystems, by reference, are maintained under '/dev/disk/'.\n# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.\n#\n# After editing this file, run 'systemctl daemon-reload' to update systemd\n# units generated from this file.\n#\nUUID=03e702b4-e165-4a39-88c9-9e210cd00434 / ext4 defaults 1 1\n/dev/mapper/phi-test1 /opt/test1 xfs defaults 0 0\n/dev/mapper/phi-test2 /opt/test2 xfs defaults 0 0", "stdout_lines": ["", "#", "# /etc/fstab", "# Created by anaconda on Sat Oct 31 08:17:58 2020", "#", "# Accessible filesystems, by reference, are maintained under '/dev/disk/'.", "# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.", "#", "# After editing this file, run 'systemctl daemon-reload' to update systemd", "# units generated from this file.", "#", "UUID=03e702b4-e165-4a39-88c9-9e210cd00434 / ext4 defaults 1 1", "/dev/mapper/phi-test1 /opt/test1 xfs defaults 0 0", "/dev/mapper/phi-test2 /opt/test2 xfs defaults 0 0"]} TASK [Read the /etc/crypttab file] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/crypttab"], "delta": "0:00:00.003373", "end": "2020-10-31 12:48:09.185291", "rc": 0, "start": "2020-10-31 12:48:09.181918", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Verify the volumes listed in storage_pools were correctly managed] ******* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:32 [WARNING]: The loop variable 'storage_test_pool' is already in use. You should set the `loop_var` value in the `loop_control` option for the task to something else to avoid variable collisions and unexpected behavior. included: /tmp/tmp7ksfxpzz/tests/test-verify-pool.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool.yml:5 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pool_tests": ["members", "volumes"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool.yml:17 included: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-pool-volumes.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:1 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_count": "2", "_storage_test_pool_pvs": [], "_storage_test_pool_pvs_lvm": ["/dev/vdb", "/dev/vda"]}, "changed": false} TASK [Get the canonical device path for each member device] ******************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:7 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=/dev/vdb) => {"ansible_loop_var": "pv", "changed": false, "device": "/dev/vdb", "pv": "/dev/vdb"} ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=/dev/vda) => {"ansible_loop_var": "pv", "changed": false, "device": "/dev/vda", "pv": "/dev/vda"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:16 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=/dev/vdb) => {"ansible_facts": {"_storage_test_pool_pvs": ["/dev/vdb"]}, "ansible_index_var": "idx", "ansible_loop_var": "item", "changed": false, "idx": 0, "item": "/dev/vdb"} ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=/dev/vda) => {"ansible_facts": {"_storage_test_pool_pvs": ["/dev/vdb", "/dev/vda"]}, "ansible_index_var": "idx", "ansible_loop_var": "item", "changed": false, "idx": 1, "item": "/dev/vda"} TASK [Verify PV count] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:23 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:29 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_type": "disk"}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:33 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_type": "disk"}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check the type of each PV] *********************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:41 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=/dev/vdb) => { "ansible_loop_var": "pv", "changed": false, "msg": "All assertions passed", "pv": "/dev/vdb" } ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=/dev/vda) => { "ansible_loop_var": "pv", "changed": false, "msg": "All assertions passed", "pv": "/dev/vda" } TASK [Check raid] ************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:50 included: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [get information about RAID] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:6 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:12 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:16 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:20 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID active devices count] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:24 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID spare devices count] ****************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:30 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID metadata version] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:36 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:44 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_md_active_devices_re": null, "storage_test_md_metadata_version_re": null, "storage_test_md_spare_devices_re": null}, "changed": false} TASK [Check member encryption] ************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:53 included: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_crypttab_entries": "0", "_storage_test_expected_crypttab_key_file": "-"}, "changed": false} TASK [Validate pool member LUKS settings] ************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:8 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=/dev/vdb) => {"_storage_test_pool_member_path": "/dev/vdb", "ansible_loop_var": "_storage_test_pool_member_path", "changed": false, "skip_reason": "Conditional result was False"} skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=/dev/vda) => {"_storage_test_pool_member_path": "/dev/vda", "ansible_loop_var": "_storage_test_pool_member_path", "changed": false, "skip_reason": "Conditional result was False"} TASK [Validate pool member crypttab entries] *********************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:15 included: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:1 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": []}, "changed": false} TASK [Check for /etc/crypttab entry] ******************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Validate the format of the crypttab entry] ******************************* task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:9 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check backing device of crypttab entry] ********************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:15 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check key file of crypttab entry] **************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:27 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:1 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": []}, "changed": false} TASK [Check for /etc/crypttab entry] ******************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Validate the format of the crypttab entry] ******************************* task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:9 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check backing device of crypttab entry] ********************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:15 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check key file of crypttab entry] **************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:27 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:22 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null, "_storage_test_crypttab_key_file": null}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:56 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_count": null, "_storage_test_expected_pv_type": null, "_storage_test_pool_pvs": [], "_storage_test_pool_pvs_lvm": []}, "changed": false} TASK [verify the volumes] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-volumes.yml:3 [WARNING]: The loop variable 'storage_test_volume' is already in use. You should set the `loop_var` value in the `loop_control` option for the task to something else to avoid variable collisions and unexpected behavior. included: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": true, "_storage_volume_tests": ["mount", "fstab", "fs", "device", "encryption", "md", "size"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:10 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Get expected mount device based on device type] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/phi-test1"}, "changed": false} TASK [Set some facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [{"block_available": 1030454, "block_size": 4096, "block_total": 1046016, "block_used": 15562, "device": "/dev/mapper/phi-test1", "fstype": "xfs", "inode_available": 2097149, "inode_total": 2097152, "inode_used": 3, "mount": "/opt/test1", "options": "rw,seclabel,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota", "size_available": 4220739584, "size_total": 4284481536, "uuid": "8806b478-50c4-4bae-a92f-32415bc6aaa3"}], "storage_test_mount_expected_match_count": "1", "storage_test_mount_point_matches": [{"block_available": 1030454, "block_size": 4096, "block_total": 1046016, "block_used": 15562, "device": "/dev/mapper/phi-test1", "fstype": "xfs", "inode_available": 2097149, "inode_total": 2097152, "inode_used": 3, "mount": "/opt/test1", "options": "rw,seclabel,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota", "size_available": 4220739584, "size_total": 4284481536, "uuid": "8806b478-50c4-4bae-a92f-32415bc6aaa3"}], "storage_test_swap_expected_matches": "0"}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:22 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:31 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:39 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [command] ***************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Gather swap info] ******************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:52 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify swap status] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:57 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Unset facts] ************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:67 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null, "storage_test_swap_expected_matches": null, "storage_test_swaps": null, "storage_test_sys_node": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": "1", "storage_test_fstab_expected_mount_point_matches": "1", "storage_test_fstab_id_matches": ["/dev/mapper/phi-test1 "], "storage_test_fstab_mount_point_matches": [" /opt/test1 "]}, "changed": false} TASK [Verify that the device identifier appears in /etc/fstab] ***************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:17 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": null, "storage_test_fstab_expected_mount_point_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [Verify fs type] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify fs label] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [See whether the device node is present] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "stat": {"atime": 1604148460.3595328, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "ctime": 1604148460.3595328, "dev": 5, "device_type": 64769, "executable": false, "exists": true, "gid": 6, "gr_name": "disk", "inode": 68391, "isblk": true, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mimetype": "inode/symlink", "mode": "0660", "mtime": 1604148460.3595328, "nlink": 1, "path": "/dev/mapper/phi-test1", "pw_name": "root", "readable": true, "rgrp": true, "roth": false, "rusr": true, "size": 0, "uid": 0, "version": null, "wgrp": true, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}} TASK [Verify the presence/absence of the device node] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "lvm"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:28 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:33 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Stat the LUKS device, if encrypted] ************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:3 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Collect LUKS info for this volume] *************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:10 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the presence/absence of the LUKS device node] ********************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:16 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify that the raw device is the same as the device if not encrypted] *** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:25 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about the LUKS volume if encrypted] **************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the LUKS volume's device type if encrypted] *********************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS version] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:42 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS key size] ***************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS cipher] ******************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:54 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:60 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": [], "_storage_test_expected_crypttab_entries": "0", "_storage_test_expected_crypttab_key_file": "-"}, "changed": false} TASK [Check for /etc/crypttab entry] ******************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:65 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Validate the format of the crypttab entry] ******************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:70 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check backing device of crypttab entry] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:76 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check key file of crypttab entry] **************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:82 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:88 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null, "_storage_test_expected_crypttab_entries": null, "_storage_test_expected_crypttab_key_file": null}, "changed": false} TASK [get information about RAID] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:7 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:13 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:17 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID active devices count] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:25 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID spare devices count] ****************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID metadata version] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [parse the actual size of the volume] ************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:3 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"bytes": 4294967296, "changed": false, "lvm": "4g", "parted": "4GiB", "size": "4 GiB"} TASK [parse the requested size of the volume] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:9 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"bytes": 4294967296, "changed": false, "lvm": "4g", "parted": "4GiB", "size": "4 GiB"} TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:15 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_actual_size": { "bytes": 4294967296, "changed": false, "failed": false, "lvm": "4g", "parted": "4GiB", "size": "4 GiB" } } TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_requested_size": { "bytes": 4294967296, "changed": false, "failed": false, "lvm": "4g", "parted": "4GiB", "size": "4 GiB" } } TASK [assert] ****************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:21 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:16 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": true, "_storage_volume_tests": ["mount", "fstab", "fs", "device", "encryption", "md", "size"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:10 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Get expected mount device based on device type] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/phi-test2"}, "changed": false} TASK [Set some facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [{"block_available": 1030454, "block_size": 4096, "block_total": 1046016, "block_used": 15562, "device": "/dev/mapper/phi-test2", "fstype": "xfs", "inode_available": 2097149, "inode_total": 2097152, "inode_used": 3, "mount": "/opt/test2", "options": "rw,seclabel,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota", "size_available": 4220739584, "size_total": 4284481536, "uuid": "6dff3f08-5329-4782-8a41-caf941393c34"}], "storage_test_mount_expected_match_count": "1", "storage_test_mount_point_matches": [{"block_available": 1030454, "block_size": 4096, "block_total": 1046016, "block_used": 15562, "device": "/dev/mapper/phi-test2", "fstype": "xfs", "inode_available": 2097149, "inode_total": 2097152, "inode_used": 3, "mount": "/opt/test2", "options": "rw,seclabel,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota", "size_available": 4220739584, "size_total": 4284481536, "uuid": "6dff3f08-5329-4782-8a41-caf941393c34"}], "storage_test_swap_expected_matches": "0"}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:22 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:31 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:39 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [command] ***************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Gather swap info] ******************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:52 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify swap status] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:57 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Unset facts] ************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:67 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null, "storage_test_swap_expected_matches": null, "storage_test_swaps": null, "storage_test_sys_node": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": "1", "storage_test_fstab_expected_mount_point_matches": "1", "storage_test_fstab_id_matches": ["/dev/mapper/phi-test2 "], "storage_test_fstab_mount_point_matches": [" /opt/test2 "]}, "changed": false} TASK [Verify that the device identifier appears in /etc/fstab] ***************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:17 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": null, "storage_test_fstab_expected_mount_point_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [Verify fs type] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify fs label] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [See whether the device node is present] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "stat": {"atime": 1604148460.1655328, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "ctime": 1604148460.1655328, "dev": 5, "device_type": 64768, "executable": false, "exists": true, "gid": 6, "gr_name": "disk", "inode": 68383, "isblk": true, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mimetype": "inode/symlink", "mode": "0660", "mtime": 1604148460.1655328, "nlink": 1, "path": "/dev/mapper/phi-test2", "pw_name": "root", "readable": true, "rgrp": true, "roth": false, "rusr": true, "size": 0, "uid": 0, "version": null, "wgrp": true, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}} TASK [Verify the presence/absence of the device node] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "lvm"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:28 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:33 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Stat the LUKS device, if encrypted] ************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:3 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Collect LUKS info for this volume] *************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:10 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the presence/absence of the LUKS device node] ********************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:16 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify that the raw device is the same as the device if not encrypted] *** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:25 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about the LUKS volume if encrypted] **************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the LUKS volume's device type if encrypted] *********************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS version] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:42 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS key size] ***************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS cipher] ******************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:54 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:60 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": [], "_storage_test_expected_crypttab_entries": "0", "_storage_test_expected_crypttab_key_file": "-"}, "changed": false} TASK [Check for /etc/crypttab entry] ******************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:65 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Validate the format of the crypttab entry] ******************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:70 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check backing device of crypttab entry] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:76 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check key file of crypttab entry] **************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:82 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:88 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null, "_storage_test_expected_crypttab_entries": null, "_storage_test_expected_crypttab_key_file": null}, "changed": false} TASK [get information about RAID] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:7 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:13 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:17 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID active devices count] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:25 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID spare devices count] ****************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID metadata version] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [parse the actual size of the volume] ************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:3 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"bytes": 4294967296, "changed": false, "lvm": "4g", "parted": "4GiB", "size": "4 GiB"} TASK [parse the requested size of the volume] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:9 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"bytes": 4294967296, "changed": false, "lvm": "4g", "parted": "4GiB", "size": "4 GiB"} TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:15 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_actual_size": { "bytes": 4294967296, "changed": false, "failed": false, "lvm": "4g", "parted": "4GiB", "size": "4 GiB" } } TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_requested_size": { "bytes": 4294967296, "changed": false, "failed": false, "lvm": "4g", "parted": "4GiB", "size": "4 GiB" } } TASK [assert] ****************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:21 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:16 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:39 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_pool": null}, "changed": false} TASK [Verify the volumes with no pool were correctly managed] ****************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:46 TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:56 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_blkinfo": null, "storage_test_crypttab": null, "storage_test_fstab": null, "storage_test_volume": null}, "changed": false} TASK [Clean up] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_lvm_multiple_disks_multiple_volumes.yml:54 TASK [linux-system-roles.storage : Set version specific variables] ************* task path: /tmp/tmp7ksfxpzz/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-crypto", "libblockdev-dm", "libblockdev-lvm", "libblockdev-mdraid", "libblockdev-swap"]}, "ansible_included_var_files": ["/tmp/tmp7ksfxpzz/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.storage : define an empty list of pools to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : define an empty list of volumes to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : include the appropriate provider tasks] ***** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:22 included: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [linux-system-roles.storage : get a list of rpm packages installed on host machine] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : make sure blivet is available] ************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: python3-blivet", "Installed: libblockdev-crypto", "Installed: libblockdev-dm", "Installed: libblockdev-lvm", "Installed: libblockdev-mdraid", "Installed: libblockdev-swap"]} TASK [linux-system-roles.storage : initialize internal facts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools": [], "_storage_vol_defaults": [], "_storage_vol_pools": [], "_storage_vols_no_defaults": [], "_storage_vols_no_defaults_by_pool": {}, "_storage_vols_w_defaults": [], "_storage_volumes": []}, "changed": false} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [1/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:28 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'state': u'absent', u'disks': [u'vda', u'vdb'], u'name': u'phi', u'volumes': []}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vda", "vdb"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "phi", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "absent", "type": "lvm", "volumes": []}]}, "ansible_loop_var": "pool", "changed": false, "pool": {"disks": ["vda", "vdb"], "name": "phi", "state": "absent", "volumes": []}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [2/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:36 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [3/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:44 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [4/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:52 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'phi', u'encryption_password': None, u'encryption': False, u'disks': [u'vda', u'vdb'], u'raid_level': None, u'raid_device_count': None, u'state': u'absent', u'volumes': [], u'type': u'lvm', u'encryption_key_size': None}) => {"ansible_facts": {"_storage_vols_no_defaults_by_pool": {"phi": []}}, "ansible_loop_var": "item", "changed": false, "item": {"disks": ["vda", "vdb"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "phi", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "absent", "type": "lvm", "volumes": []}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [5/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:61 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'phi', u'encryption_password': None, u'encryption': False, u'disks': [u'vda', u'vdb'], u'raid_level': None, u'raid_device_count': None, u'state': u'absent', u'volumes': [], u'type': u'lvm', u'encryption_key_size': None}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vda", "vdb"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "phi", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "absent", "type": "lvm", "volumes": []}]}, "ansible_index_var": "idx", "ansible_loop_var": "pool", "changed": false, "idx": 0, "pool": {"disks": ["vda", "vdb"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "phi", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "absent", "type": "lvm", "volumes": []}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [6/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:72 TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools": [ { "disks": [ "vda", "vdb" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "phi", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "absent", "type": "lvm", "volumes": [] } ] } TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes": [] } TASK [linux-system-roles.storage : get required packages] ********************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": []} TASK [linux-system-roles.storage : make sure required packages are installed] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [linux-system-roles.storage : manage the pools and volumes to match the specified state] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:104 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [{"action": "destroy format", "device": "/dev/mapper/phi-test1", "fs_type": "xfs"}, {"action": "destroy device", "device": "/dev/mapper/phi-test1", "fs_type": null}, {"action": "destroy format", "device": "/dev/mapper/phi-test2", "fs_type": "xfs"}, {"action": "destroy device", "device": "/dev/mapper/phi-test2", "fs_type": null}, {"action": "destroy device", "device": "/dev/phi", "fs_type": null}, {"action": "destroy format", "device": "/dev/vdb", "fs_type": "lvmpv"}, {"action": "destroy format", "device": "/dev/vda", "fs_type": "lvmpv"}], "changed": true, "crypts": [], "leaves": ["/dev/sda1", "/dev/sr0", "/dev/vda", "/dev/vdb", "/dev/vdc"], "mounts": [{"fstype": "xfs", "path": "/opt/test1", "src": "/dev/mapper/phi-test1", "state": "absent"}, {"fstype": "xfs", "path": "/opt/test2", "src": "/dev/mapper/phi-test2", "state": "absent"}], "packages": ["e2fsprogs"], "pools": [{"disks": ["vda", "vdb"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "phi", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "absent", "type": "lvm", "volumes": []}], "volumes": []} TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:114 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "blivet_output": { "actions": [ { "action": "destroy format", "device": "/dev/mapper/phi-test1", "fs_type": "xfs" }, { "action": "destroy device", "device": "/dev/mapper/phi-test1", "fs_type": null }, { "action": "destroy format", "device": "/dev/mapper/phi-test2", "fs_type": "xfs" }, { "action": "destroy device", "device": "/dev/mapper/phi-test2", "fs_type": null }, { "action": "destroy device", "device": "/dev/phi", "fs_type": null }, { "action": "destroy format", "device": "/dev/vdb", "fs_type": "lvmpv" }, { "action": "destroy format", "device": "/dev/vda", "fs_type": "lvmpv" } ], "changed": true, "crypts": [], "failed": false, "leaves": [ "/dev/sda1", "/dev/sr0", "/dev/vda", "/dev/vdb", "/dev/vdc" ], "mounts": [ { "fstype": "xfs", "path": "/opt/test1", "src": "/dev/mapper/phi-test1", "state": "absent" }, { "fstype": "xfs", "path": "/opt/test2", "src": "/dev/mapper/phi-test2", "state": "absent" } ], "packages": [ "e2fsprogs" ], "pools": [ { "disks": [ "vda", "vdb" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "phi", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "absent", "type": "lvm", "volumes": [] } ], "volumes": [] } } TASK [linux-system-roles.storage : set the list of pools for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:117 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": [{"disks": ["vda", "vdb"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "phi", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "absent", "type": "lvm", "volumes": []}]}, "changed": false} TASK [linux-system-roles.storage : set the list of volumes for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:121 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : remove obsolete mounts] ********************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:137 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'src': u'/dev/mapper/phi-test1', u'state': u'absent', u'fstype': u'xfs', u'path': u'/opt/test1'}) => {"ansible_loop_var": "mount_info", "changed": true, "dump": "0", "fstab": "/etc/fstab", "fstype": "xfs", "mount_info": {"fstype": "xfs", "path": "/opt/test1", "src": "/dev/mapper/phi-test1", "state": "absent"}, "name": "/opt/test1", "opts": "defaults", "passno": "0", "src": "/dev/mapper/phi-test1"} changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'src': u'/dev/mapper/phi-test2', u'state': u'absent', u'fstype': u'xfs', u'path': u'/opt/test2'}) => {"ansible_loop_var": "mount_info", "changed": true, "dump": "0", "fstab": "/etc/fstab", "fstype": "xfs", "mount_info": {"fstype": "xfs", "path": "/opt/test2", "src": "/dev/mapper/phi-test2", "state": "absent"}, "name": "/opt/test2", "opts": "defaults", "passno": "0", "src": "/dev/mapper/phi-test2"} TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:148 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [linux-system-roles.storage : set up new/current mounts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:153 TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:164 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [linux-system-roles.storage : Manage /etc/crypttab to account for changes we just made] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:172 TASK [linux-system-roles.storage : Update facts] ******************************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:187 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_lvm_multiple_disks_multiple_volumes.yml:64 included: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Print out pool information] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:1 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools_list": [ { "disks": [ "vda", "vdb" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "phi", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "absent", "type": "lvm", "volumes": [] } ] } TASK [Print out volume information] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:6 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {} TASK [Collect info about the volumes.] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "info": {"/dev/sda": {"fstype": "", "label": "", "name": "/dev/sda", "size": "4G", "type": "disk", "uuid": ""}, "/dev/sda1": {"fstype": "ext4", "label": "", "name": "/dev/sda1", "size": "4G", "type": "partition", "uuid": "03e702b4-e165-4a39-88c9-9e210cd00434"}, "/dev/sr0": {"fstype": "iso9660", "label": "cidata", "name": "/dev/sr0", "size": "364K", "type": "rom", "uuid": "2020-10-31-12-45-28-00"}, "/dev/vda": {"fstype": "", "label": "", "name": "/dev/vda", "size": "10G", "type": "disk", "uuid": ""}, "/dev/vdb": {"fstype": "", "label": "", "name": "/dev/vdb", "size": "10G", "type": "disk", "uuid": ""}, "/dev/vdc": {"fstype": "", "label": "", "name": "/dev/vdc", "size": "10G", "type": "disk", "uuid": ""}}} TASK [Read the /etc/fstab file for volume existence] *************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:19 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/fstab"], "delta": "0:00:00.002566", "end": "2020-10-31 12:48:33.677547", "rc": 0, "start": "2020-10-31 12:48:33.674981", "stderr": "", "stderr_lines": [], "stdout": "\n#\n# /etc/fstab\n# Created by anaconda on Sat Oct 31 08:17:58 2020\n#\n# Accessible filesystems, by reference, are maintained under '/dev/disk/'.\n# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.\n#\n# After editing this file, run 'systemctl daemon-reload' to update systemd\n# units generated from this file.\n#\nUUID=03e702b4-e165-4a39-88c9-9e210cd00434 / ext4 defaults 1 1", "stdout_lines": ["", "#", "# /etc/fstab", "# Created by anaconda on Sat Oct 31 08:17:58 2020", "#", "# Accessible filesystems, by reference, are maintained under '/dev/disk/'.", "# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.", "#", "# After editing this file, run 'systemctl daemon-reload' to update systemd", "# units generated from this file.", "#", "UUID=03e702b4-e165-4a39-88c9-9e210cd00434 / ext4 defaults 1 1"]} TASK [Read the /etc/crypttab file] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/crypttab"], "delta": "0:00:00.002430", "end": "2020-10-31 12:48:33.998731", "rc": 0, "start": "2020-10-31 12:48:33.996301", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Verify the volumes listed in storage_pools were correctly managed] ******* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:32 [WARNING]: The loop variable 'storage_test_pool' is already in use. You should set the `loop_var` value in the `loop_control` option for the task to something else to avoid variable collisions and unexpected behavior. included: /tmp/tmp7ksfxpzz/tests/test-verify-pool.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool.yml:5 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pool_tests": ["members", "volumes"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool.yml:17 included: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-pool-volumes.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:1 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_count": "0", "_storage_test_pool_pvs": [], "_storage_test_pool_pvs_lvm": []}, "changed": false} TASK [Get the canonical device path for each member device] ******************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:7 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:16 TASK [Verify PV count] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:23 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:29 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_type": "disk"}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:33 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_type": "disk"}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check the type of each PV] *********************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:41 TASK [Check raid] ************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:50 included: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [get information about RAID] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:6 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:12 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:16 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:20 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID active devices count] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:24 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID spare devices count] ****************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:30 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID metadata version] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:36 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:44 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_md_active_devices_re": null, "storage_test_md_metadata_version_re": null, "storage_test_md_spare_devices_re": null}, "changed": false} TASK [Check member encryption] ************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:53 included: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_crypttab_entries": "0", "_storage_test_expected_crypttab_key_file": "-"}, "changed": false} TASK [Validate pool member LUKS settings] ************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:8 TASK [Validate pool member crypttab entries] *********************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:15 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:22 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null, "_storage_test_crypttab_key_file": null}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:56 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_count": null, "_storage_test_expected_pv_type": null, "_storage_test_pool_pvs": [], "_storage_test_pool_pvs_lvm": []}, "changed": false} TASK [verify the volumes] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-volumes.yml:3 TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:39 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_pool": null}, "changed": false} TASK [Verify the volumes with no pool were correctly managed] ****************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:46 TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:56 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_blkinfo": null, "storage_test_crypttab": null, "storage_test_fstab": null, "storage_test_volume": null}, "changed": false} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 : ok=317 changed=5 unreachable=0 failed=0 skipped=166 rescued=0 ignored=0 + cd /tmp/tmp7ksfxpzz/tests; TEST_SUBJECTS=/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_storage-178-e856157-fedora-31-87qzp9iq/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmp7ksfxpzz/_setup.yml /tmp/tmp7ksfxpzz/tests/tests_lvm_one_disk_multiple_volumes.yml ansible-playbook 2.8.16 config file = /etc/ansible/ansible.cfg configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python2.7/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 2.7.5 (default, Apr 2 2020, 13:16:51) [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)] Using /etc/ansible/ansible.cfg as config file PLAYBOOK: _setup.yml *********************************************************** 1 plays in /tmp/tmp7ksfxpzz/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/_setup.yml:5 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "groups": { "all": [ "/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2" ], "localhost": [ "/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2" ], "subjects": [ "/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmp7ksfxpzz/_setup.yml:6 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 : ok=1 changed=0 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 PLAYBOOK: tests_lvm_one_disk_multiple_volumes.yml ****************************** 1 plays in /tmp/tmp7ksfxpzz/tests/tests_lvm_one_disk_multiple_volumes.yml PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/tests_lvm_one_disk_multiple_volumes.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] META: ran handlers TASK [include_role : linux-system-roles.storage] ******************************* task path: /tmp/tmp7ksfxpzz/tests/tests_lvm_one_disk_multiple_volumes.yml:9 TASK [linux-system-roles.storage : Set version specific variables] ************* task path: /tmp/tmp7ksfxpzz/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-crypto", "libblockdev-dm", "libblockdev-lvm", "libblockdev-mdraid", "libblockdev-swap"]}, "ansible_included_var_files": ["/tmp/tmp7ksfxpzz/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.storage : define an empty list of pools to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : define an empty list of volumes to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : include the appropriate provider tasks] ***** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:22 included: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [linux-system-roles.storage : get a list of rpm packages installed on host machine] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : make sure blivet is available] ************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:7 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: python3-blivet", "Installed: libblockdev-crypto", "Installed: libblockdev-dm", "Installed: libblockdev-lvm", "Installed: libblockdev-mdraid", "Installed: libblockdev-swap", "Installed: libblockdev-kbd-2.24-2.fc31.x86_64", "Installed: nspr-4.29.0-1.fc31.x86_64", "Installed: libblockdev-loop-2.24-2.fc31.x86_64", "Installed: nss-3.57.0-1.fc31.x86_64", "Installed: libblockdev-lvm-2.24-2.fc31.x86_64", "Installed: lsof-4.93.2-2.fc31.x86_64", "Installed: lvm2-2.03.09-1.fc31.x86_64", "Installed: nss-softokn-3.57.0-1.fc31.x86_64", "Installed: libblockdev-mdraid-2.24-2.fc31.x86_64", "Installed: nss-softokn-freebl-3.57.0-1.fc31.x86_64", "Installed: lvm2-libs-2.03.09-1.fc31.x86_64", "Installed: python3-gobject-base-3.34.0-3.fc31.x86_64", "Installed: libblockdev-mpath-2.24-2.fc31.x86_64", "Installed: nss-sysinit-3.57.0-1.fc31.x86_64", "Installed: device-mapper-event-1.02.171-1.fc31.x86_64", "Installed: nss-util-3.57.0-1.fc31.x86_64", "Installed: libblockdev-nvdimm-2.24-2.fc31.x86_64", "Installed: gobject-introspection-1.62.0-1.fc31.x86_64", "Installed: device-mapper-event-libs-1.02.171-1.fc31.x86_64", "Installed: userspace-rcu-0.11.1-2.fc31.x86_64", "Installed: libblockdev-part-2.24-2.fc31.x86_64", "Installed: lzo-2.08-16.fc31.x86_64", "Installed: volume_key-libs-0.3.12-4.fc31.x86_64", "Installed: dmraid-1.0.0.rc16-43.fc31.x86_64", "Installed: libblockdev-swap-2.24-2.fc31.x86_64", "Installed: libblockdev-utils-2.24-2.fc31.x86_64", "Installed: blivet-data-1:3.1.7-2.fc31.noarch", "Installed: device-mapper-multipath-0.8.0-3.fc31.x86_64", "Installed: device-mapper-multipath-libs-0.8.0-3.fc31.x86_64", "Installed: device-mapper-persistent-data-0.8.5-2.fc31.x86_64", "Installed: sgpio-1.2.0.10-24.fc31.x86_64", "Installed: bcache-tools-1.0.8-16.fc31.x86_64", "Installed: python3-blivet-1:3.1.7-2.fc31.noarch", "Installed: daxctl-libs-70.1-1.fc31.x86_64", "Installed: python3-blockdev-2.24-2.fc31.x86_64", "Installed: mdadm-4.1-5.fc31.x86_64", "Installed: python3-pyudev-0.21.0-11.fc31.noarch", "Installed: python3-pyparted-1:3.11.2-2.fc31.x86_64", "Installed: libbytesize-2.3-1.fc31.x86_64", "Installed: libaio-0.3.111-6.fc31.x86_64", "Installed: python3-bytesize-2.3-1.fc31.x86_64", "Installed: libblockdev-2.24-2.fc31.x86_64", "Installed: libblockdev-btrfs-2.24-2.fc31.x86_64", "Installed: btrfs-progs-5.7-4.fc31.x86_64", "Installed: libblockdev-crypto-2.24-2.fc31.x86_64", "Installed: ndctl-70.1-1.fc31.x86_64", "Installed: compat-readline5-5.2-34.fc31.x86_64", "Installed: gdisk-1.0.5-1.fc31.x86_64", "Installed: ndctl-libs-70.1-1.fc31.x86_64", "Installed: libblockdev-dm-2.24-2.fc31.x86_64", "Installed: dmraid-events-1.0.0.rc16-43.fc31.x86_64", "Installed: libblockdev-fs-2.24-2.fc31.x86_64"]} TASK [linux-system-roles.storage : initialize internal facts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools": [], "_storage_vol_defaults": [], "_storage_vol_pools": [], "_storage_vols_no_defaults": [], "_storage_vols_no_defaults_by_pool": {}, "_storage_vols_w_defaults": [], "_storage_volumes": []}, "changed": false} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [1/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:28 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [2/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:36 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [3/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:44 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [4/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:52 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [5/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:61 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [6/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:72 TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools": [] } TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes": [] } TASK [linux-system-roles.storage : get required packages] ********************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": []} TASK [linux-system-roles.storage : make sure required packages are installed] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [linux-system-roles.storage : manage the pools and volumes to match the specified state] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:104 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": []} TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:114 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "blivet_output": { "actions": [], "changed": false, "crypts": [], "failed": false, "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": [] } } TASK [linux-system-roles.storage : set the list of pools for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:117 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : set the list of volumes for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:121 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : remove obsolete mounts] ********************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:137 TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:148 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : set up new/current mounts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:153 TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:164 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : Manage /etc/crypttab to account for changes we just made] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:172 TASK [linux-system-roles.storage : Update facts] ******************************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:187 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_lvm_one_disk_multiple_volumes.yml:12 included: /tmp/tmp7ksfxpzz/tests/get_unused_disk.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Find unused disks in the system] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/get_unused_disk.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "disks": ["vda"]} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/get_unused_disk.yml:8 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"unused_disks": ["vda"]}, "changed": false} TASK [Exit playbook when there's not enough unused disks in the system] ******** task path: /tmp/tmp7ksfxpzz/tests/get_unused_disk.yml:12 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Print unused disks] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/get_unused_disk.yml:17 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "unused_disks": [ "vda" ] } TASK [Create three LVM logical volumes under one volume group] ***************** task path: /tmp/tmp7ksfxpzz/tests/tests_lvm_one_disk_multiple_volumes.yml:17 TASK [linux-system-roles.storage : Set version specific variables] ************* task path: /tmp/tmp7ksfxpzz/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-crypto", "libblockdev-dm", "libblockdev-lvm", "libblockdev-mdraid", "libblockdev-swap"]}, "ansible_included_var_files": ["/tmp/tmp7ksfxpzz/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.storage : define an empty list of pools to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : define an empty list of volumes to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : include the appropriate provider tasks] ***** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:22 included: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [linux-system-roles.storage : get a list of rpm packages installed on host machine] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : make sure blivet is available] ************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: python3-blivet", "Installed: libblockdev-crypto", "Installed: libblockdev-dm", "Installed: libblockdev-lvm", "Installed: libblockdev-mdraid", "Installed: libblockdev-swap"]} TASK [linux-system-roles.storage : initialize internal facts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools": [], "_storage_vol_defaults": [], "_storage_vol_pools": [], "_storage_vols_no_defaults": [], "_storage_vols_no_defaults_by_pool": {}, "_storage_vols_w_defaults": [], "_storage_volumes": []}, "changed": false} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [1/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:28 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'disks': [u'vda'], u'name': u'foo', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'3g'}, {u'mount_point': u'/opt/test2', u'name': u'test2', u'size': u'3g'}, {u'mount_point': u'/opt/test3', u'name': u'test3', u'size': u'3g'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "3g"}, {"mount_point": "/opt/test2", "name": "test2", "size": "3g"}, {"mount_point": "/opt/test3", "name": "test3", "size": "3g"}]}]}, "ansible_loop_var": "pool", "changed": false, "pool": {"disks": ["vda"], "name": "foo", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "3g"}, {"mount_point": "/opt/test2", "name": "test2", "size": "3g"}, {"mount_point": "/opt/test3", "name": "test3", "size": "3g"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [2/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:36 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'3g'}, {u'mount_point': u'/opt/test2', u'name': u'test2', u'size': u'3g'}, {u'mount_point': u'/opt/test3', u'name': u'test3', u'size': u'3g'}], u'type': u'lvm', u'encryption_key_size': None}, {u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'3g'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}], "_storage_vol_pools": ["foo"], "_storage_vols_no_defaults": [{"mount_point": "/opt/test1", "name": "test1", "size": "3g"}]}, "ansible_loop_var": "item", "changed": false, "item": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "3g"}, {"mount_point": "/opt/test2", "name": "test2", "size": "3g"}, {"mount_point": "/opt/test3", "name": "test3", "size": "3g"}]}, {"mount_point": "/opt/test1", "name": "test1", "size": "3g"}]} ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'3g'}, {u'mount_point': u'/opt/test2', u'name': u'test2', u'size': u'3g'}, {u'mount_point': u'/opt/test3', u'name': u'test3', u'size': u'3g'}], u'type': u'lvm', u'encryption_key_size': None}, {u'mount_point': u'/opt/test2', u'name': u'test2', u'size': u'3g'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}], "_storage_vol_pools": ["foo", "foo"], "_storage_vols_no_defaults": [{"mount_point": "/opt/test1", "name": "test1", "size": "3g"}, {"mount_point": "/opt/test2", "name": "test2", "size": "3g"}]}, "ansible_loop_var": "item", "changed": false, "item": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "3g"}, {"mount_point": "/opt/test2", "name": "test2", "size": "3g"}, {"mount_point": "/opt/test3", "name": "test3", "size": "3g"}]}, {"mount_point": "/opt/test2", "name": "test2", "size": "3g"}]} ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'3g'}, {u'mount_point': u'/opt/test2', u'name': u'test2', u'size': u'3g'}, {u'mount_point': u'/opt/test3', u'name': u'test3', u'size': u'3g'}], u'type': u'lvm', u'encryption_key_size': None}, {u'mount_point': u'/opt/test3', u'name': u'test3', u'size': u'3g'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}], "_storage_vol_pools": ["foo", "foo", "foo"], "_storage_vols_no_defaults": [{"mount_point": "/opt/test1", "name": "test1", "size": "3g"}, {"mount_point": "/opt/test2", "name": "test2", "size": "3g"}, {"mount_point": "/opt/test3", "name": "test3", "size": "3g"}]}, "ansible_loop_var": "item", "changed": false, "item": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "3g"}, {"mount_point": "/opt/test2", "name": "test2", "size": "3g"}, {"mount_point": "/opt/test3", "name": "test3", "size": "3g"}]}, {"mount_point": "/opt/test3", "name": "test3", "size": "3g"}]} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [3/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:44 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'3g'}, {u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'fs_label': u'', u'raid_level': None, u'mount_device_identifier': u'uuid', u'fs_type': u'xfs', u'mount_options': u'defaults', u'encryption_luks_version': None, u'raid_spare_count': None, u'size': 0, u'mount_point': u'', u'encryption_password': None, u'encryption': False, u'raid_chunk_size': None, u'raid_device_count': None, u'state': u'present', u'mount_check': 0, u'mount_passno': 0, u'fs_overwrite_existing': True, u'type': u'lvm', u'encryption_key_size': None, u'fs_create_options': u''}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm"}]}, "ansible_index_var": "idx", "ansible_loop_var": "item", "changed": false, "idx": 0, "item": [{"mount_point": "/opt/test1", "name": "test1", "size": "3g"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}]} ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'mount_point': u'/opt/test2', u'name': u'test2', u'size': u'3g'}, {u'raid_metadata_version': None, u'encryption_key_size': None, u'encryption_key': None, u'fs_label': u'', u'raid_chunk_size': None, u'mount_device_identifier': u'uuid', u'fs_type': u'xfs', u'mount_options': u'defaults', u'encryption_luks_version': None, u'raid_spare_count': None, u'size': 0, u'mount_point': u'', u'encryption_password': None, u'encryption': False, u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'mount_check': 0, u'mount_passno': 0, u'fs_overwrite_existing': True, u'type': u'lvm', u'encryption_cipher': None, u'fs_create_options': u''}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "test2", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm"}]}, "ansible_index_var": "idx", "ansible_loop_var": "item", "changed": false, "idx": 1, "item": [{"mount_point": "/opt/test2", "name": "test2", "size": "3g"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}]} ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'mount_point': u'/opt/test3', u'name': u'test3', u'size': u'3g'}, {u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'fs_label': u'', u'raid_level': None, u'mount_device_identifier': u'uuid', u'fs_type': u'xfs', u'mount_options': u'defaults', u'encryption_luks_version': None, u'raid_spare_count': None, u'size': 0, u'mount_point': u'', u'encryption_password': None, u'encryption': False, u'raid_chunk_size': None, u'raid_device_count': None, u'state': u'present', u'mount_check': 0, u'mount_passno': 0, u'fs_overwrite_existing': True, u'type': u'lvm', u'encryption_key_size': None, u'fs_create_options': u''}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "test2", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test3", "name": "test3", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm"}]}, "ansible_index_var": "idx", "ansible_loop_var": "item", "changed": false, "idx": 2, "item": [{"mount_point": "/opt/test3", "name": "test3", "size": "3g"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}]} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [4/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:52 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'3g'}, {u'mount_point': u'/opt/test2', u'name': u'test2', u'size': u'3g'}, {u'mount_point': u'/opt/test3', u'name': u'test3', u'size': u'3g'}], u'type': u'lvm', u'encryption_key_size': None}) => {"ansible_facts": {"_storage_vols_no_defaults_by_pool": {"foo": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "test2", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test3", "name": "test3", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm"}]}}, "ansible_loop_var": "item", "changed": false, "item": {"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "3g"}, {"mount_point": "/opt/test2", "name": "test2", "size": "3g"}, {"mount_point": "/opt/test3", "name": "test3", "size": "3g"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [5/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:61 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'3g'}, {u'mount_point': u'/opt/test2', u'name': u'test2', u'size': u'3g'}, {u'mount_point': u'/opt/test3', u'name': u'test3', u'size': u'3g'}], u'type': u'lvm', u'encryption_key_size': None}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "test2", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test3", "name": "test3", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm"}]}]}, "ansible_index_var": "idx", "ansible_loop_var": "pool", "changed": false, "idx": 0, "pool": {"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "3g"}, {"mount_point": "/opt/test2", "name": "test2", "size": "3g"}, {"mount_point": "/opt/test3", "name": "test3", "size": "3g"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [6/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:72 TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [ { "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm" }, { "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "test2", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm" }, { "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test3", "name": "test3", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm" } ] } ] } TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes": [] } TASK [linux-system-roles.storage : get required packages] ********************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": ["lvm2", "xfsprogs"], "pools": [], "volumes": []} TASK [linux-system-roles.storage : make sure required packages are installed] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: lvm2", "Installed: xfsprogs"]} TASK [linux-system-roles.storage : manage the pools and volumes to match the specified state] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:104 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [{"action": "create format", "device": "/dev/vda", "fs_type": "lvmpv"}, {"action": "create device", "device": "/dev/foo", "fs_type": null}, {"action": "create device", "device": "/dev/mapper/foo-test3", "fs_type": null}, {"action": "create format", "device": "/dev/mapper/foo-test3", "fs_type": "xfs"}, {"action": "create device", "device": "/dev/mapper/foo-test2", "fs_type": null}, {"action": "create format", "device": "/dev/mapper/foo-test2", "fs_type": "xfs"}, {"action": "create device", "device": "/dev/mapper/foo-test1", "fs_type": null}, {"action": "create format", "device": "/dev/mapper/foo-test1", "fs_type": "xfs"}], "changed": true, "crypts": [], "leaves": ["/dev/sda1", "/dev/sr0", "/dev/vdb", "/dev/vdc", "/dev/mapper/foo-test1", "/dev/mapper/foo-test2", "/dev/mapper/foo-test3"], "mounts": [{"dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "/dev/mapper/foo-test1", "state": "mounted"}, {"dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test2", "src": "/dev/mapper/foo-test2", "state": "mounted"}, {"dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test3", "src": "/dev/mapper/foo-test3", "state": "mounted"}], "packages": ["lvm2", "xfsprogs", "e2fsprogs"], "pools": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"_device": "/dev/mapper/foo-test1", "_kernel_device": "/dev/dm-2", "_mount_id": "/dev/mapper/foo-test1", "_raw_device": "/dev/mapper/foo-test1", "_raw_kernel_device": "/dev/dm-2", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm"}, {"_device": "/dev/mapper/foo-test2", "_kernel_device": "/dev/dm-1", "_mount_id": "/dev/mapper/foo-test2", "_raw_device": "/dev/mapper/foo-test2", "_raw_kernel_device": "/dev/dm-1", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "test2", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm"}, {"_device": "/dev/mapper/foo-test3", "_kernel_device": "/dev/dm-0", "_mount_id": "/dev/mapper/foo-test3", "_raw_device": "/dev/mapper/foo-test3", "_raw_kernel_device": "/dev/dm-0", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test3", "name": "test3", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm"}]}], "volumes": []} TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:114 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "blivet_output": { "actions": [ { "action": "create format", "device": "/dev/vda", "fs_type": "lvmpv" }, { "action": "create device", "device": "/dev/foo", "fs_type": null }, { "action": "create device", "device": "/dev/mapper/foo-test3", "fs_type": null }, { "action": "create format", "device": "/dev/mapper/foo-test3", "fs_type": "xfs" }, { "action": "create device", "device": "/dev/mapper/foo-test2", "fs_type": null }, { "action": "create format", "device": "/dev/mapper/foo-test2", "fs_type": "xfs" }, { "action": "create device", "device": "/dev/mapper/foo-test1", "fs_type": null }, { "action": "create format", "device": "/dev/mapper/foo-test1", "fs_type": "xfs" } ], "changed": true, "crypts": [], "failed": false, "leaves": [ "/dev/sda1", "/dev/sr0", "/dev/vdb", "/dev/vdc", "/dev/mapper/foo-test1", "/dev/mapper/foo-test2", "/dev/mapper/foo-test3" ], "mounts": [ { "dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "/dev/mapper/foo-test1", "state": "mounted" }, { "dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test2", "src": "/dev/mapper/foo-test2", "state": "mounted" }, { "dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test3", "src": "/dev/mapper/foo-test3", "state": "mounted" } ], "packages": [ "lvm2", "xfsprogs", "e2fsprogs" ], "pools": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [ { "_device": "/dev/mapper/foo-test1", "_kernel_device": "/dev/dm-2", "_mount_id": "/dev/mapper/foo-test1", "_raw_device": "/dev/mapper/foo-test1", "_raw_kernel_device": "/dev/dm-2", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm" }, { "_device": "/dev/mapper/foo-test2", "_kernel_device": "/dev/dm-1", "_mount_id": "/dev/mapper/foo-test2", "_raw_device": "/dev/mapper/foo-test2", "_raw_kernel_device": "/dev/dm-1", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "test2", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm" }, { "_device": "/dev/mapper/foo-test3", "_kernel_device": "/dev/dm-0", "_mount_id": "/dev/mapper/foo-test3", "_raw_device": "/dev/mapper/foo-test3", "_raw_kernel_device": "/dev/dm-0", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test3", "name": "test3", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm" } ] } ], "volumes": [] } } TASK [linux-system-roles.storage : set the list of pools for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:117 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"_device": "/dev/mapper/foo-test1", "_kernel_device": "/dev/dm-2", "_mount_id": "/dev/mapper/foo-test1", "_raw_device": "/dev/mapper/foo-test1", "_raw_kernel_device": "/dev/dm-2", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm"}, {"_device": "/dev/mapper/foo-test2", "_kernel_device": "/dev/dm-1", "_mount_id": "/dev/mapper/foo-test2", "_raw_device": "/dev/mapper/foo-test2", "_raw_kernel_device": "/dev/dm-1", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "test2", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm"}, {"_device": "/dev/mapper/foo-test3", "_kernel_device": "/dev/dm-0", "_mount_id": "/dev/mapper/foo-test3", "_raw_device": "/dev/mapper/foo-test3", "_raw_kernel_device": "/dev/dm-0", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test3", "name": "test3", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm"}]}]}, "changed": false} TASK [linux-system-roles.storage : set the list of volumes for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:121 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : remove obsolete mounts] ********************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:137 TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:148 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [linux-system-roles.storage : set up new/current mounts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:153 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'src': u'/dev/mapper/foo-test1', u'state': u'mounted', u'dump': 0, u'path': u'/opt/test1', u'passno': 0, u'opts': u'defaults', u'fstype': u'xfs'}) => {"ansible_loop_var": "mount_info", "changed": true, "dump": "0", "fstab": "/etc/fstab", "fstype": "xfs", "mount_info": {"dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "/dev/mapper/foo-test1", "state": "mounted"}, "name": "/opt/test1", "opts": "defaults", "passno": "0", "src": "/dev/mapper/foo-test1"} changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'src': u'/dev/mapper/foo-test2', u'state': u'mounted', u'dump': 0, u'path': u'/opt/test2', u'passno': 0, u'opts': u'defaults', u'fstype': u'xfs'}) => {"ansible_loop_var": "mount_info", "changed": true, "dump": "0", "fstab": "/etc/fstab", "fstype": "xfs", "mount_info": {"dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test2", "src": "/dev/mapper/foo-test2", "state": "mounted"}, "name": "/opt/test2", "opts": "defaults", "passno": "0", "src": "/dev/mapper/foo-test2"} changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'src': u'/dev/mapper/foo-test3', u'state': u'mounted', u'dump': 0, u'path': u'/opt/test3', u'passno': 0, u'opts': u'defaults', u'fstype': u'xfs'}) => {"ansible_loop_var": "mount_info", "changed": true, "dump": "0", "fstab": "/etc/fstab", "fstype": "xfs", "mount_info": {"dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test3", "src": "/dev/mapper/foo-test3", "state": "mounted"}, "name": "/opt/test3", "opts": "defaults", "passno": "0", "src": "/dev/mapper/foo-test3"} TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:164 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [linux-system-roles.storage : Manage /etc/crypttab to account for changes we just made] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:172 TASK [linux-system-roles.storage : Update facts] ******************************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:187 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_lvm_one_disk_multiple_volumes.yml:35 included: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Print out pool information] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:1 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools_list": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [ { "_device": "/dev/mapper/foo-test1", "_kernel_device": "/dev/dm-2", "_mount_id": "/dev/mapper/foo-test1", "_raw_device": "/dev/mapper/foo-test1", "_raw_kernel_device": "/dev/dm-2", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm" }, { "_device": "/dev/mapper/foo-test2", "_kernel_device": "/dev/dm-1", "_mount_id": "/dev/mapper/foo-test2", "_raw_device": "/dev/mapper/foo-test2", "_raw_kernel_device": "/dev/dm-1", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "test2", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm" }, { "_device": "/dev/mapper/foo-test3", "_kernel_device": "/dev/dm-0", "_mount_id": "/dev/mapper/foo-test3", "_raw_device": "/dev/mapper/foo-test3", "_raw_kernel_device": "/dev/dm-0", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test3", "name": "test3", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm" } ] } ] } TASK [Print out volume information] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:6 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {} TASK [Collect info about the volumes.] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "info": {"/dev/mapper/foo-test1": {"fstype": "xfs", "label": "", "name": "/dev/mapper/foo-test1", "size": "3G", "type": "lvm", "uuid": "97bee658-ca07-484c-b441-5d87ca1bd54c"}, "/dev/mapper/foo-test2": {"fstype": "xfs", "label": "", "name": "/dev/mapper/foo-test2", "size": "3G", "type": "lvm", "uuid": "e02e25b6-152d-4a45-8a5e-435c7521e6e4"}, "/dev/mapper/foo-test3": {"fstype": "xfs", "label": "", "name": "/dev/mapper/foo-test3", "size": "3G", "type": "lvm", "uuid": "31be6f93-33d0-4da0-bc80-2e47e09dd1c6"}, "/dev/sda": {"fstype": "", "label": "", "name": "/dev/sda", "size": "4G", "type": "disk", "uuid": ""}, "/dev/sda1": {"fstype": "ext4", "label": "", "name": "/dev/sda1", "size": "4G", "type": "partition", "uuid": "03e702b4-e165-4a39-88c9-9e210cd00434"}, "/dev/sr0": {"fstype": "iso9660", "label": "cidata", "name": "/dev/sr0", "size": "364K", "type": "rom", "uuid": "2020-10-31-12-48-35-00"}, "/dev/vda": {"fstype": "LVM2_member", "label": "", "name": "/dev/vda", "size": "10G", "type": "disk", "uuid": "Rdcc1J-umum-hzK6-Vh71-Snfm-vtyP-PgJyL9"}, "/dev/vdb": {"fstype": "", "label": "", "name": "/dev/vdb", "size": "10G", "type": "disk", "uuid": ""}, "/dev/vdc": {"fstype": "", "label": "", "name": "/dev/vdc", "size": "10G", "type": "disk", "uuid": ""}}} TASK [Read the /etc/fstab file for volume existence] *************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:19 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/fstab"], "delta": "0:00:00.002362", "end": "2020-10-31 12:50:13.389148", "rc": 0, "start": "2020-10-31 12:50:13.386786", "stderr": "", "stderr_lines": [], "stdout": "\n#\n# /etc/fstab\n# Created by anaconda on Sat Oct 31 08:17:58 2020\n#\n# Accessible filesystems, by reference, are maintained under '/dev/disk/'.\n# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.\n#\n# After editing this file, run 'systemctl daemon-reload' to update systemd\n# units generated from this file.\n#\nUUID=03e702b4-e165-4a39-88c9-9e210cd00434 / ext4 defaults 1 1\n/dev/mapper/foo-test1 /opt/test1 xfs defaults 0 0\n/dev/mapper/foo-test2 /opt/test2 xfs defaults 0 0\n/dev/mapper/foo-test3 /opt/test3 xfs defaults 0 0", "stdout_lines": ["", "#", "# /etc/fstab", "# Created by anaconda on Sat Oct 31 08:17:58 2020", "#", "# Accessible filesystems, by reference, are maintained under '/dev/disk/'.", "# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.", "#", "# After editing this file, run 'systemctl daemon-reload' to update systemd", "# units generated from this file.", "#", "UUID=03e702b4-e165-4a39-88c9-9e210cd00434 / ext4 defaults 1 1", "/dev/mapper/foo-test1 /opt/test1 xfs defaults 0 0", "/dev/mapper/foo-test2 /opt/test2 xfs defaults 0 0", "/dev/mapper/foo-test3 /opt/test3 xfs defaults 0 0"]} TASK [Read the /etc/crypttab file] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/crypttab"], "delta": "0:00:00.002811", "end": "2020-10-31 12:50:13.728070", "rc": 0, "start": "2020-10-31 12:50:13.725259", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Verify the volumes listed in storage_pools were correctly managed] ******* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:32 included: /tmp/tmp7ksfxpzz/tests/test-verify-pool.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool.yml:5 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pool_tests": ["members", "volumes"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool.yml:17 included: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-pool-volumes.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:1 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_count": "1", "_storage_test_pool_pvs": [], "_storage_test_pool_pvs_lvm": ["/dev/vda"]}, "changed": false} TASK [Get the canonical device path for each member device] ******************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:7 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=/dev/vda) => {"ansible_loop_var": "pv", "changed": false, "device": "/dev/vda", "pv": "/dev/vda"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:16 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=/dev/vda) => {"ansible_facts": {"_storage_test_pool_pvs": ["/dev/vda"]}, "ansible_index_var": "idx", "ansible_loop_var": "item", "changed": false, "idx": 0, "item": "/dev/vda"} TASK [Verify PV count] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:23 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:29 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_type": "disk"}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:33 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_type": "disk"}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check the type of each PV] *********************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:41 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=/dev/vda) => { "ansible_loop_var": "pv", "changed": false, "msg": "All assertions passed", "pv": "/dev/vda" } TASK [Check raid] ************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:50 included: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [get information about RAID] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:6 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:12 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:16 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:20 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID active devices count] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:24 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID spare devices count] ****************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:30 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID metadata version] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:36 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:44 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_md_active_devices_re": null, "storage_test_md_metadata_version_re": null, "storage_test_md_spare_devices_re": null}, "changed": false} TASK [Check member encryption] ************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:53 included: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_crypttab_entries": "0", "_storage_test_expected_crypttab_key_file": "-"}, "changed": false} TASK [Validate pool member LUKS settings] ************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:8 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=/dev/vda) => {"_storage_test_pool_member_path": "/dev/vda", "ansible_loop_var": "_storage_test_pool_member_path", "changed": false, "skip_reason": "Conditional result was False"} TASK [Validate pool member crypttab entries] *********************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:15 included: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:1 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": []}, "changed": false} TASK [Check for /etc/crypttab entry] ******************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Validate the format of the crypttab entry] ******************************* task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:9 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check backing device of crypttab entry] ********************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:15 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check key file of crypttab entry] **************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:27 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:22 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null, "_storage_test_crypttab_key_file": null}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:56 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_count": null, "_storage_test_expected_pv_type": null, "_storage_test_pool_pvs": [], "_storage_test_pool_pvs_lvm": []}, "changed": false} TASK [verify the volumes] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-volumes.yml:3 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": true, "_storage_volume_tests": ["mount", "fstab", "fs", "device", "encryption", "md", "size"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:10 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Get expected mount device based on device type] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/foo-test1"}, "changed": false} TASK [Set some facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [{"block_available": 770146, "block_size": 4096, "block_total": 783872, "block_used": 13726, "device": "/dev/mapper/foo-test1", "fstype": "xfs", "inode_available": 1572861, "inode_total": 1572864, "inode_used": 3, "mount": "/opt/test1", "options": "rw,seclabel,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota", "size_available": 3154518016, "size_total": 3210739712, "uuid": "97bee658-ca07-484c-b441-5d87ca1bd54c"}], "storage_test_mount_expected_match_count": "1", "storage_test_mount_point_matches": [{"block_available": 770146, "block_size": 4096, "block_total": 783872, "block_used": 13726, "device": "/dev/mapper/foo-test1", "fstype": "xfs", "inode_available": 1572861, "inode_total": 1572864, "inode_used": 3, "mount": "/opt/test1", "options": "rw,seclabel,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota", "size_available": 3154518016, "size_total": 3210739712, "uuid": "97bee658-ca07-484c-b441-5d87ca1bd54c"}], "storage_test_swap_expected_matches": "0"}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:22 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:31 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:39 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [command] ***************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Gather swap info] ******************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:52 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify swap status] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:57 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Unset facts] ************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:67 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null, "storage_test_swap_expected_matches": null, "storage_test_swaps": null, "storage_test_sys_node": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": "1", "storage_test_fstab_expected_mount_point_matches": "1", "storage_test_fstab_id_matches": ["/dev/mapper/foo-test1 "], "storage_test_fstab_mount_point_matches": [" /opt/test1 "]}, "changed": false} TASK [Verify that the device identifier appears in /etc/fstab] ***************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:17 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": null, "storage_test_fstab_expected_mount_point_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [Verify fs type] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify fs label] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [See whether the device node is present] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "stat": {"atime": 1604148608.4277904, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "ctime": 1604148608.4277904, "dev": 5, "device_type": 64770, "executable": false, "exists": true, "gid": 6, "gr_name": "disk", "inode": 1848, "isblk": true, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mimetype": "inode/symlink", "mode": "0660", "mtime": 1604148608.4277904, "nlink": 1, "path": "/dev/mapper/foo-test1", "pw_name": "root", "readable": true, "rgrp": true, "roth": false, "rusr": true, "size": 0, "uid": 0, "version": null, "wgrp": true, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}} TASK [Verify the presence/absence of the device node] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "lvm"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:28 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:33 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Stat the LUKS device, if encrypted] ************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:3 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Collect LUKS info for this volume] *************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:10 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the presence/absence of the LUKS device node] ********************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:16 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify that the raw device is the same as the device if not encrypted] *** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:25 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about the LUKS volume if encrypted] **************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the LUKS volume's device type if encrypted] *********************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS version] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:42 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS key size] ***************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS cipher] ******************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:54 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:60 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": [], "_storage_test_expected_crypttab_entries": "0", "_storage_test_expected_crypttab_key_file": "-"}, "changed": false} TASK [Check for /etc/crypttab entry] ******************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:65 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Validate the format of the crypttab entry] ******************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:70 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check backing device of crypttab entry] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:76 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check key file of crypttab entry] **************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:82 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:88 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null, "_storage_test_expected_crypttab_entries": null, "_storage_test_expected_crypttab_key_file": null}, "changed": false} TASK [get information about RAID] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:7 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:13 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:17 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID active devices count] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:25 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID spare devices count] ****************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID metadata version] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [parse the actual size of the volume] ************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:3 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"bytes": 3221225472, "changed": false, "lvm": "3g", "parted": "3GiB", "size": "3 GiB"} TASK [parse the requested size of the volume] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:9 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"bytes": 3221225472, "changed": false, "lvm": "3g", "parted": "3GiB", "size": "3 GiB"} TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:15 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_actual_size": { "bytes": 3221225472, "changed": false, "failed": false, "lvm": "3g", "parted": "3GiB", "size": "3 GiB" } } TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_requested_size": { "bytes": 3221225472, "changed": false, "failed": false, "lvm": "3g", "parted": "3GiB", "size": "3 GiB" } } TASK [assert] ****************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:21 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:16 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": true, "_storage_volume_tests": ["mount", "fstab", "fs", "device", "encryption", "md", "size"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:10 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Get expected mount device based on device type] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/foo-test2"}, "changed": false} TASK [Set some facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [{"block_available": 770146, "block_size": 4096, "block_total": 783872, "block_used": 13726, "device": "/dev/mapper/foo-test2", "fstype": "xfs", "inode_available": 1572861, "inode_total": 1572864, "inode_used": 3, "mount": "/opt/test2", "options": "rw,seclabel,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota", "size_available": 3154518016, "size_total": 3210739712, "uuid": "e02e25b6-152d-4a45-8a5e-435c7521e6e4"}], "storage_test_mount_expected_match_count": "1", "storage_test_mount_point_matches": [{"block_available": 770146, "block_size": 4096, "block_total": 783872, "block_used": 13726, "device": "/dev/mapper/foo-test2", "fstype": "xfs", "inode_available": 1572861, "inode_total": 1572864, "inode_used": 3, "mount": "/opt/test2", "options": "rw,seclabel,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota", "size_available": 3154518016, "size_total": 3210739712, "uuid": "e02e25b6-152d-4a45-8a5e-435c7521e6e4"}], "storage_test_swap_expected_matches": "0"}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:22 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:31 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:39 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [command] ***************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Gather swap info] ******************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:52 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify swap status] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:57 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Unset facts] ************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:67 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null, "storage_test_swap_expected_matches": null, "storage_test_swaps": null, "storage_test_sys_node": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": "1", "storage_test_fstab_expected_mount_point_matches": "1", "storage_test_fstab_id_matches": ["/dev/mapper/foo-test2 "], "storage_test_fstab_mount_point_matches": [" /opt/test2 "]}, "changed": false} TASK [Verify that the device identifier appears in /etc/fstab] ***************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:17 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": null, "storage_test_fstab_expected_mount_point_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [Verify fs type] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify fs label] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [See whether the device node is present] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "stat": {"atime": 1604148608.2087905, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "ctime": 1604148608.2087905, "dev": 5, "device_type": 64769, "executable": false, "exists": true, "gid": 6, "gr_name": "disk", "inode": 1847, "isblk": true, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mimetype": "inode/symlink", "mode": "0660", "mtime": 1604148608.2087905, "nlink": 1, "path": "/dev/mapper/foo-test2", "pw_name": "root", "readable": true, "rgrp": true, "roth": false, "rusr": true, "size": 0, "uid": 0, "version": null, "wgrp": true, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}} TASK [Verify the presence/absence of the device node] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "lvm"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:28 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:33 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Stat the LUKS device, if encrypted] ************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:3 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Collect LUKS info for this volume] *************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:10 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the presence/absence of the LUKS device node] ********************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:16 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify that the raw device is the same as the device if not encrypted] *** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:25 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about the LUKS volume if encrypted] **************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the LUKS volume's device type if encrypted] *********************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS version] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:42 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS key size] ***************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS cipher] ******************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:54 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:60 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": [], "_storage_test_expected_crypttab_entries": "0", "_storage_test_expected_crypttab_key_file": "-"}, "changed": false} TASK [Check for /etc/crypttab entry] ******************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:65 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Validate the format of the crypttab entry] ******************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:70 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check backing device of crypttab entry] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:76 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check key file of crypttab entry] **************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:82 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:88 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null, "_storage_test_expected_crypttab_entries": null, "_storage_test_expected_crypttab_key_file": null}, "changed": false} TASK [get information about RAID] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:7 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:13 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:17 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID active devices count] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:25 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID spare devices count] ****************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID metadata version] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [parse the actual size of the volume] ************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:3 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"bytes": 3221225472, "changed": false, "lvm": "3g", "parted": "3GiB", "size": "3 GiB"} TASK [parse the requested size of the volume] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:9 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"bytes": 3221225472, "changed": false, "lvm": "3g", "parted": "3GiB", "size": "3 GiB"} TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:15 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_actual_size": { "bytes": 3221225472, "changed": false, "failed": false, "lvm": "3g", "parted": "3GiB", "size": "3 GiB" } } TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_requested_size": { "bytes": 3221225472, "changed": false, "failed": false, "lvm": "3g", "parted": "3GiB", "size": "3 GiB" } } TASK [assert] ****************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:21 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:16 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": true, "_storage_volume_tests": ["mount", "fstab", "fs", "device", "encryption", "md", "size"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:10 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Get expected mount device based on device type] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/foo-test3"}, "changed": false} TASK [Set some facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [{"block_available": 770146, "block_size": 4096, "block_total": 783872, "block_used": 13726, "device": "/dev/mapper/foo-test3", "fstype": "xfs", "inode_available": 1572861, "inode_total": 1572864, "inode_used": 3, "mount": "/opt/test3", "options": "rw,seclabel,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota", "size_available": 3154518016, "size_total": 3210739712, "uuid": "31be6f93-33d0-4da0-bc80-2e47e09dd1c6"}], "storage_test_mount_expected_match_count": "1", "storage_test_mount_point_matches": [{"block_available": 770146, "block_size": 4096, "block_total": 783872, "block_used": 13726, "device": "/dev/mapper/foo-test3", "fstype": "xfs", "inode_available": 1572861, "inode_total": 1572864, "inode_used": 3, "mount": "/opt/test3", "options": "rw,seclabel,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota", "size_available": 3154518016, "size_total": 3210739712, "uuid": "31be6f93-33d0-4da0-bc80-2e47e09dd1c6"}], "storage_test_swap_expected_matches": "0"}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:22 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:31 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:39 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [command] ***************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Gather swap info] ******************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:52 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify swap status] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:57 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Unset facts] ************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:67 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null, "storage_test_swap_expected_matches": null, "storage_test_swaps": null, "storage_test_sys_node": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": "1", "storage_test_fstab_expected_mount_point_matches": "1", "storage_test_fstab_id_matches": ["/dev/mapper/foo-test3 "], "storage_test_fstab_mount_point_matches": [" /opt/test3 "]}, "changed": false} TASK [Verify that the device identifier appears in /etc/fstab] ***************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:17 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": null, "storage_test_fstab_expected_mount_point_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [Verify fs type] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify fs label] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [See whether the device node is present] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "stat": {"atime": 1604148607.9827905, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "ctime": 1604148607.9827905, "dev": 5, "device_type": 64768, "executable": false, "exists": true, "gid": 6, "gr_name": "disk", "inode": 1846, "isblk": true, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mimetype": "inode/symlink", "mode": "0660", "mtime": 1604148607.9827905, "nlink": 1, "path": "/dev/mapper/foo-test3", "pw_name": "root", "readable": true, "rgrp": true, "roth": false, "rusr": true, "size": 0, "uid": 0, "version": null, "wgrp": true, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}} TASK [Verify the presence/absence of the device node] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "lvm"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:28 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:33 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Stat the LUKS device, if encrypted] ************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:3 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Collect LUKS info for this volume] *************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:10 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the presence/absence of the LUKS device node] ********************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:16 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify that the raw device is the same as the device if not encrypted] *** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:25 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about the LUKS volume if encrypted] **************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the LUKS volume's device type if encrypted] *********************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS version] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:42 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS key size] ***************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS cipher] ******************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:54 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:60 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": [], "_storage_test_expected_crypttab_entries": "0", "_storage_test_expected_crypttab_key_file": "-"}, "changed": false} TASK [Check for /etc/crypttab entry] ******************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:65 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Validate the format of the crypttab entry] ******************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:70 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check backing device of crypttab entry] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:76 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check key file of crypttab entry] **************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:82 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:88 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null, "_storage_test_expected_crypttab_entries": null, "_storage_test_expected_crypttab_key_file": null}, "changed": false} TASK [get information about RAID] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:7 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:13 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:17 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID active devices count] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:25 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID spare devices count] ****************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID metadata version] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [parse the actual size of the volume] ************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:3 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"bytes": 3221225472, "changed": false, "lvm": "3g", "parted": "3GiB", "size": "3 GiB"} TASK [parse the requested size of the volume] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:9 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"bytes": 3221225472, "changed": false, "lvm": "3g", "parted": "3GiB", "size": "3 GiB"} TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:15 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_actual_size": { "bytes": 3221225472, "changed": false, "failed": false, "lvm": "3g", "parted": "3GiB", "size": "3 GiB" } } TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_requested_size": { "bytes": 3221225472, "changed": false, "failed": false, "lvm": "3g", "parted": "3GiB", "size": "3 GiB" } } TASK [assert] ****************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:21 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:16 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:39 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_pool": null}, "changed": false} TASK [Verify the volumes with no pool were correctly managed] ****************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:46 TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:56 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_blkinfo": null, "storage_test_crypttab": null, "storage_test_fstab": null, "storage_test_volume": null}, "changed": false} TASK [Repeat the previous invocation to verify idempotence] ******************** task path: /tmp/tmp7ksfxpzz/tests/tests_lvm_one_disk_multiple_volumes.yml:37 TASK [linux-system-roles.storage : Set version specific variables] ************* task path: /tmp/tmp7ksfxpzz/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-crypto", "libblockdev-dm", "libblockdev-lvm", "libblockdev-mdraid", "libblockdev-swap"]}, "ansible_included_var_files": ["/tmp/tmp7ksfxpzz/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.storage : define an empty list of pools to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : define an empty list of volumes to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : include the appropriate provider tasks] ***** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:22 included: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [linux-system-roles.storage : get a list of rpm packages installed on host machine] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : make sure blivet is available] ************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: python3-blivet", "Installed: libblockdev-crypto", "Installed: libblockdev-dm", "Installed: libblockdev-lvm", "Installed: libblockdev-mdraid", "Installed: libblockdev-swap"]} TASK [linux-system-roles.storage : initialize internal facts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools": [], "_storage_vol_defaults": [], "_storage_vol_pools": [], "_storage_vols_no_defaults": [], "_storage_vols_no_defaults_by_pool": {}, "_storage_vols_w_defaults": [], "_storage_volumes": []}, "changed": false} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [1/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:28 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'disks': [u'vda'], u'name': u'foo', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'3g'}, {u'mount_point': u'/opt/test2', u'name': u'test2', u'size': u'3g'}, {u'mount_point': u'/opt/test3', u'name': u'test3', u'size': u'3g'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "3g"}, {"mount_point": "/opt/test2", "name": "test2", "size": "3g"}, {"mount_point": "/opt/test3", "name": "test3", "size": "3g"}]}]}, "ansible_loop_var": "pool", "changed": false, "pool": {"disks": ["vda"], "name": "foo", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "3g"}, {"mount_point": "/opt/test2", "name": "test2", "size": "3g"}, {"mount_point": "/opt/test3", "name": "test3", "size": "3g"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [2/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:36 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'3g'}, {u'mount_point': u'/opt/test2', u'name': u'test2', u'size': u'3g'}, {u'mount_point': u'/opt/test3', u'name': u'test3', u'size': u'3g'}], u'type': u'lvm', u'encryption_key_size': None}, {u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'3g'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}], "_storage_vol_pools": ["foo"], "_storage_vols_no_defaults": [{"mount_point": "/opt/test1", "name": "test1", "size": "3g"}]}, "ansible_loop_var": "item", "changed": false, "item": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "3g"}, {"mount_point": "/opt/test2", "name": "test2", "size": "3g"}, {"mount_point": "/opt/test3", "name": "test3", "size": "3g"}]}, {"mount_point": "/opt/test1", "name": "test1", "size": "3g"}]} ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'3g'}, {u'mount_point': u'/opt/test2', u'name': u'test2', u'size': u'3g'}, {u'mount_point': u'/opt/test3', u'name': u'test3', u'size': u'3g'}], u'type': u'lvm', u'encryption_key_size': None}, {u'mount_point': u'/opt/test2', u'name': u'test2', u'size': u'3g'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}], "_storage_vol_pools": ["foo", "foo"], "_storage_vols_no_defaults": [{"mount_point": "/opt/test1", "name": "test1", "size": "3g"}, {"mount_point": "/opt/test2", "name": "test2", "size": "3g"}]}, "ansible_loop_var": "item", "changed": false, "item": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "3g"}, {"mount_point": "/opt/test2", "name": "test2", "size": "3g"}, {"mount_point": "/opt/test3", "name": "test3", "size": "3g"}]}, {"mount_point": "/opt/test2", "name": "test2", "size": "3g"}]} ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'3g'}, {u'mount_point': u'/opt/test2', u'name': u'test2', u'size': u'3g'}, {u'mount_point': u'/opt/test3', u'name': u'test3', u'size': u'3g'}], u'type': u'lvm', u'encryption_key_size': None}, {u'mount_point': u'/opt/test3', u'name': u'test3', u'size': u'3g'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}], "_storage_vol_pools": ["foo", "foo", "foo"], "_storage_vols_no_defaults": [{"mount_point": "/opt/test1", "name": "test1", "size": "3g"}, {"mount_point": "/opt/test2", "name": "test2", "size": "3g"}, {"mount_point": "/opt/test3", "name": "test3", "size": "3g"}]}, "ansible_loop_var": "item", "changed": false, "item": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "3g"}, {"mount_point": "/opt/test2", "name": "test2", "size": "3g"}, {"mount_point": "/opt/test3", "name": "test3", "size": "3g"}]}, {"mount_point": "/opt/test3", "name": "test3", "size": "3g"}]} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [3/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:44 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'3g'}, {u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'fs_label': u'', u'raid_level': None, u'mount_device_identifier': u'uuid', u'fs_type': u'xfs', u'mount_options': u'defaults', u'encryption_luks_version': None, u'raid_spare_count': None, u'size': 0, u'mount_point': u'', u'encryption_password': None, u'encryption': False, u'raid_chunk_size': None, u'raid_device_count': None, u'state': u'present', u'mount_check': 0, u'mount_passno': 0, u'fs_overwrite_existing': True, u'type': u'lvm', u'encryption_key_size': None, u'fs_create_options': u''}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm"}]}, "ansible_index_var": "idx", "ansible_loop_var": "item", "changed": false, "idx": 0, "item": [{"mount_point": "/opt/test1", "name": "test1", "size": "3g"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}]} ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'mount_point': u'/opt/test2', u'name': u'test2', u'size': u'3g'}, {u'raid_metadata_version': None, u'encryption_key_size': None, u'encryption_key': None, u'fs_label': u'', u'raid_chunk_size': None, u'mount_device_identifier': u'uuid', u'fs_type': u'xfs', u'mount_options': u'defaults', u'encryption_luks_version': None, u'raid_spare_count': None, u'size': 0, u'mount_point': u'', u'encryption_password': None, u'encryption': False, u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'mount_check': 0, u'mount_passno': 0, u'fs_overwrite_existing': True, u'type': u'lvm', u'encryption_cipher': None, u'fs_create_options': u''}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "test2", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm"}]}, "ansible_index_var": "idx", "ansible_loop_var": "item", "changed": false, "idx": 1, "item": [{"mount_point": "/opt/test2", "name": "test2", "size": "3g"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}]} ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'mount_point': u'/opt/test3', u'name': u'test3', u'size': u'3g'}, {u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'fs_label': u'', u'raid_level': None, u'mount_device_identifier': u'uuid', u'fs_type': u'xfs', u'mount_options': u'defaults', u'encryption_luks_version': None, u'raid_spare_count': None, u'size': 0, u'mount_point': u'', u'encryption_password': None, u'encryption': False, u'raid_chunk_size': None, u'raid_device_count': None, u'state': u'present', u'mount_check': 0, u'mount_passno': 0, u'fs_overwrite_existing': True, u'type': u'lvm', u'encryption_key_size': None, u'fs_create_options': u''}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "test2", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test3", "name": "test3", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm"}]}, "ansible_index_var": "idx", "ansible_loop_var": "item", "changed": false, "idx": 2, "item": [{"mount_point": "/opt/test3", "name": "test3", "size": "3g"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}]} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [4/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:52 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'3g'}, {u'mount_point': u'/opt/test2', u'name': u'test2', u'size': u'3g'}, {u'mount_point': u'/opt/test3', u'name': u'test3', u'size': u'3g'}], u'type': u'lvm', u'encryption_key_size': None}) => {"ansible_facts": {"_storage_vols_no_defaults_by_pool": {"foo": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "test2", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test3", "name": "test3", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm"}]}}, "ansible_loop_var": "item", "changed": false, "item": {"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "3g"}, {"mount_point": "/opt/test2", "name": "test2", "size": "3g"}, {"mount_point": "/opt/test3", "name": "test3", "size": "3g"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [5/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:61 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'3g'}, {u'mount_point': u'/opt/test2', u'name': u'test2', u'size': u'3g'}, {u'mount_point': u'/opt/test3', u'name': u'test3', u'size': u'3g'}], u'type': u'lvm', u'encryption_key_size': None}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "test2", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test3", "name": "test3", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm"}]}]}, "ansible_index_var": "idx", "ansible_loop_var": "pool", "changed": false, "idx": 0, "pool": {"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "3g"}, {"mount_point": "/opt/test2", "name": "test2", "size": "3g"}, {"mount_point": "/opt/test3", "name": "test3", "size": "3g"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [6/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:72 TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [ { "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm" }, { "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "test2", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm" }, { "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test3", "name": "test3", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm" } ] } ] } TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes": [] } TASK [linux-system-roles.storage : get required packages] ********************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": ["lvm2", "xfsprogs"], "pools": [], "volumes": []} TASK [linux-system-roles.storage : make sure required packages are installed] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: lvm2", "Installed: xfsprogs"]} TASK [linux-system-roles.storage : manage the pools and volumes to match the specified state] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:104 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": ["/dev/sda1", "/dev/sr0", "/dev/mapper/foo-test1", "/dev/mapper/foo-test2", "/dev/mapper/foo-test3", "/dev/vdb", "/dev/vdc"], "mounts": [{"dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "/dev/mapper/foo-test1", "state": "mounted"}, {"dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test2", "src": "/dev/mapper/foo-test2", "state": "mounted"}, {"dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test3", "src": "/dev/mapper/foo-test3", "state": "mounted"}], "packages": ["xfsprogs", "e2fsprogs", "lvm2"], "pools": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"_device": "/dev/mapper/foo-test1", "_kernel_device": "/dev/dm-2", "_mount_id": "/dev/mapper/foo-test1", "_raw_device": "/dev/mapper/foo-test1", "_raw_kernel_device": "/dev/dm-2", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm"}, {"_device": "/dev/mapper/foo-test2", "_kernel_device": "/dev/dm-1", "_mount_id": "/dev/mapper/foo-test2", "_raw_device": "/dev/mapper/foo-test2", "_raw_kernel_device": "/dev/dm-1", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "test2", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm"}, {"_device": "/dev/mapper/foo-test3", "_kernel_device": "/dev/dm-0", "_mount_id": "/dev/mapper/foo-test3", "_raw_device": "/dev/mapper/foo-test3", "_raw_kernel_device": "/dev/dm-0", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test3", "name": "test3", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm"}]}], "volumes": []} TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:114 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "blivet_output": { "actions": [], "changed": false, "crypts": [], "failed": false, "leaves": [ "/dev/sda1", "/dev/sr0", "/dev/mapper/foo-test1", "/dev/mapper/foo-test2", "/dev/mapper/foo-test3", "/dev/vdb", "/dev/vdc" ], "mounts": [ { "dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "/dev/mapper/foo-test1", "state": "mounted" }, { "dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test2", "src": "/dev/mapper/foo-test2", "state": "mounted" }, { "dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test3", "src": "/dev/mapper/foo-test3", "state": "mounted" } ], "packages": [ "xfsprogs", "e2fsprogs", "lvm2" ], "pools": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [ { "_device": "/dev/mapper/foo-test1", "_kernel_device": "/dev/dm-2", "_mount_id": "/dev/mapper/foo-test1", "_raw_device": "/dev/mapper/foo-test1", "_raw_kernel_device": "/dev/dm-2", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm" }, { "_device": "/dev/mapper/foo-test2", "_kernel_device": "/dev/dm-1", "_mount_id": "/dev/mapper/foo-test2", "_raw_device": "/dev/mapper/foo-test2", "_raw_kernel_device": "/dev/dm-1", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "test2", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm" }, { "_device": "/dev/mapper/foo-test3", "_kernel_device": "/dev/dm-0", "_mount_id": "/dev/mapper/foo-test3", "_raw_device": "/dev/mapper/foo-test3", "_raw_kernel_device": "/dev/dm-0", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test3", "name": "test3", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm" } ] } ], "volumes": [] } } TASK [linux-system-roles.storage : set the list of pools for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:117 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"_device": "/dev/mapper/foo-test1", "_kernel_device": "/dev/dm-2", "_mount_id": "/dev/mapper/foo-test1", "_raw_device": "/dev/mapper/foo-test1", "_raw_kernel_device": "/dev/dm-2", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm"}, {"_device": "/dev/mapper/foo-test2", "_kernel_device": "/dev/dm-1", "_mount_id": "/dev/mapper/foo-test2", "_raw_device": "/dev/mapper/foo-test2", "_raw_kernel_device": "/dev/dm-1", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "test2", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm"}, {"_device": "/dev/mapper/foo-test3", "_kernel_device": "/dev/dm-0", "_mount_id": "/dev/mapper/foo-test3", "_raw_device": "/dev/mapper/foo-test3", "_raw_kernel_device": "/dev/dm-0", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test3", "name": "test3", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm"}]}]}, "changed": false} TASK [linux-system-roles.storage : set the list of volumes for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:121 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : remove obsolete mounts] ********************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:137 TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:148 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [linux-system-roles.storage : set up new/current mounts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:153 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'src': u'/dev/mapper/foo-test1', u'state': u'mounted', u'dump': 0, u'path': u'/opt/test1', u'passno': 0, u'opts': u'defaults', u'fstype': u'xfs'}) => {"ansible_loop_var": "mount_info", "changed": false, "dump": "0", "fstab": "/etc/fstab", "fstype": "xfs", "mount_info": {"dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "/dev/mapper/foo-test1", "state": "mounted"}, "name": "/opt/test1", "opts": "defaults", "passno": "0", "src": "/dev/mapper/foo-test1"} ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'src': u'/dev/mapper/foo-test2', u'state': u'mounted', u'dump': 0, u'path': u'/opt/test2', u'passno': 0, u'opts': u'defaults', u'fstype': u'xfs'}) => {"ansible_loop_var": "mount_info", "changed": false, "dump": "0", "fstab": "/etc/fstab", "fstype": "xfs", "mount_info": {"dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test2", "src": "/dev/mapper/foo-test2", "state": "mounted"}, "name": "/opt/test2", "opts": "defaults", "passno": "0", "src": "/dev/mapper/foo-test2"} ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'src': u'/dev/mapper/foo-test3', u'state': u'mounted', u'dump': 0, u'path': u'/opt/test3', u'passno': 0, u'opts': u'defaults', u'fstype': u'xfs'}) => {"ansible_loop_var": "mount_info", "changed": false, "dump": "0", "fstab": "/etc/fstab", "fstype": "xfs", "mount_info": {"dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test3", "src": "/dev/mapper/foo-test3", "state": "mounted"}, "name": "/opt/test3", "opts": "defaults", "passno": "0", "src": "/dev/mapper/foo-test3"} TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:164 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [linux-system-roles.storage : Manage /etc/crypttab to account for changes we just made] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:172 TASK [linux-system-roles.storage : Update facts] ******************************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:187 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_lvm_one_disk_multiple_volumes.yml:55 included: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Print out pool information] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:1 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools_list": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [ { "_device": "/dev/mapper/foo-test1", "_kernel_device": "/dev/dm-2", "_mount_id": "/dev/mapper/foo-test1", "_raw_device": "/dev/mapper/foo-test1", "_raw_kernel_device": "/dev/dm-2", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm" }, { "_device": "/dev/mapper/foo-test2", "_kernel_device": "/dev/dm-1", "_mount_id": "/dev/mapper/foo-test2", "_raw_device": "/dev/mapper/foo-test2", "_raw_kernel_device": "/dev/dm-1", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "test2", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm" }, { "_device": "/dev/mapper/foo-test3", "_kernel_device": "/dev/dm-0", "_mount_id": "/dev/mapper/foo-test3", "_raw_device": "/dev/mapper/foo-test3", "_raw_kernel_device": "/dev/dm-0", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test3", "name": "test3", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm" } ] } ] } TASK [Print out volume information] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:6 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {} TASK [Collect info about the volumes.] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "info": {"/dev/mapper/foo-test1": {"fstype": "xfs", "label": "", "name": "/dev/mapper/foo-test1", "size": "3G", "type": "lvm", "uuid": "97bee658-ca07-484c-b441-5d87ca1bd54c"}, "/dev/mapper/foo-test2": {"fstype": "xfs", "label": "", "name": "/dev/mapper/foo-test2", "size": "3G", "type": "lvm", "uuid": "e02e25b6-152d-4a45-8a5e-435c7521e6e4"}, "/dev/mapper/foo-test3": {"fstype": "xfs", "label": "", "name": "/dev/mapper/foo-test3", "size": "3G", "type": "lvm", "uuid": "31be6f93-33d0-4da0-bc80-2e47e09dd1c6"}, "/dev/sda": {"fstype": "", "label": "", "name": "/dev/sda", "size": "4G", "type": "disk", "uuid": ""}, "/dev/sda1": {"fstype": "ext4", "label": "", "name": "/dev/sda1", "size": "4G", "type": "partition", "uuid": "03e702b4-e165-4a39-88c9-9e210cd00434"}, "/dev/sr0": {"fstype": "iso9660", "label": "cidata", "name": "/dev/sr0", "size": "364K", "type": "rom", "uuid": "2020-10-31-12-48-35-00"}, "/dev/vda": {"fstype": "LVM2_member", "label": "", "name": "/dev/vda", "size": "10G", "type": "disk", "uuid": "Rdcc1J-umum-hzK6-Vh71-Snfm-vtyP-PgJyL9"}, "/dev/vdb": {"fstype": "", "label": "", "name": "/dev/vdb", "size": "10G", "type": "disk", "uuid": ""}, "/dev/vdc": {"fstype": "", "label": "", "name": "/dev/vdc", "size": "10G", "type": "disk", "uuid": ""}}} TASK [Read the /etc/fstab file for volume existence] *************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:19 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/fstab"], "delta": "0:00:00.002713", "end": "2020-10-31 12:50:41.299140", "rc": 0, "start": "2020-10-31 12:50:41.296427", "stderr": "", "stderr_lines": [], "stdout": "\n#\n# /etc/fstab\n# Created by anaconda on Sat Oct 31 08:17:58 2020\n#\n# Accessible filesystems, by reference, are maintained under '/dev/disk/'.\n# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.\n#\n# After editing this file, run 'systemctl daemon-reload' to update systemd\n# units generated from this file.\n#\nUUID=03e702b4-e165-4a39-88c9-9e210cd00434 / ext4 defaults 1 1\n/dev/mapper/foo-test1 /opt/test1 xfs defaults 0 0\n/dev/mapper/foo-test2 /opt/test2 xfs defaults 0 0\n/dev/mapper/foo-test3 /opt/test3 xfs defaults 0 0", "stdout_lines": ["", "#", "# /etc/fstab", "# Created by anaconda on Sat Oct 31 08:17:58 2020", "#", "# Accessible filesystems, by reference, are maintained under '/dev/disk/'.", "# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.", "#", "# After editing this file, run 'systemctl daemon-reload' to update systemd", "# units generated from this file.", "#", "UUID=03e702b4-e165-4a39-88c9-9e210cd00434 / ext4 defaults 1 1", "/dev/mapper/foo-test1 /opt/test1 xfs defaults 0 0", "/dev/mapper/foo-test2 /opt/test2 xfs defaults 0 0", "/dev/mapper/foo-test3 /opt/test3 xfs defaults 0 0"]} TASK [Read the /etc/crypttab file] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/crypttab"], "delta": "0:00:00.002670", "end": "2020-10-31 12:50:41.662124", "rc": 0, "start": "2020-10-31 12:50:41.659454", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Verify the volumes listed in storage_pools were correctly managed] ******* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:32 [WARNING]: The loop variable 'storage_test_pool' is already in use. You should set the `loop_var` value in the `loop_control` option for the task to something else to avoid variable collisions and unexpected behavior. included: /tmp/tmp7ksfxpzz/tests/test-verify-pool.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool.yml:5 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pool_tests": ["members", "volumes"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool.yml:17 included: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-pool-volumes.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:1 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_count": "1", "_storage_test_pool_pvs": [], "_storage_test_pool_pvs_lvm": ["/dev/vda"]}, "changed": false} TASK [Get the canonical device path for each member device] ******************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:7 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=/dev/vda) => {"ansible_loop_var": "pv", "changed": false, "device": "/dev/vda", "pv": "/dev/vda"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:16 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=/dev/vda) => {"ansible_facts": {"_storage_test_pool_pvs": ["/dev/vda"]}, "ansible_index_var": "idx", "ansible_loop_var": "item", "changed": false, "idx": 0, "item": "/dev/vda"} TASK [Verify PV count] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:23 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:29 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_type": "disk"}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:33 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_type": "disk"}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check the type of each PV] *********************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:41 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=/dev/vda) => { "ansible_loop_var": "pv", "changed": false, "msg": "All assertions passed", "pv": "/dev/vda" } TASK [Check raid] ************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:50 included: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [get information about RAID] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:6 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:12 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:16 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:20 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID active devices count] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:24 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID spare devices count] ****************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:30 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID metadata version] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:36 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:44 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_md_active_devices_re": null, "storage_test_md_metadata_version_re": null, "storage_test_md_spare_devices_re": null}, "changed": false} TASK [Check member encryption] ************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:53 included: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_crypttab_entries": "0", "_storage_test_expected_crypttab_key_file": "-"}, "changed": false} TASK [Validate pool member LUKS settings] ************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:8 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=/dev/vda) => {"_storage_test_pool_member_path": "/dev/vda", "ansible_loop_var": "_storage_test_pool_member_path", "changed": false, "skip_reason": "Conditional result was False"} TASK [Validate pool member crypttab entries] *********************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:15 included: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:1 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": []}, "changed": false} TASK [Check for /etc/crypttab entry] ******************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Validate the format of the crypttab entry] ******************************* task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:9 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check backing device of crypttab entry] ********************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:15 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check key file of crypttab entry] **************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:27 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:22 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null, "_storage_test_crypttab_key_file": null}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:56 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_count": null, "_storage_test_expected_pv_type": null, "_storage_test_pool_pvs": [], "_storage_test_pool_pvs_lvm": []}, "changed": false} TASK [verify the volumes] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-volumes.yml:3 [WARNING]: The loop variable 'storage_test_volume' is already in use. You should set the `loop_var` value in the `loop_control` option for the task to something else to avoid variable collisions and unexpected behavior. included: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": true, "_storage_volume_tests": ["mount", "fstab", "fs", "device", "encryption", "md", "size"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:10 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Get expected mount device based on device type] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/foo-test1"}, "changed": false} TASK [Set some facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [{"block_available": 770146, "block_size": 4096, "block_total": 783872, "block_used": 13726, "device": "/dev/mapper/foo-test1", "fstype": "xfs", "inode_available": 1572861, "inode_total": 1572864, "inode_used": 3, "mount": "/opt/test1", "options": "rw,seclabel,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota", "size_available": 3154518016, "size_total": 3210739712, "uuid": "97bee658-ca07-484c-b441-5d87ca1bd54c"}], "storage_test_mount_expected_match_count": "1", "storage_test_mount_point_matches": [{"block_available": 770146, "block_size": 4096, "block_total": 783872, "block_used": 13726, "device": "/dev/mapper/foo-test1", "fstype": "xfs", "inode_available": 1572861, "inode_total": 1572864, "inode_used": 3, "mount": "/opt/test1", "options": "rw,seclabel,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota", "size_available": 3154518016, "size_total": 3210739712, "uuid": "97bee658-ca07-484c-b441-5d87ca1bd54c"}], "storage_test_swap_expected_matches": "0"}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:22 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:31 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:39 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [command] ***************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Gather swap info] ******************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:52 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify swap status] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:57 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Unset facts] ************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:67 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null, "storage_test_swap_expected_matches": null, "storage_test_swaps": null, "storage_test_sys_node": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": "1", "storage_test_fstab_expected_mount_point_matches": "1", "storage_test_fstab_id_matches": ["/dev/mapper/foo-test1 "], "storage_test_fstab_mount_point_matches": [" /opt/test1 "]}, "changed": false} TASK [Verify that the device identifier appears in /etc/fstab] ***************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:17 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": null, "storage_test_fstab_expected_mount_point_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [Verify fs type] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify fs label] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [See whether the device node is present] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "stat": {"atime": 1604148608.4277904, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "ctime": 1604148608.4277904, "dev": 5, "device_type": 64770, "executable": false, "exists": true, "gid": 6, "gr_name": "disk", "inode": 1848, "isblk": true, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mimetype": "inode/symlink", "mode": "0660", "mtime": 1604148608.4277904, "nlink": 1, "path": "/dev/mapper/foo-test1", "pw_name": "root", "readable": true, "rgrp": true, "roth": false, "rusr": true, "size": 0, "uid": 0, "version": null, "wgrp": true, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}} TASK [Verify the presence/absence of the device node] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "lvm"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:28 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:33 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Stat the LUKS device, if encrypted] ************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:3 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Collect LUKS info for this volume] *************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:10 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the presence/absence of the LUKS device node] ********************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:16 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify that the raw device is the same as the device if not encrypted] *** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:25 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about the LUKS volume if encrypted] **************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the LUKS volume's device type if encrypted] *********************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS version] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:42 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS key size] ***************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS cipher] ******************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:54 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:60 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": [], "_storage_test_expected_crypttab_entries": "0", "_storage_test_expected_crypttab_key_file": "-"}, "changed": false} TASK [Check for /etc/crypttab entry] ******************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:65 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Validate the format of the crypttab entry] ******************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:70 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check backing device of crypttab entry] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:76 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check key file of crypttab entry] **************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:82 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:88 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null, "_storage_test_expected_crypttab_entries": null, "_storage_test_expected_crypttab_key_file": null}, "changed": false} TASK [get information about RAID] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:7 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:13 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:17 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID active devices count] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:25 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID spare devices count] ****************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID metadata version] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [parse the actual size of the volume] ************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:3 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"bytes": 3221225472, "changed": false, "lvm": "3g", "parted": "3GiB", "size": "3 GiB"} TASK [parse the requested size of the volume] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:9 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"bytes": 3221225472, "changed": false, "lvm": "3g", "parted": "3GiB", "size": "3 GiB"} TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:15 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_actual_size": { "bytes": 3221225472, "changed": false, "failed": false, "lvm": "3g", "parted": "3GiB", "size": "3 GiB" } } TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_requested_size": { "bytes": 3221225472, "changed": false, "failed": false, "lvm": "3g", "parted": "3GiB", "size": "3 GiB" } } TASK [assert] ****************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:21 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:16 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": true, "_storage_volume_tests": ["mount", "fstab", "fs", "device", "encryption", "md", "size"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:10 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Get expected mount device based on device type] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/foo-test2"}, "changed": false} TASK [Set some facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [{"block_available": 770146, "block_size": 4096, "block_total": 783872, "block_used": 13726, "device": "/dev/mapper/foo-test2", "fstype": "xfs", "inode_available": 1572861, "inode_total": 1572864, "inode_used": 3, "mount": "/opt/test2", "options": "rw,seclabel,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota", "size_available": 3154518016, "size_total": 3210739712, "uuid": "e02e25b6-152d-4a45-8a5e-435c7521e6e4"}], "storage_test_mount_expected_match_count": "1", "storage_test_mount_point_matches": [{"block_available": 770146, "block_size": 4096, "block_total": 783872, "block_used": 13726, "device": "/dev/mapper/foo-test2", "fstype": "xfs", "inode_available": 1572861, "inode_total": 1572864, "inode_used": 3, "mount": "/opt/test2", "options": "rw,seclabel,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota", "size_available": 3154518016, "size_total": 3210739712, "uuid": "e02e25b6-152d-4a45-8a5e-435c7521e6e4"}], "storage_test_swap_expected_matches": "0"}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:22 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:31 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:39 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [command] ***************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Gather swap info] ******************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:52 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify swap status] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:57 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Unset facts] ************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:67 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null, "storage_test_swap_expected_matches": null, "storage_test_swaps": null, "storage_test_sys_node": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": "1", "storage_test_fstab_expected_mount_point_matches": "1", "storage_test_fstab_id_matches": ["/dev/mapper/foo-test2 "], "storage_test_fstab_mount_point_matches": [" /opt/test2 "]}, "changed": false} TASK [Verify that the device identifier appears in /etc/fstab] ***************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:17 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": null, "storage_test_fstab_expected_mount_point_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [Verify fs type] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify fs label] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [See whether the device node is present] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "stat": {"atime": 1604148608.2087905, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "ctime": 1604148608.2087905, "dev": 5, "device_type": 64769, "executable": false, "exists": true, "gid": 6, "gr_name": "disk", "inode": 1847, "isblk": true, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mimetype": "inode/symlink", "mode": "0660", "mtime": 1604148608.2087905, "nlink": 1, "path": "/dev/mapper/foo-test2", "pw_name": "root", "readable": true, "rgrp": true, "roth": false, "rusr": true, "size": 0, "uid": 0, "version": null, "wgrp": true, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}} TASK [Verify the presence/absence of the device node] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "lvm"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:28 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:33 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Stat the LUKS device, if encrypted] ************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:3 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Collect LUKS info for this volume] *************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:10 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the presence/absence of the LUKS device node] ********************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:16 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify that the raw device is the same as the device if not encrypted] *** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:25 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about the LUKS volume if encrypted] **************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the LUKS volume's device type if encrypted] *********************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS version] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:42 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS key size] ***************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS cipher] ******************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:54 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:60 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": [], "_storage_test_expected_crypttab_entries": "0", "_storage_test_expected_crypttab_key_file": "-"}, "changed": false} TASK [Check for /etc/crypttab entry] ******************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:65 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Validate the format of the crypttab entry] ******************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:70 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check backing device of crypttab entry] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:76 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check key file of crypttab entry] **************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:82 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:88 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null, "_storage_test_expected_crypttab_entries": null, "_storage_test_expected_crypttab_key_file": null}, "changed": false} TASK [get information about RAID] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:7 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:13 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:17 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID active devices count] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:25 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID spare devices count] ****************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID metadata version] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [parse the actual size of the volume] ************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:3 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"bytes": 3221225472, "changed": false, "lvm": "3g", "parted": "3GiB", "size": "3 GiB"} TASK [parse the requested size of the volume] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:9 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"bytes": 3221225472, "changed": false, "lvm": "3g", "parted": "3GiB", "size": "3 GiB"} TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:15 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_actual_size": { "bytes": 3221225472, "changed": false, "failed": false, "lvm": "3g", "parted": "3GiB", "size": "3 GiB" } } TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_requested_size": { "bytes": 3221225472, "changed": false, "failed": false, "lvm": "3g", "parted": "3GiB", "size": "3 GiB" } } TASK [assert] ****************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:21 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:16 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": true, "_storage_volume_tests": ["mount", "fstab", "fs", "device", "encryption", "md", "size"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:10 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Get expected mount device based on device type] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/foo-test3"}, "changed": false} TASK [Set some facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [{"block_available": 770146, "block_size": 4096, "block_total": 783872, "block_used": 13726, "device": "/dev/mapper/foo-test3", "fstype": "xfs", "inode_available": 1572861, "inode_total": 1572864, "inode_used": 3, "mount": "/opt/test3", "options": "rw,seclabel,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota", "size_available": 3154518016, "size_total": 3210739712, "uuid": "31be6f93-33d0-4da0-bc80-2e47e09dd1c6"}], "storage_test_mount_expected_match_count": "1", "storage_test_mount_point_matches": [{"block_available": 770146, "block_size": 4096, "block_total": 783872, "block_used": 13726, "device": "/dev/mapper/foo-test3", "fstype": "xfs", "inode_available": 1572861, "inode_total": 1572864, "inode_used": 3, "mount": "/opt/test3", "options": "rw,seclabel,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota", "size_available": 3154518016, "size_total": 3210739712, "uuid": "31be6f93-33d0-4da0-bc80-2e47e09dd1c6"}], "storage_test_swap_expected_matches": "0"}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:22 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:31 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:39 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [command] ***************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Gather swap info] ******************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:52 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify swap status] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:57 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Unset facts] ************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:67 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null, "storage_test_swap_expected_matches": null, "storage_test_swaps": null, "storage_test_sys_node": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": "1", "storage_test_fstab_expected_mount_point_matches": "1", "storage_test_fstab_id_matches": ["/dev/mapper/foo-test3 "], "storage_test_fstab_mount_point_matches": [" /opt/test3 "]}, "changed": false} TASK [Verify that the device identifier appears in /etc/fstab] ***************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:17 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": null, "storage_test_fstab_expected_mount_point_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [Verify fs type] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify fs label] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [See whether the device node is present] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "stat": {"atime": 1604148607.9827905, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "ctime": 1604148607.9827905, "dev": 5, "device_type": 64768, "executable": false, "exists": true, "gid": 6, "gr_name": "disk", "inode": 1846, "isblk": true, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mimetype": "inode/symlink", "mode": "0660", "mtime": 1604148607.9827905, "nlink": 1, "path": "/dev/mapper/foo-test3", "pw_name": "root", "readable": true, "rgrp": true, "roth": false, "rusr": true, "size": 0, "uid": 0, "version": null, "wgrp": true, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}} TASK [Verify the presence/absence of the device node] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "lvm"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:28 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:33 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Stat the LUKS device, if encrypted] ************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:3 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Collect LUKS info for this volume] *************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:10 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the presence/absence of the LUKS device node] ********************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:16 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify that the raw device is the same as the device if not encrypted] *** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:25 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about the LUKS volume if encrypted] **************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the LUKS volume's device type if encrypted] *********************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS version] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:42 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS key size] ***************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS cipher] ******************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:54 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:60 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": [], "_storage_test_expected_crypttab_entries": "0", "_storage_test_expected_crypttab_key_file": "-"}, "changed": false} TASK [Check for /etc/crypttab entry] ******************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:65 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Validate the format of the crypttab entry] ******************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:70 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check backing device of crypttab entry] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:76 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check key file of crypttab entry] **************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:82 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:88 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null, "_storage_test_expected_crypttab_entries": null, "_storage_test_expected_crypttab_key_file": null}, "changed": false} TASK [get information about RAID] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:7 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:13 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:17 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID active devices count] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:25 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID spare devices count] ****************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID metadata version] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [parse the actual size of the volume] ************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:3 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"bytes": 3221225472, "changed": false, "lvm": "3g", "parted": "3GiB", "size": "3 GiB"} TASK [parse the requested size of the volume] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:9 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"bytes": 3221225472, "changed": false, "lvm": "3g", "parted": "3GiB", "size": "3 GiB"} TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:15 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_actual_size": { "bytes": 3221225472, "changed": false, "failed": false, "lvm": "3g", "parted": "3GiB", "size": "3 GiB" } } TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_requested_size": { "bytes": 3221225472, "changed": false, "failed": false, "lvm": "3g", "parted": "3GiB", "size": "3 GiB" } } TASK [assert] ****************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:21 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:16 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:39 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_pool": null}, "changed": false} TASK [Verify the volumes with no pool were correctly managed] ****************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:46 TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:56 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_blkinfo": null, "storage_test_crypttab": null, "storage_test_fstab": null, "storage_test_volume": null}, "changed": false} TASK [Remove two of the LVs] *************************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_lvm_one_disk_multiple_volumes.yml:57 TASK [linux-system-roles.storage : Set version specific variables] ************* task path: /tmp/tmp7ksfxpzz/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-crypto", "libblockdev-dm", "libblockdev-lvm", "libblockdev-mdraid", "libblockdev-swap"]}, "ansible_included_var_files": ["/tmp/tmp7ksfxpzz/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.storage : define an empty list of pools to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : define an empty list of volumes to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : include the appropriate provider tasks] ***** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:22 included: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [linux-system-roles.storage : get a list of rpm packages installed on host machine] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : make sure blivet is available] ************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: python3-blivet", "Installed: libblockdev-crypto", "Installed: libblockdev-dm", "Installed: libblockdev-lvm", "Installed: libblockdev-mdraid", "Installed: libblockdev-swap"]} TASK [linux-system-roles.storage : initialize internal facts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools": [], "_storage_vol_defaults": [], "_storage_vol_pools": [], "_storage_vols_no_defaults": [], "_storage_vols_no_defaults_by_pool": {}, "_storage_vols_w_defaults": [], "_storage_volumes": []}, "changed": false} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [1/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:28 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'disks': [u'vda'], u'name': u'foo', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'3g'}, {u'state': u'absent', u'mount_point': u'/opt/test2', u'name': u'test2', u'size': u'3g'}, {u'state': u'absent', u'mount_point': u'/opt/test3', u'name': u'test3', u'size': u'3g'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "3g"}, {"mount_point": "/opt/test2", "name": "test2", "size": "3g", "state": "absent"}, {"mount_point": "/opt/test3", "name": "test3", "size": "3g", "state": "absent"}]}]}, "ansible_loop_var": "pool", "changed": false, "pool": {"disks": ["vda"], "name": "foo", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "3g"}, {"mount_point": "/opt/test2", "name": "test2", "size": "3g", "state": "absent"}, {"mount_point": "/opt/test3", "name": "test3", "size": "3g", "state": "absent"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [2/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:36 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'3g'}, {u'state': u'absent', u'mount_point': u'/opt/test2', u'name': u'test2', u'size': u'3g'}, {u'state': u'absent', u'mount_point': u'/opt/test3', u'name': u'test3', u'size': u'3g'}], u'type': u'lvm', u'encryption_key_size': None}, {u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'3g'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}], "_storage_vol_pools": ["foo"], "_storage_vols_no_defaults": [{"mount_point": "/opt/test1", "name": "test1", "size": "3g"}]}, "ansible_loop_var": "item", "changed": false, "item": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "3g"}, {"mount_point": "/opt/test2", "name": "test2", "size": "3g", "state": "absent"}, {"mount_point": "/opt/test3", "name": "test3", "size": "3g", "state": "absent"}]}, {"mount_point": "/opt/test1", "name": "test1", "size": "3g"}]} ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'3g'}, {u'state': u'absent', u'mount_point': u'/opt/test2', u'name': u'test2', u'size': u'3g'}, {u'state': u'absent', u'mount_point': u'/opt/test3', u'name': u'test3', u'size': u'3g'}], u'type': u'lvm', u'encryption_key_size': None}, {u'state': u'absent', u'mount_point': u'/opt/test2', u'name': u'test2', u'size': u'3g'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}], "_storage_vol_pools": ["foo", "foo"], "_storage_vols_no_defaults": [{"mount_point": "/opt/test1", "name": "test1", "size": "3g"}, {"mount_point": "/opt/test2", "name": "test2", "size": "3g", "state": "absent"}]}, "ansible_loop_var": "item", "changed": false, "item": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "3g"}, {"mount_point": "/opt/test2", "name": "test2", "size": "3g", "state": "absent"}, {"mount_point": "/opt/test3", "name": "test3", "size": "3g", "state": "absent"}]}, {"mount_point": "/opt/test2", "name": "test2", "size": "3g", "state": "absent"}]} ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'3g'}, {u'state': u'absent', u'mount_point': u'/opt/test2', u'name': u'test2', u'size': u'3g'}, {u'state': u'absent', u'mount_point': u'/opt/test3', u'name': u'test3', u'size': u'3g'}], u'type': u'lvm', u'encryption_key_size': None}, {u'state': u'absent', u'mount_point': u'/opt/test3', u'name': u'test3', u'size': u'3g'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}], "_storage_vol_pools": ["foo", "foo", "foo"], "_storage_vols_no_defaults": [{"mount_point": "/opt/test1", "name": "test1", "size": "3g"}, {"mount_point": "/opt/test2", "name": "test2", "size": "3g", "state": "absent"}, {"mount_point": "/opt/test3", "name": "test3", "size": "3g", "state": "absent"}]}, "ansible_loop_var": "item", "changed": false, "item": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "3g"}, {"mount_point": "/opt/test2", "name": "test2", "size": "3g", "state": "absent"}, {"mount_point": "/opt/test3", "name": "test3", "size": "3g", "state": "absent"}]}, {"mount_point": "/opt/test3", "name": "test3", "size": "3g", "state": "absent"}]} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [3/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:44 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'3g'}, {u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'fs_label': u'', u'raid_level': None, u'mount_device_identifier': u'uuid', u'fs_type': u'xfs', u'mount_options': u'defaults', u'encryption_luks_version': None, u'raid_spare_count': None, u'size': 0, u'mount_point': u'', u'encryption_password': None, u'encryption': False, u'raid_chunk_size': None, u'raid_device_count': None, u'state': u'present', u'mount_check': 0, u'mount_passno': 0, u'fs_overwrite_existing': True, u'type': u'lvm', u'encryption_key_size': None, u'fs_create_options': u''}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm"}]}, "ansible_index_var": "idx", "ansible_loop_var": "item", "changed": false, "idx": 0, "item": [{"mount_point": "/opt/test1", "name": "test1", "size": "3g"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}]} ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'state': u'absent', u'mount_point': u'/opt/test2', u'name': u'test2', u'size': u'3g'}, {u'raid_metadata_version': None, u'encryption_key_size': None, u'encryption_key': None, u'fs_label': u'', u'raid_chunk_size': None, u'mount_device_identifier': u'uuid', u'fs_type': u'xfs', u'mount_options': u'defaults', u'encryption_luks_version': None, u'raid_spare_count': None, u'size': 0, u'mount_point': u'', u'encryption_password': None, u'encryption': False, u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'mount_check': 0, u'mount_passno': 0, u'fs_overwrite_existing': True, u'type': u'lvm', u'encryption_cipher': None, u'fs_create_options': u''}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "test2", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "absent", "type": "lvm"}]}, "ansible_index_var": "idx", "ansible_loop_var": "item", "changed": false, "idx": 1, "item": [{"mount_point": "/opt/test2", "name": "test2", "size": "3g", "state": "absent"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}]} ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'state': u'absent', u'mount_point': u'/opt/test3', u'name': u'test3', u'size': u'3g'}, {u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'fs_label': u'', u'raid_level': None, u'mount_device_identifier': u'uuid', u'fs_type': u'xfs', u'mount_options': u'defaults', u'encryption_luks_version': None, u'raid_spare_count': None, u'size': 0, u'mount_point': u'', u'encryption_password': None, u'encryption': False, u'raid_chunk_size': None, u'raid_device_count': None, u'state': u'present', u'mount_check': 0, u'mount_passno': 0, u'fs_overwrite_existing': True, u'type': u'lvm', u'encryption_key_size': None, u'fs_create_options': u''}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "test2", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "absent", "type": "lvm"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test3", "name": "test3", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "absent", "type": "lvm"}]}, "ansible_index_var": "idx", "ansible_loop_var": "item", "changed": false, "idx": 2, "item": [{"mount_point": "/opt/test3", "name": "test3", "size": "3g", "state": "absent"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}]} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [4/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:52 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'3g'}, {u'state': u'absent', u'mount_point': u'/opt/test2', u'name': u'test2', u'size': u'3g'}, {u'state': u'absent', u'mount_point': u'/opt/test3', u'name': u'test3', u'size': u'3g'}], u'type': u'lvm', u'encryption_key_size': None}) => {"ansible_facts": {"_storage_vols_no_defaults_by_pool": {"foo": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "test2", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "absent", "type": "lvm"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test3", "name": "test3", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "absent", "type": "lvm"}]}}, "ansible_loop_var": "item", "changed": false, "item": {"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "3g"}, {"mount_point": "/opt/test2", "name": "test2", "size": "3g", "state": "absent"}, {"mount_point": "/opt/test3", "name": "test3", "size": "3g", "state": "absent"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [5/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:61 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'3g'}, {u'state': u'absent', u'mount_point': u'/opt/test2', u'name': u'test2', u'size': u'3g'}, {u'state': u'absent', u'mount_point': u'/opt/test3', u'name': u'test3', u'size': u'3g'}], u'type': u'lvm', u'encryption_key_size': None}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "test2", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "absent", "type": "lvm"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test3", "name": "test3", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "absent", "type": "lvm"}]}]}, "ansible_index_var": "idx", "ansible_loop_var": "pool", "changed": false, "idx": 0, "pool": {"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "3g"}, {"mount_point": "/opt/test2", "name": "test2", "size": "3g", "state": "absent"}, {"mount_point": "/opt/test3", "name": "test3", "size": "3g", "state": "absent"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [6/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:72 TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [ { "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm" }, { "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "test2", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "absent", "type": "lvm" }, { "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test3", "name": "test3", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "absent", "type": "lvm" } ] } ] } TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes": [] } TASK [linux-system-roles.storage : get required packages] ********************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": ["lvm2", "xfsprogs"], "pools": [], "volumes": []} TASK [linux-system-roles.storage : make sure required packages are installed] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: lvm2", "Installed: xfsprogs"]} TASK [linux-system-roles.storage : manage the pools and volumes to match the specified state] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:104 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [{"action": "destroy format", "device": "/dev/mapper/foo-test3", "fs_type": "xfs"}, {"action": "destroy device", "device": "/dev/mapper/foo-test3", "fs_type": null}, {"action": "destroy format", "device": "/dev/mapper/foo-test2", "fs_type": "xfs"}, {"action": "destroy device", "device": "/dev/mapper/foo-test2", "fs_type": null}], "changed": true, "crypts": [], "leaves": ["/dev/sda1", "/dev/sr0", "/dev/mapper/foo-test1", "/dev/vdb", "/dev/vdc"], "mounts": [{"fstype": "xfs", "path": "/opt/test3", "src": "/dev/mapper/foo-test3", "state": "absent"}, {"fstype": "xfs", "path": "/opt/test2", "src": "/dev/mapper/foo-test2", "state": "absent"}, {"dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "/dev/mapper/foo-test1", "state": "mounted"}], "packages": ["e2fsprogs", "xfsprogs", "lvm2"], "pools": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"_device": "/dev/mapper/foo-test1", "_kernel_device": "/dev/dm-2", "_mount_id": "/dev/mapper/foo-test1", "_raw_device": "/dev/mapper/foo-test1", "_raw_kernel_device": "/dev/dm-2", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm"}, {"_device": "/dev/mapper/foo-test2", "_mount_id": "/dev/mapper/foo-test2", "_raw_device": "/dev/mapper/foo-test2", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "test2", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "absent", "type": "lvm"}, {"_device": "/dev/mapper/foo-test3", "_mount_id": "/dev/mapper/foo-test3", "_raw_device": "/dev/mapper/foo-test3", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test3", "name": "test3", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "absent", "type": "lvm"}]}], "volumes": []} TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:114 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "blivet_output": { "actions": [ { "action": "destroy format", "device": "/dev/mapper/foo-test3", "fs_type": "xfs" }, { "action": "destroy device", "device": "/dev/mapper/foo-test3", "fs_type": null }, { "action": "destroy format", "device": "/dev/mapper/foo-test2", "fs_type": "xfs" }, { "action": "destroy device", "device": "/dev/mapper/foo-test2", "fs_type": null } ], "changed": true, "crypts": [], "failed": false, "leaves": [ "/dev/sda1", "/dev/sr0", "/dev/mapper/foo-test1", "/dev/vdb", "/dev/vdc" ], "mounts": [ { "fstype": "xfs", "path": "/opt/test3", "src": "/dev/mapper/foo-test3", "state": "absent" }, { "fstype": "xfs", "path": "/opt/test2", "src": "/dev/mapper/foo-test2", "state": "absent" }, { "dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "/dev/mapper/foo-test1", "state": "mounted" } ], "packages": [ "e2fsprogs", "xfsprogs", "lvm2" ], "pools": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [ { "_device": "/dev/mapper/foo-test1", "_kernel_device": "/dev/dm-2", "_mount_id": "/dev/mapper/foo-test1", "_raw_device": "/dev/mapper/foo-test1", "_raw_kernel_device": "/dev/dm-2", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm" }, { "_device": "/dev/mapper/foo-test2", "_mount_id": "/dev/mapper/foo-test2", "_raw_device": "/dev/mapper/foo-test2", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "test2", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "absent", "type": "lvm" }, { "_device": "/dev/mapper/foo-test3", "_mount_id": "/dev/mapper/foo-test3", "_raw_device": "/dev/mapper/foo-test3", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test3", "name": "test3", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "absent", "type": "lvm" } ] } ], "volumes": [] } } TASK [linux-system-roles.storage : set the list of pools for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:117 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"_device": "/dev/mapper/foo-test1", "_kernel_device": "/dev/dm-2", "_mount_id": "/dev/mapper/foo-test1", "_raw_device": "/dev/mapper/foo-test1", "_raw_kernel_device": "/dev/dm-2", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm"}, {"_device": "/dev/mapper/foo-test2", "_mount_id": "/dev/mapper/foo-test2", "_raw_device": "/dev/mapper/foo-test2", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "test2", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "absent", "type": "lvm"}, {"_device": "/dev/mapper/foo-test3", "_mount_id": "/dev/mapper/foo-test3", "_raw_device": "/dev/mapper/foo-test3", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test3", "name": "test3", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "absent", "type": "lvm"}]}]}, "changed": false} TASK [linux-system-roles.storage : set the list of volumes for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:121 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : remove obsolete mounts] ********************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:137 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'src': u'/dev/mapper/foo-test3', u'state': u'absent', u'fstype': u'xfs', u'path': u'/opt/test3'}) => {"ansible_loop_var": "mount_info", "changed": true, "dump": "0", "fstab": "/etc/fstab", "fstype": "xfs", "mount_info": {"fstype": "xfs", "path": "/opt/test3", "src": "/dev/mapper/foo-test3", "state": "absent"}, "name": "/opt/test3", "opts": "defaults", "passno": "0", "src": "/dev/mapper/foo-test3"} changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'src': u'/dev/mapper/foo-test2', u'state': u'absent', u'fstype': u'xfs', u'path': u'/opt/test2'}) => {"ansible_loop_var": "mount_info", "changed": true, "dump": "0", "fstab": "/etc/fstab", "fstype": "xfs", "mount_info": {"fstype": "xfs", "path": "/opt/test2", "src": "/dev/mapper/foo-test2", "state": "absent"}, "name": "/opt/test2", "opts": "defaults", "passno": "0", "src": "/dev/mapper/foo-test2"} TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:148 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [linux-system-roles.storage : set up new/current mounts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:153 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'src': u'/dev/mapper/foo-test1', u'state': u'mounted', u'dump': 0, u'path': u'/opt/test1', u'passno': 0, u'opts': u'defaults', u'fstype': u'xfs'}) => {"ansible_loop_var": "mount_info", "changed": false, "dump": "0", "fstab": "/etc/fstab", "fstype": "xfs", "mount_info": {"dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "/dev/mapper/foo-test1", "state": "mounted"}, "name": "/opt/test1", "opts": "defaults", "passno": "0", "src": "/dev/mapper/foo-test1"} TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:164 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [linux-system-roles.storage : Manage /etc/crypttab to account for changes we just made] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:172 TASK [linux-system-roles.storage : Update facts] ******************************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:187 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_lvm_one_disk_multiple_volumes.yml:77 included: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Print out pool information] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:1 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools_list": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [ { "_device": "/dev/mapper/foo-test1", "_kernel_device": "/dev/dm-2", "_mount_id": "/dev/mapper/foo-test1", "_raw_device": "/dev/mapper/foo-test1", "_raw_kernel_device": "/dev/dm-2", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm" }, { "_device": "/dev/mapper/foo-test2", "_mount_id": "/dev/mapper/foo-test2", "_raw_device": "/dev/mapper/foo-test2", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "test2", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "absent", "type": "lvm" }, { "_device": "/dev/mapper/foo-test3", "_mount_id": "/dev/mapper/foo-test3", "_raw_device": "/dev/mapper/foo-test3", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test3", "name": "test3", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "absent", "type": "lvm" } ] } ] } TASK [Print out volume information] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:6 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {} TASK [Collect info about the volumes.] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "info": {"/dev/mapper/foo-test1": {"fstype": "xfs", "label": "", "name": "/dev/mapper/foo-test1", "size": "3G", "type": "lvm", "uuid": "97bee658-ca07-484c-b441-5d87ca1bd54c"}, "/dev/sda": {"fstype": "", "label": "", "name": "/dev/sda", "size": "4G", "type": "disk", "uuid": ""}, "/dev/sda1": {"fstype": "ext4", "label": "", "name": "/dev/sda1", "size": "4G", "type": "partition", "uuid": "03e702b4-e165-4a39-88c9-9e210cd00434"}, "/dev/sr0": {"fstype": "iso9660", "label": "cidata", "name": "/dev/sr0", "size": "364K", "type": "rom", "uuid": "2020-10-31-12-48-35-00"}, "/dev/vda": {"fstype": "LVM2_member", "label": "", "name": "/dev/vda", "size": "10G", "type": "disk", "uuid": "Rdcc1J-umum-hzK6-Vh71-Snfm-vtyP-PgJyL9"}, "/dev/vdb": {"fstype": "", "label": "", "name": "/dev/vdb", "size": "10G", "type": "disk", "uuid": ""}, "/dev/vdc": {"fstype": "", "label": "", "name": "/dev/vdc", "size": "10G", "type": "disk", "uuid": ""}}} TASK [Read the /etc/fstab file for volume existence] *************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:19 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/fstab"], "delta": "0:00:00.002542", "end": "2020-10-31 12:51:09.120146", "rc": 0, "start": "2020-10-31 12:51:09.117604", "stderr": "", "stderr_lines": [], "stdout": "\n#\n# /etc/fstab\n# Created by anaconda on Sat Oct 31 08:17:58 2020\n#\n# Accessible filesystems, by reference, are maintained under '/dev/disk/'.\n# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.\n#\n# After editing this file, run 'systemctl daemon-reload' to update systemd\n# units generated from this file.\n#\nUUID=03e702b4-e165-4a39-88c9-9e210cd00434 / ext4 defaults 1 1\n/dev/mapper/foo-test1 /opt/test1 xfs defaults 0 0", "stdout_lines": ["", "#", "# /etc/fstab", "# Created by anaconda on Sat Oct 31 08:17:58 2020", "#", "# Accessible filesystems, by reference, are maintained under '/dev/disk/'.", "# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.", "#", "# After editing this file, run 'systemctl daemon-reload' to update systemd", "# units generated from this file.", "#", "UUID=03e702b4-e165-4a39-88c9-9e210cd00434 / ext4 defaults 1 1", "/dev/mapper/foo-test1 /opt/test1 xfs defaults 0 0"]} TASK [Read the /etc/crypttab file] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/crypttab"], "delta": "0:00:00.002495", "end": "2020-10-31 12:51:09.452558", "rc": 0, "start": "2020-10-31 12:51:09.450063", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Verify the volumes listed in storage_pools were correctly managed] ******* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:32 [WARNING]: The loop variable 'storage_test_pool' is already in use. You should set the `loop_var` value in the `loop_control` option for the task to something else to avoid variable collisions and unexpected behavior. included: /tmp/tmp7ksfxpzz/tests/test-verify-pool.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool.yml:5 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pool_tests": ["members", "volumes"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool.yml:17 included: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-pool-volumes.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:1 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_count": "1", "_storage_test_pool_pvs": [], "_storage_test_pool_pvs_lvm": ["/dev/vda"]}, "changed": false} TASK [Get the canonical device path for each member device] ******************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:7 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=/dev/vda) => {"ansible_loop_var": "pv", "changed": false, "device": "/dev/vda", "pv": "/dev/vda"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:16 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=/dev/vda) => {"ansible_facts": {"_storage_test_pool_pvs": ["/dev/vda"]}, "ansible_index_var": "idx", "ansible_loop_var": "item", "changed": false, "idx": 0, "item": "/dev/vda"} TASK [Verify PV count] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:23 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:29 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_type": "disk"}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:33 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_type": "disk"}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check the type of each PV] *********************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:41 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=/dev/vda) => { "ansible_loop_var": "pv", "changed": false, "msg": "All assertions passed", "pv": "/dev/vda" } TASK [Check raid] ************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:50 included: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [get information about RAID] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:6 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:12 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:16 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:20 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID active devices count] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:24 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID spare devices count] ****************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:30 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID metadata version] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:36 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:44 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_md_active_devices_re": null, "storage_test_md_metadata_version_re": null, "storage_test_md_spare_devices_re": null}, "changed": false} TASK [Check member encryption] ************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:53 included: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_crypttab_entries": "0", "_storage_test_expected_crypttab_key_file": "-"}, "changed": false} TASK [Validate pool member LUKS settings] ************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:8 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=/dev/vda) => {"_storage_test_pool_member_path": "/dev/vda", "ansible_loop_var": "_storage_test_pool_member_path", "changed": false, "skip_reason": "Conditional result was False"} TASK [Validate pool member crypttab entries] *********************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:15 included: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:1 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": []}, "changed": false} TASK [Check for /etc/crypttab entry] ******************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Validate the format of the crypttab entry] ******************************* task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:9 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check backing device of crypttab entry] ********************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:15 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check key file of crypttab entry] **************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:27 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:22 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null, "_storage_test_crypttab_key_file": null}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:56 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_count": null, "_storage_test_expected_pv_type": null, "_storage_test_pool_pvs": [], "_storage_test_pool_pvs_lvm": []}, "changed": false} TASK [verify the volumes] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-volumes.yml:3 [WARNING]: The loop variable 'storage_test_volume' is already in use. You should set the `loop_var` value in the `loop_control` option for the task to something else to avoid variable collisions and unexpected behavior. included: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": true, "_storage_volume_tests": ["mount", "fstab", "fs", "device", "encryption", "md", "size"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:10 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Get expected mount device based on device type] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/foo-test1"}, "changed": false} TASK [Set some facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [{"block_available": 770146, "block_size": 4096, "block_total": 783872, "block_used": 13726, "device": "/dev/mapper/foo-test1", "fstype": "xfs", "inode_available": 1572861, "inode_total": 1572864, "inode_used": 3, "mount": "/opt/test1", "options": "rw,seclabel,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota", "size_available": 3154518016, "size_total": 3210739712, "uuid": "97bee658-ca07-484c-b441-5d87ca1bd54c"}], "storage_test_mount_expected_match_count": "1", "storage_test_mount_point_matches": [{"block_available": 770146, "block_size": 4096, "block_total": 783872, "block_used": 13726, "device": "/dev/mapper/foo-test1", "fstype": "xfs", "inode_available": 1572861, "inode_total": 1572864, "inode_used": 3, "mount": "/opt/test1", "options": "rw,seclabel,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota", "size_available": 3154518016, "size_total": 3210739712, "uuid": "97bee658-ca07-484c-b441-5d87ca1bd54c"}], "storage_test_swap_expected_matches": "0"}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:22 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:31 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:39 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [command] ***************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Gather swap info] ******************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:52 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify swap status] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:57 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Unset facts] ************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:67 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null, "storage_test_swap_expected_matches": null, "storage_test_swaps": null, "storage_test_sys_node": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": "1", "storage_test_fstab_expected_mount_point_matches": "1", "storage_test_fstab_id_matches": ["/dev/mapper/foo-test1 "], "storage_test_fstab_mount_point_matches": [" /opt/test1 "]}, "changed": false} TASK [Verify that the device identifier appears in /etc/fstab] ***************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:17 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": null, "storage_test_fstab_expected_mount_point_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [Verify fs type] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify fs label] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [See whether the device node is present] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "stat": {"atime": 1604148608.4277904, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "ctime": 1604148608.4277904, "dev": 5, "device_type": 64770, "executable": false, "exists": true, "gid": 6, "gr_name": "disk", "inode": 1848, "isblk": true, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mimetype": "inode/symlink", "mode": "0660", "mtime": 1604148608.4277904, "nlink": 1, "path": "/dev/mapper/foo-test1", "pw_name": "root", "readable": true, "rgrp": true, "roth": false, "rusr": true, "size": 0, "uid": 0, "version": null, "wgrp": true, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}} TASK [Verify the presence/absence of the device node] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "lvm"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:28 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:33 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Stat the LUKS device, if encrypted] ************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:3 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Collect LUKS info for this volume] *************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:10 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the presence/absence of the LUKS device node] ********************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:16 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify that the raw device is the same as the device if not encrypted] *** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:25 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about the LUKS volume if encrypted] **************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the LUKS volume's device type if encrypted] *********************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS version] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:42 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS key size] ***************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS cipher] ******************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:54 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:60 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": [], "_storage_test_expected_crypttab_entries": "0", "_storage_test_expected_crypttab_key_file": "-"}, "changed": false} TASK [Check for /etc/crypttab entry] ******************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:65 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Validate the format of the crypttab entry] ******************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:70 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check backing device of crypttab entry] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:76 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check key file of crypttab entry] **************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:82 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:88 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null, "_storage_test_expected_crypttab_entries": null, "_storage_test_expected_crypttab_key_file": null}, "changed": false} TASK [get information about RAID] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:7 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:13 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:17 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID active devices count] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:25 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID spare devices count] ****************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID metadata version] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [parse the actual size of the volume] ************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:3 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"bytes": 3221225472, "changed": false, "lvm": "3g", "parted": "3GiB", "size": "3 GiB"} TASK [parse the requested size of the volume] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:9 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"bytes": 3221225472, "changed": false, "lvm": "3g", "parted": "3GiB", "size": "3 GiB"} TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:15 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_actual_size": { "bytes": 3221225472, "changed": false, "failed": false, "lvm": "3g", "parted": "3GiB", "size": "3 GiB" } } TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_requested_size": { "bytes": 3221225472, "changed": false, "failed": false, "lvm": "3g", "parted": "3GiB", "size": "3 GiB" } } TASK [assert] ****************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:21 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:16 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": false, "_storage_volume_tests": ["mount", "fstab", "fs", "device", "encryption", "md", "size"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:10 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Get expected mount device based on device type] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/foo-test2"}, "changed": false} TASK [Set some facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [], "storage_test_mount_expected_match_count": "0", "storage_test_mount_point_matches": [], "storage_test_swap_expected_matches": "0"}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:22 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:31 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:39 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [command] ***************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Gather swap info] ******************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:52 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify swap status] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:57 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Unset facts] ************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:67 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null, "storage_test_swap_expected_matches": null, "storage_test_swaps": null, "storage_test_sys_node": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": "0", "storage_test_fstab_expected_mount_point_matches": "0", "storage_test_fstab_id_matches": [], "storage_test_fstab_mount_point_matches": []}, "changed": false} TASK [Verify that the device identifier appears in /etc/fstab] ***************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:10 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:17 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": null, "storage_test_fstab_expected_mount_point_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [Verify fs type] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:4 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify fs label] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:10 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [See whether the device node is present] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "stat": {"exists": false}} TASK [Verify the presence/absence of the device node] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:18 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "lvm"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:28 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:33 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Stat the LUKS device, if encrypted] ************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:3 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Collect LUKS info for this volume] *************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:10 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the presence/absence of the LUKS device node] ********************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:16 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify that the raw device is the same as the device if not encrypted] *** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:25 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Make sure we got info about the LUKS volume if encrypted] **************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the LUKS volume's device type if encrypted] *********************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS version] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:42 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS key size] ***************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS cipher] ******************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:54 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:60 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": [], "_storage_test_expected_crypttab_entries": "0", "_storage_test_expected_crypttab_key_file": "-"}, "changed": false} TASK [Check for /etc/crypttab entry] ******************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:65 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Validate the format of the crypttab entry] ******************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:70 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check backing device of crypttab entry] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:76 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check key file of crypttab entry] **************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:82 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:88 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null, "_storage_test_expected_crypttab_entries": null, "_storage_test_expected_crypttab_key_file": null}, "changed": false} TASK [get information about RAID] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:7 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:13 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:17 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID active devices count] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:25 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID spare devices count] ****************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID metadata version] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [parse the actual size of the volume] ************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:3 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [parse the requested size of the volume] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:9 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:15 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_actual_size": { "changed": false, "skip_reason": "Conditional result was False", "skipped": true } } TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_requested_size": { "changed": false, "skip_reason": "Conditional result was False", "skipped": true } } TASK [assert] ****************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Clean up facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:16 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": false, "_storage_volume_tests": ["mount", "fstab", "fs", "device", "encryption", "md", "size"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:10 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Get expected mount device based on device type] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/foo-test3"}, "changed": false} TASK [Set some facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [], "storage_test_mount_expected_match_count": "0", "storage_test_mount_point_matches": [], "storage_test_swap_expected_matches": "0"}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:22 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:31 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:39 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [command] ***************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Gather swap info] ******************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:52 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify swap status] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:57 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Unset facts] ************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:67 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null, "storage_test_swap_expected_matches": null, "storage_test_swaps": null, "storage_test_sys_node": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": "0", "storage_test_fstab_expected_mount_point_matches": "0", "storage_test_fstab_id_matches": [], "storage_test_fstab_mount_point_matches": []}, "changed": false} TASK [Verify that the device identifier appears in /etc/fstab] ***************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:10 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:17 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": null, "storage_test_fstab_expected_mount_point_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [Verify fs type] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:4 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify fs label] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:10 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [See whether the device node is present] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "stat": {"exists": false}} TASK [Verify the presence/absence of the device node] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:18 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "lvm"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:28 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:33 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Stat the LUKS device, if encrypted] ************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:3 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Collect LUKS info for this volume] *************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:10 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the presence/absence of the LUKS device node] ********************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:16 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify that the raw device is the same as the device if not encrypted] *** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:25 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Make sure we got info about the LUKS volume if encrypted] **************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the LUKS volume's device type if encrypted] *********************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS version] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:42 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS key size] ***************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS cipher] ******************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:54 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:60 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": [], "_storage_test_expected_crypttab_entries": "0", "_storage_test_expected_crypttab_key_file": "-"}, "changed": false} TASK [Check for /etc/crypttab entry] ******************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:65 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Validate the format of the crypttab entry] ******************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:70 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check backing device of crypttab entry] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:76 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check key file of crypttab entry] **************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:82 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:88 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null, "_storage_test_expected_crypttab_entries": null, "_storage_test_expected_crypttab_key_file": null}, "changed": false} TASK [get information about RAID] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:7 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:13 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:17 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID active devices count] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:25 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID spare devices count] ****************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID metadata version] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [parse the actual size of the volume] ************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:3 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [parse the requested size of the volume] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:9 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:15 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_actual_size": { "changed": false, "skip_reason": "Conditional result was False", "skipped": true } } TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_requested_size": { "changed": false, "skip_reason": "Conditional result was False", "skipped": true } } TASK [assert] ****************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Clean up facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:16 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:39 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_pool": null}, "changed": false} TASK [Verify the volumes with no pool were correctly managed] ****************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:46 TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:56 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_blkinfo": null, "storage_test_crypttab": null, "storage_test_fstab": null, "storage_test_volume": null}, "changed": false} TASK [Re-run the previous role invocation to ensure idempotence] *************** task path: /tmp/tmp7ksfxpzz/tests/tests_lvm_one_disk_multiple_volumes.yml:79 TASK [linux-system-roles.storage : Set version specific variables] ************* task path: /tmp/tmp7ksfxpzz/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-crypto", "libblockdev-dm", "libblockdev-lvm", "libblockdev-mdraid", "libblockdev-swap"]}, "ansible_included_var_files": ["/tmp/tmp7ksfxpzz/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.storage : define an empty list of pools to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : define an empty list of volumes to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : include the appropriate provider tasks] ***** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:22 included: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [linux-system-roles.storage : get a list of rpm packages installed on host machine] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : make sure blivet is available] ************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: python3-blivet", "Installed: libblockdev-crypto", "Installed: libblockdev-dm", "Installed: libblockdev-lvm", "Installed: libblockdev-mdraid", "Installed: libblockdev-swap"]} TASK [linux-system-roles.storage : initialize internal facts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools": [], "_storage_vol_defaults": [], "_storage_vol_pools": [], "_storage_vols_no_defaults": [], "_storage_vols_no_defaults_by_pool": {}, "_storage_vols_w_defaults": [], "_storage_volumes": []}, "changed": false} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [1/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:28 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'disks': [u'vda'], u'name': u'foo', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'3g'}, {u'state': u'absent', u'mount_point': u'/opt/test2', u'name': u'test2', u'size': u'3g'}, {u'state': u'absent', u'mount_point': u'/opt/test3', u'name': u'test3', u'size': u'3g'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "3g"}, {"mount_point": "/opt/test2", "name": "test2", "size": "3g", "state": "absent"}, {"mount_point": "/opt/test3", "name": "test3", "size": "3g", "state": "absent"}]}]}, "ansible_loop_var": "pool", "changed": false, "pool": {"disks": ["vda"], "name": "foo", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "3g"}, {"mount_point": "/opt/test2", "name": "test2", "size": "3g", "state": "absent"}, {"mount_point": "/opt/test3", "name": "test3", "size": "3g", "state": "absent"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [2/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:36 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'3g'}, {u'state': u'absent', u'mount_point': u'/opt/test2', u'name': u'test2', u'size': u'3g'}, {u'state': u'absent', u'mount_point': u'/opt/test3', u'name': u'test3', u'size': u'3g'}], u'type': u'lvm', u'encryption_key_size': None}, {u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'3g'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}], "_storage_vol_pools": ["foo"], "_storage_vols_no_defaults": [{"mount_point": "/opt/test1", "name": "test1", "size": "3g"}]}, "ansible_loop_var": "item", "changed": false, "item": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "3g"}, {"mount_point": "/opt/test2", "name": "test2", "size": "3g", "state": "absent"}, {"mount_point": "/opt/test3", "name": "test3", "size": "3g", "state": "absent"}]}, {"mount_point": "/opt/test1", "name": "test1", "size": "3g"}]} ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'3g'}, {u'state': u'absent', u'mount_point': u'/opt/test2', u'name': u'test2', u'size': u'3g'}, {u'state': u'absent', u'mount_point': u'/opt/test3', u'name': u'test3', u'size': u'3g'}], u'type': u'lvm', u'encryption_key_size': None}, {u'state': u'absent', u'mount_point': u'/opt/test2', u'name': u'test2', u'size': u'3g'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}], "_storage_vol_pools": ["foo", "foo"], "_storage_vols_no_defaults": [{"mount_point": "/opt/test1", "name": "test1", "size": "3g"}, {"mount_point": "/opt/test2", "name": "test2", "size": "3g", "state": "absent"}]}, "ansible_loop_var": "item", "changed": false, "item": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "3g"}, {"mount_point": "/opt/test2", "name": "test2", "size": "3g", "state": "absent"}, {"mount_point": "/opt/test3", "name": "test3", "size": "3g", "state": "absent"}]}, {"mount_point": "/opt/test2", "name": "test2", "size": "3g", "state": "absent"}]} ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'3g'}, {u'state': u'absent', u'mount_point': u'/opt/test2', u'name': u'test2', u'size': u'3g'}, {u'state': u'absent', u'mount_point': u'/opt/test3', u'name': u'test3', u'size': u'3g'}], u'type': u'lvm', u'encryption_key_size': None}, {u'state': u'absent', u'mount_point': u'/opt/test3', u'name': u'test3', u'size': u'3g'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}], "_storage_vol_pools": ["foo", "foo", "foo"], "_storage_vols_no_defaults": [{"mount_point": "/opt/test1", "name": "test1", "size": "3g"}, {"mount_point": "/opt/test2", "name": "test2", "size": "3g", "state": "absent"}, {"mount_point": "/opt/test3", "name": "test3", "size": "3g", "state": "absent"}]}, "ansible_loop_var": "item", "changed": false, "item": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "3g"}, {"mount_point": "/opt/test2", "name": "test2", "size": "3g", "state": "absent"}, {"mount_point": "/opt/test3", "name": "test3", "size": "3g", "state": "absent"}]}, {"mount_point": "/opt/test3", "name": "test3", "size": "3g", "state": "absent"}]} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [3/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:44 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'3g'}, {u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'fs_label': u'', u'raid_level': None, u'mount_device_identifier': u'uuid', u'fs_type': u'xfs', u'mount_options': u'defaults', u'encryption_luks_version': None, u'raid_spare_count': None, u'size': 0, u'mount_point': u'', u'encryption_password': None, u'encryption': False, u'raid_chunk_size': None, u'raid_device_count': None, u'state': u'present', u'mount_check': 0, u'mount_passno': 0, u'fs_overwrite_existing': True, u'type': u'lvm', u'encryption_key_size': None, u'fs_create_options': u''}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm"}]}, "ansible_index_var": "idx", "ansible_loop_var": "item", "changed": false, "idx": 0, "item": [{"mount_point": "/opt/test1", "name": "test1", "size": "3g"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}]} ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'state': u'absent', u'mount_point': u'/opt/test2', u'name': u'test2', u'size': u'3g'}, {u'raid_metadata_version': None, u'encryption_key_size': None, u'encryption_key': None, u'fs_label': u'', u'raid_chunk_size': None, u'mount_device_identifier': u'uuid', u'fs_type': u'xfs', u'mount_options': u'defaults', u'encryption_luks_version': None, u'raid_spare_count': None, u'size': 0, u'mount_point': u'', u'encryption_password': None, u'encryption': False, u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'mount_check': 0, u'mount_passno': 0, u'fs_overwrite_existing': True, u'type': u'lvm', u'encryption_cipher': None, u'fs_create_options': u''}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "test2", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "absent", "type": "lvm"}]}, "ansible_index_var": "idx", "ansible_loop_var": "item", "changed": false, "idx": 1, "item": [{"mount_point": "/opt/test2", "name": "test2", "size": "3g", "state": "absent"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}]} ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'state': u'absent', u'mount_point': u'/opt/test3', u'name': u'test3', u'size': u'3g'}, {u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'fs_label': u'', u'raid_level': None, u'mount_device_identifier': u'uuid', u'fs_type': u'xfs', u'mount_options': u'defaults', u'encryption_luks_version': None, u'raid_spare_count': None, u'size': 0, u'mount_point': u'', u'encryption_password': None, u'encryption': False, u'raid_chunk_size': None, u'raid_device_count': None, u'state': u'present', u'mount_check': 0, u'mount_passno': 0, u'fs_overwrite_existing': True, u'type': u'lvm', u'encryption_key_size': None, u'fs_create_options': u''}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "test2", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "absent", "type": "lvm"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test3", "name": "test3", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "absent", "type": "lvm"}]}, "ansible_index_var": "idx", "ansible_loop_var": "item", "changed": false, "idx": 2, "item": [{"mount_point": "/opt/test3", "name": "test3", "size": "3g", "state": "absent"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}]} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [4/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:52 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'3g'}, {u'state': u'absent', u'mount_point': u'/opt/test2', u'name': u'test2', u'size': u'3g'}, {u'state': u'absent', u'mount_point': u'/opt/test3', u'name': u'test3', u'size': u'3g'}], u'type': u'lvm', u'encryption_key_size': None}) => {"ansible_facts": {"_storage_vols_no_defaults_by_pool": {"foo": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "test2", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "absent", "type": "lvm"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test3", "name": "test3", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "absent", "type": "lvm"}]}}, "ansible_loop_var": "item", "changed": false, "item": {"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "3g"}, {"mount_point": "/opt/test2", "name": "test2", "size": "3g", "state": "absent"}, {"mount_point": "/opt/test3", "name": "test3", "size": "3g", "state": "absent"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [5/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:61 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'3g'}, {u'state': u'absent', u'mount_point': u'/opt/test2', u'name': u'test2', u'size': u'3g'}, {u'state': u'absent', u'mount_point': u'/opt/test3', u'name': u'test3', u'size': u'3g'}], u'type': u'lvm', u'encryption_key_size': None}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "test2", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "absent", "type": "lvm"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test3", "name": "test3", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "absent", "type": "lvm"}]}]}, "ansible_index_var": "idx", "ansible_loop_var": "pool", "changed": false, "idx": 0, "pool": {"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "3g"}, {"mount_point": "/opt/test2", "name": "test2", "size": "3g", "state": "absent"}, {"mount_point": "/opt/test3", "name": "test3", "size": "3g", "state": "absent"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [6/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:72 TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [ { "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm" }, { "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "test2", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "absent", "type": "lvm" }, { "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test3", "name": "test3", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "absent", "type": "lvm" } ] } ] } TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes": [] } TASK [linux-system-roles.storage : get required packages] ********************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": ["lvm2", "xfsprogs"], "pools": [], "volumes": []} TASK [linux-system-roles.storage : make sure required packages are installed] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: lvm2", "Installed: xfsprogs"]} TASK [linux-system-roles.storage : manage the pools and volumes to match the specified state] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:104 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": ["/dev/sda1", "/dev/sr0", "/dev/mapper/foo-test1", "/dev/vdb", "/dev/vdc"], "mounts": [{"dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "/dev/mapper/foo-test1", "state": "mounted"}], "packages": ["e2fsprogs", "xfsprogs", "lvm2"], "pools": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"_device": "/dev/mapper/foo-test1", "_kernel_device": "/dev/dm-2", "_mount_id": "/dev/mapper/foo-test1", "_raw_device": "/dev/mapper/foo-test1", "_raw_kernel_device": "/dev/dm-2", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm"}, {"_device": "", "_mount_id": "", "_raw_device": "", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "test2", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "absent", "type": "lvm"}, {"_device": "", "_mount_id": "", "_raw_device": "", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test3", "name": "test3", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "absent", "type": "lvm"}]}], "volumes": []} TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:114 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "blivet_output": { "actions": [], "changed": false, "crypts": [], "failed": false, "leaves": [ "/dev/sda1", "/dev/sr0", "/dev/mapper/foo-test1", "/dev/vdb", "/dev/vdc" ], "mounts": [ { "dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "/dev/mapper/foo-test1", "state": "mounted" } ], "packages": [ "e2fsprogs", "xfsprogs", "lvm2" ], "pools": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [ { "_device": "/dev/mapper/foo-test1", "_kernel_device": "/dev/dm-2", "_mount_id": "/dev/mapper/foo-test1", "_raw_device": "/dev/mapper/foo-test1", "_raw_kernel_device": "/dev/dm-2", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm" }, { "_device": "", "_mount_id": "", "_raw_device": "", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "test2", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "absent", "type": "lvm" }, { "_device": "", "_mount_id": "", "_raw_device": "", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test3", "name": "test3", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "absent", "type": "lvm" } ] } ], "volumes": [] } } TASK [linux-system-roles.storage : set the list of pools for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:117 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"_device": "/dev/mapper/foo-test1", "_kernel_device": "/dev/dm-2", "_mount_id": "/dev/mapper/foo-test1", "_raw_device": "/dev/mapper/foo-test1", "_raw_kernel_device": "/dev/dm-2", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm"}, {"_device": "", "_mount_id": "", "_raw_device": "", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "test2", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "absent", "type": "lvm"}, {"_device": "", "_mount_id": "", "_raw_device": "", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test3", "name": "test3", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "absent", "type": "lvm"}]}]}, "changed": false} TASK [linux-system-roles.storage : set the list of volumes for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:121 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : remove obsolete mounts] ********************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:137 TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:148 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [linux-system-roles.storage : set up new/current mounts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:153 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'src': u'/dev/mapper/foo-test1', u'state': u'mounted', u'dump': 0, u'path': u'/opt/test1', u'passno': 0, u'opts': u'defaults', u'fstype': u'xfs'}) => {"ansible_loop_var": "mount_info", "changed": false, "dump": "0", "fstab": "/etc/fstab", "fstype": "xfs", "mount_info": {"dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "/dev/mapper/foo-test1", "state": "mounted"}, "name": "/opt/test1", "opts": "defaults", "passno": "0", "src": "/dev/mapper/foo-test1"} TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:164 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [linux-system-roles.storage : Manage /etc/crypttab to account for changes we just made] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:172 TASK [linux-system-roles.storage : Update facts] ******************************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:187 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_lvm_one_disk_multiple_volumes.yml:99 included: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Print out pool information] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:1 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools_list": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [ { "_device": "/dev/mapper/foo-test1", "_kernel_device": "/dev/dm-2", "_mount_id": "/dev/mapper/foo-test1", "_raw_device": "/dev/mapper/foo-test1", "_raw_kernel_device": "/dev/dm-2", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "present", "type": "lvm" }, { "_device": "", "_mount_id": "", "_raw_device": "", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test2", "name": "test2", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "absent", "type": "lvm" }, { "_device": "", "_mount_id": "", "_raw_device": "", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test3", "name": "test3", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "3g", "state": "absent", "type": "lvm" } ] } ] } TASK [Print out volume information] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:6 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {} TASK [Collect info about the volumes.] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "info": {"/dev/mapper/foo-test1": {"fstype": "xfs", "label": "", "name": "/dev/mapper/foo-test1", "size": "3G", "type": "lvm", "uuid": "97bee658-ca07-484c-b441-5d87ca1bd54c"}, "/dev/sda": {"fstype": "", "label": "", "name": "/dev/sda", "size": "4G", "type": "disk", "uuid": ""}, "/dev/sda1": {"fstype": "ext4", "label": "", "name": "/dev/sda1", "size": "4G", "type": "partition", "uuid": "03e702b4-e165-4a39-88c9-9e210cd00434"}, "/dev/sr0": {"fstype": "iso9660", "label": "cidata", "name": "/dev/sr0", "size": "364K", "type": "rom", "uuid": "2020-10-31-12-48-35-00"}, "/dev/vda": {"fstype": "LVM2_member", "label": "", "name": "/dev/vda", "size": "10G", "type": "disk", "uuid": "Rdcc1J-umum-hzK6-Vh71-Snfm-vtyP-PgJyL9"}, "/dev/vdb": {"fstype": "", "label": "", "name": "/dev/vdb", "size": "10G", "type": "disk", "uuid": ""}, "/dev/vdc": {"fstype": "", "label": "", "name": "/dev/vdc", "size": "10G", "type": "disk", "uuid": ""}}} TASK [Read the /etc/fstab file for volume existence] *************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:19 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/fstab"], "delta": "0:00:00.002451", "end": "2020-10-31 12:51:33.275823", "rc": 0, "start": "2020-10-31 12:51:33.273372", "stderr": "", "stderr_lines": [], "stdout": "\n#\n# /etc/fstab\n# Created by anaconda on Sat Oct 31 08:17:58 2020\n#\n# Accessible filesystems, by reference, are maintained under '/dev/disk/'.\n# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.\n#\n# After editing this file, run 'systemctl daemon-reload' to update systemd\n# units generated from this file.\n#\nUUID=03e702b4-e165-4a39-88c9-9e210cd00434 / ext4 defaults 1 1\n/dev/mapper/foo-test1 /opt/test1 xfs defaults 0 0", "stdout_lines": ["", "#", "# /etc/fstab", "# Created by anaconda on Sat Oct 31 08:17:58 2020", "#", "# Accessible filesystems, by reference, are maintained under '/dev/disk/'.", "# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.", "#", "# After editing this file, run 'systemctl daemon-reload' to update systemd", "# units generated from this file.", "#", "UUID=03e702b4-e165-4a39-88c9-9e210cd00434 / ext4 defaults 1 1", "/dev/mapper/foo-test1 /opt/test1 xfs defaults 0 0"]} TASK [Read the /etc/crypttab file] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/crypttab"], "delta": "0:00:00.002952", "end": "2020-10-31 12:51:33.635530", "rc": 0, "start": "2020-10-31 12:51:33.632578", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Verify the volumes listed in storage_pools were correctly managed] ******* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:32 [WARNING]: The loop variable 'storage_test_pool' is already in use. You should set the `loop_var` value in the `loop_control` option for the task to something else to avoid variable collisions and unexpected behavior. included: /tmp/tmp7ksfxpzz/tests/test-verify-pool.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool.yml:5 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pool_tests": ["members", "volumes"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool.yml:17 included: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-pool-volumes.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:1 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_count": "1", "_storage_test_pool_pvs": [], "_storage_test_pool_pvs_lvm": ["/dev/vda"]}, "changed": false} TASK [Get the canonical device path for each member device] ******************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:7 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=/dev/vda) => {"ansible_loop_var": "pv", "changed": false, "device": "/dev/vda", "pv": "/dev/vda"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:16 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=/dev/vda) => {"ansible_facts": {"_storage_test_pool_pvs": ["/dev/vda"]}, "ansible_index_var": "idx", "ansible_loop_var": "item", "changed": false, "idx": 0, "item": "/dev/vda"} TASK [Verify PV count] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:23 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:29 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_type": "disk"}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:33 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_type": "disk"}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check the type of each PV] *********************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:41 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=/dev/vda) => { "ansible_loop_var": "pv", "changed": false, "msg": "All assertions passed", "pv": "/dev/vda" } TASK [Check raid] ************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:50 included: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [get information about RAID] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:6 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:12 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:16 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:20 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID active devices count] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:24 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID spare devices count] ****************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:30 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID metadata version] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:36 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:44 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_md_active_devices_re": null, "storage_test_md_metadata_version_re": null, "storage_test_md_spare_devices_re": null}, "changed": false} TASK [Check member encryption] ************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:53 included: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_crypttab_entries": "0", "_storage_test_expected_crypttab_key_file": "-"}, "changed": false} TASK [Validate pool member LUKS settings] ************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:8 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=/dev/vda) => {"_storage_test_pool_member_path": "/dev/vda", "ansible_loop_var": "_storage_test_pool_member_path", "changed": false, "skip_reason": "Conditional result was False"} TASK [Validate pool member crypttab entries] *********************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:15 included: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:1 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": []}, "changed": false} TASK [Check for /etc/crypttab entry] ******************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Validate the format of the crypttab entry] ******************************* task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:9 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check backing device of crypttab entry] ********************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:15 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check key file of crypttab entry] **************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:27 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:22 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null, "_storage_test_crypttab_key_file": null}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:56 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_count": null, "_storage_test_expected_pv_type": null, "_storage_test_pool_pvs": [], "_storage_test_pool_pvs_lvm": []}, "changed": false} TASK [verify the volumes] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-volumes.yml:3 [WARNING]: The loop variable 'storage_test_volume' is already in use. You should set the `loop_var` value in the `loop_control` option for the task to something else to avoid variable collisions and unexpected behavior. included: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": true, "_storage_volume_tests": ["mount", "fstab", "fs", "device", "encryption", "md", "size"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:10 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Get expected mount device based on device type] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/foo-test1"}, "changed": false} TASK [Set some facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [{"block_available": 770146, "block_size": 4096, "block_total": 783872, "block_used": 13726, "device": "/dev/mapper/foo-test1", "fstype": "xfs", "inode_available": 1572861, "inode_total": 1572864, "inode_used": 3, "mount": "/opt/test1", "options": "rw,seclabel,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota", "size_available": 3154518016, "size_total": 3210739712, "uuid": "97bee658-ca07-484c-b441-5d87ca1bd54c"}], "storage_test_mount_expected_match_count": "1", "storage_test_mount_point_matches": [{"block_available": 770146, "block_size": 4096, "block_total": 783872, "block_used": 13726, "device": "/dev/mapper/foo-test1", "fstype": "xfs", "inode_available": 1572861, "inode_total": 1572864, "inode_used": 3, "mount": "/opt/test1", "options": "rw,seclabel,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota", "size_available": 3154518016, "size_total": 3210739712, "uuid": "97bee658-ca07-484c-b441-5d87ca1bd54c"}], "storage_test_swap_expected_matches": "0"}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:22 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:31 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:39 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [command] ***************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Gather swap info] ******************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:52 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify swap status] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:57 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Unset facts] ************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:67 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null, "storage_test_swap_expected_matches": null, "storage_test_swaps": null, "storage_test_sys_node": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": "1", "storage_test_fstab_expected_mount_point_matches": "1", "storage_test_fstab_id_matches": ["/dev/mapper/foo-test1 "], "storage_test_fstab_mount_point_matches": [" /opt/test1 "]}, "changed": false} TASK [Verify that the device identifier appears in /etc/fstab] ***************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:17 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": null, "storage_test_fstab_expected_mount_point_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [Verify fs type] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify fs label] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [See whether the device node is present] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "stat": {"atime": 1604148608.4277904, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "ctime": 1604148608.4277904, "dev": 5, "device_type": 64770, "executable": false, "exists": true, "gid": 6, "gr_name": "disk", "inode": 1848, "isblk": true, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mimetype": "inode/symlink", "mode": "0660", "mtime": 1604148608.4277904, "nlink": 1, "path": "/dev/mapper/foo-test1", "pw_name": "root", "readable": true, "rgrp": true, "roth": false, "rusr": true, "size": 0, "uid": 0, "version": null, "wgrp": true, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}} TASK [Verify the presence/absence of the device node] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "lvm"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:28 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:33 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Stat the LUKS device, if encrypted] ************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:3 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Collect LUKS info for this volume] *************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:10 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the presence/absence of the LUKS device node] ********************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:16 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify that the raw device is the same as the device if not encrypted] *** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:25 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about the LUKS volume if encrypted] **************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the LUKS volume's device type if encrypted] *********************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS version] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:42 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS key size] ***************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS cipher] ******************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:54 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:60 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": [], "_storage_test_expected_crypttab_entries": "0", "_storage_test_expected_crypttab_key_file": "-"}, "changed": false} TASK [Check for /etc/crypttab entry] ******************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:65 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Validate the format of the crypttab entry] ******************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:70 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check backing device of crypttab entry] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:76 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check key file of crypttab entry] **************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:82 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:88 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null, "_storage_test_expected_crypttab_entries": null, "_storage_test_expected_crypttab_key_file": null}, "changed": false} TASK [get information about RAID] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:7 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:13 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:17 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID active devices count] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:25 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID spare devices count] ****************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID metadata version] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [parse the actual size of the volume] ************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:3 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"bytes": 3221225472, "changed": false, "lvm": "3g", "parted": "3GiB", "size": "3 GiB"} TASK [parse the requested size of the volume] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:9 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"bytes": 3221225472, "changed": false, "lvm": "3g", "parted": "3GiB", "size": "3 GiB"} TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:15 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_actual_size": { "bytes": 3221225472, "changed": false, "failed": false, "lvm": "3g", "parted": "3GiB", "size": "3 GiB" } } TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_requested_size": { "bytes": 3221225472, "changed": false, "failed": false, "lvm": "3g", "parted": "3GiB", "size": "3 GiB" } } TASK [assert] ****************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:21 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:16 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": false, "_storage_volume_tests": ["mount", "fstab", "fs", "device", "encryption", "md", "size"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:10 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Get expected mount device based on device type] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": ""}, "changed": false} TASK [Set some facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [], "storage_test_mount_expected_match_count": "0", "storage_test_mount_point_matches": [], "storage_test_swap_expected_matches": "0"}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:22 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:31 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:39 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [command] ***************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Gather swap info] ******************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:52 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify swap status] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:57 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Unset facts] ************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:67 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null, "storage_test_swap_expected_matches": null, "storage_test_swaps": null, "storage_test_sys_node": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": "0", "storage_test_fstab_expected_mount_point_matches": "0", "storage_test_fstab_id_matches": [], "storage_test_fstab_mount_point_matches": []}, "changed": false} TASK [Verify that the device identifier appears in /etc/fstab] ***************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:10 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:17 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": null, "storage_test_fstab_expected_mount_point_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [Verify fs type] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:4 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify fs label] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:10 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [See whether the device node is present] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "stat": {"exists": false}} TASK [Verify the presence/absence of the device node] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:18 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "lvm"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:28 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:33 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Stat the LUKS device, if encrypted] ************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:3 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Collect LUKS info for this volume] *************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:10 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the presence/absence of the LUKS device node] ********************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:16 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify that the raw device is the same as the device if not encrypted] *** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:25 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Make sure we got info about the LUKS volume if encrypted] **************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the LUKS volume's device type if encrypted] *********************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS version] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:42 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS key size] ***************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS cipher] ******************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:54 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:60 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": [], "_storage_test_expected_crypttab_entries": "0", "_storage_test_expected_crypttab_key_file": "-"}, "changed": false} TASK [Check for /etc/crypttab entry] ******************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:65 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Validate the format of the crypttab entry] ******************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:70 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check backing device of crypttab entry] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:76 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check key file of crypttab entry] **************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:82 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:88 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null, "_storage_test_expected_crypttab_entries": null, "_storage_test_expected_crypttab_key_file": null}, "changed": false} TASK [get information about RAID] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:7 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:13 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:17 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID active devices count] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:25 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID spare devices count] ****************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID metadata version] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [parse the actual size of the volume] ************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:3 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [parse the requested size of the volume] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:9 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:15 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_actual_size": { "changed": false, "skip_reason": "Conditional result was False", "skipped": true } } TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_requested_size": { "changed": false, "skip_reason": "Conditional result was False", "skipped": true } } TASK [assert] ****************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Clean up facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:16 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": false, "_storage_volume_tests": ["mount", "fstab", "fs", "device", "encryption", "md", "size"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:10 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Get expected mount device based on device type] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": ""}, "changed": false} TASK [Set some facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [], "storage_test_mount_expected_match_count": "0", "storage_test_mount_point_matches": [], "storage_test_swap_expected_matches": "0"}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:22 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:31 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:39 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [command] ***************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Gather swap info] ******************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:52 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify swap status] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:57 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Unset facts] ************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:67 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null, "storage_test_swap_expected_matches": null, "storage_test_swaps": null, "storage_test_sys_node": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": "0", "storage_test_fstab_expected_mount_point_matches": "0", "storage_test_fstab_id_matches": [], "storage_test_fstab_mount_point_matches": []}, "changed": false} TASK [Verify that the device identifier appears in /etc/fstab] ***************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:10 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:17 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": null, "storage_test_fstab_expected_mount_point_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [Verify fs type] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:4 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify fs label] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:10 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [See whether the device node is present] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "stat": {"exists": false}} TASK [Verify the presence/absence of the device node] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:18 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "lvm"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:28 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:33 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Stat the LUKS device, if encrypted] ************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:3 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Collect LUKS info for this volume] *************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:10 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the presence/absence of the LUKS device node] ********************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:16 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify that the raw device is the same as the device if not encrypted] *** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:25 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Make sure we got info about the LUKS volume if encrypted] **************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the LUKS volume's device type if encrypted] *********************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS version] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:42 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS key size] ***************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS cipher] ******************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:54 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:60 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": [], "_storage_test_expected_crypttab_entries": "0", "_storage_test_expected_crypttab_key_file": "-"}, "changed": false} TASK [Check for /etc/crypttab entry] ******************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:65 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Validate the format of the crypttab entry] ******************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:70 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check backing device of crypttab entry] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:76 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check key file of crypttab entry] **************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:82 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:88 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null, "_storage_test_expected_crypttab_entries": null, "_storage_test_expected_crypttab_key_file": null}, "changed": false} TASK [get information about RAID] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:7 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:13 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:17 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID active devices count] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:25 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID spare devices count] ****************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID metadata version] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [parse the actual size of the volume] ************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:3 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [parse the requested size of the volume] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:9 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:15 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_actual_size": { "changed": false, "skip_reason": "Conditional result was False", "skipped": true } } TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_requested_size": { "changed": false, "skip_reason": "Conditional result was False", "skipped": true } } TASK [assert] ****************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Clean up facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:16 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:39 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_pool": null}, "changed": false} TASK [Verify the volumes with no pool were correctly managed] ****************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:46 TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:56 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_blkinfo": null, "storage_test_crypttab": null, "storage_test_fstab": null, "storage_test_volume": null}, "changed": false} TASK [Clean up] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_lvm_one_disk_multiple_volumes.yml:101 TASK [linux-system-roles.storage : Set version specific variables] ************* task path: /tmp/tmp7ksfxpzz/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-crypto", "libblockdev-dm", "libblockdev-lvm", "libblockdev-mdraid", "libblockdev-swap"]}, "ansible_included_var_files": ["/tmp/tmp7ksfxpzz/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.storage : define an empty list of pools to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : define an empty list of volumes to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : include the appropriate provider tasks] ***** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:22 included: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [linux-system-roles.storage : get a list of rpm packages installed on host machine] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : make sure blivet is available] ************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: python3-blivet", "Installed: libblockdev-crypto", "Installed: libblockdev-dm", "Installed: libblockdev-lvm", "Installed: libblockdev-mdraid", "Installed: libblockdev-swap"]} TASK [linux-system-roles.storage : initialize internal facts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools": [], "_storage_vol_defaults": [], "_storage_vol_pools": [], "_storage_vols_no_defaults": [], "_storage_vols_no_defaults_by_pool": {}, "_storage_vols_w_defaults": [], "_storage_volumes": []}, "changed": false} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [1/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:28 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'state': u'absent', u'disks': [u'vda'], u'name': u'foo', u'volumes': []}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "absent", "type": "lvm", "volumes": []}]}, "ansible_loop_var": "pool", "changed": false, "pool": {"disks": ["vda"], "name": "foo", "state": "absent", "volumes": []}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [2/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:36 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [3/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:44 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [4/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:52 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'absent', u'volumes': [], u'type': u'lvm', u'encryption_key_size': None}) => {"ansible_facts": {"_storage_vols_no_defaults_by_pool": {"foo": []}}, "ansible_loop_var": "item", "changed": false, "item": {"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "absent", "type": "lvm", "volumes": []}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [5/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:61 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'absent', u'volumes': [], u'type': u'lvm', u'encryption_key_size': None}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "absent", "type": "lvm", "volumes": []}]}, "ansible_index_var": "idx", "ansible_loop_var": "pool", "changed": false, "idx": 0, "pool": {"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "absent", "type": "lvm", "volumes": []}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [6/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:72 TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "absent", "type": "lvm", "volumes": [] } ] } TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes": [] } TASK [linux-system-roles.storage : get required packages] ********************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": []} TASK [linux-system-roles.storage : make sure required packages are installed] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [linux-system-roles.storage : manage the pools and volumes to match the specified state] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:104 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [{"action": "destroy format", "device": "/dev/mapper/foo-test1", "fs_type": "xfs"}, {"action": "destroy device", "device": "/dev/mapper/foo-test1", "fs_type": null}, {"action": "destroy device", "device": "/dev/foo", "fs_type": null}, {"action": "destroy format", "device": "/dev/vda", "fs_type": "lvmpv"}], "changed": true, "crypts": [], "leaves": ["/dev/sda1", "/dev/sr0", "/dev/vda", "/dev/vdb", "/dev/vdc"], "mounts": [{"fstype": "xfs", "path": "/opt/test1", "src": "/dev/mapper/foo-test1", "state": "absent"}], "packages": ["e2fsprogs"], "pools": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "absent", "type": "lvm", "volumes": []}], "volumes": []} TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:114 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "blivet_output": { "actions": [ { "action": "destroy format", "device": "/dev/mapper/foo-test1", "fs_type": "xfs" }, { "action": "destroy device", "device": "/dev/mapper/foo-test1", "fs_type": null }, { "action": "destroy device", "device": "/dev/foo", "fs_type": null }, { "action": "destroy format", "device": "/dev/vda", "fs_type": "lvmpv" } ], "changed": true, "crypts": [], "failed": false, "leaves": [ "/dev/sda1", "/dev/sr0", "/dev/vda", "/dev/vdb", "/dev/vdc" ], "mounts": [ { "fstype": "xfs", "path": "/opt/test1", "src": "/dev/mapper/foo-test1", "state": "absent" } ], "packages": [ "e2fsprogs" ], "pools": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "absent", "type": "lvm", "volumes": [] } ], "volumes": [] } } TASK [linux-system-roles.storage : set the list of pools for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:117 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "absent", "type": "lvm", "volumes": []}]}, "changed": false} TASK [linux-system-roles.storage : set the list of volumes for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:121 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : remove obsolete mounts] ********************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:137 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'src': u'/dev/mapper/foo-test1', u'state': u'absent', u'fstype': u'xfs', u'path': u'/opt/test1'}) => {"ansible_loop_var": "mount_info", "changed": true, "dump": "0", "fstab": "/etc/fstab", "fstype": "xfs", "mount_info": {"fstype": "xfs", "path": "/opt/test1", "src": "/dev/mapper/foo-test1", "state": "absent"}, "name": "/opt/test1", "opts": "defaults", "passno": "0", "src": "/dev/mapper/foo-test1"} TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:148 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [linux-system-roles.storage : set up new/current mounts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:153 TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:164 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [linux-system-roles.storage : Manage /etc/crypttab to account for changes we just made] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:172 TASK [linux-system-roles.storage : Update facts] ******************************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:187 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 : ok=635 changed=7 unreachable=0 failed=0 skipped=399 rescued=0 ignored=0 + cd /tmp/tmp7ksfxpzz/tests; TEST_SUBJECTS=/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_storage-178-e856157-fedora-31-87qzp9iq/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmp7ksfxpzz/_setup.yml /tmp/tmp7ksfxpzz/tests/tests_lvm_one_disk_one_volume.yml ansible-playbook 2.8.16 config file = /etc/ansible/ansible.cfg configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python2.7/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 2.7.5 (default, Apr 2 2020, 13:16:51) [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)] Using /etc/ansible/ansible.cfg as config file PLAYBOOK: _setup.yml *********************************************************** 1 plays in /tmp/tmp7ksfxpzz/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/_setup.yml:5 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "groups": { "all": [ "/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2" ], "localhost": [ "/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2" ], "subjects": [ "/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmp7ksfxpzz/_setup.yml:6 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 : ok=1 changed=0 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 PLAYBOOK: tests_lvm_one_disk_one_volume.yml ************************************ 1 plays in /tmp/tmp7ksfxpzz/tests/tests_lvm_one_disk_one_volume.yml PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/tests_lvm_one_disk_one_volume.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] META: ran handlers TASK [include_role : linux-system-roles.storage] ******************************* task path: /tmp/tmp7ksfxpzz/tests/tests_lvm_one_disk_one_volume.yml:10 TASK [linux-system-roles.storage : Set version specific variables] ************* task path: /tmp/tmp7ksfxpzz/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-crypto", "libblockdev-dm", "libblockdev-lvm", "libblockdev-mdraid", "libblockdev-swap"]}, "ansible_included_var_files": ["/tmp/tmp7ksfxpzz/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.storage : define an empty list of pools to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : define an empty list of volumes to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : include the appropriate provider tasks] ***** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:22 included: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [linux-system-roles.storage : get a list of rpm packages installed on host machine] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : make sure blivet is available] ************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:7 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: python3-blivet", "Installed: libblockdev-crypto", "Installed: libblockdev-dm", "Installed: libblockdev-lvm", "Installed: libblockdev-mdraid", "Installed: libblockdev-swap", "Installed: dmraid-1.0.0.rc16-43.fc31.x86_64", "Installed: libblockdev-crypto-2.24-2.fc31.x86_64", "Installed: ndctl-70.1-1.fc31.x86_64", "Installed: dmraid-events-1.0.0.rc16-43.fc31.x86_64", "Installed: btrfs-progs-5.7-4.fc31.x86_64", "Installed: gdisk-1.0.5-1.fc31.x86_64", "Installed: ndctl-libs-70.1-1.fc31.x86_64", "Installed: libblockdev-dm-2.24-2.fc31.x86_64", "Installed: lzo-2.08-16.fc31.x86_64", "Installed: mdadm-4.1-5.fc31.x86_64", "Installed: libblockdev-fs-2.24-2.fc31.x86_64", "Installed: nspr-4.29.0-1.fc31.x86_64", "Installed: libblockdev-kbd-2.24-2.fc31.x86_64", "Installed: lsof-4.93.2-2.fc31.x86_64", "Installed: compat-readline5-5.2-34.fc31.x86_64", "Installed: nss-3.57.0-1.fc31.x86_64", "Installed: libblockdev-loop-2.24-2.fc31.x86_64", "Installed: libblockdev-lvm-2.24-2.fc31.x86_64", "Installed: python3-gobject-base-3.34.0-3.fc31.x86_64", "Installed: lvm2-2.03.09-1.fc31.x86_64", "Installed: nss-softokn-3.57.0-1.fc31.x86_64", "Installed: userspace-rcu-0.11.1-2.fc31.x86_64", "Installed: libblockdev-mdraid-2.24-2.fc31.x86_64", "Installed: lvm2-libs-2.03.09-1.fc31.x86_64", "Installed: nss-softokn-freebl-3.57.0-1.fc31.x86_64", "Installed: nss-sysinit-3.57.0-1.fc31.x86_64", "Installed: libblockdev-mpath-2.24-2.fc31.x86_64", "Installed: gobject-introspection-1.62.0-1.fc31.x86_64", "Installed: device-mapper-event-1.02.171-1.fc31.x86_64", "Installed: nss-util-3.57.0-1.fc31.x86_64", "Installed: libblockdev-nvdimm-2.24-2.fc31.x86_64", "Installed: volume_key-libs-0.3.12-4.fc31.x86_64", "Installed: device-mapper-event-libs-1.02.171-1.fc31.x86_64", "Installed: libblockdev-part-2.24-2.fc31.x86_64", "Installed: libblockdev-swap-2.24-2.fc31.x86_64", "Installed: libblockdev-utils-2.24-2.fc31.x86_64", "Installed: blivet-data-1:3.1.7-2.fc31.noarch", "Installed: device-mapper-multipath-0.8.0-3.fc31.x86_64", "Installed: device-mapper-multipath-libs-0.8.0-3.fc31.x86_64", "Installed: device-mapper-persistent-data-0.8.5-2.fc31.x86_64", "Installed: sgpio-1.2.0.10-24.fc31.x86_64", "Installed: bcache-tools-1.0.8-16.fc31.x86_64", "Installed: python3-pyudev-0.21.0-11.fc31.noarch", "Installed: python3-blivet-1:3.1.7-2.fc31.noarch", "Installed: python3-blockdev-2.24-2.fc31.x86_64", "Installed: daxctl-libs-70.1-1.fc31.x86_64", "Installed: python3-pyparted-1:3.11.2-2.fc31.x86_64", "Installed: libaio-0.3.111-6.fc31.x86_64", "Installed: libbytesize-2.3-1.fc31.x86_64", "Installed: python3-bytesize-2.3-1.fc31.x86_64", "Installed: libblockdev-2.24-2.fc31.x86_64", "Installed: libblockdev-btrfs-2.24-2.fc31.x86_64"]} TASK [linux-system-roles.storage : initialize internal facts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools": [], "_storage_vol_defaults": [], "_storage_vol_pools": [], "_storage_vols_no_defaults": [], "_storage_vols_no_defaults_by_pool": {}, "_storage_vols_w_defaults": [], "_storage_volumes": []}, "changed": false} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [1/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:28 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [2/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:36 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [3/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:44 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [4/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:52 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [5/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:61 TASK [linux-system-roles.storage : Apply defaults to pools and volumes [6/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:72 TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools": [] } TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes": [] } TASK [linux-system-roles.storage : get required packages] ********************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": []} TASK [linux-system-roles.storage : make sure required packages are installed] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [linux-system-roles.storage : manage the pools and volumes to match the specified state] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:104 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": []} TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:114 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "blivet_output": { "actions": [], "changed": false, "crypts": [], "failed": false, "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": [] } } TASK [linux-system-roles.storage : set the list of pools for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:117 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : set the list of volumes for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:121 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : remove obsolete mounts] ********************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:137 TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:148 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : set up new/current mounts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:153 TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:164 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : Manage /etc/crypttab to account for changes we just made] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:172 TASK [linux-system-roles.storage : Update facts] ******************************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:187 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_lvm_one_disk_one_volume.yml:13 included: /tmp/tmp7ksfxpzz/tests/get_unused_disk.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Find unused disks in the system] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/get_unused_disk.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "disks": ["vda"]} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/get_unused_disk.yml:8 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"unused_disks": ["vda"]}, "changed": false} TASK [Exit playbook when there's not enough unused disks in the system] ******** task path: /tmp/tmp7ksfxpzz/tests/get_unused_disk.yml:12 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Print unused disks] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/get_unused_disk.yml:17 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "unused_disks": [ "vda" ] } TASK [Create one LVM logical volume under one volume group] ******************** task path: /tmp/tmp7ksfxpzz/tests/tests_lvm_one_disk_one_volume.yml:18 TASK [linux-system-roles.storage : Set version specific variables] ************* task path: /tmp/tmp7ksfxpzz/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-crypto", "libblockdev-dm", "libblockdev-lvm", "libblockdev-mdraid", "libblockdev-swap"]}, "ansible_included_var_files": ["/tmp/tmp7ksfxpzz/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.storage : define an empty list of pools to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : define an empty list of volumes to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : include the appropriate provider tasks] ***** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:22 included: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [linux-system-roles.storage : get a list of rpm packages installed on host machine] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : make sure blivet is available] ************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: python3-blivet", "Installed: libblockdev-crypto", "Installed: libblockdev-dm", "Installed: libblockdev-lvm", "Installed: libblockdev-mdraid", "Installed: libblockdev-swap"]} TASK [linux-system-roles.storage : initialize internal facts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools": [], "_storage_vol_defaults": [], "_storage_vol_pools": [], "_storage_vols_no_defaults": [], "_storage_vols_no_defaults_by_pool": {}, "_storage_vols_w_defaults": [], "_storage_volumes": []}, "changed": false} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [1/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:28 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'disks': [u'vda'], u'name': u'foo', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'4g'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "4g"}]}]}, "ansible_loop_var": "pool", "changed": false, "pool": {"disks": ["vda"], "name": "foo", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "4g"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [2/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:36 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'4g'}], u'type': u'lvm', u'encryption_key_size': None}, {u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'4g'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}], "_storage_vol_pools": ["foo"], "_storage_vols_no_defaults": [{"mount_point": "/opt/test1", "name": "test1", "size": "4g"}]}, "ansible_loop_var": "item", "changed": false, "item": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "4g"}]}, {"mount_point": "/opt/test1", "name": "test1", "size": "4g"}]} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [3/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:44 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'4g'}, {u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'fs_label': u'', u'raid_level': None, u'mount_device_identifier': u'uuid', u'fs_type': u'xfs', u'mount_options': u'defaults', u'encryption_luks_version': None, u'raid_spare_count': None, u'size': 0, u'mount_point': u'', u'encryption_password': None, u'encryption': False, u'raid_chunk_size': None, u'raid_device_count': None, u'state': u'present', u'mount_check': 0, u'mount_passno': 0, u'fs_overwrite_existing': True, u'type': u'lvm', u'encryption_key_size': None, u'fs_create_options': u''}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm"}]}, "ansible_index_var": "idx", "ansible_loop_var": "item", "changed": false, "idx": 0, "item": [{"mount_point": "/opt/test1", "name": "test1", "size": "4g"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}]} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [4/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:52 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'4g'}], u'type': u'lvm', u'encryption_key_size': None}) => {"ansible_facts": {"_storage_vols_no_defaults_by_pool": {"foo": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm"}]}}, "ansible_loop_var": "item", "changed": false, "item": {"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "4g"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [5/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:61 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'4g'}], u'type': u'lvm', u'encryption_key_size': None}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm"}]}]}, "ansible_index_var": "idx", "ansible_loop_var": "pool", "changed": false, "idx": 0, "pool": {"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "4g"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [6/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:72 TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [ { "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm" } ] } ] } TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes": [] } TASK [linux-system-roles.storage : get required packages] ********************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": ["lvm2", "xfsprogs"], "pools": [], "volumes": []} TASK [linux-system-roles.storage : make sure required packages are installed] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: lvm2", "Installed: xfsprogs"]} TASK [linux-system-roles.storage : manage the pools and volumes to match the specified state] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:104 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [{"action": "create format", "device": "/dev/vda", "fs_type": "lvmpv"}, {"action": "create device", "device": "/dev/foo", "fs_type": null}, {"action": "create device", "device": "/dev/mapper/foo-test1", "fs_type": null}, {"action": "create format", "device": "/dev/mapper/foo-test1", "fs_type": "xfs"}], "changed": true, "crypts": [], "leaves": ["/dev/sda1", "/dev/sr0", "/dev/vdb", "/dev/vdc", "/dev/mapper/foo-test1"], "mounts": [{"dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "/dev/mapper/foo-test1", "state": "mounted"}], "packages": ["e2fsprogs", "lvm2", "xfsprogs"], "pools": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"_device": "/dev/mapper/foo-test1", "_kernel_device": "/dev/dm-0", "_mount_id": "/dev/mapper/foo-test1", "_raw_device": "/dev/mapper/foo-test1", "_raw_kernel_device": "/dev/dm-0", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm"}]}], "volumes": []} TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:114 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "blivet_output": { "actions": [ { "action": "create format", "device": "/dev/vda", "fs_type": "lvmpv" }, { "action": "create device", "device": "/dev/foo", "fs_type": null }, { "action": "create device", "device": "/dev/mapper/foo-test1", "fs_type": null }, { "action": "create format", "device": "/dev/mapper/foo-test1", "fs_type": "xfs" } ], "changed": true, "crypts": [], "failed": false, "leaves": [ "/dev/sda1", "/dev/sr0", "/dev/vdb", "/dev/vdc", "/dev/mapper/foo-test1" ], "mounts": [ { "dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "/dev/mapper/foo-test1", "state": "mounted" } ], "packages": [ "e2fsprogs", "lvm2", "xfsprogs" ], "pools": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [ { "_device": "/dev/mapper/foo-test1", "_kernel_device": "/dev/dm-0", "_mount_id": "/dev/mapper/foo-test1", "_raw_device": "/dev/mapper/foo-test1", "_raw_kernel_device": "/dev/dm-0", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm" } ] } ], "volumes": [] } } TASK [linux-system-roles.storage : set the list of pools for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:117 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"_device": "/dev/mapper/foo-test1", "_kernel_device": "/dev/dm-0", "_mount_id": "/dev/mapper/foo-test1", "_raw_device": "/dev/mapper/foo-test1", "_raw_kernel_device": "/dev/dm-0", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm"}]}]}, "changed": false} TASK [linux-system-roles.storage : set the list of volumes for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:121 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : remove obsolete mounts] ********************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:137 TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:148 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [linux-system-roles.storage : set up new/current mounts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:153 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'src': u'/dev/mapper/foo-test1', u'state': u'mounted', u'dump': 0, u'path': u'/opt/test1', u'passno': 0, u'opts': u'defaults', u'fstype': u'xfs'}) => {"ansible_loop_var": "mount_info", "changed": true, "dump": "0", "fstab": "/etc/fstab", "fstype": "xfs", "mount_info": {"dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "/dev/mapper/foo-test1", "state": "mounted"}, "name": "/opt/test1", "opts": "defaults", "passno": "0", "src": "/dev/mapper/foo-test1"} TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:164 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [linux-system-roles.storage : Manage /etc/crypttab to account for changes we just made] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:172 TASK [linux-system-roles.storage : Update facts] ******************************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:187 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_lvm_one_disk_one_volume.yml:30 included: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Print out pool information] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:1 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools_list": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [ { "_device": "/dev/mapper/foo-test1", "_kernel_device": "/dev/dm-0", "_mount_id": "/dev/mapper/foo-test1", "_raw_device": "/dev/mapper/foo-test1", "_raw_kernel_device": "/dev/dm-0", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm" } ] } ] } TASK [Print out volume information] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:6 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {} TASK [Collect info about the volumes.] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "info": {"/dev/mapper/foo-test1": {"fstype": "xfs", "label": "", "name": "/dev/mapper/foo-test1", "size": "4G", "type": "lvm", "uuid": "5bf6adf9-5bf7-44b3-b570-2e11aeb340ff"}, "/dev/sda": {"fstype": "", "label": "", "name": "/dev/sda", "size": "4G", "type": "disk", "uuid": ""}, "/dev/sda1": {"fstype": "ext4", "label": "", "name": "/dev/sda1", "size": "4G", "type": "partition", "uuid": "03e702b4-e165-4a39-88c9-9e210cd00434"}, "/dev/sr0": {"fstype": "iso9660", "label": "cidata", "name": "/dev/sr0", "size": "364K", "type": "rom", "uuid": "2020-10-31-12-51-57-00"}, "/dev/vda": {"fstype": "LVM2_member", "label": "", "name": "/dev/vda", "size": "10G", "type": "disk", "uuid": "lxKwdD-VoBi-AV3a-lMCW-ERI1-3nyL-Anp5Aj"}, "/dev/vdb": {"fstype": "", "label": "", "name": "/dev/vdb", "size": "10G", "type": "disk", "uuid": ""}, "/dev/vdc": {"fstype": "", "label": "", "name": "/dev/vdc", "size": "10G", "type": "disk", "uuid": ""}}} TASK [Read the /etc/fstab file for volume existence] *************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:19 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/fstab"], "delta": "0:00:00.002836", "end": "2020-10-31 12:53:40.147879", "rc": 0, "start": "2020-10-31 12:53:40.145043", "stderr": "", "stderr_lines": [], "stdout": "\n#\n# /etc/fstab\n# Created by anaconda on Sat Oct 31 08:17:58 2020\n#\n# Accessible filesystems, by reference, are maintained under '/dev/disk/'.\n# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.\n#\n# After editing this file, run 'systemctl daemon-reload' to update systemd\n# units generated from this file.\n#\nUUID=03e702b4-e165-4a39-88c9-9e210cd00434 / ext4 defaults 1 1\n/dev/mapper/foo-test1 /opt/test1 xfs defaults 0 0", "stdout_lines": ["", "#", "# /etc/fstab", "# Created by anaconda on Sat Oct 31 08:17:58 2020", "#", "# Accessible filesystems, by reference, are maintained under '/dev/disk/'.", "# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.", "#", "# After editing this file, run 'systemctl daemon-reload' to update systemd", "# units generated from this file.", "#", "UUID=03e702b4-e165-4a39-88c9-9e210cd00434 / ext4 defaults 1 1", "/dev/mapper/foo-test1 /opt/test1 xfs defaults 0 0"]} TASK [Read the /etc/crypttab file] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/crypttab"], "delta": "0:00:00.002521", "end": "2020-10-31 12:53:40.474675", "rc": 0, "start": "2020-10-31 12:53:40.472154", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Verify the volumes listed in storage_pools were correctly managed] ******* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:32 included: /tmp/tmp7ksfxpzz/tests/test-verify-pool.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool.yml:5 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pool_tests": ["members", "volumes"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool.yml:17 included: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-pool-volumes.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:1 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_count": "1", "_storage_test_pool_pvs": [], "_storage_test_pool_pvs_lvm": ["/dev/vda"]}, "changed": false} TASK [Get the canonical device path for each member device] ******************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:7 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=/dev/vda) => {"ansible_loop_var": "pv", "changed": false, "device": "/dev/vda", "pv": "/dev/vda"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:16 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=/dev/vda) => {"ansible_facts": {"_storage_test_pool_pvs": ["/dev/vda"]}, "ansible_index_var": "idx", "ansible_loop_var": "item", "changed": false, "idx": 0, "item": "/dev/vda"} TASK [Verify PV count] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:23 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:29 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_type": "disk"}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:33 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_type": "disk"}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check the type of each PV] *********************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:41 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=/dev/vda) => { "ansible_loop_var": "pv", "changed": false, "msg": "All assertions passed", "pv": "/dev/vda" } TASK [Check raid] ************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:50 included: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [get information about RAID] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:6 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:12 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:16 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:20 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID active devices count] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:24 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID spare devices count] ****************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:30 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID metadata version] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:36 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:44 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_md_active_devices_re": null, "storage_test_md_metadata_version_re": null, "storage_test_md_spare_devices_re": null}, "changed": false} TASK [Check member encryption] ************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:53 included: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_crypttab_entries": "0", "_storage_test_expected_crypttab_key_file": "-"}, "changed": false} TASK [Validate pool member LUKS settings] ************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:8 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=/dev/vda) => {"_storage_test_pool_member_path": "/dev/vda", "ansible_loop_var": "_storage_test_pool_member_path", "changed": false, "skip_reason": "Conditional result was False"} TASK [Validate pool member crypttab entries] *********************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:15 included: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:1 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": []}, "changed": false} TASK [Check for /etc/crypttab entry] ******************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Validate the format of the crypttab entry] ******************************* task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:9 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check backing device of crypttab entry] ********************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:15 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check key file of crypttab entry] **************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:27 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:22 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null, "_storage_test_crypttab_key_file": null}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:56 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_count": null, "_storage_test_expected_pv_type": null, "_storage_test_pool_pvs": [], "_storage_test_pool_pvs_lvm": []}, "changed": false} TASK [verify the volumes] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-volumes.yml:3 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": true, "_storage_volume_tests": ["mount", "fstab", "fs", "device", "encryption", "md", "size"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:10 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Get expected mount device based on device type] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/foo-test1"}, "changed": false} TASK [Set some facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [{"block_available": 1030454, "block_size": 4096, "block_total": 1046016, "block_used": 15562, "device": "/dev/mapper/foo-test1", "fstype": "xfs", "inode_available": 2097149, "inode_total": 2097152, "inode_used": 3, "mount": "/opt/test1", "options": "rw,seclabel,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota", "size_available": 4220739584, "size_total": 4284481536, "uuid": "5bf6adf9-5bf7-44b3-b570-2e11aeb340ff"}], "storage_test_mount_expected_match_count": "1", "storage_test_mount_point_matches": [{"block_available": 1030454, "block_size": 4096, "block_total": 1046016, "block_used": 15562, "device": "/dev/mapper/foo-test1", "fstype": "xfs", "inode_available": 2097149, "inode_total": 2097152, "inode_used": 3, "mount": "/opt/test1", "options": "rw,seclabel,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota", "size_available": 4220739584, "size_total": 4284481536, "uuid": "5bf6adf9-5bf7-44b3-b570-2e11aeb340ff"}], "storage_test_swap_expected_matches": "0"}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:22 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:31 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:39 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [command] ***************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Gather swap info] ******************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:52 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify swap status] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:57 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Unset facts] ************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:67 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null, "storage_test_swap_expected_matches": null, "storage_test_swaps": null, "storage_test_sys_node": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": "1", "storage_test_fstab_expected_mount_point_matches": "1", "storage_test_fstab_id_matches": ["/dev/mapper/foo-test1 "], "storage_test_fstab_mount_point_matches": [" /opt/test1 "]}, "changed": false} TASK [Verify that the device identifier appears in /etc/fstab] ***************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:17 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": null, "storage_test_fstab_expected_mount_point_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [Verify fs type] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify fs label] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [See whether the device node is present] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "stat": {"atime": 1604148816.1488342, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "ctime": 1604148816.1488342, "dev": 5, "device_type": 64768, "executable": false, "exists": true, "gid": 6, "gr_name": "disk", "inode": 1872, "isblk": true, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mimetype": "inode/symlink", "mode": "0660", "mtime": 1604148816.1488342, "nlink": 1, "path": "/dev/mapper/foo-test1", "pw_name": "root", "readable": true, "rgrp": true, "roth": false, "rusr": true, "size": 0, "uid": 0, "version": null, "wgrp": true, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}} TASK [Verify the presence/absence of the device node] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "lvm"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:28 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:33 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Stat the LUKS device, if encrypted] ************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:3 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Collect LUKS info for this volume] *************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:10 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the presence/absence of the LUKS device node] ********************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:16 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify that the raw device is the same as the device if not encrypted] *** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:25 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about the LUKS volume if encrypted] **************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the LUKS volume's device type if encrypted] *********************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS version] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:42 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS key size] ***************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS cipher] ******************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:54 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:60 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": [], "_storage_test_expected_crypttab_entries": "0", "_storage_test_expected_crypttab_key_file": "-"}, "changed": false} TASK [Check for /etc/crypttab entry] ******************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:65 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Validate the format of the crypttab entry] ******************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:70 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check backing device of crypttab entry] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:76 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check key file of crypttab entry] **************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:82 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:88 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null, "_storage_test_expected_crypttab_entries": null, "_storage_test_expected_crypttab_key_file": null}, "changed": false} TASK [get information about RAID] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:7 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:13 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:17 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID active devices count] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:25 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID spare devices count] ****************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID metadata version] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [parse the actual size of the volume] ************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:3 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"bytes": 4294967296, "changed": false, "lvm": "4g", "parted": "4GiB", "size": "4 GiB"} TASK [parse the requested size of the volume] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:9 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"bytes": 4294967296, "changed": false, "lvm": "4g", "parted": "4GiB", "size": "4 GiB"} TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:15 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_actual_size": { "bytes": 4294967296, "changed": false, "failed": false, "lvm": "4g", "parted": "4GiB", "size": "4 GiB" } } TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_requested_size": { "bytes": 4294967296, "changed": false, "failed": false, "lvm": "4g", "parted": "4GiB", "size": "4 GiB" } } TASK [assert] ****************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:21 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:16 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:39 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_pool": null}, "changed": false} TASK [Verify the volumes with no pool were correctly managed] ****************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:46 TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:56 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_blkinfo": null, "storage_test_crypttab": null, "storage_test_fstab": null, "storage_test_volume": null}, "changed": false} TASK [Repeat the previous invocation to verify idempotence] ******************** task path: /tmp/tmp7ksfxpzz/tests/tests_lvm_one_disk_one_volume.yml:32 TASK [linux-system-roles.storage : Set version specific variables] ************* task path: /tmp/tmp7ksfxpzz/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-crypto", "libblockdev-dm", "libblockdev-lvm", "libblockdev-mdraid", "libblockdev-swap"]}, "ansible_included_var_files": ["/tmp/tmp7ksfxpzz/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.storage : define an empty list of pools to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : define an empty list of volumes to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : include the appropriate provider tasks] ***** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:22 included: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [linux-system-roles.storage : get a list of rpm packages installed on host machine] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : make sure blivet is available] ************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: python3-blivet", "Installed: libblockdev-crypto", "Installed: libblockdev-dm", "Installed: libblockdev-lvm", "Installed: libblockdev-mdraid", "Installed: libblockdev-swap"]} TASK [linux-system-roles.storage : initialize internal facts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools": [], "_storage_vol_defaults": [], "_storage_vol_pools": [], "_storage_vols_no_defaults": [], "_storage_vols_no_defaults_by_pool": {}, "_storage_vols_w_defaults": [], "_storage_volumes": []}, "changed": false} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [1/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:28 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'disks': [u'vda'], u'name': u'foo', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'4g'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "4g"}]}]}, "ansible_loop_var": "pool", "changed": false, "pool": {"disks": ["vda"], "name": "foo", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "4g"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [2/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:36 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'4g'}], u'type': u'lvm', u'encryption_key_size': None}, {u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'4g'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}], "_storage_vol_pools": ["foo"], "_storage_vols_no_defaults": [{"mount_point": "/opt/test1", "name": "test1", "size": "4g"}]}, "ansible_loop_var": "item", "changed": false, "item": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "4g"}]}, {"mount_point": "/opt/test1", "name": "test1", "size": "4g"}]} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [3/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:44 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'4g'}, {u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'fs_label': u'', u'raid_level': None, u'mount_device_identifier': u'uuid', u'fs_type': u'xfs', u'mount_options': u'defaults', u'encryption_luks_version': None, u'raid_spare_count': None, u'size': 0, u'mount_point': u'', u'encryption_password': None, u'encryption': False, u'raid_chunk_size': None, u'raid_device_count': None, u'state': u'present', u'mount_check': 0, u'mount_passno': 0, u'fs_overwrite_existing': True, u'type': u'lvm', u'encryption_key_size': None, u'fs_create_options': u''}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm"}]}, "ansible_index_var": "idx", "ansible_loop_var": "item", "changed": false, "idx": 0, "item": [{"mount_point": "/opt/test1", "name": "test1", "size": "4g"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}]} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [4/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:52 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'4g'}], u'type': u'lvm', u'encryption_key_size': None}) => {"ansible_facts": {"_storage_vols_no_defaults_by_pool": {"foo": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm"}]}}, "ansible_loop_var": "item", "changed": false, "item": {"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "4g"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [5/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:61 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'present', u'volumes': [{u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'4g'}], u'type': u'lvm', u'encryption_key_size': None}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm"}]}]}, "ansible_index_var": "idx", "ansible_loop_var": "pool", "changed": false, "idx": 0, "pool": {"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "4g"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [6/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:72 TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [ { "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm" } ] } ] } TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes": [] } TASK [linux-system-roles.storage : get required packages] ********************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": ["lvm2", "xfsprogs"], "pools": [], "volumes": []} TASK [linux-system-roles.storage : make sure required packages are installed] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: lvm2", "Installed: xfsprogs"]} TASK [linux-system-roles.storage : manage the pools and volumes to match the specified state] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:104 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": ["/dev/sda1", "/dev/sr0", "/dev/mapper/foo-test1", "/dev/vdb", "/dev/vdc"], "mounts": [{"dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "/dev/mapper/foo-test1", "state": "mounted"}], "packages": ["xfsprogs", "lvm2", "e2fsprogs"], "pools": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"_device": "/dev/mapper/foo-test1", "_kernel_device": "/dev/dm-0", "_mount_id": "/dev/mapper/foo-test1", "_raw_device": "/dev/mapper/foo-test1", "_raw_kernel_device": "/dev/dm-0", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm"}]}], "volumes": []} TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:114 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "blivet_output": { "actions": [], "changed": false, "crypts": [], "failed": false, "leaves": [ "/dev/sda1", "/dev/sr0", "/dev/mapper/foo-test1", "/dev/vdb", "/dev/vdc" ], "mounts": [ { "dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "/dev/mapper/foo-test1", "state": "mounted" } ], "packages": [ "xfsprogs", "lvm2", "e2fsprogs" ], "pools": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [ { "_device": "/dev/mapper/foo-test1", "_kernel_device": "/dev/dm-0", "_mount_id": "/dev/mapper/foo-test1", "_raw_device": "/dev/mapper/foo-test1", "_raw_kernel_device": "/dev/dm-0", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm" } ] } ], "volumes": [] } } TASK [linux-system-roles.storage : set the list of pools for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:117 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [{"_device": "/dev/mapper/foo-test1", "_kernel_device": "/dev/dm-0", "_mount_id": "/dev/mapper/foo-test1", "_raw_device": "/dev/mapper/foo-test1", "_raw_kernel_device": "/dev/dm-0", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm"}]}]}, "changed": false} TASK [linux-system-roles.storage : set the list of volumes for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:121 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : remove obsolete mounts] ********************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:137 TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:148 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [linux-system-roles.storage : set up new/current mounts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:153 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'src': u'/dev/mapper/foo-test1', u'state': u'mounted', u'dump': 0, u'path': u'/opt/test1', u'passno': 0, u'opts': u'defaults', u'fstype': u'xfs'}) => {"ansible_loop_var": "mount_info", "changed": false, "dump": "0", "fstab": "/etc/fstab", "fstype": "xfs", "mount_info": {"dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "/dev/mapper/foo-test1", "state": "mounted"}, "name": "/opt/test1", "opts": "defaults", "passno": "0", "src": "/dev/mapper/foo-test1"} TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:164 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [linux-system-roles.storage : Manage /etc/crypttab to account for changes we just made] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:172 TASK [linux-system-roles.storage : Update facts] ******************************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:187 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_lvm_one_disk_one_volume.yml:44 included: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Print out pool information] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:1 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools_list": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "present", "type": "lvm", "volumes": [ { "_device": "/dev/mapper/foo-test1", "_kernel_device": "/dev/dm-0", "_mount_id": "/dev/mapper/foo-test1", "_raw_device": "/dev/mapper/foo-test1", "_raw_kernel_device": "/dev/dm-0", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "present", "type": "lvm" } ] } ] } TASK [Print out volume information] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:6 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {} TASK [Collect info about the volumes.] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "info": {"/dev/mapper/foo-test1": {"fstype": "xfs", "label": "", "name": "/dev/mapper/foo-test1", "size": "4G", "type": "lvm", "uuid": "5bf6adf9-5bf7-44b3-b570-2e11aeb340ff"}, "/dev/sda": {"fstype": "", "label": "", "name": "/dev/sda", "size": "4G", "type": "disk", "uuid": ""}, "/dev/sda1": {"fstype": "ext4", "label": "", "name": "/dev/sda1", "size": "4G", "type": "partition", "uuid": "03e702b4-e165-4a39-88c9-9e210cd00434"}, "/dev/sr0": {"fstype": "iso9660", "label": "cidata", "name": "/dev/sr0", "size": "364K", "type": "rom", "uuid": "2020-10-31-12-51-57-00"}, "/dev/vda": {"fstype": "LVM2_member", "label": "", "name": "/dev/vda", "size": "10G", "type": "disk", "uuid": "lxKwdD-VoBi-AV3a-lMCW-ERI1-3nyL-Anp5Aj"}, "/dev/vdb": {"fstype": "", "label": "", "name": "/dev/vdb", "size": "10G", "type": "disk", "uuid": ""}, "/dev/vdc": {"fstype": "", "label": "", "name": "/dev/vdc", "size": "10G", "type": "disk", "uuid": ""}}} TASK [Read the /etc/fstab file for volume existence] *************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:19 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/fstab"], "delta": "0:00:01.004447", "end": "2020-10-31 12:54:02.773679", "rc": 0, "start": "2020-10-31 12:54:01.769232", "stderr": "", "stderr_lines": [], "stdout": "\n#\n# /etc/fstab\n# Created by anaconda on Sat Oct 31 08:17:58 2020\n#\n# Accessible filesystems, by reference, are maintained under '/dev/disk/'.\n# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.\n#\n# After editing this file, run 'systemctl daemon-reload' to update systemd\n# units generated from this file.\n#\nUUID=03e702b4-e165-4a39-88c9-9e210cd00434 / ext4 defaults 1 1\n/dev/mapper/foo-test1 /opt/test1 xfs defaults 0 0", "stdout_lines": ["", "#", "# /etc/fstab", "# Created by anaconda on Sat Oct 31 08:17:58 2020", "#", "# Accessible filesystems, by reference, are maintained under '/dev/disk/'.", "# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.", "#", "# After editing this file, run 'systemctl daemon-reload' to update systemd", "# units generated from this file.", "#", "UUID=03e702b4-e165-4a39-88c9-9e210cd00434 / ext4 defaults 1 1", "/dev/mapper/foo-test1 /opt/test1 xfs defaults 0 0"]} TASK [Read the /etc/crypttab file] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/crypttab"], "delta": "0:00:00.002707", "end": "2020-10-31 12:54:03.128006", "rc": 0, "start": "2020-10-31 12:54:03.125299", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Verify the volumes listed in storage_pools were correctly managed] ******* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:32 [WARNING]: The loop variable 'storage_test_pool' is already in use. You should set the `loop_var` value in the `loop_control` option for the task to something else to avoid variable collisions and unexpected behavior. included: /tmp/tmp7ksfxpzz/tests/test-verify-pool.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool.yml:5 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pool_tests": ["members", "volumes"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool.yml:17 included: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-pool-volumes.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:1 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_count": "1", "_storage_test_pool_pvs": [], "_storage_test_pool_pvs_lvm": ["/dev/vda"]}, "changed": false} TASK [Get the canonical device path for each member device] ******************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:7 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=/dev/vda) => {"ansible_loop_var": "pv", "changed": false, "device": "/dev/vda", "pv": "/dev/vda"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:16 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=/dev/vda) => {"ansible_facts": {"_storage_test_pool_pvs": ["/dev/vda"]}, "ansible_index_var": "idx", "ansible_loop_var": "item", "changed": false, "idx": 0, "item": "/dev/vda"} TASK [Verify PV count] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:23 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:29 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_type": "disk"}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:33 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_type": "disk"}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check the type of each PV] *********************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:41 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=/dev/vda) => { "ansible_loop_var": "pv", "changed": false, "msg": "All assertions passed", "pv": "/dev/vda" } TASK [Check raid] ************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:50 included: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [get information about RAID] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:6 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:12 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:16 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:20 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID active devices count] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:24 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID spare devices count] ****************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:30 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID metadata version] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:36 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:44 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_md_active_devices_re": null, "storage_test_md_metadata_version_re": null, "storage_test_md_spare_devices_re": null}, "changed": false} TASK [Check member encryption] ************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:53 included: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_crypttab_entries": "0", "_storage_test_expected_crypttab_key_file": "-"}, "changed": false} TASK [Validate pool member LUKS settings] ************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:8 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=/dev/vda) => {"_storage_test_pool_member_path": "/dev/vda", "ansible_loop_var": "_storage_test_pool_member_path", "changed": false, "skip_reason": "Conditional result was False"} TASK [Validate pool member crypttab entries] *********************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:15 included: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:1 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": []}, "changed": false} TASK [Check for /etc/crypttab entry] ******************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Validate the format of the crypttab entry] ******************************* task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:9 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check backing device of crypttab entry] ********************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:15 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check key file of crypttab entry] **************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-member-crypttab.yml:27 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:22 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null, "_storage_test_crypttab_key_file": null}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:56 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_count": null, "_storage_test_expected_pv_type": null, "_storage_test_pool_pvs": [], "_storage_test_pool_pvs_lvm": []}, "changed": false} TASK [verify the volumes] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-volumes.yml:3 [WARNING]: The loop variable 'storage_test_volume' is already in use. You should set the `loop_var` value in the `loop_control` option for the task to something else to avoid variable collisions and unexpected behavior. included: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": true, "_storage_volume_tests": ["mount", "fstab", "fs", "device", "encryption", "md", "size"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:10 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Get expected mount device based on device type] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/foo-test1"}, "changed": false} TASK [Set some facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [{"block_available": 1030454, "block_size": 4096, "block_total": 1046016, "block_used": 15562, "device": "/dev/mapper/foo-test1", "fstype": "xfs", "inode_available": 2097149, "inode_total": 2097152, "inode_used": 3, "mount": "/opt/test1", "options": "rw,seclabel,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota", "size_available": 4220739584, "size_total": 4284481536, "uuid": "5bf6adf9-5bf7-44b3-b570-2e11aeb340ff"}], "storage_test_mount_expected_match_count": "1", "storage_test_mount_point_matches": [{"block_available": 1030454, "block_size": 4096, "block_total": 1046016, "block_used": 15562, "device": "/dev/mapper/foo-test1", "fstype": "xfs", "inode_available": 2097149, "inode_total": 2097152, "inode_used": 3, "mount": "/opt/test1", "options": "rw,seclabel,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota", "size_available": 4220739584, "size_total": 4284481536, "uuid": "5bf6adf9-5bf7-44b3-b570-2e11aeb340ff"}], "storage_test_swap_expected_matches": "0"}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:22 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:31 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:39 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [command] ***************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Gather swap info] ******************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:52 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify swap status] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:57 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Unset facts] ************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:67 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null, "storage_test_swap_expected_matches": null, "storage_test_swaps": null, "storage_test_sys_node": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": "1", "storage_test_fstab_expected_mount_point_matches": "1", "storage_test_fstab_id_matches": ["/dev/mapper/foo-test1 "], "storage_test_fstab_mount_point_matches": [" /opt/test1 "]}, "changed": false} TASK [Verify that the device identifier appears in /etc/fstab] ***************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:17 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": null, "storage_test_fstab_expected_mount_point_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [Verify fs type] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify fs label] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [See whether the device node is present] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "stat": {"atime": 1604148816.1488342, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "ctime": 1604148816.1488342, "dev": 5, "device_type": 64768, "executable": false, "exists": true, "gid": 6, "gr_name": "disk", "inode": 1872, "isblk": true, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mimetype": "inode/symlink", "mode": "0660", "mtime": 1604148816.1488342, "nlink": 1, "path": "/dev/mapper/foo-test1", "pw_name": "root", "readable": true, "rgrp": true, "roth": false, "rusr": true, "size": 0, "uid": 0, "version": null, "wgrp": true, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}} TASK [Verify the presence/absence of the device node] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "lvm"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:28 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:33 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Stat the LUKS device, if encrypted] ************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:3 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Collect LUKS info for this volume] *************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:10 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the presence/absence of the LUKS device node] ********************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:16 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify that the raw device is the same as the device if not encrypted] *** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:25 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about the LUKS volume if encrypted] **************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the LUKS volume's device type if encrypted] *********************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS version] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:42 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS key size] ***************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS cipher] ******************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:54 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:60 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": [], "_storage_test_expected_crypttab_entries": "0", "_storage_test_expected_crypttab_key_file": "-"}, "changed": false} TASK [Check for /etc/crypttab entry] ******************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:65 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Validate the format of the crypttab entry] ******************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:70 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check backing device of crypttab entry] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:76 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check key file of crypttab entry] **************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:82 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:88 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null, "_storage_test_expected_crypttab_entries": null, "_storage_test_expected_crypttab_key_file": null}, "changed": false} TASK [get information about RAID] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:7 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:13 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:17 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID active devices count] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:25 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID spare devices count] ****************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID metadata version] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [parse the actual size of the volume] ************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:3 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"bytes": 4294967296, "changed": false, "lvm": "4g", "parted": "4GiB", "size": "4 GiB"} TASK [parse the requested size of the volume] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:9 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"bytes": 4294967296, "changed": false, "lvm": "4g", "parted": "4GiB", "size": "4 GiB"} TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:15 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_actual_size": { "bytes": 4294967296, "changed": false, "failed": false, "lvm": "4g", "parted": "4GiB", "size": "4 GiB" } } TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_requested_size": { "bytes": 4294967296, "changed": false, "failed": false, "lvm": "4g", "parted": "4GiB", "size": "4 GiB" } } TASK [assert] ****************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:21 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:16 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:39 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_pool": null}, "changed": false} TASK [Verify the volumes with no pool were correctly managed] ****************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:46 TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:56 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_blkinfo": null, "storage_test_crypttab": null, "storage_test_fstab": null, "storage_test_volume": null}, "changed": false} TASK [Clean up] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_lvm_one_disk_one_volume.yml:46 TASK [linux-system-roles.storage : Set version specific variables] ************* task path: /tmp/tmp7ksfxpzz/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-crypto", "libblockdev-dm", "libblockdev-lvm", "libblockdev-mdraid", "libblockdev-swap"]}, "ansible_included_var_files": ["/tmp/tmp7ksfxpzz/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.storage : define an empty list of pools to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : define an empty list of volumes to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : include the appropriate provider tasks] ***** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:22 included: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [linux-system-roles.storage : get a list of rpm packages installed on host machine] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : make sure blivet is available] ************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: python3-blivet", "Installed: libblockdev-crypto", "Installed: libblockdev-dm", "Installed: libblockdev-lvm", "Installed: libblockdev-mdraid", "Installed: libblockdev-swap"]} TASK [linux-system-roles.storage : initialize internal facts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools": [], "_storage_vol_defaults": [], "_storage_vol_pools": [], "_storage_vols_no_defaults": [], "_storage_vols_no_defaults_by_pool": {}, "_storage_vols_w_defaults": [], "_storage_volumes": []}, "changed": false} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [1/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:28 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'state': u'absent', u'disks': [u'vda'], u'name': u'foo', u'volumes': [{u'state': u'absent', u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'4g'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "absent", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "4g", "state": "absent"}]}]}, "ansible_loop_var": "pool", "changed": false, "pool": {"disks": ["vda"], "name": "foo", "state": "absent", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "4g", "state": "absent"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [2/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:36 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'absent', u'volumes': [{u'state': u'absent', u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'4g'}], u'type': u'lvm', u'encryption_key_size': None}, {u'state': u'absent', u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'4g'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}], "_storage_vol_pools": ["foo"], "_storage_vols_no_defaults": [{"mount_point": "/opt/test1", "name": "test1", "size": "4g", "state": "absent"}]}, "ansible_loop_var": "item", "changed": false, "item": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "absent", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "4g", "state": "absent"}]}, {"mount_point": "/opt/test1", "name": "test1", "size": "4g", "state": "absent"}]} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [3/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:44 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item=[{u'state': u'absent', u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'4g'}, {u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'fs_label': u'', u'raid_level': None, u'mount_device_identifier': u'uuid', u'fs_type': u'xfs', u'mount_options': u'defaults', u'encryption_luks_version': None, u'raid_spare_count': None, u'size': 0, u'mount_point': u'', u'encryption_password': None, u'encryption': False, u'raid_chunk_size': None, u'raid_device_count': None, u'state': u'present', u'mount_check': 0, u'mount_passno': 0, u'fs_overwrite_existing': True, u'type': u'lvm', u'encryption_key_size': None, u'fs_create_options': u''}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "absent", "type": "lvm"}]}, "ansible_index_var": "idx", "ansible_loop_var": "item", "changed": false, "idx": 0, "item": [{"mount_point": "/opt/test1", "name": "test1", "size": "4g", "state": "absent"}, {"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": 0, "state": "present", "type": "lvm"}]} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [4/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:52 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'absent', u'volumes': [{u'state': u'absent', u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'4g'}], u'type': u'lvm', u'encryption_key_size': None}) => {"ansible_facts": {"_storage_vols_no_defaults_by_pool": {"foo": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "absent", "type": "lvm"}]}}, "ansible_loop_var": "item", "changed": false, "item": {"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "absent", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "4g", "state": "absent"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [5/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:61 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'raid_metadata_version': None, u'encryption_cipher': None, u'encryption_key': None, u'raid_chunk_size': None, u'encryption_luks_version': None, u'raid_spare_count': None, u'name': u'foo', u'encryption_password': None, u'encryption': False, u'disks': [u'vda'], u'raid_level': None, u'raid_device_count': None, u'state': u'absent', u'volumes': [{u'state': u'absent', u'mount_point': u'/opt/test1', u'name': u'test1', u'size': u'4g'}], u'type': u'lvm', u'encryption_key_size': None}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "absent", "type": "lvm", "volumes": [{"encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "absent", "type": "lvm"}]}]}, "ansible_index_var": "idx", "ansible_loop_var": "pool", "changed": false, "idx": 0, "pool": {"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "absent", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "4g", "state": "absent"}]}} TASK [linux-system-roles.storage : Apply defaults to pools and volumes [6/6]] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:72 TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "absent", "type": "lvm", "volumes": [ { "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "absent", "type": "lvm" } ] } ] } TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_volumes": [] } TASK [linux-system-roles.storage : get required packages] ********************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [], "changed": false, "crypts": [], "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": []} TASK [linux-system-roles.storage : make sure required packages are installed] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [linux-system-roles.storage : manage the pools and volumes to match the specified state] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:104 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"actions": [{"action": "destroy format", "device": "/dev/mapper/foo-test1", "fs_type": "xfs"}, {"action": "destroy device", "device": "/dev/mapper/foo-test1", "fs_type": null}, {"action": "destroy device", "device": "/dev/foo", "fs_type": null}, {"action": "destroy format", "device": "/dev/vda", "fs_type": "lvmpv"}], "changed": true, "crypts": [], "leaves": ["/dev/sda1", "/dev/sr0", "/dev/vda", "/dev/vdb", "/dev/vdc"], "mounts": [{"fstype": "xfs", "path": "/opt/test1", "src": "/dev/mapper/foo-test1", "state": "absent"}], "packages": ["e2fsprogs"], "pools": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "absent", "type": "lvm", "volumes": [{"_device": "/dev/mapper/foo-test1", "_mount_id": "/dev/mapper/foo-test1", "_raw_device": "/dev/mapper/foo-test1", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "absent", "type": "lvm"}]}], "volumes": []} TASK [linux-system-roles.storage : debug] ************************************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:114 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "blivet_output": { "actions": [ { "action": "destroy format", "device": "/dev/mapper/foo-test1", "fs_type": "xfs" }, { "action": "destroy device", "device": "/dev/mapper/foo-test1", "fs_type": null }, { "action": "destroy device", "device": "/dev/foo", "fs_type": null }, { "action": "destroy format", "device": "/dev/vda", "fs_type": "lvmpv" } ], "changed": true, "crypts": [], "failed": false, "leaves": [ "/dev/sda1", "/dev/sr0", "/dev/vda", "/dev/vdb", "/dev/vdc" ], "mounts": [ { "fstype": "xfs", "path": "/opt/test1", "src": "/dev/mapper/foo-test1", "state": "absent" } ], "packages": [ "e2fsprogs" ], "pools": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "absent", "type": "lvm", "volumes": [ { "_device": "/dev/mapper/foo-test1", "_mount_id": "/dev/mapper/foo-test1", "_raw_device": "/dev/mapper/foo-test1", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "absent", "type": "lvm" } ] } ], "volumes": [] } } TASK [linux-system-roles.storage : set the list of pools for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:117 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": [{"disks": ["vda"], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "absent", "type": "lvm", "volumes": [{"_device": "/dev/mapper/foo-test1", "_mount_id": "/dev/mapper/foo-test1", "_raw_device": "/dev/mapper/foo-test1", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "absent", "type": "lvm"}]}]}, "changed": false} TASK [linux-system-roles.storage : set the list of volumes for test verification] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:121 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : remove obsolete mounts] ********************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:137 changed: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => (item={u'src': u'/dev/mapper/foo-test1', u'state': u'absent', u'fstype': u'xfs', u'path': u'/opt/test1'}) => {"ansible_loop_var": "mount_info", "changed": true, "dump": "0", "fstab": "/etc/fstab", "fstype": "xfs", "mount_info": {"fstype": "xfs", "path": "/opt/test1", "src": "/dev/mapper/foo-test1", "state": "absent"}, "name": "/opt/test1", "opts": "defaults", "passno": "0", "src": "/dev/mapper/foo-test1"} TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:148 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [linux-system-roles.storage : set up new/current mounts] ****************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:153 TASK [linux-system-roles.storage : tell systemd to refresh its view of /etc/fstab] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:164 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [linux-system-roles.storage : Manage /etc/crypttab to account for changes we just made] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:172 TASK [linux-system-roles.storage : Update facts] ******************************* task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:187 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/tests_lvm_one_disk_one_volume.yml:60 included: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Print out pool information] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:1 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "_storage_pools_list": [ { "disks": [ "vda" ], "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "name": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "state": "absent", "type": "lvm", "volumes": [ { "_device": "/dev/mapper/foo-test1", "_mount_id": "/dev/mapper/foo-test1", "_raw_device": "/dev/mapper/foo-test1", "encryption": false, "encryption_cipher": null, "encryption_key": null, "encryption_key_size": null, "encryption_luks_version": null, "encryption_password": null, "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "raid_chunk_size": null, "raid_device_count": null, "raid_level": null, "raid_metadata_version": null, "raid_spare_count": null, "size": "4g", "state": "absent", "type": "lvm" } ] } ] } TASK [Print out volume information] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:6 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {} TASK [Collect info about the volumes.] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "info": {"/dev/sda": {"fstype": "", "label": "", "name": "/dev/sda", "size": "4G", "type": "disk", "uuid": ""}, "/dev/sda1": {"fstype": "ext4", "label": "", "name": "/dev/sda1", "size": "4G", "type": "partition", "uuid": "03e702b4-e165-4a39-88c9-9e210cd00434"}, "/dev/sr0": {"fstype": "iso9660", "label": "cidata", "name": "/dev/sr0", "size": "364K", "type": "rom", "uuid": "2020-10-31-12-51-57-00"}, "/dev/vda": {"fstype": "", "label": "", "name": "/dev/vda", "size": "10G", "type": "disk", "uuid": ""}, "/dev/vdb": {"fstype": "", "label": "", "name": "/dev/vdb", "size": "10G", "type": "disk", "uuid": ""}, "/dev/vdc": {"fstype": "", "label": "", "name": "/dev/vdc", "size": "10G", "type": "disk", "uuid": ""}}} TASK [Read the /etc/fstab file for volume existence] *************************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:19 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/fstab"], "delta": "0:00:00.004031", "end": "2020-10-31 12:54:23.517391", "rc": 0, "start": "2020-10-31 12:54:23.513360", "stderr": "", "stderr_lines": [], "stdout": "\n#\n# /etc/fstab\n# Created by anaconda on Sat Oct 31 08:17:58 2020\n#\n# Accessible filesystems, by reference, are maintained under '/dev/disk/'.\n# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.\n#\n# After editing this file, run 'systemctl daemon-reload' to update systemd\n# units generated from this file.\n#\nUUID=03e702b4-e165-4a39-88c9-9e210cd00434 / ext4 defaults 1 1", "stdout_lines": ["", "#", "# /etc/fstab", "# Created by anaconda on Sat Oct 31 08:17:58 2020", "#", "# Accessible filesystems, by reference, are maintained under '/dev/disk/'.", "# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.", "#", "# After editing this file, run 'systemctl daemon-reload' to update systemd", "# units generated from this file.", "#", "UUID=03e702b4-e165-4a39-88c9-9e210cd00434 / ext4 defaults 1 1"]} TASK [Read the /etc/crypttab file] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/crypttab"], "delta": "0:00:00.002567", "end": "2020-10-31 12:54:23.919653", "rc": 0, "start": "2020-10-31 12:54:23.917086", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Verify the volumes listed in storage_pools were correctly managed] ******* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:32 [WARNING]: The loop variable 'storage_test_pool' is already in use. You should set the `loop_var` value in the `loop_control` option for the task to something else to avoid variable collisions and unexpected behavior. included: /tmp/tmp7ksfxpzz/tests/test-verify-pool.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool.yml:5 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pool_tests": ["members", "volumes"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool.yml:17 included: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-pool-volumes.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:1 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_count": "0", "_storage_test_pool_pvs": [], "_storage_test_pool_pvs_lvm": []}, "changed": false} TASK [Get the canonical device path for each member device] ******************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:7 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:16 TASK [Verify PV count] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:23 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:29 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_type": "disk"}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:33 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_type": "disk"}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check the type of each PV] *********************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:41 TASK [Check raid] ************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:50 included: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [get information about RAID] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:6 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:12 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:16 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:20 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID active devices count] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:24 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID spare devices count] ****************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:30 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID metadata version] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:36 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-md.yml:44 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_md_active_devices_re": null, "storage_test_md_metadata_version_re": null, "storage_test_md_spare_devices_re": null}, "changed": false} TASK [Check member encryption] ************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:53 included: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_crypttab_entries": "0", "_storage_test_expected_crypttab_key_file": "-"}, "changed": false} TASK [Validate pool member LUKS settings] ************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:8 TASK [Validate pool member crypttab entries] *********************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:15 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/verify-pool-members-encryption.yml:22 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null, "_storage_test_crypttab_key_file": null}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-members.yml:56 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_expected_pv_count": null, "_storage_test_expected_pv_type": null, "_storage_test_pool_pvs": [], "_storage_test_pool_pvs_lvm": []}, "changed": false} TASK [verify the volumes] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-pool-volumes.yml:3 [WARNING]: The loop variable 'storage_test_volume' is already in use. You should set the `loop_var` value in the `loop_control` option for the task to something else to avoid variable collisions and unexpected behavior. included: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": false, "_storage_volume_tests": ["mount", "fstab", "fs", "device", "encryption", "md", "size"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:10 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 included: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [Get expected mount device based on device type] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/foo-test1"}, "changed": false} TASK [Set some facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [], "storage_test_mount_expected_match_count": "0", "storage_test_mount_point_matches": [], "storage_test_swap_expected_matches": "0"}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:22 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:31 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:39 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [command] ***************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Gather swap info] ******************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:52 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify swap status] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:57 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Unset facts] ************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-mount.yml:67 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null, "storage_test_swap_expected_matches": null, "storage_test_swaps": null, "storage_test_sys_node": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": "0", "storage_test_fstab_expected_mount_point_matches": "0", "storage_test_fstab_id_matches": [], "storage_test_fstab_mount_point_matches": []}, "changed": false} TASK [Verify that the device identifier appears in /etc/fstab] ***************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:10 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:17 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fstab.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_id_matches": null, "storage_test_fstab_expected_mount_point_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [Verify fs type] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:4 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify fs label] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-fs.yml:10 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [See whether the device node is present] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "stat": {"exists": false}} TASK [Verify the presence/absence of the device node] ************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:10 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:18 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "lvm"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:28 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-device.yml:33 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Stat the LUKS device, if encrypted] ************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:3 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Collect LUKS info for this volume] *************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:10 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the presence/absence of the LUKS device node] ********************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:16 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify that the raw device is the same as the device if not encrypted] *** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:25 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Make sure we got info about the LUKS volume if encrypted] **************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the LUKS volume's device type if encrypted] *********************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS version] ****************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:42 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS key size] ***************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:48 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check LUKS cipher] ******************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:54 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:60 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": [], "_storage_test_expected_crypttab_entries": "0", "_storage_test_expected_crypttab_key_file": "-"}, "changed": false} TASK [Check for /etc/crypttab entry] ******************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:65 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Validate the format of the crypttab entry] ******************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:70 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check backing device of crypttab entry] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:76 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Check key file of crypttab entry] **************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:82 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-encryption.yml:88 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_crypttab_entries": null, "_storage_test_expected_crypttab_entries": null, "_storage_test_expected_crypttab_key_file": null}, "changed": false} TASK [get information about RAID] ********************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:7 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:13 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:17 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [set_fact] **************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID active devices count] ***************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:25 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID spare devices count] ****************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:31 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check RAID metadata version] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-md.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [parse the actual size of the volume] ************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:3 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [parse the requested size of the volume] ********************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:9 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:15 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_actual_size": { "changed": false, "skip_reason": "Conditional result was False", "skipped": true } } TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "storage_test_requested_size": { "changed": false, "skip_reason": "Conditional result was False", "skipped": true } } TASK [assert] ****************************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume-size.yml:21 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Clean up facts] ********************************************************** task path: /tmp/tmp7ksfxpzz/tests/test-verify-volume.yml:16 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:39 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_pool": null}, "changed": false} TASK [Verify the volumes with no pool were correctly managed] ****************** task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:46 TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmp7ksfxpzz/tests/verify-role-results.yml:56 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"storage_test_blkinfo": null, "storage_test_crypttab": null, "storage_test_fstab": null, "storage_test_volume": null}, "changed": false} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 : ok=264 changed=5 unreachable=0 failed=0 skipped=146 rescued=0 ignored=0 + cd /tmp/tmp7ksfxpzz/tests; TEST_SUBJECTS=/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_storage-178-e856157-fedora-31-87qzp9iq/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmp7ksfxpzz/_setup.yml /tmp/tmp7ksfxpzz/tests/tests_misc.yml ansible-playbook 2.8.16 config file = /etc/ansible/ansible.cfg configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python2.7/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 2.7.5 (default, Apr 2 2020, 13:16:51) [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)] Using /etc/ansible/ansible.cfg as config file PLAYBOOK: _setup.yml *********************************************************** 1 plays in /tmp/tmp7ksfxpzz/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmp7ksfxpzz/_setup.yml:5 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => { "groups": { "all": [ "/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2" ], "localhost": [ "/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2" ], "subjects": [ "/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmp7ksfxpzz/_setup.yml:6 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 : ok=1 changed=0 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 PLAYBOOK: tests_misc.yml ******************************************************* 1 plays in /tmp/tmp7ksfxpzz/tests/tests_misc.yml PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmp7ksfxpzz/tests/tests_misc.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] META: ran handlers TASK [include_role : linux-system-roles.storage] ******************************* task path: /tmp/tmp7ksfxpzz/tests/tests_misc.yml:14 TASK [linux-system-roles.storage : Set version specific variables] ************* task path: /tmp/tmp7ksfxpzz/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-crypto", "libblockdev-dm", "libblockdev-lvm", "libblockdev-mdraid", "libblockdev-swap"]}, "ansible_included_var_files": ["/tmp/tmp7ksfxpzz/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.storage : define an empty list of pools to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:14 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [linux-system-roles.storage : define an empty list of volumes to be used in testing] *** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:18 ok: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [linux-system-roles.storage : include the appropriate provider tasks] ***** task path: /tmp/tmp7ksfxpzz/tasks/main.yml:22 included: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 TASK [linux-system-roles.storage : get a list of rpm packages installed on host machine] *** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.storage : make sure blivet is available] ************** task path: /tmp/tmp7ksfxpzz/tasks/main-blivet.yml:7 fatal: [/cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2]: FAILED! => {"changed": false, "msg": "Failed to download metadata for repo 'fedora-modular': Cannot prepare internal mirrorlist: Curl error (6): Couldn't resolve host name for https://mirrors.fedoraproject.org/metalink?repo=fedora-modular-31&arch=x86_64 [Could not resolve host: mirrors.fedoraproject.org]", "rc": 1, "results": []} PLAY RECAP ********************************************************************* /cache/Fedora-Cloud-Base-31-20201031.0.x86_64.qcow2 : ok=6 changed=0 unreachable=0 failed=1 skipped=2 rescued=0 ignored=0