+ cd /tmp/tmpr6sk038f/tests; TEST_SUBJECTS=/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_storage-91-a6b7623-fedora-30-97_lk9m2/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmpr6sk038f/_setup.yml /tmp/tmpr6sk038f/tests/tests_change_disk_fs.yml ansible-playbook 2.9.9 config file = /etc/ansible/ansible.cfg configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.8/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 3.8.2 (default, Feb 28 2020, 00:00:00) [GCC 10.0.1 20200216 (Red Hat 10.0.1-0.8)] Using /etc/ansible/ansible.cfg as config file PLAYBOOK: _setup.yml *********************************************************** 1 plays in /tmp/tmpr6sk038f/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmpr6sk038f/_setup.yml:5 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "groups": { "all": [ "/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2" ], "localhost": [ "/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2" ], "subjects": [ "/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmpr6sk038f/_setup.yml:7 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/Fedora-Cloud-Base-30-1.2.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/tmpr6sk038f/tests/tests_change_disk_fs.yml PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpr6sk038f/tests/tests_change_disk_fs.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] META: ran handlers TASK [include_role : storage] ************************************************** task path: /tmp/tmpr6sk038f/tests/tests_change_disk_fs.yml:11 TASK [storage : Set version specific variables] ******************************** task path: /tmp/tmpr6sk038f/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/tmp/tmpr6sk038f/vars/Fedora.yml) => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-dm", "libblockdev-lvm", "libblockdev-part", "libblockdev-mdraid"]}, "ansible_included_var_files": ["/tmp/tmpr6sk038f/vars/Fedora.yml"], "ansible_loop_var": "item", "changed": false, "item": "/tmp/tmpr6sk038f/vars/Fedora.yml"} TASK [storage : define an empty list of pools to be used in testing] *********** task path: /tmp/tmpr6sk038f/tasks/main.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [storage : define an empty list of volumes to be used in testing] ********* task path: /tmp/tmpr6sk038f/tasks/main.yml:13 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : include the appropriate provider tasks] ************************ task path: /tmp/tmpr6sk038f/tasks/main.yml:17 included: /tmp/tmpr6sk038f/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [storage : get a list of rpm packages installed on host machine] ********** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [storage : make sure blivet is available] ********************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:7 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: libblockdev-mpath-2.23-1.fc30.x86_64", "Installed: libblockdev-nvdimm-2.23-1.fc30.x86_64", "Installed: userspace-rcu-0.10.1-5.fc30.x86_64", "Installed: libblockdev-part-2.23-1.fc30.x86_64", "Installed: dmraid-1.0.0.rc16-41.fc30.x86_64", "Installed: dmraid-events-1.0.0.rc16-41.fc30.x86_64", "Installed: lzo-2.08-15.fc30.x86_64", "Installed: libblockdev-swap-2.23-1.fc30.x86_64", "Installed: lvm2-2.02.183-3.fc30.x86_64", "Installed: libblockdev-utils-2.23-1.fc30.x86_64", "Installed: lvm2-libs-2.02.183-3.fc30.x86_64", "Installed: python3-blivet-1:3.1.4-1.fc30.noarch", "Installed: python3-blockdev-2.23-1.fc30.x86_64", "Installed: daxctl-libs-68-1.fc30.x86_64", "Installed: mdadm-4.1-1.fc30.x86_64", "Installed: blivet-data-1:3.1.4-1.fc30.noarch", "Installed: sgpio-1.2.0.10-23.fc30.x86_64", "Installed: nspr-4.25.0-1.fc30.x86_64", "Installed: python3-bytesize-2.2-1.fc30.x86_64", "Installed: device-mapper-event-1.02.154-3.fc30.x86_64", "Installed: lsof-4.91-3.fc30.x86_64", "Installed: nss-3.51.1-1.fc30.x86_64", "Installed: device-mapper-event-libs-1.02.154-3.fc30.x86_64", "Installed: device-mapper-multipath-0.7.9-6.git2df6110.fc30.x86_64", "Installed: gdisk-1.0.5-1.fc30.x86_64", "Installed: device-mapper-multipath-libs-0.7.9-6.git2df6110.fc30.x86_64", "Installed: nss-softokn-3.51.1-1.fc30.x86_64", "Installed: python3-gobject-base-3.32.2-1.fc30.x86_64", "Installed: device-mapper-persistent-data-0.7.6-4.fc30.x86_64", "Installed: gobject-introspection-1.60.2-1.fc30.x86_64", "Installed: nss-softokn-freebl-3.51.1-1.fc30.x86_64", "Installed: libbytesize-2.2-1.fc30.x86_64", "Installed: nss-sysinit-3.51.1-1.fc30.x86_64", "Installed: nss-util-3.51.1-1.fc30.x86_64", "Installed: volume_key-libs-0.3.12-3.fc30.x86_64", "Installed: bcache-tools-1.0.8-15.fc30.x86_64", "Installed: ndctl-68-1.fc30.x86_64", "Installed: ndctl-libs-68-1.fc30.x86_64", "Installed: libblockdev-2.23-1.fc30.x86_64", "Installed: libblockdev-btrfs-2.23-1.fc30.x86_64", "Installed: libblockdev-crypto-2.23-1.fc30.x86_64", "Installed: python3-pyudev-0.21.0-10.fc30.noarch", "Installed: btrfs-progs-5.6-1.fc30.x86_64", "Installed: libblockdev-dm-2.23-1.fc30.x86_64", "Installed: libblockdev-fs-2.23-1.fc30.x86_64", "Installed: libblockdev-kbd-2.23-1.fc30.x86_64", "Installed: libblockdev-loop-2.23-1.fc30.x86_64", "Installed: libblockdev-lvm-2.23-1.fc30.x86_64", "Installed: python3-pyparted-1:3.11.2-1.fc30.x86_64", "Installed: libaio-0.3.111-4.fc30.x86_64", "Installed: libblockdev-mdraid-2.23-1.fc30.x86_64"]} TASK [storage : initialize internal facts] ************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.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 [storage : Apply defaults to pools and volumes [1/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:28 TASK [storage : Apply defaults to pools and volumes [2/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:36 TASK [storage : Apply defaults to pools and volumes [3/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:44 TASK [storage : Apply defaults to pools and volumes [4/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:52 TASK [storage : Apply defaults to pools and volumes [5/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:61 TASK [storage : Apply defaults to pools and volumes [6/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:72 TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools": [] } TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_volumes": [] } TASK [storage : get required packages] ***************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": []} TASK [storage : make sure required packages are installed] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : manage the pools and volumes to match the specified state] ***** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:104 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": []} TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:113 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "blivet_output": { "actions": [], "changed": false, "failed": false, "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": [] } } TASK [storage : set the list of pools for test verification] ******************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:116 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [storage : set the list of volumes for test verification] ***************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:120 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : manage mounts to match the specified state] ******************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:132 TASK [storage : tell systemd to refresh its view of /etc/fstab] **************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:143 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [storage : Update facts] ************************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:153 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmpr6sk038f/tests/tests_change_disk_fs.yml:14 included: /tmp/tmpr6sk038f/tests/get_unused_disk.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [Find unused disks in the system] ***************************************** task path: /tmp/tmpr6sk038f/tests/get_unused_disk.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "disks": ["vdb"]} TASK [set_fact] **************************************************************** task path: /tmp/tmpr6sk038f/tests/get_unused_disk.yml:8 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"unused_disks": ["vdb"]}, "changed": false} TASK [Exit playbook when there's not enough unused disks in the system] ******** task path: /tmp/tmpr6sk038f/tests/get_unused_disk.yml:12 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Print unused disks] ****************************************************** task path: /tmp/tmpr6sk038f/tests/get_unused_disk.yml:17 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "unused_disks": [ "vdb" ] } TASK [Create a disk device with the default file system type] ****************** task path: /tmp/tmpr6sk038f/tests/tests_change_disk_fs.yml:19 TASK [storage : Set version specific variables] ******************************** task path: /tmp/tmpr6sk038f/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/tmp/tmpr6sk038f/vars/Fedora.yml) => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-dm", "libblockdev-lvm", "libblockdev-part", "libblockdev-mdraid"]}, "ansible_included_var_files": ["/tmp/tmpr6sk038f/vars/Fedora.yml"], "ansible_loop_var": "item", "changed": false, "item": "/tmp/tmpr6sk038f/vars/Fedora.yml"} TASK [storage : define an empty list of pools to be used in testing] *********** task path: /tmp/tmpr6sk038f/tasks/main.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [storage : define an empty list of volumes to be used in testing] ********* task path: /tmp/tmpr6sk038f/tasks/main.yml:13 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : include the appropriate provider tasks] ************************ task path: /tmp/tmpr6sk038f/tasks/main.yml:17 included: /tmp/tmpr6sk038f/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [storage : get a list of rpm packages installed on host machine] ********** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [storage : make sure blivet is available] ********************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : initialize internal facts] ************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.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 [storage : Apply defaults to pools and volumes [1/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:28 TASK [storage : Apply defaults to pools and volumes [2/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:36 TASK [storage : Apply defaults to pools and volumes [3/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:44 TASK [storage : Apply defaults to pools and volumes [4/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:52 TASK [storage : Apply defaults to pools and volumes [5/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:61 TASK [storage : Apply defaults to pools and volumes [6/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:72 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'name': 'test1', 'type': 'disk', 'mount_point': '/opt/test', 'disks': ['vdb']}) => {"ansible_facts": {"_storage_volumes": [{"disks": ["vdb"], "fs_create_options": "", "fs_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", "size": 0, "state": "present", "type": "disk"}]}, "ansible_loop_var": "volume", "changed": false, "volume": {"disks": ["vdb"], "mount_point": "/opt/test", "name": "test1", "type": "disk"}} TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools": [] } TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_volumes": [ { "disks": [ "vdb" ], "fs_create_options": "", "fs_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", "size": 0, "state": "present", "type": "disk" } ] } TASK [storage : get required packages] ***************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": [], "mounts": [], "packages": ["xfsprogs"], "pools": [], "volumes": []} TASK [storage : make sure required packages are installed] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : manage the pools and volumes to match the specified state] ***** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:104 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [{"action": "create format", "device": "/dev/vdb", "fs_type": "xfs"}], "changed": true, "leaves": ["/dev/sr0", "/dev/vda1", "/dev/vdb", "/dev/vdc"], "mounts": [{"dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test", "src": "/dev/vdb", "state": "mounted"}], "packages": ["xfsprogs", "e2fsprogs"], "pools": [], "volumes": [{"_device": "/dev/vdb", "_mount_id": "/dev/vdb", "disks": ["vdb"], "fs_create_options": "", "fs_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", "size": 0, "state": "present", "type": "disk"}]} TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:113 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "blivet_output": { "actions": [ { "action": "create format", "device": "/dev/vdb", "fs_type": "xfs" } ], "changed": true, "failed": false, "leaves": [ "/dev/sr0", "/dev/vda1", "/dev/vdb", "/dev/vdc" ], "mounts": [ { "dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test", "src": "/dev/vdb", "state": "mounted" } ], "packages": [ "xfsprogs", "e2fsprogs" ], "pools": [], "volumes": [ { "_device": "/dev/vdb", "_mount_id": "/dev/vdb", "disks": [ "vdb" ], "fs_create_options": "", "fs_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", "size": 0, "state": "present", "type": "disk" } ] } } TASK [storage : set the list of pools for test verification] ******************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:116 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [storage : set the list of volumes for test verification] ***************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:120 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": [{"_device": "/dev/vdb", "_mount_id": "/dev/vdb", "disks": ["vdb"], "fs_create_options": "", "fs_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", "size": 0, "state": "present", "type": "disk"}]}, "changed": false} TASK [storage : manage mounts to match the specified state] ******************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:132 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'src': '/dev/vdb', 'path': '/opt/test', 'fstype': 'xfs', 'opts': 'defaults', 'dump': 0, 'passno': 0, 'state': 'mounted'}) => {"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": "/dev/vdb", "state": "mounted"}, "name": "/opt/test", "opts": "defaults", "passno": "0", "src": "/dev/vdb"} TASK [storage : tell systemd to refresh its view of /etc/fstab] **************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:143 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [storage : Update facts] ************************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:153 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmpr6sk038f/tests/tests_change_disk_fs.yml:29 included: /tmp/tmpr6sk038f/tests/verify-role-results.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [Print out pool information] ********************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:1 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {} TASK [Print out volume information] ******************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_volumes_list": [ { "_device": "/dev/vdb", "_mount_id": "/dev/vdb", "disks": [ "vdb" ], "fs_create_options": "", "fs_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", "size": 0, "state": "present", "type": "disk" } ] } TASK [Collect info about the volumes.] ***************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:14 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "info": {"/dev/sr0": {"fstype": "iso9660", "label": "cidata", "name": "/dev/sr0", "type": "rom", "uuid": "2020-05-27-12-50-45-00"}, "/dev/vda": {"fstype": "", "label": "", "name": "/dev/vda", "type": "disk", "uuid": ""}, "/dev/vda1": {"fstype": "ext4", "label": "", "name": "/dev/vda1", "type": "partition", "uuid": "ea711a29-e460-4879-9d70-9da99ae021f9"}, "/dev/vdb": {"fstype": "xfs", "label": "", "name": "/dev/vdb", "type": "disk", "uuid": "7d31a7dc-0763-4c1f-b92d-6292a8308c25"}, "/dev/vdc": {"fstype": "", "label": "", "name": "/dev/vdc", "type": "disk", "uuid": ""}}} TASK [Read the /etc/fstab file for volume existence] *************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:19 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/fstab"], "delta": "0:00:01.004211", "end": "2020-05-27 12:55:30.493385", "rc": 0, "start": "2020-05-27 12:55:29.489174", "stderr": "", "stderr_lines": [], "stdout": "\n#\n# /etc/fstab\n# Created by anaconda on Fri Apr 26 02:02:19 2019\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=ea711a29-e460-4879-9d70-9da99ae021f9 / ext4 defaults 1 1\n/dev/vdb /opt/test xfs defaults 0 0", "stdout_lines": ["", "#", "# /etc/fstab", "# Created by anaconda on Fri Apr 26 02:02:19 2019", "#", "# 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=ea711a29-e460-4879-9d70-9da99ae021f9 / ext4 defaults 1 1", "/dev/vdb /opt/test xfs defaults 0 0"]} TASK [Verify the volumes listed in storage_pools were correctly managed] ******* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:27 TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:34 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_pool": null}, "changed": false} TASK [Verify the volumes with no pool were correctly managed] ****************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:41 included: /tmp/tmpr6sk038f/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": true, "_storage_volume_tests": ["mount", "fstab", "fs", "device"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:12 included: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/vdb"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/vdb"], "delta": "0:00:00.004254", "end": "2020-05-27 12:55:31.106571", "rc": 0, "start": "2020-05-27 12:55:31.102317", "stderr": "", "stderr_lines": [], "stdout": "/dev/vdb", "stdout_lines": ["/dev/vdb"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Set some facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:20 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [{"block_available": 2608012, "block_size": 4096, "block_total": 2618880, "block_used": 10868, "device": "/dev/vdb", "fstype": "xfs", "inode_available": 5242877, "inode_total": 5242880, "inode_used": 3, "mount": "/opt/test", "options": "rw,seclabel,relatime,attr2,inode64,noquota", "size_available": 10682417152, "size_total": 10726932480, "uuid": "7d31a7dc-0763-4c1f-b92d-6292a8308c25"}], "storage_test_mount_expected_match_count": "1", "storage_test_mount_point_matches": [{"block_available": 2608012, "block_size": 4096, "block_total": 2618880, "block_used": 10868, "device": "/dev/vdb", "fstype": "xfs", "inode_available": 5242877, "inode_total": 5242880, "inode_used": 3, "mount": "/opt/test", "options": "rw,seclabel,relatime,attr2,inode64,noquota", "size_available": 10682417152, "size_total": 10726932480, "uuid": "7d31a7dc-0763-4c1f-b92d-6292a8308c25"}]}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:31 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:40 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:48 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Unset facts] ************************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:58 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_matches": "1", "storage_test_fstab_id_matches": ["/dev/vdb "], "storage_test_fstab_mount_point_matches": [" /opt/test "]}, "changed": false} TASK [Verify that the device identifier appears in /etc/fstab] ***************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:16 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:23 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/vdb"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/vdb"], "delta": "0:00:00.003097", "end": "2020-05-27 12:55:31.824903", "rc": 0, "start": "2020-05-27 12:55:31.821806", "stderr": "", "stderr_lines": [], "stdout": "/dev/vdb", "stdout_lines": ["/dev/vdb"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify fs type] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:21 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify fs label] ********************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:27 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/vdb"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/vdb"], "delta": "0:00:01.004381", "end": "2020-05-27 12:55:33.315619", "rc": 0, "start": "2020-05-27 12:55:32.311238", "stderr": "", "stderr_lines": [], "stdout": "/dev/vdb", "stdout_lines": ["/dev/vdb"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [See whether the device node is present] ********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:21 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "stat": {"atime": 1590584125.1379547, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "ctime": 1590584125.1379547, "dev": 6, "device_type": 64528, "executable": false, "exists": true, "gid": 6, "gr_name": "disk", "inode": 1381, "isblk": true, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mimetype": "inode/blockdevice", "mode": "0660", "mtime": 1590584125.1379547, "nlink": 1, "path": "/dev/vdb", "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/tmpr6sk038f/tests/test-verify-volume-device.yml:27 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:35 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:41 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "disk"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:45 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:50 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:51 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_blkinfo": null, "storage_test_fstab": null, "storage_test_volume": null}, "changed": false} TASK [Change the disk device file system type to "ext4"] *********************** task path: /tmp/tmpr6sk038f/tests/tests_change_disk_fs.yml:31 TASK [storage : Set version specific variables] ******************************** task path: /tmp/tmpr6sk038f/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/tmp/tmpr6sk038f/vars/Fedora.yml) => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-dm", "libblockdev-lvm", "libblockdev-part", "libblockdev-mdraid"]}, "ansible_included_var_files": ["/tmp/tmpr6sk038f/vars/Fedora.yml"], "ansible_loop_var": "item", "changed": false, "item": "/tmp/tmpr6sk038f/vars/Fedora.yml"} TASK [storage : define an empty list of pools to be used in testing] *********** task path: /tmp/tmpr6sk038f/tasks/main.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [storage : define an empty list of volumes to be used in testing] ********* task path: /tmp/tmpr6sk038f/tasks/main.yml:13 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : include the appropriate provider tasks] ************************ task path: /tmp/tmpr6sk038f/tasks/main.yml:17 included: /tmp/tmpr6sk038f/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [storage : get a list of rpm packages installed on host machine] ********** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [storage : make sure blivet is available] ********************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : initialize internal facts] ************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.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 [storage : Apply defaults to pools and volumes [1/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:28 TASK [storage : Apply defaults to pools and volumes [2/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:36 TASK [storage : Apply defaults to pools and volumes [3/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:44 TASK [storage : Apply defaults to pools and volumes [4/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:52 TASK [storage : Apply defaults to pools and volumes [5/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:61 TASK [storage : Apply defaults to pools and volumes [6/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:72 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'name': 'test1', 'type': 'disk', 'mount_point': '/opt/test', 'fs_type': 'ext4', 'disks': ['vdb']}) => {"ansible_facts": {"_storage_volumes": [{"disks": ["vdb"], "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", "size": 0, "state": "present", "type": "disk"}]}, "ansible_loop_var": "volume", "changed": false, "volume": {"disks": ["vdb"], "fs_type": "ext4", "mount_point": "/opt/test", "name": "test1", "type": "disk"}} TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools": [] } TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_volumes": [ { "disks": [ "vdb" ], "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", "size": 0, "state": "present", "type": "disk" } ] } TASK [storage : get required packages] ***************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": [], "mounts": [], "packages": ["e2fsprogs"], "pools": [], "volumes": []} TASK [storage : make sure required packages are installed] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : manage the pools and volumes to match the specified state] ***** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:104 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [{"action": "destroy format", "device": "/dev/vdb", "fs_type": "xfs"}, {"action": "create format", "device": "/dev/vdb", "fs_type": "ext4"}], "changed": true, "leaves": ["/dev/sr0", "/dev/vda1", "/dev/vdb", "/dev/vdc"], "mounts": [{"path": "/opt/test", "state": "absent"}, {"dump": 0, "fstype": "ext4", "opts": "defaults", "passno": 0, "path": "/opt/test", "src": "/dev/vdb", "state": "mounted"}], "packages": ["e2fsprogs"], "pools": [], "volumes": [{"_device": "/dev/vdb", "_mount_id": "/dev/vdb", "disks": ["vdb"], "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", "size": 0, "state": "present", "type": "disk"}]} TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:113 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "blivet_output": { "actions": [ { "action": "destroy format", "device": "/dev/vdb", "fs_type": "xfs" }, { "action": "create format", "device": "/dev/vdb", "fs_type": "ext4" } ], "changed": true, "failed": false, "leaves": [ "/dev/sr0", "/dev/vda1", "/dev/vdb", "/dev/vdc" ], "mounts": [ { "path": "/opt/test", "state": "absent" }, { "dump": 0, "fstype": "ext4", "opts": "defaults", "passno": 0, "path": "/opt/test", "src": "/dev/vdb", "state": "mounted" } ], "packages": [ "e2fsprogs" ], "pools": [], "volumes": [ { "_device": "/dev/vdb", "_mount_id": "/dev/vdb", "disks": [ "vdb" ], "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", "size": 0, "state": "present", "type": "disk" } ] } } TASK [storage : set the list of pools for test verification] ******************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:116 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [storage : set the list of volumes for test verification] ***************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:120 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": [{"_device": "/dev/vdb", "_mount_id": "/dev/vdb", "disks": ["vdb"], "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", "size": 0, "state": "present", "type": "disk"}]}, "changed": false} TASK [storage : manage mounts to match the specified state] ******************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:132 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'path': '/opt/test', 'state': 'absent'}) => {"ansible_loop_var": "mount_info", "changed": true, "dump": "0", "fstab": "/etc/fstab", "mount_info": {"path": "/opt/test", "state": "absent"}, "name": "/opt/test", "opts": "defaults", "passno": "0"} changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'src': '/dev/vdb', 'path': '/opt/test', 'fstype': 'ext4', 'opts': 'defaults', 'dump': 0, 'passno': 0, 'state': 'mounted'}) => {"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": "/dev/vdb", "state": "mounted"}, "name": "/opt/test", "opts": "defaults", "passno": "0", "src": "/dev/vdb"} TASK [storage : tell systemd to refresh its view of /etc/fstab] **************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:143 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [storage : Update facts] ************************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:153 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmpr6sk038f/tests/tests_change_disk_fs.yml:42 included: /tmp/tmpr6sk038f/tests/verify-role-results.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [Print out pool information] ********************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:1 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {} TASK [Print out volume information] ******************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_volumes_list": [ { "_device": "/dev/vdb", "_mount_id": "/dev/vdb", "disks": [ "vdb" ], "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", "size": 0, "state": "present", "type": "disk" } ] } TASK [Collect info about the volumes.] ***************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:14 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "info": {"/dev/sr0": {"fstype": "iso9660", "label": "cidata", "name": "/dev/sr0", "type": "rom", "uuid": "2020-05-27-12-50-45-00"}, "/dev/vda": {"fstype": "", "label": "", "name": "/dev/vda", "type": "disk", "uuid": ""}, "/dev/vda1": {"fstype": "ext4", "label": "", "name": "/dev/vda1", "type": "partition", "uuid": "ea711a29-e460-4879-9d70-9da99ae021f9"}, "/dev/vdb": {"fstype": "ext4", "label": "", "name": "/dev/vdb", "type": "disk", "uuid": "28c381b6-0103-41a9-a314-77f08d079e0f"}, "/dev/vdc": {"fstype": "", "label": "", "name": "/dev/vdc", "type": "disk", "uuid": ""}}} TASK [Read the /etc/fstab file for volume existence] *************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:19 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/fstab"], "delta": "0:00:01.004242", "end": "2020-05-27 12:55:47.308431", "rc": 0, "start": "2020-05-27 12:55:46.304189", "stderr": "", "stderr_lines": [], "stdout": "\n#\n# /etc/fstab\n# Created by anaconda on Fri Apr 26 02:02:19 2019\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=ea711a29-e460-4879-9d70-9da99ae021f9 / ext4 defaults 1 1\n/dev/vdb /opt/test ext4 defaults 0 0", "stdout_lines": ["", "#", "# /etc/fstab", "# Created by anaconda on Fri Apr 26 02:02:19 2019", "#", "# 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=ea711a29-e460-4879-9d70-9da99ae021f9 / ext4 defaults 1 1", "/dev/vdb /opt/test ext4 defaults 0 0"]} TASK [Verify the volumes listed in storage_pools were correctly managed] ******* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:27 TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:34 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_pool": null}, "changed": false} TASK [Verify the volumes with no pool were correctly managed] ****************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:41 [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/tmpr6sk038f/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": true, "_storage_volume_tests": ["mount", "fstab", "fs", "device"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:12 included: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/vdb"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/vdb"], "delta": "0:00:01.004052", "end": "2020-05-27 12:55:48.842330", "rc": 0, "start": "2020-05-27 12:55:47.838278", "stderr": "", "stderr_lines": [], "stdout": "/dev/vdb", "stdout_lines": ["/dev/vdb"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Set some facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:20 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [{"block_available": 2419519, "block_size": 4096, "block_total": 2563909, "block_used": 144390, "device": "/dev/vdb", "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": "28c381b6-0103-41a9-a314-77f08d079e0f"}], "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/vdb", "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": "28c381b6-0103-41a9-a314-77f08d079e0f"}]}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:31 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:40 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:48 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Unset facts] ************************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:58 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_matches": "1", "storage_test_fstab_id_matches": ["/dev/vdb "], "storage_test_fstab_mount_point_matches": [" /opt/test "]}, "changed": false} TASK [Verify that the device identifier appears in /etc/fstab] ***************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:16 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:23 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/vdb"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/vdb"], "delta": "0:00:00.002618", "end": "2020-05-27 12:55:49.425453", "rc": 0, "start": "2020-05-27 12:55:49.422835", "stderr": "", "stderr_lines": [], "stdout": "/dev/vdb", "stdout_lines": ["/dev/vdb"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify fs type] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:21 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify fs label] ********************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:27 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/vdb"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/vdb"], "delta": "0:00:01.004055", "end": "2020-05-27 12:55:50.829507", "rc": 0, "start": "2020-05-27 12:55:49.825452", "stderr": "", "stderr_lines": [], "stdout": "/dev/vdb", "stdout_lines": ["/dev/vdb"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [See whether the device node is present] ********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:21 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "stat": {"atime": 1590584143.3749547, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "ctime": 1590584143.3749547, "dev": 6, "device_type": 64528, "executable": false, "exists": true, "gid": 6, "gr_name": "disk", "inode": 1381, "isblk": true, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mimetype": "inode/blockdevice", "mode": "0660", "mtime": 1590584143.3749547, "nlink": 1, "path": "/dev/vdb", "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/tmpr6sk038f/tests/test-verify-volume-device.yml:27 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:35 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:41 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "disk"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:45 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:50 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:51 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_blkinfo": null, "storage_test_fstab": null, "storage_test_volume": null}, "changed": false} TASK [Repeat the previous invocation to verify idempotence] ******************** task path: /tmp/tmpr6sk038f/tests/tests_change_disk_fs.yml:44 TASK [storage : Set version specific variables] ******************************** task path: /tmp/tmpr6sk038f/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/tmp/tmpr6sk038f/vars/Fedora.yml) => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-dm", "libblockdev-lvm", "libblockdev-part", "libblockdev-mdraid"]}, "ansible_included_var_files": ["/tmp/tmpr6sk038f/vars/Fedora.yml"], "ansible_loop_var": "item", "changed": false, "item": "/tmp/tmpr6sk038f/vars/Fedora.yml"} TASK [storage : define an empty list of pools to be used in testing] *********** task path: /tmp/tmpr6sk038f/tasks/main.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [storage : define an empty list of volumes to be used in testing] ********* task path: /tmp/tmpr6sk038f/tasks/main.yml:13 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : include the appropriate provider tasks] ************************ task path: /tmp/tmpr6sk038f/tasks/main.yml:17 included: /tmp/tmpr6sk038f/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [storage : get a list of rpm packages installed on host machine] ********** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [storage : make sure blivet is available] ********************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : initialize internal facts] ************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.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 [storage : Apply defaults to pools and volumes [1/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:28 TASK [storage : Apply defaults to pools and volumes [2/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:36 TASK [storage : Apply defaults to pools and volumes [3/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:44 TASK [storage : Apply defaults to pools and volumes [4/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:52 TASK [storage : Apply defaults to pools and volumes [5/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:61 TASK [storage : Apply defaults to pools and volumes [6/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:72 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'name': 'test1', 'type': 'disk', 'mount_point': '/opt/test', 'fs_type': 'ext4', 'disks': ['vdb']}) => {"ansible_facts": {"_storage_volumes": [{"disks": ["vdb"], "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", "size": 0, "state": "present", "type": "disk"}]}, "ansible_loop_var": "volume", "changed": false, "volume": {"disks": ["vdb"], "fs_type": "ext4", "mount_point": "/opt/test", "name": "test1", "type": "disk"}} TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools": [] } TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_volumes": [ { "disks": [ "vdb" ], "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", "size": 0, "state": "present", "type": "disk" } ] } TASK [storage : get required packages] ***************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": [], "mounts": [], "packages": ["e2fsprogs"], "pools": [], "volumes": []} TASK [storage : make sure required packages are installed] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : manage the pools and volumes to match the specified state] ***** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:104 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": ["/dev/sr0", "/dev/vda1", "/dev/vdb", "/dev/vdc"], "mounts": [{"dump": 0, "fstype": "ext4", "opts": "defaults", "passno": 0, "path": "/opt/test", "src": "UUID=28c381b6-0103-41a9-a314-77f08d079e0f", "state": "mounted"}], "packages": ["e2fsprogs"], "pools": [], "volumes": [{"_device": "/dev/vdb", "_mount_id": "UUID=28c381b6-0103-41a9-a314-77f08d079e0f", "disks": ["vdb"], "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", "size": 0, "state": "present", "type": "disk"}]} TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:113 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "blivet_output": { "actions": [], "changed": false, "failed": false, "leaves": [ "/dev/sr0", "/dev/vda1", "/dev/vdb", "/dev/vdc" ], "mounts": [ { "dump": 0, "fstype": "ext4", "opts": "defaults", "passno": 0, "path": "/opt/test", "src": "UUID=28c381b6-0103-41a9-a314-77f08d079e0f", "state": "mounted" } ], "packages": [ "e2fsprogs" ], "pools": [], "volumes": [ { "_device": "/dev/vdb", "_mount_id": "UUID=28c381b6-0103-41a9-a314-77f08d079e0f", "disks": [ "vdb" ], "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", "size": 0, "state": "present", "type": "disk" } ] } } TASK [storage : set the list of pools for test verification] ******************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:116 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [storage : set the list of volumes for test verification] ***************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:120 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": [{"_device": "/dev/vdb", "_mount_id": "UUID=28c381b6-0103-41a9-a314-77f08d079e0f", "disks": ["vdb"], "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", "size": 0, "state": "present", "type": "disk"}]}, "changed": false} TASK [storage : manage mounts to match the specified state] ******************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:132 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'src': 'UUID=28c381b6-0103-41a9-a314-77f08d079e0f', 'path': '/opt/test', 'fstype': 'ext4', 'opts': 'defaults', 'dump': 0, 'passno': 0, 'state': 'mounted'}) => {"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=28c381b6-0103-41a9-a314-77f08d079e0f", "state": "mounted"}, "name": "/opt/test", "opts": "defaults", "passno": "0", "src": "UUID=28c381b6-0103-41a9-a314-77f08d079e0f"} TASK [storage : tell systemd to refresh its view of /etc/fstab] **************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:143 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [storage : Update facts] ************************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:153 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmpr6sk038f/tests/tests_change_disk_fs.yml:55 included: /tmp/tmpr6sk038f/tests/verify-role-results.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [Print out pool information] ********************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:1 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {} TASK [Print out volume information] ******************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_volumes_list": [ { "_device": "/dev/vdb", "_mount_id": "UUID=28c381b6-0103-41a9-a314-77f08d079e0f", "disks": [ "vdb" ], "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", "size": 0, "state": "present", "type": "disk" } ] } TASK [Collect info about the volumes.] ***************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:14 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "info": {"/dev/sr0": {"fstype": "iso9660", "label": "cidata", "name": "/dev/sr0", "type": "rom", "uuid": "2020-05-27-12-50-45-00"}, "/dev/vda": {"fstype": "", "label": "", "name": "/dev/vda", "type": "disk", "uuid": ""}, "/dev/vda1": {"fstype": "ext4", "label": "", "name": "/dev/vda1", "type": "partition", "uuid": "ea711a29-e460-4879-9d70-9da99ae021f9"}, "/dev/vdb": {"fstype": "ext4", "label": "", "name": "/dev/vdb", "type": "disk", "uuid": "28c381b6-0103-41a9-a314-77f08d079e0f"}, "/dev/vdc": {"fstype": "", "label": "", "name": "/dev/vdc", "type": "disk", "uuid": ""}}} TASK [Read the /etc/fstab file for volume existence] *************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:19 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/fstab"], "delta": "0:00:00.003398", "end": "2020-05-27 12:56:03.000410", "rc": 0, "start": "2020-05-27 12:56:02.997012", "stderr": "", "stderr_lines": [], "stdout": "\n#\n# /etc/fstab\n# Created by anaconda on Fri Apr 26 02:02:19 2019\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=ea711a29-e460-4879-9d70-9da99ae021f9 / ext4 defaults 1 1\nUUID=28c381b6-0103-41a9-a314-77f08d079e0f /opt/test ext4 defaults 0 0", "stdout_lines": ["", "#", "# /etc/fstab", "# Created by anaconda on Fri Apr 26 02:02:19 2019", "#", "# 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=ea711a29-e460-4879-9d70-9da99ae021f9 / ext4 defaults 1 1", "UUID=28c381b6-0103-41a9-a314-77f08d079e0f /opt/test ext4 defaults 0 0"]} TASK [Verify the volumes listed in storage_pools were correctly managed] ******* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:27 TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:34 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_pool": null}, "changed": false} TASK [Verify the volumes with no pool were correctly managed] ****************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:41 [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/tmpr6sk038f/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": true, "_storage_volume_tests": ["mount", "fstab", "fs", "device"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:12 included: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/vdb"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/vdb"], "delta": "0:00:00.003167", "end": "2020-05-27 12:56:03.490885", "rc": 0, "start": "2020-05-27 12:56:03.487718", "stderr": "", "stderr_lines": [], "stdout": "/dev/vdb", "stdout_lines": ["/dev/vdb"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Set some facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:20 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [{"block_available": 2419519, "block_size": 4096, "block_total": 2563909, "block_used": 144390, "device": "/dev/vdb", "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": "28c381b6-0103-41a9-a314-77f08d079e0f"}], "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/vdb", "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": "28c381b6-0103-41a9-a314-77f08d079e0f"}]}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:31 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:40 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:48 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Unset facts] ************************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:58 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_matches": "1", "storage_test_fstab_id_matches": ["UUID=28c381b6-0103-41a9-a314-77f08d079e0f "], "storage_test_fstab_mount_point_matches": [" /opt/test "]}, "changed": false} TASK [Verify that the device identifier appears in /etc/fstab] ***************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:16 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:23 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/vdb"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/vdb"], "delta": "0:00:00.003046", "end": "2020-05-27 12:56:04.063930", "rc": 0, "start": "2020-05-27 12:56:04.060884", "stderr": "", "stderr_lines": [], "stdout": "/dev/vdb", "stdout_lines": ["/dev/vdb"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify fs type] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:21 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify fs label] ********************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:27 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/vdb"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/vdb"], "delta": "0:00:00.003164", "end": "2020-05-27 12:56:04.484134", "rc": 0, "start": "2020-05-27 12:56:04.480970", "stderr": "", "stderr_lines": [], "stdout": "/dev/vdb", "stdout_lines": ["/dev/vdb"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [See whether the device node is present] ********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:21 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "stat": {"atime": 1590584143.3749547, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "ctime": 1590584143.3749547, "dev": 6, "device_type": 64528, "executable": false, "exists": true, "gid": 6, "gr_name": "disk", "inode": 1381, "isblk": true, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mimetype": "inode/blockdevice", "mode": "0660", "mtime": 1590584143.3749547, "nlink": 1, "path": "/dev/vdb", "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/tmpr6sk038f/tests/test-verify-volume-device.yml:27 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:35 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:41 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "disk"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:45 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:50 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:51 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_blkinfo": null, "storage_test_fstab": null, "storage_test_volume": null}, "changed": false} TASK [Clean up] **************************************************************** task path: /tmp/tmpr6sk038f/tests/tests_change_disk_fs.yml:57 TASK [storage : Set version specific variables] ******************************** task path: /tmp/tmpr6sk038f/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/tmp/tmpr6sk038f/vars/Fedora.yml) => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-dm", "libblockdev-lvm", "libblockdev-part", "libblockdev-mdraid"]}, "ansible_included_var_files": ["/tmp/tmpr6sk038f/vars/Fedora.yml"], "ansible_loop_var": "item", "changed": false, "item": "/tmp/tmpr6sk038f/vars/Fedora.yml"} TASK [storage : define an empty list of pools to be used in testing] *********** task path: /tmp/tmpr6sk038f/tasks/main.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [storage : define an empty list of volumes to be used in testing] ********* task path: /tmp/tmpr6sk038f/tasks/main.yml:13 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : include the appropriate provider tasks] ************************ task path: /tmp/tmpr6sk038f/tasks/main.yml:17 included: /tmp/tmpr6sk038f/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [storage : get a list of rpm packages installed on host machine] ********** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [storage : make sure blivet is available] ********************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : initialize internal facts] ************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.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 [storage : Apply defaults to pools and volumes [1/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:28 TASK [storage : Apply defaults to pools and volumes [2/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:36 TASK [storage : Apply defaults to pools and volumes [3/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:44 TASK [storage : Apply defaults to pools and volumes [4/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:52 TASK [storage : Apply defaults to pools and volumes [5/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:61 TASK [storage : Apply defaults to pools and volumes [6/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:72 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'name': 'test1', 'type': 'disk', 'disks': ['vdb'], 'mount_point': '/opt/test', 'state': 'absent'}) => {"ansible_facts": {"_storage_volumes": [{"disks": ["vdb"], "fs_create_options": "", "fs_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", "size": 0, "state": "absent", "type": "disk"}]}, "ansible_loop_var": "volume", "changed": false, "volume": {"disks": ["vdb"], "mount_point": "/opt/test", "name": "test1", "state": "absent", "type": "disk"}} TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools": [] } TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_volumes": [ { "disks": [ "vdb" ], "fs_create_options": "", "fs_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", "size": 0, "state": "absent", "type": "disk" } ] } TASK [storage : get required packages] ***************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": []} TASK [storage : make sure required packages are installed] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : manage the pools and volumes to match the specified state] ***** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:104 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [{"action": "destroy format", "device": "/dev/vdb", "fs_type": "ext4"}], "changed": true, "leaves": ["/dev/sr0", "/dev/vda1", "/dev/vdb", "/dev/vdc"], "mounts": [{"path": "/opt/test", "state": "absent"}], "packages": ["e2fsprogs"], "pools": [], "volumes": [{"_device": "/dev/vdb", "_mount_id": "UUID=28c381b6-0103-41a9-a314-77f08d079e0f", "disks": ["vdb"], "fs_create_options": "", "fs_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", "size": 0, "state": "absent", "type": "disk"}]} TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:113 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "blivet_output": { "actions": [ { "action": "destroy format", "device": "/dev/vdb", "fs_type": "ext4" } ], "changed": true, "failed": false, "leaves": [ "/dev/sr0", "/dev/vda1", "/dev/vdb", "/dev/vdc" ], "mounts": [ { "path": "/opt/test", "state": "absent" } ], "packages": [ "e2fsprogs" ], "pools": [], "volumes": [ { "_device": "/dev/vdb", "_mount_id": "UUID=28c381b6-0103-41a9-a314-77f08d079e0f", "disks": [ "vdb" ], "fs_create_options": "", "fs_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", "size": 0, "state": "absent", "type": "disk" } ] } } TASK [storage : set the list of pools for test verification] ******************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:116 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [storage : set the list of volumes for test verification] ***************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:120 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": [{"_device": "/dev/vdb", "_mount_id": "UUID=28c381b6-0103-41a9-a314-77f08d079e0f", "disks": ["vdb"], "fs_create_options": "", "fs_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", "size": 0, "state": "absent", "type": "disk"}]}, "changed": false} TASK [storage : manage mounts to match the specified state] ******************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:132 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'path': '/opt/test', 'state': 'absent'}) => {"ansible_loop_var": "mount_info", "changed": true, "dump": "0", "fstab": "/etc/fstab", "mount_info": {"path": "/opt/test", "state": "absent"}, "name": "/opt/test", "opts": "defaults", "passno": "0"} TASK [storage : tell systemd to refresh its view of /etc/fstab] **************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:143 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [storage : Update facts] ************************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:153 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmpr6sk038f/tests/tests_change_disk_fs.yml:68 included: /tmp/tmpr6sk038f/tests/verify-role-results.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [Print out pool information] ********************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:1 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {} TASK [Print out volume information] ******************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_volumes_list": [ { "_device": "/dev/vdb", "_mount_id": "UUID=28c381b6-0103-41a9-a314-77f08d079e0f", "disks": [ "vdb" ], "fs_create_options": "", "fs_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", "size": 0, "state": "absent", "type": "disk" } ] } TASK [Collect info about the volumes.] ***************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:14 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "info": {"/dev/sr0": {"fstype": "iso9660", "label": "cidata", "name": "/dev/sr0", "type": "rom", "uuid": "2020-05-27-12-50-45-00"}, "/dev/vda": {"fstype": "", "label": "", "name": "/dev/vda", "type": "disk", "uuid": ""}, "/dev/vda1": {"fstype": "ext4", "label": "", "name": "/dev/vda1", "type": "partition", "uuid": "ea711a29-e460-4879-9d70-9da99ae021f9"}, "/dev/vdb": {"fstype": "", "label": "", "name": "/dev/vdb", "type": "disk", "uuid": ""}, "/dev/vdc": {"fstype": "", "label": "", "name": "/dev/vdc", "type": "disk", "uuid": ""}}} TASK [Read the /etc/fstab file for volume existence] *************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:19 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/fstab"], "delta": "0:00:00.002690", "end": "2020-05-27 12:56:16.686123", "rc": 0, "start": "2020-05-27 12:56:16.683433", "stderr": "", "stderr_lines": [], "stdout": "\n#\n# /etc/fstab\n# Created by anaconda on Fri Apr 26 02:02:19 2019\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=ea711a29-e460-4879-9d70-9da99ae021f9 / ext4 defaults 1 1", "stdout_lines": ["", "#", "# /etc/fstab", "# Created by anaconda on Fri Apr 26 02:02:19 2019", "#", "# 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=ea711a29-e460-4879-9d70-9da99ae021f9 / ext4 defaults 1 1"]} TASK [Verify the volumes listed in storage_pools were correctly managed] ******* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:27 TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:34 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_pool": null}, "changed": false} TASK [Verify the volumes with no pool were correctly managed] ****************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:41 [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/tmpr6sk038f/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": false, "_storage_volume_tests": ["mount", "fstab", "fs", "device"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:12 included: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/vdb"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/vdb"], "delta": "0:00:00.003403", "end": "2020-05-27 12:56:17.281437", "rc": 0, "start": "2020-05-27 12:56:17.278034", "stderr": "", "stderr_lines": [], "stdout": "/dev/vdb", "stdout_lines": ["/dev/vdb"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Set some facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:20 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [], "storage_test_mount_expected_match_count": "0", "storage_test_mount_point_matches": []}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:31 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:40 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:48 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Unset facts] ************************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:58 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_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/tmpr6sk038f/tests/test-verify-volume-fstab.yml:9 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:16 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:23 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/vdb"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/vdb"], "delta": "0:00:00.002671", "end": "2020-05-27 12:56:17.867095", "rc": 0, "start": "2020-05-27 12:56:17.864424", "stderr": "", "stderr_lines": [], "stdout": "/dev/vdb", "stdout_lines": ["/dev/vdb"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify fs type] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:21 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify fs label] ********************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:27 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/vdb"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/vdb"], "delta": "0:00:00.002875", "end": "2020-05-27 12:56:18.323343", "rc": 0, "start": "2020-05-27 12:56:18.320468", "stderr": "", "stderr_lines": [], "stdout": "/dev/vdb", "stdout_lines": ["/dev/vdb"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [See whether the device node is present] ********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:21 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "stat": {"atime": 1590584174.0749547, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "ctime": 1590584174.0749547, "dev": 6, "device_type": 64528, "executable": false, "exists": true, "gid": 6, "gr_name": "disk", "inode": 1381, "isblk": true, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mimetype": "inode/blockdevice", "mode": "0660", "mtime": 1590584174.0749547, "nlink": 1, "path": "/dev/vdb", "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/tmpr6sk038f/tests/test-verify-volume-device.yml:27 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:35 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:41 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "disk"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:45 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:50 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Clean up facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:51 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_blkinfo": null, "storage_test_fstab": null, "storage_test_volume": null}, "changed": false} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 : ok=226 changed=20 unreachable=0 failed=0 skipped=66 rescued=0 ignored=0 + cd /tmp/tmpr6sk038f/tests; TEST_SUBJECTS=/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_storage-91-a6b7623-fedora-30-97_lk9m2/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmpr6sk038f/_setup.yml /tmp/tmpr6sk038f/tests/tests_change_disk_mount.yml ansible-playbook 2.9.9 config file = /etc/ansible/ansible.cfg configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.8/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 3.8.2 (default, Feb 28 2020, 00:00:00) [GCC 10.0.1 20200216 (Red Hat 10.0.1-0.8)] Using /etc/ansible/ansible.cfg as config file PLAYBOOK: _setup.yml *********************************************************** 1 plays in /tmp/tmpr6sk038f/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmpr6sk038f/_setup.yml:5 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "groups": { "all": [ "/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2" ], "localhost": [ "/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2" ], "subjects": [ "/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmpr6sk038f/_setup.yml:7 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/Fedora-Cloud-Base-30-1.2.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/tmpr6sk038f/tests/tests_change_disk_mount.yml PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpr6sk038f/tests/tests_change_disk_mount.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] META: ran handlers TASK [include_role : storage] ************************************************** task path: /tmp/tmpr6sk038f/tests/tests_change_disk_mount.yml:10 TASK [storage : Set version specific variables] ******************************** task path: /tmp/tmpr6sk038f/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/tmp/tmpr6sk038f/vars/Fedora.yml) => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-dm", "libblockdev-lvm", "libblockdev-part", "libblockdev-mdraid"]}, "ansible_included_var_files": ["/tmp/tmpr6sk038f/vars/Fedora.yml"], "ansible_loop_var": "item", "changed": false, "item": "/tmp/tmpr6sk038f/vars/Fedora.yml"} TASK [storage : define an empty list of pools to be used in testing] *********** task path: /tmp/tmpr6sk038f/tasks/main.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [storage : define an empty list of volumes to be used in testing] ********* task path: /tmp/tmpr6sk038f/tasks/main.yml:13 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : include the appropriate provider tasks] ************************ task path: /tmp/tmpr6sk038f/tasks/main.yml:17 included: /tmp/tmpr6sk038f/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [storage : get a list of rpm packages installed on host machine] ********** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [storage : make sure blivet is available] ********************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:7 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: libblockdev-mpath-2.23-1.fc30.x86_64", "Installed: libblockdev-nvdimm-2.23-1.fc30.x86_64", "Installed: userspace-rcu-0.10.1-5.fc30.x86_64", "Installed: libblockdev-part-2.23-1.fc30.x86_64", "Installed: dmraid-1.0.0.rc16-41.fc30.x86_64", "Installed: dmraid-events-1.0.0.rc16-41.fc30.x86_64", "Installed: lzo-2.08-15.fc30.x86_64", "Installed: libblockdev-swap-2.23-1.fc30.x86_64", "Installed: lvm2-2.02.183-3.fc30.x86_64", "Installed: libblockdev-utils-2.23-1.fc30.x86_64", "Installed: lvm2-libs-2.02.183-3.fc30.x86_64", "Installed: python3-blivet-1:3.1.4-1.fc30.noarch", "Installed: python3-blockdev-2.23-1.fc30.x86_64", "Installed: daxctl-libs-68-1.fc30.x86_64", "Installed: mdadm-4.1-1.fc30.x86_64", "Installed: blivet-data-1:3.1.4-1.fc30.noarch", "Installed: sgpio-1.2.0.10-23.fc30.x86_64", "Installed: nspr-4.25.0-1.fc30.x86_64", "Installed: python3-bytesize-2.2-1.fc30.x86_64", "Installed: device-mapper-event-1.02.154-3.fc30.x86_64", "Installed: lsof-4.91-3.fc30.x86_64", "Installed: nss-3.51.1-1.fc30.x86_64", "Installed: device-mapper-event-libs-1.02.154-3.fc30.x86_64", "Installed: device-mapper-multipath-0.7.9-6.git2df6110.fc30.x86_64", "Installed: gdisk-1.0.5-1.fc30.x86_64", "Installed: device-mapper-multipath-libs-0.7.9-6.git2df6110.fc30.x86_64", "Installed: nss-softokn-3.51.1-1.fc30.x86_64", "Installed: python3-gobject-base-3.32.2-1.fc30.x86_64", "Installed: device-mapper-persistent-data-0.7.6-4.fc30.x86_64", "Installed: gobject-introspection-1.60.2-1.fc30.x86_64", "Installed: nss-softokn-freebl-3.51.1-1.fc30.x86_64", "Installed: libbytesize-2.2-1.fc30.x86_64", "Installed: nss-sysinit-3.51.1-1.fc30.x86_64", "Installed: nss-util-3.51.1-1.fc30.x86_64", "Installed: volume_key-libs-0.3.12-3.fc30.x86_64", "Installed: bcache-tools-1.0.8-15.fc30.x86_64", "Installed: ndctl-68-1.fc30.x86_64", "Installed: ndctl-libs-68-1.fc30.x86_64", "Installed: libblockdev-2.23-1.fc30.x86_64", "Installed: libblockdev-btrfs-2.23-1.fc30.x86_64", "Installed: libblockdev-crypto-2.23-1.fc30.x86_64", "Installed: python3-pyudev-0.21.0-10.fc30.noarch", "Installed: btrfs-progs-5.6-1.fc30.x86_64", "Installed: libblockdev-dm-2.23-1.fc30.x86_64", "Installed: libblockdev-fs-2.23-1.fc30.x86_64", "Installed: libblockdev-kbd-2.23-1.fc30.x86_64", "Installed: libblockdev-loop-2.23-1.fc30.x86_64", "Installed: libblockdev-lvm-2.23-1.fc30.x86_64", "Installed: python3-pyparted-1:3.11.2-1.fc30.x86_64", "Installed: libaio-0.3.111-4.fc30.x86_64", "Installed: libblockdev-mdraid-2.23-1.fc30.x86_64"]} TASK [storage : initialize internal facts] ************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.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 [storage : Apply defaults to pools and volumes [1/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:28 TASK [storage : Apply defaults to pools and volumes [2/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:36 TASK [storage : Apply defaults to pools and volumes [3/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:44 TASK [storage : Apply defaults to pools and volumes [4/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:52 TASK [storage : Apply defaults to pools and volumes [5/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:61 TASK [storage : Apply defaults to pools and volumes [6/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:72 TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools": [] } TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_volumes": [] } TASK [storage : get required packages] ***************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": []} TASK [storage : make sure required packages are installed] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : manage the pools and volumes to match the specified state] ***** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:104 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": []} TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:113 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "blivet_output": { "actions": [], "changed": false, "failed": false, "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": [] } } TASK [storage : set the list of pools for test verification] ******************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:116 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [storage : set the list of volumes for test verification] ***************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:120 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : manage mounts to match the specified state] ******************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:132 TASK [storage : tell systemd to refresh its view of /etc/fstab] **************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:143 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [storage : Update facts] ************************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:153 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmpr6sk038f/tests/tests_change_disk_mount.yml:13 included: /tmp/tmpr6sk038f/tests/get_unused_disk.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [Find unused disks in the system] ***************************************** task path: /tmp/tmpr6sk038f/tests/get_unused_disk.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "disks": ["vdb"]} TASK [set_fact] **************************************************************** task path: /tmp/tmpr6sk038f/tests/get_unused_disk.yml:8 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"unused_disks": ["vdb"]}, "changed": false} TASK [Exit playbook when there's not enough unused disks in the system] ******** task path: /tmp/tmpr6sk038f/tests/get_unused_disk.yml:12 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Print unused disks] ****************************************************** task path: /tmp/tmpr6sk038f/tests/get_unused_disk.yml:17 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "unused_disks": [ "vdb" ] } TASK [Create a disk device mounted at "/opt/test1"] **************************** task path: /tmp/tmpr6sk038f/tests/tests_change_disk_mount.yml:18 TASK [storage : Set version specific variables] ******************************** task path: /tmp/tmpr6sk038f/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/tmp/tmpr6sk038f/vars/Fedora.yml) => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-dm", "libblockdev-lvm", "libblockdev-part", "libblockdev-mdraid"]}, "ansible_included_var_files": ["/tmp/tmpr6sk038f/vars/Fedora.yml"], "ansible_loop_var": "item", "changed": false, "item": "/tmp/tmpr6sk038f/vars/Fedora.yml"} TASK [storage : define an empty list of pools to be used in testing] *********** task path: /tmp/tmpr6sk038f/tasks/main.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [storage : define an empty list of volumes to be used in testing] ********* task path: /tmp/tmpr6sk038f/tasks/main.yml:13 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : include the appropriate provider tasks] ************************ task path: /tmp/tmpr6sk038f/tasks/main.yml:17 included: /tmp/tmpr6sk038f/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [storage : get a list of rpm packages installed on host machine] ********** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [storage : make sure blivet is available] ********************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : initialize internal facts] ************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.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 [storage : Apply defaults to pools and volumes [1/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:28 TASK [storage : Apply defaults to pools and volumes [2/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:36 TASK [storage : Apply defaults to pools and volumes [3/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:44 TASK [storage : Apply defaults to pools and volumes [4/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:52 TASK [storage : Apply defaults to pools and volumes [5/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:61 TASK [storage : Apply defaults to pools and volumes [6/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:72 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'name': 'test1', 'type': 'disk', 'mount_point': '/opt/test1', 'disks': ['vdb']}) => {"ansible_facts": {"_storage_volumes": [{"disks": ["vdb"], "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "size": 0, "state": "present", "type": "disk"}]}, "ansible_loop_var": "volume", "changed": false, "volume": {"disks": ["vdb"], "mount_point": "/opt/test1", "name": "test1", "type": "disk"}} TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools": [] } TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_volumes": [ { "disks": [ "vdb" ], "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "size": 0, "state": "present", "type": "disk" } ] } TASK [storage : get required packages] ***************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": [], "mounts": [], "packages": ["xfsprogs"], "pools": [], "volumes": []} TASK [storage : make sure required packages are installed] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : manage the pools and volumes to match the specified state] ***** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:104 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [{"action": "create format", "device": "/dev/vdb", "fs_type": "xfs"}], "changed": true, "leaves": ["/dev/sr0", "/dev/vda1", "/dev/vdb", "/dev/vdc"], "mounts": [{"dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "/dev/vdb", "state": "mounted"}], "packages": ["e2fsprogs", "xfsprogs"], "pools": [], "volumes": [{"_device": "/dev/vdb", "_mount_id": "/dev/vdb", "disks": ["vdb"], "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "size": 0, "state": "present", "type": "disk"}]} TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:113 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "blivet_output": { "actions": [ { "action": "create format", "device": "/dev/vdb", "fs_type": "xfs" } ], "changed": true, "failed": false, "leaves": [ "/dev/sr0", "/dev/vda1", "/dev/vdb", "/dev/vdc" ], "mounts": [ { "dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "/dev/vdb", "state": "mounted" } ], "packages": [ "e2fsprogs", "xfsprogs" ], "pools": [], "volumes": [ { "_device": "/dev/vdb", "_mount_id": "/dev/vdb", "disks": [ "vdb" ], "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "size": 0, "state": "present", "type": "disk" } ] } } TASK [storage : set the list of pools for test verification] ******************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:116 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [storage : set the list of volumes for test verification] ***************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:120 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": [{"_device": "/dev/vdb", "_mount_id": "/dev/vdb", "disks": ["vdb"], "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "size": 0, "state": "present", "type": "disk"}]}, "changed": false} TASK [storage : manage mounts to match the specified state] ******************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:132 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'src': '/dev/vdb', 'path': '/opt/test1', 'fstype': 'xfs', 'opts': 'defaults', 'dump': 0, 'passno': 0, 'state': 'mounted'}) => {"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/vdb", "state": "mounted"}, "name": "/opt/test1", "opts": "defaults", "passno": "0", "src": "/dev/vdb"} TASK [storage : tell systemd to refresh its view of /etc/fstab] **************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:143 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [storage : Update facts] ************************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:153 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmpr6sk038f/tests/tests_change_disk_mount.yml:28 included: /tmp/tmpr6sk038f/tests/verify-role-results.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [Print out pool information] ********************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:1 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {} TASK [Print out volume information] ******************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_volumes_list": [ { "_device": "/dev/vdb", "_mount_id": "/dev/vdb", "disks": [ "vdb" ], "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "size": 0, "state": "present", "type": "disk" } ] } TASK [Collect info about the volumes.] ***************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:14 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "info": {"/dev/sr0": {"fstype": "iso9660", "label": "cidata", "name": "/dev/sr0", "type": "rom", "uuid": "2020-05-27-12-56-19-00"}, "/dev/vda": {"fstype": "", "label": "", "name": "/dev/vda", "type": "disk", "uuid": ""}, "/dev/vda1": {"fstype": "ext4", "label": "", "name": "/dev/vda1", "type": "partition", "uuid": "ea711a29-e460-4879-9d70-9da99ae021f9"}, "/dev/vdb": {"fstype": "xfs", "label": "", "name": "/dev/vdb", "type": "disk", "uuid": "0ca6749e-495b-4643-baa6-5da440ee36b9"}, "/dev/vdc": {"fstype": "", "label": "", "name": "/dev/vdc", "type": "disk", "uuid": ""}}} TASK [Read the /etc/fstab file for volume existence] *************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:19 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/fstab"], "delta": "0:00:00.002631", "end": "2020-05-27 12:59:15.618912", "rc": 0, "start": "2020-05-27 12:59:15.616281", "stderr": "", "stderr_lines": [], "stdout": "\n#\n# /etc/fstab\n# Created by anaconda on Fri Apr 26 02:02:19 2019\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=ea711a29-e460-4879-9d70-9da99ae021f9 / ext4 defaults 1 1\n/dev/vdb /opt/test1 xfs defaults 0 0", "stdout_lines": ["", "#", "# /etc/fstab", "# Created by anaconda on Fri Apr 26 02:02:19 2019", "#", "# 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=ea711a29-e460-4879-9d70-9da99ae021f9 / ext4 defaults 1 1", "/dev/vdb /opt/test1 xfs defaults 0 0"]} TASK [Verify the volumes listed in storage_pools were correctly managed] ******* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:27 TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:34 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_pool": null}, "changed": false} TASK [Verify the volumes with no pool were correctly managed] ****************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:41 included: /tmp/tmpr6sk038f/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": true, "_storage_volume_tests": ["mount", "fstab", "fs", "device"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:12 included: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/vdb"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/vdb"], "delta": "0:00:00.004259", "end": "2020-05-27 12:59:16.089852", "rc": 0, "start": "2020-05-27 12:59:16.085593", "stderr": "", "stderr_lines": [], "stdout": "/dev/vdb", "stdout_lines": ["/dev/vdb"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Set some facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:20 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [{"block_available": 2608012, "block_size": 4096, "block_total": 2618880, "block_used": 10868, "device": "/dev/vdb", "fstype": "xfs", "inode_available": 5242877, "inode_total": 5242880, "inode_used": 3, "mount": "/opt/test1", "options": "rw,seclabel,relatime,attr2,inode64,noquota", "size_available": 10682417152, "size_total": 10726932480, "uuid": "0ca6749e-495b-4643-baa6-5da440ee36b9"}], "storage_test_mount_expected_match_count": "1", "storage_test_mount_point_matches": [{"block_available": 2608012, "block_size": 4096, "block_total": 2618880, "block_used": 10868, "device": "/dev/vdb", "fstype": "xfs", "inode_available": 5242877, "inode_total": 5242880, "inode_used": 3, "mount": "/opt/test1", "options": "rw,seclabel,relatime,attr2,inode64,noquota", "size_available": 10682417152, "size_total": 10726932480, "uuid": "0ca6749e-495b-4643-baa6-5da440ee36b9"}]}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:31 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:40 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:48 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Unset facts] ************************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:58 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_matches": "1", "storage_test_fstab_id_matches": ["/dev/vdb "], "storage_test_fstab_mount_point_matches": [" /opt/test1 "]}, "changed": false} TASK [Verify that the device identifier appears in /etc/fstab] ***************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:16 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:23 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/vdb"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/vdb"], "delta": "0:00:00.002470", "end": "2020-05-27 12:59:16.641142", "rc": 0, "start": "2020-05-27 12:59:16.638672", "stderr": "", "stderr_lines": [], "stdout": "/dev/vdb", "stdout_lines": ["/dev/vdb"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify fs type] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:21 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify fs label] ********************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:27 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/vdb"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/vdb"], "delta": "0:00:00.003081", "end": "2020-05-27 12:59:17.039101", "rc": 0, "start": "2020-05-27 12:59:17.036020", "stderr": "", "stderr_lines": [], "stdout": "/dev/vdb", "stdout_lines": ["/dev/vdb"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [See whether the device node is present] ********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:21 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "stat": {"atime": 1590584352.3863273, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "ctime": 1590584352.3863273, "dev": 6, "device_type": 64528, "executable": false, "exists": true, "gid": 6, "gr_name": "disk", "inode": 14692, "isblk": true, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mimetype": "inode/blockdevice", "mode": "0660", "mtime": 1590584352.3863273, "nlink": 1, "path": "/dev/vdb", "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/tmpr6sk038f/tests/test-verify-volume-device.yml:27 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:35 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:41 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "disk"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:45 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:50 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:51 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_blkinfo": null, "storage_test_fstab": null, "storage_test_volume": null}, "changed": false} TASK [Change the disk device mount location to "/opt/test2"] ******************* task path: /tmp/tmpr6sk038f/tests/tests_change_disk_mount.yml:30 TASK [storage : Set version specific variables] ******************************** task path: /tmp/tmpr6sk038f/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/tmp/tmpr6sk038f/vars/Fedora.yml) => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-dm", "libblockdev-lvm", "libblockdev-part", "libblockdev-mdraid"]}, "ansible_included_var_files": ["/tmp/tmpr6sk038f/vars/Fedora.yml"], "ansible_loop_var": "item", "changed": false, "item": "/tmp/tmpr6sk038f/vars/Fedora.yml"} TASK [storage : define an empty list of pools to be used in testing] *********** task path: /tmp/tmpr6sk038f/tasks/main.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [storage : define an empty list of volumes to be used in testing] ********* task path: /tmp/tmpr6sk038f/tasks/main.yml:13 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : include the appropriate provider tasks] ************************ task path: /tmp/tmpr6sk038f/tasks/main.yml:17 included: /tmp/tmpr6sk038f/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [storage : get a list of rpm packages installed on host machine] ********** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [storage : make sure blivet is available] ********************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : initialize internal facts] ************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.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 [storage : Apply defaults to pools and volumes [1/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:28 TASK [storage : Apply defaults to pools and volumes [2/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:36 TASK [storage : Apply defaults to pools and volumes [3/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:44 TASK [storage : Apply defaults to pools and volumes [4/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:52 TASK [storage : Apply defaults to pools and volumes [5/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:61 TASK [storage : Apply defaults to pools and volumes [6/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:72 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'name': 'test1', 'type': 'disk', 'mount_point': '/opt/test2', 'disks': ['vdb']}) => {"ansible_facts": {"_storage_volumes": [{"disks": ["vdb"], "fs_create_options": "", "fs_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", "size": 0, "state": "present", "type": "disk"}]}, "ansible_loop_var": "volume", "changed": false, "volume": {"disks": ["vdb"], "mount_point": "/opt/test2", "name": "test1", "type": "disk"}} TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools": [] } TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_volumes": [ { "disks": [ "vdb" ], "fs_create_options": "", "fs_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", "size": 0, "state": "present", "type": "disk" } ] } TASK [storage : get required packages] ***************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": [], "mounts": [], "packages": ["xfsprogs"], "pools": [], "volumes": []} TASK [storage : make sure required packages are installed] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : manage the pools and volumes to match the specified state] ***** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:104 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": ["/dev/sr0", "/dev/vda1", "/dev/vdb", "/dev/vdc"], "mounts": [{"path": "/opt/test1", "state": "absent"}, {"dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test2", "src": "UUID=0ca6749e-495b-4643-baa6-5da440ee36b9", "state": "mounted"}], "packages": ["e2fsprogs", "xfsprogs"], "pools": [], "volumes": [{"_device": "/dev/vdb", "_mount_id": "UUID=0ca6749e-495b-4643-baa6-5da440ee36b9", "disks": ["vdb"], "fs_create_options": "", "fs_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", "size": 0, "state": "present", "type": "disk"}]} TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:113 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "blivet_output": { "actions": [], "changed": false, "failed": false, "leaves": [ "/dev/sr0", "/dev/vda1", "/dev/vdb", "/dev/vdc" ], "mounts": [ { "path": "/opt/test1", "state": "absent" }, { "dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test2", "src": "UUID=0ca6749e-495b-4643-baa6-5da440ee36b9", "state": "mounted" } ], "packages": [ "e2fsprogs", "xfsprogs" ], "pools": [], "volumes": [ { "_device": "/dev/vdb", "_mount_id": "UUID=0ca6749e-495b-4643-baa6-5da440ee36b9", "disks": [ "vdb" ], "fs_create_options": "", "fs_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", "size": 0, "state": "present", "type": "disk" } ] } } TASK [storage : set the list of pools for test verification] ******************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:116 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [storage : set the list of volumes for test verification] ***************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:120 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": [{"_device": "/dev/vdb", "_mount_id": "UUID=0ca6749e-495b-4643-baa6-5da440ee36b9", "disks": ["vdb"], "fs_create_options": "", "fs_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", "size": 0, "state": "present", "type": "disk"}]}, "changed": false} TASK [storage : manage mounts to match the specified state] ******************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:132 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'path': '/opt/test1', 'state': '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"} changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'src': 'UUID=0ca6749e-495b-4643-baa6-5da440ee36b9', 'path': '/opt/test2', 'fstype': 'xfs', 'opts': 'defaults', 'dump': 0, 'passno': 0, 'state': 'mounted'}) => {"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=0ca6749e-495b-4643-baa6-5da440ee36b9", "state": "mounted"}, "name": "/opt/test2", "opts": "defaults", "passno": "0", "src": "UUID=0ca6749e-495b-4643-baa6-5da440ee36b9"} TASK [storage : tell systemd to refresh its view of /etc/fstab] **************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:143 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [storage : Update facts] ************************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:153 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmpr6sk038f/tests/tests_change_disk_mount.yml:40 included: /tmp/tmpr6sk038f/tests/verify-role-results.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [Print out pool information] ********************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:1 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {} TASK [Print out volume information] ******************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_volumes_list": [ { "_device": "/dev/vdb", "_mount_id": "UUID=0ca6749e-495b-4643-baa6-5da440ee36b9", "disks": [ "vdb" ], "fs_create_options": "", "fs_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", "size": 0, "state": "present", "type": "disk" } ] } TASK [Collect info about the volumes.] ***************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:14 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "info": {"/dev/sr0": {"fstype": "iso9660", "label": "cidata", "name": "/dev/sr0", "type": "rom", "uuid": "2020-05-27-12-56-19-00"}, "/dev/vda": {"fstype": "", "label": "", "name": "/dev/vda", "type": "disk", "uuid": ""}, "/dev/vda1": {"fstype": "ext4", "label": "", "name": "/dev/vda1", "type": "partition", "uuid": "ea711a29-e460-4879-9d70-9da99ae021f9"}, "/dev/vdb": {"fstype": "xfs", "label": "", "name": "/dev/vdb", "type": "disk", "uuid": "0ca6749e-495b-4643-baa6-5da440ee36b9"}, "/dev/vdc": {"fstype": "", "label": "", "name": "/dev/vdc", "type": "disk", "uuid": ""}}} TASK [Read the /etc/fstab file for volume existence] *************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:19 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/fstab"], "delta": "0:00:00.002727", "end": "2020-05-27 12:59:29.400305", "rc": 0, "start": "2020-05-27 12:59:29.397578", "stderr": "", "stderr_lines": [], "stdout": "\n#\n# /etc/fstab\n# Created by anaconda on Fri Apr 26 02:02:19 2019\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=ea711a29-e460-4879-9d70-9da99ae021f9 / ext4 defaults 1 1\nUUID=0ca6749e-495b-4643-baa6-5da440ee36b9 /opt/test2 xfs defaults 0 0", "stdout_lines": ["", "#", "# /etc/fstab", "# Created by anaconda on Fri Apr 26 02:02:19 2019", "#", "# 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=ea711a29-e460-4879-9d70-9da99ae021f9 / ext4 defaults 1 1", "UUID=0ca6749e-495b-4643-baa6-5da440ee36b9 /opt/test2 xfs defaults 0 0"]} TASK [Verify the volumes listed in storage_pools were correctly managed] ******* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:27 TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:34 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_pool": null}, "changed": false} TASK [Verify the volumes with no pool were correctly managed] ****************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:41 [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/tmpr6sk038f/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": true, "_storage_volume_tests": ["mount", "fstab", "fs", "device"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:12 included: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/vdb"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/vdb"], "delta": "0:00:00.002522", "end": "2020-05-27 12:59:29.937119", "rc": 0, "start": "2020-05-27 12:59:29.934597", "stderr": "", "stderr_lines": [], "stdout": "/dev/vdb", "stdout_lines": ["/dev/vdb"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Set some facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:20 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [{"block_available": 2608012, "block_size": 4096, "block_total": 2618880, "block_used": 10868, "device": "/dev/vdb", "fstype": "xfs", "inode_available": 5242877, "inode_total": 5242880, "inode_used": 3, "mount": "/opt/test2", "options": "rw,seclabel,relatime,attr2,inode64,noquota", "size_available": 10682417152, "size_total": 10726932480, "uuid": "0ca6749e-495b-4643-baa6-5da440ee36b9"}], "storage_test_mount_expected_match_count": "1", "storage_test_mount_point_matches": [{"block_available": 2608012, "block_size": 4096, "block_total": 2618880, "block_used": 10868, "device": "/dev/vdb", "fstype": "xfs", "inode_available": 5242877, "inode_total": 5242880, "inode_used": 3, "mount": "/opt/test2", "options": "rw,seclabel,relatime,attr2,inode64,noquota", "size_available": 10682417152, "size_total": 10726932480, "uuid": "0ca6749e-495b-4643-baa6-5da440ee36b9"}]}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:31 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:40 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:48 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Unset facts] ************************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:58 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_matches": "1", "storage_test_fstab_id_matches": ["UUID=0ca6749e-495b-4643-baa6-5da440ee36b9 "], "storage_test_fstab_mount_point_matches": [" /opt/test2 "]}, "changed": false} TASK [Verify that the device identifier appears in /etc/fstab] ***************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:16 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:23 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/vdb"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/vdb"], "delta": "0:00:00.002737", "end": "2020-05-27 12:59:30.699937", "rc": 0, "start": "2020-05-27 12:59:30.697200", "stderr": "", "stderr_lines": [], "stdout": "/dev/vdb", "stdout_lines": ["/dev/vdb"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify fs type] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:21 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify fs label] ********************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:27 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/vdb"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/vdb"], "delta": "0:00:00.002536", "end": "2020-05-27 12:59:31.117003", "rc": 0, "start": "2020-05-27 12:59:31.114467", "stderr": "", "stderr_lines": [], "stdout": "/dev/vdb", "stdout_lines": ["/dev/vdb"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [See whether the device node is present] ********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:21 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "stat": {"atime": 1590584352.3863273, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "ctime": 1590584352.3863273, "dev": 6, "device_type": 64528, "executable": false, "exists": true, "gid": 6, "gr_name": "disk", "inode": 14692, "isblk": true, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mimetype": "inode/blockdevice", "mode": "0660", "mtime": 1590584352.3863273, "nlink": 1, "path": "/dev/vdb", "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/tmpr6sk038f/tests/test-verify-volume-device.yml:27 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:35 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:41 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "disk"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:45 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:50 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:51 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_blkinfo": null, "storage_test_fstab": null, "storage_test_volume": null}, "changed": false} TASK [Repeat the previous invocation to verify idempotence] ******************** task path: /tmp/tmpr6sk038f/tests/tests_change_disk_mount.yml:42 TASK [storage : Set version specific variables] ******************************** task path: /tmp/tmpr6sk038f/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/tmp/tmpr6sk038f/vars/Fedora.yml) => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-dm", "libblockdev-lvm", "libblockdev-part", "libblockdev-mdraid"]}, "ansible_included_var_files": ["/tmp/tmpr6sk038f/vars/Fedora.yml"], "ansible_loop_var": "item", "changed": false, "item": "/tmp/tmpr6sk038f/vars/Fedora.yml"} TASK [storage : define an empty list of pools to be used in testing] *********** task path: /tmp/tmpr6sk038f/tasks/main.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [storage : define an empty list of volumes to be used in testing] ********* task path: /tmp/tmpr6sk038f/tasks/main.yml:13 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : include the appropriate provider tasks] ************************ task path: /tmp/tmpr6sk038f/tasks/main.yml:17 included: /tmp/tmpr6sk038f/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [storage : get a list of rpm packages installed on host machine] ********** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [storage : make sure blivet is available] ********************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : initialize internal facts] ************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.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 [storage : Apply defaults to pools and volumes [1/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:28 TASK [storage : Apply defaults to pools and volumes [2/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:36 TASK [storage : Apply defaults to pools and volumes [3/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:44 TASK [storage : Apply defaults to pools and volumes [4/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:52 TASK [storage : Apply defaults to pools and volumes [5/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:61 TASK [storage : Apply defaults to pools and volumes [6/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:72 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'name': 'test1', 'type': 'disk', 'mount_point': '/opt/test2', 'disks': ['vdb']}) => {"ansible_facts": {"_storage_volumes": [{"disks": ["vdb"], "fs_create_options": "", "fs_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", "size": 0, "state": "present", "type": "disk"}]}, "ansible_loop_var": "volume", "changed": false, "volume": {"disks": ["vdb"], "mount_point": "/opt/test2", "name": "test1", "type": "disk"}} TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools": [] } TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_volumes": [ { "disks": [ "vdb" ], "fs_create_options": "", "fs_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", "size": 0, "state": "present", "type": "disk" } ] } TASK [storage : get required packages] ***************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": [], "mounts": [], "packages": ["xfsprogs"], "pools": [], "volumes": []} TASK [storage : make sure required packages are installed] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : manage the pools and volumes to match the specified state] ***** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:104 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": ["/dev/sr0", "/dev/vda1", "/dev/vdb", "/dev/vdc"], "mounts": [{"dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test2", "src": "UUID=0ca6749e-495b-4643-baa6-5da440ee36b9", "state": "mounted"}], "packages": ["e2fsprogs", "xfsprogs"], "pools": [], "volumes": [{"_device": "/dev/vdb", "_mount_id": "UUID=0ca6749e-495b-4643-baa6-5da440ee36b9", "disks": ["vdb"], "fs_create_options": "", "fs_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", "size": 0, "state": "present", "type": "disk"}]} TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:113 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "blivet_output": { "actions": [], "changed": false, "failed": false, "leaves": [ "/dev/sr0", "/dev/vda1", "/dev/vdb", "/dev/vdc" ], "mounts": [ { "dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test2", "src": "UUID=0ca6749e-495b-4643-baa6-5da440ee36b9", "state": "mounted" } ], "packages": [ "e2fsprogs", "xfsprogs" ], "pools": [], "volumes": [ { "_device": "/dev/vdb", "_mount_id": "UUID=0ca6749e-495b-4643-baa6-5da440ee36b9", "disks": [ "vdb" ], "fs_create_options": "", "fs_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", "size": 0, "state": "present", "type": "disk" } ] } } TASK [storage : set the list of pools for test verification] ******************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:116 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [storage : set the list of volumes for test verification] ***************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:120 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": [{"_device": "/dev/vdb", "_mount_id": "UUID=0ca6749e-495b-4643-baa6-5da440ee36b9", "disks": ["vdb"], "fs_create_options": "", "fs_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", "size": 0, "state": "present", "type": "disk"}]}, "changed": false} TASK [storage : manage mounts to match the specified state] ******************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:132 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'src': 'UUID=0ca6749e-495b-4643-baa6-5da440ee36b9', 'path': '/opt/test2', 'fstype': 'xfs', 'opts': 'defaults', 'dump': 0, 'passno': 0, 'state': 'mounted'}) => {"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=0ca6749e-495b-4643-baa6-5da440ee36b9", "state": "mounted"}, "name": "/opt/test2", "opts": "defaults", "passno": "0", "src": "UUID=0ca6749e-495b-4643-baa6-5da440ee36b9"} TASK [storage : tell systemd to refresh its view of /etc/fstab] **************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:143 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [storage : Update facts] ************************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:153 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmpr6sk038f/tests/tests_change_disk_mount.yml:52 included: /tmp/tmpr6sk038f/tests/verify-role-results.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [Print out pool information] ********************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:1 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {} TASK [Print out volume information] ******************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_volumes_list": [ { "_device": "/dev/vdb", "_mount_id": "UUID=0ca6749e-495b-4643-baa6-5da440ee36b9", "disks": [ "vdb" ], "fs_create_options": "", "fs_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", "size": 0, "state": "present", "type": "disk" } ] } TASK [Collect info about the volumes.] ***************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:14 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "info": {"/dev/sr0": {"fstype": "iso9660", "label": "cidata", "name": "/dev/sr0", "type": "rom", "uuid": "2020-05-27-12-56-19-00"}, "/dev/vda": {"fstype": "", "label": "", "name": "/dev/vda", "type": "disk", "uuid": ""}, "/dev/vda1": {"fstype": "ext4", "label": "", "name": "/dev/vda1", "type": "partition", "uuid": "ea711a29-e460-4879-9d70-9da99ae021f9"}, "/dev/vdb": {"fstype": "xfs", "label": "", "name": "/dev/vdb", "type": "disk", "uuid": "0ca6749e-495b-4643-baa6-5da440ee36b9"}, "/dev/vdc": {"fstype": "", "label": "", "name": "/dev/vdc", "type": "disk", "uuid": ""}}} TASK [Read the /etc/fstab file for volume existence] *************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:19 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/fstab"], "delta": "0:00:00.002657", "end": "2020-05-27 12:59:42.997543", "rc": 0, "start": "2020-05-27 12:59:42.994886", "stderr": "", "stderr_lines": [], "stdout": "\n#\n# /etc/fstab\n# Created by anaconda on Fri Apr 26 02:02:19 2019\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=ea711a29-e460-4879-9d70-9da99ae021f9 / ext4 defaults 1 1\nUUID=0ca6749e-495b-4643-baa6-5da440ee36b9 /opt/test2 xfs defaults 0 0", "stdout_lines": ["", "#", "# /etc/fstab", "# Created by anaconda on Fri Apr 26 02:02:19 2019", "#", "# 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=ea711a29-e460-4879-9d70-9da99ae021f9 / ext4 defaults 1 1", "UUID=0ca6749e-495b-4643-baa6-5da440ee36b9 /opt/test2 xfs defaults 0 0"]} TASK [Verify the volumes listed in storage_pools were correctly managed] ******* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:27 TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:34 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_pool": null}, "changed": false} TASK [Verify the volumes with no pool were correctly managed] ****************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:41 [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/tmpr6sk038f/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": true, "_storage_volume_tests": ["mount", "fstab", "fs", "device"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:12 included: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/vdb"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/vdb"], "delta": "0:00:01.004284", "end": "2020-05-27 12:59:44.539248", "rc": 0, "start": "2020-05-27 12:59:43.534964", "stderr": "", "stderr_lines": [], "stdout": "/dev/vdb", "stdout_lines": ["/dev/vdb"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Set some facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:20 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [{"block_available": 2608012, "block_size": 4096, "block_total": 2618880, "block_used": 10868, "device": "/dev/vdb", "fstype": "xfs", "inode_available": 5242877, "inode_total": 5242880, "inode_used": 3, "mount": "/opt/test2", "options": "rw,seclabel,relatime,attr2,inode64,noquota", "size_available": 10682417152, "size_total": 10726932480, "uuid": "0ca6749e-495b-4643-baa6-5da440ee36b9"}], "storage_test_mount_expected_match_count": "1", "storage_test_mount_point_matches": [{"block_available": 2608012, "block_size": 4096, "block_total": 2618880, "block_used": 10868, "device": "/dev/vdb", "fstype": "xfs", "inode_available": 5242877, "inode_total": 5242880, "inode_used": 3, "mount": "/opt/test2", "options": "rw,seclabel,relatime,attr2,inode64,noquota", "size_available": 10682417152, "size_total": 10726932480, "uuid": "0ca6749e-495b-4643-baa6-5da440ee36b9"}]}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:31 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:40 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:48 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Unset facts] ************************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:58 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_matches": "1", "storage_test_fstab_id_matches": ["UUID=0ca6749e-495b-4643-baa6-5da440ee36b9 "], "storage_test_fstab_mount_point_matches": [" /opt/test2 "]}, "changed": false} TASK [Verify that the device identifier appears in /etc/fstab] ***************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:16 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:23 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/vdb"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/vdb"], "delta": "0:00:00.002855", "end": "2020-05-27 12:59:45.112703", "rc": 0, "start": "2020-05-27 12:59:45.109848", "stderr": "", "stderr_lines": [], "stdout": "/dev/vdb", "stdout_lines": ["/dev/vdb"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify fs type] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:21 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify fs label] ********************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:27 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/vdb"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/vdb"], "delta": "0:00:00.003182", "end": "2020-05-27 12:59:45.519767", "rc": 0, "start": "2020-05-27 12:59:45.516585", "stderr": "", "stderr_lines": [], "stdout": "/dev/vdb", "stdout_lines": ["/dev/vdb"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [See whether the device node is present] ********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:21 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "stat": {"atime": 1590584352.3863273, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "ctime": 1590584352.3863273, "dev": 6, "device_type": 64528, "executable": false, "exists": true, "gid": 6, "gr_name": "disk", "inode": 14692, "isblk": true, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mimetype": "inode/blockdevice", "mode": "0660", "mtime": 1590584352.3863273, "nlink": 1, "path": "/dev/vdb", "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/tmpr6sk038f/tests/test-verify-volume-device.yml:27 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:35 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:41 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "disk"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:45 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:50 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:51 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_blkinfo": null, "storage_test_fstab": null, "storage_test_volume": null}, "changed": false} TASK [Clean up] **************************************************************** task path: /tmp/tmpr6sk038f/tests/tests_change_disk_mount.yml:54 TASK [storage : Set version specific variables] ******************************** task path: /tmp/tmpr6sk038f/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/tmp/tmpr6sk038f/vars/Fedora.yml) => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-dm", "libblockdev-lvm", "libblockdev-part", "libblockdev-mdraid"]}, "ansible_included_var_files": ["/tmp/tmpr6sk038f/vars/Fedora.yml"], "ansible_loop_var": "item", "changed": false, "item": "/tmp/tmpr6sk038f/vars/Fedora.yml"} TASK [storage : define an empty list of pools to be used in testing] *********** task path: /tmp/tmpr6sk038f/tasks/main.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [storage : define an empty list of volumes to be used in testing] ********* task path: /tmp/tmpr6sk038f/tasks/main.yml:13 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : include the appropriate provider tasks] ************************ task path: /tmp/tmpr6sk038f/tasks/main.yml:17 included: /tmp/tmpr6sk038f/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [storage : get a list of rpm packages installed on host machine] ********** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [storage : make sure blivet is available] ********************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : initialize internal facts] ************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.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 [storage : Apply defaults to pools and volumes [1/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:28 TASK [storage : Apply defaults to pools and volumes [2/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:36 TASK [storage : Apply defaults to pools and volumes [3/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:44 TASK [storage : Apply defaults to pools and volumes [4/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:52 TASK [storage : Apply defaults to pools and volumes [5/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:61 TASK [storage : Apply defaults to pools and volumes [6/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:72 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'name': 'test1', 'type': 'disk', 'mount_point': '/opt/test2', 'disks': ['vdb'], 'state': 'absent'}) => {"ansible_facts": {"_storage_volumes": [{"disks": ["vdb"], "fs_create_options": "", "fs_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", "size": 0, "state": "absent", "type": "disk"}]}, "ansible_loop_var": "volume", "changed": false, "volume": {"disks": ["vdb"], "mount_point": "/opt/test2", "name": "test1", "state": "absent", "type": "disk"}} TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools": [] } TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_volumes": [ { "disks": [ "vdb" ], "fs_create_options": "", "fs_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", "size": 0, "state": "absent", "type": "disk" } ] } TASK [storage : get required packages] ***************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": []} TASK [storage : make sure required packages are installed] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : manage the pools and volumes to match the specified state] ***** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:104 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [{"action": "destroy format", "device": "/dev/vdb", "fs_type": "xfs"}], "changed": true, "leaves": ["/dev/sr0", "/dev/vda1", "/dev/vdb", "/dev/vdc"], "mounts": [{"path": "/opt/test2", "state": "absent"}], "packages": ["e2fsprogs"], "pools": [], "volumes": [{"_device": "/dev/vdb", "_mount_id": "UUID=0ca6749e-495b-4643-baa6-5da440ee36b9", "disks": ["vdb"], "fs_create_options": "", "fs_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", "size": 0, "state": "absent", "type": "disk"}]} TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:113 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "blivet_output": { "actions": [ { "action": "destroy format", "device": "/dev/vdb", "fs_type": "xfs" } ], "changed": true, "failed": false, "leaves": [ "/dev/sr0", "/dev/vda1", "/dev/vdb", "/dev/vdc" ], "mounts": [ { "path": "/opt/test2", "state": "absent" } ], "packages": [ "e2fsprogs" ], "pools": [], "volumes": [ { "_device": "/dev/vdb", "_mount_id": "UUID=0ca6749e-495b-4643-baa6-5da440ee36b9", "disks": [ "vdb" ], "fs_create_options": "", "fs_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", "size": 0, "state": "absent", "type": "disk" } ] } } TASK [storage : set the list of pools for test verification] ******************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:116 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [storage : set the list of volumes for test verification] ***************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:120 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": [{"_device": "/dev/vdb", "_mount_id": "UUID=0ca6749e-495b-4643-baa6-5da440ee36b9", "disks": ["vdb"], "fs_create_options": "", "fs_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", "size": 0, "state": "absent", "type": "disk"}]}, "changed": false} TASK [storage : manage mounts to match the specified state] ******************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:132 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'path': '/opt/test2', 'state': 'absent'}) => {"ansible_loop_var": "mount_info", "changed": true, "dump": "0", "fstab": "/etc/fstab", "mount_info": {"path": "/opt/test2", "state": "absent"}, "name": "/opt/test2", "opts": "defaults", "passno": "0"} TASK [storage : tell systemd to refresh its view of /etc/fstab] **************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:143 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [storage : Update facts] ************************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:153 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmpr6sk038f/tests/tests_change_disk_mount.yml:65 included: /tmp/tmpr6sk038f/tests/verify-role-results.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [Print out pool information] ********************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:1 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {} TASK [Print out volume information] ******************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_volumes_list": [ { "_device": "/dev/vdb", "_mount_id": "UUID=0ca6749e-495b-4643-baa6-5da440ee36b9", "disks": [ "vdb" ], "fs_create_options": "", "fs_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", "size": 0, "state": "absent", "type": "disk" } ] } TASK [Collect info about the volumes.] ***************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:14 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "info": {"/dev/sr0": {"fstype": "iso9660", "label": "cidata", "name": "/dev/sr0", "type": "rom", "uuid": "2020-05-27-12-56-19-00"}, "/dev/vda": {"fstype": "", "label": "", "name": "/dev/vda", "type": "disk", "uuid": ""}, "/dev/vda1": {"fstype": "ext4", "label": "", "name": "/dev/vda1", "type": "partition", "uuid": "ea711a29-e460-4879-9d70-9da99ae021f9"}, "/dev/vdb": {"fstype": "", "label": "", "name": "/dev/vdb", "type": "disk", "uuid": ""}, "/dev/vdc": {"fstype": "", "label": "", "name": "/dev/vdc", "type": "disk", "uuid": ""}}} TASK [Read the /etc/fstab file for volume existence] *************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:19 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/fstab"], "delta": "0:00:00.003162", "end": "2020-05-27 12:59:57.919494", "rc": 0, "start": "2020-05-27 12:59:57.916332", "stderr": "", "stderr_lines": [], "stdout": "\n#\n# /etc/fstab\n# Created by anaconda on Fri Apr 26 02:02:19 2019\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=ea711a29-e460-4879-9d70-9da99ae021f9 / ext4 defaults 1 1", "stdout_lines": ["", "#", "# /etc/fstab", "# Created by anaconda on Fri Apr 26 02:02:19 2019", "#", "# 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=ea711a29-e460-4879-9d70-9da99ae021f9 / ext4 defaults 1 1"]} TASK [Verify the volumes listed in storage_pools were correctly managed] ******* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:27 TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:34 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_pool": null}, "changed": false} TASK [Verify the volumes with no pool were correctly managed] ****************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:41 [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/tmpr6sk038f/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": false, "_storage_volume_tests": ["mount", "fstab", "fs", "device"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:12 included: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/vdb"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/vdb"], "delta": "0:00:00.003145", "end": "2020-05-27 12:59:58.409899", "rc": 0, "start": "2020-05-27 12:59:58.406754", "stderr": "", "stderr_lines": [], "stdout": "/dev/vdb", "stdout_lines": ["/dev/vdb"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Set some facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:20 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [], "storage_test_mount_expected_match_count": "0", "storage_test_mount_point_matches": []}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:31 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:40 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:48 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Unset facts] ************************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:58 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_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/tmpr6sk038f/tests/test-verify-volume-fstab.yml:9 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:16 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:23 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/vdb"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/vdb"], "delta": "0:00:00.003049", "end": "2020-05-27 12:59:58.967877", "rc": 0, "start": "2020-05-27 12:59:58.964828", "stderr": "", "stderr_lines": [], "stdout": "/dev/vdb", "stdout_lines": ["/dev/vdb"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify fs type] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:21 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify fs label] ********************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:27 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/vdb"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/vdb"], "delta": "0:00:00.002503", "end": "2020-05-27 12:59:59.380260", "rc": 0, "start": "2020-05-27 12:59:59.377757", "stderr": "", "stderr_lines": [], "stdout": "/dev/vdb", "stdout_lines": ["/dev/vdb"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [See whether the device node is present] ********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:21 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "stat": {"atime": 1590584395.3203273, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "ctime": 1590584395.3203273, "dev": 6, "device_type": 64528, "executable": false, "exists": true, "gid": 6, "gr_name": "disk", "inode": 14692, "isblk": true, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mimetype": "inode/blockdevice", "mode": "0660", "mtime": 1590584395.3203273, "nlink": 1, "path": "/dev/vdb", "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/tmpr6sk038f/tests/test-verify-volume-device.yml:27 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:35 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:41 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "disk"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:45 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:50 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Clean up facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:51 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_blkinfo": null, "storage_test_fstab": null, "storage_test_volume": null}, "changed": false} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 : ok=226 changed=18 unreachable=0 failed=0 skipped=66 rescued=0 ignored=0 + cd /tmp/tmpr6sk038f/tests; TEST_SUBJECTS=/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_storage-91-a6b7623-fedora-30-97_lk9m2/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmpr6sk038f/_setup.yml /tmp/tmpr6sk038f/tests/tests_change_fs.yml ansible-playbook 2.9.9 config file = /etc/ansible/ansible.cfg configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.8/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 3.8.2 (default, Feb 28 2020, 00:00:00) [GCC 10.0.1 20200216 (Red Hat 10.0.1-0.8)] Using /etc/ansible/ansible.cfg as config file PLAYBOOK: _setup.yml *********************************************************** 1 plays in /tmp/tmpr6sk038f/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmpr6sk038f/_setup.yml:5 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "groups": { "all": [ "/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2" ], "localhost": [ "/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2" ], "subjects": [ "/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmpr6sk038f/_setup.yml:7 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/Fedora-Cloud-Base-30-1.2.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/tmpr6sk038f/tests/tests_change_fs.yml PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpr6sk038f/tests/tests_change_fs.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] META: ran handlers TASK [include_role : storage] ************************************************** task path: /tmp/tmpr6sk038f/tests/tests_change_fs.yml:11 TASK [storage : Set version specific variables] ******************************** task path: /tmp/tmpr6sk038f/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/tmp/tmpr6sk038f/vars/Fedora.yml) => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-dm", "libblockdev-lvm", "libblockdev-part", "libblockdev-mdraid"]}, "ansible_included_var_files": ["/tmp/tmpr6sk038f/vars/Fedora.yml"], "ansible_loop_var": "item", "changed": false, "item": "/tmp/tmpr6sk038f/vars/Fedora.yml"} TASK [storage : define an empty list of pools to be used in testing] *********** task path: /tmp/tmpr6sk038f/tasks/main.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [storage : define an empty list of volumes to be used in testing] ********* task path: /tmp/tmpr6sk038f/tasks/main.yml:13 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : include the appropriate provider tasks] ************************ task path: /tmp/tmpr6sk038f/tasks/main.yml:17 included: /tmp/tmpr6sk038f/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [storage : get a list of rpm packages installed on host machine] ********** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [storage : make sure blivet is available] ********************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:7 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: libblockdev-mpath-2.23-1.fc30.x86_64", "Installed: libblockdev-nvdimm-2.23-1.fc30.x86_64", "Installed: userspace-rcu-0.10.1-5.fc30.x86_64", "Installed: libblockdev-part-2.23-1.fc30.x86_64", "Installed: dmraid-1.0.0.rc16-41.fc30.x86_64", "Installed: dmraid-events-1.0.0.rc16-41.fc30.x86_64", "Installed: lzo-2.08-15.fc30.x86_64", "Installed: libblockdev-swap-2.23-1.fc30.x86_64", "Installed: lvm2-2.02.183-3.fc30.x86_64", "Installed: libblockdev-utils-2.23-1.fc30.x86_64", "Installed: lvm2-libs-2.02.183-3.fc30.x86_64", "Installed: python3-blivet-1:3.1.4-1.fc30.noarch", "Installed: python3-blockdev-2.23-1.fc30.x86_64", "Installed: daxctl-libs-68-1.fc30.x86_64", "Installed: mdadm-4.1-1.fc30.x86_64", "Installed: blivet-data-1:3.1.4-1.fc30.noarch", "Installed: sgpio-1.2.0.10-23.fc30.x86_64", "Installed: nspr-4.25.0-1.fc30.x86_64", "Installed: python3-bytesize-2.2-1.fc30.x86_64", "Installed: device-mapper-event-1.02.154-3.fc30.x86_64", "Installed: lsof-4.91-3.fc30.x86_64", "Installed: nss-3.51.1-1.fc30.x86_64", "Installed: device-mapper-event-libs-1.02.154-3.fc30.x86_64", "Installed: device-mapper-multipath-0.7.9-6.git2df6110.fc30.x86_64", "Installed: gdisk-1.0.5-1.fc30.x86_64", "Installed: device-mapper-multipath-libs-0.7.9-6.git2df6110.fc30.x86_64", "Installed: nss-softokn-3.51.1-1.fc30.x86_64", "Installed: python3-gobject-base-3.32.2-1.fc30.x86_64", "Installed: device-mapper-persistent-data-0.7.6-4.fc30.x86_64", "Installed: gobject-introspection-1.60.2-1.fc30.x86_64", "Installed: nss-softokn-freebl-3.51.1-1.fc30.x86_64", "Installed: libbytesize-2.2-1.fc30.x86_64", "Installed: nss-sysinit-3.51.1-1.fc30.x86_64", "Installed: nss-util-3.51.1-1.fc30.x86_64", "Installed: volume_key-libs-0.3.12-3.fc30.x86_64", "Installed: bcache-tools-1.0.8-15.fc30.x86_64", "Installed: ndctl-68-1.fc30.x86_64", "Installed: ndctl-libs-68-1.fc30.x86_64", "Installed: libblockdev-2.23-1.fc30.x86_64", "Installed: libblockdev-btrfs-2.23-1.fc30.x86_64", "Installed: libblockdev-crypto-2.23-1.fc30.x86_64", "Installed: python3-pyudev-0.21.0-10.fc30.noarch", "Installed: btrfs-progs-5.6-1.fc30.x86_64", "Installed: libblockdev-dm-2.23-1.fc30.x86_64", "Installed: libblockdev-fs-2.23-1.fc30.x86_64", "Installed: libblockdev-kbd-2.23-1.fc30.x86_64", "Installed: libblockdev-loop-2.23-1.fc30.x86_64", "Installed: libblockdev-lvm-2.23-1.fc30.x86_64", "Installed: python3-pyparted-1:3.11.2-1.fc30.x86_64", "Installed: libaio-0.3.111-4.fc30.x86_64", "Installed: libblockdev-mdraid-2.23-1.fc30.x86_64"]} TASK [storage : initialize internal facts] ************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.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 [storage : Apply defaults to pools and volumes [1/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:28 TASK [storage : Apply defaults to pools and volumes [2/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:36 TASK [storage : Apply defaults to pools and volumes [3/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:44 TASK [storage : Apply defaults to pools and volumes [4/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:52 TASK [storage : Apply defaults to pools and volumes [5/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:61 TASK [storage : Apply defaults to pools and volumes [6/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:72 TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools": [] } TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_volumes": [] } TASK [storage : get required packages] ***************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": []} TASK [storage : make sure required packages are installed] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : manage the pools and volumes to match the specified state] ***** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:104 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": []} TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:113 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "blivet_output": { "actions": [], "changed": false, "failed": false, "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": [] } } TASK [storage : set the list of pools for test verification] ******************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:116 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [storage : set the list of volumes for test verification] ***************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:120 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : manage mounts to match the specified state] ******************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:132 TASK [storage : tell systemd to refresh its view of /etc/fstab] **************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:143 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [storage : Update facts] ************************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:153 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmpr6sk038f/tests/tests_change_fs.yml:14 included: /tmp/tmpr6sk038f/tests/get_unused_disk.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [Find unused disks in the system] ***************************************** task path: /tmp/tmpr6sk038f/tests/get_unused_disk.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "disks": ["vdb"]} TASK [set_fact] **************************************************************** task path: /tmp/tmpr6sk038f/tests/get_unused_disk.yml:8 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"unused_disks": ["vdb"]}, "changed": false} TASK [Exit playbook when there's not enough unused disks in the system] ******** task path: /tmp/tmpr6sk038f/tests/get_unused_disk.yml:12 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Print unused disks] ****************************************************** task path: /tmp/tmpr6sk038f/tests/get_unused_disk.yml:17 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "unused_disks": [ "vdb" ] } TASK [Create a LVM logical volume with default fs_type] ************************ task path: /tmp/tmpr6sk038f/tests/tests_change_fs.yml:19 TASK [storage : Set version specific variables] ******************************** task path: /tmp/tmpr6sk038f/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/tmp/tmpr6sk038f/vars/Fedora.yml) => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-dm", "libblockdev-lvm", "libblockdev-part", "libblockdev-mdraid"]}, "ansible_included_var_files": ["/tmp/tmpr6sk038f/vars/Fedora.yml"], "ansible_loop_var": "item", "changed": false, "item": "/tmp/tmpr6sk038f/vars/Fedora.yml"} TASK [storage : define an empty list of pools to be used in testing] *********** task path: /tmp/tmpr6sk038f/tasks/main.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [storage : define an empty list of volumes to be used in testing] ********* task path: /tmp/tmpr6sk038f/tasks/main.yml:13 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : include the appropriate provider tasks] ************************ task path: /tmp/tmpr6sk038f/tasks/main.yml:17 included: /tmp/tmpr6sk038f/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [storage : get a list of rpm packages installed on host machine] ********** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [storage : make sure blivet is available] ********************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : initialize internal facts] ************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.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 [storage : Apply defaults to pools and volumes [1/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:28 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'name': 'foo', 'disks': ['vdb'], 'volumes': [{'name': 'test1', 'size': '5g', 'mount_point': '/opt/test1'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vdb"], "name": "foo", "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "5g"}]}]}, "ansible_loop_var": "pool", "changed": false, "pool": {"disks": ["vdb"], "name": "foo", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "5g"}]}} TASK [storage : Apply defaults to pools and volumes [2/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:36 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=[{'state': 'present', 'type': 'lvm', 'name': 'foo', 'disks': ['vdb'], 'volumes': [{'name': 'test1', 'size': '5g', 'mount_point': '/opt/test1'}]}, {'name': 'test1', 'size': '5g', 'mount_point': '/opt/test1'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "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": ["vdb"], "name": "foo", "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "5g"}]}, {"mount_point": "/opt/test1", "name": "test1", "size": "5g"}]} TASK [storage : Apply defaults to pools and volumes [3/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:44 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=[{'name': 'test1', 'size': '5g', 'mount_point': '/opt/test1'}, {'state': 'present', 'type': 'lvm', 'size': 0, 'fs_type': 'xfs', 'fs_label': '', 'fs_create_options': '', 'fs_overwrite_existing': True, 'mount_point': '', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid'}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "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"}, {"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "size": 0, "state": "present", "type": "lvm"}]} TASK [storage : Apply defaults to pools and volumes [4/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:52 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'name': 'foo', 'disks': ['vdb'], 'volumes': [{'name': 'test1', 'size': '5g', 'mount_point': '/opt/test1'}]}) => {"ansible_facts": {"_storage_vols_no_defaults_by_pool": {"foo": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "5g", "state": "present", "type": "lvm"}]}}, "ansible_loop_var": "item", "changed": false, "item": {"disks": ["vdb"], "name": "foo", "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "5g"}]}} TASK [storage : Apply defaults to pools and volumes [5/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:61 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'name': 'foo', 'disks': ['vdb'], 'volumes': [{'name': 'test1', 'size': '5g', 'mount_point': '/opt/test1'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vdb"], "name": "foo", "state": "present", "type": "lvm", "volumes": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "5g", "state": "present", "type": "lvm"}]}]}, "ansible_index_var": "idx", "ansible_loop_var": "pool", "changed": false, "idx": 0, "pool": {"disks": ["vdb"], "name": "foo", "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "5g"}]}} TASK [storage : Apply defaults to pools and volumes [6/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:72 TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools": [ { "disks": [ "vdb" ], "name": "foo", "state": "present", "type": "lvm", "volumes": [ { "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "5g", "state": "present", "type": "lvm" } ] } ] } TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_volumes": [] } TASK [storage : get required packages] ***************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": [], "mounts": [], "packages": ["lvm2", "xfsprogs"], "pools": [], "volumes": []} TASK [storage : make sure required packages are installed] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : manage the pools and volumes to match the specified state] ***** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:104 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [{"action": "create format", "device": "/dev/vdb", "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, "leaves": ["/dev/sr0", "/dev/vda1", "/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": ["vdb"], "name": "foo", "state": "present", "type": "lvm", "volumes": [{"_device": "/dev/mapper/foo-test1", "_mount_id": "/dev/mapper/foo-test1", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "5g", "state": "present", "type": "lvm"}]}], "volumes": []} TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:113 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "blivet_output": { "actions": [ { "action": "create format", "device": "/dev/vdb", "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, "failed": false, "leaves": [ "/dev/sr0", "/dev/vda1", "/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": [ "vdb" ], "name": "foo", "state": "present", "type": "lvm", "volumes": [ { "_device": "/dev/mapper/foo-test1", "_mount_id": "/dev/mapper/foo-test1", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "5g", "state": "present", "type": "lvm" } ] } ], "volumes": [] } } TASK [storage : set the list of pools for test verification] ******************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:116 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": [{"disks": ["vdb"], "name": "foo", "state": "present", "type": "lvm", "volumes": [{"_device": "/dev/mapper/foo-test1", "_mount_id": "/dev/mapper/foo-test1", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "5g", "state": "present", "type": "lvm"}]}]}, "changed": false} TASK [storage : set the list of volumes for test verification] ***************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:120 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : manage mounts to match the specified state] ******************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:132 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'src': '/dev/mapper/foo-test1', 'path': '/opt/test1', 'fstype': 'xfs', 'opts': 'defaults', 'dump': 0, 'passno': 0, 'state': 'mounted'}) => {"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 [storage : tell systemd to refresh its view of /etc/fstab] **************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:143 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [storage : Update facts] ************************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:153 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmpr6sk038f/tests/tests_change_fs.yml:31 included: /tmp/tmpr6sk038f/tests/verify-role-results.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [Print out pool information] ********************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:1 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools_list": [ { "disks": [ "vdb" ], "name": "foo", "state": "present", "type": "lvm", "volumes": [ { "_device": "/dev/mapper/foo-test1", "_mount_id": "/dev/mapper/foo-test1", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "5g", "state": "present", "type": "lvm" } ] } ] } TASK [Print out volume information] ******************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:6 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {} TASK [Collect info about the volumes.] ***************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:14 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "info": {"/dev/mapper/foo-test1": {"fstype": "xfs", "label": "", "name": "/dev/mapper/foo-test1", "type": "lvm", "uuid": "f1f00c9d-b610-4ac3-adb4-29a41718a2f2"}, "/dev/sr0": {"fstype": "iso9660", "label": "cidata", "name": "/dev/sr0", "type": "rom", "uuid": "2020-05-27-13-00-01-00"}, "/dev/vda": {"fstype": "", "label": "", "name": "/dev/vda", "type": "disk", "uuid": ""}, "/dev/vda1": {"fstype": "ext4", "label": "", "name": "/dev/vda1", "type": "partition", "uuid": "ea711a29-e460-4879-9d70-9da99ae021f9"}, "/dev/vdb": {"fstype": "LVM2_member", "label": "", "name": "/dev/vdb", "type": "disk", "uuid": "0YWraI-QTaM-RTme-WiHM-Nmsj-owLF-yAOzB0"}, "/dev/vdc": {"fstype": "", "label": "", "name": "/dev/vdc", "type": "disk", "uuid": ""}}} TASK [Read the /etc/fstab file for volume existence] *************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:19 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/fstab"], "delta": "0:00:01.003451", "end": "2020-05-27 13:03:24.661307", "rc": 0, "start": "2020-05-27 13:03:23.657856", "stderr": "", "stderr_lines": [], "stdout": "\n#\n# /etc/fstab\n# Created by anaconda on Fri Apr 26 02:02:19 2019\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=ea711a29-e460-4879-9d70-9da99ae021f9 / ext4 defaults 1 1\n/dev/mapper/foo-test1 /opt/test1 xfs defaults 0 0", "stdout_lines": ["", "#", "# /etc/fstab", "# Created by anaconda on Fri Apr 26 02:02:19 2019", "#", "# 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=ea711a29-e460-4879-9d70-9da99ae021f9 / ext4 defaults 1 1", "/dev/mapper/foo-test1 /opt/test1 xfs defaults 0 0"]} TASK [Verify the volumes listed in storage_pools were correctly managed] ******* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:27 included: /tmp/tmpr6sk038f/tests/test-verify-pool.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-pool.yml:5 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pool_tests": ["name", "type", "size", "members"]}, "changed": false} TASK [Verify the volumes in this pool were correctly managed] ****************** task path: /tmp/tmpr6sk038f/tests/test-verify-pool.yml:17 included: /tmp/tmpr6sk038f/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": true, "_storage_volume_tests": ["mount", "fstab", "fs", "device"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:12 included: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/foo-test1"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/foo-test1"], "delta": "0:00:00.003458", "end": "2020-05-27 13:03:25.241595", "rc": 0, "start": "2020-05-27 13:03:25.238137", "stderr": "", "stderr_lines": [], "stdout": "/dev/dm-0", "stdout_lines": ["/dev/dm-0"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Set some facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:20 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [{"block_available": 1298596, "block_size": 4096, "block_total": 1308160, "block_used": 9564, "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,noquota", "size_available": 5319049216, "size_total": 5358223360, "uuid": "f1f00c9d-b610-4ac3-adb4-29a41718a2f2"}], "storage_test_mount_expected_match_count": "1", "storage_test_mount_point_matches": [{"block_available": 1298596, "block_size": 4096, "block_total": 1308160, "block_used": 9564, "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,noquota", "size_available": 5319049216, "size_total": 5358223360, "uuid": "f1f00c9d-b610-4ac3-adb4-29a41718a2f2"}]}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:31 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:40 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:48 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Unset facts] ************************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:58 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_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/tmpr6sk038f/tests/test-verify-volume-fstab.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:16 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:23 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/foo-test1"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/foo-test1"], "delta": "0:00:00.002953", "end": "2020-05-27 13:03:25.990030", "rc": 0, "start": "2020-05-27 13:03:25.987077", "stderr": "", "stderr_lines": [], "stdout": "/dev/dm-0", "stdout_lines": ["/dev/dm-0"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify fs type] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:21 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify fs label] ********************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:27 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/foo-test1"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/foo-test1"], "delta": "0:00:00.002309", "end": "2020-05-27 13:03:26.469271", "rc": 0, "start": "2020-05-27 13:03:26.466962", "stderr": "", "stderr_lines": [], "stdout": "/dev/dm-0", "stdout_lines": ["/dev/dm-0"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [See whether the device node is present] ********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:21 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "stat": {"atime": 1590584600.39582, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "ctime": 1590584600.39582, "dev": 6, "device_type": 64768, "executable": false, "exists": true, "gid": 6, "gr_name": "disk", "inode": 1589, "isblk": true, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mimetype": "inode/symlink", "mode": "0660", "mtime": 1590584600.39582, "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/tmpr6sk038f/tests/test-verify-volume-device.yml:27 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:35 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:41 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "lvm"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:45 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:50 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:34 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_pool": null}, "changed": false} TASK [Verify the volumes with no pool were correctly managed] ****************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:41 TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:51 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_blkinfo": 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/tmpr6sk038f/tests/tests_change_fs.yml:33 TASK [storage : Set version specific variables] ******************************** task path: /tmp/tmpr6sk038f/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/tmp/tmpr6sk038f/vars/Fedora.yml) => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-dm", "libblockdev-lvm", "libblockdev-part", "libblockdev-mdraid"]}, "ansible_included_var_files": ["/tmp/tmpr6sk038f/vars/Fedora.yml"], "ansible_loop_var": "item", "changed": false, "item": "/tmp/tmpr6sk038f/vars/Fedora.yml"} TASK [storage : define an empty list of pools to be used in testing] *********** task path: /tmp/tmpr6sk038f/tasks/main.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [storage : define an empty list of volumes to be used in testing] ********* task path: /tmp/tmpr6sk038f/tasks/main.yml:13 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : include the appropriate provider tasks] ************************ task path: /tmp/tmpr6sk038f/tasks/main.yml:17 included: /tmp/tmpr6sk038f/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [storage : get a list of rpm packages installed on host machine] ********** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [storage : make sure blivet is available] ********************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : initialize internal facts] ************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.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 [storage : Apply defaults to pools and volumes [1/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:28 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'name': 'foo', 'disks': ['vdb'], 'volumes': [{'name': 'test1', 'size': '5g', 'fs_type': 'xfs', 'mount_point': '/opt/test1'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vdb"], "name": "foo", "state": "present", "type": "lvm", "volumes": [{"fs_type": "xfs", "mount_point": "/opt/test1", "name": "test1", "size": "5g"}]}]}, "ansible_loop_var": "pool", "changed": false, "pool": {"disks": ["vdb"], "name": "foo", "volumes": [{"fs_type": "xfs", "mount_point": "/opt/test1", "name": "test1", "size": "5g"}]}} TASK [storage : Apply defaults to pools and volumes [2/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:36 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=[{'state': 'present', 'type': 'lvm', 'name': 'foo', 'disks': ['vdb'], 'volumes': [{'name': 'test1', 'size': '5g', 'fs_type': 'xfs', 'mount_point': '/opt/test1'}]}, {'name': 'test1', 'size': '5g', 'fs_type': 'xfs', 'mount_point': '/opt/test1'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "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": ["vdb"], "name": "foo", "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 [storage : Apply defaults to pools and volumes [3/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:44 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=[{'name': 'test1', 'size': '5g', 'fs_type': 'xfs', 'mount_point': '/opt/test1'}, {'state': 'present', 'type': 'lvm', 'size': 0, 'fs_type': 'xfs', 'fs_label': '', 'fs_create_options': '', 'fs_overwrite_existing': True, 'mount_point': '', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid'}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "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"}, {"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "size": 0, "state": "present", "type": "lvm"}]} TASK [storage : Apply defaults to pools and volumes [4/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:52 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'name': 'foo', 'disks': ['vdb'], 'volumes': [{'name': 'test1', 'size': '5g', 'fs_type': 'xfs', 'mount_point': '/opt/test1'}]}) => {"ansible_facts": {"_storage_vols_no_defaults_by_pool": {"foo": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "5g", "state": "present", "type": "lvm"}]}}, "ansible_loop_var": "item", "changed": false, "item": {"disks": ["vdb"], "name": "foo", "state": "present", "type": "lvm", "volumes": [{"fs_type": "xfs", "mount_point": "/opt/test1", "name": "test1", "size": "5g"}]}} TASK [storage : Apply defaults to pools and volumes [5/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:61 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'name': 'foo', 'disks': ['vdb'], 'volumes': [{'name': 'test1', 'size': '5g', 'fs_type': 'xfs', 'mount_point': '/opt/test1'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vdb"], "name": "foo", "state": "present", "type": "lvm", "volumes": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "5g", "state": "present", "type": "lvm"}]}]}, "ansible_index_var": "idx", "ansible_loop_var": "pool", "changed": false, "idx": 0, "pool": {"disks": ["vdb"], "name": "foo", "state": "present", "type": "lvm", "volumes": [{"fs_type": "xfs", "mount_point": "/opt/test1", "name": "test1", "size": "5g"}]}} TASK [storage : Apply defaults to pools and volumes [6/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:72 TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools": [ { "disks": [ "vdb" ], "name": "foo", "state": "present", "type": "lvm", "volumes": [ { "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "5g", "state": "present", "type": "lvm" } ] } ] } TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_volumes": [] } TASK [storage : get required packages] ***************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": [], "mounts": [], "packages": ["lvm2", "xfsprogs"], "pools": [], "volumes": []} TASK [storage : make sure required packages are installed] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : manage the pools and volumes to match the specified state] ***** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:104 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": ["/dev/sr0", "/dev/vda1", "/dev/mapper/foo-test1", "/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": ["vdb"], "name": "foo", "state": "present", "type": "lvm", "volumes": [{"_device": "/dev/mapper/foo-test1", "_mount_id": "/dev/mapper/foo-test1", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "5g", "state": "present", "type": "lvm"}]}], "volumes": []} TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:113 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "blivet_output": { "actions": [], "changed": false, "failed": false, "leaves": [ "/dev/sr0", "/dev/vda1", "/dev/mapper/foo-test1", "/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": [ "vdb" ], "name": "foo", "state": "present", "type": "lvm", "volumes": [ { "_device": "/dev/mapper/foo-test1", "_mount_id": "/dev/mapper/foo-test1", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "5g", "state": "present", "type": "lvm" } ] } ], "volumes": [] } } TASK [storage : set the list of pools for test verification] ******************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:116 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": [{"disks": ["vdb"], "name": "foo", "state": "present", "type": "lvm", "volumes": [{"_device": "/dev/mapper/foo-test1", "_mount_id": "/dev/mapper/foo-test1", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "5g", "state": "present", "type": "lvm"}]}]}, "changed": false} TASK [storage : set the list of volumes for test verification] ***************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:120 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : manage mounts to match the specified state] ******************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:132 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'src': '/dev/mapper/foo-test1', 'path': '/opt/test1', 'fstype': 'xfs', 'opts': 'defaults', 'dump': 0, 'passno': 0, 'state': 'mounted'}) => {"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 [storage : tell systemd to refresh its view of /etc/fstab] **************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:143 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [storage : Update facts] ************************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:153 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmpr6sk038f/tests/tests_change_fs.yml:46 included: /tmp/tmpr6sk038f/tests/verify-role-results.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [Print out pool information] ********************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:1 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools_list": [ { "disks": [ "vdb" ], "name": "foo", "state": "present", "type": "lvm", "volumes": [ { "_device": "/dev/mapper/foo-test1", "_mount_id": "/dev/mapper/foo-test1", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "5g", "state": "present", "type": "lvm" } ] } ] } TASK [Print out volume information] ******************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:6 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {} TASK [Collect info about the volumes.] ***************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:14 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "info": {"/dev/mapper/foo-test1": {"fstype": "xfs", "label": "", "name": "/dev/mapper/foo-test1", "type": "lvm", "uuid": "f1f00c9d-b610-4ac3-adb4-29a41718a2f2"}, "/dev/sr0": {"fstype": "iso9660", "label": "cidata", "name": "/dev/sr0", "type": "rom", "uuid": "2020-05-27-13-00-01-00"}, "/dev/vda": {"fstype": "", "label": "", "name": "/dev/vda", "type": "disk", "uuid": ""}, "/dev/vda1": {"fstype": "ext4", "label": "", "name": "/dev/vda1", "type": "partition", "uuid": "ea711a29-e460-4879-9d70-9da99ae021f9"}, "/dev/vdb": {"fstype": "LVM2_member", "label": "", "name": "/dev/vdb", "type": "disk", "uuid": "0YWraI-QTaM-RTme-WiHM-Nmsj-owLF-yAOzB0"}, "/dev/vdc": {"fstype": "", "label": "", "name": "/dev/vdc", "type": "disk", "uuid": ""}}} TASK [Read the /etc/fstab file for volume existence] *************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:19 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/fstab"], "delta": "0:00:00.003064", "end": "2020-05-27 13:03:40.678068", "rc": 0, "start": "2020-05-27 13:03:40.675004", "stderr": "", "stderr_lines": [], "stdout": "\n#\n# /etc/fstab\n# Created by anaconda on Fri Apr 26 02:02:19 2019\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=ea711a29-e460-4879-9d70-9da99ae021f9 / ext4 defaults 1 1\n/dev/mapper/foo-test1 /opt/test1 xfs defaults 0 0", "stdout_lines": ["", "#", "# /etc/fstab", "# Created by anaconda on Fri Apr 26 02:02:19 2019", "#", "# 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=ea711a29-e460-4879-9d70-9da99ae021f9 / ext4 defaults 1 1", "/dev/mapper/foo-test1 /opt/test1 xfs defaults 0 0"]} TASK [Verify the volumes listed in storage_pools were correctly managed] ******* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:27 [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/tmpr6sk038f/tests/test-verify-pool.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-pool.yml:5 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pool_tests": ["name", "type", "size", "members"]}, "changed": false} TASK [Verify the volumes in this pool were correctly managed] ****************** task path: /tmp/tmpr6sk038f/tests/test-verify-pool.yml:17 [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/tmpr6sk038f/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": true, "_storage_volume_tests": ["mount", "fstab", "fs", "device"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:12 included: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/foo-test1"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/foo-test1"], "delta": "0:00:00.002971", "end": "2020-05-27 13:03:41.324291", "rc": 0, "start": "2020-05-27 13:03:41.321320", "stderr": "", "stderr_lines": [], "stdout": "/dev/dm-0", "stdout_lines": ["/dev/dm-0"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Set some facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:20 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [{"block_available": 1298596, "block_size": 4096, "block_total": 1308160, "block_used": 9564, "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,noquota", "size_available": 5319049216, "size_total": 5358223360, "uuid": "f1f00c9d-b610-4ac3-adb4-29a41718a2f2"}], "storage_test_mount_expected_match_count": "1", "storage_test_mount_point_matches": [{"block_available": 1298596, "block_size": 4096, "block_total": 1308160, "block_used": 9564, "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,noquota", "size_available": 5319049216, "size_total": 5358223360, "uuid": "f1f00c9d-b610-4ac3-adb4-29a41718a2f2"}]}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:31 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:40 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:48 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Unset facts] ************************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:58 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_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/tmpr6sk038f/tests/test-verify-volume-fstab.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:16 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:23 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/foo-test1"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/foo-test1"], "delta": "0:00:00.003637", "end": "2020-05-27 13:03:42.122121", "rc": 0, "start": "2020-05-27 13:03:42.118484", "stderr": "", "stderr_lines": [], "stdout": "/dev/dm-0", "stdout_lines": ["/dev/dm-0"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify fs type] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:21 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify fs label] ********************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:27 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/foo-test1"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/foo-test1"], "delta": "0:00:00.003385", "end": "2020-05-27 13:03:42.736269", "rc": 0, "start": "2020-05-27 13:03:42.732884", "stderr": "", "stderr_lines": [], "stdout": "/dev/dm-0", "stdout_lines": ["/dev/dm-0"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [See whether the device node is present] ********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:21 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "stat": {"atime": 1590584600.39582, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "ctime": 1590584600.39582, "dev": 6, "device_type": 64768, "executable": false, "exists": true, "gid": 6, "gr_name": "disk", "inode": 1589, "isblk": true, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mimetype": "inode/symlink", "mode": "0660", "mtime": 1590584600.39582, "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/tmpr6sk038f/tests/test-verify-volume-device.yml:27 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:35 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:41 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "lvm"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:45 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:50 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:34 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_pool": null}, "changed": false} TASK [Verify the volumes with no pool were correctly managed] ****************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:41 TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:51 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_blkinfo": null, "storage_test_fstab": null, "storage_test_volume": null}, "changed": false} TASK [Repeat the previous invocation to verify idempotence] ******************** task path: /tmp/tmpr6sk038f/tests/tests_change_fs.yml:48 TASK [storage : Set version specific variables] ******************************** task path: /tmp/tmpr6sk038f/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/tmp/tmpr6sk038f/vars/Fedora.yml) => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-dm", "libblockdev-lvm", "libblockdev-part", "libblockdev-mdraid"]}, "ansible_included_var_files": ["/tmp/tmpr6sk038f/vars/Fedora.yml"], "ansible_loop_var": "item", "changed": false, "item": "/tmp/tmpr6sk038f/vars/Fedora.yml"} TASK [storage : define an empty list of pools to be used in testing] *********** task path: /tmp/tmpr6sk038f/tasks/main.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [storage : define an empty list of volumes to be used in testing] ********* task path: /tmp/tmpr6sk038f/tasks/main.yml:13 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : include the appropriate provider tasks] ************************ task path: /tmp/tmpr6sk038f/tasks/main.yml:17 included: /tmp/tmpr6sk038f/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [storage : get a list of rpm packages installed on host machine] ********** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [storage : make sure blivet is available] ********************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : initialize internal facts] ************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.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 [storage : Apply defaults to pools and volumes [1/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:28 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'name': 'foo', 'disks': ['vdb'], 'volumes': [{'name': 'test1', 'size': '5g', 'fs_type': 'xfs', 'mount_point': '/opt/test1'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vdb"], "name": "foo", "state": "present", "type": "lvm", "volumes": [{"fs_type": "xfs", "mount_point": "/opt/test1", "name": "test1", "size": "5g"}]}]}, "ansible_loop_var": "pool", "changed": false, "pool": {"disks": ["vdb"], "name": "foo", "volumes": [{"fs_type": "xfs", "mount_point": "/opt/test1", "name": "test1", "size": "5g"}]}} TASK [storage : Apply defaults to pools and volumes [2/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:36 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=[{'state': 'present', 'type': 'lvm', 'name': 'foo', 'disks': ['vdb'], 'volumes': [{'name': 'test1', 'size': '5g', 'fs_type': 'xfs', 'mount_point': '/opt/test1'}]}, {'name': 'test1', 'size': '5g', 'fs_type': 'xfs', 'mount_point': '/opt/test1'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "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": ["vdb"], "name": "foo", "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 [storage : Apply defaults to pools and volumes [3/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:44 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=[{'name': 'test1', 'size': '5g', 'fs_type': 'xfs', 'mount_point': '/opt/test1'}, {'state': 'present', 'type': 'lvm', 'size': 0, 'fs_type': 'xfs', 'fs_label': '', 'fs_create_options': '', 'fs_overwrite_existing': True, 'mount_point': '', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid'}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "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"}, {"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "size": 0, "state": "present", "type": "lvm"}]} TASK [storage : Apply defaults to pools and volumes [4/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:52 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'name': 'foo', 'disks': ['vdb'], 'volumes': [{'name': 'test1', 'size': '5g', 'fs_type': 'xfs', 'mount_point': '/opt/test1'}]}) => {"ansible_facts": {"_storage_vols_no_defaults_by_pool": {"foo": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "5g", "state": "present", "type": "lvm"}]}}, "ansible_loop_var": "item", "changed": false, "item": {"disks": ["vdb"], "name": "foo", "state": "present", "type": "lvm", "volumes": [{"fs_type": "xfs", "mount_point": "/opt/test1", "name": "test1", "size": "5g"}]}} TASK [storage : Apply defaults to pools and volumes [5/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:61 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'name': 'foo', 'disks': ['vdb'], 'volumes': [{'name': 'test1', 'size': '5g', 'fs_type': 'xfs', 'mount_point': '/opt/test1'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vdb"], "name": "foo", "state": "present", "type": "lvm", "volumes": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "5g", "state": "present", "type": "lvm"}]}]}, "ansible_index_var": "idx", "ansible_loop_var": "pool", "changed": false, "idx": 0, "pool": {"disks": ["vdb"], "name": "foo", "state": "present", "type": "lvm", "volumes": [{"fs_type": "xfs", "mount_point": "/opt/test1", "name": "test1", "size": "5g"}]}} TASK [storage : Apply defaults to pools and volumes [6/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:72 TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools": [ { "disks": [ "vdb" ], "name": "foo", "state": "present", "type": "lvm", "volumes": [ { "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "5g", "state": "present", "type": "lvm" } ] } ] } TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_volumes": [] } TASK [storage : get required packages] ***************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": [], "mounts": [], "packages": ["lvm2", "xfsprogs"], "pools": [], "volumes": []} TASK [storage : make sure required packages are installed] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : manage the pools and volumes to match the specified state] ***** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:104 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": ["/dev/sr0", "/dev/vda1", "/dev/mapper/foo-test1", "/dev/vdc"], "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": ["vdb"], "name": "foo", "state": "present", "type": "lvm", "volumes": [{"_device": "/dev/mapper/foo-test1", "_mount_id": "/dev/mapper/foo-test1", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "5g", "state": "present", "type": "lvm"}]}], "volumes": []} TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:113 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "blivet_output": { "actions": [], "changed": false, "failed": false, "leaves": [ "/dev/sr0", "/dev/vda1", "/dev/mapper/foo-test1", "/dev/vdc" ], "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": [ "vdb" ], "name": "foo", "state": "present", "type": "lvm", "volumes": [ { "_device": "/dev/mapper/foo-test1", "_mount_id": "/dev/mapper/foo-test1", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "5g", "state": "present", "type": "lvm" } ] } ], "volumes": [] } } TASK [storage : set the list of pools for test verification] ******************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:116 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": [{"disks": ["vdb"], "name": "foo", "state": "present", "type": "lvm", "volumes": [{"_device": "/dev/mapper/foo-test1", "_mount_id": "/dev/mapper/foo-test1", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "5g", "state": "present", "type": "lvm"}]}]}, "changed": false} TASK [storage : set the list of volumes for test verification] ***************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:120 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : manage mounts to match the specified state] ******************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:132 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'src': '/dev/mapper/foo-test1', 'path': '/opt/test1', 'fstype': 'xfs', 'opts': 'defaults', 'dump': 0, 'passno': 0, 'state': 'mounted'}) => {"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 [storage : tell systemd to refresh its view of /etc/fstab] **************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:143 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [storage : Update facts] ************************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:153 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmpr6sk038f/tests/tests_change_fs.yml:61 included: /tmp/tmpr6sk038f/tests/verify-role-results.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [Print out pool information] ********************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:1 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools_list": [ { "disks": [ "vdb" ], "name": "foo", "state": "present", "type": "lvm", "volumes": [ { "_device": "/dev/mapper/foo-test1", "_mount_id": "/dev/mapper/foo-test1", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "5g", "state": "present", "type": "lvm" } ] } ] } TASK [Print out volume information] ******************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:6 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {} TASK [Collect info about the volumes.] ***************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:14 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "info": {"/dev/mapper/foo-test1": {"fstype": "xfs", "label": "", "name": "/dev/mapper/foo-test1", "type": "lvm", "uuid": "f1f00c9d-b610-4ac3-adb4-29a41718a2f2"}, "/dev/sr0": {"fstype": "iso9660", "label": "cidata", "name": "/dev/sr0", "type": "rom", "uuid": "2020-05-27-13-00-01-00"}, "/dev/vda": {"fstype": "", "label": "", "name": "/dev/vda", "type": "disk", "uuid": ""}, "/dev/vda1": {"fstype": "ext4", "label": "", "name": "/dev/vda1", "type": "partition", "uuid": "ea711a29-e460-4879-9d70-9da99ae021f9"}, "/dev/vdb": {"fstype": "LVM2_member", "label": "", "name": "/dev/vdb", "type": "disk", "uuid": "0YWraI-QTaM-RTme-WiHM-Nmsj-owLF-yAOzB0"}, "/dev/vdc": {"fstype": "", "label": "", "name": "/dev/vdc", "type": "disk", "uuid": ""}}} TASK [Read the /etc/fstab file for volume existence] *************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:19 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/fstab"], "delta": "0:00:00.002534", "end": "2020-05-27 13:03:56.638060", "rc": 0, "start": "2020-05-27 13:03:56.635526", "stderr": "", "stderr_lines": [], "stdout": "\n#\n# /etc/fstab\n# Created by anaconda on Fri Apr 26 02:02:19 2019\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=ea711a29-e460-4879-9d70-9da99ae021f9 / ext4 defaults 1 1\n/dev/mapper/foo-test1 /opt/test1 xfs defaults 0 0", "stdout_lines": ["", "#", "# /etc/fstab", "# Created by anaconda on Fri Apr 26 02:02:19 2019", "#", "# 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=ea711a29-e460-4879-9d70-9da99ae021f9 / ext4 defaults 1 1", "/dev/mapper/foo-test1 /opt/test1 xfs defaults 0 0"]} TASK [Verify the volumes listed in storage_pools were correctly managed] ******* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:27 [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/tmpr6sk038f/tests/test-verify-pool.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-pool.yml:5 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pool_tests": ["name", "type", "size", "members"]}, "changed": false} TASK [Verify the volumes in this pool were correctly managed] ****************** task path: /tmp/tmpr6sk038f/tests/test-verify-pool.yml:17 [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/tmpr6sk038f/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": true, "_storage_volume_tests": ["mount", "fstab", "fs", "device"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:12 included: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/foo-test1"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/foo-test1"], "delta": "0:00:00.003188", "end": "2020-05-27 13:03:57.234251", "rc": 0, "start": "2020-05-27 13:03:57.231063", "stderr": "", "stderr_lines": [], "stdout": "/dev/dm-0", "stdout_lines": ["/dev/dm-0"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Set some facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:20 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [{"block_available": 1298596, "block_size": 4096, "block_total": 1308160, "block_used": 9564, "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,noquota", "size_available": 5319049216, "size_total": 5358223360, "uuid": "f1f00c9d-b610-4ac3-adb4-29a41718a2f2"}], "storage_test_mount_expected_match_count": "1", "storage_test_mount_point_matches": [{"block_available": 1298596, "block_size": 4096, "block_total": 1308160, "block_used": 9564, "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,noquota", "size_available": 5319049216, "size_total": 5358223360, "uuid": "f1f00c9d-b610-4ac3-adb4-29a41718a2f2"}]}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:31 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:40 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:48 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Unset facts] ************************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:58 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_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/tmpr6sk038f/tests/test-verify-volume-fstab.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:16 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:23 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/foo-test1"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/foo-test1"], "delta": "0:00:00.002969", "end": "2020-05-27 13:03:57.966413", "rc": 0, "start": "2020-05-27 13:03:57.963444", "stderr": "", "stderr_lines": [], "stdout": "/dev/dm-0", "stdout_lines": ["/dev/dm-0"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify fs type] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:21 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify fs label] ********************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:27 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/foo-test1"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/foo-test1"], "delta": "0:00:00.002786", "end": "2020-05-27 13:03:58.441381", "rc": 0, "start": "2020-05-27 13:03:58.438595", "stderr": "", "stderr_lines": [], "stdout": "/dev/dm-0", "stdout_lines": ["/dev/dm-0"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [See whether the device node is present] ********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:21 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "stat": {"atime": 1590584600.39582, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "ctime": 1590584600.39582, "dev": 6, "device_type": 64768, "executable": false, "exists": true, "gid": 6, "gr_name": "disk", "inode": 1589, "isblk": true, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mimetype": "inode/symlink", "mode": "0660", "mtime": 1590584600.39582, "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/tmpr6sk038f/tests/test-verify-volume-device.yml:27 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:35 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:41 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "lvm"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:45 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:50 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:34 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_pool": null}, "changed": false} TASK [Verify the volumes with no pool were correctly managed] ****************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:41 TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:51 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_blkinfo": null, "storage_test_fstab": null, "storage_test_volume": null}, "changed": false} TASK [Clean up] **************************************************************** task path: /tmp/tmpr6sk038f/tests/tests_change_fs.yml:63 TASK [storage : Set version specific variables] ******************************** task path: /tmp/tmpr6sk038f/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/tmp/tmpr6sk038f/vars/Fedora.yml) => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-dm", "libblockdev-lvm", "libblockdev-part", "libblockdev-mdraid"]}, "ansible_included_var_files": ["/tmp/tmpr6sk038f/vars/Fedora.yml"], "ansible_loop_var": "item", "changed": false, "item": "/tmp/tmpr6sk038f/vars/Fedora.yml"} TASK [storage : define an empty list of pools to be used in testing] *********** task path: /tmp/tmpr6sk038f/tasks/main.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [storage : define an empty list of volumes to be used in testing] ********* task path: /tmp/tmpr6sk038f/tasks/main.yml:13 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : include the appropriate provider tasks] ************************ task path: /tmp/tmpr6sk038f/tasks/main.yml:17 included: /tmp/tmpr6sk038f/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [storage : get a list of rpm packages installed on host machine] ********** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [storage : make sure blivet is available] ********************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : initialize internal facts] ************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.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 [storage : Apply defaults to pools and volumes [1/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:28 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'name': 'foo', 'disks': ['vdb'], 'state': 'absent', 'volumes': [{'name': 'test1', 'size': '5g', 'fs_type': 'xfs', 'mount_point': '/opt/test1'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vdb"], "name": "foo", "state": "absent", "type": "lvm", "volumes": [{"fs_type": "xfs", "mount_point": "/opt/test1", "name": "test1", "size": "5g"}]}]}, "ansible_loop_var": "pool", "changed": false, "pool": {"disks": ["vdb"], "name": "foo", "state": "absent", "volumes": [{"fs_type": "xfs", "mount_point": "/opt/test1", "name": "test1", "size": "5g"}]}} TASK [storage : Apply defaults to pools and volumes [2/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:36 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=[{'state': 'absent', 'type': 'lvm', 'name': 'foo', 'disks': ['vdb'], 'volumes': [{'name': 'test1', 'size': '5g', 'fs_type': 'xfs', 'mount_point': '/opt/test1'}]}, {'name': 'test1', 'size': '5g', 'fs_type': 'xfs', 'mount_point': '/opt/test1'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "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": ["vdb"], "name": "foo", "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 [storage : Apply defaults to pools and volumes [3/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:44 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=[{'name': 'test1', 'size': '5g', 'fs_type': 'xfs', 'mount_point': '/opt/test1'}, {'state': 'present', 'type': 'lvm', 'size': 0, 'fs_type': 'xfs', 'fs_label': '', 'fs_create_options': '', 'fs_overwrite_existing': True, 'mount_point': '', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid'}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "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"}, {"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "size": 0, "state": "present", "type": "lvm"}]} TASK [storage : Apply defaults to pools and volumes [4/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:52 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'absent', 'type': 'lvm', 'name': 'foo', 'disks': ['vdb'], 'volumes': [{'name': 'test1', 'size': '5g', 'fs_type': 'xfs', 'mount_point': '/opt/test1'}]}) => {"ansible_facts": {"_storage_vols_no_defaults_by_pool": {"foo": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "5g", "state": "present", "type": "lvm"}]}}, "ansible_loop_var": "item", "changed": false, "item": {"disks": ["vdb"], "name": "foo", "state": "absent", "type": "lvm", "volumes": [{"fs_type": "xfs", "mount_point": "/opt/test1", "name": "test1", "size": "5g"}]}} TASK [storage : Apply defaults to pools and volumes [5/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:61 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'absent', 'type': 'lvm', 'name': 'foo', 'disks': ['vdb'], 'volumes': [{'name': 'test1', 'size': '5g', 'fs_type': 'xfs', 'mount_point': '/opt/test1'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vdb"], "name": "foo", "state": "absent", "type": "lvm", "volumes": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "5g", "state": "present", "type": "lvm"}]}]}, "ansible_index_var": "idx", "ansible_loop_var": "pool", "changed": false, "idx": 0, "pool": {"disks": ["vdb"], "name": "foo", "state": "absent", "type": "lvm", "volumes": [{"fs_type": "xfs", "mount_point": "/opt/test1", "name": "test1", "size": "5g"}]}} TASK [storage : Apply defaults to pools and volumes [6/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:72 TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools": [ { "disks": [ "vdb" ], "name": "foo", "state": "absent", "type": "lvm", "volumes": [ { "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "5g", "state": "present", "type": "lvm" } ] } ] } TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_volumes": [] } TASK [storage : get required packages] ***************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": []} TASK [storage : make sure required packages are installed] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : manage the pools and volumes to match the specified state] ***** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:104 changed: [/cache/Fedora-Cloud-Base-30-1.2.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/vdb", "fs_type": "lvmpv"}], "changed": true, "leaves": ["/dev/sr0", "/dev/vda1", "/dev/vdb", "/dev/vdc"], "mounts": [{"path": "/opt/test1", "state": "absent"}], "packages": ["e2fsprogs"], "pools": [{"disks": ["vdb"], "name": "foo", "state": "absent", "type": "lvm", "volumes": [{"_device": "/dev/mapper/foo-test1", "_mount_id": "/dev/mapper/foo-test1", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "5g", "state": "present", "type": "lvm"}]}], "volumes": []} TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:113 ok: [/cache/Fedora-Cloud-Base-30-1.2.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/vdb", "fs_type": "lvmpv" } ], "changed": true, "failed": false, "leaves": [ "/dev/sr0", "/dev/vda1", "/dev/vdb", "/dev/vdc" ], "mounts": [ { "path": "/opt/test1", "state": "absent" } ], "packages": [ "e2fsprogs" ], "pools": [ { "disks": [ "vdb" ], "name": "foo", "state": "absent", "type": "lvm", "volumes": [ { "_device": "/dev/mapper/foo-test1", "_mount_id": "/dev/mapper/foo-test1", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "5g", "state": "present", "type": "lvm" } ] } ], "volumes": [] } } TASK [storage : set the list of pools for test verification] ******************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:116 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": [{"disks": ["vdb"], "name": "foo", "state": "absent", "type": "lvm", "volumes": [{"_device": "/dev/mapper/foo-test1", "_mount_id": "/dev/mapper/foo-test1", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "5g", "state": "present", "type": "lvm"}]}]}, "changed": false} TASK [storage : set the list of volumes for test verification] ***************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:120 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : manage mounts to match the specified state] ******************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:132 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'path': '/opt/test1', 'state': '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 [storage : tell systemd to refresh its view of /etc/fstab] **************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:143 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [storage : Update facts] ************************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:153 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmpr6sk038f/tests/tests_change_fs.yml:77 included: /tmp/tmpr6sk038f/tests/verify-role-results.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [Print out pool information] ********************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:1 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools_list": [ { "disks": [ "vdb" ], "name": "foo", "state": "absent", "type": "lvm", "volumes": [ { "_device": "/dev/mapper/foo-test1", "_mount_id": "/dev/mapper/foo-test1", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "5g", "state": "present", "type": "lvm" } ] } ] } TASK [Print out volume information] ******************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:6 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {} TASK [Collect info about the volumes.] ***************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:14 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "info": {"/dev/sr0": {"fstype": "iso9660", "label": "cidata", "name": "/dev/sr0", "type": "rom", "uuid": "2020-05-27-13-00-01-00"}, "/dev/vda": {"fstype": "", "label": "", "name": "/dev/vda", "type": "disk", "uuid": ""}, "/dev/vda1": {"fstype": "ext4", "label": "", "name": "/dev/vda1", "type": "partition", "uuid": "ea711a29-e460-4879-9d70-9da99ae021f9"}, "/dev/vdb": {"fstype": "", "label": "", "name": "/dev/vdb", "type": "disk", "uuid": ""}, "/dev/vdc": {"fstype": "", "label": "", "name": "/dev/vdc", "type": "disk", "uuid": ""}}} TASK [Read the /etc/fstab file for volume existence] *************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:19 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/fstab"], "delta": "0:00:01.003681", "end": "2020-05-27 13:04:12.728166", "rc": 0, "start": "2020-05-27 13:04:11.724485", "stderr": "", "stderr_lines": [], "stdout": "\n#\n# /etc/fstab\n# Created by anaconda on Fri Apr 26 02:02:19 2019\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=ea711a29-e460-4879-9d70-9da99ae021f9 / ext4 defaults 1 1", "stdout_lines": ["", "#", "# /etc/fstab", "# Created by anaconda on Fri Apr 26 02:02:19 2019", "#", "# 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=ea711a29-e460-4879-9d70-9da99ae021f9 / ext4 defaults 1 1"]} TASK [Verify the volumes listed in storage_pools were correctly managed] ******* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:27 [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/tmpr6sk038f/tests/test-verify-pool.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-pool.yml:5 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pool_tests": ["name", "type", "size", "members"]}, "changed": false} TASK [Verify the volumes in this pool were correctly managed] ****************** task path: /tmp/tmpr6sk038f/tests/test-verify-pool.yml:17 [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/tmpr6sk038f/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": false, "_storage_volume_tests": ["mount", "fstab", "fs", "device"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:12 included: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/foo-test1"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/foo-test1"], "delta": "0:00:00.002471", "end": "2020-05-27 13:04:13.320233", "rc": 0, "start": "2020-05-27 13:04:13.317762", "stderr": "", "stderr_lines": [], "stdout": "/dev/mapper/foo-test1", "stdout_lines": ["/dev/mapper/foo-test1"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:15 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": {"changed": true, "cmd": ["realpath", "/dev/mapper/foo-test1"], "delta": "0:00:00.002471", "end": "2020-05-27 13:04:13.320233", "failed": false, "rc": 0, "start": "2020-05-27 13:04:13.317762", "stderr": "", "stderr_lines": [], "stdout": "/dev/mapper/foo-test1", "stdout_lines": ["/dev/mapper/foo-test1"]}}, "changed": false} TASK [Set some facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:20 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [], "storage_test_mount_expected_match_count": "0", "storage_test_mount_point_matches": []}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:31 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:40 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:48 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Unset facts] ************************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:58 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_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/tmpr6sk038f/tests/test-verify-volume-fstab.yml:9 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:16 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:23 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/foo-test1"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/foo-test1"], "delta": "0:00:00.002462", "end": "2020-05-27 13:04:14.001819", "rc": 0, "start": "2020-05-27 13:04:13.999357", "stderr": "", "stderr_lines": [], "stdout": "/dev/mapper/foo-test1", "stdout_lines": ["/dev/mapper/foo-test1"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:15 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": {"changed": true, "cmd": ["realpath", "/dev/mapper/foo-test1"], "delta": "0:00:00.002462", "end": "2020-05-27 13:04:14.001819", "failed": false, "rc": 0, "start": "2020-05-27 13:04:13.999357", "stderr": "", "stderr_lines": [], "stdout": "/dev/mapper/foo-test1", "stdout_lines": ["/dev/mapper/foo-test1"]}}, "changed": false} TASK [Verify fs type] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:21 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify fs label] ********************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:27 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/foo-test1"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/foo-test1"], "delta": "0:00:00.002439", "end": "2020-05-27 13:04:14.470267", "rc": 0, "start": "2020-05-27 13:04:14.467828", "stderr": "", "stderr_lines": [], "stdout": "/dev/mapper/foo-test1", "stdout_lines": ["/dev/mapper/foo-test1"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:15 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": {"changed": true, "cmd": ["realpath", "/dev/mapper/foo-test1"], "delta": "0:00:00.002439", "end": "2020-05-27 13:04:14.470267", "failed": false, "rc": 0, "start": "2020-05-27 13:04:14.467828", "stderr": "", "stderr_lines": [], "stdout": "/dev/mapper/foo-test1", "stdout_lines": ["/dev/mapper/foo-test1"]}}, "changed": false} TASK [See whether the device node is present] ********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:21 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "stat": {"exists": false}} TASK [Verify the presence/absence of the device node] ************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:27 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:35 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:41 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "lvm"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:45 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:50 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Clean up facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:34 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_pool": null}, "changed": false} TASK [Verify the volumes with no pool were correctly managed] ****************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:41 TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:51 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_blkinfo": null, "storage_test_fstab": null, "storage_test_volume": null}, "changed": false} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 : ok=253 changed=17 unreachable=0 failed=0 skipped=47 rescued=0 ignored=0 + cd /tmp/tmpr6sk038f/tests; TEST_SUBJECTS=/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_storage-91-a6b7623-fedora-30-97_lk9m2/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmpr6sk038f/_setup.yml /tmp/tmpr6sk038f/tests/tests_change_fs_use_partitions.yml ansible-playbook 2.9.9 config file = /etc/ansible/ansible.cfg configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.8/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 3.8.2 (default, Feb 28 2020, 00:00:00) [GCC 10.0.1 20200216 (Red Hat 10.0.1-0.8)] Using /etc/ansible/ansible.cfg as config file PLAYBOOK: _setup.yml *********************************************************** 1 plays in /tmp/tmpr6sk038f/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmpr6sk038f/_setup.yml:5 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "groups": { "all": [ "/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2" ], "localhost": [ "/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2" ], "subjects": [ "/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmpr6sk038f/_setup.yml:7 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/Fedora-Cloud-Base-30-1.2.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/tmpr6sk038f/tests/tests_change_fs_use_partitions.yml PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpr6sk038f/tests/tests_change_fs_use_partitions.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] META: ran handlers TASK [include_role : storage] ************************************************** task path: /tmp/tmpr6sk038f/tests/tests_change_fs_use_partitions.yml:12 TASK [storage : Set version specific variables] ******************************** task path: /tmp/tmpr6sk038f/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/tmp/tmpr6sk038f/vars/Fedora.yml) => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-dm", "libblockdev-lvm", "libblockdev-part", "libblockdev-mdraid"]}, "ansible_included_var_files": ["/tmp/tmpr6sk038f/vars/Fedora.yml"], "ansible_loop_var": "item", "changed": false, "item": "/tmp/tmpr6sk038f/vars/Fedora.yml"} TASK [storage : define an empty list of pools to be used in testing] *********** task path: /tmp/tmpr6sk038f/tasks/main.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [storage : define an empty list of volumes to be used in testing] ********* task path: /tmp/tmpr6sk038f/tasks/main.yml:13 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : include the appropriate provider tasks] ************************ task path: /tmp/tmpr6sk038f/tasks/main.yml:17 included: /tmp/tmpr6sk038f/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [storage : get a list of rpm packages installed on host machine] ********** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [storage : make sure blivet is available] ********************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:7 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: libblockdev-mpath-2.23-1.fc30.x86_64", "Installed: libblockdev-nvdimm-2.23-1.fc30.x86_64", "Installed: userspace-rcu-0.10.1-5.fc30.x86_64", "Installed: libblockdev-part-2.23-1.fc30.x86_64", "Installed: dmraid-1.0.0.rc16-41.fc30.x86_64", "Installed: dmraid-events-1.0.0.rc16-41.fc30.x86_64", "Installed: lzo-2.08-15.fc30.x86_64", "Installed: libblockdev-swap-2.23-1.fc30.x86_64", "Installed: lvm2-2.02.183-3.fc30.x86_64", "Installed: libblockdev-utils-2.23-1.fc30.x86_64", "Installed: lvm2-libs-2.02.183-3.fc30.x86_64", "Installed: python3-blivet-1:3.1.4-1.fc30.noarch", "Installed: python3-blockdev-2.23-1.fc30.x86_64", "Installed: daxctl-libs-68-1.fc30.x86_64", "Installed: mdadm-4.1-1.fc30.x86_64", "Installed: blivet-data-1:3.1.4-1.fc30.noarch", "Installed: sgpio-1.2.0.10-23.fc30.x86_64", "Installed: nspr-4.25.0-1.fc30.x86_64", "Installed: python3-bytesize-2.2-1.fc30.x86_64", "Installed: device-mapper-event-1.02.154-3.fc30.x86_64", "Installed: lsof-4.91-3.fc30.x86_64", "Installed: nss-3.51.1-1.fc30.x86_64", "Installed: device-mapper-event-libs-1.02.154-3.fc30.x86_64", "Installed: device-mapper-multipath-0.7.9-6.git2df6110.fc30.x86_64", "Installed: gdisk-1.0.5-1.fc30.x86_64", "Installed: device-mapper-multipath-libs-0.7.9-6.git2df6110.fc30.x86_64", "Installed: nss-softokn-3.51.1-1.fc30.x86_64", "Installed: python3-gobject-base-3.32.2-1.fc30.x86_64", "Installed: device-mapper-persistent-data-0.7.6-4.fc30.x86_64", "Installed: gobject-introspection-1.60.2-1.fc30.x86_64", "Installed: nss-softokn-freebl-3.51.1-1.fc30.x86_64", "Installed: libbytesize-2.2-1.fc30.x86_64", "Installed: nss-sysinit-3.51.1-1.fc30.x86_64", "Installed: nss-util-3.51.1-1.fc30.x86_64", "Installed: volume_key-libs-0.3.12-3.fc30.x86_64", "Installed: bcache-tools-1.0.8-15.fc30.x86_64", "Installed: ndctl-68-1.fc30.x86_64", "Installed: ndctl-libs-68-1.fc30.x86_64", "Installed: libblockdev-2.23-1.fc30.x86_64", "Installed: libblockdev-btrfs-2.23-1.fc30.x86_64", "Installed: libblockdev-crypto-2.23-1.fc30.x86_64", "Installed: python3-pyudev-0.21.0-10.fc30.noarch", "Installed: btrfs-progs-5.6-1.fc30.x86_64", "Installed: libblockdev-dm-2.23-1.fc30.x86_64", "Installed: libblockdev-fs-2.23-1.fc30.x86_64", "Installed: libblockdev-kbd-2.23-1.fc30.x86_64", "Installed: libblockdev-loop-2.23-1.fc30.x86_64", "Installed: libblockdev-lvm-2.23-1.fc30.x86_64", "Installed: python3-pyparted-1:3.11.2-1.fc30.x86_64", "Installed: libaio-0.3.111-4.fc30.x86_64", "Installed: libblockdev-mdraid-2.23-1.fc30.x86_64"]} TASK [storage : initialize internal facts] ************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.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 [storage : Apply defaults to pools and volumes [1/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:28 TASK [storage : Apply defaults to pools and volumes [2/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:36 TASK [storage : Apply defaults to pools and volumes [3/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:44 TASK [storage : Apply defaults to pools and volumes [4/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:52 TASK [storage : Apply defaults to pools and volumes [5/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:61 TASK [storage : Apply defaults to pools and volumes [6/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:72 TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools": [] } TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_volumes": [] } TASK [storage : get required packages] ***************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": []} TASK [storage : make sure required packages are installed] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : manage the pools and volumes to match the specified state] ***** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:104 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": []} TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:113 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "blivet_output": { "actions": [], "changed": false, "failed": false, "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": [] } } TASK [storage : set the list of pools for test verification] ******************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:116 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [storage : set the list of volumes for test verification] ***************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:120 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : manage mounts to match the specified state] ******************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:132 TASK [storage : tell systemd to refresh its view of /etc/fstab] **************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:143 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [storage : Update facts] ************************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:153 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmpr6sk038f/tests/tests_change_fs_use_partitions.yml:15 included: /tmp/tmpr6sk038f/tests/get_unused_disk.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [Find unused disks in the system] ***************************************** task path: /tmp/tmpr6sk038f/tests/get_unused_disk.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "disks": ["vdb", "vdc"]} TASK [set_fact] **************************************************************** task path: /tmp/tmpr6sk038f/tests/get_unused_disk.yml:8 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"unused_disks": ["vdb", "vdc"]}, "changed": false} TASK [Exit playbook when there's not enough unused disks in the system] ******** task path: /tmp/tmpr6sk038f/tests/get_unused_disk.yml:12 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Print unused disks] ****************************************************** task path: /tmp/tmpr6sk038f/tests/get_unused_disk.yml:17 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "unused_disks": [ "vdb", "vdc" ] } TASK [Create an LVM partition with the default file system type] *************** task path: /tmp/tmpr6sk038f/tests/tests_change_fs_use_partitions.yml:20 TASK [storage : Set version specific variables] ******************************** task path: /tmp/tmpr6sk038f/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/tmp/tmpr6sk038f/vars/Fedora.yml) => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-dm", "libblockdev-lvm", "libblockdev-part", "libblockdev-mdraid"]}, "ansible_included_var_files": ["/tmp/tmpr6sk038f/vars/Fedora.yml"], "ansible_loop_var": "item", "changed": false, "item": "/tmp/tmpr6sk038f/vars/Fedora.yml"} TASK [storage : define an empty list of pools to be used in testing] *********** task path: /tmp/tmpr6sk038f/tasks/main.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [storage : define an empty list of volumes to be used in testing] ********* task path: /tmp/tmpr6sk038f/tasks/main.yml:13 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : include the appropriate provider tasks] ************************ task path: /tmp/tmpr6sk038f/tasks/main.yml:17 included: /tmp/tmpr6sk038f/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [storage : get a list of rpm packages installed on host machine] ********** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [storage : make sure blivet is available] ********************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : initialize internal facts] ************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.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 [storage : Apply defaults to pools and volumes [1/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:28 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'name': 'bar', 'disks': ['vdb', 'vdc'], 'volumes': [{'name': 'test1', 'size': '5g', 'mount_point': '/opt/test1'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vdb", "vdc"], "name": "bar", "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "5g"}]}]}, "ansible_loop_var": "pool", "changed": false, "pool": {"disks": ["vdb", "vdc"], "name": "bar", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "5g"}]}} TASK [storage : Apply defaults to pools and volumes [2/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:36 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=[{'state': 'present', 'type': 'lvm', 'name': 'bar', 'disks': ['vdb', 'vdc'], 'volumes': [{'name': 'test1', 'size': '5g', 'mount_point': '/opt/test1'}]}, {'name': 'test1', 'size': '5g', 'mount_point': '/opt/test1'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "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": ["vdb", "vdc"], "name": "bar", "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "5g"}]}, {"mount_point": "/opt/test1", "name": "test1", "size": "5g"}]} TASK [storage : Apply defaults to pools and volumes [3/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:44 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=[{'name': 'test1', 'size': '5g', 'mount_point': '/opt/test1'}, {'state': 'present', 'type': 'lvm', 'size': 0, 'fs_type': 'xfs', 'fs_label': '', 'fs_create_options': '', 'fs_overwrite_existing': True, 'mount_point': '', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid'}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": 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", "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"}, {"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "size": 0, "state": "present", "type": "lvm"}]} TASK [storage : Apply defaults to pools and volumes [4/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:52 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'name': 'bar', 'disks': ['vdb', 'vdc'], 'volumes': [{'name': 'test1', 'size': '5g', 'mount_point': '/opt/test1'}]}) => {"ansible_facts": {"_storage_vols_no_defaults_by_pool": {"bar": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": 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", "size": "5g", "state": "present", "type": "lvm"}]}}, "ansible_loop_var": "item", "changed": false, "item": {"disks": ["vdb", "vdc"], "name": "bar", "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "5g"}]}} TASK [storage : Apply defaults to pools and volumes [5/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:61 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'name': 'bar', 'disks': ['vdb', 'vdc'], 'volumes': [{'name': 'test1', 'size': '5g', 'mount_point': '/opt/test1'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vdb", "vdc"], "name": "bar", "state": "present", "type": "lvm", "volumes": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": 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", "size": "5g", "state": "present", "type": "lvm"}]}]}, "ansible_index_var": "idx", "ansible_loop_var": "pool", "changed": false, "idx": 0, "pool": {"disks": ["vdb", "vdc"], "name": "bar", "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "5g"}]}} TASK [storage : Apply defaults to pools and volumes [6/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:72 TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools": [ { "disks": [ "vdb", "vdc" ], "name": "bar", "state": "present", "type": "lvm", "volumes": [ { "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": 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", "size": "5g", "state": "present", "type": "lvm" } ] } ] } TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_volumes": [] } TASK [storage : get required packages] ***************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": [], "mounts": [], "packages": ["lvm2", "xfsprogs"], "pools": [], "volumes": []} TASK [storage : make sure required packages are installed] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : manage the pools and volumes to match the specified state] ***** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:104 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [{"action": "create format", "device": "/dev/vdc", "fs_type": "disklabel"}, {"action": "create device", "device": "/dev/vdc1", "fs_type": null}, {"action": "create format", "device": "/dev/vdc1", "fs_type": "lvmpv"}, {"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 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, "leaves": ["/dev/sr0", "/dev/vda1", "/dev/mapper/bar-test1"], "mounts": [{"dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "/dev/mapper/bar-test1", "state": "mounted"}], "packages": ["xfsprogs", "lvm2", "e2fsprogs"], "pools": [{"disks": ["vdb", "vdc"], "name": "bar", "state": "present", "type": "lvm", "volumes": [{"_device": "/dev/mapper/bar-test1", "_mount_id": "/dev/mapper/bar-test1", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": 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", "size": "5g", "state": "present", "type": "lvm"}]}], "volumes": []} TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:113 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "blivet_output": { "actions": [ { "action": "create format", "device": "/dev/vdc", "fs_type": "disklabel" }, { "action": "create device", "device": "/dev/vdc1", "fs_type": null }, { "action": "create format", "device": "/dev/vdc1", "fs_type": "lvmpv" }, { "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 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, "failed": false, "leaves": [ "/dev/sr0", "/dev/vda1", "/dev/mapper/bar-test1" ], "mounts": [ { "dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "/dev/mapper/bar-test1", "state": "mounted" } ], "packages": [ "xfsprogs", "lvm2", "e2fsprogs" ], "pools": [ { "disks": [ "vdb", "vdc" ], "name": "bar", "state": "present", "type": "lvm", "volumes": [ { "_device": "/dev/mapper/bar-test1", "_mount_id": "/dev/mapper/bar-test1", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": 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", "size": "5g", "state": "present", "type": "lvm" } ] } ], "volumes": [] } } TASK [storage : set the list of pools for test verification] ******************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:116 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": [{"disks": ["vdb", "vdc"], "name": "bar", "state": "present", "type": "lvm", "volumes": [{"_device": "/dev/mapper/bar-test1", "_mount_id": "/dev/mapper/bar-test1", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": 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", "size": "5g", "state": "present", "type": "lvm"}]}]}, "changed": false} TASK [storage : set the list of volumes for test verification] ***************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:120 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : manage mounts to match the specified state] ******************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:132 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'src': '/dev/mapper/bar-test1', 'path': '/opt/test1', 'fstype': 'xfs', 'opts': 'defaults', 'dump': 0, 'passno': 0, 'state': 'mounted'}) => {"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 [storage : tell systemd to refresh its view of /etc/fstab] **************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:143 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [storage : Update facts] ************************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:153 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmpr6sk038f/tests/tests_change_fs_use_partitions.yml:32 included: /tmp/tmpr6sk038f/tests/verify-role-results.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [Print out pool information] ********************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:1 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools_list": [ { "disks": [ "vdb", "vdc" ], "name": "bar", "state": "present", "type": "lvm", "volumes": [ { "_device": "/dev/mapper/bar-test1", "_mount_id": "/dev/mapper/bar-test1", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": 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", "size": "5g", "state": "present", "type": "lvm" } ] } ] } TASK [Print out volume information] ******************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:6 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {} TASK [Collect info about the volumes.] ***************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:14 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "info": {"/dev/mapper/bar-test1": {"fstype": "xfs", "label": "", "name": "/dev/mapper/bar-test1", "type": "lvm", "uuid": "72b187ba-8c44-43e0-9c68-61eb7ca5d17b"}, "/dev/sr0": {"fstype": "iso9660", "label": "cidata", "name": "/dev/sr0", "type": "rom", "uuid": "2020-05-27-13-04-15-00"}, "/dev/vda": {"fstype": "", "label": "", "name": "/dev/vda", "type": "disk", "uuid": ""}, "/dev/vda1": {"fstype": "ext4", "label": "", "name": "/dev/vda1", "type": "partition", "uuid": "ea711a29-e460-4879-9d70-9da99ae021f9"}, "/dev/vdb": {"fstype": "", "label": "", "name": "/dev/vdb", "type": "disk", "uuid": ""}, "/dev/vdb1": {"fstype": "LVM2_member", "label": "", "name": "/dev/vdb1", "type": "partition", "uuid": "s0Ag5m-O65y-n1gq-yLBW-REqX-SOE0-hQFio6"}, "/dev/vdc": {"fstype": "", "label": "", "name": "/dev/vdc", "type": "disk", "uuid": ""}, "/dev/vdc1": {"fstype": "LVM2_member", "label": "", "name": "/dev/vdc1", "type": "partition", "uuid": "xs4YIx-srh9-vUIu-5ALO-OXX8-CyZr-k4jSsi"}}} TASK [Read the /etc/fstab file for volume existence] *************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:19 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/fstab"], "delta": "0:00:01.003875", "end": "2020-05-27 13:06:23.831827", "rc": 0, "start": "2020-05-27 13:06:22.827952", "stderr": "", "stderr_lines": [], "stdout": "\n#\n# /etc/fstab\n# Created by anaconda on Fri Apr 26 02:02:19 2019\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=ea711a29-e460-4879-9d70-9da99ae021f9 / ext4 defaults 1 1\n/dev/mapper/bar-test1 /opt/test1 xfs defaults 0 0", "stdout_lines": ["", "#", "# /etc/fstab", "# Created by anaconda on Fri Apr 26 02:02:19 2019", "#", "# 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=ea711a29-e460-4879-9d70-9da99ae021f9 / ext4 defaults 1 1", "/dev/mapper/bar-test1 /opt/test1 xfs defaults 0 0"]} TASK [Verify the volumes listed in storage_pools were correctly managed] ******* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:27 included: /tmp/tmpr6sk038f/tests/test-verify-pool.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-pool.yml:5 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pool_tests": ["name", "type", "size", "members"]}, "changed": false} TASK [Verify the volumes in this pool were correctly managed] ****************** task path: /tmp/tmpr6sk038f/tests/test-verify-pool.yml:17 included: /tmp/tmpr6sk038f/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": true, "_storage_volume_tests": ["mount", "fstab", "fs", "device"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:12 included: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/bar-test1"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/bar-test1"], "delta": "0:00:00.003758", "end": "2020-05-27 13:06:24.435901", "rc": 0, "start": "2020-05-27 13:06:24.432143", "stderr": "", "stderr_lines": [], "stdout": "/dev/dm-0", "stdout_lines": ["/dev/dm-0"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Set some facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:20 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [{"block_available": 1298596, "block_size": 4096, "block_total": 1308160, "block_used": 9564, "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,noquota", "size_available": 5319049216, "size_total": 5358223360, "uuid": "72b187ba-8c44-43e0-9c68-61eb7ca5d17b"}], "storage_test_mount_expected_match_count": "1", "storage_test_mount_point_matches": [{"block_available": 1298596, "block_size": 4096, "block_total": 1308160, "block_used": 9564, "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,noquota", "size_available": 5319049216, "size_total": 5358223360, "uuid": "72b187ba-8c44-43e0-9c68-61eb7ca5d17b"}]}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:31 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:40 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:48 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Unset facts] ************************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:58 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_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/tmpr6sk038f/tests/test-verify-volume-fstab.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:16 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:23 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/bar-test1"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/bar-test1"], "delta": "0:00:00.003150", "end": "2020-05-27 13:06:25.202485", "rc": 0, "start": "2020-05-27 13:06:25.199335", "stderr": "", "stderr_lines": [], "stdout": "/dev/dm-0", "stdout_lines": ["/dev/dm-0"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify fs type] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:21 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify fs label] ********************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:27 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/bar-test1"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/bar-test1"], "delta": "0:00:00.002828", "end": "2020-05-27 13:06:25.701504", "rc": 0, "start": "2020-05-27 13:06:25.698676", "stderr": "", "stderr_lines": [], "stdout": "/dev/dm-0", "stdout_lines": ["/dev/dm-0"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [See whether the device node is present] ********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:21 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "stat": {"atime": 1590584778.446317, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "ctime": 1590584778.446317, "dev": 6, "device_type": 64768, "executable": false, "exists": true, "gid": 6, "gr_name": "disk", "inode": 1634, "isblk": true, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mimetype": "inode/symlink", "mode": "0660", "mtime": 1590584778.446317, "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/tmpr6sk038f/tests/test-verify-volume-device.yml:27 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:35 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:41 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "lvm"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:45 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:50 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:34 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_pool": null}, "changed": false} TASK [Verify the volumes with no pool were correctly managed] ****************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:41 TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:51 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_blkinfo": null, "storage_test_fstab": null, "storage_test_volume": null}, "changed": false} TASK [Change the LVM partition file system type to "ext4"] ********************* task path: /tmp/tmpr6sk038f/tests/tests_change_fs_use_partitions.yml:34 TASK [storage : Set version specific variables] ******************************** task path: /tmp/tmpr6sk038f/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/tmp/tmpr6sk038f/vars/Fedora.yml) => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-dm", "libblockdev-lvm", "libblockdev-part", "libblockdev-mdraid"]}, "ansible_included_var_files": ["/tmp/tmpr6sk038f/vars/Fedora.yml"], "ansible_loop_var": "item", "changed": false, "item": "/tmp/tmpr6sk038f/vars/Fedora.yml"} TASK [storage : define an empty list of pools to be used in testing] *********** task path: /tmp/tmpr6sk038f/tasks/main.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [storage : define an empty list of volumes to be used in testing] ********* task path: /tmp/tmpr6sk038f/tasks/main.yml:13 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : include the appropriate provider tasks] ************************ task path: /tmp/tmpr6sk038f/tasks/main.yml:17 included: /tmp/tmpr6sk038f/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [storage : get a list of rpm packages installed on host machine] ********** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [storage : make sure blivet is available] ********************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : initialize internal facts] ************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.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 [storage : Apply defaults to pools and volumes [1/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:28 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'name': 'bar', 'disks': ['vdb', 'vdc'], 'volumes': [{'name': 'test1', 'size': '5g', 'fs_type': 'ext4', 'mount_point': '/opt/test1'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vdb", "vdc"], "name": "bar", "state": "present", "type": "lvm", "volumes": [{"fs_type": "ext4", "mount_point": "/opt/test1", "name": "test1", "size": "5g"}]}]}, "ansible_loop_var": "pool", "changed": false, "pool": {"disks": ["vdb", "vdc"], "name": "bar", "volumes": [{"fs_type": "ext4", "mount_point": "/opt/test1", "name": "test1", "size": "5g"}]}} TASK [storage : Apply defaults to pools and volumes [2/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:36 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=[{'state': 'present', 'type': 'lvm', 'name': 'bar', 'disks': ['vdb', 'vdc'], 'volumes': [{'name': 'test1', 'size': '5g', 'fs_type': 'ext4', 'mount_point': '/opt/test1'}]}, {'name': 'test1', 'size': '5g', 'fs_type': 'ext4', 'mount_point': '/opt/test1'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "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": ["vdb", "vdc"], "name": "bar", "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 [storage : Apply defaults to pools and volumes [3/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:44 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=[{'name': 'test1', 'size': '5g', 'fs_type': 'ext4', 'mount_point': '/opt/test1'}, {'state': 'present', 'type': 'lvm', 'size': 0, 'fs_type': 'xfs', 'fs_label': '', 'fs_create_options': '', 'fs_overwrite_existing': True, 'mount_point': '', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid'}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"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", "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"}, {"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "size": 0, "state": "present", "type": "lvm"}]} TASK [storage : Apply defaults to pools and volumes [4/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:52 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'name': 'bar', 'disks': ['vdb', 'vdc'], 'volumes': [{'name': 'test1', 'size': '5g', 'fs_type': 'ext4', 'mount_point': '/opt/test1'}]}) => {"ansible_facts": {"_storage_vols_no_defaults_by_pool": {"bar": [{"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", "size": "5g", "state": "present", "type": "lvm"}]}}, "ansible_loop_var": "item", "changed": false, "item": {"disks": ["vdb", "vdc"], "name": "bar", "state": "present", "type": "lvm", "volumes": [{"fs_type": "ext4", "mount_point": "/opt/test1", "name": "test1", "size": "5g"}]}} TASK [storage : Apply defaults to pools and volumes [5/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:61 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'name': 'bar', 'disks': ['vdb', 'vdc'], 'volumes': [{'name': 'test1', 'size': '5g', 'fs_type': 'ext4', 'mount_point': '/opt/test1'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vdb", "vdc"], "name": "bar", "state": "present", "type": "lvm", "volumes": [{"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", "size": "5g", "state": "present", "type": "lvm"}]}]}, "ansible_index_var": "idx", "ansible_loop_var": "pool", "changed": false, "idx": 0, "pool": {"disks": ["vdb", "vdc"], "name": "bar", "state": "present", "type": "lvm", "volumes": [{"fs_type": "ext4", "mount_point": "/opt/test1", "name": "test1", "size": "5g"}]}} TASK [storage : Apply defaults to pools and volumes [6/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:72 TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools": [ { "disks": [ "vdb", "vdc" ], "name": "bar", "state": "present", "type": "lvm", "volumes": [ { "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", "size": "5g", "state": "present", "type": "lvm" } ] } ] } TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_volumes": [] } TASK [storage : get required packages] ***************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": [], "mounts": [], "packages": ["e2fsprogs", "lvm2"], "pools": [], "volumes": []} TASK [storage : make sure required packages are installed] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : manage the pools and volumes to match the specified state] ***** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:104 changed: [/cache/Fedora-Cloud-Base-30-1.2.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, "leaves": ["/dev/sr0", "/dev/vda1", "/dev/mapper/bar-test1"], "mounts": [{"path": "/opt/test1", "state": "absent"}, {"dump": 0, "fstype": "ext4", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "/dev/mapper/bar-test1", "state": "mounted"}], "packages": ["e2fsprogs", "lvm2"], "pools": [{"disks": ["vdb", "vdc"], "name": "bar", "state": "present", "type": "lvm", "volumes": [{"_device": "/dev/mapper/bar-test1", "_mount_id": "/dev/mapper/bar-test1", "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", "size": "5g", "state": "present", "type": "lvm"}]}], "volumes": []} TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:113 ok: [/cache/Fedora-Cloud-Base-30-1.2.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, "failed": false, "leaves": [ "/dev/sr0", "/dev/vda1", "/dev/mapper/bar-test1" ], "mounts": [ { "path": "/opt/test1", "state": "absent" }, { "dump": 0, "fstype": "ext4", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "/dev/mapper/bar-test1", "state": "mounted" } ], "packages": [ "e2fsprogs", "lvm2" ], "pools": [ { "disks": [ "vdb", "vdc" ], "name": "bar", "state": "present", "type": "lvm", "volumes": [ { "_device": "/dev/mapper/bar-test1", "_mount_id": "/dev/mapper/bar-test1", "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", "size": "5g", "state": "present", "type": "lvm" } ] } ], "volumes": [] } } TASK [storage : set the list of pools for test verification] ******************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:116 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": [{"disks": ["vdb", "vdc"], "name": "bar", "state": "present", "type": "lvm", "volumes": [{"_device": "/dev/mapper/bar-test1", "_mount_id": "/dev/mapper/bar-test1", "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", "size": "5g", "state": "present", "type": "lvm"}]}]}, "changed": false} TASK [storage : set the list of volumes for test verification] ***************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:120 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : manage mounts to match the specified state] ******************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:132 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'path': '/opt/test1', 'state': '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"} changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'src': '/dev/mapper/bar-test1', 'path': '/opt/test1', 'fstype': 'ext4', 'opts': 'defaults', 'dump': 0, 'passno': 0, 'state': 'mounted'}) => {"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 [storage : tell systemd to refresh its view of /etc/fstab] **************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:143 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [storage : Update facts] ************************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:153 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmpr6sk038f/tests/tests_change_fs_use_partitions.yml:47 included: /tmp/tmpr6sk038f/tests/verify-role-results.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [Print out pool information] ********************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:1 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools_list": [ { "disks": [ "vdb", "vdc" ], "name": "bar", "state": "present", "type": "lvm", "volumes": [ { "_device": "/dev/mapper/bar-test1", "_mount_id": "/dev/mapper/bar-test1", "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", "size": "5g", "state": "present", "type": "lvm" } ] } ] } TASK [Print out volume information] ******************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:6 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {} TASK [Collect info about the volumes.] ***************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:14 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "info": {"/dev/mapper/bar-test1": {"fstype": "ext4", "label": "", "name": "/dev/mapper/bar-test1", "type": "lvm", "uuid": "fcda1e6f-19e7-4a16-821f-513e5c0162cf"}, "/dev/sr0": {"fstype": "iso9660", "label": "cidata", "name": "/dev/sr0", "type": "rom", "uuid": "2020-05-27-13-04-15-00"}, "/dev/vda": {"fstype": "", "label": "", "name": "/dev/vda", "type": "disk", "uuid": ""}, "/dev/vda1": {"fstype": "ext4", "label": "", "name": "/dev/vda1", "type": "partition", "uuid": "ea711a29-e460-4879-9d70-9da99ae021f9"}, "/dev/vdb": {"fstype": "", "label": "", "name": "/dev/vdb", "type": "disk", "uuid": ""}, "/dev/vdb1": {"fstype": "LVM2_member", "label": "", "name": "/dev/vdb1", "type": "partition", "uuid": "s0Ag5m-O65y-n1gq-yLBW-REqX-SOE0-hQFio6"}, "/dev/vdc": {"fstype": "", "label": "", "name": "/dev/vdc", "type": "disk", "uuid": ""}, "/dev/vdc1": {"fstype": "LVM2_member", "label": "", "name": "/dev/vdc1", "type": "partition", "uuid": "xs4YIx-srh9-vUIu-5ALO-OXX8-CyZr-k4jSsi"}}} TASK [Read the /etc/fstab file for volume existence] *************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:19 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/fstab"], "delta": "0:00:00.003193", "end": "2020-05-27 13:06:39.797422", "rc": 0, "start": "2020-05-27 13:06:39.794229", "stderr": "", "stderr_lines": [], "stdout": "\n#\n# /etc/fstab\n# Created by anaconda on Fri Apr 26 02:02:19 2019\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=ea711a29-e460-4879-9d70-9da99ae021f9 / ext4 defaults 1 1\n/dev/mapper/bar-test1 /opt/test1 ext4 defaults 0 0", "stdout_lines": ["", "#", "# /etc/fstab", "# Created by anaconda on Fri Apr 26 02:02:19 2019", "#", "# 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=ea711a29-e460-4879-9d70-9da99ae021f9 / ext4 defaults 1 1", "/dev/mapper/bar-test1 /opt/test1 ext4 defaults 0 0"]} TASK [Verify the volumes listed in storage_pools were correctly managed] ******* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:27 [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/tmpr6sk038f/tests/test-verify-pool.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-pool.yml:5 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pool_tests": ["name", "type", "size", "members"]}, "changed": false} TASK [Verify the volumes in this pool were correctly managed] ****************** task path: /tmp/tmpr6sk038f/tests/test-verify-pool.yml:17 [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/tmpr6sk038f/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": true, "_storage_volume_tests": ["mount", "fstab", "fs", "device"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:12 included: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/bar-test1"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/bar-test1"], "delta": "0:00:00.002468", "end": "2020-05-27 13:06:40.285288", "rc": 0, "start": "2020-05-27 13:06:40.282820", "stderr": "", "stderr_lines": [], "stdout": "/dev/dm-0", "stdout_lines": ["/dev/dm-0"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Set some facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:20 ok: [/cache/Fedora-Cloud-Base-30-1.2.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": "fcda1e6f-19e7-4a16-821f-513e5c0162cf"}], "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": "fcda1e6f-19e7-4a16-821f-513e5c0162cf"}]}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:31 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:40 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:48 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Unset facts] ************************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:58 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_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/tmpr6sk038f/tests/test-verify-volume-fstab.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:16 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:23 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/bar-test1"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/bar-test1"], "delta": "0:00:00.003134", "end": "2020-05-27 13:06:40.845334", "rc": 0, "start": "2020-05-27 13:06:40.842200", "stderr": "", "stderr_lines": [], "stdout": "/dev/dm-0", "stdout_lines": ["/dev/dm-0"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify fs type] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:21 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify fs label] ********************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:27 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/bar-test1"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/bar-test1"], "delta": "0:00:01.004690", "end": "2020-05-27 13:06:42.255868", "rc": 0, "start": "2020-05-27 13:06:41.251178", "stderr": "", "stderr_lines": [], "stdout": "/dev/dm-0", "stdout_lines": ["/dev/dm-0"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [See whether the device node is present] ********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:21 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "stat": {"atime": 1590584796.9473171, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "ctime": 1590584796.9473171, "dev": 6, "device_type": 64768, "executable": false, "exists": true, "gid": 6, "gr_name": "disk", "inode": 1634, "isblk": true, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mimetype": "inode/symlink", "mode": "0660", "mtime": 1590584796.9473171, "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/tmpr6sk038f/tests/test-verify-volume-device.yml:27 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:35 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:41 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "lvm"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:45 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:50 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:34 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_pool": null}, "changed": false} TASK [Verify the volumes with no pool were correctly managed] ****************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:41 TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:51 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_blkinfo": null, "storage_test_fstab": null, "storage_test_volume": null}, "changed": false} TASK [Repeat the previous invocation to verify idempotence] ******************** task path: /tmp/tmpr6sk038f/tests/tests_change_fs_use_partitions.yml:49 TASK [storage : Set version specific variables] ******************************** task path: /tmp/tmpr6sk038f/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/tmp/tmpr6sk038f/vars/Fedora.yml) => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-dm", "libblockdev-lvm", "libblockdev-part", "libblockdev-mdraid"]}, "ansible_included_var_files": ["/tmp/tmpr6sk038f/vars/Fedora.yml"], "ansible_loop_var": "item", "changed": false, "item": "/tmp/tmpr6sk038f/vars/Fedora.yml"} TASK [storage : define an empty list of pools to be used in testing] *********** task path: /tmp/tmpr6sk038f/tasks/main.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [storage : define an empty list of volumes to be used in testing] ********* task path: /tmp/tmpr6sk038f/tasks/main.yml:13 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : include the appropriate provider tasks] ************************ task path: /tmp/tmpr6sk038f/tasks/main.yml:17 included: /tmp/tmpr6sk038f/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [storage : get a list of rpm packages installed on host machine] ********** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [storage : make sure blivet is available] ********************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : initialize internal facts] ************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.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 [storage : Apply defaults to pools and volumes [1/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:28 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'name': 'bar', 'disks': ['vdb', 'vdc'], 'volumes': [{'name': 'test1', 'size': '5g', 'fs_type': 'ext4', 'mount_point': '/opt/test1'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vdb", "vdc"], "name": "bar", "state": "present", "type": "lvm", "volumes": [{"fs_type": "ext4", "mount_point": "/opt/test1", "name": "test1", "size": "5g"}]}]}, "ansible_loop_var": "pool", "changed": false, "pool": {"disks": ["vdb", "vdc"], "name": "bar", "volumes": [{"fs_type": "ext4", "mount_point": "/opt/test1", "name": "test1", "size": "5g"}]}} TASK [storage : Apply defaults to pools and volumes [2/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:36 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=[{'state': 'present', 'type': 'lvm', 'name': 'bar', 'disks': ['vdb', 'vdc'], 'volumes': [{'name': 'test1', 'size': '5g', 'fs_type': 'ext4', 'mount_point': '/opt/test1'}]}, {'name': 'test1', 'size': '5g', 'fs_type': 'ext4', 'mount_point': '/opt/test1'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "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": ["vdb", "vdc"], "name": "bar", "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 [storage : Apply defaults to pools and volumes [3/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:44 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=[{'name': 'test1', 'size': '5g', 'fs_type': 'ext4', 'mount_point': '/opt/test1'}, {'state': 'present', 'type': 'lvm', 'size': 0, 'fs_type': 'xfs', 'fs_label': '', 'fs_create_options': '', 'fs_overwrite_existing': True, 'mount_point': '', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid'}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"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", "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"}, {"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "size": 0, "state": "present", "type": "lvm"}]} TASK [storage : Apply defaults to pools and volumes [4/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:52 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'name': 'bar', 'disks': ['vdb', 'vdc'], 'volumes': [{'name': 'test1', 'size': '5g', 'fs_type': 'ext4', 'mount_point': '/opt/test1'}]}) => {"ansible_facts": {"_storage_vols_no_defaults_by_pool": {"bar": [{"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", "size": "5g", "state": "present", "type": "lvm"}]}}, "ansible_loop_var": "item", "changed": false, "item": {"disks": ["vdb", "vdc"], "name": "bar", "state": "present", "type": "lvm", "volumes": [{"fs_type": "ext4", "mount_point": "/opt/test1", "name": "test1", "size": "5g"}]}} TASK [storage : Apply defaults to pools and volumes [5/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:61 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'name': 'bar', 'disks': ['vdb', 'vdc'], 'volumes': [{'name': 'test1', 'size': '5g', 'fs_type': 'ext4', 'mount_point': '/opt/test1'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vdb", "vdc"], "name": "bar", "state": "present", "type": "lvm", "volumes": [{"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", "size": "5g", "state": "present", "type": "lvm"}]}]}, "ansible_index_var": "idx", "ansible_loop_var": "pool", "changed": false, "idx": 0, "pool": {"disks": ["vdb", "vdc"], "name": "bar", "state": "present", "type": "lvm", "volumes": [{"fs_type": "ext4", "mount_point": "/opt/test1", "name": "test1", "size": "5g"}]}} TASK [storage : Apply defaults to pools and volumes [6/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:72 TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools": [ { "disks": [ "vdb", "vdc" ], "name": "bar", "state": "present", "type": "lvm", "volumes": [ { "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", "size": "5g", "state": "present", "type": "lvm" } ] } ] } TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_volumes": [] } TASK [storage : get required packages] ***************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": [], "mounts": [], "packages": ["e2fsprogs", "lvm2"], "pools": [], "volumes": []} TASK [storage : make sure required packages are installed] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : manage the pools and volumes to match the specified state] ***** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:104 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": ["/dev/sr0", "/dev/vda1", "/dev/mapper/bar-test1"], "mounts": [{"dump": 0, "fstype": "ext4", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "/dev/mapper/bar-test1", "state": "mounted"}], "packages": ["lvm2", "e2fsprogs"], "pools": [{"disks": ["vdb", "vdc"], "name": "bar", "state": "present", "type": "lvm", "volumes": [{"_device": "/dev/mapper/bar-test1", "_mount_id": "/dev/mapper/bar-test1", "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", "size": "5g", "state": "present", "type": "lvm"}]}], "volumes": []} TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:113 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "blivet_output": { "actions": [], "changed": false, "failed": false, "leaves": [ "/dev/sr0", "/dev/vda1", "/dev/mapper/bar-test1" ], "mounts": [ { "dump": 0, "fstype": "ext4", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "/dev/mapper/bar-test1", "state": "mounted" } ], "packages": [ "lvm2", "e2fsprogs" ], "pools": [ { "disks": [ "vdb", "vdc" ], "name": "bar", "state": "present", "type": "lvm", "volumes": [ { "_device": "/dev/mapper/bar-test1", "_mount_id": "/dev/mapper/bar-test1", "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", "size": "5g", "state": "present", "type": "lvm" } ] } ], "volumes": [] } } TASK [storage : set the list of pools for test verification] ******************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:116 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": [{"disks": ["vdb", "vdc"], "name": "bar", "state": "present", "type": "lvm", "volumes": [{"_device": "/dev/mapper/bar-test1", "_mount_id": "/dev/mapper/bar-test1", "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", "size": "5g", "state": "present", "type": "lvm"}]}]}, "changed": false} TASK [storage : set the list of volumes for test verification] ***************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:120 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : manage mounts to match the specified state] ******************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:132 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'src': '/dev/mapper/bar-test1', 'path': '/opt/test1', 'fstype': 'ext4', 'opts': 'defaults', 'dump': 0, 'passno': 0, 'state': 'mounted'}) => {"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 [storage : tell systemd to refresh its view of /etc/fstab] **************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:143 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [storage : Update facts] ************************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:153 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmpr6sk038f/tests/tests_change_fs_use_partitions.yml:62 included: /tmp/tmpr6sk038f/tests/verify-role-results.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [Print out pool information] ********************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:1 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools_list": [ { "disks": [ "vdb", "vdc" ], "name": "bar", "state": "present", "type": "lvm", "volumes": [ { "_device": "/dev/mapper/bar-test1", "_mount_id": "/dev/mapper/bar-test1", "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", "size": "5g", "state": "present", "type": "lvm" } ] } ] } TASK [Print out volume information] ******************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:6 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {} TASK [Collect info about the volumes.] ***************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:14 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "info": {"/dev/mapper/bar-test1": {"fstype": "ext4", "label": "", "name": "/dev/mapper/bar-test1", "type": "lvm", "uuid": "fcda1e6f-19e7-4a16-821f-513e5c0162cf"}, "/dev/sr0": {"fstype": "iso9660", "label": "cidata", "name": "/dev/sr0", "type": "rom", "uuid": "2020-05-27-13-04-15-00"}, "/dev/vda": {"fstype": "", "label": "", "name": "/dev/vda", "type": "disk", "uuid": ""}, "/dev/vda1": {"fstype": "ext4", "label": "", "name": "/dev/vda1", "type": "partition", "uuid": "ea711a29-e460-4879-9d70-9da99ae021f9"}, "/dev/vdb": {"fstype": "", "label": "", "name": "/dev/vdb", "type": "disk", "uuid": ""}, "/dev/vdb1": {"fstype": "LVM2_member", "label": "", "name": "/dev/vdb1", "type": "partition", "uuid": "s0Ag5m-O65y-n1gq-yLBW-REqX-SOE0-hQFio6"}, "/dev/vdc": {"fstype": "", "label": "", "name": "/dev/vdc", "type": "disk", "uuid": ""}, "/dev/vdc1": {"fstype": "LVM2_member", "label": "", "name": "/dev/vdc1", "type": "partition", "uuid": "xs4YIx-srh9-vUIu-5ALO-OXX8-CyZr-k4jSsi"}}} TASK [Read the /etc/fstab file for volume existence] *************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:19 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/fstab"], "delta": "0:00:01.004245", "end": "2020-05-27 13:06:56.236650", "rc": 0, "start": "2020-05-27 13:06:55.232405", "stderr": "", "stderr_lines": [], "stdout": "\n#\n# /etc/fstab\n# Created by anaconda on Fri Apr 26 02:02:19 2019\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=ea711a29-e460-4879-9d70-9da99ae021f9 / ext4 defaults 1 1\n/dev/mapper/bar-test1 /opt/test1 ext4 defaults 0 0", "stdout_lines": ["", "#", "# /etc/fstab", "# Created by anaconda on Fri Apr 26 02:02:19 2019", "#", "# 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=ea711a29-e460-4879-9d70-9da99ae021f9 / ext4 defaults 1 1", "/dev/mapper/bar-test1 /opt/test1 ext4 defaults 0 0"]} TASK [Verify the volumes listed in storage_pools were correctly managed] ******* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:27 [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/tmpr6sk038f/tests/test-verify-pool.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-pool.yml:5 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pool_tests": ["name", "type", "size", "members"]}, "changed": false} TASK [Verify the volumes in this pool were correctly managed] ****************** task path: /tmp/tmpr6sk038f/tests/test-verify-pool.yml:17 [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/tmpr6sk038f/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": true, "_storage_volume_tests": ["mount", "fstab", "fs", "device"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:12 included: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/bar-test1"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/bar-test1"], "delta": "0:00:01.003806", "end": "2020-05-27 13:06:57.721915", "rc": 0, "start": "2020-05-27 13:06:56.718109", "stderr": "", "stderr_lines": [], "stdout": "/dev/dm-0", "stdout_lines": ["/dev/dm-0"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Set some facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:20 ok: [/cache/Fedora-Cloud-Base-30-1.2.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": "fcda1e6f-19e7-4a16-821f-513e5c0162cf"}], "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": "fcda1e6f-19e7-4a16-821f-513e5c0162cf"}]}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:31 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:40 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:48 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Unset facts] ************************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:58 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_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/tmpr6sk038f/tests/test-verify-volume-fstab.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:16 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:23 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/bar-test1"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/bar-test1"], "delta": "0:00:00.003241", "end": "2020-05-27 13:06:58.270223", "rc": 0, "start": "2020-05-27 13:06:58.266982", "stderr": "", "stderr_lines": [], "stdout": "/dev/dm-0", "stdout_lines": ["/dev/dm-0"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify fs type] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:21 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify fs label] ********************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:27 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/bar-test1"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/bar-test1"], "delta": "0:00:00.003213", "end": "2020-05-27 13:06:58.666960", "rc": 0, "start": "2020-05-27 13:06:58.663747", "stderr": "", "stderr_lines": [], "stdout": "/dev/dm-0", "stdout_lines": ["/dev/dm-0"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [See whether the device node is present] ********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:21 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "stat": {"atime": 1590584796.9473171, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "ctime": 1590584796.9473171, "dev": 6, "device_type": 64768, "executable": false, "exists": true, "gid": 6, "gr_name": "disk", "inode": 1634, "isblk": true, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mimetype": "inode/symlink", "mode": "0660", "mtime": 1590584796.9473171, "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/tmpr6sk038f/tests/test-verify-volume-device.yml:27 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:35 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:41 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "lvm"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:45 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:50 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:34 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_pool": null}, "changed": false} TASK [Verify the volumes with no pool were correctly managed] ****************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:41 TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:51 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_blkinfo": null, "storage_test_fstab": null, "storage_test_volume": null}, "changed": false} TASK [Clean up] **************************************************************** task path: /tmp/tmpr6sk038f/tests/tests_change_fs_use_partitions.yml:64 TASK [storage : Set version specific variables] ******************************** task path: /tmp/tmpr6sk038f/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/tmp/tmpr6sk038f/vars/Fedora.yml) => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-dm", "libblockdev-lvm", "libblockdev-part", "libblockdev-mdraid"]}, "ansible_included_var_files": ["/tmp/tmpr6sk038f/vars/Fedora.yml"], "ansible_loop_var": "item", "changed": false, "item": "/tmp/tmpr6sk038f/vars/Fedora.yml"} TASK [storage : define an empty list of pools to be used in testing] *********** task path: /tmp/tmpr6sk038f/tasks/main.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [storage : define an empty list of volumes to be used in testing] ********* task path: /tmp/tmpr6sk038f/tasks/main.yml:13 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : include the appropriate provider tasks] ************************ task path: /tmp/tmpr6sk038f/tasks/main.yml:17 included: /tmp/tmpr6sk038f/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [storage : get a list of rpm packages installed on host machine] ********** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [storage : make sure blivet is available] ********************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : initialize internal facts] ************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.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 [storage : Apply defaults to pools and volumes [1/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:28 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'name': 'bar', 'disks': ['vdb', 'vdc'], 'state': 'absent', 'volumes': [{'name': 'test1', 'size': '5g', 'fs_type': 'ext4', 'mount_point': '/opt/test1', 'state': 'absent'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vdb", "vdc"], "name": "bar", "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": ["vdb", "vdc"], "name": "bar", "state": "absent", "volumes": [{"fs_type": "ext4", "mount_point": "/opt/test1", "name": "test1", "size": "5g", "state": "absent"}]}} TASK [storage : Apply defaults to pools and volumes [2/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:36 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=[{'state': 'absent', 'type': 'lvm', 'name': 'bar', 'disks': ['vdb', 'vdc'], 'volumes': [{'name': 'test1', 'size': '5g', 'fs_type': 'ext4', 'mount_point': '/opt/test1', 'state': 'absent'}]}, {'name': 'test1', 'size': '5g', 'fs_type': 'ext4', 'mount_point': '/opt/test1', 'state': 'absent'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "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": ["vdb", "vdc"], "name": "bar", "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 [storage : Apply defaults to pools and volumes [3/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:44 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=[{'name': 'test1', 'size': '5g', 'fs_type': 'ext4', 'mount_point': '/opt/test1', 'state': 'absent'}, {'state': 'present', 'type': 'lvm', 'size': 0, 'fs_type': 'xfs', 'fs_label': '', 'fs_create_options': '', 'fs_overwrite_existing': True, 'mount_point': '', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid'}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"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", "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"}, {"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "size": 0, "state": "present", "type": "lvm"}]} TASK [storage : Apply defaults to pools and volumes [4/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:52 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'absent', 'type': 'lvm', 'name': 'bar', 'disks': ['vdb', 'vdc'], 'volumes': [{'name': 'test1', 'size': '5g', 'fs_type': 'ext4', 'mount_point': '/opt/test1', 'state': 'absent'}]}) => {"ansible_facts": {"_storage_vols_no_defaults_by_pool": {"bar": [{"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", "size": "5g", "state": "absent", "type": "lvm"}]}}, "ansible_loop_var": "item", "changed": false, "item": {"disks": ["vdb", "vdc"], "name": "bar", "state": "absent", "type": "lvm", "volumes": [{"fs_type": "ext4", "mount_point": "/opt/test1", "name": "test1", "size": "5g", "state": "absent"}]}} TASK [storage : Apply defaults to pools and volumes [5/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:61 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'absent', 'type': 'lvm', 'name': 'bar', 'disks': ['vdb', 'vdc'], 'volumes': [{'name': 'test1', 'size': '5g', 'fs_type': 'ext4', 'mount_point': '/opt/test1', 'state': 'absent'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vdb", "vdc"], "name": "bar", "state": "absent", "type": "lvm", "volumes": [{"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", "size": "5g", "state": "absent", "type": "lvm"}]}]}, "ansible_index_var": "idx", "ansible_loop_var": "pool", "changed": false, "idx": 0, "pool": {"disks": ["vdb", "vdc"], "name": "bar", "state": "absent", "type": "lvm", "volumes": [{"fs_type": "ext4", "mount_point": "/opt/test1", "name": "test1", "size": "5g", "state": "absent"}]}} TASK [storage : Apply defaults to pools and volumes [6/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:72 TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools": [ { "disks": [ "vdb", "vdc" ], "name": "bar", "state": "absent", "type": "lvm", "volumes": [ { "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", "size": "5g", "state": "absent", "type": "lvm" } ] } ] } TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_volumes": [] } TASK [storage : get required packages] ***************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": []} TASK [storage : make sure required packages are installed] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : manage the pools and volumes to match the specified state] ***** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:104 changed: [/cache/Fedora-Cloud-Base-30-1.2.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/vdc1", "fs_type": "lvmpv"}, {"action": "destroy device", "device": "/dev/vdc1", "fs_type": null}, {"action": "destroy format", "device": "/dev/vdc", "fs_type": "disklabel"}, {"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"}], "changed": true, "leaves": ["/dev/sr0", "/dev/vda1", "/dev/vdb", "/dev/vdc"], "mounts": [{"path": "/opt/test1", "state": "absent"}], "packages": ["e2fsprogs"], "pools": [{"disks": ["vdb", "vdc"], "name": "bar", "state": "absent", "type": "lvm", "volumes": [{"_device": "/dev/mapper/bar-test1", "_mount_id": "/dev/mapper/bar-test1", "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", "size": "5g", "state": "absent", "type": "lvm"}]}], "volumes": []} TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:113 ok: [/cache/Fedora-Cloud-Base-30-1.2.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/vdc1", "fs_type": "lvmpv" }, { "action": "destroy device", "device": "/dev/vdc1", "fs_type": null }, { "action": "destroy format", "device": "/dev/vdc", "fs_type": "disklabel" }, { "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" } ], "changed": true, "failed": false, "leaves": [ "/dev/sr0", "/dev/vda1", "/dev/vdb", "/dev/vdc" ], "mounts": [ { "path": "/opt/test1", "state": "absent" } ], "packages": [ "e2fsprogs" ], "pools": [ { "disks": [ "vdb", "vdc" ], "name": "bar", "state": "absent", "type": "lvm", "volumes": [ { "_device": "/dev/mapper/bar-test1", "_mount_id": "/dev/mapper/bar-test1", "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", "size": "5g", "state": "absent", "type": "lvm" } ] } ], "volumes": [] } } TASK [storage : set the list of pools for test verification] ******************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:116 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": [{"disks": ["vdb", "vdc"], "name": "bar", "state": "absent", "type": "lvm", "volumes": [{"_device": "/dev/mapper/bar-test1", "_mount_id": "/dev/mapper/bar-test1", "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", "size": "5g", "state": "absent", "type": "lvm"}]}]}, "changed": false} TASK [storage : set the list of volumes for test verification] ***************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:120 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : manage mounts to match the specified state] ******************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:132 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'path': '/opt/test1', 'state': '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 [storage : tell systemd to refresh its view of /etc/fstab] **************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:143 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [storage : Update facts] ************************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:153 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmpr6sk038f/tests/tests_change_fs_use_partitions.yml:79 included: /tmp/tmpr6sk038f/tests/verify-role-results.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [Print out pool information] ********************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:1 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools_list": [ { "disks": [ "vdb", "vdc" ], "name": "bar", "state": "absent", "type": "lvm", "volumes": [ { "_device": "/dev/mapper/bar-test1", "_mount_id": "/dev/mapper/bar-test1", "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", "size": "5g", "state": "absent", "type": "lvm" } ] } ] } TASK [Print out volume information] ******************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:6 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {} TASK [Collect info about the volumes.] ***************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:14 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "info": {"/dev/sr0": {"fstype": "iso9660", "label": "cidata", "name": "/dev/sr0", "type": "rom", "uuid": "2020-05-27-13-04-15-00"}, "/dev/vda": {"fstype": "", "label": "", "name": "/dev/vda", "type": "disk", "uuid": ""}, "/dev/vda1": {"fstype": "ext4", "label": "", "name": "/dev/vda1", "type": "partition", "uuid": "ea711a29-e460-4879-9d70-9da99ae021f9"}, "/dev/vdb": {"fstype": "", "label": "", "name": "/dev/vdb", "type": "disk", "uuid": ""}, "/dev/vdc": {"fstype": "", "label": "", "name": "/dev/vdc", "type": "disk", "uuid": ""}}} TASK [Read the /etc/fstab file for volume existence] *************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:19 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/fstab"], "delta": "0:00:01.003529", "end": "2020-05-27 13:07:13.754164", "rc": 0, "start": "2020-05-27 13:07:12.750635", "stderr": "", "stderr_lines": [], "stdout": "\n#\n# /etc/fstab\n# Created by anaconda on Fri Apr 26 02:02:19 2019\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=ea711a29-e460-4879-9d70-9da99ae021f9 / ext4 defaults 1 1", "stdout_lines": ["", "#", "# /etc/fstab", "# Created by anaconda on Fri Apr 26 02:02:19 2019", "#", "# 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=ea711a29-e460-4879-9d70-9da99ae021f9 / ext4 defaults 1 1"]} TASK [Verify the volumes listed in storage_pools were correctly managed] ******* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:27 [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/tmpr6sk038f/tests/test-verify-pool.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-pool.yml:5 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pool_tests": ["name", "type", "size", "members"]}, "changed": false} TASK [Verify the volumes in this pool were correctly managed] ****************** task path: /tmp/tmpr6sk038f/tests/test-verify-pool.yml:17 [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/tmpr6sk038f/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": false, "_storage_volume_tests": ["mount", "fstab", "fs", "device"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:12 included: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/bar-test1"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/bar-test1"], "delta": "0:00:00.002498", "end": "2020-05-27 13:07:14.252316", "rc": 0, "start": "2020-05-27 13:07:14.249818", "stderr": "", "stderr_lines": [], "stdout": "/dev/mapper/bar-test1", "stdout_lines": ["/dev/mapper/bar-test1"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:15 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": {"changed": true, "cmd": ["realpath", "/dev/mapper/bar-test1"], "delta": "0:00:00.002498", "end": "2020-05-27 13:07:14.252316", "failed": false, "rc": 0, "start": "2020-05-27 13:07:14.249818", "stderr": "", "stderr_lines": [], "stdout": "/dev/mapper/bar-test1", "stdout_lines": ["/dev/mapper/bar-test1"]}}, "changed": false} TASK [Set some facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:20 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [], "storage_test_mount_expected_match_count": "0", "storage_test_mount_point_matches": []}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:31 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:40 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:48 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Unset facts] ************************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:58 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_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/tmpr6sk038f/tests/test-verify-volume-fstab.yml:9 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:16 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:23 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/bar-test1"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/bar-test1"], "delta": "0:00:00.002315", "end": "2020-05-27 13:07:14.813633", "rc": 0, "start": "2020-05-27 13:07:14.811318", "stderr": "", "stderr_lines": [], "stdout": "/dev/mapper/bar-test1", "stdout_lines": ["/dev/mapper/bar-test1"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:15 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": {"changed": true, "cmd": ["realpath", "/dev/mapper/bar-test1"], "delta": "0:00:00.002315", "end": "2020-05-27 13:07:14.813633", "failed": false, "rc": 0, "start": "2020-05-27 13:07:14.811318", "stderr": "", "stderr_lines": [], "stdout": "/dev/mapper/bar-test1", "stdout_lines": ["/dev/mapper/bar-test1"]}}, "changed": false} TASK [Verify fs type] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:21 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify fs label] ********************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:27 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/bar-test1"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/bar-test1"], "delta": "0:00:00.002600", "end": "2020-05-27 13:07:15.230128", "rc": 0, "start": "2020-05-27 13:07:15.227528", "stderr": "", "stderr_lines": [], "stdout": "/dev/mapper/bar-test1", "stdout_lines": ["/dev/mapper/bar-test1"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:15 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": {"changed": true, "cmd": ["realpath", "/dev/mapper/bar-test1"], "delta": "0:00:00.002600", "end": "2020-05-27 13:07:15.230128", "failed": false, "rc": 0, "start": "2020-05-27 13:07:15.227528", "stderr": "", "stderr_lines": [], "stdout": "/dev/mapper/bar-test1", "stdout_lines": ["/dev/mapper/bar-test1"]}}, "changed": false} TASK [See whether the device node is present] ********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:21 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "stat": {"exists": false}} TASK [Verify the presence/absence of the device node] ************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:27 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:35 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:41 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "lvm"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:45 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:50 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Clean up facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:34 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_pool": null}, "changed": false} TASK [Verify the volumes with no pool were correctly managed] ****************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:41 TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:51 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_blkinfo": null, "storage_test_fstab": null, "storage_test_volume": null}, "changed": false} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 : ok=253 changed=19 unreachable=0 failed=0 skipped=47 rescued=0 ignored=0 + cd /tmp/tmpr6sk038f/tests; TEST_SUBJECTS=/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_storage-91-a6b7623-fedora-30-97_lk9m2/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmpr6sk038f/_setup.yml /tmp/tmpr6sk038f/tests/tests_change_mount.yml ansible-playbook 2.9.9 config file = /etc/ansible/ansible.cfg configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.8/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 3.8.2 (default, Feb 28 2020, 00:00:00) [GCC 10.0.1 20200216 (Red Hat 10.0.1-0.8)] Using /etc/ansible/ansible.cfg as config file PLAYBOOK: _setup.yml *********************************************************** 1 plays in /tmp/tmpr6sk038f/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmpr6sk038f/_setup.yml:5 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "groups": { "all": [ "/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2" ], "localhost": [ "/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2" ], "subjects": [ "/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmpr6sk038f/_setup.yml:7 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/Fedora-Cloud-Base-30-1.2.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/tmpr6sk038f/tests/tests_change_mount.yml PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpr6sk038f/tests/tests_change_mount.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] META: ran handlers TASK [include_role : storage] ************************************************** task path: /tmp/tmpr6sk038f/tests/tests_change_mount.yml:10 TASK [storage : Set version specific variables] ******************************** task path: /tmp/tmpr6sk038f/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/tmp/tmpr6sk038f/vars/Fedora.yml) => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-dm", "libblockdev-lvm", "libblockdev-part", "libblockdev-mdraid"]}, "ansible_included_var_files": ["/tmp/tmpr6sk038f/vars/Fedora.yml"], "ansible_loop_var": "item", "changed": false, "item": "/tmp/tmpr6sk038f/vars/Fedora.yml"} TASK [storage : define an empty list of pools to be used in testing] *********** task path: /tmp/tmpr6sk038f/tasks/main.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [storage : define an empty list of volumes to be used in testing] ********* task path: /tmp/tmpr6sk038f/tasks/main.yml:13 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : include the appropriate provider tasks] ************************ task path: /tmp/tmpr6sk038f/tasks/main.yml:17 included: /tmp/tmpr6sk038f/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [storage : get a list of rpm packages installed on host machine] ********** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [storage : make sure blivet is available] ********************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:7 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: libblockdev-mpath-2.23-1.fc30.x86_64", "Installed: libblockdev-nvdimm-2.23-1.fc30.x86_64", "Installed: userspace-rcu-0.10.1-5.fc30.x86_64", "Installed: libblockdev-part-2.23-1.fc30.x86_64", "Installed: dmraid-1.0.0.rc16-41.fc30.x86_64", "Installed: dmraid-events-1.0.0.rc16-41.fc30.x86_64", "Installed: lzo-2.08-15.fc30.x86_64", "Installed: libblockdev-swap-2.23-1.fc30.x86_64", "Installed: lvm2-2.02.183-3.fc30.x86_64", "Installed: libblockdev-utils-2.23-1.fc30.x86_64", "Installed: lvm2-libs-2.02.183-3.fc30.x86_64", "Installed: python3-blivet-1:3.1.4-1.fc30.noarch", "Installed: python3-blockdev-2.23-1.fc30.x86_64", "Installed: daxctl-libs-68-1.fc30.x86_64", "Installed: mdadm-4.1-1.fc30.x86_64", "Installed: blivet-data-1:3.1.4-1.fc30.noarch", "Installed: sgpio-1.2.0.10-23.fc30.x86_64", "Installed: nspr-4.25.0-1.fc30.x86_64", "Installed: python3-bytesize-2.2-1.fc30.x86_64", "Installed: device-mapper-event-1.02.154-3.fc30.x86_64", "Installed: lsof-4.91-3.fc30.x86_64", "Installed: nss-3.51.1-1.fc30.x86_64", "Installed: device-mapper-event-libs-1.02.154-3.fc30.x86_64", "Installed: device-mapper-multipath-0.7.9-6.git2df6110.fc30.x86_64", "Installed: gdisk-1.0.5-1.fc30.x86_64", "Installed: device-mapper-multipath-libs-0.7.9-6.git2df6110.fc30.x86_64", "Installed: nss-softokn-3.51.1-1.fc30.x86_64", "Installed: python3-gobject-base-3.32.2-1.fc30.x86_64", "Installed: device-mapper-persistent-data-0.7.6-4.fc30.x86_64", "Installed: gobject-introspection-1.60.2-1.fc30.x86_64", "Installed: nss-softokn-freebl-3.51.1-1.fc30.x86_64", "Installed: libbytesize-2.2-1.fc30.x86_64", "Installed: nss-sysinit-3.51.1-1.fc30.x86_64", "Installed: nss-util-3.51.1-1.fc30.x86_64", "Installed: volume_key-libs-0.3.12-3.fc30.x86_64", "Installed: bcache-tools-1.0.8-15.fc30.x86_64", "Installed: ndctl-68-1.fc30.x86_64", "Installed: ndctl-libs-68-1.fc30.x86_64", "Installed: libblockdev-2.23-1.fc30.x86_64", "Installed: libblockdev-btrfs-2.23-1.fc30.x86_64", "Installed: libblockdev-crypto-2.23-1.fc30.x86_64", "Installed: python3-pyudev-0.21.0-10.fc30.noarch", "Installed: btrfs-progs-5.6-1.fc30.x86_64", "Installed: libblockdev-dm-2.23-1.fc30.x86_64", "Installed: libblockdev-fs-2.23-1.fc30.x86_64", "Installed: libblockdev-kbd-2.23-1.fc30.x86_64", "Installed: libblockdev-loop-2.23-1.fc30.x86_64", "Installed: libblockdev-lvm-2.23-1.fc30.x86_64", "Installed: python3-pyparted-1:3.11.2-1.fc30.x86_64", "Installed: libaio-0.3.111-4.fc30.x86_64", "Installed: libblockdev-mdraid-2.23-1.fc30.x86_64"]} TASK [storage : initialize internal facts] ************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.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 [storage : Apply defaults to pools and volumes [1/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:28 TASK [storage : Apply defaults to pools and volumes [2/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:36 TASK [storage : Apply defaults to pools and volumes [3/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:44 TASK [storage : Apply defaults to pools and volumes [4/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:52 TASK [storage : Apply defaults to pools and volumes [5/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:61 TASK [storage : Apply defaults to pools and volumes [6/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:72 TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools": [] } TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_volumes": [] } TASK [storage : get required packages] ***************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": []} TASK [storage : make sure required packages are installed] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : manage the pools and volumes to match the specified state] ***** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:104 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": []} TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:113 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "blivet_output": { "actions": [], "changed": false, "failed": false, "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": [] } } TASK [storage : set the list of pools for test verification] ******************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:116 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [storage : set the list of volumes for test verification] ***************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:120 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : manage mounts to match the specified state] ******************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:132 TASK [storage : tell systemd to refresh its view of /etc/fstab] **************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:143 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [storage : Update facts] ************************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:153 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmpr6sk038f/tests/tests_change_mount.yml:13 included: /tmp/tmpr6sk038f/tests/get_unused_disk.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [Find unused disks in the system] ***************************************** task path: /tmp/tmpr6sk038f/tests/get_unused_disk.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "disks": ["vdb"]} TASK [set_fact] **************************************************************** task path: /tmp/tmpr6sk038f/tests/get_unused_disk.yml:8 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"unused_disks": ["vdb"]}, "changed": false} TASK [Exit playbook when there's not enough unused disks in the system] ******** task path: /tmp/tmpr6sk038f/tests/get_unused_disk.yml:12 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Print unused disks] ****************************************************** task path: /tmp/tmpr6sk038f/tests/get_unused_disk.yml:17 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "unused_disks": [ "vdb" ] } TASK [Create a LVM logical volume mounted at "/opt/test1"] ********************* task path: /tmp/tmpr6sk038f/tests/tests_change_mount.yml:18 TASK [storage : Set version specific variables] ******************************** task path: /tmp/tmpr6sk038f/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/tmp/tmpr6sk038f/vars/Fedora.yml) => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-dm", "libblockdev-lvm", "libblockdev-part", "libblockdev-mdraid"]}, "ansible_included_var_files": ["/tmp/tmpr6sk038f/vars/Fedora.yml"], "ansible_loop_var": "item", "changed": false, "item": "/tmp/tmpr6sk038f/vars/Fedora.yml"} TASK [storage : define an empty list of pools to be used in testing] *********** task path: /tmp/tmpr6sk038f/tasks/main.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [storage : define an empty list of volumes to be used in testing] ********* task path: /tmp/tmpr6sk038f/tasks/main.yml:13 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : include the appropriate provider tasks] ************************ task path: /tmp/tmpr6sk038f/tasks/main.yml:17 included: /tmp/tmpr6sk038f/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [storage : get a list of rpm packages installed on host machine] ********** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [storage : make sure blivet is available] ********************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : initialize internal facts] ************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.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 [storage : Apply defaults to pools and volumes [1/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:28 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'name': 'foo', 'disks': ['vdb'], 'volumes': [{'name': 'test1', 'size': '3g', 'mount_point': '/opt/test1'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vdb"], "name": "foo", "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "3g"}]}]}, "ansible_loop_var": "pool", "changed": false, "pool": {"disks": ["vdb"], "name": "foo", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "3g"}]}} TASK [storage : Apply defaults to pools and volumes [2/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:36 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=[{'state': 'present', 'type': 'lvm', 'name': 'foo', 'disks': ['vdb'], 'volumes': [{'name': 'test1', 'size': '3g', 'mount_point': '/opt/test1'}]}, {'name': 'test1', 'size': '3g', 'mount_point': '/opt/test1'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "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": ["vdb"], "name": "foo", "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "3g"}]}, {"mount_point": "/opt/test1", "name": "test1", "size": "3g"}]} TASK [storage : Apply defaults to pools and volumes [3/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:44 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=[{'name': 'test1', 'size': '3g', 'mount_point': '/opt/test1'}, {'state': 'present', 'type': 'lvm', 'size': 0, 'fs_type': 'xfs', 'fs_label': '', 'fs_create_options': '', 'fs_overwrite_existing': True, 'mount_point': '', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid'}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "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"}, {"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "size": 0, "state": "present", "type": "lvm"}]} TASK [storage : Apply defaults to pools and volumes [4/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:52 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'name': 'foo', 'disks': ['vdb'], 'volumes': [{'name': 'test1', 'size': '3g', 'mount_point': '/opt/test1'}]}) => {"ansible_facts": {"_storage_vols_no_defaults_by_pool": {"foo": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "3g", "state": "present", "type": "lvm"}]}}, "ansible_loop_var": "item", "changed": false, "item": {"disks": ["vdb"], "name": "foo", "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "3g"}]}} TASK [storage : Apply defaults to pools and volumes [5/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:61 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'name': 'foo', 'disks': ['vdb'], 'volumes': [{'name': 'test1', 'size': '3g', 'mount_point': '/opt/test1'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vdb"], "name": "foo", "state": "present", "type": "lvm", "volumes": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "3g", "state": "present", "type": "lvm"}]}]}, "ansible_index_var": "idx", "ansible_loop_var": "pool", "changed": false, "idx": 0, "pool": {"disks": ["vdb"], "name": "foo", "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "3g"}]}} TASK [storage : Apply defaults to pools and volumes [6/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:72 TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools": [ { "disks": [ "vdb" ], "name": "foo", "state": "present", "type": "lvm", "volumes": [ { "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "3g", "state": "present", "type": "lvm" } ] } ] } TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_volumes": [] } TASK [storage : get required packages] ***************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": [], "mounts": [], "packages": ["lvm2", "xfsprogs"], "pools": [], "volumes": []} TASK [storage : make sure required packages are installed] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : manage the pools and volumes to match the specified state] ***** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:104 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [{"action": "create format", "device": "/dev/vdb", "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, "leaves": ["/dev/sr0", "/dev/vda1", "/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": ["vdb"], "name": "foo", "state": "present", "type": "lvm", "volumes": [{"_device": "/dev/mapper/foo-test1", "_mount_id": "/dev/mapper/foo-test1", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "3g", "state": "present", "type": "lvm"}]}], "volumes": []} TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:113 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "blivet_output": { "actions": [ { "action": "create format", "device": "/dev/vdb", "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, "failed": false, "leaves": [ "/dev/sr0", "/dev/vda1", "/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": [ "vdb" ], "name": "foo", "state": "present", "type": "lvm", "volumes": [ { "_device": "/dev/mapper/foo-test1", "_mount_id": "/dev/mapper/foo-test1", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "3g", "state": "present", "type": "lvm" } ] } ], "volumes": [] } } TASK [storage : set the list of pools for test verification] ******************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:116 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": [{"disks": ["vdb"], "name": "foo", "state": "present", "type": "lvm", "volumes": [{"_device": "/dev/mapper/foo-test1", "_mount_id": "/dev/mapper/foo-test1", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "3g", "state": "present", "type": "lvm"}]}]}, "changed": false} TASK [storage : set the list of volumes for test verification] ***************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:120 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : manage mounts to match the specified state] ******************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:132 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'src': '/dev/mapper/foo-test1', 'path': '/opt/test1', 'fstype': 'xfs', 'opts': 'defaults', 'dump': 0, 'passno': 0, 'state': 'mounted'}) => {"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 [storage : tell systemd to refresh its view of /etc/fstab] **************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:143 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [storage : Update facts] ************************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:153 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmpr6sk038f/tests/tests_change_mount.yml:30 included: /tmp/tmpr6sk038f/tests/verify-role-results.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [Print out pool information] ********************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:1 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools_list": [ { "disks": [ "vdb" ], "name": "foo", "state": "present", "type": "lvm", "volumes": [ { "_device": "/dev/mapper/foo-test1", "_mount_id": "/dev/mapper/foo-test1", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "3g", "state": "present", "type": "lvm" } ] } ] } TASK [Print out volume information] ******************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:6 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {} TASK [Collect info about the volumes.] ***************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:14 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "info": {"/dev/mapper/foo-test1": {"fstype": "xfs", "label": "", "name": "/dev/mapper/foo-test1", "type": "lvm", "uuid": "94295766-07d3-4246-9c63-06d1e90f5d1d"}, "/dev/sr0": {"fstype": "iso9660", "label": "cidata", "name": "/dev/sr0", "type": "rom", "uuid": "2020-05-27-13-07-16-00"}, "/dev/vda": {"fstype": "", "label": "", "name": "/dev/vda", "type": "disk", "uuid": ""}, "/dev/vda1": {"fstype": "ext4", "label": "", "name": "/dev/vda1", "type": "partition", "uuid": "ea711a29-e460-4879-9d70-9da99ae021f9"}, "/dev/vdb": {"fstype": "LVM2_member", "label": "", "name": "/dev/vdb", "type": "disk", "uuid": "DbfeYy-w4HF-xnSG-u7Rj-OUvf-MbZK-WzTuI2"}, "/dev/vdc": {"fstype": "", "label": "", "name": "/dev/vdc", "type": "disk", "uuid": ""}}} TASK [Read the /etc/fstab file for volume existence] *************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:19 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/fstab"], "delta": "0:00:00.002606", "end": "2020-05-27 13:10:21.947727", "rc": 0, "start": "2020-05-27 13:10:21.945121", "stderr": "", "stderr_lines": [], "stdout": "\n#\n# /etc/fstab\n# Created by anaconda on Fri Apr 26 02:02:19 2019\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=ea711a29-e460-4879-9d70-9da99ae021f9 / ext4 defaults 1 1\n/dev/mapper/foo-test1 /opt/test1 xfs defaults 0 0", "stdout_lines": ["", "#", "# /etc/fstab", "# Created by anaconda on Fri Apr 26 02:02:19 2019", "#", "# 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=ea711a29-e460-4879-9d70-9da99ae021f9 / ext4 defaults 1 1", "/dev/mapper/foo-test1 /opt/test1 xfs defaults 0 0"]} TASK [Verify the volumes listed in storage_pools were correctly managed] ******* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:27 included: /tmp/tmpr6sk038f/tests/test-verify-pool.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-pool.yml:5 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pool_tests": ["name", "type", "size", "members"]}, "changed": false} TASK [Verify the volumes in this pool were correctly managed] ****************** task path: /tmp/tmpr6sk038f/tests/test-verify-pool.yml:17 included: /tmp/tmpr6sk038f/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": true, "_storage_volume_tests": ["mount", "fstab", "fs", "device"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:12 included: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/foo-test1"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/foo-test1"], "delta": "0:00:00.004584", "end": "2020-05-27 13:10:22.450451", "rc": 0, "start": "2020-05-27 13:10:22.445867", "stderr": "", "stderr_lines": [], "stdout": "/dev/dm-0", "stdout_lines": ["/dev/dm-0"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Set some facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:20 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [{"block_available": 774836, "block_size": 4096, "block_total": 783872, "block_used": 9036, "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,noquota", "size_available": 3173728256, "size_total": 3210739712, "uuid": "94295766-07d3-4246-9c63-06d1e90f5d1d"}], "storage_test_mount_expected_match_count": "1", "storage_test_mount_point_matches": [{"block_available": 774836, "block_size": 4096, "block_total": 783872, "block_used": 9036, "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,noquota", "size_available": 3173728256, "size_total": 3210739712, "uuid": "94295766-07d3-4246-9c63-06d1e90f5d1d"}]}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:31 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:40 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:48 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Unset facts] ************************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:58 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_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/tmpr6sk038f/tests/test-verify-volume-fstab.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:16 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:23 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/foo-test1"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/foo-test1"], "delta": "0:00:00.002819", "end": "2020-05-27 13:10:23.022833", "rc": 0, "start": "2020-05-27 13:10:23.020014", "stderr": "", "stderr_lines": [], "stdout": "/dev/dm-0", "stdout_lines": ["/dev/dm-0"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify fs type] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:21 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify fs label] ********************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:27 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/foo-test1"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/foo-test1"], "delta": "0:00:00.003672", "end": "2020-05-27 13:10:23.433506", "rc": 0, "start": "2020-05-27 13:10:23.429834", "stderr": "", "stderr_lines": [], "stdout": "/dev/dm-0", "stdout_lines": ["/dev/dm-0"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [See whether the device node is present] ********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:21 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "stat": {"atime": 1590585018.802589, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "ctime": 1590585018.802589, "dev": 6, "device_type": 64768, "executable": false, "exists": true, "gid": 6, "gr_name": "disk", "inode": 1852, "isblk": true, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mimetype": "inode/symlink", "mode": "0660", "mtime": 1590585018.802589, "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/tmpr6sk038f/tests/test-verify-volume-device.yml:27 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:35 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:41 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "lvm"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:45 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:50 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:34 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_pool": null}, "changed": false} TASK [Verify the volumes with no pool were correctly managed] ****************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:41 TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:51 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_blkinfo": null, "storage_test_fstab": null, "storage_test_volume": null}, "changed": false} TASK [Change the mount location to "/opt/test2"] ******************************* task path: /tmp/tmpr6sk038f/tests/tests_change_mount.yml:32 TASK [storage : Set version specific variables] ******************************** task path: /tmp/tmpr6sk038f/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/tmp/tmpr6sk038f/vars/Fedora.yml) => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-dm", "libblockdev-lvm", "libblockdev-part", "libblockdev-mdraid"]}, "ansible_included_var_files": ["/tmp/tmpr6sk038f/vars/Fedora.yml"], "ansible_loop_var": "item", "changed": false, "item": "/tmp/tmpr6sk038f/vars/Fedora.yml"} TASK [storage : define an empty list of pools to be used in testing] *********** task path: /tmp/tmpr6sk038f/tasks/main.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [storage : define an empty list of volumes to be used in testing] ********* task path: /tmp/tmpr6sk038f/tasks/main.yml:13 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : include the appropriate provider tasks] ************************ task path: /tmp/tmpr6sk038f/tasks/main.yml:17 included: /tmp/tmpr6sk038f/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [storage : get a list of rpm packages installed on host machine] ********** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [storage : make sure blivet is available] ********************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : initialize internal facts] ************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.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 [storage : Apply defaults to pools and volumes [1/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:28 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'name': 'foo', 'disks': ['vdb'], 'volumes': [{'name': 'test1', 'size': '3g', 'mount_point': '/opt/test2'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vdb"], "name": "foo", "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test2", "name": "test1", "size": "3g"}]}]}, "ansible_loop_var": "pool", "changed": false, "pool": {"disks": ["vdb"], "name": "foo", "volumes": [{"mount_point": "/opt/test2", "name": "test1", "size": "3g"}]}} TASK [storage : Apply defaults to pools and volumes [2/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:36 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=[{'state': 'present', 'type': 'lvm', 'name': 'foo', 'disks': ['vdb'], 'volumes': [{'name': 'test1', 'size': '3g', 'mount_point': '/opt/test2'}]}, {'name': 'test1', 'size': '3g', 'mount_point': '/opt/test2'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "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": ["vdb"], "name": "foo", "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test2", "name": "test1", "size": "3g"}]}, {"mount_point": "/opt/test2", "name": "test1", "size": "3g"}]} TASK [storage : Apply defaults to pools and volumes [3/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:44 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=[{'name': 'test1', 'size': '3g', 'mount_point': '/opt/test2'}, {'state': 'present', 'type': 'lvm', 'size': 0, 'fs_type': 'xfs', 'fs_label': '', 'fs_create_options': '', 'fs_overwrite_existing': True, 'mount_point': '', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid'}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"fs_create_options": "", "fs_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", "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"}, {"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "size": 0, "state": "present", "type": "lvm"}]} TASK [storage : Apply defaults to pools and volumes [4/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:52 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'name': 'foo', 'disks': ['vdb'], 'volumes': [{'name': 'test1', 'size': '3g', 'mount_point': '/opt/test2'}]}) => {"ansible_facts": {"_storage_vols_no_defaults_by_pool": {"foo": [{"fs_create_options": "", "fs_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", "size": "3g", "state": "present", "type": "lvm"}]}}, "ansible_loop_var": "item", "changed": false, "item": {"disks": ["vdb"], "name": "foo", "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test2", "name": "test1", "size": "3g"}]}} TASK [storage : Apply defaults to pools and volumes [5/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:61 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'name': 'foo', 'disks': ['vdb'], 'volumes': [{'name': 'test1', 'size': '3g', 'mount_point': '/opt/test2'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vdb"], "name": "foo", "state": "present", "type": "lvm", "volumes": [{"fs_create_options": "", "fs_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", "size": "3g", "state": "present", "type": "lvm"}]}]}, "ansible_index_var": "idx", "ansible_loop_var": "pool", "changed": false, "idx": 0, "pool": {"disks": ["vdb"], "name": "foo", "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test2", "name": "test1", "size": "3g"}]}} TASK [storage : Apply defaults to pools and volumes [6/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:72 TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools": [ { "disks": [ "vdb" ], "name": "foo", "state": "present", "type": "lvm", "volumes": [ { "fs_create_options": "", "fs_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", "size": "3g", "state": "present", "type": "lvm" } ] } ] } TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_volumes": [] } TASK [storage : get required packages] ***************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": [], "mounts": [], "packages": ["lvm2", "xfsprogs"], "pools": [], "volumes": []} TASK [storage : make sure required packages are installed] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : manage the pools and volumes to match the specified state] ***** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:104 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": ["/dev/sr0", "/dev/vda1", "/dev/mapper/foo-test1", "/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": ["lvm2", "e2fsprogs", "xfsprogs"], "pools": [{"disks": ["vdb"], "name": "foo", "state": "present", "type": "lvm", "volumes": [{"_device": "/dev/mapper/foo-test1", "_mount_id": "/dev/mapper/foo-test1", "fs_create_options": "", "fs_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", "size": "3g", "state": "present", "type": "lvm"}]}], "volumes": []} TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:113 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "blivet_output": { "actions": [], "changed": false, "failed": false, "leaves": [ "/dev/sr0", "/dev/vda1", "/dev/mapper/foo-test1", "/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": [ "lvm2", "e2fsprogs", "xfsprogs" ], "pools": [ { "disks": [ "vdb" ], "name": "foo", "state": "present", "type": "lvm", "volumes": [ { "_device": "/dev/mapper/foo-test1", "_mount_id": "/dev/mapper/foo-test1", "fs_create_options": "", "fs_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", "size": "3g", "state": "present", "type": "lvm" } ] } ], "volumes": [] } } TASK [storage : set the list of pools for test verification] ******************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:116 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": [{"disks": ["vdb"], "name": "foo", "state": "present", "type": "lvm", "volumes": [{"_device": "/dev/mapper/foo-test1", "_mount_id": "/dev/mapper/foo-test1", "fs_create_options": "", "fs_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", "size": "3g", "state": "present", "type": "lvm"}]}]}, "changed": false} TASK [storage : set the list of volumes for test verification] ***************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:120 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : manage mounts to match the specified state] ******************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:132 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'path': '/opt/test1', 'state': '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"} changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'src': '/dev/mapper/foo-test1', 'path': '/opt/test2', 'fstype': 'xfs', 'opts': 'defaults', 'dump': 0, 'passno': 0, 'state': 'mounted'}) => {"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 [storage : tell systemd to refresh its view of /etc/fstab] **************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:143 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [storage : Update facts] ************************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:153 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmpr6sk038f/tests/tests_change_mount.yml:44 included: /tmp/tmpr6sk038f/tests/verify-role-results.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [Print out pool information] ********************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:1 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools_list": [ { "disks": [ "vdb" ], "name": "foo", "state": "present", "type": "lvm", "volumes": [ { "_device": "/dev/mapper/foo-test1", "_mount_id": "/dev/mapper/foo-test1", "fs_create_options": "", "fs_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", "size": "3g", "state": "present", "type": "lvm" } ] } ] } TASK [Print out volume information] ******************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:6 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {} TASK [Collect info about the volumes.] ***************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:14 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "info": {"/dev/mapper/foo-test1": {"fstype": "xfs", "label": "", "name": "/dev/mapper/foo-test1", "type": "lvm", "uuid": "94295766-07d3-4246-9c63-06d1e90f5d1d"}, "/dev/sr0": {"fstype": "iso9660", "label": "cidata", "name": "/dev/sr0", "type": "rom", "uuid": "2020-05-27-13-07-16-00"}, "/dev/vda": {"fstype": "", "label": "", "name": "/dev/vda", "type": "disk", "uuid": ""}, "/dev/vda1": {"fstype": "ext4", "label": "", "name": "/dev/vda1", "type": "partition", "uuid": "ea711a29-e460-4879-9d70-9da99ae021f9"}, "/dev/vdb": {"fstype": "LVM2_member", "label": "", "name": "/dev/vdb", "type": "disk", "uuid": "DbfeYy-w4HF-xnSG-u7Rj-OUvf-MbZK-WzTuI2"}, "/dev/vdc": {"fstype": "", "label": "", "name": "/dev/vdc", "type": "disk", "uuid": ""}}} TASK [Read the /etc/fstab file for volume existence] *************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:19 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/fstab"], "delta": "0:00:00.002848", "end": "2020-05-27 13:10:36.584681", "rc": 0, "start": "2020-05-27 13:10:36.581833", "stderr": "", "stderr_lines": [], "stdout": "\n#\n# /etc/fstab\n# Created by anaconda on Fri Apr 26 02:02:19 2019\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=ea711a29-e460-4879-9d70-9da99ae021f9 / ext4 defaults 1 1\n/dev/mapper/foo-test1 /opt/test2 xfs defaults 0 0", "stdout_lines": ["", "#", "# /etc/fstab", "# Created by anaconda on Fri Apr 26 02:02:19 2019", "#", "# 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=ea711a29-e460-4879-9d70-9da99ae021f9 / ext4 defaults 1 1", "/dev/mapper/foo-test1 /opt/test2 xfs defaults 0 0"]} TASK [Verify the volumes listed in storage_pools were correctly managed] ******* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:27 [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/tmpr6sk038f/tests/test-verify-pool.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-pool.yml:5 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pool_tests": ["name", "type", "size", "members"]}, "changed": false} TASK [Verify the volumes in this pool were correctly managed] ****************** task path: /tmp/tmpr6sk038f/tests/test-verify-pool.yml:17 [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/tmpr6sk038f/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": true, "_storage_volume_tests": ["mount", "fstab", "fs", "device"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:12 included: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/foo-test1"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/foo-test1"], "delta": "0:00:00.003256", "end": "2020-05-27 13:10:37.174557", "rc": 0, "start": "2020-05-27 13:10:37.171301", "stderr": "", "stderr_lines": [], "stdout": "/dev/dm-0", "stdout_lines": ["/dev/dm-0"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Set some facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:20 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [{"block_available": 774836, "block_size": 4096, "block_total": 783872, "block_used": 9036, "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,noquota", "size_available": 3173728256, "size_total": 3210739712, "uuid": "94295766-07d3-4246-9c63-06d1e90f5d1d"}], "storage_test_mount_expected_match_count": "1", "storage_test_mount_point_matches": [{"block_available": 774836, "block_size": 4096, "block_total": 783872, "block_used": 9036, "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,noquota", "size_available": 3173728256, "size_total": 3210739712, "uuid": "94295766-07d3-4246-9c63-06d1e90f5d1d"}]}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:31 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:40 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:48 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Unset facts] ************************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:58 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_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/tmpr6sk038f/tests/test-verify-volume-fstab.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:16 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:23 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/foo-test1"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/foo-test1"], "delta": "0:00:00.002942", "end": "2020-05-27 13:10:37.732915", "rc": 0, "start": "2020-05-27 13:10:37.729973", "stderr": "", "stderr_lines": [], "stdout": "/dev/dm-0", "stdout_lines": ["/dev/dm-0"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify fs type] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:21 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify fs label] ********************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:27 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/foo-test1"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/foo-test1"], "delta": "0:00:00.003045", "end": "2020-05-27 13:10:38.142373", "rc": 0, "start": "2020-05-27 13:10:38.139328", "stderr": "", "stderr_lines": [], "stdout": "/dev/dm-0", "stdout_lines": ["/dev/dm-0"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [See whether the device node is present] ********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:21 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "stat": {"atime": 1590585018.802589, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "ctime": 1590585018.802589, "dev": 6, "device_type": 64768, "executable": false, "exists": true, "gid": 6, "gr_name": "disk", "inode": 1852, "isblk": true, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mimetype": "inode/symlink", "mode": "0660", "mtime": 1590585018.802589, "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/tmpr6sk038f/tests/test-verify-volume-device.yml:27 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:35 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:41 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "lvm"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:45 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:50 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:34 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_pool": null}, "changed": false} TASK [Verify the volumes with no pool were correctly managed] ****************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:41 TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:51 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_blkinfo": null, "storage_test_fstab": null, "storage_test_volume": null}, "changed": false} TASK [Repeat the previous invocation to verify idempotence] ******************** task path: /tmp/tmpr6sk038f/tests/tests_change_mount.yml:46 TASK [storage : Set version specific variables] ******************************** task path: /tmp/tmpr6sk038f/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/tmp/tmpr6sk038f/vars/Fedora.yml) => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-dm", "libblockdev-lvm", "libblockdev-part", "libblockdev-mdraid"]}, "ansible_included_var_files": ["/tmp/tmpr6sk038f/vars/Fedora.yml"], "ansible_loop_var": "item", "changed": false, "item": "/tmp/tmpr6sk038f/vars/Fedora.yml"} TASK [storage : define an empty list of pools to be used in testing] *********** task path: /tmp/tmpr6sk038f/tasks/main.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [storage : define an empty list of volumes to be used in testing] ********* task path: /tmp/tmpr6sk038f/tasks/main.yml:13 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : include the appropriate provider tasks] ************************ task path: /tmp/tmpr6sk038f/tasks/main.yml:17 included: /tmp/tmpr6sk038f/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [storage : get a list of rpm packages installed on host machine] ********** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [storage : make sure blivet is available] ********************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : initialize internal facts] ************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.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 [storage : Apply defaults to pools and volumes [1/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:28 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'name': 'foo', 'disks': ['vdb'], 'volumes': [{'name': 'test1', 'size': '3g', 'mount_point': '/opt/test2'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vdb"], "name": "foo", "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test2", "name": "test1", "size": "3g"}]}]}, "ansible_loop_var": "pool", "changed": false, "pool": {"disks": ["vdb"], "name": "foo", "volumes": [{"mount_point": "/opt/test2", "name": "test1", "size": "3g"}]}} TASK [storage : Apply defaults to pools and volumes [2/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:36 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=[{'state': 'present', 'type': 'lvm', 'name': 'foo', 'disks': ['vdb'], 'volumes': [{'name': 'test1', 'size': '3g', 'mount_point': '/opt/test2'}]}, {'name': 'test1', 'size': '3g', 'mount_point': '/opt/test2'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "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": ["vdb"], "name": "foo", "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test2", "name": "test1", "size": "3g"}]}, {"mount_point": "/opt/test2", "name": "test1", "size": "3g"}]} TASK [storage : Apply defaults to pools and volumes [3/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:44 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=[{'name': 'test1', 'size': '3g', 'mount_point': '/opt/test2'}, {'state': 'present', 'type': 'lvm', 'size': 0, 'fs_type': 'xfs', 'fs_label': '', 'fs_create_options': '', 'fs_overwrite_existing': True, 'mount_point': '', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid'}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"fs_create_options": "", "fs_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", "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"}, {"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "size": 0, "state": "present", "type": "lvm"}]} TASK [storage : Apply defaults to pools and volumes [4/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:52 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'name': 'foo', 'disks': ['vdb'], 'volumes': [{'name': 'test1', 'size': '3g', 'mount_point': '/opt/test2'}]}) => {"ansible_facts": {"_storage_vols_no_defaults_by_pool": {"foo": [{"fs_create_options": "", "fs_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", "size": "3g", "state": "present", "type": "lvm"}]}}, "ansible_loop_var": "item", "changed": false, "item": {"disks": ["vdb"], "name": "foo", "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test2", "name": "test1", "size": "3g"}]}} TASK [storage : Apply defaults to pools and volumes [5/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:61 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'name': 'foo', 'disks': ['vdb'], 'volumes': [{'name': 'test1', 'size': '3g', 'mount_point': '/opt/test2'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vdb"], "name": "foo", "state": "present", "type": "lvm", "volumes": [{"fs_create_options": "", "fs_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", "size": "3g", "state": "present", "type": "lvm"}]}]}, "ansible_index_var": "idx", "ansible_loop_var": "pool", "changed": false, "idx": 0, "pool": {"disks": ["vdb"], "name": "foo", "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test2", "name": "test1", "size": "3g"}]}} TASK [storage : Apply defaults to pools and volumes [6/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:72 TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools": [ { "disks": [ "vdb" ], "name": "foo", "state": "present", "type": "lvm", "volumes": [ { "fs_create_options": "", "fs_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", "size": "3g", "state": "present", "type": "lvm" } ] } ] } TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_volumes": [] } TASK [storage : get required packages] ***************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": [], "mounts": [], "packages": ["lvm2", "xfsprogs"], "pools": [], "volumes": []} TASK [storage : make sure required packages are installed] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : manage the pools and volumes to match the specified state] ***** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:104 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": ["/dev/sr0", "/dev/vda1", "/dev/mapper/foo-test1", "/dev/vdc"], "mounts": [{"dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test2", "src": "/dev/mapper/foo-test1", "state": "mounted"}], "packages": ["xfsprogs", "lvm2", "e2fsprogs"], "pools": [{"disks": ["vdb"], "name": "foo", "state": "present", "type": "lvm", "volumes": [{"_device": "/dev/mapper/foo-test1", "_mount_id": "/dev/mapper/foo-test1", "fs_create_options": "", "fs_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", "size": "3g", "state": "present", "type": "lvm"}]}], "volumes": []} TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:113 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "blivet_output": { "actions": [], "changed": false, "failed": false, "leaves": [ "/dev/sr0", "/dev/vda1", "/dev/mapper/foo-test1", "/dev/vdc" ], "mounts": [ { "dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test2", "src": "/dev/mapper/foo-test1", "state": "mounted" } ], "packages": [ "xfsprogs", "lvm2", "e2fsprogs" ], "pools": [ { "disks": [ "vdb" ], "name": "foo", "state": "present", "type": "lvm", "volumes": [ { "_device": "/dev/mapper/foo-test1", "_mount_id": "/dev/mapper/foo-test1", "fs_create_options": "", "fs_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", "size": "3g", "state": "present", "type": "lvm" } ] } ], "volumes": [] } } TASK [storage : set the list of pools for test verification] ******************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:116 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": [{"disks": ["vdb"], "name": "foo", "state": "present", "type": "lvm", "volumes": [{"_device": "/dev/mapper/foo-test1", "_mount_id": "/dev/mapper/foo-test1", "fs_create_options": "", "fs_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", "size": "3g", "state": "present", "type": "lvm"}]}]}, "changed": false} TASK [storage : set the list of volumes for test verification] ***************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:120 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : manage mounts to match the specified state] ******************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:132 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'src': '/dev/mapper/foo-test1', 'path': '/opt/test2', 'fstype': 'xfs', 'opts': 'defaults', 'dump': 0, 'passno': 0, 'state': 'mounted'}) => {"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 [storage : tell systemd to refresh its view of /etc/fstab] **************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:143 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [storage : Update facts] ************************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:153 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmpr6sk038f/tests/tests_change_mount.yml:58 included: /tmp/tmpr6sk038f/tests/verify-role-results.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [Print out pool information] ********************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:1 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools_list": [ { "disks": [ "vdb" ], "name": "foo", "state": "present", "type": "lvm", "volumes": [ { "_device": "/dev/mapper/foo-test1", "_mount_id": "/dev/mapper/foo-test1", "fs_create_options": "", "fs_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", "size": "3g", "state": "present", "type": "lvm" } ] } ] } TASK [Print out volume information] ******************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:6 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {} TASK [Collect info about the volumes.] ***************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:14 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "info": {"/dev/mapper/foo-test1": {"fstype": "xfs", "label": "", "name": "/dev/mapper/foo-test1", "type": "lvm", "uuid": "94295766-07d3-4246-9c63-06d1e90f5d1d"}, "/dev/sr0": {"fstype": "iso9660", "label": "cidata", "name": "/dev/sr0", "type": "rom", "uuid": "2020-05-27-13-07-16-00"}, "/dev/vda": {"fstype": "", "label": "", "name": "/dev/vda", "type": "disk", "uuid": ""}, "/dev/vda1": {"fstype": "ext4", "label": "", "name": "/dev/vda1", "type": "partition", "uuid": "ea711a29-e460-4879-9d70-9da99ae021f9"}, "/dev/vdb": {"fstype": "LVM2_member", "label": "", "name": "/dev/vdb", "type": "disk", "uuid": "DbfeYy-w4HF-xnSG-u7Rj-OUvf-MbZK-WzTuI2"}, "/dev/vdc": {"fstype": "", "label": "", "name": "/dev/vdc", "type": "disk", "uuid": ""}}} TASK [Read the /etc/fstab file for volume existence] *************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:19 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/fstab"], "delta": "0:00:01.003984", "end": "2020-05-27 13:10:51.680890", "rc": 0, "start": "2020-05-27 13:10:50.676906", "stderr": "", "stderr_lines": [], "stdout": "\n#\n# /etc/fstab\n# Created by anaconda on Fri Apr 26 02:02:19 2019\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=ea711a29-e460-4879-9d70-9da99ae021f9 / ext4 defaults 1 1\n/dev/mapper/foo-test1 /opt/test2 xfs defaults 0 0", "stdout_lines": ["", "#", "# /etc/fstab", "# Created by anaconda on Fri Apr 26 02:02:19 2019", "#", "# 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=ea711a29-e460-4879-9d70-9da99ae021f9 / ext4 defaults 1 1", "/dev/mapper/foo-test1 /opt/test2 xfs defaults 0 0"]} TASK [Verify the volumes listed in storage_pools were correctly managed] ******* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:27 [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/tmpr6sk038f/tests/test-verify-pool.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-pool.yml:5 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pool_tests": ["name", "type", "size", "members"]}, "changed": false} TASK [Verify the volumes in this pool were correctly managed] ****************** task path: /tmp/tmpr6sk038f/tests/test-verify-pool.yml:17 [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/tmpr6sk038f/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": true, "_storage_volume_tests": ["mount", "fstab", "fs", "device"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:12 included: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/foo-test1"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/foo-test1"], "delta": "0:00:00.003281", "end": "2020-05-27 13:10:52.202847", "rc": 0, "start": "2020-05-27 13:10:52.199566", "stderr": "", "stderr_lines": [], "stdout": "/dev/dm-0", "stdout_lines": ["/dev/dm-0"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Set some facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:20 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [{"block_available": 774836, "block_size": 4096, "block_total": 783872, "block_used": 9036, "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,noquota", "size_available": 3173728256, "size_total": 3210739712, "uuid": "94295766-07d3-4246-9c63-06d1e90f5d1d"}], "storage_test_mount_expected_match_count": "1", "storage_test_mount_point_matches": [{"block_available": 774836, "block_size": 4096, "block_total": 783872, "block_used": 9036, "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,noquota", "size_available": 3173728256, "size_total": 3210739712, "uuid": "94295766-07d3-4246-9c63-06d1e90f5d1d"}]}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:31 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:40 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:48 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Unset facts] ************************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:58 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_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/tmpr6sk038f/tests/test-verify-volume-fstab.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:16 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:23 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/foo-test1"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/foo-test1"], "delta": "0:00:00.003171", "end": "2020-05-27 13:10:52.790692", "rc": 0, "start": "2020-05-27 13:10:52.787521", "stderr": "", "stderr_lines": [], "stdout": "/dev/dm-0", "stdout_lines": ["/dev/dm-0"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify fs type] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:21 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify fs label] ********************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:27 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/foo-test1"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/foo-test1"], "delta": "0:00:00.002827", "end": "2020-05-27 13:10:53.223825", "rc": 0, "start": "2020-05-27 13:10:53.220998", "stderr": "", "stderr_lines": [], "stdout": "/dev/dm-0", "stdout_lines": ["/dev/dm-0"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [See whether the device node is present] ********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:21 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "stat": {"atime": 1590585018.802589, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "ctime": 1590585018.802589, "dev": 6, "device_type": 64768, "executable": false, "exists": true, "gid": 6, "gr_name": "disk", "inode": 1852, "isblk": true, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mimetype": "inode/symlink", "mode": "0660", "mtime": 1590585018.802589, "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/tmpr6sk038f/tests/test-verify-volume-device.yml:27 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:35 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:41 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "lvm"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:45 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:50 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:34 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_pool": null}, "changed": false} TASK [Verify the volumes with no pool were correctly managed] ****************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:41 TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:51 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_blkinfo": null, "storage_test_fstab": null, "storage_test_volume": null}, "changed": false} TASK [Clean up] **************************************************************** task path: /tmp/tmpr6sk038f/tests/tests_change_mount.yml:60 TASK [storage : Set version specific variables] ******************************** task path: /tmp/tmpr6sk038f/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/tmp/tmpr6sk038f/vars/Fedora.yml) => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-dm", "libblockdev-lvm", "libblockdev-part", "libblockdev-mdraid"]}, "ansible_included_var_files": ["/tmp/tmpr6sk038f/vars/Fedora.yml"], "ansible_loop_var": "item", "changed": false, "item": "/tmp/tmpr6sk038f/vars/Fedora.yml"} TASK [storage : define an empty list of pools to be used in testing] *********** task path: /tmp/tmpr6sk038f/tasks/main.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [storage : define an empty list of volumes to be used in testing] ********* task path: /tmp/tmpr6sk038f/tasks/main.yml:13 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : include the appropriate provider tasks] ************************ task path: /tmp/tmpr6sk038f/tasks/main.yml:17 included: /tmp/tmpr6sk038f/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [storage : get a list of rpm packages installed on host machine] ********** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [storage : make sure blivet is available] ********************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : initialize internal facts] ************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.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 [storage : Apply defaults to pools and volumes [1/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:28 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'name': 'foo', 'disks': ['vdb'], 'state': 'absent', 'volumes': [{'name': 'test1', 'size': '3g', 'mount_point': '/opt/test2'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vdb"], "name": "foo", "state": "absent", "type": "lvm", "volumes": [{"mount_point": "/opt/test2", "name": "test1", "size": "3g"}]}]}, "ansible_loop_var": "pool", "changed": false, "pool": {"disks": ["vdb"], "name": "foo", "state": "absent", "volumes": [{"mount_point": "/opt/test2", "name": "test1", "size": "3g"}]}} TASK [storage : Apply defaults to pools and volumes [2/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:36 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=[{'state': 'absent', 'type': 'lvm', 'name': 'foo', 'disks': ['vdb'], 'volumes': [{'name': 'test1', 'size': '3g', 'mount_point': '/opt/test2'}]}, {'name': 'test1', 'size': '3g', 'mount_point': '/opt/test2'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "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": ["vdb"], "name": "foo", "state": "absent", "type": "lvm", "volumes": [{"mount_point": "/opt/test2", "name": "test1", "size": "3g"}]}, {"mount_point": "/opt/test2", "name": "test1", "size": "3g"}]} TASK [storage : Apply defaults to pools and volumes [3/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:44 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=[{'name': 'test1', 'size': '3g', 'mount_point': '/opt/test2'}, {'state': 'present', 'type': 'lvm', 'size': 0, 'fs_type': 'xfs', 'fs_label': '', 'fs_create_options': '', 'fs_overwrite_existing': True, 'mount_point': '', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid'}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"fs_create_options": "", "fs_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", "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"}, {"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "size": 0, "state": "present", "type": "lvm"}]} TASK [storage : Apply defaults to pools and volumes [4/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:52 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'absent', 'type': 'lvm', 'name': 'foo', 'disks': ['vdb'], 'volumes': [{'name': 'test1', 'size': '3g', 'mount_point': '/opt/test2'}]}) => {"ansible_facts": {"_storage_vols_no_defaults_by_pool": {"foo": [{"fs_create_options": "", "fs_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", "size": "3g", "state": "present", "type": "lvm"}]}}, "ansible_loop_var": "item", "changed": false, "item": {"disks": ["vdb"], "name": "foo", "state": "absent", "type": "lvm", "volumes": [{"mount_point": "/opt/test2", "name": "test1", "size": "3g"}]}} TASK [storage : Apply defaults to pools and volumes [5/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:61 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'absent', 'type': 'lvm', 'name': 'foo', 'disks': ['vdb'], 'volumes': [{'name': 'test1', 'size': '3g', 'mount_point': '/opt/test2'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vdb"], "name": "foo", "state": "absent", "type": "lvm", "volumes": [{"fs_create_options": "", "fs_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", "size": "3g", "state": "present", "type": "lvm"}]}]}, "ansible_index_var": "idx", "ansible_loop_var": "pool", "changed": false, "idx": 0, "pool": {"disks": ["vdb"], "name": "foo", "state": "absent", "type": "lvm", "volumes": [{"mount_point": "/opt/test2", "name": "test1", "size": "3g"}]}} TASK [storage : Apply defaults to pools and volumes [6/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:72 TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools": [ { "disks": [ "vdb" ], "name": "foo", "state": "absent", "type": "lvm", "volumes": [ { "fs_create_options": "", "fs_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", "size": "3g", "state": "present", "type": "lvm" } ] } ] } TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_volumes": [] } TASK [storage : get required packages] ***************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": []} TASK [storage : make sure required packages are installed] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : manage the pools and volumes to match the specified state] ***** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:104 changed: [/cache/Fedora-Cloud-Base-30-1.2.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/vdb", "fs_type": "lvmpv"}], "changed": true, "leaves": ["/dev/sr0", "/dev/vda1", "/dev/vdb", "/dev/vdc"], "mounts": [{"path": "/opt/test2", "state": "absent"}], "packages": ["e2fsprogs"], "pools": [{"disks": ["vdb"], "name": "foo", "state": "absent", "type": "lvm", "volumes": [{"_device": "/dev/mapper/foo-test1", "_mount_id": "/dev/mapper/foo-test1", "fs_create_options": "", "fs_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", "size": "3g", "state": "present", "type": "lvm"}]}], "volumes": []} TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:113 ok: [/cache/Fedora-Cloud-Base-30-1.2.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/vdb", "fs_type": "lvmpv" } ], "changed": true, "failed": false, "leaves": [ "/dev/sr0", "/dev/vda1", "/dev/vdb", "/dev/vdc" ], "mounts": [ { "path": "/opt/test2", "state": "absent" } ], "packages": [ "e2fsprogs" ], "pools": [ { "disks": [ "vdb" ], "name": "foo", "state": "absent", "type": "lvm", "volumes": [ { "_device": "/dev/mapper/foo-test1", "_mount_id": "/dev/mapper/foo-test1", "fs_create_options": "", "fs_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", "size": "3g", "state": "present", "type": "lvm" } ] } ], "volumes": [] } } TASK [storage : set the list of pools for test verification] ******************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:116 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": [{"disks": ["vdb"], "name": "foo", "state": "absent", "type": "lvm", "volumes": [{"_device": "/dev/mapper/foo-test1", "_mount_id": "/dev/mapper/foo-test1", "fs_create_options": "", "fs_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", "size": "3g", "state": "present", "type": "lvm"}]}]}, "changed": false} TASK [storage : set the list of volumes for test verification] ***************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:120 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : manage mounts to match the specified state] ******************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:132 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'path': '/opt/test2', 'state': 'absent'}) => {"ansible_loop_var": "mount_info", "changed": true, "dump": "0", "fstab": "/etc/fstab", "mount_info": {"path": "/opt/test2", "state": "absent"}, "name": "/opt/test2", "opts": "defaults", "passno": "0"} TASK [storage : tell systemd to refresh its view of /etc/fstab] **************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:143 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [storage : Update facts] ************************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:153 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmpr6sk038f/tests/tests_change_mount.yml:73 included: /tmp/tmpr6sk038f/tests/verify-role-results.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [Print out pool information] ********************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:1 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools_list": [ { "disks": [ "vdb" ], "name": "foo", "state": "absent", "type": "lvm", "volumes": [ { "_device": "/dev/mapper/foo-test1", "_mount_id": "/dev/mapper/foo-test1", "fs_create_options": "", "fs_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", "size": "3g", "state": "present", "type": "lvm" } ] } ] } TASK [Print out volume information] ******************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:6 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {} TASK [Collect info about the volumes.] ***************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:14 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "info": {"/dev/sr0": {"fstype": "iso9660", "label": "cidata", "name": "/dev/sr0", "type": "rom", "uuid": "2020-05-27-13-07-16-00"}, "/dev/vda": {"fstype": "", "label": "", "name": "/dev/vda", "type": "disk", "uuid": ""}, "/dev/vda1": {"fstype": "ext4", "label": "", "name": "/dev/vda1", "type": "partition", "uuid": "ea711a29-e460-4879-9d70-9da99ae021f9"}, "/dev/vdb": {"fstype": "", "label": "", "name": "/dev/vdb", "type": "disk", "uuid": ""}, "/dev/vdc": {"fstype": "", "label": "", "name": "/dev/vdc", "type": "disk", "uuid": ""}}} TASK [Read the /etc/fstab file for volume existence] *************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:19 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/fstab"], "delta": "0:00:00.003285", "end": "2020-05-27 13:11:06.979529", "rc": 0, "start": "2020-05-27 13:11:06.976244", "stderr": "", "stderr_lines": [], "stdout": "\n#\n# /etc/fstab\n# Created by anaconda on Fri Apr 26 02:02:19 2019\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=ea711a29-e460-4879-9d70-9da99ae021f9 / ext4 defaults 1 1", "stdout_lines": ["", "#", "# /etc/fstab", "# Created by anaconda on Fri Apr 26 02:02:19 2019", "#", "# 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=ea711a29-e460-4879-9d70-9da99ae021f9 / ext4 defaults 1 1"]} TASK [Verify the volumes listed in storage_pools were correctly managed] ******* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:27 [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/tmpr6sk038f/tests/test-verify-pool.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-pool.yml:5 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pool_tests": ["name", "type", "size", "members"]}, "changed": false} TASK [Verify the volumes in this pool were correctly managed] ****************** task path: /tmp/tmpr6sk038f/tests/test-verify-pool.yml:17 [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/tmpr6sk038f/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": false, "_storage_volume_tests": ["mount", "fstab", "fs", "device"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:12 included: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/foo-test1"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/foo-test1"], "delta": "0:00:00.002665", "end": "2020-05-27 13:11:07.463996", "rc": 0, "start": "2020-05-27 13:11:07.461331", "stderr": "", "stderr_lines": [], "stdout": "/dev/mapper/foo-test1", "stdout_lines": ["/dev/mapper/foo-test1"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:15 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": {"changed": true, "cmd": ["realpath", "/dev/mapper/foo-test1"], "delta": "0:00:00.002665", "end": "2020-05-27 13:11:07.463996", "failed": false, "rc": 0, "start": "2020-05-27 13:11:07.461331", "stderr": "", "stderr_lines": [], "stdout": "/dev/mapper/foo-test1", "stdout_lines": ["/dev/mapper/foo-test1"]}}, "changed": false} TASK [Set some facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:20 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [], "storage_test_mount_expected_match_count": "0", "storage_test_mount_point_matches": []}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:31 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:40 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:48 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Unset facts] ************************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:58 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_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/tmpr6sk038f/tests/test-verify-volume-fstab.yml:9 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:16 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:23 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/foo-test1"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/foo-test1"], "delta": "0:00:00.003884", "end": "2020-05-27 13:11:08.038158", "rc": 0, "start": "2020-05-27 13:11:08.034274", "stderr": "", "stderr_lines": [], "stdout": "/dev/mapper/foo-test1", "stdout_lines": ["/dev/mapper/foo-test1"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:15 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": {"changed": true, "cmd": ["realpath", "/dev/mapper/foo-test1"], "delta": "0:00:00.003884", "end": "2020-05-27 13:11:08.038158", "failed": false, "rc": 0, "start": "2020-05-27 13:11:08.034274", "stderr": "", "stderr_lines": [], "stdout": "/dev/mapper/foo-test1", "stdout_lines": ["/dev/mapper/foo-test1"]}}, "changed": false} TASK [Verify fs type] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:21 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify fs label] ********************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:27 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/foo-test1"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/foo-test1"], "delta": "0:00:00.003129", "end": "2020-05-27 13:11:08.450978", "rc": 0, "start": "2020-05-27 13:11:08.447849", "stderr": "", "stderr_lines": [], "stdout": "/dev/mapper/foo-test1", "stdout_lines": ["/dev/mapper/foo-test1"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:15 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": {"changed": true, "cmd": ["realpath", "/dev/mapper/foo-test1"], "delta": "0:00:00.003129", "end": "2020-05-27 13:11:08.450978", "failed": false, "rc": 0, "start": "2020-05-27 13:11:08.447849", "stderr": "", "stderr_lines": [], "stdout": "/dev/mapper/foo-test1", "stdout_lines": ["/dev/mapper/foo-test1"]}}, "changed": false} TASK [See whether the device node is present] ********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:21 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "stat": {"exists": false}} TASK [Verify the presence/absence of the device node] ************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:27 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:35 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:41 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "lvm"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:45 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:50 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Clean up facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:34 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_pool": null}, "changed": false} TASK [Verify the volumes with no pool were correctly managed] ****************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:41 TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:51 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_blkinfo": null, "storage_test_fstab": null, "storage_test_volume": null}, "changed": false} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 : ok=253 changed=18 unreachable=0 failed=0 skipped=47 rescued=0 ignored=0 + cd /tmp/tmpr6sk038f/tests; TEST_SUBJECTS=/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_storage-91-a6b7623-fedora-30-97_lk9m2/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmpr6sk038f/_setup.yml /tmp/tmpr6sk038f/tests/tests_create_disk_then_remove.yml ansible-playbook 2.9.9 config file = /etc/ansible/ansible.cfg configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.8/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 3.8.2 (default, Feb 28 2020, 00:00:00) [GCC 10.0.1 20200216 (Red Hat 10.0.1-0.8)] Using /etc/ansible/ansible.cfg as config file PLAYBOOK: _setup.yml *********************************************************** 1 plays in /tmp/tmpr6sk038f/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmpr6sk038f/_setup.yml:5 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "groups": { "all": [ "/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2" ], "localhost": [ "/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2" ], "subjects": [ "/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmpr6sk038f/_setup.yml:7 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/Fedora-Cloud-Base-30-1.2.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/tmpr6sk038f/tests/tests_create_disk_then_remove.yml PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpr6sk038f/tests/tests_create_disk_then_remove.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] META: ran handlers TASK [include_role : storage] ************************************************** task path: /tmp/tmpr6sk038f/tests/tests_create_disk_then_remove.yml:9 TASK [storage : Set version specific variables] ******************************** task path: /tmp/tmpr6sk038f/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/tmp/tmpr6sk038f/vars/Fedora.yml) => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-dm", "libblockdev-lvm", "libblockdev-part", "libblockdev-mdraid"]}, "ansible_included_var_files": ["/tmp/tmpr6sk038f/vars/Fedora.yml"], "ansible_loop_var": "item", "changed": false, "item": "/tmp/tmpr6sk038f/vars/Fedora.yml"} TASK [storage : define an empty list of pools to be used in testing] *********** task path: /tmp/tmpr6sk038f/tasks/main.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [storage : define an empty list of volumes to be used in testing] ********* task path: /tmp/tmpr6sk038f/tasks/main.yml:13 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : include the appropriate provider tasks] ************************ task path: /tmp/tmpr6sk038f/tasks/main.yml:17 included: /tmp/tmpr6sk038f/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [storage : get a list of rpm packages installed on host machine] ********** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [storage : make sure blivet is available] ********************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:7 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: libblockdev-mpath-2.23-1.fc30.x86_64", "Installed: libblockdev-nvdimm-2.23-1.fc30.x86_64", "Installed: userspace-rcu-0.10.1-5.fc30.x86_64", "Installed: libblockdev-part-2.23-1.fc30.x86_64", "Installed: dmraid-1.0.0.rc16-41.fc30.x86_64", "Installed: dmraid-events-1.0.0.rc16-41.fc30.x86_64", "Installed: lzo-2.08-15.fc30.x86_64", "Installed: libblockdev-swap-2.23-1.fc30.x86_64", "Installed: lvm2-2.02.183-3.fc30.x86_64", "Installed: libblockdev-utils-2.23-1.fc30.x86_64", "Installed: lvm2-libs-2.02.183-3.fc30.x86_64", "Installed: python3-blivet-1:3.1.4-1.fc30.noarch", "Installed: python3-blockdev-2.23-1.fc30.x86_64", "Installed: daxctl-libs-68-1.fc30.x86_64", "Installed: mdadm-4.1-1.fc30.x86_64", "Installed: blivet-data-1:3.1.4-1.fc30.noarch", "Installed: sgpio-1.2.0.10-23.fc30.x86_64", "Installed: nspr-4.25.0-1.fc30.x86_64", "Installed: python3-bytesize-2.2-1.fc30.x86_64", "Installed: device-mapper-event-1.02.154-3.fc30.x86_64", "Installed: lsof-4.91-3.fc30.x86_64", "Installed: nss-3.51.1-1.fc30.x86_64", "Installed: device-mapper-event-libs-1.02.154-3.fc30.x86_64", "Installed: device-mapper-multipath-0.7.9-6.git2df6110.fc30.x86_64", "Installed: gdisk-1.0.5-1.fc30.x86_64", "Installed: device-mapper-multipath-libs-0.7.9-6.git2df6110.fc30.x86_64", "Installed: nss-softokn-3.51.1-1.fc30.x86_64", "Installed: python3-gobject-base-3.32.2-1.fc30.x86_64", "Installed: device-mapper-persistent-data-0.7.6-4.fc30.x86_64", "Installed: gobject-introspection-1.60.2-1.fc30.x86_64", "Installed: nss-softokn-freebl-3.51.1-1.fc30.x86_64", "Installed: libbytesize-2.2-1.fc30.x86_64", "Installed: nss-sysinit-3.51.1-1.fc30.x86_64", "Installed: nss-util-3.51.1-1.fc30.x86_64", "Installed: volume_key-libs-0.3.12-3.fc30.x86_64", "Installed: bcache-tools-1.0.8-15.fc30.x86_64", "Installed: ndctl-68-1.fc30.x86_64", "Installed: ndctl-libs-68-1.fc30.x86_64", "Installed: libblockdev-2.23-1.fc30.x86_64", "Installed: libblockdev-btrfs-2.23-1.fc30.x86_64", "Installed: libblockdev-crypto-2.23-1.fc30.x86_64", "Installed: python3-pyudev-0.21.0-10.fc30.noarch", "Installed: btrfs-progs-5.6-1.fc30.x86_64", "Installed: libblockdev-dm-2.23-1.fc30.x86_64", "Installed: libblockdev-fs-2.23-1.fc30.x86_64", "Installed: libblockdev-kbd-2.23-1.fc30.x86_64", "Installed: libblockdev-loop-2.23-1.fc30.x86_64", "Installed: libblockdev-lvm-2.23-1.fc30.x86_64", "Installed: python3-pyparted-1:3.11.2-1.fc30.x86_64", "Installed: libaio-0.3.111-4.fc30.x86_64", "Installed: libblockdev-mdraid-2.23-1.fc30.x86_64"]} TASK [storage : initialize internal facts] ************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.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 [storage : Apply defaults to pools and volumes [1/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:28 TASK [storage : Apply defaults to pools and volumes [2/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:36 TASK [storage : Apply defaults to pools and volumes [3/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:44 TASK [storage : Apply defaults to pools and volumes [4/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:52 TASK [storage : Apply defaults to pools and volumes [5/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:61 TASK [storage : Apply defaults to pools and volumes [6/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:72 TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools": [] } TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_volumes": [] } TASK [storage : get required packages] ***************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": []} TASK [storage : make sure required packages are installed] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : manage the pools and volumes to match the specified state] ***** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:104 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": []} TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:113 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "blivet_output": { "actions": [], "changed": false, "failed": false, "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": [] } } TASK [storage : set the list of pools for test verification] ******************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:116 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [storage : set the list of volumes for test verification] ***************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:120 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : manage mounts to match the specified state] ******************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:132 TASK [storage : tell systemd to refresh its view of /etc/fstab] **************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:143 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [storage : Update facts] ************************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:153 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmpr6sk038f/tests/tests_create_disk_then_remove.yml:12 included: /tmp/tmpr6sk038f/tests/get_unused_disk.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [Find unused disks in the system] ***************************************** task path: /tmp/tmpr6sk038f/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-30-1.2.x86_64.qcow2] => {"changed": false, "disks": ["vdb"]} TASK [set_fact] **************************************************************** task path: /tmp/tmpr6sk038f/tests/get_unused_disk.yml:8 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"unused_disks": ["vdb"]}, "changed": false} TASK [Exit playbook when there's not enough unused disks in the system] ******** task path: /tmp/tmpr6sk038f/tests/get_unused_disk.yml:12 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Print unused disks] ****************************************************** task path: /tmp/tmpr6sk038f/tests/get_unused_disk.yml:17 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "unused_disks": [ "vdb" ] } TASK [Create a disk device mounted on "/opt/test1"] **************************** task path: /tmp/tmpr6sk038f/tests/tests_create_disk_then_remove.yml:16 TASK [storage : Set version specific variables] ******************************** task path: /tmp/tmpr6sk038f/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/tmp/tmpr6sk038f/vars/Fedora.yml) => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-dm", "libblockdev-lvm", "libblockdev-part", "libblockdev-mdraid"]}, "ansible_included_var_files": ["/tmp/tmpr6sk038f/vars/Fedora.yml"], "ansible_loop_var": "item", "changed": false, "item": "/tmp/tmpr6sk038f/vars/Fedora.yml"} TASK [storage : define an empty list of pools to be used in testing] *********** task path: /tmp/tmpr6sk038f/tasks/main.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [storage : define an empty list of volumes to be used in testing] ********* task path: /tmp/tmpr6sk038f/tasks/main.yml:13 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : include the appropriate provider tasks] ************************ task path: /tmp/tmpr6sk038f/tasks/main.yml:17 included: /tmp/tmpr6sk038f/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [storage : get a list of rpm packages installed on host machine] ********** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [storage : make sure blivet is available] ********************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : initialize internal facts] ************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.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 [storage : Apply defaults to pools and volumes [1/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:28 TASK [storage : Apply defaults to pools and volumes [2/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:36 TASK [storage : Apply defaults to pools and volumes [3/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:44 TASK [storage : Apply defaults to pools and volumes [4/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:52 TASK [storage : Apply defaults to pools and volumes [5/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:61 TASK [storage : Apply defaults to pools and volumes [6/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:72 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'name': 'test1', 'type': 'disk', 'disks': ['vdb'], 'mount_point': '/opt/test1'}) => {"ansible_facts": {"_storage_volumes": [{"disks": ["vdb"], "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "size": 0, "state": "present", "type": "disk"}]}, "ansible_loop_var": "volume", "changed": false, "volume": {"disks": ["vdb"], "mount_point": "/opt/test1", "name": "test1", "type": "disk"}} TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools": [] } TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_volumes": [ { "disks": [ "vdb" ], "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "size": 0, "state": "present", "type": "disk" } ] } TASK [storage : get required packages] ***************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": [], "mounts": [], "packages": ["xfsprogs"], "pools": [], "volumes": []} TASK [storage : make sure required packages are installed] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : manage the pools and volumes to match the specified state] ***** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:104 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [{"action": "create format", "device": "/dev/vdb", "fs_type": "xfs"}], "changed": true, "leaves": ["/dev/sr0", "/dev/vda1", "/dev/vdb", "/dev/vdc"], "mounts": [{"dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "/dev/vdb", "state": "mounted"}], "packages": ["e2fsprogs", "xfsprogs"], "pools": [], "volumes": [{"_device": "/dev/vdb", "_mount_id": "/dev/vdb", "disks": ["vdb"], "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "size": 0, "state": "present", "type": "disk"}]} TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:113 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "blivet_output": { "actions": [ { "action": "create format", "device": "/dev/vdb", "fs_type": "xfs" } ], "changed": true, "failed": false, "leaves": [ "/dev/sr0", "/dev/vda1", "/dev/vdb", "/dev/vdc" ], "mounts": [ { "dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "/dev/vdb", "state": "mounted" } ], "packages": [ "e2fsprogs", "xfsprogs" ], "pools": [], "volumes": [ { "_device": "/dev/vdb", "_mount_id": "/dev/vdb", "disks": [ "vdb" ], "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "size": 0, "state": "present", "type": "disk" } ] } } TASK [storage : set the list of pools for test verification] ******************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:116 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [storage : set the list of volumes for test verification] ***************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:120 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": [{"_device": "/dev/vdb", "_mount_id": "/dev/vdb", "disks": ["vdb"], "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "size": 0, "state": "present", "type": "disk"}]}, "changed": false} TASK [storage : manage mounts to match the specified state] ******************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:132 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'src': '/dev/vdb', 'path': '/opt/test1', 'fstype': 'xfs', 'opts': 'defaults', 'dump': 0, 'passno': 0, 'state': 'mounted'}) => {"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/vdb", "state": "mounted"}, "name": "/opt/test1", "opts": "defaults", "passno": "0", "src": "/dev/vdb"} TASK [storage : tell systemd to refresh its view of /etc/fstab] **************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:143 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [storage : Update facts] ************************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:153 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmpr6sk038f/tests/tests_create_disk_then_remove.yml:26 included: /tmp/tmpr6sk038f/tests/verify-role-results.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [Print out pool information] ********************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:1 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {} TASK [Print out volume information] ******************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_volumes_list": [ { "_device": "/dev/vdb", "_mount_id": "/dev/vdb", "disks": [ "vdb" ], "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "size": 0, "state": "present", "type": "disk" } ] } TASK [Collect info about the volumes.] ***************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:14 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "info": {"/dev/sr0": {"fstype": "iso9660", "label": "cidata", "name": "/dev/sr0", "type": "rom", "uuid": "2020-05-27-13-11-09-00"}, "/dev/vda": {"fstype": "", "label": "", "name": "/dev/vda", "type": "disk", "uuid": ""}, "/dev/vda1": {"fstype": "ext4", "label": "", "name": "/dev/vda1", "type": "partition", "uuid": "ea711a29-e460-4879-9d70-9da99ae021f9"}, "/dev/vdb": {"fstype": "xfs", "label": "", "name": "/dev/vdb", "type": "disk", "uuid": "82752c6b-04ac-488f-a251-090ac870f447"}, "/dev/vdc": {"fstype": "", "label": "", "name": "/dev/vdc", "type": "disk", "uuid": ""}}} TASK [Read the /etc/fstab file for volume existence] *************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:19 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/fstab"], "delta": "0:00:00.002387", "end": "2020-05-27 13:14:02.397745", "rc": 0, "start": "2020-05-27 13:14:02.395358", "stderr": "", "stderr_lines": [], "stdout": "\n#\n# /etc/fstab\n# Created by anaconda on Fri Apr 26 02:02:19 2019\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=ea711a29-e460-4879-9d70-9da99ae021f9 / ext4 defaults 1 1\n/dev/vdb /opt/test1 xfs defaults 0 0", "stdout_lines": ["", "#", "# /etc/fstab", "# Created by anaconda on Fri Apr 26 02:02:19 2019", "#", "# 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=ea711a29-e460-4879-9d70-9da99ae021f9 / ext4 defaults 1 1", "/dev/vdb /opt/test1 xfs defaults 0 0"]} TASK [Verify the volumes listed in storage_pools were correctly managed] ******* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:27 TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:34 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_pool": null}, "changed": false} TASK [Verify the volumes with no pool were correctly managed] ****************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:41 included: /tmp/tmpr6sk038f/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": true, "_storage_volume_tests": ["mount", "fstab", "fs", "device"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:12 included: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/vdb"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/vdb"], "delta": "0:00:00.003937", "end": "2020-05-27 13:14:02.848289", "rc": 0, "start": "2020-05-27 13:14:02.844352", "stderr": "", "stderr_lines": [], "stdout": "/dev/vdb", "stdout_lines": ["/dev/vdb"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Set some facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:20 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [{"block_available": 2608012, "block_size": 4096, "block_total": 2618880, "block_used": 10868, "device": "/dev/vdb", "fstype": "xfs", "inode_available": 5242877, "inode_total": 5242880, "inode_used": 3, "mount": "/opt/test1", "options": "rw,seclabel,relatime,attr2,inode64,noquota", "size_available": 10682417152, "size_total": 10726932480, "uuid": "82752c6b-04ac-488f-a251-090ac870f447"}], "storage_test_mount_expected_match_count": "1", "storage_test_mount_point_matches": [{"block_available": 2608012, "block_size": 4096, "block_total": 2618880, "block_used": 10868, "device": "/dev/vdb", "fstype": "xfs", "inode_available": 5242877, "inode_total": 5242880, "inode_used": 3, "mount": "/opt/test1", "options": "rw,seclabel,relatime,attr2,inode64,noquota", "size_available": 10682417152, "size_total": 10726932480, "uuid": "82752c6b-04ac-488f-a251-090ac870f447"}]}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:31 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:40 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:48 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Unset facts] ************************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:58 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_matches": "1", "storage_test_fstab_id_matches": ["/dev/vdb "], "storage_test_fstab_mount_point_matches": [" /opt/test1 "]}, "changed": false} TASK [Verify that the device identifier appears in /etc/fstab] ***************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:16 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:23 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/vdb"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/vdb"], "delta": "0:00:00.002799", "end": "2020-05-27 13:14:03.371956", "rc": 0, "start": "2020-05-27 13:14:03.369157", "stderr": "", "stderr_lines": [], "stdout": "/dev/vdb", "stdout_lines": ["/dev/vdb"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify fs type] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:21 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify fs label] ********************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:27 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/vdb"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/vdb"], "delta": "0:00:00.002411", "end": "2020-05-27 13:14:03.756605", "rc": 0, "start": "2020-05-27 13:14:03.754194", "stderr": "", "stderr_lines": [], "stdout": "/dev/vdb", "stdout_lines": ["/dev/vdb"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [See whether the device node is present] ********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:21 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "stat": {"atime": 1590585239.3330436, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "ctime": 1590585239.3330436, "dev": 6, "device_type": 64528, "executable": false, "exists": true, "gid": 6, "gr_name": "disk", "inode": 1364, "isblk": true, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mimetype": "inode/blockdevice", "mode": "0660", "mtime": 1590585239.3330436, "nlink": 1, "path": "/dev/vdb", "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/tmpr6sk038f/tests/test-verify-volume-device.yml:27 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:35 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:41 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "disk"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:45 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:50 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:51 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_blkinfo": null, "storage_test_fstab": null, "storage_test_volume": null}, "changed": false} TASK [Repeat the previous invocation to verify idempotence] ******************** task path: /tmp/tmpr6sk038f/tests/tests_create_disk_then_remove.yml:28 TASK [storage : Set version specific variables] ******************************** task path: /tmp/tmpr6sk038f/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/tmp/tmpr6sk038f/vars/Fedora.yml) => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-dm", "libblockdev-lvm", "libblockdev-part", "libblockdev-mdraid"]}, "ansible_included_var_files": ["/tmp/tmpr6sk038f/vars/Fedora.yml"], "ansible_loop_var": "item", "changed": false, "item": "/tmp/tmpr6sk038f/vars/Fedora.yml"} TASK [storage : define an empty list of pools to be used in testing] *********** task path: /tmp/tmpr6sk038f/tasks/main.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [storage : define an empty list of volumes to be used in testing] ********* task path: /tmp/tmpr6sk038f/tasks/main.yml:13 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : include the appropriate provider tasks] ************************ task path: /tmp/tmpr6sk038f/tasks/main.yml:17 included: /tmp/tmpr6sk038f/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [storage : get a list of rpm packages installed on host machine] ********** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [storage : make sure blivet is available] ********************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : initialize internal facts] ************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.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 [storage : Apply defaults to pools and volumes [1/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:28 TASK [storage : Apply defaults to pools and volumes [2/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:36 TASK [storage : Apply defaults to pools and volumes [3/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:44 TASK [storage : Apply defaults to pools and volumes [4/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:52 TASK [storage : Apply defaults to pools and volumes [5/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:61 TASK [storage : Apply defaults to pools and volumes [6/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:72 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'name': 'test1', 'type': 'disk', 'disks': ['vdb'], 'mount_point': '/opt/test1'}) => {"ansible_facts": {"_storage_volumes": [{"disks": ["vdb"], "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "size": 0, "state": "present", "type": "disk"}]}, "ansible_loop_var": "volume", "changed": false, "volume": {"disks": ["vdb"], "mount_point": "/opt/test1", "name": "test1", "type": "disk"}} TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools": [] } TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_volumes": [ { "disks": [ "vdb" ], "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "size": 0, "state": "present", "type": "disk" } ] } TASK [storage : get required packages] ***************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": [], "mounts": [], "packages": ["xfsprogs"], "pools": [], "volumes": []} TASK [storage : make sure required packages are installed] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : manage the pools and volumes to match the specified state] ***** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:104 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": ["/dev/sr0", "/dev/vda1", "/dev/vdb", "/dev/vdc"], "mounts": [{"dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "UUID=82752c6b-04ac-488f-a251-090ac870f447", "state": "mounted"}], "packages": ["e2fsprogs", "xfsprogs"], "pools": [], "volumes": [{"_device": "/dev/vdb", "_mount_id": "UUID=82752c6b-04ac-488f-a251-090ac870f447", "disks": ["vdb"], "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "size": 0, "state": "present", "type": "disk"}]} TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:113 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "blivet_output": { "actions": [], "changed": false, "failed": false, "leaves": [ "/dev/sr0", "/dev/vda1", "/dev/vdb", "/dev/vdc" ], "mounts": [ { "dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "UUID=82752c6b-04ac-488f-a251-090ac870f447", "state": "mounted" } ], "packages": [ "e2fsprogs", "xfsprogs" ], "pools": [], "volumes": [ { "_device": "/dev/vdb", "_mount_id": "UUID=82752c6b-04ac-488f-a251-090ac870f447", "disks": [ "vdb" ], "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "size": 0, "state": "present", "type": "disk" } ] } } TASK [storage : set the list of pools for test verification] ******************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:116 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [storage : set the list of volumes for test verification] ***************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:120 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": [{"_device": "/dev/vdb", "_mount_id": "UUID=82752c6b-04ac-488f-a251-090ac870f447", "disks": ["vdb"], "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "size": 0, "state": "present", "type": "disk"}]}, "changed": false} TASK [storage : manage mounts to match the specified state] ******************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:132 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'src': 'UUID=82752c6b-04ac-488f-a251-090ac870f447', 'path': '/opt/test1', 'fstype': 'xfs', 'opts': 'defaults', 'dump': 0, 'passno': 0, 'state': 'mounted'}) => {"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=82752c6b-04ac-488f-a251-090ac870f447", "state": "mounted"}, "name": "/opt/test1", "opts": "defaults", "passno": "0", "src": "UUID=82752c6b-04ac-488f-a251-090ac870f447"} TASK [storage : tell systemd to refresh its view of /etc/fstab] **************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:143 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [storage : Update facts] ************************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:153 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmpr6sk038f/tests/tests_create_disk_then_remove.yml:38 included: /tmp/tmpr6sk038f/tests/verify-role-results.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [Print out pool information] ********************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:1 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {} TASK [Print out volume information] ******************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_volumes_list": [ { "_device": "/dev/vdb", "_mount_id": "UUID=82752c6b-04ac-488f-a251-090ac870f447", "disks": [ "vdb" ], "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "size": 0, "state": "present", "type": "disk" } ] } TASK [Collect info about the volumes.] ***************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:14 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "info": {"/dev/sr0": {"fstype": "iso9660", "label": "cidata", "name": "/dev/sr0", "type": "rom", "uuid": "2020-05-27-13-11-09-00"}, "/dev/vda": {"fstype": "", "label": "", "name": "/dev/vda", "type": "disk", "uuid": ""}, "/dev/vda1": {"fstype": "ext4", "label": "", "name": "/dev/vda1", "type": "partition", "uuid": "ea711a29-e460-4879-9d70-9da99ae021f9"}, "/dev/vdb": {"fstype": "xfs", "label": "", "name": "/dev/vdb", "type": "disk", "uuid": "82752c6b-04ac-488f-a251-090ac870f447"}, "/dev/vdc": {"fstype": "", "label": "", "name": "/dev/vdc", "type": "disk", "uuid": ""}}} TASK [Read the /etc/fstab file for volume existence] *************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:19 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/fstab"], "delta": "0:00:00.002705", "end": "2020-05-27 13:14:15.993283", "rc": 0, "start": "2020-05-27 13:14:15.990578", "stderr": "", "stderr_lines": [], "stdout": "\n#\n# /etc/fstab\n# Created by anaconda on Fri Apr 26 02:02:19 2019\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=ea711a29-e460-4879-9d70-9da99ae021f9 / ext4 defaults 1 1\nUUID=82752c6b-04ac-488f-a251-090ac870f447 /opt/test1 xfs defaults 0 0", "stdout_lines": ["", "#", "# /etc/fstab", "# Created by anaconda on Fri Apr 26 02:02:19 2019", "#", "# 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=ea711a29-e460-4879-9d70-9da99ae021f9 / ext4 defaults 1 1", "UUID=82752c6b-04ac-488f-a251-090ac870f447 /opt/test1 xfs defaults 0 0"]} TASK [Verify the volumes listed in storage_pools were correctly managed] ******* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:27 TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:34 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_pool": null}, "changed": false} TASK [Verify the volumes with no pool were correctly managed] ****************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:41 [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/tmpr6sk038f/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": true, "_storage_volume_tests": ["mount", "fstab", "fs", "device"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:12 included: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/vdb"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/vdb"], "delta": "0:00:00.002467", "end": "2020-05-27 13:14:16.473253", "rc": 0, "start": "2020-05-27 13:14:16.470786", "stderr": "", "stderr_lines": [], "stdout": "/dev/vdb", "stdout_lines": ["/dev/vdb"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Set some facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:20 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [{"block_available": 2608012, "block_size": 4096, "block_total": 2618880, "block_used": 10868, "device": "/dev/vdb", "fstype": "xfs", "inode_available": 5242877, "inode_total": 5242880, "inode_used": 3, "mount": "/opt/test1", "options": "rw,seclabel,relatime,attr2,inode64,noquota", "size_available": 10682417152, "size_total": 10726932480, "uuid": "82752c6b-04ac-488f-a251-090ac870f447"}], "storage_test_mount_expected_match_count": "1", "storage_test_mount_point_matches": [{"block_available": 2608012, "block_size": 4096, "block_total": 2618880, "block_used": 10868, "device": "/dev/vdb", "fstype": "xfs", "inode_available": 5242877, "inode_total": 5242880, "inode_used": 3, "mount": "/opt/test1", "options": "rw,seclabel,relatime,attr2,inode64,noquota", "size_available": 10682417152, "size_total": 10726932480, "uuid": "82752c6b-04ac-488f-a251-090ac870f447"}]}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:31 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:40 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:48 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Unset facts] ************************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:58 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_matches": "1", "storage_test_fstab_id_matches": ["UUID=82752c6b-04ac-488f-a251-090ac870f447 "], "storage_test_fstab_mount_point_matches": [" /opt/test1 "]}, "changed": false} TASK [Verify that the device identifier appears in /etc/fstab] ***************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:16 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:23 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/vdb"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/vdb"], "delta": "0:00:00.003004", "end": "2020-05-27 13:14:17.027830", "rc": 0, "start": "2020-05-27 13:14:17.024826", "stderr": "", "stderr_lines": [], "stdout": "/dev/vdb", "stdout_lines": ["/dev/vdb"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify fs type] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:21 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify fs label] ********************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:27 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/vdb"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/vdb"], "delta": "0:00:00.002639", "end": "2020-05-27 13:14:17.437874", "rc": 0, "start": "2020-05-27 13:14:17.435235", "stderr": "", "stderr_lines": [], "stdout": "/dev/vdb", "stdout_lines": ["/dev/vdb"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [See whether the device node is present] ********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:21 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "stat": {"atime": 1590585239.3330436, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "ctime": 1590585239.3330436, "dev": 6, "device_type": 64528, "executable": false, "exists": true, "gid": 6, "gr_name": "disk", "inode": 1364, "isblk": true, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mimetype": "inode/blockdevice", "mode": "0660", "mtime": 1590585239.3330436, "nlink": 1, "path": "/dev/vdb", "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/tmpr6sk038f/tests/test-verify-volume-device.yml:27 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:35 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:41 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "disk"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:45 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:50 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:51 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_blkinfo": null, "storage_test_fstab": null, "storage_test_volume": null}, "changed": false} TASK [Remove the disk device created above] ************************************ task path: /tmp/tmpr6sk038f/tests/tests_create_disk_then_remove.yml:40 TASK [storage : Set version specific variables] ******************************** task path: /tmp/tmpr6sk038f/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/tmp/tmpr6sk038f/vars/Fedora.yml) => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-dm", "libblockdev-lvm", "libblockdev-part", "libblockdev-mdraid"]}, "ansible_included_var_files": ["/tmp/tmpr6sk038f/vars/Fedora.yml"], "ansible_loop_var": "item", "changed": false, "item": "/tmp/tmpr6sk038f/vars/Fedora.yml"} TASK [storage : define an empty list of pools to be used in testing] *********** task path: /tmp/tmpr6sk038f/tasks/main.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [storage : define an empty list of volumes to be used in testing] ********* task path: /tmp/tmpr6sk038f/tasks/main.yml:13 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : include the appropriate provider tasks] ************************ task path: /tmp/tmpr6sk038f/tasks/main.yml:17 included: /tmp/tmpr6sk038f/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [storage : get a list of rpm packages installed on host machine] ********** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [storage : make sure blivet is available] ********************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : initialize internal facts] ************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.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 [storage : Apply defaults to pools and volumes [1/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:28 TASK [storage : Apply defaults to pools and volumes [2/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:36 TASK [storage : Apply defaults to pools and volumes [3/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:44 TASK [storage : Apply defaults to pools and volumes [4/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:52 TASK [storage : Apply defaults to pools and volumes [5/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:61 TASK [storage : Apply defaults to pools and volumes [6/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:72 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'name': 'test1', 'type': 'disk', 'disks': ['vdb'], 'mount_point': '/opt/test1', 'state': 'absent'}) => {"ansible_facts": {"_storage_volumes": [{"disks": ["vdb"], "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "size": 0, "state": "absent", "type": "disk"}]}, "ansible_loop_var": "volume", "changed": false, "volume": {"disks": ["vdb"], "mount_point": "/opt/test1", "name": "test1", "state": "absent", "type": "disk"}} TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools": [] } TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_volumes": [ { "disks": [ "vdb" ], "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "size": 0, "state": "absent", "type": "disk" } ] } TASK [storage : get required packages] ***************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": []} TASK [storage : make sure required packages are installed] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : manage the pools and volumes to match the specified state] ***** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:104 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [{"action": "destroy format", "device": "/dev/vdb", "fs_type": "xfs"}], "changed": true, "leaves": ["/dev/sr0", "/dev/vda1", "/dev/vdb", "/dev/vdc"], "mounts": [{"path": "/opt/test1", "state": "absent"}], "packages": ["e2fsprogs"], "pools": [], "volumes": [{"_device": "/dev/vdb", "_mount_id": "UUID=82752c6b-04ac-488f-a251-090ac870f447", "disks": ["vdb"], "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "size": 0, "state": "absent", "type": "disk"}]} TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:113 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "blivet_output": { "actions": [ { "action": "destroy format", "device": "/dev/vdb", "fs_type": "xfs" } ], "changed": true, "failed": false, "leaves": [ "/dev/sr0", "/dev/vda1", "/dev/vdb", "/dev/vdc" ], "mounts": [ { "path": "/opt/test1", "state": "absent" } ], "packages": [ "e2fsprogs" ], "pools": [], "volumes": [ { "_device": "/dev/vdb", "_mount_id": "UUID=82752c6b-04ac-488f-a251-090ac870f447", "disks": [ "vdb" ], "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "size": 0, "state": "absent", "type": "disk" } ] } } TASK [storage : set the list of pools for test verification] ******************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:116 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [storage : set the list of volumes for test verification] ***************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:120 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": [{"_device": "/dev/vdb", "_mount_id": "UUID=82752c6b-04ac-488f-a251-090ac870f447", "disks": ["vdb"], "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "size": 0, "state": "absent", "type": "disk"}]}, "changed": false} TASK [storage : manage mounts to match the specified state] ******************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:132 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'path': '/opt/test1', 'state': '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 [storage : tell systemd to refresh its view of /etc/fstab] **************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:143 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [storage : Update facts] ************************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:153 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmpr6sk038f/tests/tests_create_disk_then_remove.yml:51 included: /tmp/tmpr6sk038f/tests/verify-role-results.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [Print out pool information] ********************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:1 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {} TASK [Print out volume information] ******************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_volumes_list": [ { "_device": "/dev/vdb", "_mount_id": "UUID=82752c6b-04ac-488f-a251-090ac870f447", "disks": [ "vdb" ], "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "size": 0, "state": "absent", "type": "disk" } ] } TASK [Collect info about the volumes.] ***************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:14 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "info": {"/dev/sr0": {"fstype": "iso9660", "label": "cidata", "name": "/dev/sr0", "type": "rom", "uuid": "2020-05-27-13-11-09-00"}, "/dev/vda": {"fstype": "", "label": "", "name": "/dev/vda", "type": "disk", "uuid": ""}, "/dev/vda1": {"fstype": "ext4", "label": "", "name": "/dev/vda1", "type": "partition", "uuid": "ea711a29-e460-4879-9d70-9da99ae021f9"}, "/dev/vdb": {"fstype": "", "label": "", "name": "/dev/vdb", "type": "disk", "uuid": ""}, "/dev/vdc": {"fstype": "", "label": "", "name": "/dev/vdc", "type": "disk", "uuid": ""}}} TASK [Read the /etc/fstab file for volume existence] *************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:19 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/fstab"], "delta": "0:00:01.003504", "end": "2020-05-27 13:14:30.194991", "rc": 0, "start": "2020-05-27 13:14:29.191487", "stderr": "", "stderr_lines": [], "stdout": "\n#\n# /etc/fstab\n# Created by anaconda on Fri Apr 26 02:02:19 2019\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=ea711a29-e460-4879-9d70-9da99ae021f9 / ext4 defaults 1 1", "stdout_lines": ["", "#", "# /etc/fstab", "# Created by anaconda on Fri Apr 26 02:02:19 2019", "#", "# 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=ea711a29-e460-4879-9d70-9da99ae021f9 / ext4 defaults 1 1"]} TASK [Verify the volumes listed in storage_pools were correctly managed] ******* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:27 TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:34 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_pool": null}, "changed": false} TASK [Verify the volumes with no pool were correctly managed] ****************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:41 [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/tmpr6sk038f/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": false, "_storage_volume_tests": ["mount", "fstab", "fs", "device"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:12 included: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/vdb"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/vdb"], "delta": "0:00:00.002305", "end": "2020-05-27 13:14:30.639928", "rc": 0, "start": "2020-05-27 13:14:30.637623", "stderr": "", "stderr_lines": [], "stdout": "/dev/vdb", "stdout_lines": ["/dev/vdb"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Set some facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:20 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [], "storage_test_mount_expected_match_count": "0", "storage_test_mount_point_matches": []}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:31 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:40 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:48 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Unset facts] ************************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:58 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_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/tmpr6sk038f/tests/test-verify-volume-fstab.yml:9 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:16 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:23 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/vdb"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/vdb"], "delta": "0:00:00.002253", "end": "2020-05-27 13:14:31.166792", "rc": 0, "start": "2020-05-27 13:14:31.164539", "stderr": "", "stderr_lines": [], "stdout": "/dev/vdb", "stdout_lines": ["/dev/vdb"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify fs type] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:21 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify fs label] ********************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:27 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/vdb"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/vdb"], "delta": "0:00:00.002314", "end": "2020-05-27 13:14:31.533882", "rc": 0, "start": "2020-05-27 13:14:31.531568", "stderr": "", "stderr_lines": [], "stdout": "/dev/vdb", "stdout_lines": ["/dev/vdb"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [See whether the device node is present] ********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:21 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "stat": {"atime": 1590585266.7490437, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "ctime": 1590585266.7490437, "dev": 6, "device_type": 64528, "executable": false, "exists": true, "gid": 6, "gr_name": "disk", "inode": 1364, "isblk": true, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mimetype": "inode/blockdevice", "mode": "0660", "mtime": 1590585266.7490437, "nlink": 1, "path": "/dev/vdb", "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/tmpr6sk038f/tests/test-verify-volume-device.yml:27 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:35 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:41 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "disk"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:45 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:50 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Clean up facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:51 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_blkinfo": null, "storage_test_fstab": null, "storage_test_volume": null}, "changed": false} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 : ok=173 changed=15 unreachable=0 failed=0 skipped=54 rescued=0 ignored=0 + cd /tmp/tmpr6sk038f/tests; TEST_SUBJECTS=/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_storage-91-a6b7623-fedora-30-97_lk9m2/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmpr6sk038f/_setup.yml /tmp/tmpr6sk038f/tests/tests_create_lvm_pool_then_remove.yml ansible-playbook 2.9.9 config file = /etc/ansible/ansible.cfg configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.8/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 3.8.2 (default, Feb 28 2020, 00:00:00) [GCC 10.0.1 20200216 (Red Hat 10.0.1-0.8)] Using /etc/ansible/ansible.cfg as config file PLAYBOOK: _setup.yml *********************************************************** 1 plays in /tmp/tmpr6sk038f/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmpr6sk038f/_setup.yml:5 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "groups": { "all": [ "/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2" ], "localhost": [ "/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2" ], "subjects": [ "/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmpr6sk038f/_setup.yml:7 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/Fedora-Cloud-Base-30-1.2.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/tmpr6sk038f/tests/tests_create_lvm_pool_then_remove.yml PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpr6sk038f/tests/tests_create_lvm_pool_then_remove.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] META: ran handlers TASK [include_role : storage] ************************************************** task path: /tmp/tmpr6sk038f/tests/tests_create_lvm_pool_then_remove.yml:13 TASK [storage : Set version specific variables] ******************************** task path: /tmp/tmpr6sk038f/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/tmp/tmpr6sk038f/vars/Fedora.yml) => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-dm", "libblockdev-lvm", "libblockdev-part", "libblockdev-mdraid"]}, "ansible_included_var_files": ["/tmp/tmpr6sk038f/vars/Fedora.yml"], "ansible_loop_var": "item", "changed": false, "item": "/tmp/tmpr6sk038f/vars/Fedora.yml"} TASK [storage : define an empty list of pools to be used in testing] *********** task path: /tmp/tmpr6sk038f/tasks/main.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [storage : define an empty list of volumes to be used in testing] ********* task path: /tmp/tmpr6sk038f/tasks/main.yml:13 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : include the appropriate provider tasks] ************************ task path: /tmp/tmpr6sk038f/tasks/main.yml:17 included: /tmp/tmpr6sk038f/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [storage : get a list of rpm packages installed on host machine] ********** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [storage : make sure blivet is available] ********************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:7 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: libblockdev-mpath-2.23-1.fc30.x86_64", "Installed: libblockdev-nvdimm-2.23-1.fc30.x86_64", "Installed: userspace-rcu-0.10.1-5.fc30.x86_64", "Installed: libblockdev-part-2.23-1.fc30.x86_64", "Installed: dmraid-1.0.0.rc16-41.fc30.x86_64", "Installed: dmraid-events-1.0.0.rc16-41.fc30.x86_64", "Installed: lzo-2.08-15.fc30.x86_64", "Installed: libblockdev-swap-2.23-1.fc30.x86_64", "Installed: lvm2-2.02.183-3.fc30.x86_64", "Installed: libblockdev-utils-2.23-1.fc30.x86_64", "Installed: lvm2-libs-2.02.183-3.fc30.x86_64", "Installed: python3-blivet-1:3.1.4-1.fc30.noarch", "Installed: python3-blockdev-2.23-1.fc30.x86_64", "Installed: daxctl-libs-68-1.fc30.x86_64", "Installed: mdadm-4.1-1.fc30.x86_64", "Installed: blivet-data-1:3.1.4-1.fc30.noarch", "Installed: sgpio-1.2.0.10-23.fc30.x86_64", "Installed: nspr-4.25.0-1.fc30.x86_64", "Installed: python3-bytesize-2.2-1.fc30.x86_64", "Installed: device-mapper-event-1.02.154-3.fc30.x86_64", "Installed: lsof-4.91-3.fc30.x86_64", "Installed: nss-3.51.1-1.fc30.x86_64", "Installed: device-mapper-event-libs-1.02.154-3.fc30.x86_64", "Installed: device-mapper-multipath-0.7.9-6.git2df6110.fc30.x86_64", "Installed: gdisk-1.0.5-1.fc30.x86_64", "Installed: device-mapper-multipath-libs-0.7.9-6.git2df6110.fc30.x86_64", "Installed: nss-softokn-3.51.1-1.fc30.x86_64", "Installed: python3-gobject-base-3.32.2-1.fc30.x86_64", "Installed: device-mapper-persistent-data-0.7.6-4.fc30.x86_64", "Installed: gobject-introspection-1.60.2-1.fc30.x86_64", "Installed: nss-softokn-freebl-3.51.1-1.fc30.x86_64", "Installed: libbytesize-2.2-1.fc30.x86_64", "Installed: nss-sysinit-3.51.1-1.fc30.x86_64", "Installed: nss-util-3.51.1-1.fc30.x86_64", "Installed: volume_key-libs-0.3.12-3.fc30.x86_64", "Installed: bcache-tools-1.0.8-15.fc30.x86_64", "Installed: ndctl-68-1.fc30.x86_64", "Installed: ndctl-libs-68-1.fc30.x86_64", "Installed: libblockdev-2.23-1.fc30.x86_64", "Installed: libblockdev-btrfs-2.23-1.fc30.x86_64", "Installed: libblockdev-crypto-2.23-1.fc30.x86_64", "Installed: python3-pyudev-0.21.0-10.fc30.noarch", "Installed: btrfs-progs-5.6-1.fc30.x86_64", "Installed: libblockdev-dm-2.23-1.fc30.x86_64", "Installed: libblockdev-fs-2.23-1.fc30.x86_64", "Installed: libblockdev-kbd-2.23-1.fc30.x86_64", "Installed: libblockdev-loop-2.23-1.fc30.x86_64", "Installed: libblockdev-lvm-2.23-1.fc30.x86_64", "Installed: python3-pyparted-1:3.11.2-1.fc30.x86_64", "Installed: libaio-0.3.111-4.fc30.x86_64", "Installed: libblockdev-mdraid-2.23-1.fc30.x86_64"]} TASK [storage : initialize internal facts] ************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.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 [storage : Apply defaults to pools and volumes [1/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:28 TASK [storage : Apply defaults to pools and volumes [2/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:36 TASK [storage : Apply defaults to pools and volumes [3/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:44 TASK [storage : Apply defaults to pools and volumes [4/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:52 TASK [storage : Apply defaults to pools and volumes [5/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:61 TASK [storage : Apply defaults to pools and volumes [6/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:72 TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools": [] } TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_volumes": [] } TASK [storage : get required packages] ***************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": []} TASK [storage : make sure required packages are installed] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : manage the pools and volumes to match the specified state] ***** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:104 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": []} TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:113 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "blivet_output": { "actions": [], "changed": false, "failed": false, "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": [] } } TASK [storage : set the list of pools for test verification] ******************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:116 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [storage : set the list of volumes for test verification] ***************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:120 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : manage mounts to match the specified state] ******************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:132 TASK [storage : tell systemd to refresh its view of /etc/fstab] **************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:143 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [storage : Update facts] ************************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:153 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmpr6sk038f/tests/tests_create_lvm_pool_then_remove.yml:16 included: /tmp/tmpr6sk038f/tests/get_unused_disk.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [Find unused disks in the system] ***************************************** task path: /tmp/tmpr6sk038f/tests/get_unused_disk.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "disks": ["vdb"]} TASK [set_fact] **************************************************************** task path: /tmp/tmpr6sk038f/tests/get_unused_disk.yml:8 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"unused_disks": ["vdb"]}, "changed": false} TASK [Exit playbook when there's not enough unused disks in the system] ******** task path: /tmp/tmpr6sk038f/tests/get_unused_disk.yml:12 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Print unused disks] ****************************************************** task path: /tmp/tmpr6sk038f/tests/get_unused_disk.yml:17 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "unused_disks": [ "vdb" ] } TASK [Create two LVM logical volumes under volume group 'foo'] ***************** task path: /tmp/tmpr6sk038f/tests/tests_create_lvm_pool_then_remove.yml:21 TASK [storage : Set version specific variables] ******************************** task path: /tmp/tmpr6sk038f/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/tmp/tmpr6sk038f/vars/Fedora.yml) => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-dm", "libblockdev-lvm", "libblockdev-part", "libblockdev-mdraid"]}, "ansible_included_var_files": ["/tmp/tmpr6sk038f/vars/Fedora.yml"], "ansible_loop_var": "item", "changed": false, "item": "/tmp/tmpr6sk038f/vars/Fedora.yml"} TASK [storage : define an empty list of pools to be used in testing] *********** task path: /tmp/tmpr6sk038f/tasks/main.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [storage : define an empty list of volumes to be used in testing] ********* task path: /tmp/tmpr6sk038f/tasks/main.yml:13 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : include the appropriate provider tasks] ************************ task path: /tmp/tmpr6sk038f/tasks/main.yml:17 included: /tmp/tmpr6sk038f/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [storage : get a list of rpm packages installed on host machine] ********** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [storage : make sure blivet is available] ********************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : initialize internal facts] ************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.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 [storage : Apply defaults to pools and volumes [1/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:28 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'name': 'foo', 'disks': ['vdb'], 'volumes': [{'name': 'test1', 'size': '5g', 'mount_point': '/opt/test1'}, {'name': 'test2', 'size': '4g', 'mount_point': '/opt/test2'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vdb"], "name": "foo", "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": ["vdb"], "name": "foo", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "5g"}, {"mount_point": "/opt/test2", "name": "test2", "size": "4g"}]}} TASK [storage : Apply defaults to pools and volumes [2/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:36 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=[{'state': 'present', 'type': 'lvm', 'name': 'foo', 'disks': ['vdb'], 'volumes': [{'name': 'test1', 'size': '5g', 'mount_point': '/opt/test1'}, {'name': 'test2', 'size': '4g', 'mount_point': '/opt/test2'}]}, {'name': 'test1', 'size': '5g', 'mount_point': '/opt/test1'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "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": ["vdb"], "name": "foo", "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-30-1.2.x86_64.qcow2] => (item=[{'state': 'present', 'type': 'lvm', 'name': 'foo', 'disks': ['vdb'], 'volumes': [{'name': 'test1', 'size': '5g', 'mount_point': '/opt/test1'}, {'name': 'test2', 'size': '4g', 'mount_point': '/opt/test2'}]}, {'name': 'test2', 'size': '4g', 'mount_point': '/opt/test2'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "size": 0, "state": "present", "type": "lvm"}, {"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "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": ["vdb"], "name": "foo", "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 [storage : Apply defaults to pools and volumes [3/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:44 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=[{'name': 'test1', 'size': '5g', 'mount_point': '/opt/test1'}, {'state': 'present', 'type': 'lvm', 'size': 0, 'fs_type': 'xfs', 'fs_label': '', 'fs_create_options': '', 'fs_overwrite_existing': True, 'mount_point': '', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid'}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "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"}, {"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "size": 0, "state": "present", "type": "lvm"}]} ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=[{'name': 'test2', 'size': '4g', 'mount_point': '/opt/test2'}, {'state': 'present', 'type': 'lvm', 'size': 0, 'fs_type': 'xfs', 'fs_label': '', 'fs_create_options': '', 'fs_overwrite_existing': True, 'mount_point': '', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid'}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "5g", "state": "present", "type": "lvm"}, {"fs_create_options": "", "fs_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", "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"}, {"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "size": 0, "state": "present", "type": "lvm"}]} TASK [storage : Apply defaults to pools and volumes [4/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:52 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'name': 'foo', 'disks': ['vdb'], 'volumes': [{'name': 'test1', 'size': '5g', 'mount_point': '/opt/test1'}, {'name': 'test2', 'size': '4g', 'mount_point': '/opt/test2'}]}) => {"ansible_facts": {"_storage_vols_no_defaults_by_pool": {"foo": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "5g", "state": "present", "type": "lvm"}, {"fs_create_options": "", "fs_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", "size": "4g", "state": "present", "type": "lvm"}]}}, "ansible_loop_var": "item", "changed": false, "item": {"disks": ["vdb"], "name": "foo", "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "5g"}, {"mount_point": "/opt/test2", "name": "test2", "size": "4g"}]}} TASK [storage : Apply defaults to pools and volumes [5/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:61 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'name': 'foo', 'disks': ['vdb'], 'volumes': [{'name': 'test1', 'size': '5g', 'mount_point': '/opt/test1'}, {'name': 'test2', 'size': '4g', 'mount_point': '/opt/test2'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vdb"], "name": "foo", "state": "present", "type": "lvm", "volumes": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "5g", "state": "present", "type": "lvm"}, {"fs_create_options": "", "fs_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", "size": "4g", "state": "present", "type": "lvm"}]}]}, "ansible_index_var": "idx", "ansible_loop_var": "pool", "changed": false, "idx": 0, "pool": {"disks": ["vdb"], "name": "foo", "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "5g"}, {"mount_point": "/opt/test2", "name": "test2", "size": "4g"}]}} TASK [storage : Apply defaults to pools and volumes [6/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:72 TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools": [ { "disks": [ "vdb" ], "name": "foo", "state": "present", "type": "lvm", "volumes": [ { "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "5g", "state": "present", "type": "lvm" }, { "fs_create_options": "", "fs_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", "size": "4g", "state": "present", "type": "lvm" } ] } ] } TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_volumes": [] } TASK [storage : get required packages] ***************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": [], "mounts": [], "packages": ["lvm2", "xfsprogs"], "pools": [], "volumes": []} TASK [storage : make sure required packages are installed] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : manage the pools and volumes to match the specified state] ***** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:104 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [{"action": "create format", "device": "/dev/vdb", "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, "leaves": ["/dev/sr0", "/dev/vda1", "/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", "e2fsprogs", "xfsprogs"], "pools": [{"disks": ["vdb"], "name": "foo", "state": "present", "type": "lvm", "volumes": [{"_device": "/dev/mapper/foo-test1", "_mount_id": "/dev/mapper/foo-test1", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "5g", "state": "present", "type": "lvm"}, {"_device": "/dev/mapper/foo-test2", "_mount_id": "/dev/mapper/foo-test2", "fs_create_options": "", "fs_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", "size": "4g", "state": "present", "type": "lvm"}]}], "volumes": []} TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:113 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "blivet_output": { "actions": [ { "action": "create format", "device": "/dev/vdb", "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, "failed": false, "leaves": [ "/dev/sr0", "/dev/vda1", "/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", "e2fsprogs", "xfsprogs" ], "pools": [ { "disks": [ "vdb" ], "name": "foo", "state": "present", "type": "lvm", "volumes": [ { "_device": "/dev/mapper/foo-test1", "_mount_id": "/dev/mapper/foo-test1", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "5g", "state": "present", "type": "lvm" }, { "_device": "/dev/mapper/foo-test2", "_mount_id": "/dev/mapper/foo-test2", "fs_create_options": "", "fs_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", "size": "4g", "state": "present", "type": "lvm" } ] } ], "volumes": [] } } TASK [storage : set the list of pools for test verification] ******************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:116 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": [{"disks": ["vdb"], "name": "foo", "state": "present", "type": "lvm", "volumes": [{"_device": "/dev/mapper/foo-test1", "_mount_id": "/dev/mapper/foo-test1", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "5g", "state": "present", "type": "lvm"}, {"_device": "/dev/mapper/foo-test2", "_mount_id": "/dev/mapper/foo-test2", "fs_create_options": "", "fs_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", "size": "4g", "state": "present", "type": "lvm"}]}]}, "changed": false} TASK [storage : set the list of volumes for test verification] ***************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:120 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : manage mounts to match the specified state] ******************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:132 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'src': '/dev/mapper/foo-test1', 'path': '/opt/test1', 'fstype': 'xfs', 'opts': 'defaults', 'dump': 0, 'passno': 0, 'state': 'mounted'}) => {"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-30-1.2.x86_64.qcow2] => (item={'src': '/dev/mapper/foo-test2', 'path': '/opt/test2', 'fstype': 'xfs', 'opts': 'defaults', 'dump': 0, 'passno': 0, 'state': 'mounted'}) => {"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 [storage : tell systemd to refresh its view of /etc/fstab] **************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:143 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [storage : Update facts] ************************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:153 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmpr6sk038f/tests/tests_create_lvm_pool_then_remove.yml:36 included: /tmp/tmpr6sk038f/tests/verify-role-results.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [Print out pool information] ********************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:1 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools_list": [ { "disks": [ "vdb" ], "name": "foo", "state": "present", "type": "lvm", "volumes": [ { "_device": "/dev/mapper/foo-test1", "_mount_id": "/dev/mapper/foo-test1", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "5g", "state": "present", "type": "lvm" }, { "_device": "/dev/mapper/foo-test2", "_mount_id": "/dev/mapper/foo-test2", "fs_create_options": "", "fs_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", "size": "4g", "state": "present", "type": "lvm" } ] } ] } TASK [Print out volume information] ******************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:6 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {} TASK [Collect info about the volumes.] ***************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:14 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "info": {"/dev/mapper/foo-test1": {"fstype": "xfs", "label": "", "name": "/dev/mapper/foo-test1", "type": "lvm", "uuid": "796a277d-6bc5-4370-be24-a0ce61ef7f49"}, "/dev/mapper/foo-test2": {"fstype": "xfs", "label": "", "name": "/dev/mapper/foo-test2", "type": "lvm", "uuid": "5660175b-94ec-4df9-a336-08c02e8ab497"}, "/dev/sr0": {"fstype": "iso9660", "label": "cidata", "name": "/dev/sr0", "type": "rom", "uuid": "2020-05-27-13-14-32-00"}, "/dev/vda": {"fstype": "", "label": "", "name": "/dev/vda", "type": "disk", "uuid": ""}, "/dev/vda1": {"fstype": "ext4", "label": "", "name": "/dev/vda1", "type": "partition", "uuid": "ea711a29-e460-4879-9d70-9da99ae021f9"}, "/dev/vdb": {"fstype": "LVM2_member", "label": "", "name": "/dev/vdb", "type": "disk", "uuid": "k9GQ6J-g0P1-IDt2-7ZlH-zE9h-zUCM-hyFMWw"}, "/dev/vdc": {"fstype": "", "label": "", "name": "/dev/vdc", "type": "disk", "uuid": ""}}} TASK [Read the /etc/fstab file for volume existence] *************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:19 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/fstab"], "delta": "0:00:00.002908", "end": "2020-05-27 13:16:29.427984", "rc": 0, "start": "2020-05-27 13:16:29.425076", "stderr": "", "stderr_lines": [], "stdout": "\n#\n# /etc/fstab\n# Created by anaconda on Fri Apr 26 02:02:19 2019\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=ea711a29-e460-4879-9d70-9da99ae021f9 / 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 Fri Apr 26 02:02:19 2019", "#", "# 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=ea711a29-e460-4879-9d70-9da99ae021f9 / 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 [Verify the volumes listed in storage_pools were correctly managed] ******* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:27 included: /tmp/tmpr6sk038f/tests/test-verify-pool.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-pool.yml:5 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pool_tests": ["name", "type", "size", "members"]}, "changed": false} TASK [Verify the volumes in this pool were correctly managed] ****************** task path: /tmp/tmpr6sk038f/tests/test-verify-pool.yml:17 included: /tmp/tmpr6sk038f/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": true, "_storage_volume_tests": ["mount", "fstab", "fs", "device"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:12 included: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/foo-test1"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/foo-test1"], "delta": "0:00:00.003796", "end": "2020-05-27 13:16:30.019325", "rc": 0, "start": "2020-05-27 13:16:30.015529", "stderr": "", "stderr_lines": [], "stdout": "/dev/dm-1", "stdout_lines": ["/dev/dm-1"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Set some facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:20 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [{"block_available": 1298596, "block_size": 4096, "block_total": 1308160, "block_used": 9564, "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,noquota", "size_available": 5319049216, "size_total": 5358223360, "uuid": "796a277d-6bc5-4370-be24-a0ce61ef7f49"}], "storage_test_mount_expected_match_count": "1", "storage_test_mount_point_matches": [{"block_available": 1298596, "block_size": 4096, "block_total": 1308160, "block_used": 9564, "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,noquota", "size_available": 5319049216, "size_total": 5358223360, "uuid": "796a277d-6bc5-4370-be24-a0ce61ef7f49"}]}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:31 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:40 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:48 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Unset facts] ************************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:58 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_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/tmpr6sk038f/tests/test-verify-volume-fstab.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:16 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:23 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/foo-test1"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/foo-test1"], "delta": "0:00:00.003041", "end": "2020-05-27 13:16:30.700967", "rc": 0, "start": "2020-05-27 13:16:30.697926", "stderr": "", "stderr_lines": [], "stdout": "/dev/dm-1", "stdout_lines": ["/dev/dm-1"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify fs type] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:21 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify fs label] ********************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:27 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/foo-test1"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/foo-test1"], "delta": "0:00:00.003096", "end": "2020-05-27 13:16:31.188144", "rc": 0, "start": "2020-05-27 13:16:31.185048", "stderr": "", "stderr_lines": [], "stdout": "/dev/dm-1", "stdout_lines": ["/dev/dm-1"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [See whether the device node is present] ********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:21 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "stat": {"atime": 1590585385.9235256, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "ctime": 1590585385.9235256, "dev": 6, "device_type": 64769, "executable": false, "exists": true, "gid": 6, "gr_name": "disk", "inode": 1543, "isblk": true, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mimetype": "inode/symlink", "mode": "0660", "mtime": 1590585385.9235256, "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/tmpr6sk038f/tests/test-verify-volume-device.yml:27 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:35 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:41 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "lvm"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:45 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:50 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": true, "_storage_volume_tests": ["mount", "fstab", "fs", "device"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:12 included: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/foo-test2"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/foo-test2"], "delta": "0:00:01.004699", "end": "2020-05-27 13:16:33.347304", "rc": 0, "start": "2020-05-27 13:16:32.342605", "stderr": "", "stderr_lines": [], "stdout": "/dev/dm-0", "stdout_lines": ["/dev/dm-0"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Set some facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:20 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [{"block_available": 1036712, "block_size": 4096, "block_total": 1046016, "block_used": 9304, "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,noquota", "size_available": 4246372352, "size_total": 4284481536, "uuid": "5660175b-94ec-4df9-a336-08c02e8ab497"}], "storage_test_mount_expected_match_count": "1", "storage_test_mount_point_matches": [{"block_available": 1036712, "block_size": 4096, "block_total": 1046016, "block_used": 9304, "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,noquota", "size_available": 4246372352, "size_total": 4284481536, "uuid": "5660175b-94ec-4df9-a336-08c02e8ab497"}]}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:31 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:40 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:48 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Unset facts] ************************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:58 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_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/tmpr6sk038f/tests/test-verify-volume-fstab.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:16 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:23 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/foo-test2"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/foo-test2"], "delta": "0:00:00.002966", "end": "2020-05-27 13:16:34.045745", "rc": 0, "start": "2020-05-27 13:16:34.042779", "stderr": "", "stderr_lines": [], "stdout": "/dev/dm-0", "stdout_lines": ["/dev/dm-0"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify fs type] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:21 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify fs label] ********************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:27 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/foo-test2"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/foo-test2"], "delta": "0:00:00.003142", "end": "2020-05-27 13:16:34.525760", "rc": 0, "start": "2020-05-27 13:16:34.522618", "stderr": "", "stderr_lines": [], "stdout": "/dev/dm-0", "stdout_lines": ["/dev/dm-0"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [See whether the device node is present] ********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:21 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "stat": {"atime": 1590585385.7475255, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "ctime": 1590585385.7475255, "dev": 6, "device_type": 64768, "executable": false, "exists": true, "gid": 6, "gr_name": "disk", "inode": 1542, "isblk": true, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mimetype": "inode/symlink", "mode": "0660", "mtime": 1590585385.7475255, "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/tmpr6sk038f/tests/test-verify-volume-device.yml:27 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:35 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:41 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "lvm"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:45 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:50 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:34 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_pool": null}, "changed": false} TASK [Verify the volumes with no pool were correctly managed] ****************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:41 TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:51 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_blkinfo": 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/tmpr6sk038f/tests/tests_create_lvm_pool_then_remove.yml:38 TASK [storage : Set version specific variables] ******************************** task path: /tmp/tmpr6sk038f/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/tmp/tmpr6sk038f/vars/Fedora.yml) => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-dm", "libblockdev-lvm", "libblockdev-part", "libblockdev-mdraid"]}, "ansible_included_var_files": ["/tmp/tmpr6sk038f/vars/Fedora.yml"], "ansible_loop_var": "item", "changed": false, "item": "/tmp/tmpr6sk038f/vars/Fedora.yml"} TASK [storage : define an empty list of pools to be used in testing] *********** task path: /tmp/tmpr6sk038f/tasks/main.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [storage : define an empty list of volumes to be used in testing] ********* task path: /tmp/tmpr6sk038f/tasks/main.yml:13 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : include the appropriate provider tasks] ************************ task path: /tmp/tmpr6sk038f/tasks/main.yml:17 included: /tmp/tmpr6sk038f/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [storage : get a list of rpm packages installed on host machine] ********** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [storage : make sure blivet is available] ********************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : initialize internal facts] ************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.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 [storage : Apply defaults to pools and volumes [1/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:28 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'name': 'foo', 'disks': ['vdb'], 'state': 'present', 'volumes': [{'name': 'test1', 'size': '5g', 'mount_point': '/opt/test1'}, {'name': 'test2', 'size': '4g', 'mount_point': '/opt/test2', 'state': 'absent'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vdb"], "name": "foo", "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": ["vdb"], "name": "foo", "state": "present", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "5g"}, {"mount_point": "/opt/test2", "name": "test2", "size": "4g", "state": "absent"}]}} TASK [storage : Apply defaults to pools and volumes [2/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:36 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=[{'state': 'present', 'type': 'lvm', 'name': 'foo', 'disks': ['vdb'], 'volumes': [{'name': 'test1', 'size': '5g', 'mount_point': '/opt/test1'}, {'name': 'test2', 'size': '4g', 'mount_point': '/opt/test2', 'state': 'absent'}]}, {'name': 'test1', 'size': '5g', 'mount_point': '/opt/test1'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "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": ["vdb"], "name": "foo", "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-30-1.2.x86_64.qcow2] => (item=[{'state': 'present', 'type': 'lvm', 'name': 'foo', 'disks': ['vdb'], 'volumes': [{'name': 'test1', 'size': '5g', 'mount_point': '/opt/test1'}, {'name': 'test2', 'size': '4g', 'mount_point': '/opt/test2', 'state': 'absent'}]}, {'name': 'test2', 'size': '4g', 'mount_point': '/opt/test2', 'state': 'absent'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "size": 0, "state": "present", "type": "lvm"}, {"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "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": ["vdb"], "name": "foo", "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 [storage : Apply defaults to pools and volumes [3/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:44 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=[{'name': 'test1', 'size': '5g', 'mount_point': '/opt/test1'}, {'state': 'present', 'type': 'lvm', 'size': 0, 'fs_type': 'xfs', 'fs_label': '', 'fs_create_options': '', 'fs_overwrite_existing': True, 'mount_point': '', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid'}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "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"}, {"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "size": 0, "state": "present", "type": "lvm"}]} ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=[{'name': 'test2', 'size': '4g', 'mount_point': '/opt/test2', 'state': 'absent'}, {'state': 'present', 'type': 'lvm', 'size': 0, 'fs_type': 'xfs', 'fs_label': '', 'fs_create_options': '', 'fs_overwrite_existing': True, 'mount_point': '', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid'}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "5g", "state": "present", "type": "lvm"}, {"fs_create_options": "", "fs_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", "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"}, {"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "size": 0, "state": "present", "type": "lvm"}]} TASK [storage : Apply defaults to pools and volumes [4/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:52 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'name': 'foo', 'disks': ['vdb'], 'volumes': [{'name': 'test1', 'size': '5g', 'mount_point': '/opt/test1'}, {'name': 'test2', 'size': '4g', 'mount_point': '/opt/test2', 'state': 'absent'}]}) => {"ansible_facts": {"_storage_vols_no_defaults_by_pool": {"foo": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "5g", "state": "present", "type": "lvm"}, {"fs_create_options": "", "fs_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", "size": "4g", "state": "absent", "type": "lvm"}]}}, "ansible_loop_var": "item", "changed": false, "item": {"disks": ["vdb"], "name": "foo", "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "5g"}, {"mount_point": "/opt/test2", "name": "test2", "size": "4g", "state": "absent"}]}} TASK [storage : Apply defaults to pools and volumes [5/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:61 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'name': 'foo', 'disks': ['vdb'], 'volumes': [{'name': 'test1', 'size': '5g', 'mount_point': '/opt/test1'}, {'name': 'test2', 'size': '4g', 'mount_point': '/opt/test2', 'state': 'absent'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vdb"], "name": "foo", "state": "present", "type": "lvm", "volumes": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "5g", "state": "present", "type": "lvm"}, {"fs_create_options": "", "fs_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", "size": "4g", "state": "absent", "type": "lvm"}]}]}, "ansible_index_var": "idx", "ansible_loop_var": "pool", "changed": false, "idx": 0, "pool": {"disks": ["vdb"], "name": "foo", "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "5g"}, {"mount_point": "/opt/test2", "name": "test2", "size": "4g", "state": "absent"}]}} TASK [storage : Apply defaults to pools and volumes [6/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:72 TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools": [ { "disks": [ "vdb" ], "name": "foo", "state": "present", "type": "lvm", "volumes": [ { "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "5g", "state": "present", "type": "lvm" }, { "fs_create_options": "", "fs_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", "size": "4g", "state": "absent", "type": "lvm" } ] } ] } TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_volumes": [] } TASK [storage : get required packages] ***************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": [], "mounts": [], "packages": ["lvm2", "xfsprogs"], "pools": [], "volumes": []} TASK [storage : make sure required packages are installed] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : manage the pools and volumes to match the specified state] ***** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:104 changed: [/cache/Fedora-Cloud-Base-30-1.2.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, "leaves": ["/dev/sr0", "/dev/vda1", "/dev/mapper/foo-test1", "/dev/vdc"], "mounts": [{"path": "/opt/test2", "state": "absent"}, {"dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "/dev/mapper/foo-test1", "state": "mounted"}], "packages": ["xfsprogs", "lvm2", "e2fsprogs"], "pools": [{"disks": ["vdb"], "name": "foo", "state": "present", "type": "lvm", "volumes": [{"_device": "/dev/mapper/foo-test1", "_mount_id": "/dev/mapper/foo-test1", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "5g", "state": "present", "type": "lvm"}, {"_device": "/dev/mapper/foo-test2", "_mount_id": "/dev/mapper/foo-test2", "fs_create_options": "", "fs_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", "size": "4g", "state": "absent", "type": "lvm"}]}], "volumes": []} TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:113 ok: [/cache/Fedora-Cloud-Base-30-1.2.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, "failed": false, "leaves": [ "/dev/sr0", "/dev/vda1", "/dev/mapper/foo-test1", "/dev/vdc" ], "mounts": [ { "path": "/opt/test2", "state": "absent" }, { "dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "/dev/mapper/foo-test1", "state": "mounted" } ], "packages": [ "xfsprogs", "lvm2", "e2fsprogs" ], "pools": [ { "disks": [ "vdb" ], "name": "foo", "state": "present", "type": "lvm", "volumes": [ { "_device": "/dev/mapper/foo-test1", "_mount_id": "/dev/mapper/foo-test1", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "5g", "state": "present", "type": "lvm" }, { "_device": "/dev/mapper/foo-test2", "_mount_id": "/dev/mapper/foo-test2", "fs_create_options": "", "fs_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", "size": "4g", "state": "absent", "type": "lvm" } ] } ], "volumes": [] } } TASK [storage : set the list of pools for test verification] ******************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:116 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": [{"disks": ["vdb"], "name": "foo", "state": "present", "type": "lvm", "volumes": [{"_device": "/dev/mapper/foo-test1", "_mount_id": "/dev/mapper/foo-test1", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "5g", "state": "present", "type": "lvm"}, {"_device": "/dev/mapper/foo-test2", "_mount_id": "/dev/mapper/foo-test2", "fs_create_options": "", "fs_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", "size": "4g", "state": "absent", "type": "lvm"}]}]}, "changed": false} TASK [storage : set the list of volumes for test verification] ***************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:120 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : manage mounts to match the specified state] ******************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:132 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'path': '/opt/test2', 'state': 'absent'}) => {"ansible_loop_var": "mount_info", "changed": true, "dump": "0", "fstab": "/etc/fstab", "mount_info": {"path": "/opt/test2", "state": "absent"}, "name": "/opt/test2", "opts": "defaults", "passno": "0"} ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'src': '/dev/mapper/foo-test1', 'path': '/opt/test1', 'fstype': 'xfs', 'opts': 'defaults', 'dump': 0, 'passno': 0, 'state': 'mounted'}) => {"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 [storage : tell systemd to refresh its view of /etc/fstab] **************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:143 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [storage : Update facts] ************************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:153 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmpr6sk038f/tests/tests_create_lvm_pool_then_remove.yml:55 included: /tmp/tmpr6sk038f/tests/verify-role-results.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [Print out pool information] ********************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:1 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools_list": [ { "disks": [ "vdb" ], "name": "foo", "state": "present", "type": "lvm", "volumes": [ { "_device": "/dev/mapper/foo-test1", "_mount_id": "/dev/mapper/foo-test1", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "5g", "state": "present", "type": "lvm" }, { "_device": "/dev/mapper/foo-test2", "_mount_id": "/dev/mapper/foo-test2", "fs_create_options": "", "fs_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", "size": "4g", "state": "absent", "type": "lvm" } ] } ] } TASK [Print out volume information] ******************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:6 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {} TASK [Collect info about the volumes.] ***************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:14 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "info": {"/dev/mapper/foo-test1": {"fstype": "xfs", "label": "", "name": "/dev/mapper/foo-test1", "type": "lvm", "uuid": "796a277d-6bc5-4370-be24-a0ce61ef7f49"}, "/dev/sr0": {"fstype": "iso9660", "label": "cidata", "name": "/dev/sr0", "type": "rom", "uuid": "2020-05-27-13-14-32-00"}, "/dev/vda": {"fstype": "", "label": "", "name": "/dev/vda", "type": "disk", "uuid": ""}, "/dev/vda1": {"fstype": "ext4", "label": "", "name": "/dev/vda1", "type": "partition", "uuid": "ea711a29-e460-4879-9d70-9da99ae021f9"}, "/dev/vdb": {"fstype": "LVM2_member", "label": "", "name": "/dev/vdb", "type": "disk", "uuid": "k9GQ6J-g0P1-IDt2-7ZlH-zE9h-zUCM-hyFMWw"}, "/dev/vdc": {"fstype": "", "label": "", "name": "/dev/vdc", "type": "disk", "uuid": ""}}} TASK [Read the /etc/fstab file for volume existence] *************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:19 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/fstab"], "delta": "0:00:00.002895", "end": "2020-05-27 13:16:48.164661", "rc": 0, "start": "2020-05-27 13:16:48.161766", "stderr": "", "stderr_lines": [], "stdout": "\n#\n# /etc/fstab\n# Created by anaconda on Fri Apr 26 02:02:19 2019\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=ea711a29-e460-4879-9d70-9da99ae021f9 / ext4 defaults 1 1\n/dev/mapper/foo-test1 /opt/test1 xfs defaults 0 0", "stdout_lines": ["", "#", "# /etc/fstab", "# Created by anaconda on Fri Apr 26 02:02:19 2019", "#", "# 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=ea711a29-e460-4879-9d70-9da99ae021f9 / ext4 defaults 1 1", "/dev/mapper/foo-test1 /opt/test1 xfs defaults 0 0"]} TASK [Verify the volumes listed in storage_pools were correctly managed] ******* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:27 [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/tmpr6sk038f/tests/test-verify-pool.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-pool.yml:5 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pool_tests": ["name", "type", "size", "members"]}, "changed": false} TASK [Verify the volumes in this pool were correctly managed] ****************** task path: /tmp/tmpr6sk038f/tests/test-verify-pool.yml:17 [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/tmpr6sk038f/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": true, "_storage_volume_tests": ["mount", "fstab", "fs", "device"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:12 included: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/foo-test1"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/foo-test1"], "delta": "0:00:00.002374", "end": "2020-05-27 13:16:48.739990", "rc": 0, "start": "2020-05-27 13:16:48.737616", "stderr": "", "stderr_lines": [], "stdout": "/dev/dm-1", "stdout_lines": ["/dev/dm-1"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Set some facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:20 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [{"block_available": 1298596, "block_size": 4096, "block_total": 1308160, "block_used": 9564, "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,noquota", "size_available": 5319049216, "size_total": 5358223360, "uuid": "796a277d-6bc5-4370-be24-a0ce61ef7f49"}], "storage_test_mount_expected_match_count": "1", "storage_test_mount_point_matches": [{"block_available": 1298596, "block_size": 4096, "block_total": 1308160, "block_used": 9564, "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,noquota", "size_available": 5319049216, "size_total": 5358223360, "uuid": "796a277d-6bc5-4370-be24-a0ce61ef7f49"}]}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:31 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:40 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:48 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Unset facts] ************************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:58 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_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/tmpr6sk038f/tests/test-verify-volume-fstab.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:16 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:23 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/foo-test1"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/foo-test1"], "delta": "0:00:00.002866", "end": "2020-05-27 13:16:49.436400", "rc": 0, "start": "2020-05-27 13:16:49.433534", "stderr": "", "stderr_lines": [], "stdout": "/dev/dm-1", "stdout_lines": ["/dev/dm-1"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify fs type] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:21 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify fs label] ********************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:27 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/foo-test1"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/foo-test1"], "delta": "0:00:01.004203", "end": "2020-05-27 13:16:50.904004", "rc": 0, "start": "2020-05-27 13:16:49.899801", "stderr": "", "stderr_lines": [], "stdout": "/dev/dm-1", "stdout_lines": ["/dev/dm-1"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [See whether the device node is present] ********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:21 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "stat": {"atime": 1590585385.9235256, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "ctime": 1590585385.9235256, "dev": 6, "device_type": 64769, "executable": false, "exists": true, "gid": 6, "gr_name": "disk", "inode": 1543, "isblk": true, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mimetype": "inode/symlink", "mode": "0660", "mtime": 1590585385.9235256, "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/tmpr6sk038f/tests/test-verify-volume-device.yml:27 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:35 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:41 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "lvm"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:45 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:50 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": false, "_storage_volume_tests": ["mount", "fstab", "fs", "device"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:12 included: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/foo-test2"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/foo-test2"], "delta": "0:00:00.002848", "end": "2020-05-27 13:16:51.933434", "rc": 0, "start": "2020-05-27 13:16:51.930586", "stderr": "", "stderr_lines": [], "stdout": "/dev/mapper/foo-test2", "stdout_lines": ["/dev/mapper/foo-test2"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:15 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": {"changed": true, "cmd": ["realpath", "/dev/mapper/foo-test2"], "delta": "0:00:00.002848", "end": "2020-05-27 13:16:51.933434", "failed": false, "rc": 0, "start": "2020-05-27 13:16:51.930586", "stderr": "", "stderr_lines": [], "stdout": "/dev/mapper/foo-test2", "stdout_lines": ["/dev/mapper/foo-test2"]}}, "changed": false} TASK [Set some facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:20 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [], "storage_test_mount_expected_match_count": "0", "storage_test_mount_point_matches": []}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:31 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:40 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:48 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Unset facts] ************************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:58 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_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/tmpr6sk038f/tests/test-verify-volume-fstab.yml:9 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:16 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:23 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/foo-test2"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/foo-test2"], "delta": "0:00:00.002946", "end": "2020-05-27 13:16:52.605924", "rc": 0, "start": "2020-05-27 13:16:52.602978", "stderr": "", "stderr_lines": [], "stdout": "/dev/mapper/foo-test2", "stdout_lines": ["/dev/mapper/foo-test2"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:15 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": {"changed": true, "cmd": ["realpath", "/dev/mapper/foo-test2"], "delta": "0:00:00.002946", "end": "2020-05-27 13:16:52.605924", "failed": false, "rc": 0, "start": "2020-05-27 13:16:52.602978", "stderr": "", "stderr_lines": [], "stdout": "/dev/mapper/foo-test2", "stdout_lines": ["/dev/mapper/foo-test2"]}}, "changed": false} TASK [Verify fs type] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:21 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify fs label] ********************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:27 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/foo-test2"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/foo-test2"], "delta": "0:00:00.002816", "end": "2020-05-27 13:16:53.053910", "rc": 0, "start": "2020-05-27 13:16:53.051094", "stderr": "", "stderr_lines": [], "stdout": "/dev/mapper/foo-test2", "stdout_lines": ["/dev/mapper/foo-test2"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:15 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": {"changed": true, "cmd": ["realpath", "/dev/mapper/foo-test2"], "delta": "0:00:00.002816", "end": "2020-05-27 13:16:53.053910", "failed": false, "rc": 0, "start": "2020-05-27 13:16:53.051094", "stderr": "", "stderr_lines": [], "stdout": "/dev/mapper/foo-test2", "stdout_lines": ["/dev/mapper/foo-test2"]}}, "changed": false} TASK [See whether the device node is present] ********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:21 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "stat": {"exists": false}} TASK [Verify the presence/absence of the device node] ************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:27 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:35 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:41 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "lvm"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:45 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:50 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Clean up facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:34 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_pool": null}, "changed": false} TASK [Verify the volumes with no pool were correctly managed] ****************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:41 TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:51 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_blkinfo": null, "storage_test_fstab": null, "storage_test_volume": null}, "changed": false} TASK [Repeat the previous invocation to verify idempotence] ******************** task path: /tmp/tmpr6sk038f/tests/tests_create_lvm_pool_then_remove.yml:57 TASK [storage : Set version specific variables] ******************************** task path: /tmp/tmpr6sk038f/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/tmp/tmpr6sk038f/vars/Fedora.yml) => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-dm", "libblockdev-lvm", "libblockdev-part", "libblockdev-mdraid"]}, "ansible_included_var_files": ["/tmp/tmpr6sk038f/vars/Fedora.yml"], "ansible_loop_var": "item", "changed": false, "item": "/tmp/tmpr6sk038f/vars/Fedora.yml"} TASK [storage : define an empty list of pools to be used in testing] *********** task path: /tmp/tmpr6sk038f/tasks/main.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [storage : define an empty list of volumes to be used in testing] ********* task path: /tmp/tmpr6sk038f/tasks/main.yml:13 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : include the appropriate provider tasks] ************************ task path: /tmp/tmpr6sk038f/tasks/main.yml:17 included: /tmp/tmpr6sk038f/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [storage : get a list of rpm packages installed on host machine] ********** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [storage : make sure blivet is available] ********************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : initialize internal facts] ************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.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 [storage : Apply defaults to pools and volumes [1/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:28 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'name': 'foo', 'disks': ['vdb'], 'volumes': [{'name': 'test1', 'size': '5g', 'mount_point': '/opt/test1'}, {'name': 'test2', 'size': '4g', 'mount_point': '/opt/test2', 'state': 'absent'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vdb"], "name": "foo", "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": ["vdb"], "name": "foo", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "5g"}, {"mount_point": "/opt/test2", "name": "test2", "size": "4g", "state": "absent"}]}} TASK [storage : Apply defaults to pools and volumes [2/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:36 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=[{'state': 'present', 'type': 'lvm', 'name': 'foo', 'disks': ['vdb'], 'volumes': [{'name': 'test1', 'size': '5g', 'mount_point': '/opt/test1'}, {'name': 'test2', 'size': '4g', 'mount_point': '/opt/test2', 'state': 'absent'}]}, {'name': 'test1', 'size': '5g', 'mount_point': '/opt/test1'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "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": ["vdb"], "name": "foo", "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-30-1.2.x86_64.qcow2] => (item=[{'state': 'present', 'type': 'lvm', 'name': 'foo', 'disks': ['vdb'], 'volumes': [{'name': 'test1', 'size': '5g', 'mount_point': '/opt/test1'}, {'name': 'test2', 'size': '4g', 'mount_point': '/opt/test2', 'state': 'absent'}]}, {'name': 'test2', 'size': '4g', 'mount_point': '/opt/test2', 'state': 'absent'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "size": 0, "state": "present", "type": "lvm"}, {"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "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": ["vdb"], "name": "foo", "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 [storage : Apply defaults to pools and volumes [3/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:44 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=[{'name': 'test1', 'size': '5g', 'mount_point': '/opt/test1'}, {'state': 'present', 'type': 'lvm', 'size': 0, 'fs_type': 'xfs', 'fs_label': '', 'fs_create_options': '', 'fs_overwrite_existing': True, 'mount_point': '', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid'}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "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"}, {"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "size": 0, "state": "present", "type": "lvm"}]} ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=[{'name': 'test2', 'size': '4g', 'mount_point': '/opt/test2', 'state': 'absent'}, {'state': 'present', 'type': 'lvm', 'size': 0, 'fs_type': 'xfs', 'fs_label': '', 'fs_create_options': '', 'fs_overwrite_existing': True, 'mount_point': '', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid'}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "5g", "state": "present", "type": "lvm"}, {"fs_create_options": "", "fs_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", "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"}, {"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "size": 0, "state": "present", "type": "lvm"}]} TASK [storage : Apply defaults to pools and volumes [4/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:52 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'name': 'foo', 'disks': ['vdb'], 'volumes': [{'name': 'test1', 'size': '5g', 'mount_point': '/opt/test1'}, {'name': 'test2', 'size': '4g', 'mount_point': '/opt/test2', 'state': 'absent'}]}) => {"ansible_facts": {"_storage_vols_no_defaults_by_pool": {"foo": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "5g", "state": "present", "type": "lvm"}, {"fs_create_options": "", "fs_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", "size": "4g", "state": "absent", "type": "lvm"}]}}, "ansible_loop_var": "item", "changed": false, "item": {"disks": ["vdb"], "name": "foo", "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "5g"}, {"mount_point": "/opt/test2", "name": "test2", "size": "4g", "state": "absent"}]}} TASK [storage : Apply defaults to pools and volumes [5/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:61 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'name': 'foo', 'disks': ['vdb'], 'volumes': [{'name': 'test1', 'size': '5g', 'mount_point': '/opt/test1'}, {'name': 'test2', 'size': '4g', 'mount_point': '/opt/test2', 'state': 'absent'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vdb"], "name": "foo", "state": "present", "type": "lvm", "volumes": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "5g", "state": "present", "type": "lvm"}, {"fs_create_options": "", "fs_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", "size": "4g", "state": "absent", "type": "lvm"}]}]}, "ansible_index_var": "idx", "ansible_loop_var": "pool", "changed": false, "idx": 0, "pool": {"disks": ["vdb"], "name": "foo", "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "5g"}, {"mount_point": "/opt/test2", "name": "test2", "size": "4g", "state": "absent"}]}} TASK [storage : Apply defaults to pools and volumes [6/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:72 TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools": [ { "disks": [ "vdb" ], "name": "foo", "state": "present", "type": "lvm", "volumes": [ { "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "5g", "state": "present", "type": "lvm" }, { "fs_create_options": "", "fs_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", "size": "4g", "state": "absent", "type": "lvm" } ] } ] } TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_volumes": [] } TASK [storage : get required packages] ***************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": [], "mounts": [], "packages": ["lvm2", "xfsprogs"], "pools": [], "volumes": []} TASK [storage : make sure required packages are installed] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : manage the pools and volumes to match the specified state] ***** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:104 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": ["/dev/sr0", "/dev/vda1", "/dev/mapper/foo-test1", "/dev/vdc"], "mounts": [{"dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "/dev/mapper/foo-test1", "state": "mounted"}], "packages": ["lvm2", "e2fsprogs", "xfsprogs"], "pools": [{"disks": ["vdb"], "name": "foo", "state": "present", "type": "lvm", "volumes": [{"_device": "/dev/mapper/foo-test1", "_mount_id": "/dev/mapper/foo-test1", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "5g", "state": "present", "type": "lvm"}, {"_device": "", "_mount_id": "", "fs_create_options": "", "fs_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", "size": "4g", "state": "absent", "type": "lvm"}]}], "volumes": []} TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:113 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "blivet_output": { "actions": [], "changed": false, "failed": false, "leaves": [ "/dev/sr0", "/dev/vda1", "/dev/mapper/foo-test1", "/dev/vdc" ], "mounts": [ { "dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "/dev/mapper/foo-test1", "state": "mounted" } ], "packages": [ "lvm2", "e2fsprogs", "xfsprogs" ], "pools": [ { "disks": [ "vdb" ], "name": "foo", "state": "present", "type": "lvm", "volumes": [ { "_device": "/dev/mapper/foo-test1", "_mount_id": "/dev/mapper/foo-test1", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "5g", "state": "present", "type": "lvm" }, { "_device": "", "_mount_id": "", "fs_create_options": "", "fs_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", "size": "4g", "state": "absent", "type": "lvm" } ] } ], "volumes": [] } } TASK [storage : set the list of pools for test verification] ******************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:116 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": [{"disks": ["vdb"], "name": "foo", "state": "present", "type": "lvm", "volumes": [{"_device": "/dev/mapper/foo-test1", "_mount_id": "/dev/mapper/foo-test1", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "5g", "state": "present", "type": "lvm"}, {"_device": "", "_mount_id": "", "fs_create_options": "", "fs_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", "size": "4g", "state": "absent", "type": "lvm"}]}]}, "changed": false} TASK [storage : set the list of volumes for test verification] ***************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:120 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : manage mounts to match the specified state] ******************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:132 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'src': '/dev/mapper/foo-test1', 'path': '/opt/test1', 'fstype': 'xfs', 'opts': 'defaults', 'dump': 0, 'passno': 0, 'state': 'mounted'}) => {"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 [storage : tell systemd to refresh its view of /etc/fstab] **************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:143 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [storage : Update facts] ************************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:153 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmpr6sk038f/tests/tests_create_lvm_pool_then_remove.yml:73 included: /tmp/tmpr6sk038f/tests/verify-role-results.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [Print out pool information] ********************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:1 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools_list": [ { "disks": [ "vdb" ], "name": "foo", "state": "present", "type": "lvm", "volumes": [ { "_device": "/dev/mapper/foo-test1", "_mount_id": "/dev/mapper/foo-test1", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "5g", "state": "present", "type": "lvm" }, { "_device": "", "_mount_id": "", "fs_create_options": "", "fs_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", "size": "4g", "state": "absent", "type": "lvm" } ] } ] } TASK [Print out volume information] ******************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:6 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {} TASK [Collect info about the volumes.] ***************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:14 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "info": {"/dev/mapper/foo-test1": {"fstype": "xfs", "label": "", "name": "/dev/mapper/foo-test1", "type": "lvm", "uuid": "796a277d-6bc5-4370-be24-a0ce61ef7f49"}, "/dev/sr0": {"fstype": "iso9660", "label": "cidata", "name": "/dev/sr0", "type": "rom", "uuid": "2020-05-27-13-14-32-00"}, "/dev/vda": {"fstype": "", "label": "", "name": "/dev/vda", "type": "disk", "uuid": ""}, "/dev/vda1": {"fstype": "ext4", "label": "", "name": "/dev/vda1", "type": "partition", "uuid": "ea711a29-e460-4879-9d70-9da99ae021f9"}, "/dev/vdb": {"fstype": "LVM2_member", "label": "", "name": "/dev/vdb", "type": "disk", "uuid": "k9GQ6J-g0P1-IDt2-7ZlH-zE9h-zUCM-hyFMWw"}, "/dev/vdc": {"fstype": "", "label": "", "name": "/dev/vdc", "type": "disk", "uuid": ""}}} TASK [Read the /etc/fstab file for volume existence] *************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:19 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/fstab"], "delta": "0:00:00.002795", "end": "2020-05-27 13:17:05.499057", "rc": 0, "start": "2020-05-27 13:17:05.496262", "stderr": "", "stderr_lines": [], "stdout": "\n#\n# /etc/fstab\n# Created by anaconda on Fri Apr 26 02:02:19 2019\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=ea711a29-e460-4879-9d70-9da99ae021f9 / ext4 defaults 1 1\n/dev/mapper/foo-test1 /opt/test1 xfs defaults 0 0", "stdout_lines": ["", "#", "# /etc/fstab", "# Created by anaconda on Fri Apr 26 02:02:19 2019", "#", "# 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=ea711a29-e460-4879-9d70-9da99ae021f9 / ext4 defaults 1 1", "/dev/mapper/foo-test1 /opt/test1 xfs defaults 0 0"]} TASK [Verify the volumes listed in storage_pools were correctly managed] ******* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:27 [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/tmpr6sk038f/tests/test-verify-pool.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-pool.yml:5 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pool_tests": ["name", "type", "size", "members"]}, "changed": false} TASK [Verify the volumes in this pool were correctly managed] ****************** task path: /tmp/tmpr6sk038f/tests/test-verify-pool.yml:17 [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/tmpr6sk038f/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": true, "_storage_volume_tests": ["mount", "fstab", "fs", "device"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:12 included: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/foo-test1"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/foo-test1"], "delta": "0:00:00.002271", "end": "2020-05-27 13:17:06.067811", "rc": 0, "start": "2020-05-27 13:17:06.065540", "stderr": "", "stderr_lines": [], "stdout": "/dev/dm-1", "stdout_lines": ["/dev/dm-1"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Set some facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:20 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [{"block_available": 1298596, "block_size": 4096, "block_total": 1308160, "block_used": 9564, "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,noquota", "size_available": 5319049216, "size_total": 5358223360, "uuid": "796a277d-6bc5-4370-be24-a0ce61ef7f49"}], "storage_test_mount_expected_match_count": "1", "storage_test_mount_point_matches": [{"block_available": 1298596, "block_size": 4096, "block_total": 1308160, "block_used": 9564, "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,noquota", "size_available": 5319049216, "size_total": 5358223360, "uuid": "796a277d-6bc5-4370-be24-a0ce61ef7f49"}]}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:31 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:40 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:48 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Unset facts] ************************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:58 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_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/tmpr6sk038f/tests/test-verify-volume-fstab.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:16 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:23 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/foo-test1"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/foo-test1"], "delta": "0:00:00.002507", "end": "2020-05-27 13:17:06.761893", "rc": 0, "start": "2020-05-27 13:17:06.759386", "stderr": "", "stderr_lines": [], "stdout": "/dev/dm-1", "stdout_lines": ["/dev/dm-1"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify fs type] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:21 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify fs label] ********************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:27 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/foo-test1"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/foo-test1"], "delta": "0:00:00.002872", "end": "2020-05-27 13:17:07.223727", "rc": 0, "start": "2020-05-27 13:17:07.220855", "stderr": "", "stderr_lines": [], "stdout": "/dev/dm-1", "stdout_lines": ["/dev/dm-1"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [See whether the device node is present] ********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:21 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "stat": {"atime": 1590585385.9235256, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "ctime": 1590585385.9235256, "dev": 6, "device_type": 64769, "executable": false, "exists": true, "gid": 6, "gr_name": "disk", "inode": 1543, "isblk": true, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mimetype": "inode/symlink", "mode": "0660", "mtime": 1590585385.9235256, "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/tmpr6sk038f/tests/test-verify-volume-device.yml:27 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:35 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:41 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "lvm"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:45 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:50 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": false, "_storage_volume_tests": ["mount", "fstab", "fs", "device"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:12 included: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": ""}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:10 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:15 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": {"changed": false, "skip_reason": "Conditional result was False", "skipped": true}}, "changed": false} TASK [Set some facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:20 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [], "storage_test_mount_expected_match_count": "0", "storage_test_mount_point_matches": []}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:31 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:40 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:48 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Unset facts] ************************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:58 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_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/tmpr6sk038f/tests/test-verify-volume-fstab.yml:9 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:16 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:23 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": ""}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:10 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:15 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": {"changed": false, "skip_reason": "Conditional result was False", "skipped": true}}, "changed": false} TASK [Verify fs type] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:21 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify fs label] ********************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:27 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": ""}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:10 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:15 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": {"changed": false, "skip_reason": "Conditional result was False", "skipped": true}}, "changed": false} TASK [See whether the device node is present] ********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:21 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "stat": {"exists": false}} TASK [Verify the presence/absence of the device node] ************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:27 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:35 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:41 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "lvm"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:45 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:50 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Clean up facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:34 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_pool": null}, "changed": false} TASK [Verify the volumes with no pool were correctly managed] ****************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:41 TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:51 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_blkinfo": 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/tmpr6sk038f/tests/tests_create_lvm_pool_then_remove.yml:75 TASK [storage : Set version specific variables] ******************************** task path: /tmp/tmpr6sk038f/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/tmp/tmpr6sk038f/vars/Fedora.yml) => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-dm", "libblockdev-lvm", "libblockdev-part", "libblockdev-mdraid"]}, "ansible_included_var_files": ["/tmp/tmpr6sk038f/vars/Fedora.yml"], "ansible_loop_var": "item", "changed": false, "item": "/tmp/tmpr6sk038f/vars/Fedora.yml"} TASK [storage : define an empty list of pools to be used in testing] *********** task path: /tmp/tmpr6sk038f/tasks/main.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [storage : define an empty list of volumes to be used in testing] ********* task path: /tmp/tmpr6sk038f/tasks/main.yml:13 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : include the appropriate provider tasks] ************************ task path: /tmp/tmpr6sk038f/tasks/main.yml:17 included: /tmp/tmpr6sk038f/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [storage : get a list of rpm packages installed on host machine] ********** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [storage : make sure blivet is available] ********************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : initialize internal facts] ************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.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 [storage : Apply defaults to pools and volumes [1/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:28 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'name': 'foo', 'disks': ['vdb'], 'state': 'absent', 'volumes': [{'name': 'test1', 'size': '5g', 'mount_point': '/opt/test1'}, {'name': 'test2', 'size': '4g', 'mount_point': '/opt/test2'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vdb"], "name": "foo", "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": ["vdb"], "name": "foo", "state": "absent", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "5g"}, {"mount_point": "/opt/test2", "name": "test2", "size": "4g"}]}} TASK [storage : Apply defaults to pools and volumes [2/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:36 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=[{'state': 'absent', 'type': 'lvm', 'name': 'foo', 'disks': ['vdb'], 'volumes': [{'name': 'test1', 'size': '5g', 'mount_point': '/opt/test1'}, {'name': 'test2', 'size': '4g', 'mount_point': '/opt/test2'}]}, {'name': 'test1', 'size': '5g', 'mount_point': '/opt/test1'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "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": ["vdb"], "name": "foo", "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-30-1.2.x86_64.qcow2] => (item=[{'state': 'absent', 'type': 'lvm', 'name': 'foo', 'disks': ['vdb'], 'volumes': [{'name': 'test1', 'size': '5g', 'mount_point': '/opt/test1'}, {'name': 'test2', 'size': '4g', 'mount_point': '/opt/test2'}]}, {'name': 'test2', 'size': '4g', 'mount_point': '/opt/test2'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "size": 0, "state": "present", "type": "lvm"}, {"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "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": ["vdb"], "name": "foo", "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 [storage : Apply defaults to pools and volumes [3/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:44 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=[{'name': 'test1', 'size': '5g', 'mount_point': '/opt/test1'}, {'state': 'present', 'type': 'lvm', 'size': 0, 'fs_type': 'xfs', 'fs_label': '', 'fs_create_options': '', 'fs_overwrite_existing': True, 'mount_point': '', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid'}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "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"}, {"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "size": 0, "state": "present", "type": "lvm"}]} ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=[{'name': 'test2', 'size': '4g', 'mount_point': '/opt/test2'}, {'state': 'present', 'type': 'lvm', 'size': 0, 'fs_type': 'xfs', 'fs_label': '', 'fs_create_options': '', 'fs_overwrite_existing': True, 'mount_point': '', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid'}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "5g", "state": "present", "type": "lvm"}, {"fs_create_options": "", "fs_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", "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"}, {"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "size": 0, "state": "present", "type": "lvm"}]} TASK [storage : Apply defaults to pools and volumes [4/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:52 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'absent', 'type': 'lvm', 'name': 'foo', 'disks': ['vdb'], 'volumes': [{'name': 'test1', 'size': '5g', 'mount_point': '/opt/test1'}, {'name': 'test2', 'size': '4g', 'mount_point': '/opt/test2'}]}) => {"ansible_facts": {"_storage_vols_no_defaults_by_pool": {"foo": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "5g", "state": "present", "type": "lvm"}, {"fs_create_options": "", "fs_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", "size": "4g", "state": "present", "type": "lvm"}]}}, "ansible_loop_var": "item", "changed": false, "item": {"disks": ["vdb"], "name": "foo", "state": "absent", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "5g"}, {"mount_point": "/opt/test2", "name": "test2", "size": "4g"}]}} TASK [storage : Apply defaults to pools and volumes [5/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:61 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'absent', 'type': 'lvm', 'name': 'foo', 'disks': ['vdb'], 'volumes': [{'name': 'test1', 'size': '5g', 'mount_point': '/opt/test1'}, {'name': 'test2', 'size': '4g', 'mount_point': '/opt/test2'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vdb"], "name": "foo", "state": "absent", "type": "lvm", "volumes": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "5g", "state": "present", "type": "lvm"}, {"fs_create_options": "", "fs_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", "size": "4g", "state": "present", "type": "lvm"}]}]}, "ansible_index_var": "idx", "ansible_loop_var": "pool", "changed": false, "idx": 0, "pool": {"disks": ["vdb"], "name": "foo", "state": "absent", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "5g"}, {"mount_point": "/opt/test2", "name": "test2", "size": "4g"}]}} TASK [storage : Apply defaults to pools and volumes [6/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:72 TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools": [ { "disks": [ "vdb" ], "name": "foo", "state": "absent", "type": "lvm", "volumes": [ { "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "5g", "state": "present", "type": "lvm" }, { "fs_create_options": "", "fs_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", "size": "4g", "state": "present", "type": "lvm" } ] } ] } TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_volumes": [] } TASK [storage : get required packages] ***************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": []} TASK [storage : make sure required packages are installed] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : manage the pools and volumes to match the specified state] ***** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:104 changed: [/cache/Fedora-Cloud-Base-30-1.2.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/vdb", "fs_type": "lvmpv"}], "changed": true, "leaves": ["/dev/sr0", "/dev/vda1", "/dev/vdb", "/dev/vdc"], "mounts": [{"path": "/opt/test1", "state": "absent"}], "packages": ["e2fsprogs"], "pools": [{"disks": ["vdb"], "name": "foo", "state": "absent", "type": "lvm", "volumes": [{"_device": "/dev/mapper/foo-test1", "_mount_id": "/dev/mapper/foo-test1", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "5g", "state": "present", "type": "lvm"}, {"_device": "", "_mount_id": "", "fs_create_options": "", "fs_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", "size": "4g", "state": "present", "type": "lvm"}]}], "volumes": []} TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:113 ok: [/cache/Fedora-Cloud-Base-30-1.2.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/vdb", "fs_type": "lvmpv" } ], "changed": true, "failed": false, "leaves": [ "/dev/sr0", "/dev/vda1", "/dev/vdb", "/dev/vdc" ], "mounts": [ { "path": "/opt/test1", "state": "absent" } ], "packages": [ "e2fsprogs" ], "pools": [ { "disks": [ "vdb" ], "name": "foo", "state": "absent", "type": "lvm", "volumes": [ { "_device": "/dev/mapper/foo-test1", "_mount_id": "/dev/mapper/foo-test1", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "5g", "state": "present", "type": "lvm" }, { "_device": "", "_mount_id": "", "fs_create_options": "", "fs_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", "size": "4g", "state": "present", "type": "lvm" } ] } ], "volumes": [] } } TASK [storage : set the list of pools for test verification] ******************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:116 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": [{"disks": ["vdb"], "name": "foo", "state": "absent", "type": "lvm", "volumes": [{"_device": "/dev/mapper/foo-test1", "_mount_id": "/dev/mapper/foo-test1", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "5g", "state": "present", "type": "lvm"}, {"_device": "", "_mount_id": "", "fs_create_options": "", "fs_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", "size": "4g", "state": "present", "type": "lvm"}]}]}, "changed": false} TASK [storage : set the list of volumes for test verification] ***************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:120 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : manage mounts to match the specified state] ******************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:132 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'path': '/opt/test1', 'state': '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 [storage : tell systemd to refresh its view of /etc/fstab] **************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:143 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [storage : Update facts] ************************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:153 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmpr6sk038f/tests/tests_create_lvm_pool_then_remove.yml:91 included: /tmp/tmpr6sk038f/tests/verify-role-results.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [Print out pool information] ********************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:1 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools_list": [ { "disks": [ "vdb" ], "name": "foo", "state": "absent", "type": "lvm", "volumes": [ { "_device": "/dev/mapper/foo-test1", "_mount_id": "/dev/mapper/foo-test1", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "5g", "state": "present", "type": "lvm" }, { "_device": "", "_mount_id": "", "fs_create_options": "", "fs_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", "size": "4g", "state": "present", "type": "lvm" } ] } ] } TASK [Print out volume information] ******************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:6 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {} TASK [Collect info about the volumes.] ***************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:14 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "info": {"/dev/sr0": {"fstype": "iso9660", "label": "cidata", "name": "/dev/sr0", "type": "rom", "uuid": "2020-05-27-13-14-32-00"}, "/dev/vda": {"fstype": "", "label": "", "name": "/dev/vda", "type": "disk", "uuid": ""}, "/dev/vda1": {"fstype": "ext4", "label": "", "name": "/dev/vda1", "type": "partition", "uuid": "ea711a29-e460-4879-9d70-9da99ae021f9"}, "/dev/vdb": {"fstype": "", "label": "", "name": "/dev/vdb", "type": "disk", "uuid": ""}, "/dev/vdc": {"fstype": "", "label": "", "name": "/dev/vdc", "type": "disk", "uuid": ""}}} TASK [Read the /etc/fstab file for volume existence] *************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:19 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/fstab"], "delta": "0:00:00.002950", "end": "2020-05-27 13:17:21.489833", "rc": 0, "start": "2020-05-27 13:17:21.486883", "stderr": "", "stderr_lines": [], "stdout": "\n#\n# /etc/fstab\n# Created by anaconda on Fri Apr 26 02:02:19 2019\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=ea711a29-e460-4879-9d70-9da99ae021f9 / ext4 defaults 1 1", "stdout_lines": ["", "#", "# /etc/fstab", "# Created by anaconda on Fri Apr 26 02:02:19 2019", "#", "# 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=ea711a29-e460-4879-9d70-9da99ae021f9 / ext4 defaults 1 1"]} TASK [Verify the volumes listed in storage_pools were correctly managed] ******* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:27 [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/tmpr6sk038f/tests/test-verify-pool.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-pool.yml:5 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pool_tests": ["name", "type", "size", "members"]}, "changed": false} TASK [Verify the volumes in this pool were correctly managed] ****************** task path: /tmp/tmpr6sk038f/tests/test-verify-pool.yml:17 [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/tmpr6sk038f/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": false, "_storage_volume_tests": ["mount", "fstab", "fs", "device"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:12 included: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/foo-test1"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/foo-test1"], "delta": "0:00:01.003679", "end": "2020-05-27 13:17:23.087297", "rc": 0, "start": "2020-05-27 13:17:22.083618", "stderr": "", "stderr_lines": [], "stdout": "/dev/mapper/foo-test1", "stdout_lines": ["/dev/mapper/foo-test1"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:15 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": {"changed": true, "cmd": ["realpath", "/dev/mapper/foo-test1"], "delta": "0:00:01.003679", "end": "2020-05-27 13:17:23.087297", "failed": false, "rc": 0, "start": "2020-05-27 13:17:22.083618", "stderr": "", "stderr_lines": [], "stdout": "/dev/mapper/foo-test1", "stdout_lines": ["/dev/mapper/foo-test1"]}}, "changed": false} TASK [Set some facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:20 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [], "storage_test_mount_expected_match_count": "0", "storage_test_mount_point_matches": []}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:31 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:40 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:48 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Unset facts] ************************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:58 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_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/tmpr6sk038f/tests/test-verify-volume-fstab.yml:9 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:16 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:23 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/foo-test1"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/foo-test1"], "delta": "0:00:00.002875", "end": "2020-05-27 13:17:23.796639", "rc": 0, "start": "2020-05-27 13:17:23.793764", "stderr": "", "stderr_lines": [], "stdout": "/dev/mapper/foo-test1", "stdout_lines": ["/dev/mapper/foo-test1"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:15 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": {"changed": true, "cmd": ["realpath", "/dev/mapper/foo-test1"], "delta": "0:00:00.002875", "end": "2020-05-27 13:17:23.796639", "failed": false, "rc": 0, "start": "2020-05-27 13:17:23.793764", "stderr": "", "stderr_lines": [], "stdout": "/dev/mapper/foo-test1", "stdout_lines": ["/dev/mapper/foo-test1"]}}, "changed": false} TASK [Verify fs type] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:21 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify fs label] ********************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:27 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/foo-test1"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/foo-test1"], "delta": "0:00:00.002587", "end": "2020-05-27 13:17:24.250765", "rc": 0, "start": "2020-05-27 13:17:24.248178", "stderr": "", "stderr_lines": [], "stdout": "/dev/mapper/foo-test1", "stdout_lines": ["/dev/mapper/foo-test1"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:15 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": {"changed": true, "cmd": ["realpath", "/dev/mapper/foo-test1"], "delta": "0:00:00.002587", "end": "2020-05-27 13:17:24.250765", "failed": false, "rc": 0, "start": "2020-05-27 13:17:24.248178", "stderr": "", "stderr_lines": [], "stdout": "/dev/mapper/foo-test1", "stdout_lines": ["/dev/mapper/foo-test1"]}}, "changed": false} TASK [See whether the device node is present] ********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:21 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "stat": {"exists": false}} TASK [Verify the presence/absence of the device node] ************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:27 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:35 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:41 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "lvm"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:45 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:50 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Clean up facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": false, "_storage_volume_tests": ["mount", "fstab", "fs", "device"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:12 included: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": ""}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:10 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:15 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": {"changed": false, "skip_reason": "Conditional result was False", "skipped": true}}, "changed": false} TASK [Set some facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:20 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [], "storage_test_mount_expected_match_count": "0", "storage_test_mount_point_matches": []}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:31 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:40 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:48 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Unset facts] ************************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:58 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_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/tmpr6sk038f/tests/test-verify-volume-fstab.yml:9 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:16 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:23 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": ""}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:10 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:15 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": {"changed": false, "skip_reason": "Conditional result was False", "skipped": true}}, "changed": false} TASK [Verify fs type] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:21 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify fs label] ********************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:27 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": ""}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:10 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:15 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": {"changed": false, "skip_reason": "Conditional result was False", "skipped": true}}, "changed": false} TASK [See whether the device node is present] ********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:21 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "stat": {"exists": false}} TASK [Verify the presence/absence of the device node] ************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:27 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:35 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:41 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "lvm"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:45 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:50 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Clean up facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:34 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_pool": null}, "changed": false} TASK [Verify the volumes with no pool were correctly managed] ****************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:41 TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:51 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_blkinfo": null, "storage_test_fstab": null, "storage_test_volume": null}, "changed": false} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 : ok=351 changed=25 unreachable=0 failed=0 skipped=81 rescued=0 ignored=0 + cd /tmp/tmpr6sk038f/tests; TEST_SUBJECTS=/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_storage-91-a6b7623-fedora-30-97_lk9m2/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmpr6sk038f/_setup.yml /tmp/tmpr6sk038f/tests/tests_create_partition_volume_then_remove.yml ansible-playbook 2.9.9 config file = /etc/ansible/ansible.cfg configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.8/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 3.8.2 (default, Feb 28 2020, 00:00:00) [GCC 10.0.1 20200216 (Red Hat 10.0.1-0.8)] Using /etc/ansible/ansible.cfg as config file PLAYBOOK: _setup.yml *********************************************************** 1 plays in /tmp/tmpr6sk038f/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmpr6sk038f/_setup.yml:5 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "groups": { "all": [ "/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2" ], "localhost": [ "/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2" ], "subjects": [ "/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmpr6sk038f/_setup.yml:7 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/Fedora-Cloud-Base-30-1.2.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/tmpr6sk038f/tests/tests_create_partition_volume_then_remove.yml PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpr6sk038f/tests/tests_create_partition_volume_then_remove.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] META: ran handlers TASK [include_role : storage] ************************************************** task path: /tmp/tmpr6sk038f/tests/tests_create_partition_volume_then_remove.yml:9 TASK [storage : Set version specific variables] ******************************** task path: /tmp/tmpr6sk038f/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/tmp/tmpr6sk038f/vars/Fedora.yml) => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-dm", "libblockdev-lvm", "libblockdev-part", "libblockdev-mdraid"]}, "ansible_included_var_files": ["/tmp/tmpr6sk038f/vars/Fedora.yml"], "ansible_loop_var": "item", "changed": false, "item": "/tmp/tmpr6sk038f/vars/Fedora.yml"} TASK [storage : define an empty list of pools to be used in testing] *********** task path: /tmp/tmpr6sk038f/tasks/main.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [storage : define an empty list of volumes to be used in testing] ********* task path: /tmp/tmpr6sk038f/tasks/main.yml:13 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : include the appropriate provider tasks] ************************ task path: /tmp/tmpr6sk038f/tasks/main.yml:17 included: /tmp/tmpr6sk038f/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [storage : get a list of rpm packages installed on host machine] ********** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [storage : make sure blivet is available] ********************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:7 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: libblockdev-mpath-2.23-1.fc30.x86_64", "Installed: libblockdev-nvdimm-2.23-1.fc30.x86_64", "Installed: userspace-rcu-0.10.1-5.fc30.x86_64", "Installed: libblockdev-part-2.23-1.fc30.x86_64", "Installed: dmraid-1.0.0.rc16-41.fc30.x86_64", "Installed: dmraid-events-1.0.0.rc16-41.fc30.x86_64", "Installed: lzo-2.08-15.fc30.x86_64", "Installed: libblockdev-swap-2.23-1.fc30.x86_64", "Installed: lvm2-2.02.183-3.fc30.x86_64", "Installed: libblockdev-utils-2.23-1.fc30.x86_64", "Installed: lvm2-libs-2.02.183-3.fc30.x86_64", "Installed: python3-blivet-1:3.1.4-1.fc30.noarch", "Installed: python3-blockdev-2.23-1.fc30.x86_64", "Installed: daxctl-libs-68-1.fc30.x86_64", "Installed: mdadm-4.1-1.fc30.x86_64", "Installed: blivet-data-1:3.1.4-1.fc30.noarch", "Installed: sgpio-1.2.0.10-23.fc30.x86_64", "Installed: nspr-4.25.0-1.fc30.x86_64", "Installed: python3-bytesize-2.2-1.fc30.x86_64", "Installed: device-mapper-event-1.02.154-3.fc30.x86_64", "Installed: lsof-4.91-3.fc30.x86_64", "Installed: nss-3.51.1-1.fc30.x86_64", "Installed: device-mapper-event-libs-1.02.154-3.fc30.x86_64", "Installed: device-mapper-multipath-0.7.9-6.git2df6110.fc30.x86_64", "Installed: gdisk-1.0.5-1.fc30.x86_64", "Installed: device-mapper-multipath-libs-0.7.9-6.git2df6110.fc30.x86_64", "Installed: nss-softokn-3.51.1-1.fc30.x86_64", "Installed: python3-gobject-base-3.32.2-1.fc30.x86_64", "Installed: device-mapper-persistent-data-0.7.6-4.fc30.x86_64", "Installed: gobject-introspection-1.60.2-1.fc30.x86_64", "Installed: nss-softokn-freebl-3.51.1-1.fc30.x86_64", "Installed: libbytesize-2.2-1.fc30.x86_64", "Installed: nss-sysinit-3.51.1-1.fc30.x86_64", "Installed: nss-util-3.51.1-1.fc30.x86_64", "Installed: volume_key-libs-0.3.12-3.fc30.x86_64", "Installed: bcache-tools-1.0.8-15.fc30.x86_64", "Installed: ndctl-68-1.fc30.x86_64", "Installed: ndctl-libs-68-1.fc30.x86_64", "Installed: libblockdev-2.23-1.fc30.x86_64", "Installed: libblockdev-btrfs-2.23-1.fc30.x86_64", "Installed: libblockdev-crypto-2.23-1.fc30.x86_64", "Installed: python3-pyudev-0.21.0-10.fc30.noarch", "Installed: btrfs-progs-5.6-1.fc30.x86_64", "Installed: libblockdev-dm-2.23-1.fc30.x86_64", "Installed: libblockdev-fs-2.23-1.fc30.x86_64", "Installed: libblockdev-kbd-2.23-1.fc30.x86_64", "Installed: libblockdev-loop-2.23-1.fc30.x86_64", "Installed: libblockdev-lvm-2.23-1.fc30.x86_64", "Installed: python3-pyparted-1:3.11.2-1.fc30.x86_64", "Installed: libaio-0.3.111-4.fc30.x86_64", "Installed: libblockdev-mdraid-2.23-1.fc30.x86_64"]} TASK [storage : initialize internal facts] ************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.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 [storage : Apply defaults to pools and volumes [1/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:28 TASK [storage : Apply defaults to pools and volumes [2/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:36 TASK [storage : Apply defaults to pools and volumes [3/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:44 TASK [storage : Apply defaults to pools and volumes [4/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:52 TASK [storage : Apply defaults to pools and volumes [5/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:61 TASK [storage : Apply defaults to pools and volumes [6/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:72 TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools": [] } TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_volumes": [] } TASK [storage : get required packages] ***************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": []} TASK [storage : make sure required packages are installed] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : manage the pools and volumes to match the specified state] ***** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:104 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": []} TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:113 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "blivet_output": { "actions": [], "changed": false, "failed": false, "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": [] } } TASK [storage : set the list of pools for test verification] ******************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:116 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [storage : set the list of volumes for test verification] ***************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:120 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : manage mounts to match the specified state] ******************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:132 TASK [storage : tell systemd to refresh its view of /etc/fstab] **************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:143 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [storage : Update facts] ************************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:153 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmpr6sk038f/tests/tests_create_partition_volume_then_remove.yml:12 included: /tmp/tmpr6sk038f/tests/get_unused_disk.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [Find unused disks in the system] ***************************************** task path: /tmp/tmpr6sk038f/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-30-1.2.x86_64.qcow2] => {"changed": false, "disks": ["vdb"]} TASK [set_fact] **************************************************************** task path: /tmp/tmpr6sk038f/tests/get_unused_disk.yml:8 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"unused_disks": ["vdb"]}, "changed": false} TASK [Exit playbook when there's not enough unused disks in the system] ******** task path: /tmp/tmpr6sk038f/tests/get_unused_disk.yml:12 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Print unused disks] ****************************************************** task path: /tmp/tmpr6sk038f/tests/get_unused_disk.yml:17 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "unused_disks": [ "vdb" ] } TASK [Create a partition device mounted on "/opt/test1"] *********************** task path: /tmp/tmpr6sk038f/tests/tests_create_partition_volume_then_remove.yml:16 TASK [storage : Set version specific variables] ******************************** task path: /tmp/tmpr6sk038f/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/tmp/tmpr6sk038f/vars/Fedora.yml) => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-dm", "libblockdev-lvm", "libblockdev-part", "libblockdev-mdraid"]}, "ansible_included_var_files": ["/tmp/tmpr6sk038f/vars/Fedora.yml"], "ansible_loop_var": "item", "changed": false, "item": "/tmp/tmpr6sk038f/vars/Fedora.yml"} TASK [storage : define an empty list of pools to be used in testing] *********** task path: /tmp/tmpr6sk038f/tasks/main.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [storage : define an empty list of volumes to be used in testing] ********* task path: /tmp/tmpr6sk038f/tasks/main.yml:13 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : include the appropriate provider tasks] ************************ task path: /tmp/tmpr6sk038f/tasks/main.yml:17 included: /tmp/tmpr6sk038f/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [storage : get a list of rpm packages installed on host machine] ********** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [storage : make sure blivet is available] ********************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : initialize internal facts] ************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.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 [storage : Apply defaults to pools and volumes [1/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:28 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'name': 'vdb', 'type': 'partition', 'disks': ['vdb'], 'volumes': [{'name': 'test1', 'type': 'partition', 'mount_point': '/opt/test1'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vdb"], "name": "vdb", "state": "present", "type": "partition", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "type": "partition"}]}]}, "ansible_loop_var": "pool", "changed": false, "pool": {"disks": ["vdb"], "name": "vdb", "type": "partition", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "type": "partition"}]}} TASK [storage : Apply defaults to pools and volumes [2/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:36 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=[{'state': 'present', 'type': 'partition', 'name': 'vdb', 'disks': ['vdb'], 'volumes': [{'name': 'test1', 'type': 'partition', 'mount_point': '/opt/test1'}]}, {'name': 'test1', 'type': 'partition', 'mount_point': '/opt/test1'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "size": 0, "state": "present", "type": "lvm"}], "_storage_vol_pools": ["vdb"], "_storage_vols_no_defaults": [{"mount_point": "/opt/test1", "name": "test1", "type": "partition"}]}, "ansible_loop_var": "item", "changed": false, "item": [{"disks": ["vdb"], "name": "vdb", "state": "present", "type": "partition", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "type": "partition"}]}, {"mount_point": "/opt/test1", "name": "test1", "type": "partition"}]} TASK [storage : Apply defaults to pools and volumes [3/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:44 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=[{'name': 'test1', 'type': 'partition', 'mount_point': '/opt/test1'}, {'state': 'present', 'type': 'lvm', 'size': 0, 'fs_type': 'xfs', 'fs_label': '', 'fs_create_options': '', 'fs_overwrite_existing': True, 'mount_point': '', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid'}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "vdb", "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"}, {"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "size": 0, "state": "present", "type": "lvm"}]} TASK [storage : Apply defaults to pools and volumes [4/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:52 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'partition', 'name': 'vdb', 'disks': ['vdb'], 'volumes': [{'name': 'test1', 'type': 'partition', 'mount_point': '/opt/test1'}]}) => {"ansible_facts": {"_storage_vols_no_defaults_by_pool": {"vdb": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "vdb", "size": 0, "state": "present", "type": "partition"}]}}, "ansible_loop_var": "item", "changed": false, "item": {"disks": ["vdb"], "name": "vdb", "state": "present", "type": "partition", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "type": "partition"}]}} TASK [storage : Apply defaults to pools and volumes [5/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:61 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'partition', 'name': 'vdb', 'disks': ['vdb'], 'volumes': [{'name': 'test1', 'type': 'partition', 'mount_point': '/opt/test1'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vdb"], "name": "vdb", "state": "present", "type": "partition", "volumes": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "vdb", "size": 0, "state": "present", "type": "partition"}]}]}, "ansible_index_var": "idx", "ansible_loop_var": "pool", "changed": false, "idx": 0, "pool": {"disks": ["vdb"], "name": "vdb", "state": "present", "type": "partition", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "type": "partition"}]}} TASK [storage : Apply defaults to pools and volumes [6/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:72 TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools": [ { "disks": [ "vdb" ], "name": "vdb", "state": "present", "type": "partition", "volumes": [ { "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "vdb", "size": 0, "state": "present", "type": "partition" } ] } ] } TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_volumes": [] } TASK [storage : get required packages] ***************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": [], "mounts": [], "packages": ["xfsprogs"], "pools": [], "volumes": []} TASK [storage : make sure required packages are installed] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : manage the pools and volumes to match the specified state] ***** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:104 changed: [/cache/Fedora-Cloud-Base-30-1.2.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": "xfs"}], "changed": true, "leaves": ["/dev/sr0", "/dev/vda1", "/dev/vdc", "/dev/vdb1"], "mounts": [{"dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "/dev/vdb1", "state": "mounted"}], "packages": ["e2fsprogs", "xfsprogs"], "pools": [{"disks": ["vdb"], "name": "vdb", "state": "present", "type": "partition", "volumes": [{"_device": "/dev/vdb1", "_mount_id": "/dev/vdb1", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "vdb", "size": 0, "state": "present", "type": "partition"}]}], "volumes": []} TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:113 ok: [/cache/Fedora-Cloud-Base-30-1.2.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": "xfs" } ], "changed": true, "failed": false, "leaves": [ "/dev/sr0", "/dev/vda1", "/dev/vdc", "/dev/vdb1" ], "mounts": [ { "dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "/dev/vdb1", "state": "mounted" } ], "packages": [ "e2fsprogs", "xfsprogs" ], "pools": [ { "disks": [ "vdb" ], "name": "vdb", "state": "present", "type": "partition", "volumes": [ { "_device": "/dev/vdb1", "_mount_id": "/dev/vdb1", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "vdb", "size": 0, "state": "present", "type": "partition" } ] } ], "volumes": [] } } TASK [storage : set the list of pools for test verification] ******************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:116 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": [{"disks": ["vdb"], "name": "vdb", "state": "present", "type": "partition", "volumes": [{"_device": "/dev/vdb1", "_mount_id": "/dev/vdb1", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "vdb", "size": 0, "state": "present", "type": "partition"}]}]}, "changed": false} TASK [storage : set the list of volumes for test verification] ***************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:120 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : manage mounts to match the specified state] ******************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:132 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'src': '/dev/vdb1', 'path': '/opt/test1', 'fstype': 'xfs', 'opts': 'defaults', 'dump': 0, 'passno': 0, 'state': 'mounted'}) => {"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/vdb1", "state": "mounted"}, "name": "/opt/test1", "opts": "defaults", "passno": "0", "src": "/dev/vdb1"} TASK [storage : tell systemd to refresh its view of /etc/fstab] **************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:143 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [storage : Update facts] ************************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:153 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmpr6sk038f/tests/tests_create_partition_volume_then_remove.yml:29 included: /tmp/tmpr6sk038f/tests/verify-role-results.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [Print out pool information] ********************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:1 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools_list": [ { "disks": [ "vdb" ], "name": "vdb", "state": "present", "type": "partition", "volumes": [ { "_device": "/dev/vdb1", "_mount_id": "/dev/vdb1", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "vdb", "size": 0, "state": "present", "type": "partition" } ] } ] } TASK [Print out volume information] ******************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:6 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {} TASK [Collect info about the volumes.] ***************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:14 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "info": {"/dev/sr0": {"fstype": "iso9660", "label": "cidata", "name": "/dev/sr0", "type": "rom", "uuid": "2020-05-27-13-17-26-00"}, "/dev/vda": {"fstype": "", "label": "", "name": "/dev/vda", "type": "disk", "uuid": ""}, "/dev/vda1": {"fstype": "ext4", "label": "", "name": "/dev/vda1", "type": "partition", "uuid": "ea711a29-e460-4879-9d70-9da99ae021f9"}, "/dev/vdb": {"fstype": "", "label": "", "name": "/dev/vdb", "type": "disk", "uuid": ""}, "/dev/vdb1": {"fstype": "xfs", "label": "", "name": "/dev/vdb1", "type": "partition", "uuid": "23d1e140-1a65-47d6-9d32-cacd85230244"}, "/dev/vdc": {"fstype": "", "label": "", "name": "/dev/vdc", "type": "disk", "uuid": ""}}} TASK [Read the /etc/fstab file for volume existence] *************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:19 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/fstab"], "delta": "0:00:00.002944", "end": "2020-05-27 13:19:12.432729", "rc": 0, "start": "2020-05-27 13:19:12.429785", "stderr": "", "stderr_lines": [], "stdout": "\n#\n# /etc/fstab\n# Created by anaconda on Fri Apr 26 02:02:19 2019\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=ea711a29-e460-4879-9d70-9da99ae021f9 / ext4 defaults 1 1\n/dev/vdb1 /opt/test1 xfs defaults 0 0", "stdout_lines": ["", "#", "# /etc/fstab", "# Created by anaconda on Fri Apr 26 02:02:19 2019", "#", "# 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=ea711a29-e460-4879-9d70-9da99ae021f9 / ext4 defaults 1 1", "/dev/vdb1 /opt/test1 xfs defaults 0 0"]} TASK [Verify the volumes listed in storage_pools were correctly managed] ******* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:27 included: /tmp/tmpr6sk038f/tests/test-verify-pool.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-pool.yml:5 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pool_tests": ["name", "type", "size", "members"]}, "changed": false} TASK [Verify the volumes in this pool were correctly managed] ****************** task path: /tmp/tmpr6sk038f/tests/test-verify-pool.yml:17 included: /tmp/tmpr6sk038f/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": true, "_storage_volume_tests": ["mount", "fstab", "fs", "device"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:12 included: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/vdb1"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/vdb1"], "delta": "0:00:00.004154", "end": "2020-05-27 13:19:12.912830", "rc": 0, "start": "2020-05-27 13:19:12.908676", "stderr": "", "stderr_lines": [], "stdout": "/dev/vdb1", "stdout_lines": ["/dev/vdb1"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Set some facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:20 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [{"block_available": 2607756, "block_size": 4096, "block_total": 2618624, "block_used": 10868, "device": "/dev/vdb1", "fstype": "xfs", "inode_available": 5242365, "inode_total": 5242368, "inode_used": 3, "mount": "/opt/test1", "options": "rw,seclabel,relatime,attr2,inode64,noquota", "size_available": 10681368576, "size_total": 10725883904, "uuid": "23d1e140-1a65-47d6-9d32-cacd85230244"}], "storage_test_mount_expected_match_count": "1", "storage_test_mount_point_matches": [{"block_available": 2607756, "block_size": 4096, "block_total": 2618624, "block_used": 10868, "device": "/dev/vdb1", "fstype": "xfs", "inode_available": 5242365, "inode_total": 5242368, "inode_used": 3, "mount": "/opt/test1", "options": "rw,seclabel,relatime,attr2,inode64,noquota", "size_available": 10681368576, "size_total": 10725883904, "uuid": "23d1e140-1a65-47d6-9d32-cacd85230244"}]}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:31 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:40 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:48 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Unset facts] ************************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:58 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_matches": "1", "storage_test_fstab_id_matches": ["/dev/vdb1 "], "storage_test_fstab_mount_point_matches": [" /opt/test1 "]}, "changed": false} TASK [Verify that the device identifier appears in /etc/fstab] ***************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:16 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:23 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/vdb1"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/vdb1"], "delta": "0:00:00.002183", "end": "2020-05-27 13:19:13.437982", "rc": 0, "start": "2020-05-27 13:19:13.435799", "stderr": "", "stderr_lines": [], "stdout": "/dev/vdb1", "stdout_lines": ["/dev/vdb1"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify fs type] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:21 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify fs label] ********************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:27 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/vdb1"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/vdb1"], "delta": "0:00:00.002779", "end": "2020-05-27 13:19:13.829393", "rc": 0, "start": "2020-05-27 13:19:13.826614", "stderr": "", "stderr_lines": [], "stdout": "/dev/vdb1", "stdout_lines": ["/dev/vdb1"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [See whether the device node is present] ********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:21 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "stat": {"atime": 1590585549.434957, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "ctime": 1590585549.434957, "dev": 6, "device_type": 64529, "executable": false, "exists": true, "gid": 6, "gr_name": "disk", "inode": 1539, "isblk": true, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mimetype": "inode/blockdevice", "mode": "0660", "mtime": 1590585549.434957, "nlink": 1, "path": "/dev/vdb1", "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/tmpr6sk038f/tests/test-verify-volume-device.yml:27 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:35 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:41 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "partition"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:45 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:50 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:34 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_pool": null}, "changed": false} TASK [Verify the volumes with no pool were correctly managed] ****************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:41 TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:51 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_blkinfo": null, "storage_test_fstab": null, "storage_test_volume": null}, "changed": false} TASK [Repeat the previous invocation to verify idempotence] ******************** task path: /tmp/tmpr6sk038f/tests/tests_create_partition_volume_then_remove.yml:31 TASK [storage : Set version specific variables] ******************************** task path: /tmp/tmpr6sk038f/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/tmp/tmpr6sk038f/vars/Fedora.yml) => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-dm", "libblockdev-lvm", "libblockdev-part", "libblockdev-mdraid"]}, "ansible_included_var_files": ["/tmp/tmpr6sk038f/vars/Fedora.yml"], "ansible_loop_var": "item", "changed": false, "item": "/tmp/tmpr6sk038f/vars/Fedora.yml"} TASK [storage : define an empty list of pools to be used in testing] *********** task path: /tmp/tmpr6sk038f/tasks/main.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [storage : define an empty list of volumes to be used in testing] ********* task path: /tmp/tmpr6sk038f/tasks/main.yml:13 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : include the appropriate provider tasks] ************************ task path: /tmp/tmpr6sk038f/tasks/main.yml:17 included: /tmp/tmpr6sk038f/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [storage : get a list of rpm packages installed on host machine] ********** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [storage : make sure blivet is available] ********************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : initialize internal facts] ************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.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 [storage : Apply defaults to pools and volumes [1/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:28 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'name': 'vdb', 'type': 'partition', 'disks': ['vdb'], 'volumes': [{'name': 'test1', 'type': 'partition', 'mount_point': '/opt/test1'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vdb"], "name": "vdb", "state": "present", "type": "partition", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "type": "partition"}]}]}, "ansible_loop_var": "pool", "changed": false, "pool": {"disks": ["vdb"], "name": "vdb", "type": "partition", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "type": "partition"}]}} TASK [storage : Apply defaults to pools and volumes [2/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:36 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=[{'state': 'present', 'type': 'partition', 'name': 'vdb', 'disks': ['vdb'], 'volumes': [{'name': 'test1', 'type': 'partition', 'mount_point': '/opt/test1'}]}, {'name': 'test1', 'type': 'partition', 'mount_point': '/opt/test1'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "size": 0, "state": "present", "type": "lvm"}], "_storage_vol_pools": ["vdb"], "_storage_vols_no_defaults": [{"mount_point": "/opt/test1", "name": "test1", "type": "partition"}]}, "ansible_loop_var": "item", "changed": false, "item": [{"disks": ["vdb"], "name": "vdb", "state": "present", "type": "partition", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "type": "partition"}]}, {"mount_point": "/opt/test1", "name": "test1", "type": "partition"}]} TASK [storage : Apply defaults to pools and volumes [3/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:44 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=[{'name': 'test1', 'type': 'partition', 'mount_point': '/opt/test1'}, {'state': 'present', 'type': 'lvm', 'size': 0, 'fs_type': 'xfs', 'fs_label': '', 'fs_create_options': '', 'fs_overwrite_existing': True, 'mount_point': '', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid'}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "vdb", "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"}, {"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "size": 0, "state": "present", "type": "lvm"}]} TASK [storage : Apply defaults to pools and volumes [4/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:52 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'partition', 'name': 'vdb', 'disks': ['vdb'], 'volumes': [{'name': 'test1', 'type': 'partition', 'mount_point': '/opt/test1'}]}) => {"ansible_facts": {"_storage_vols_no_defaults_by_pool": {"vdb": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "vdb", "size": 0, "state": "present", "type": "partition"}]}}, "ansible_loop_var": "item", "changed": false, "item": {"disks": ["vdb"], "name": "vdb", "state": "present", "type": "partition", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "type": "partition"}]}} TASK [storage : Apply defaults to pools and volumes [5/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:61 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'partition', 'name': 'vdb', 'disks': ['vdb'], 'volumes': [{'name': 'test1', 'type': 'partition', 'mount_point': '/opt/test1'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vdb"], "name": "vdb", "state": "present", "type": "partition", "volumes": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "vdb", "size": 0, "state": "present", "type": "partition"}]}]}, "ansible_index_var": "idx", "ansible_loop_var": "pool", "changed": false, "idx": 0, "pool": {"disks": ["vdb"], "name": "vdb", "state": "present", "type": "partition", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "type": "partition"}]}} TASK [storage : Apply defaults to pools and volumes [6/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:72 TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools": [ { "disks": [ "vdb" ], "name": "vdb", "state": "present", "type": "partition", "volumes": [ { "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "vdb", "size": 0, "state": "present", "type": "partition" } ] } ] } TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_volumes": [] } TASK [storage : get required packages] ***************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": [], "mounts": [], "packages": ["xfsprogs"], "pools": [], "volumes": []} TASK [storage : make sure required packages are installed] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : manage the pools and volumes to match the specified state] ***** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:104 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [{"action": "destroy format", "device": "/dev/vdb1", "fs_type": "xfs"}, {"action": "destroy device", "device": "/dev/vdb1", "fs_type": null}, {"action": "destroy format", "device": "/dev/vdb", "fs_type": "disklabel"}, {"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": "xfs"}], "changed": true, "leaves": ["/dev/sr0", "/dev/vda1", "/dev/vdc", "/dev/vdb1"], "mounts": [{"path": "/opt/test1", "state": "absent"}, {"dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "/dev/vdb1", "state": "mounted"}], "packages": ["e2fsprogs", "xfsprogs"], "pools": [{"disks": ["vdb"], "name": "vdb", "state": "present", "type": "partition", "volumes": [{"_device": "/dev/vdb1", "_mount_id": "/dev/vdb1", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "vdb", "size": 0, "state": "present", "type": "partition"}]}], "volumes": []} TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:113 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "blivet_output": { "actions": [ { "action": "destroy format", "device": "/dev/vdb1", "fs_type": "xfs" }, { "action": "destroy device", "device": "/dev/vdb1", "fs_type": null }, { "action": "destroy format", "device": "/dev/vdb", "fs_type": "disklabel" }, { "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": "xfs" } ], "changed": true, "failed": false, "leaves": [ "/dev/sr0", "/dev/vda1", "/dev/vdc", "/dev/vdb1" ], "mounts": [ { "path": "/opt/test1", "state": "absent" }, { "dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "/dev/vdb1", "state": "mounted" } ], "packages": [ "e2fsprogs", "xfsprogs" ], "pools": [ { "disks": [ "vdb" ], "name": "vdb", "state": "present", "type": "partition", "volumes": [ { "_device": "/dev/vdb1", "_mount_id": "/dev/vdb1", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "vdb", "size": 0, "state": "present", "type": "partition" } ] } ], "volumes": [] } } TASK [storage : set the list of pools for test verification] ******************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:116 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": [{"disks": ["vdb"], "name": "vdb", "state": "present", "type": "partition", "volumes": [{"_device": "/dev/vdb1", "_mount_id": "/dev/vdb1", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "vdb", "size": 0, "state": "present", "type": "partition"}]}]}, "changed": false} TASK [storage : set the list of volumes for test verification] ***************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:120 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : manage mounts to match the specified state] ******************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:132 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'path': '/opt/test1', 'state': '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"} changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'src': '/dev/vdb1', 'path': '/opt/test1', 'fstype': 'xfs', 'opts': 'defaults', 'dump': 0, 'passno': 0, 'state': 'mounted'}) => {"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/vdb1", "state": "mounted"}, "name": "/opt/test1", "opts": "defaults", "passno": "0", "src": "/dev/vdb1"} TASK [storage : tell systemd to refresh its view of /etc/fstab] **************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:143 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [storage : Update facts] ************************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:153 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmpr6sk038f/tests/tests_create_partition_volume_then_remove.yml:44 included: /tmp/tmpr6sk038f/tests/verify-role-results.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [Print out pool information] ********************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:1 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools_list": [ { "disks": [ "vdb" ], "name": "vdb", "state": "present", "type": "partition", "volumes": [ { "_device": "/dev/vdb1", "_mount_id": "/dev/vdb1", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "vdb", "size": 0, "state": "present", "type": "partition" } ] } ] } TASK [Print out volume information] ******************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:6 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {} TASK [Collect info about the volumes.] ***************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:14 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "info": {"/dev/sr0": {"fstype": "iso9660", "label": "cidata", "name": "/dev/sr0", "type": "rom", "uuid": "2020-05-27-13-17-26-00"}, "/dev/vda": {"fstype": "", "label": "", "name": "/dev/vda", "type": "disk", "uuid": ""}, "/dev/vda1": {"fstype": "ext4", "label": "", "name": "/dev/vda1", "type": "partition", "uuid": "ea711a29-e460-4879-9d70-9da99ae021f9"}, "/dev/vdb": {"fstype": "", "label": "", "name": "/dev/vdb", "type": "disk", "uuid": ""}, "/dev/vdb1": {"fstype": "xfs", "label": "", "name": "/dev/vdb1", "type": "partition", "uuid": "ffb6afac-5f06-4b76-9289-e4c2cb2a8579"}, "/dev/vdc": {"fstype": "", "label": "", "name": "/dev/vdc", "type": "disk", "uuid": ""}}} TASK [Read the /etc/fstab file for volume existence] *************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:19 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/fstab"], "delta": "0:00:01.004414", "end": "2020-05-27 13:19:29.406156", "rc": 0, "start": "2020-05-27 13:19:28.401742", "stderr": "", "stderr_lines": [], "stdout": "\n#\n# /etc/fstab\n# Created by anaconda on Fri Apr 26 02:02:19 2019\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=ea711a29-e460-4879-9d70-9da99ae021f9 / ext4 defaults 1 1\n/dev/vdb1 /opt/test1 xfs defaults 0 0", "stdout_lines": ["", "#", "# /etc/fstab", "# Created by anaconda on Fri Apr 26 02:02:19 2019", "#", "# 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=ea711a29-e460-4879-9d70-9da99ae021f9 / ext4 defaults 1 1", "/dev/vdb1 /opt/test1 xfs defaults 0 0"]} TASK [Verify the volumes listed in storage_pools were correctly managed] ******* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:27 [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/tmpr6sk038f/tests/test-verify-pool.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-pool.yml:5 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pool_tests": ["name", "type", "size", "members"]}, "changed": false} TASK [Verify the volumes in this pool were correctly managed] ****************** task path: /tmp/tmpr6sk038f/tests/test-verify-pool.yml:17 [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/tmpr6sk038f/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": true, "_storage_volume_tests": ["mount", "fstab", "fs", "device"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:12 included: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/vdb1"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/vdb1"], "delta": "0:00:00.002930", "end": "2020-05-27 13:19:29.880305", "rc": 0, "start": "2020-05-27 13:19:29.877375", "stderr": "", "stderr_lines": [], "stdout": "/dev/vdb1", "stdout_lines": ["/dev/vdb1"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Set some facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:20 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [{"block_available": 2607756, "block_size": 4096, "block_total": 2618624, "block_used": 10868, "device": "/dev/vdb1", "fstype": "xfs", "inode_available": 5242365, "inode_total": 5242368, "inode_used": 3, "mount": "/opt/test1", "options": "rw,seclabel,relatime,attr2,inode64,noquota", "size_available": 10681368576, "size_total": 10725883904, "uuid": "ffb6afac-5f06-4b76-9289-e4c2cb2a8579"}], "storage_test_mount_expected_match_count": "1", "storage_test_mount_point_matches": [{"block_available": 2607756, "block_size": 4096, "block_total": 2618624, "block_used": 10868, "device": "/dev/vdb1", "fstype": "xfs", "inode_available": 5242365, "inode_total": 5242368, "inode_used": 3, "mount": "/opt/test1", "options": "rw,seclabel,relatime,attr2,inode64,noquota", "size_available": 10681368576, "size_total": 10725883904, "uuid": "ffb6afac-5f06-4b76-9289-e4c2cb2a8579"}]}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:31 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:40 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:48 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Unset facts] ************************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:58 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_matches": "1", "storage_test_fstab_id_matches": ["/dev/vdb1 "], "storage_test_fstab_mount_point_matches": [" /opt/test1 "]}, "changed": false} TASK [Verify that the device identifier appears in /etc/fstab] ***************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:16 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:23 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/vdb1"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/vdb1"], "delta": "0:00:00.002489", "end": "2020-05-27 13:19:30.429035", "rc": 0, "start": "2020-05-27 13:19:30.426546", "stderr": "", "stderr_lines": [], "stdout": "/dev/vdb1", "stdout_lines": ["/dev/vdb1"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify fs type] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:21 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify fs label] ********************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:27 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/vdb1"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/vdb1"], "delta": "0:00:00.002764", "end": "2020-05-27 13:19:30.835954", "rc": 0, "start": "2020-05-27 13:19:30.833190", "stderr": "", "stderr_lines": [], "stdout": "/dev/vdb1", "stdout_lines": ["/dev/vdb1"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [See whether the device node is present] ********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:21 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "stat": {"atime": 1590585564.6219568, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "ctime": 1590585564.6219568, "dev": 6, "device_type": 64529, "executable": false, "exists": true, "gid": 6, "gr_name": "disk", "inode": 1598, "isblk": true, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mimetype": "inode/blockdevice", "mode": "0660", "mtime": 1590585564.6219568, "nlink": 1, "path": "/dev/vdb1", "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/tmpr6sk038f/tests/test-verify-volume-device.yml:27 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:35 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:41 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "partition"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:45 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:50 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:34 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_pool": null}, "changed": false} TASK [Verify the volumes with no pool were correctly managed] ****************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:41 TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:51 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_blkinfo": null, "storage_test_fstab": null, "storage_test_volume": null}, "changed": false} TASK [Remove the partition created above] ************************************** task path: /tmp/tmpr6sk038f/tests/tests_create_partition_volume_then_remove.yml:46 TASK [storage : Set version specific variables] ******************************** task path: /tmp/tmpr6sk038f/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/tmp/tmpr6sk038f/vars/Fedora.yml) => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-dm", "libblockdev-lvm", "libblockdev-part", "libblockdev-mdraid"]}, "ansible_included_var_files": ["/tmp/tmpr6sk038f/vars/Fedora.yml"], "ansible_loop_var": "item", "changed": false, "item": "/tmp/tmpr6sk038f/vars/Fedora.yml"} TASK [storage : define an empty list of pools to be used in testing] *********** task path: /tmp/tmpr6sk038f/tasks/main.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [storage : define an empty list of volumes to be used in testing] ********* task path: /tmp/tmpr6sk038f/tasks/main.yml:13 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : include the appropriate provider tasks] ************************ task path: /tmp/tmpr6sk038f/tasks/main.yml:17 included: /tmp/tmpr6sk038f/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [storage : get a list of rpm packages installed on host machine] ********** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [storage : make sure blivet is available] ********************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : initialize internal facts] ************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.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 [storage : Apply defaults to pools and volumes [1/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:28 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'name': 'vdb', 'type': 'partition', 'disks': ['vdb'], 'state': 'absent', 'volumes': [{'name': 'vdb1', 'type': 'partition', 'mount_point': '/opt/test1', 'state': 'absent'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vdb"], "name": "vdb", "state": "absent", "type": "partition", "volumes": [{"mount_point": "/opt/test1", "name": "vdb1", "state": "absent", "type": "partition"}]}]}, "ansible_loop_var": "pool", "changed": false, "pool": {"disks": ["vdb"], "name": "vdb", "state": "absent", "type": "partition", "volumes": [{"mount_point": "/opt/test1", "name": "vdb1", "state": "absent", "type": "partition"}]}} TASK [storage : Apply defaults to pools and volumes [2/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:36 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=[{'state': 'absent', 'type': 'partition', 'name': 'vdb', 'disks': ['vdb'], 'volumes': [{'name': 'vdb1', 'type': 'partition', 'mount_point': '/opt/test1', 'state': 'absent'}]}, {'name': 'vdb1', 'type': 'partition', 'mount_point': '/opt/test1', 'state': 'absent'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "size": 0, "state": "present", "type": "lvm"}], "_storage_vol_pools": ["vdb"], "_storage_vols_no_defaults": [{"mount_point": "/opt/test1", "name": "vdb1", "state": "absent", "type": "partition"}]}, "ansible_loop_var": "item", "changed": false, "item": [{"disks": ["vdb"], "name": "vdb", "state": "absent", "type": "partition", "volumes": [{"mount_point": "/opt/test1", "name": "vdb1", "state": "absent", "type": "partition"}]}, {"mount_point": "/opt/test1", "name": "vdb1", "state": "absent", "type": "partition"}]} TASK [storage : Apply defaults to pools and volumes [3/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:44 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=[{'name': 'vdb1', 'type': 'partition', 'mount_point': '/opt/test1', 'state': 'absent'}, {'state': 'present', 'type': 'lvm', 'size': 0, 'fs_type': 'xfs', 'fs_label': '', 'fs_create_options': '', 'fs_overwrite_existing': True, 'mount_point': '', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid'}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "vdb1", "pool": "vdb", "size": 0, "state": "absent", "type": "partition"}]}, "ansible_index_var": "idx", "ansible_loop_var": "item", "changed": false, "idx": 0, "item": [{"mount_point": "/opt/test1", "name": "vdb1", "state": "absent", "type": "partition"}, {"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "size": 0, "state": "present", "type": "lvm"}]} TASK [storage : Apply defaults to pools and volumes [4/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:52 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'absent', 'type': 'partition', 'name': 'vdb', 'disks': ['vdb'], 'volumes': [{'name': 'vdb1', 'type': 'partition', 'mount_point': '/opt/test1', 'state': 'absent'}]}) => {"ansible_facts": {"_storage_vols_no_defaults_by_pool": {"vdb": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "vdb1", "pool": "vdb", "size": 0, "state": "absent", "type": "partition"}]}}, "ansible_loop_var": "item", "changed": false, "item": {"disks": ["vdb"], "name": "vdb", "state": "absent", "type": "partition", "volumes": [{"mount_point": "/opt/test1", "name": "vdb1", "state": "absent", "type": "partition"}]}} TASK [storage : Apply defaults to pools and volumes [5/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:61 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'absent', 'type': 'partition', 'name': 'vdb', 'disks': ['vdb'], 'volumes': [{'name': 'vdb1', 'type': 'partition', 'mount_point': '/opt/test1', 'state': 'absent'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vdb"], "name": "vdb", "state": "absent", "type": "partition", "volumes": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "vdb1", "pool": "vdb", "size": 0, "state": "absent", "type": "partition"}]}]}, "ansible_index_var": "idx", "ansible_loop_var": "pool", "changed": false, "idx": 0, "pool": {"disks": ["vdb"], "name": "vdb", "state": "absent", "type": "partition", "volumes": [{"mount_point": "/opt/test1", "name": "vdb1", "state": "absent", "type": "partition"}]}} TASK [storage : Apply defaults to pools and volumes [6/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:72 TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools": [ { "disks": [ "vdb" ], "name": "vdb", "state": "absent", "type": "partition", "volumes": [ { "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "vdb1", "pool": "vdb", "size": 0, "state": "absent", "type": "partition" } ] } ] } TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_volumes": [] } TASK [storage : get required packages] ***************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": []} TASK [storage : make sure required packages are installed] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : manage the pools and volumes to match the specified state] ***** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:104 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [{"action": "destroy format", "device": "/dev/vdb1", "fs_type": "xfs"}, {"action": "destroy device", "device": "/dev/vdb1", "fs_type": null}, {"action": "destroy format", "device": "/dev/vdb", "fs_type": "disklabel"}], "changed": true, "leaves": ["/dev/sr0", "/dev/vda1", "/dev/vdb", "/dev/vdc"], "mounts": [{"path": "/opt/test1", "state": "absent"}], "packages": ["e2fsprogs"], "pools": [{"disks": ["vdb"], "name": "vdb", "state": "absent", "type": "partition", "volumes": [{"_device": "/dev/vdb1", "_mount_id": "UUID=ffb6afac-5f06-4b76-9289-e4c2cb2a8579", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "vdb1", "pool": "vdb", "size": 0, "state": "absent", "type": "partition"}]}], "volumes": []} TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:113 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "blivet_output": { "actions": [ { "action": "destroy format", "device": "/dev/vdb1", "fs_type": "xfs" }, { "action": "destroy device", "device": "/dev/vdb1", "fs_type": null }, { "action": "destroy format", "device": "/dev/vdb", "fs_type": "disklabel" } ], "changed": true, "failed": false, "leaves": [ "/dev/sr0", "/dev/vda1", "/dev/vdb", "/dev/vdc" ], "mounts": [ { "path": "/opt/test1", "state": "absent" } ], "packages": [ "e2fsprogs" ], "pools": [ { "disks": [ "vdb" ], "name": "vdb", "state": "absent", "type": "partition", "volumes": [ { "_device": "/dev/vdb1", "_mount_id": "UUID=ffb6afac-5f06-4b76-9289-e4c2cb2a8579", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "vdb1", "pool": "vdb", "size": 0, "state": "absent", "type": "partition" } ] } ], "volumes": [] } } TASK [storage : set the list of pools for test verification] ******************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:116 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": [{"disks": ["vdb"], "name": "vdb", "state": "absent", "type": "partition", "volumes": [{"_device": "/dev/vdb1", "_mount_id": "UUID=ffb6afac-5f06-4b76-9289-e4c2cb2a8579", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "vdb1", "pool": "vdb", "size": 0, "state": "absent", "type": "partition"}]}]}, "changed": false} TASK [storage : set the list of volumes for test verification] ***************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:120 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : manage mounts to match the specified state] ******************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:132 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'path': '/opt/test1', 'state': '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 [storage : tell systemd to refresh its view of /etc/fstab] **************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:143 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [storage : Update facts] ************************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:153 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmpr6sk038f/tests/tests_create_partition_volume_then_remove.yml:61 included: /tmp/tmpr6sk038f/tests/verify-role-results.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [Print out pool information] ********************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:1 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools_list": [ { "disks": [ "vdb" ], "name": "vdb", "state": "absent", "type": "partition", "volumes": [ { "_device": "/dev/vdb1", "_mount_id": "UUID=ffb6afac-5f06-4b76-9289-e4c2cb2a8579", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "vdb1", "pool": "vdb", "size": 0, "state": "absent", "type": "partition" } ] } ] } TASK [Print out volume information] ******************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:6 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {} TASK [Collect info about the volumes.] ***************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:14 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "info": {"/dev/sr0": {"fstype": "iso9660", "label": "cidata", "name": "/dev/sr0", "type": "rom", "uuid": "2020-05-27-13-17-26-00"}, "/dev/vda": {"fstype": "", "label": "", "name": "/dev/vda", "type": "disk", "uuid": ""}, "/dev/vda1": {"fstype": "ext4", "label": "", "name": "/dev/vda1", "type": "partition", "uuid": "ea711a29-e460-4879-9d70-9da99ae021f9"}, "/dev/vdb": {"fstype": "", "label": "", "name": "/dev/vdb", "type": "disk", "uuid": ""}, "/dev/vdc": {"fstype": "", "label": "", "name": "/dev/vdc", "type": "disk", "uuid": ""}}} TASK [Read the /etc/fstab file for volume existence] *************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:19 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/fstab"], "delta": "0:00:00.002657", "end": "2020-05-27 13:19:43.045406", "rc": 0, "start": "2020-05-27 13:19:43.042749", "stderr": "", "stderr_lines": [], "stdout": "\n#\n# /etc/fstab\n# Created by anaconda on Fri Apr 26 02:02:19 2019\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=ea711a29-e460-4879-9d70-9da99ae021f9 / ext4 defaults 1 1", "stdout_lines": ["", "#", "# /etc/fstab", "# Created by anaconda on Fri Apr 26 02:02:19 2019", "#", "# 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=ea711a29-e460-4879-9d70-9da99ae021f9 / ext4 defaults 1 1"]} TASK [Verify the volumes listed in storage_pools were correctly managed] ******* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:27 [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/tmpr6sk038f/tests/test-verify-pool.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-pool.yml:5 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pool_tests": ["name", "type", "size", "members"]}, "changed": false} TASK [Verify the volumes in this pool were correctly managed] ****************** task path: /tmp/tmpr6sk038f/tests/test-verify-pool.yml:17 [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/tmpr6sk038f/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": false, "_storage_volume_tests": ["mount", "fstab", "fs", "device"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:12 included: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/vdb1"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/vdb1"], "delta": "0:00:00.002841", "end": "2020-05-27 13:19:43.520414", "rc": 0, "start": "2020-05-27 13:19:43.517573", "stderr": "", "stderr_lines": [], "stdout": "/dev/vdb1", "stdout_lines": ["/dev/vdb1"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:15 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": {"changed": true, "cmd": ["realpath", "/dev/vdb1"], "delta": "0:00:00.002841", "end": "2020-05-27 13:19:43.520414", "failed": false, "rc": 0, "start": "2020-05-27 13:19:43.517573", "stderr": "", "stderr_lines": [], "stdout": "/dev/vdb1", "stdout_lines": ["/dev/vdb1"]}}, "changed": false} TASK [Set some facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:20 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [], "storage_test_mount_expected_match_count": "0", "storage_test_mount_point_matches": []}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:31 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:40 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:48 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Unset facts] ************************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:58 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_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/tmpr6sk038f/tests/test-verify-volume-fstab.yml:9 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:16 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:23 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/vdb1"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/vdb1"], "delta": "0:00:00.002632", "end": "2020-05-27 13:19:44.060680", "rc": 0, "start": "2020-05-27 13:19:44.058048", "stderr": "", "stderr_lines": [], "stdout": "/dev/vdb1", "stdout_lines": ["/dev/vdb1"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:15 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": {"changed": true, "cmd": ["realpath", "/dev/vdb1"], "delta": "0:00:00.002632", "end": "2020-05-27 13:19:44.060680", "failed": false, "rc": 0, "start": "2020-05-27 13:19:44.058048", "stderr": "", "stderr_lines": [], "stdout": "/dev/vdb1", "stdout_lines": ["/dev/vdb1"]}}, "changed": false} TASK [Verify fs type] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:21 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify fs label] ********************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:27 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/vdb1"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/vdb1"], "delta": "0:00:00.002288", "end": "2020-05-27 13:19:44.451588", "rc": 0, "start": "2020-05-27 13:19:44.449300", "stderr": "", "stderr_lines": [], "stdout": "/dev/vdb1", "stdout_lines": ["/dev/vdb1"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:15 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": {"changed": true, "cmd": ["realpath", "/dev/vdb1"], "delta": "0:00:00.002288", "end": "2020-05-27 13:19:44.451588", "failed": false, "rc": 0, "start": "2020-05-27 13:19:44.449300", "stderr": "", "stderr_lines": [], "stdout": "/dev/vdb1", "stdout_lines": ["/dev/vdb1"]}}, "changed": false} TASK [See whether the device node is present] ********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:21 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "stat": {"exists": false}} TASK [Verify the presence/absence of the device node] ************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:27 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:35 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:41 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "partition"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:45 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:50 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Clean up facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:34 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_pool": null}, "changed": false} TASK [Verify the volumes with no pool were correctly managed] ****************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:41 TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:51 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_blkinfo": null, "storage_test_fstab": null, "storage_test_volume": null}, "changed": false} TASK [Repeat the previous invocation to verify idempotence] ******************** task path: /tmp/tmpr6sk038f/tests/tests_create_partition_volume_then_remove.yml:63 TASK [storage : Set version specific variables] ******************************** task path: /tmp/tmpr6sk038f/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/tmp/tmpr6sk038f/vars/Fedora.yml) => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-dm", "libblockdev-lvm", "libblockdev-part", "libblockdev-mdraid"]}, "ansible_included_var_files": ["/tmp/tmpr6sk038f/vars/Fedora.yml"], "ansible_loop_var": "item", "changed": false, "item": "/tmp/tmpr6sk038f/vars/Fedora.yml"} TASK [storage : define an empty list of pools to be used in testing] *********** task path: /tmp/tmpr6sk038f/tasks/main.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [storage : define an empty list of volumes to be used in testing] ********* task path: /tmp/tmpr6sk038f/tasks/main.yml:13 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : include the appropriate provider tasks] ************************ task path: /tmp/tmpr6sk038f/tasks/main.yml:17 included: /tmp/tmpr6sk038f/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [storage : get a list of rpm packages installed on host machine] ********** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [storage : make sure blivet is available] ********************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : initialize internal facts] ************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.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 [storage : Apply defaults to pools and volumes [1/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:28 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'name': 'vdb', 'type': 'partition', 'disks': ['vdb'], 'state': 'absent', 'volumes': [{'name': 'vdb1', 'type': 'partition', 'mount_point': '/opt/test1', 'state': 'absent'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vdb"], "name": "vdb", "state": "absent", "type": "partition", "volumes": [{"mount_point": "/opt/test1", "name": "vdb1", "state": "absent", "type": "partition"}]}]}, "ansible_loop_var": "pool", "changed": false, "pool": {"disks": ["vdb"], "name": "vdb", "state": "absent", "type": "partition", "volumes": [{"mount_point": "/opt/test1", "name": "vdb1", "state": "absent", "type": "partition"}]}} TASK [storage : Apply defaults to pools and volumes [2/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:36 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=[{'state': 'absent', 'type': 'partition', 'name': 'vdb', 'disks': ['vdb'], 'volumes': [{'name': 'vdb1', 'type': 'partition', 'mount_point': '/opt/test1', 'state': 'absent'}]}, {'name': 'vdb1', 'type': 'partition', 'mount_point': '/opt/test1', 'state': 'absent'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "size": 0, "state": "present", "type": "lvm"}], "_storage_vol_pools": ["vdb"], "_storage_vols_no_defaults": [{"mount_point": "/opt/test1", "name": "vdb1", "state": "absent", "type": "partition"}]}, "ansible_loop_var": "item", "changed": false, "item": [{"disks": ["vdb"], "name": "vdb", "state": "absent", "type": "partition", "volumes": [{"mount_point": "/opt/test1", "name": "vdb1", "state": "absent", "type": "partition"}]}, {"mount_point": "/opt/test1", "name": "vdb1", "state": "absent", "type": "partition"}]} TASK [storage : Apply defaults to pools and volumes [3/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:44 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=[{'name': 'vdb1', 'type': 'partition', 'mount_point': '/opt/test1', 'state': 'absent'}, {'state': 'present', 'type': 'lvm', 'size': 0, 'fs_type': 'xfs', 'fs_label': '', 'fs_create_options': '', 'fs_overwrite_existing': True, 'mount_point': '', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid'}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "vdb1", "pool": "vdb", "size": 0, "state": "absent", "type": "partition"}]}, "ansible_index_var": "idx", "ansible_loop_var": "item", "changed": false, "idx": 0, "item": [{"mount_point": "/opt/test1", "name": "vdb1", "state": "absent", "type": "partition"}, {"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "size": 0, "state": "present", "type": "lvm"}]} TASK [storage : Apply defaults to pools and volumes [4/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:52 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'absent', 'type': 'partition', 'name': 'vdb', 'disks': ['vdb'], 'volumes': [{'name': 'vdb1', 'type': 'partition', 'mount_point': '/opt/test1', 'state': 'absent'}]}) => {"ansible_facts": {"_storage_vols_no_defaults_by_pool": {"vdb": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "vdb1", "pool": "vdb", "size": 0, "state": "absent", "type": "partition"}]}}, "ansible_loop_var": "item", "changed": false, "item": {"disks": ["vdb"], "name": "vdb", "state": "absent", "type": "partition", "volumes": [{"mount_point": "/opt/test1", "name": "vdb1", "state": "absent", "type": "partition"}]}} TASK [storage : Apply defaults to pools and volumes [5/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:61 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'absent', 'type': 'partition', 'name': 'vdb', 'disks': ['vdb'], 'volumes': [{'name': 'vdb1', 'type': 'partition', 'mount_point': '/opt/test1', 'state': 'absent'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vdb"], "name": "vdb", "state": "absent", "type": "partition", "volumes": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "vdb1", "pool": "vdb", "size": 0, "state": "absent", "type": "partition"}]}]}, "ansible_index_var": "idx", "ansible_loop_var": "pool", "changed": false, "idx": 0, "pool": {"disks": ["vdb"], "name": "vdb", "state": "absent", "type": "partition", "volumes": [{"mount_point": "/opt/test1", "name": "vdb1", "state": "absent", "type": "partition"}]}} TASK [storage : Apply defaults to pools and volumes [6/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:72 TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools": [ { "disks": [ "vdb" ], "name": "vdb", "state": "absent", "type": "partition", "volumes": [ { "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "vdb1", "pool": "vdb", "size": 0, "state": "absent", "type": "partition" } ] } ] } TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_volumes": [] } TASK [storage : get required packages] ***************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": []} TASK [storage : make sure required packages are installed] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : manage the pools and volumes to match the specified state] ***** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:104 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": true, "leaves": ["/dev/sr0", "/dev/vda1", "/dev/vdb", "/dev/vdc"], "mounts": [], "packages": ["e2fsprogs"], "pools": [{"disks": ["vdb"], "name": "vdb", "state": "absent", "type": "partition", "volumes": [{"_device": "", "_mount_id": "", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "vdb1", "pool": "vdb", "size": 0, "state": "absent", "type": "partition"}]}], "volumes": []} TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:113 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "blivet_output": { "actions": [], "changed": true, "failed": false, "leaves": [ "/dev/sr0", "/dev/vda1", "/dev/vdb", "/dev/vdc" ], "mounts": [], "packages": [ "e2fsprogs" ], "pools": [ { "disks": [ "vdb" ], "name": "vdb", "state": "absent", "type": "partition", "volumes": [ { "_device": "", "_mount_id": "", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "vdb1", "pool": "vdb", "size": 0, "state": "absent", "type": "partition" } ] } ], "volumes": [] } } TASK [storage : set the list of pools for test verification] ******************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:116 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": [{"disks": ["vdb"], "name": "vdb", "state": "absent", "type": "partition", "volumes": [{"_device": "", "_mount_id": "", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "vdb1", "pool": "vdb", "size": 0, "state": "absent", "type": "partition"}]}]}, "changed": false} TASK [storage : set the list of volumes for test verification] ***************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:120 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : manage mounts to match the specified state] ******************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:132 TASK [storage : tell systemd to refresh its view of /etc/fstab] **************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:143 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [storage : Update facts] ************************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:153 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmpr6sk038f/tests/tests_create_partition_volume_then_remove.yml:78 included: /tmp/tmpr6sk038f/tests/verify-role-results.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [Print out pool information] ********************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:1 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools_list": [ { "disks": [ "vdb" ], "name": "vdb", "state": "absent", "type": "partition", "volumes": [ { "_device": "", "_mount_id": "", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "vdb1", "pool": "vdb", "size": 0, "state": "absent", "type": "partition" } ] } ] } TASK [Print out volume information] ******************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:6 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {} TASK [Collect info about the volumes.] ***************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:14 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "info": {"/dev/sr0": {"fstype": "iso9660", "label": "cidata", "name": "/dev/sr0", "type": "rom", "uuid": "2020-05-27-13-17-26-00"}, "/dev/vda": {"fstype": "", "label": "", "name": "/dev/vda", "type": "disk", "uuid": ""}, "/dev/vda1": {"fstype": "ext4", "label": "", "name": "/dev/vda1", "type": "partition", "uuid": "ea711a29-e460-4879-9d70-9da99ae021f9"}, "/dev/vdb": {"fstype": "", "label": "", "name": "/dev/vdb", "type": "disk", "uuid": ""}, "/dev/vdc": {"fstype": "", "label": "", "name": "/dev/vdc", "type": "disk", "uuid": ""}}} TASK [Read the /etc/fstab file for volume existence] *************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:19 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/fstab"], "delta": "0:00:01.004218", "end": "2020-05-27 13:19:56.340052", "rc": 0, "start": "2020-05-27 13:19:55.335834", "stderr": "", "stderr_lines": [], "stdout": "\n#\n# /etc/fstab\n# Created by anaconda on Fri Apr 26 02:02:19 2019\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=ea711a29-e460-4879-9d70-9da99ae021f9 / ext4 defaults 1 1", "stdout_lines": ["", "#", "# /etc/fstab", "# Created by anaconda on Fri Apr 26 02:02:19 2019", "#", "# 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=ea711a29-e460-4879-9d70-9da99ae021f9 / ext4 defaults 1 1"]} TASK [Verify the volumes listed in storage_pools were correctly managed] ******* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:27 [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/tmpr6sk038f/tests/test-verify-pool.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-pool.yml:5 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pool_tests": ["name", "type", "size", "members"]}, "changed": false} TASK [Verify the volumes in this pool were correctly managed] ****************** task path: /tmp/tmpr6sk038f/tests/test-verify-pool.yml:17 [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/tmpr6sk038f/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": false, "_storage_volume_tests": ["mount", "fstab", "fs", "device"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:12 included: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": ""}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:10 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:15 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": {"changed": false, "skip_reason": "Conditional result was False", "skipped": true}}, "changed": false} TASK [Set some facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:20 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [], "storage_test_mount_expected_match_count": "0", "storage_test_mount_point_matches": []}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:31 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:40 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:48 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Unset facts] ************************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:58 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_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/tmpr6sk038f/tests/test-verify-volume-fstab.yml:9 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:16 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:23 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": ""}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:10 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:15 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": {"changed": false, "skip_reason": "Conditional result was False", "skipped": true}}, "changed": false} TASK [Verify fs type] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:21 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify fs label] ********************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:27 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": ""}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:10 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:15 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": {"changed": false, "skip_reason": "Conditional result was False", "skipped": true}}, "changed": false} TASK [See whether the device node is present] ********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:21 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "stat": {"exists": false}} TASK [Verify the presence/absence of the device node] ************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:27 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:35 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:41 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "partition"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:45 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:50 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Clean up facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:34 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_pool": null}, "changed": false} TASK [Verify the volumes with no pool were correctly managed] ****************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:41 TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:51 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_blkinfo": null, "storage_test_fstab": null, "storage_test_volume": null}, "changed": false} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 : ok=244 changed=17 unreachable=0 failed=0 skipped=56 rescued=0 ignored=0 + cd /tmp/tmpr6sk038f/tests; TEST_SUBJECTS=/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_storage-91-a6b7623-fedora-30-97_lk9m2/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmpr6sk038f/_setup.yml /tmp/tmpr6sk038f/tests/tests_create_raid_pool_then_remove.yml ansible-playbook 2.9.9 config file = /etc/ansible/ansible.cfg configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.8/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 3.8.2 (default, Feb 28 2020, 00:00:00) [GCC 10.0.1 20200216 (Red Hat 10.0.1-0.8)] Using /etc/ansible/ansible.cfg as config file PLAYBOOK: _setup.yml *********************************************************** 1 plays in /tmp/tmpr6sk038f/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmpr6sk038f/_setup.yml:5 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "groups": { "all": [ "/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2" ], "localhost": [ "/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2" ], "subjects": [ "/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmpr6sk038f/_setup.yml:7 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/Fedora-Cloud-Base-30-1.2.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/tmpr6sk038f/tests/tests_create_raid_pool_then_remove.yml PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpr6sk038f/tests/tests_create_raid_pool_then_remove.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] META: ran handlers TASK [include_role : storage] ************************************************** task path: /tmp/tmpr6sk038f/tests/tests_create_raid_pool_then_remove.yml:15 TASK [storage : Set version specific variables] ******************************** task path: /tmp/tmpr6sk038f/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/tmp/tmpr6sk038f/vars/Fedora.yml) => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-dm", "libblockdev-lvm", "libblockdev-part", "libblockdev-mdraid"]}, "ansible_included_var_files": ["/tmp/tmpr6sk038f/vars/Fedora.yml"], "ansible_loop_var": "item", "changed": false, "item": "/tmp/tmpr6sk038f/vars/Fedora.yml"} TASK [storage : define an empty list of pools to be used in testing] *********** task path: /tmp/tmpr6sk038f/tasks/main.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [storage : define an empty list of volumes to be used in testing] ********* task path: /tmp/tmpr6sk038f/tasks/main.yml:13 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : include the appropriate provider tasks] ************************ task path: /tmp/tmpr6sk038f/tasks/main.yml:17 included: /tmp/tmpr6sk038f/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [storage : get a list of rpm packages installed on host machine] ********** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [storage : make sure blivet is available] ********************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:7 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: libblockdev-mpath-2.23-1.fc30.x86_64", "Installed: libblockdev-nvdimm-2.23-1.fc30.x86_64", "Installed: userspace-rcu-0.10.1-5.fc30.x86_64", "Installed: libblockdev-part-2.23-1.fc30.x86_64", "Installed: dmraid-1.0.0.rc16-41.fc30.x86_64", "Installed: dmraid-events-1.0.0.rc16-41.fc30.x86_64", "Installed: lzo-2.08-15.fc30.x86_64", "Installed: libblockdev-swap-2.23-1.fc30.x86_64", "Installed: lvm2-2.02.183-3.fc30.x86_64", "Installed: libblockdev-utils-2.23-1.fc30.x86_64", "Installed: lvm2-libs-2.02.183-3.fc30.x86_64", "Installed: python3-blivet-1:3.1.4-1.fc30.noarch", "Installed: python3-blockdev-2.23-1.fc30.x86_64", "Installed: daxctl-libs-68-1.fc30.x86_64", "Installed: mdadm-4.1-1.fc30.x86_64", "Installed: blivet-data-1:3.1.4-1.fc30.noarch", "Installed: sgpio-1.2.0.10-23.fc30.x86_64", "Installed: nspr-4.25.0-1.fc30.x86_64", "Installed: python3-bytesize-2.2-1.fc30.x86_64", "Installed: device-mapper-event-1.02.154-3.fc30.x86_64", "Installed: lsof-4.91-3.fc30.x86_64", "Installed: nss-3.51.1-1.fc30.x86_64", "Installed: device-mapper-event-libs-1.02.154-3.fc30.x86_64", "Installed: device-mapper-multipath-0.7.9-6.git2df6110.fc30.x86_64", "Installed: gdisk-1.0.5-1.fc30.x86_64", "Installed: device-mapper-multipath-libs-0.7.9-6.git2df6110.fc30.x86_64", "Installed: nss-softokn-3.51.1-1.fc30.x86_64", "Installed: python3-gobject-base-3.32.2-1.fc30.x86_64", "Installed: device-mapper-persistent-data-0.7.6-4.fc30.x86_64", "Installed: gobject-introspection-1.60.2-1.fc30.x86_64", "Installed: nss-softokn-freebl-3.51.1-1.fc30.x86_64", "Installed: libbytesize-2.2-1.fc30.x86_64", "Installed: nss-sysinit-3.51.1-1.fc30.x86_64", "Installed: nss-util-3.51.1-1.fc30.x86_64", "Installed: volume_key-libs-0.3.12-3.fc30.x86_64", "Installed: bcache-tools-1.0.8-15.fc30.x86_64", "Installed: ndctl-68-1.fc30.x86_64", "Installed: ndctl-libs-68-1.fc30.x86_64", "Installed: libblockdev-2.23-1.fc30.x86_64", "Installed: libblockdev-btrfs-2.23-1.fc30.x86_64", "Installed: libblockdev-crypto-2.23-1.fc30.x86_64", "Installed: python3-pyudev-0.21.0-10.fc30.noarch", "Installed: btrfs-progs-5.6-1.fc30.x86_64", "Installed: libblockdev-dm-2.23-1.fc30.x86_64", "Installed: libblockdev-fs-2.23-1.fc30.x86_64", "Installed: libblockdev-kbd-2.23-1.fc30.x86_64", "Installed: libblockdev-loop-2.23-1.fc30.x86_64", "Installed: libblockdev-lvm-2.23-1.fc30.x86_64", "Installed: python3-pyparted-1:3.11.2-1.fc30.x86_64", "Installed: libaio-0.3.111-4.fc30.x86_64", "Installed: libblockdev-mdraid-2.23-1.fc30.x86_64"]} TASK [storage : initialize internal facts] ************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.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 [storage : Apply defaults to pools and volumes [1/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:28 TASK [storage : Apply defaults to pools and volumes [2/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:36 TASK [storage : Apply defaults to pools and volumes [3/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:44 TASK [storage : Apply defaults to pools and volumes [4/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:52 TASK [storage : Apply defaults to pools and volumes [5/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:61 TASK [storage : Apply defaults to pools and volumes [6/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:72 TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools": [] } TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_volumes": [] } TASK [storage : get required packages] ***************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": []} TASK [storage : make sure required packages are installed] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : manage the pools and volumes to match the specified state] ***** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:104 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": []} TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:113 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "blivet_output": { "actions": [], "changed": false, "failed": false, "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": [] } } TASK [storage : set the list of pools for test verification] ******************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:116 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [storage : set the list of volumes for test verification] ***************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:120 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : manage mounts to match the specified state] ******************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:132 TASK [storage : tell systemd to refresh its view of /etc/fstab] **************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:143 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [storage : Update facts] ************************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:153 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmpr6sk038f/tests/tests_create_raid_pool_then_remove.yml:18 included: /tmp/tmpr6sk038f/tests/get_unused_disk.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [Find unused disks in the system] ***************************************** task path: /tmp/tmpr6sk038f/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-30-1.2.x86_64.qcow2] => {"changed": false, "disks": ["vdb", "vdc"]} TASK [set_fact] **************************************************************** task path: /tmp/tmpr6sk038f/tests/get_unused_disk.yml:8 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"unused_disks": ["vdb", "vdc"]}, "changed": false} TASK [Exit playbook when there's not enough unused disks in the system] ******** task path: /tmp/tmpr6sk038f/tests/get_unused_disk.yml:12 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Print unused disks] ****************************************************** task path: /tmp/tmpr6sk038f/tests/get_unused_disk.yml:17 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "unused_disks": [ "vdb", "vdc" ] } TASK [Create a RAID0 device mounted on "/opt/test1"] *************************** task path: /tmp/tmpr6sk038f/tests/tests_create_raid_pool_then_remove.yml:22 TASK [storage : Set version specific variables] ******************************** task path: /tmp/tmpr6sk038f/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/tmp/tmpr6sk038f/vars/Fedora.yml) => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-dm", "libblockdev-lvm", "libblockdev-part", "libblockdev-mdraid"]}, "ansible_included_var_files": ["/tmp/tmpr6sk038f/vars/Fedora.yml"], "ansible_loop_var": "item", "changed": false, "item": "/tmp/tmpr6sk038f/vars/Fedora.yml"} TASK [storage : define an empty list of pools to be used in testing] *********** task path: /tmp/tmpr6sk038f/tasks/main.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [storage : define an empty list of volumes to be used in testing] ********* task path: /tmp/tmpr6sk038f/tasks/main.yml:13 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : include the appropriate provider tasks] ************************ task path: /tmp/tmpr6sk038f/tasks/main.yml:17 included: /tmp/tmpr6sk038f/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [storage : get a list of rpm packages installed on host machine] ********** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [storage : make sure blivet is available] ********************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : initialize internal facts] ************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.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 [storage : Apply defaults to pools and volumes [1/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:28 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'name': 'vg1', 'disks': ['vdb', 'vdc'], 'type': 'lvm', 'raid_level': 'raid0', 'state': 'present', 'volumes': [{'name': 'lv1', 'size': '2g', 'mount_point': '/opt/test1'}, {'name': 'lv2', 'size': '3g', 'mount_point': '/opt/test2'}, {'name': 'lv3', 'size': '3g', 'mount_point': '/opt/test3'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vdb", "vdc"], "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"}]}]}, "ansible_loop_var": "pool", "changed": false, "pool": {"disks": ["vdb", "vdc"], "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 [storage : Apply defaults to pools and volumes [2/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:36 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=[{'state': 'present', 'type': 'lvm', 'name': 'vg1', 'disks': ['vdb', 'vdc'], 'raid_level': 'raid0', 'volumes': [{'name': 'lv1', 'size': '2g', 'mount_point': '/opt/test1'}, {'name': 'lv2', 'size': '3g', 'mount_point': '/opt/test2'}, {'name': 'lv3', 'size': '3g', 'mount_point': '/opt/test3'}]}, {'name': 'lv1', 'size': '2g', 'mount_point': '/opt/test1'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "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": ["vdb", "vdc"], "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"}]}, {"mount_point": "/opt/test1", "name": "lv1", "size": "2g"}]} ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=[{'state': 'present', 'type': 'lvm', 'name': 'vg1', 'disks': ['vdb', 'vdc'], 'raid_level': 'raid0', 'volumes': [{'name': 'lv1', 'size': '2g', 'mount_point': '/opt/test1'}, {'name': 'lv2', 'size': '3g', 'mount_point': '/opt/test2'}, {'name': 'lv3', 'size': '3g', 'mount_point': '/opt/test3'}]}, {'name': 'lv2', 'size': '3g', 'mount_point': '/opt/test2'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "size": 0, "state": "present", "type": "lvm"}, {"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "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": ["vdb", "vdc"], "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"}]}, {"mount_point": "/opt/test2", "name": "lv2", "size": "3g"}]} ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=[{'state': 'present', 'type': 'lvm', 'name': 'vg1', 'disks': ['vdb', 'vdc'], 'raid_level': 'raid0', 'volumes': [{'name': 'lv1', 'size': '2g', 'mount_point': '/opt/test1'}, {'name': 'lv2', 'size': '3g', 'mount_point': '/opt/test2'}, {'name': 'lv3', 'size': '3g', 'mount_point': '/opt/test3'}]}, {'name': 'lv3', 'size': '3g', 'mount_point': '/opt/test3'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "size": 0, "state": "present", "type": "lvm"}, {"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "size": 0, "state": "present", "type": "lvm"}, {"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "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": ["vdb", "vdc"], "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"}]}, {"mount_point": "/opt/test3", "name": "lv3", "size": "3g"}]} TASK [storage : Apply defaults to pools and volumes [3/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:44 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=[{'name': 'lv1', 'size': '2g', 'mount_point': '/opt/test1'}, {'state': 'present', 'type': 'lvm', 'size': 0, 'fs_type': 'xfs', 'fs_label': '', 'fs_create_options': '', 'fs_overwrite_existing': True, 'mount_point': '', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid'}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"fs_create_options": "", "fs_label": "", "fs_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", "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"}, {"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "size": 0, "state": "present", "type": "lvm"}]} ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=[{'name': 'lv2', 'size': '3g', 'mount_point': '/opt/test2'}, {'state': 'present', 'type': 'lvm', 'size': 0, 'fs_type': 'xfs', 'fs_label': '', 'fs_create_options': '', 'fs_overwrite_existing': True, 'mount_point': '', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid'}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"fs_create_options": "", "fs_label": "", "fs_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", "size": "2g", "state": "present", "type": "lvm"}, {"fs_create_options": "", "fs_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", "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"}, {"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "size": 0, "state": "present", "type": "lvm"}]} ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=[{'name': 'lv3', 'size': '3g', 'mount_point': '/opt/test3'}, {'state': 'present', 'type': 'lvm', 'size': 0, 'fs_type': 'xfs', 'fs_label': '', 'fs_create_options': '', 'fs_overwrite_existing': True, 'mount_point': '', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid'}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"fs_create_options": "", "fs_label": "", "fs_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", "size": "2g", "state": "present", "type": "lvm"}, {"fs_create_options": "", "fs_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", "size": "3g", "state": "present", "type": "lvm"}, {"fs_create_options": "", "fs_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", "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"}, {"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "size": 0, "state": "present", "type": "lvm"}]} TASK [storage : Apply defaults to pools and volumes [4/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:52 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'name': 'vg1', 'disks': ['vdb', 'vdc'], 'raid_level': 'raid0', 'volumes': [{'name': 'lv1', 'size': '2g', 'mount_point': '/opt/test1'}, {'name': 'lv2', 'size': '3g', 'mount_point': '/opt/test2'}, {'name': 'lv3', 'size': '3g', 'mount_point': '/opt/test3'}]}) => {"ansible_facts": {"_storage_vols_no_defaults_by_pool": {"vg1": [{"fs_create_options": "", "fs_label": "", "fs_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", "size": "2g", "state": "present", "type": "lvm"}, {"fs_create_options": "", "fs_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", "size": "3g", "state": "present", "type": "lvm"}, {"fs_create_options": "", "fs_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", "size": "3g", "state": "present", "type": "lvm"}]}}, "ansible_loop_var": "item", "changed": false, "item": {"disks": ["vdb", "vdc"], "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 [storage : Apply defaults to pools and volumes [5/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:61 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'name': 'vg1', 'disks': ['vdb', 'vdc'], 'raid_level': 'raid0', 'volumes': [{'name': 'lv1', 'size': '2g', 'mount_point': '/opt/test1'}, {'name': 'lv2', 'size': '3g', 'mount_point': '/opt/test2'}, {'name': 'lv3', 'size': '3g', 'mount_point': '/opt/test3'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vdb", "vdc"], "name": "vg1", "raid_level": "raid0", "state": "present", "type": "lvm", "volumes": [{"fs_create_options": "", "fs_label": "", "fs_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", "size": "2g", "state": "present", "type": "lvm"}, {"fs_create_options": "", "fs_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", "size": "3g", "state": "present", "type": "lvm"}, {"fs_create_options": "", "fs_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", "size": "3g", "state": "present", "type": "lvm"}]}]}, "ansible_index_var": "idx", "ansible_loop_var": "pool", "changed": false, "idx": 0, "pool": {"disks": ["vdb", "vdc"], "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 [storage : Apply defaults to pools and volumes [6/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:72 TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools": [ { "disks": [ "vdb", "vdc" ], "name": "vg1", "raid_level": "raid0", "state": "present", "type": "lvm", "volumes": [ { "fs_create_options": "", "fs_label": "", "fs_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", "size": "2g", "state": "present", "type": "lvm" }, { "fs_create_options": "", "fs_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", "size": "3g", "state": "present", "type": "lvm" }, { "fs_create_options": "", "fs_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", "size": "3g", "state": "present", "type": "lvm" } ] } ] } TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_volumes": [] } TASK [storage : get required packages] ***************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": [], "mounts": [], "packages": ["lvm2", "xfsprogs"], "pools": [], "volumes": []} TASK [storage : make sure required packages are installed] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : manage the pools and volumes to match the specified state] ***** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:104 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [{"action": "create format", "device": "/dev/vdc", "fs_type": "disklabel"}, {"action": "create device", "device": "/dev/vdc1", "fs_type": null}, {"action": "create format", "device": "/dev/vdc1", "fs_type": "mdmember"}, {"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 device", "device": "/dev/md/mdraid-vg1", "fs_type": null}, {"action": "create format", "device": "/dev/md/mdraid-vg1", "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, "leaves": ["/dev/sr0", "/dev/vda1", "/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": ["mdadm", "e2fsprogs", "xfsprogs", "lvm2"], "pools": [{"disks": ["vdb", "vdc"], "name": "vg1", "raid_level": "raid0", "state": "present", "type": "lvm", "volumes": [{"_device": "/dev/mapper/vg1-lv1", "_mount_id": "/dev/mapper/vg1-lv1", "fs_create_options": "", "fs_label": "", "fs_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", "size": "2g", "state": "present", "type": "lvm"}, {"_device": "/dev/mapper/vg1-lv2", "_mount_id": "/dev/mapper/vg1-lv2", "fs_create_options": "", "fs_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", "size": "3g", "state": "present", "type": "lvm"}, {"_device": "/dev/mapper/vg1-lv3", "_mount_id": "/dev/mapper/vg1-lv3", "fs_create_options": "", "fs_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", "size": "3g", "state": "present", "type": "lvm"}]}], "volumes": []} TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:113 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "blivet_output": { "actions": [ { "action": "create format", "device": "/dev/vdc", "fs_type": "disklabel" }, { "action": "create device", "device": "/dev/vdc1", "fs_type": null }, { "action": "create format", "device": "/dev/vdc1", "fs_type": "mdmember" }, { "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 device", "device": "/dev/md/mdraid-vg1", "fs_type": null }, { "action": "create format", "device": "/dev/md/mdraid-vg1", "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, "failed": false, "leaves": [ "/dev/sr0", "/dev/vda1", "/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": [ "mdadm", "e2fsprogs", "xfsprogs", "lvm2" ], "pools": [ { "disks": [ "vdb", "vdc" ], "name": "vg1", "raid_level": "raid0", "state": "present", "type": "lvm", "volumes": [ { "_device": "/dev/mapper/vg1-lv1", "_mount_id": "/dev/mapper/vg1-lv1", "fs_create_options": "", "fs_label": "", "fs_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", "size": "2g", "state": "present", "type": "lvm" }, { "_device": "/dev/mapper/vg1-lv2", "_mount_id": "/dev/mapper/vg1-lv2", "fs_create_options": "", "fs_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", "size": "3g", "state": "present", "type": "lvm" }, { "_device": "/dev/mapper/vg1-lv3", "_mount_id": "/dev/mapper/vg1-lv3", "fs_create_options": "", "fs_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", "size": "3g", "state": "present", "type": "lvm" } ] } ], "volumes": [] } } TASK [storage : set the list of pools for test verification] ******************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:116 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": [{"disks": ["vdb", "vdc"], "name": "vg1", "raid_level": "raid0", "state": "present", "type": "lvm", "volumes": [{"_device": "/dev/mapper/vg1-lv1", "_mount_id": "/dev/mapper/vg1-lv1", "fs_create_options": "", "fs_label": "", "fs_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", "size": "2g", "state": "present", "type": "lvm"}, {"_device": "/dev/mapper/vg1-lv2", "_mount_id": "/dev/mapper/vg1-lv2", "fs_create_options": "", "fs_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", "size": "3g", "state": "present", "type": "lvm"}, {"_device": "/dev/mapper/vg1-lv3", "_mount_id": "/dev/mapper/vg1-lv3", "fs_create_options": "", "fs_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", "size": "3g", "state": "present", "type": "lvm"}]}]}, "changed": false} TASK [storage : set the list of volumes for test verification] ***************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:120 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : manage mounts to match the specified state] ******************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:132 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'src': '/dev/mapper/vg1-lv1', 'path': '/opt/test1', 'fstype': 'xfs', 'opts': 'defaults', 'dump': 0, 'passno': 0, 'state': 'mounted'}) => {"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-30-1.2.x86_64.qcow2] => (item={'src': '/dev/mapper/vg1-lv2', 'path': '/opt/test2', 'fstype': 'xfs', 'opts': 'defaults', 'dump': 0, 'passno': 0, 'state': 'mounted'}) => {"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-30-1.2.x86_64.qcow2] => (item={'src': '/dev/mapper/vg1-lv3', 'path': '/opt/test3', 'fstype': 'xfs', 'opts': 'defaults', 'dump': 0, 'passno': 0, 'state': 'mounted'}) => {"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 [storage : tell systemd to refresh its view of /etc/fstab] **************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:143 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [storage : Update facts] ************************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:153 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmpr6sk038f/tests/tests_create_raid_pool_then_remove.yml:43 included: /tmp/tmpr6sk038f/tests/verify-role-results.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [Print out pool information] ********************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:1 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools_list": [ { "disks": [ "vdb", "vdc" ], "name": "vg1", "raid_level": "raid0", "state": "present", "type": "lvm", "volumes": [ { "_device": "/dev/mapper/vg1-lv1", "_mount_id": "/dev/mapper/vg1-lv1", "fs_create_options": "", "fs_label": "", "fs_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", "size": "2g", "state": "present", "type": "lvm" }, { "_device": "/dev/mapper/vg1-lv2", "_mount_id": "/dev/mapper/vg1-lv2", "fs_create_options": "", "fs_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", "size": "3g", "state": "present", "type": "lvm" }, { "_device": "/dev/mapper/vg1-lv3", "_mount_id": "/dev/mapper/vg1-lv3", "fs_create_options": "", "fs_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", "size": "3g", "state": "present", "type": "lvm" } ] } ] } TASK [Print out volume information] ******************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:6 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {} TASK [Collect info about the volumes.] ***************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:14 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "info": {"/dev/mapper/vg1-lv1": {"fstype": "xfs", "label": "", "name": "/dev/mapper/vg1-lv1", "type": "lvm", "uuid": "efc499e9-a3fb-4484-92c1-352907a140d5"}, "/dev/mapper/vg1-lv2": {"fstype": "xfs", "label": "", "name": "/dev/mapper/vg1-lv2", "type": "lvm", "uuid": "af477f95-9885-46a3-b7e6-66003bdc41f1"}, "/dev/mapper/vg1-lv3": {"fstype": "xfs", "label": "", "name": "/dev/mapper/vg1-lv3", "type": "lvm", "uuid": "b8ffd02d-4c55-4a60-a38e-61a472d605c3"}, "/dev/md127": {"fstype": "LVM2_member", "label": "", "name": "/dev/md127", "type": "raid0", "uuid": "9DtFQj-ZmaX-H7Gx-AQeA-kjmi-nBtf-SX20ug"}, "/dev/sr0": {"fstype": "iso9660", "label": "cidata", "name": "/dev/sr0", "type": "rom", "uuid": "2020-05-27-13-19-57-00"}, "/dev/vda": {"fstype": "", "label": "", "name": "/dev/vda", "type": "disk", "uuid": ""}, "/dev/vda1": {"fstype": "ext4", "label": "", "name": "/dev/vda1", "type": "partition", "uuid": "ea711a29-e460-4879-9d70-9da99ae021f9"}, "/dev/vdb": {"fstype": "", "label": "", "name": "/dev/vdb", "type": "disk", "uuid": ""}, "/dev/vdb1": {"fstype": "linux_raid_member", "label": "mdraid-vg1", "name": "/dev/vdb1", "type": "partition", "uuid": "408a7533-b9a6-920b-3fb0-0e68abd0772d"}, "/dev/vdc": {"fstype": "", "label": "", "name": "/dev/vdc", "type": "disk", "uuid": ""}, "/dev/vdc1": {"fstype": "linux_raid_member", "label": "mdraid-vg1", "name": "/dev/vdc1", "type": "partition", "uuid": "408a7533-b9a6-920b-3fb0-0e68abd0772d"}}} TASK [Read the /etc/fstab file for volume existence] *************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:19 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/fstab"], "delta": "0:00:01.009393", "end": "2020-05-27 13:21:59.682392", "rc": 0, "start": "2020-05-27 13:21:58.672999", "stderr": "", "stderr_lines": [], "stdout": "\n#\n# /etc/fstab\n# Created by anaconda on Fri Apr 26 02:02:19 2019\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=ea711a29-e460-4879-9d70-9da99ae021f9 / 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 Fri Apr 26 02:02:19 2019", "#", "# 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=ea711a29-e460-4879-9d70-9da99ae021f9 / 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 [Verify the volumes listed in storage_pools were correctly managed] ******* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:27 included: /tmp/tmpr6sk038f/tests/test-verify-pool.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-pool.yml:5 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pool_tests": ["name", "type", "size", "members"]}, "changed": false} TASK [Verify the volumes in this pool were correctly managed] ****************** task path: /tmp/tmpr6sk038f/tests/test-verify-pool.yml:17 included: /tmp/tmpr6sk038f/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": true, "_storage_volume_tests": ["mount", "fstab", "fs", "device"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:12 included: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/vg1-lv1"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/vg1-lv1"], "delta": "0:00:00.004187", "end": "2020-05-27 13:22:00.207866", "rc": 0, "start": "2020-05-27 13:22:00.203679", "stderr": "", "stderr_lines": [], "stdout": "/dev/dm-2", "stdout_lines": ["/dev/dm-2"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Set some facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:20 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [{"block_available": 511880, "block_size": 4096, "block_total": 520704, "block_used": 8824, "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,sunit=1024,swidth=2048,noquota", "size_available": 2096660480, "size_total": 2132803584, "uuid": "efc499e9-a3fb-4484-92c1-352907a140d5"}], "storage_test_mount_expected_match_count": "1", "storage_test_mount_point_matches": [{"block_available": 511880, "block_size": 4096, "block_total": 520704, "block_used": 8824, "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,sunit=1024,swidth=2048,noquota", "size_available": 2096660480, "size_total": 2132803584, "uuid": "efc499e9-a3fb-4484-92c1-352907a140d5"}]}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:31 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:40 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:48 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Unset facts] ************************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:58 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_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/tmpr6sk038f/tests/test-verify-volume-fstab.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:16 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:23 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/vg1-lv1"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/vg1-lv1"], "delta": "0:00:00.003072", "end": "2020-05-27 13:22:00.796111", "rc": 0, "start": "2020-05-27 13:22:00.793039", "stderr": "", "stderr_lines": [], "stdout": "/dev/dm-2", "stdout_lines": ["/dev/dm-2"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify fs type] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:21 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify fs label] ********************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:27 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/vg1-lv1"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/vg1-lv1"], "delta": "0:00:00.002972", "end": "2020-05-27 13:22:01.216076", "rc": 0, "start": "2020-05-27 13:22:01.213104", "stderr": "", "stderr_lines": [], "stdout": "/dev/dm-2", "stdout_lines": ["/dev/dm-2"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [See whether the device node is present] ********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:21 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "stat": {"atime": 1590585714.7995381, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "ctime": 1590585714.7995381, "dev": 6, "device_type": 64770, "executable": false, "exists": true, "gid": 6, "gr_name": "disk", "inode": 1703, "isblk": true, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mimetype": "inode/symlink", "mode": "0660", "mtime": 1590585714.7995381, "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/tmpr6sk038f/tests/test-verify-volume-device.yml:27 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:35 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:41 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "lvm"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:45 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:50 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": true, "_storage_volume_tests": ["mount", "fstab", "fs", "device"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:12 included: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/vg1-lv2"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/vg1-lv2"], "delta": "0:00:01.003692", "end": "2020-05-27 13:22:03.263959", "rc": 0, "start": "2020-05-27 13:22:02.260267", "stderr": "", "stderr_lines": [], "stdout": "/dev/dm-1", "stdout_lines": ["/dev/dm-1"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Set some facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:20 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [{"block_available": 773760, "block_size": 4096, "block_total": 782848, "block_used": 9088, "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,sunit=1024,swidth=2048,noquota", "size_available": 3169320960, "size_total": 3206545408, "uuid": "af477f95-9885-46a3-b7e6-66003bdc41f1"}], "storage_test_mount_expected_match_count": "1", "storage_test_mount_point_matches": [{"block_available": 773760, "block_size": 4096, "block_total": 782848, "block_used": 9088, "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,sunit=1024,swidth=2048,noquota", "size_available": 3169320960, "size_total": 3206545408, "uuid": "af477f95-9885-46a3-b7e6-66003bdc41f1"}]}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:31 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:40 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:48 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Unset facts] ************************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:58 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_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/tmpr6sk038f/tests/test-verify-volume-fstab.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:16 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:23 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/vg1-lv2"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/vg1-lv2"], "delta": "0:00:00.002528", "end": "2020-05-27 13:22:03.860362", "rc": 0, "start": "2020-05-27 13:22:03.857834", "stderr": "", "stderr_lines": [], "stdout": "/dev/dm-1", "stdout_lines": ["/dev/dm-1"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify fs type] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:21 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify fs label] ********************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:27 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/vg1-lv2"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/vg1-lv2"], "delta": "0:00:00.003173", "end": "2020-05-27 13:22:04.286733", "rc": 0, "start": "2020-05-27 13:22:04.283560", "stderr": "", "stderr_lines": [], "stdout": "/dev/dm-1", "stdout_lines": ["/dev/dm-1"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [See whether the device node is present] ********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:21 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "stat": {"atime": 1590585714.6185381, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "ctime": 1590585714.6185381, "dev": 6, "device_type": 64769, "executable": false, "exists": true, "gid": 6, "gr_name": "disk", "inode": 1702, "isblk": true, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mimetype": "inode/symlink", "mode": "0660", "mtime": 1590585714.6185381, "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/tmpr6sk038f/tests/test-verify-volume-device.yml:27 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:35 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:41 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "lvm"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:45 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:50 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": true, "_storage_volume_tests": ["mount", "fstab", "fs", "device"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:12 included: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/vg1-lv3"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/vg1-lv3"], "delta": "0:00:00.002427", "end": "2020-05-27 13:22:05.229050", "rc": 0, "start": "2020-05-27 13:22:05.226623", "stderr": "", "stderr_lines": [], "stdout": "/dev/dm-0", "stdout_lines": ["/dev/dm-0"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Set some facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:20 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [{"block_available": 773760, "block_size": 4096, "block_total": 782848, "block_used": 9088, "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,sunit=1024,swidth=2048,noquota", "size_available": 3169320960, "size_total": 3206545408, "uuid": "b8ffd02d-4c55-4a60-a38e-61a472d605c3"}], "storage_test_mount_expected_match_count": "1", "storage_test_mount_point_matches": [{"block_available": 773760, "block_size": 4096, "block_total": 782848, "block_used": 9088, "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,sunit=1024,swidth=2048,noquota", "size_available": 3169320960, "size_total": 3206545408, "uuid": "b8ffd02d-4c55-4a60-a38e-61a472d605c3"}]}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:31 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:40 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:48 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Unset facts] ************************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:58 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_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/tmpr6sk038f/tests/test-verify-volume-fstab.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:16 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:23 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/vg1-lv3"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/vg1-lv3"], "delta": "0:00:00.002649", "end": "2020-05-27 13:22:05.791215", "rc": 0, "start": "2020-05-27 13:22:05.788566", "stderr": "", "stderr_lines": [], "stdout": "/dev/dm-0", "stdout_lines": ["/dev/dm-0"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify fs type] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:21 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify fs label] ********************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:27 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/vg1-lv3"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/vg1-lv3"], "delta": "0:00:00.002597", "end": "2020-05-27 13:22:06.221316", "rc": 0, "start": "2020-05-27 13:22:06.218719", "stderr": "", "stderr_lines": [], "stdout": "/dev/dm-0", "stdout_lines": ["/dev/dm-0"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [See whether the device node is present] ********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:21 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "stat": {"atime": 1590585714.439538, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "ctime": 1590585714.439538, "dev": 6, "device_type": 64768, "executable": false, "exists": true, "gid": 6, "gr_name": "disk", "inode": 1701, "isblk": true, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mimetype": "inode/symlink", "mode": "0660", "mtime": 1590585714.439538, "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/tmpr6sk038f/tests/test-verify-volume-device.yml:27 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:35 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:41 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "lvm"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:45 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:50 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:34 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_pool": null}, "changed": false} TASK [Verify the volumes with no pool were correctly managed] ****************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:41 TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:51 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_blkinfo": null, "storage_test_fstab": null, "storage_test_volume": null}, "changed": false} TASK [Repeat the previous invocation to verify idempotence] ******************** task path: /tmp/tmpr6sk038f/tests/tests_create_raid_pool_then_remove.yml:45 TASK [storage : Set version specific variables] ******************************** task path: /tmp/tmpr6sk038f/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/tmp/tmpr6sk038f/vars/Fedora.yml) => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-dm", "libblockdev-lvm", "libblockdev-part", "libblockdev-mdraid"]}, "ansible_included_var_files": ["/tmp/tmpr6sk038f/vars/Fedora.yml"], "ansible_loop_var": "item", "changed": false, "item": "/tmp/tmpr6sk038f/vars/Fedora.yml"} TASK [storage : define an empty list of pools to be used in testing] *********** task path: /tmp/tmpr6sk038f/tasks/main.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [storage : define an empty list of volumes to be used in testing] ********* task path: /tmp/tmpr6sk038f/tasks/main.yml:13 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : include the appropriate provider tasks] ************************ task path: /tmp/tmpr6sk038f/tasks/main.yml:17 included: /tmp/tmpr6sk038f/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [storage : get a list of rpm packages installed on host machine] ********** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [storage : make sure blivet is available] ********************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : initialize internal facts] ************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.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 [storage : Apply defaults to pools and volumes [1/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:28 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'name': 'vg1', 'disks': ['vdb', 'vdc'], 'type': 'lvm', 'raid_level': 'raid0', 'state': 'present', 'volumes': [{'name': 'lv1', 'size': '2g', 'mount_point': '/opt/test1'}, {'name': 'lv2', 'size': '3g', 'mount_point': '/opt/test2'}, {'name': 'lv3', 'size': '3g', 'mount_point': '/opt/test3'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vdb", "vdc"], "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"}]}]}, "ansible_loop_var": "pool", "changed": false, "pool": {"disks": ["vdb", "vdc"], "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 [storage : Apply defaults to pools and volumes [2/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:36 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=[{'state': 'present', 'type': 'lvm', 'name': 'vg1', 'disks': ['vdb', 'vdc'], 'raid_level': 'raid0', 'volumes': [{'name': 'lv1', 'size': '2g', 'mount_point': '/opt/test1'}, {'name': 'lv2', 'size': '3g', 'mount_point': '/opt/test2'}, {'name': 'lv3', 'size': '3g', 'mount_point': '/opt/test3'}]}, {'name': 'lv1', 'size': '2g', 'mount_point': '/opt/test1'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "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": ["vdb", "vdc"], "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"}]}, {"mount_point": "/opt/test1", "name": "lv1", "size": "2g"}]} ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=[{'state': 'present', 'type': 'lvm', 'name': 'vg1', 'disks': ['vdb', 'vdc'], 'raid_level': 'raid0', 'volumes': [{'name': 'lv1', 'size': '2g', 'mount_point': '/opt/test1'}, {'name': 'lv2', 'size': '3g', 'mount_point': '/opt/test2'}, {'name': 'lv3', 'size': '3g', 'mount_point': '/opt/test3'}]}, {'name': 'lv2', 'size': '3g', 'mount_point': '/opt/test2'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "size": 0, "state": "present", "type": "lvm"}, {"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "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": ["vdb", "vdc"], "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"}]}, {"mount_point": "/opt/test2", "name": "lv2", "size": "3g"}]} ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=[{'state': 'present', 'type': 'lvm', 'name': 'vg1', 'disks': ['vdb', 'vdc'], 'raid_level': 'raid0', 'volumes': [{'name': 'lv1', 'size': '2g', 'mount_point': '/opt/test1'}, {'name': 'lv2', 'size': '3g', 'mount_point': '/opt/test2'}, {'name': 'lv3', 'size': '3g', 'mount_point': '/opt/test3'}]}, {'name': 'lv3', 'size': '3g', 'mount_point': '/opt/test3'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "size": 0, "state": "present", "type": "lvm"}, {"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "size": 0, "state": "present", "type": "lvm"}, {"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "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": ["vdb", "vdc"], "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"}]}, {"mount_point": "/opt/test3", "name": "lv3", "size": "3g"}]} TASK [storage : Apply defaults to pools and volumes [3/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:44 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=[{'name': 'lv1', 'size': '2g', 'mount_point': '/opt/test1'}, {'state': 'present', 'type': 'lvm', 'size': 0, 'fs_type': 'xfs', 'fs_label': '', 'fs_create_options': '', 'fs_overwrite_existing': True, 'mount_point': '', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid'}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"fs_create_options": "", "fs_label": "", "fs_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", "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"}, {"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "size": 0, "state": "present", "type": "lvm"}]} ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=[{'name': 'lv2', 'size': '3g', 'mount_point': '/opt/test2'}, {'state': 'present', 'type': 'lvm', 'size': 0, 'fs_type': 'xfs', 'fs_label': '', 'fs_create_options': '', 'fs_overwrite_existing': True, 'mount_point': '', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid'}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"fs_create_options": "", "fs_label": "", "fs_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", "size": "2g", "state": "present", "type": "lvm"}, {"fs_create_options": "", "fs_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", "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"}, {"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "size": 0, "state": "present", "type": "lvm"}]} ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=[{'name': 'lv3', 'size': '3g', 'mount_point': '/opt/test3'}, {'state': 'present', 'type': 'lvm', 'size': 0, 'fs_type': 'xfs', 'fs_label': '', 'fs_create_options': '', 'fs_overwrite_existing': True, 'mount_point': '', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid'}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"fs_create_options": "", "fs_label": "", "fs_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", "size": "2g", "state": "present", "type": "lvm"}, {"fs_create_options": "", "fs_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", "size": "3g", "state": "present", "type": "lvm"}, {"fs_create_options": "", "fs_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", "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"}, {"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "size": 0, "state": "present", "type": "lvm"}]} TASK [storage : Apply defaults to pools and volumes [4/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:52 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'name': 'vg1', 'disks': ['vdb', 'vdc'], 'raid_level': 'raid0', 'volumes': [{'name': 'lv1', 'size': '2g', 'mount_point': '/opt/test1'}, {'name': 'lv2', 'size': '3g', 'mount_point': '/opt/test2'}, {'name': 'lv3', 'size': '3g', 'mount_point': '/opt/test3'}]}) => {"ansible_facts": {"_storage_vols_no_defaults_by_pool": {"vg1": [{"fs_create_options": "", "fs_label": "", "fs_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", "size": "2g", "state": "present", "type": "lvm"}, {"fs_create_options": "", "fs_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", "size": "3g", "state": "present", "type": "lvm"}, {"fs_create_options": "", "fs_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", "size": "3g", "state": "present", "type": "lvm"}]}}, "ansible_loop_var": "item", "changed": false, "item": {"disks": ["vdb", "vdc"], "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 [storage : Apply defaults to pools and volumes [5/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:61 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'name': 'vg1', 'disks': ['vdb', 'vdc'], 'raid_level': 'raid0', 'volumes': [{'name': 'lv1', 'size': '2g', 'mount_point': '/opt/test1'}, {'name': 'lv2', 'size': '3g', 'mount_point': '/opt/test2'}, {'name': 'lv3', 'size': '3g', 'mount_point': '/opt/test3'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vdb", "vdc"], "name": "vg1", "raid_level": "raid0", "state": "present", "type": "lvm", "volumes": [{"fs_create_options": "", "fs_label": "", "fs_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", "size": "2g", "state": "present", "type": "lvm"}, {"fs_create_options": "", "fs_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", "size": "3g", "state": "present", "type": "lvm"}, {"fs_create_options": "", "fs_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", "size": "3g", "state": "present", "type": "lvm"}]}]}, "ansible_index_var": "idx", "ansible_loop_var": "pool", "changed": false, "idx": 0, "pool": {"disks": ["vdb", "vdc"], "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 [storage : Apply defaults to pools and volumes [6/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:72 TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools": [ { "disks": [ "vdb", "vdc" ], "name": "vg1", "raid_level": "raid0", "state": "present", "type": "lvm", "volumes": [ { "fs_create_options": "", "fs_label": "", "fs_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", "size": "2g", "state": "present", "type": "lvm" }, { "fs_create_options": "", "fs_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", "size": "3g", "state": "present", "type": "lvm" }, { "fs_create_options": "", "fs_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", "size": "3g", "state": "present", "type": "lvm" } ] } ] } TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_volumes": [] } TASK [storage : get required packages] ***************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": [], "mounts": [], "packages": ["lvm2", "xfsprogs"], "pools": [], "volumes": []} TASK [storage : make sure required packages are installed] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : manage the pools and volumes to match the specified state] ***** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:104 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": ["/dev/sr0", "/dev/vda1", "/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": ["xfsprogs", "e2fsprogs", "mdadm", "lvm2"], "pools": [{"disks": ["vdb", "vdc"], "name": "vg1", "raid_level": "raid0", "state": "present", "type": "lvm", "volumes": [{"_device": "/dev/mapper/vg1-lv1", "_mount_id": "/dev/mapper/vg1-lv1", "fs_create_options": "", "fs_label": "", "fs_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", "size": "2g", "state": "present", "type": "lvm"}, {"_device": "/dev/mapper/vg1-lv2", "_mount_id": "/dev/mapper/vg1-lv2", "fs_create_options": "", "fs_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", "size": "3g", "state": "present", "type": "lvm"}, {"_device": "/dev/mapper/vg1-lv3", "_mount_id": "/dev/mapper/vg1-lv3", "fs_create_options": "", "fs_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", "size": "3g", "state": "present", "type": "lvm"}]}], "volumes": []} TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:113 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "blivet_output": { "actions": [], "changed": false, "failed": false, "leaves": [ "/dev/sr0", "/dev/vda1", "/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": [ "xfsprogs", "e2fsprogs", "mdadm", "lvm2" ], "pools": [ { "disks": [ "vdb", "vdc" ], "name": "vg1", "raid_level": "raid0", "state": "present", "type": "lvm", "volumes": [ { "_device": "/dev/mapper/vg1-lv1", "_mount_id": "/dev/mapper/vg1-lv1", "fs_create_options": "", "fs_label": "", "fs_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", "size": "2g", "state": "present", "type": "lvm" }, { "_device": "/dev/mapper/vg1-lv2", "_mount_id": "/dev/mapper/vg1-lv2", "fs_create_options": "", "fs_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", "size": "3g", "state": "present", "type": "lvm" }, { "_device": "/dev/mapper/vg1-lv3", "_mount_id": "/dev/mapper/vg1-lv3", "fs_create_options": "", "fs_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", "size": "3g", "state": "present", "type": "lvm" } ] } ], "volumes": [] } } TASK [storage : set the list of pools for test verification] ******************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:116 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": [{"disks": ["vdb", "vdc"], "name": "vg1", "raid_level": "raid0", "state": "present", "type": "lvm", "volumes": [{"_device": "/dev/mapper/vg1-lv1", "_mount_id": "/dev/mapper/vg1-lv1", "fs_create_options": "", "fs_label": "", "fs_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", "size": "2g", "state": "present", "type": "lvm"}, {"_device": "/dev/mapper/vg1-lv2", "_mount_id": "/dev/mapper/vg1-lv2", "fs_create_options": "", "fs_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", "size": "3g", "state": "present", "type": "lvm"}, {"_device": "/dev/mapper/vg1-lv3", "_mount_id": "/dev/mapper/vg1-lv3", "fs_create_options": "", "fs_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", "size": "3g", "state": "present", "type": "lvm"}]}]}, "changed": false} TASK [storage : set the list of volumes for test verification] ***************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:120 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : manage mounts to match the specified state] ******************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:132 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'src': '/dev/mapper/vg1-lv1', 'path': '/opt/test1', 'fstype': 'xfs', 'opts': 'defaults', 'dump': 0, 'passno': 0, 'state': 'mounted'}) => {"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-30-1.2.x86_64.qcow2] => (item={'src': '/dev/mapper/vg1-lv2', 'path': '/opt/test2', 'fstype': 'xfs', 'opts': 'defaults', 'dump': 0, 'passno': 0, 'state': 'mounted'}) => {"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-30-1.2.x86_64.qcow2] => (item={'src': '/dev/mapper/vg1-lv3', 'path': '/opt/test3', 'fstype': 'xfs', 'opts': 'defaults', 'dump': 0, 'passno': 0, 'state': 'mounted'}) => {"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 [storage : tell systemd to refresh its view of /etc/fstab] **************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:143 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [storage : Update facts] ************************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:153 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmpr6sk038f/tests/tests_create_raid_pool_then_remove.yml:66 included: /tmp/tmpr6sk038f/tests/verify-role-results.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [Print out pool information] ********************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:1 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools_list": [ { "disks": [ "vdb", "vdc" ], "name": "vg1", "raid_level": "raid0", "state": "present", "type": "lvm", "volumes": [ { "_device": "/dev/mapper/vg1-lv1", "_mount_id": "/dev/mapper/vg1-lv1", "fs_create_options": "", "fs_label": "", "fs_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", "size": "2g", "state": "present", "type": "lvm" }, { "_device": "/dev/mapper/vg1-lv2", "_mount_id": "/dev/mapper/vg1-lv2", "fs_create_options": "", "fs_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", "size": "3g", "state": "present", "type": "lvm" }, { "_device": "/dev/mapper/vg1-lv3", "_mount_id": "/dev/mapper/vg1-lv3", "fs_create_options": "", "fs_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", "size": "3g", "state": "present", "type": "lvm" } ] } ] } TASK [Print out volume information] ******************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:6 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {} TASK [Collect info about the volumes.] ***************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:14 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "info": {"/dev/mapper/vg1-lv1": {"fstype": "xfs", "label": "", "name": "/dev/mapper/vg1-lv1", "type": "lvm", "uuid": "efc499e9-a3fb-4484-92c1-352907a140d5"}, "/dev/mapper/vg1-lv2": {"fstype": "xfs", "label": "", "name": "/dev/mapper/vg1-lv2", "type": "lvm", "uuid": "af477f95-9885-46a3-b7e6-66003bdc41f1"}, "/dev/mapper/vg1-lv3": {"fstype": "xfs", "label": "", "name": "/dev/mapper/vg1-lv3", "type": "lvm", "uuid": "b8ffd02d-4c55-4a60-a38e-61a472d605c3"}, "/dev/md127": {"fstype": "LVM2_member", "label": "", "name": "/dev/md127", "type": "raid0", "uuid": "9DtFQj-ZmaX-H7Gx-AQeA-kjmi-nBtf-SX20ug"}, "/dev/sr0": {"fstype": "iso9660", "label": "cidata", "name": "/dev/sr0", "type": "rom", "uuid": "2020-05-27-13-19-57-00"}, "/dev/vda": {"fstype": "", "label": "", "name": "/dev/vda", "type": "disk", "uuid": ""}, "/dev/vda1": {"fstype": "ext4", "label": "", "name": "/dev/vda1", "type": "partition", "uuid": "ea711a29-e460-4879-9d70-9da99ae021f9"}, "/dev/vdb": {"fstype": "", "label": "", "name": "/dev/vdb", "type": "disk", "uuid": ""}, "/dev/vdb1": {"fstype": "linux_raid_member", "label": "mdraid-vg1", "name": "/dev/vdb1", "type": "partition", "uuid": "408a7533-b9a6-920b-3fb0-0e68abd0772d"}, "/dev/vdc": {"fstype": "", "label": "", "name": "/dev/vdc", "type": "disk", "uuid": ""}, "/dev/vdc1": {"fstype": "linux_raid_member", "label": "mdraid-vg1", "name": "/dev/vdc1", "type": "partition", "uuid": "408a7533-b9a6-920b-3fb0-0e68abd0772d"}}} TASK [Read the /etc/fstab file for volume existence] *************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:19 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/fstab"], "delta": "0:00:00.002976", "end": "2020-05-27 13:22:20.096390", "rc": 0, "start": "2020-05-27 13:22:20.093414", "stderr": "", "stderr_lines": [], "stdout": "\n#\n# /etc/fstab\n# Created by anaconda on Fri Apr 26 02:02:19 2019\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=ea711a29-e460-4879-9d70-9da99ae021f9 / 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 Fri Apr 26 02:02:19 2019", "#", "# 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=ea711a29-e460-4879-9d70-9da99ae021f9 / 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 [Verify the volumes listed in storage_pools were correctly managed] ******* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:27 [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/tmpr6sk038f/tests/test-verify-pool.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-pool.yml:5 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pool_tests": ["name", "type", "size", "members"]}, "changed": false} TASK [Verify the volumes in this pool were correctly managed] ****************** task path: /tmp/tmpr6sk038f/tests/test-verify-pool.yml:17 [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/tmpr6sk038f/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": true, "_storage_volume_tests": ["mount", "fstab", "fs", "device"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:12 included: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/vg1-lv1"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/vg1-lv1"], "delta": "0:00:00.002617", "end": "2020-05-27 13:22:20.613777", "rc": 0, "start": "2020-05-27 13:22:20.611160", "stderr": "", "stderr_lines": [], "stdout": "/dev/dm-2", "stdout_lines": ["/dev/dm-2"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Set some facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:20 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [{"block_available": 511880, "block_size": 4096, "block_total": 520704, "block_used": 8824, "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,sunit=1024,swidth=2048,noquota", "size_available": 2096660480, "size_total": 2132803584, "uuid": "efc499e9-a3fb-4484-92c1-352907a140d5"}], "storage_test_mount_expected_match_count": "1", "storage_test_mount_point_matches": [{"block_available": 511880, "block_size": 4096, "block_total": 520704, "block_used": 8824, "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,sunit=1024,swidth=2048,noquota", "size_available": 2096660480, "size_total": 2132803584, "uuid": "efc499e9-a3fb-4484-92c1-352907a140d5"}]}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:31 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:40 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:48 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Unset facts] ************************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:58 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_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/tmpr6sk038f/tests/test-verify-volume-fstab.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:16 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:23 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/vg1-lv1"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/vg1-lv1"], "delta": "0:00:00.003286", "end": "2020-05-27 13:22:21.182595", "rc": 0, "start": "2020-05-27 13:22:21.179309", "stderr": "", "stderr_lines": [], "stdout": "/dev/dm-2", "stdout_lines": ["/dev/dm-2"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify fs type] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:21 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify fs label] ********************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:27 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/vg1-lv1"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/vg1-lv1"], "delta": "0:00:01.003900", "end": "2020-05-27 13:22:22.649455", "rc": 0, "start": "2020-05-27 13:22:21.645555", "stderr": "", "stderr_lines": [], "stdout": "/dev/dm-2", "stdout_lines": ["/dev/dm-2"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [See whether the device node is present] ********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:21 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "stat": {"atime": 1590585714.7995381, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "ctime": 1590585714.7995381, "dev": 6, "device_type": 64770, "executable": false, "exists": true, "gid": 6, "gr_name": "disk", "inode": 1703, "isblk": true, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mimetype": "inode/symlink", "mode": "0660", "mtime": 1590585714.7995381, "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/tmpr6sk038f/tests/test-verify-volume-device.yml:27 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:35 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:41 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "lvm"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:45 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:50 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": true, "_storage_volume_tests": ["mount", "fstab", "fs", "device"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:12 included: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/vg1-lv2"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/vg1-lv2"], "delta": "0:00:00.002371", "end": "2020-05-27 13:22:23.551820", "rc": 0, "start": "2020-05-27 13:22:23.549449", "stderr": "", "stderr_lines": [], "stdout": "/dev/dm-1", "stdout_lines": ["/dev/dm-1"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Set some facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:20 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [{"block_available": 773760, "block_size": 4096, "block_total": 782848, "block_used": 9088, "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,sunit=1024,swidth=2048,noquota", "size_available": 3169320960, "size_total": 3206545408, "uuid": "af477f95-9885-46a3-b7e6-66003bdc41f1"}], "storage_test_mount_expected_match_count": "1", "storage_test_mount_point_matches": [{"block_available": 773760, "block_size": 4096, "block_total": 782848, "block_used": 9088, "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,sunit=1024,swidth=2048,noquota", "size_available": 3169320960, "size_total": 3206545408, "uuid": "af477f95-9885-46a3-b7e6-66003bdc41f1"}]}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:31 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:40 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:48 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Unset facts] ************************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:58 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_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/tmpr6sk038f/tests/test-verify-volume-fstab.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:16 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:23 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/vg1-lv2"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/vg1-lv2"], "delta": "0:00:01.004278", "end": "2020-05-27 13:22:25.124955", "rc": 0, "start": "2020-05-27 13:22:24.120677", "stderr": "", "stderr_lines": [], "stdout": "/dev/dm-1", "stdout_lines": ["/dev/dm-1"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify fs type] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:21 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify fs label] ********************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:27 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/vg1-lv2"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/vg1-lv2"], "delta": "0:00:00.002516", "end": "2020-05-27 13:22:25.546461", "rc": 0, "start": "2020-05-27 13:22:25.543945", "stderr": "", "stderr_lines": [], "stdout": "/dev/dm-1", "stdout_lines": ["/dev/dm-1"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [See whether the device node is present] ********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:21 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "stat": {"atime": 1590585714.6185381, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "ctime": 1590585714.6185381, "dev": 6, "device_type": 64769, "executable": false, "exists": true, "gid": 6, "gr_name": "disk", "inode": 1702, "isblk": true, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mimetype": "inode/symlink", "mode": "0660", "mtime": 1590585714.6185381, "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/tmpr6sk038f/tests/test-verify-volume-device.yml:27 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:35 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:41 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "lvm"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:45 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:50 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": true, "_storage_volume_tests": ["mount", "fstab", "fs", "device"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:12 included: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/vg1-lv3"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/vg1-lv3"], "delta": "0:00:00.002517", "end": "2020-05-27 13:22:26.438878", "rc": 0, "start": "2020-05-27 13:22:26.436361", "stderr": "", "stderr_lines": [], "stdout": "/dev/dm-0", "stdout_lines": ["/dev/dm-0"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Set some facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:20 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [{"block_available": 773760, "block_size": 4096, "block_total": 782848, "block_used": 9088, "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,sunit=1024,swidth=2048,noquota", "size_available": 3169320960, "size_total": 3206545408, "uuid": "b8ffd02d-4c55-4a60-a38e-61a472d605c3"}], "storage_test_mount_expected_match_count": "1", "storage_test_mount_point_matches": [{"block_available": 773760, "block_size": 4096, "block_total": 782848, "block_used": 9088, "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,sunit=1024,swidth=2048,noquota", "size_available": 3169320960, "size_total": 3206545408, "uuid": "b8ffd02d-4c55-4a60-a38e-61a472d605c3"}]}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:31 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:40 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:48 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Unset facts] ************************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:58 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_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/tmpr6sk038f/tests/test-verify-volume-fstab.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:16 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:23 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/vg1-lv3"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/vg1-lv3"], "delta": "0:00:01.003734", "end": "2020-05-27 13:22:28.010740", "rc": 0, "start": "2020-05-27 13:22:27.007006", "stderr": "", "stderr_lines": [], "stdout": "/dev/dm-0", "stdout_lines": ["/dev/dm-0"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify fs type] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:21 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify fs label] ********************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:27 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/vg1-lv3"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/vg1-lv3"], "delta": "0:00:00.002341", "end": "2020-05-27 13:22:28.404855", "rc": 0, "start": "2020-05-27 13:22:28.402514", "stderr": "", "stderr_lines": [], "stdout": "/dev/dm-0", "stdout_lines": ["/dev/dm-0"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [See whether the device node is present] ********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:21 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "stat": {"atime": 1590585714.439538, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "ctime": 1590585714.439538, "dev": 6, "device_type": 64768, "executable": false, "exists": true, "gid": 6, "gr_name": "disk", "inode": 1701, "isblk": true, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mimetype": "inode/symlink", "mode": "0660", "mtime": 1590585714.439538, "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/tmpr6sk038f/tests/test-verify-volume-device.yml:27 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:35 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:41 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "lvm"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:45 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:50 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:34 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_pool": null}, "changed": false} TASK [Verify the volumes with no pool were correctly managed] ****************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:41 TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:51 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_blkinfo": null, "storage_test_fstab": null, "storage_test_volume": null}, "changed": false} TASK [Remove the device created above] ***************************************** task path: /tmp/tmpr6sk038f/tests/tests_create_raid_pool_then_remove.yml:68 TASK [storage : Set version specific variables] ******************************** task path: /tmp/tmpr6sk038f/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/tmp/tmpr6sk038f/vars/Fedora.yml) => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-dm", "libblockdev-lvm", "libblockdev-part", "libblockdev-mdraid"]}, "ansible_included_var_files": ["/tmp/tmpr6sk038f/vars/Fedora.yml"], "ansible_loop_var": "item", "changed": false, "item": "/tmp/tmpr6sk038f/vars/Fedora.yml"} TASK [storage : define an empty list of pools to be used in testing] *********** task path: /tmp/tmpr6sk038f/tasks/main.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [storage : define an empty list of volumes to be used in testing] ********* task path: /tmp/tmpr6sk038f/tasks/main.yml:13 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : include the appropriate provider tasks] ************************ task path: /tmp/tmpr6sk038f/tasks/main.yml:17 included: /tmp/tmpr6sk038f/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [storage : get a list of rpm packages installed on host machine] ********** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [storage : make sure blivet is available] ********************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : initialize internal facts] ************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.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 [storage : Apply defaults to pools and volumes [1/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:28 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'name': 'vg1', 'disks': ['vdb', 'vdc'], 'type': 'lvm', 'raid_level': 'raid0', 'state': 'absent', 'volumes': [{'name': 'lv1', 'size': '2g', 'mount_point': '/opt/test1'}, {'name': 'lv2', 'size': '3g', 'mount_point': '/opt/test2'}, {'name': 'lv3', 'size': '3g', 'mount_point': '/opt/test3'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vdb", "vdc"], "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"}]}]}, "ansible_loop_var": "pool", "changed": false, "pool": {"disks": ["vdb", "vdc"], "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 [storage : Apply defaults to pools and volumes [2/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:36 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=[{'state': 'absent', 'type': 'lvm', 'name': 'vg1', 'disks': ['vdb', 'vdc'], 'raid_level': 'raid0', 'volumes': [{'name': 'lv1', 'size': '2g', 'mount_point': '/opt/test1'}, {'name': 'lv2', 'size': '3g', 'mount_point': '/opt/test2'}, {'name': 'lv3', 'size': '3g', 'mount_point': '/opt/test3'}]}, {'name': 'lv1', 'size': '2g', 'mount_point': '/opt/test1'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "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": ["vdb", "vdc"], "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"}]}, {"mount_point": "/opt/test1", "name": "lv1", "size": "2g"}]} ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=[{'state': 'absent', 'type': 'lvm', 'name': 'vg1', 'disks': ['vdb', 'vdc'], 'raid_level': 'raid0', 'volumes': [{'name': 'lv1', 'size': '2g', 'mount_point': '/opt/test1'}, {'name': 'lv2', 'size': '3g', 'mount_point': '/opt/test2'}, {'name': 'lv3', 'size': '3g', 'mount_point': '/opt/test3'}]}, {'name': 'lv2', 'size': '3g', 'mount_point': '/opt/test2'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "size": 0, "state": "present", "type": "lvm"}, {"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "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": ["vdb", "vdc"], "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"}]}, {"mount_point": "/opt/test2", "name": "lv2", "size": "3g"}]} ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=[{'state': 'absent', 'type': 'lvm', 'name': 'vg1', 'disks': ['vdb', 'vdc'], 'raid_level': 'raid0', 'volumes': [{'name': 'lv1', 'size': '2g', 'mount_point': '/opt/test1'}, {'name': 'lv2', 'size': '3g', 'mount_point': '/opt/test2'}, {'name': 'lv3', 'size': '3g', 'mount_point': '/opt/test3'}]}, {'name': 'lv3', 'size': '3g', 'mount_point': '/opt/test3'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "size": 0, "state": "present", "type": "lvm"}, {"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "size": 0, "state": "present", "type": "lvm"}, {"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "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": ["vdb", "vdc"], "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"}]}, {"mount_point": "/opt/test3", "name": "lv3", "size": "3g"}]} TASK [storage : Apply defaults to pools and volumes [3/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:44 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=[{'name': 'lv1', 'size': '2g', 'mount_point': '/opt/test1'}, {'state': 'present', 'type': 'lvm', 'size': 0, 'fs_type': 'xfs', 'fs_label': '', 'fs_create_options': '', 'fs_overwrite_existing': True, 'mount_point': '', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid'}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"fs_create_options": "", "fs_label": "", "fs_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", "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"}, {"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "size": 0, "state": "present", "type": "lvm"}]} ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=[{'name': 'lv2', 'size': '3g', 'mount_point': '/opt/test2'}, {'state': 'present', 'type': 'lvm', 'size': 0, 'fs_type': 'xfs', 'fs_label': '', 'fs_create_options': '', 'fs_overwrite_existing': True, 'mount_point': '', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid'}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"fs_create_options": "", "fs_label": "", "fs_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", "size": "2g", "state": "present", "type": "lvm"}, {"fs_create_options": "", "fs_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", "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"}, {"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "size": 0, "state": "present", "type": "lvm"}]} ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=[{'name': 'lv3', 'size': '3g', 'mount_point': '/opt/test3'}, {'state': 'present', 'type': 'lvm', 'size': 0, 'fs_type': 'xfs', 'fs_label': '', 'fs_create_options': '', 'fs_overwrite_existing': True, 'mount_point': '', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid'}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"fs_create_options": "", "fs_label": "", "fs_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", "size": "2g", "state": "present", "type": "lvm"}, {"fs_create_options": "", "fs_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", "size": "3g", "state": "present", "type": "lvm"}, {"fs_create_options": "", "fs_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", "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"}, {"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "size": 0, "state": "present", "type": "lvm"}]} TASK [storage : Apply defaults to pools and volumes [4/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:52 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'absent', 'type': 'lvm', 'name': 'vg1', 'disks': ['vdb', 'vdc'], 'raid_level': 'raid0', 'volumes': [{'name': 'lv1', 'size': '2g', 'mount_point': '/opt/test1'}, {'name': 'lv2', 'size': '3g', 'mount_point': '/opt/test2'}, {'name': 'lv3', 'size': '3g', 'mount_point': '/opt/test3'}]}) => {"ansible_facts": {"_storage_vols_no_defaults_by_pool": {"vg1": [{"fs_create_options": "", "fs_label": "", "fs_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", "size": "2g", "state": "present", "type": "lvm"}, {"fs_create_options": "", "fs_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", "size": "3g", "state": "present", "type": "lvm"}, {"fs_create_options": "", "fs_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", "size": "3g", "state": "present", "type": "lvm"}]}}, "ansible_loop_var": "item", "changed": false, "item": {"disks": ["vdb", "vdc"], "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 [storage : Apply defaults to pools and volumes [5/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:61 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'absent', 'type': 'lvm', 'name': 'vg1', 'disks': ['vdb', 'vdc'], 'raid_level': 'raid0', 'volumes': [{'name': 'lv1', 'size': '2g', 'mount_point': '/opt/test1'}, {'name': 'lv2', 'size': '3g', 'mount_point': '/opt/test2'}, {'name': 'lv3', 'size': '3g', 'mount_point': '/opt/test3'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vdb", "vdc"], "name": "vg1", "raid_level": "raid0", "state": "absent", "type": "lvm", "volumes": [{"fs_create_options": "", "fs_label": "", "fs_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", "size": "2g", "state": "present", "type": "lvm"}, {"fs_create_options": "", "fs_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", "size": "3g", "state": "present", "type": "lvm"}, {"fs_create_options": "", "fs_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", "size": "3g", "state": "present", "type": "lvm"}]}]}, "ansible_index_var": "idx", "ansible_loop_var": "pool", "changed": false, "idx": 0, "pool": {"disks": ["vdb", "vdc"], "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 [storage : Apply defaults to pools and volumes [6/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:72 TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools": [ { "disks": [ "vdb", "vdc" ], "name": "vg1", "raid_level": "raid0", "state": "absent", "type": "lvm", "volumes": [ { "fs_create_options": "", "fs_label": "", "fs_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", "size": "2g", "state": "present", "type": "lvm" }, { "fs_create_options": "", "fs_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", "size": "3g", "state": "present", "type": "lvm" }, { "fs_create_options": "", "fs_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", "size": "3g", "state": "present", "type": "lvm" } ] } ] } TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_volumes": [] } TASK [storage : get required packages] ***************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": []} TASK [storage : make sure required packages are installed] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : manage the pools and volumes to match the specified state] ***** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:104 changed: [/cache/Fedora-Cloud-Base-30-1.2.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/mdraid-vg1", "fs_type": "lvmpv"}, {"action": "destroy device", "device": "/dev/md/mdraid-vg1", "fs_type": null}, {"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"}, {"action": "destroy format", "device": "/dev/vdc1", "fs_type": "mdmember"}, {"action": "destroy device", "device": "/dev/vdc1", "fs_type": null}, {"action": "destroy format", "device": "/dev/vdc", "fs_type": "disklabel"}], "changed": true, "leaves": ["/dev/sr0", "/dev/vda1", "/dev/vdb", "/dev/vdc"], "mounts": [{"path": "/opt/test3", "state": "absent"}, {"path": "/opt/test2", "state": "absent"}, {"path": "/opt/test1", "state": "absent"}], "packages": ["e2fsprogs"], "pools": [{"disks": ["vdb", "vdc"], "name": "vg1", "raid_level": "raid0", "state": "absent", "type": "lvm", "volumes": [{"_device": "/dev/mapper/vg1-lv1", "_mount_id": "/dev/mapper/vg1-lv1", "fs_create_options": "", "fs_label": "", "fs_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", "size": "2g", "state": "present", "type": "lvm"}, {"_device": "/dev/mapper/vg1-lv2", "_mount_id": "/dev/mapper/vg1-lv2", "fs_create_options": "", "fs_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", "size": "3g", "state": "present", "type": "lvm"}, {"_device": "/dev/mapper/vg1-lv3", "_mount_id": "/dev/mapper/vg1-lv3", "fs_create_options": "", "fs_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", "size": "3g", "state": "present", "type": "lvm"}]}], "volumes": []} TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:113 ok: [/cache/Fedora-Cloud-Base-30-1.2.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/mdraid-vg1", "fs_type": "lvmpv" }, { "action": "destroy device", "device": "/dev/md/mdraid-vg1", "fs_type": null }, { "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" }, { "action": "destroy format", "device": "/dev/vdc1", "fs_type": "mdmember" }, { "action": "destroy device", "device": "/dev/vdc1", "fs_type": null }, { "action": "destroy format", "device": "/dev/vdc", "fs_type": "disklabel" } ], "changed": true, "failed": false, "leaves": [ "/dev/sr0", "/dev/vda1", "/dev/vdb", "/dev/vdc" ], "mounts": [ { "path": "/opt/test3", "state": "absent" }, { "path": "/opt/test2", "state": "absent" }, { "path": "/opt/test1", "state": "absent" } ], "packages": [ "e2fsprogs" ], "pools": [ { "disks": [ "vdb", "vdc" ], "name": "vg1", "raid_level": "raid0", "state": "absent", "type": "lvm", "volumes": [ { "_device": "/dev/mapper/vg1-lv1", "_mount_id": "/dev/mapper/vg1-lv1", "fs_create_options": "", "fs_label": "", "fs_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", "size": "2g", "state": "present", "type": "lvm" }, { "_device": "/dev/mapper/vg1-lv2", "_mount_id": "/dev/mapper/vg1-lv2", "fs_create_options": "", "fs_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", "size": "3g", "state": "present", "type": "lvm" }, { "_device": "/dev/mapper/vg1-lv3", "_mount_id": "/dev/mapper/vg1-lv3", "fs_create_options": "", "fs_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", "size": "3g", "state": "present", "type": "lvm" } ] } ], "volumes": [] } } TASK [storage : set the list of pools for test verification] ******************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:116 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": [{"disks": ["vdb", "vdc"], "name": "vg1", "raid_level": "raid0", "state": "absent", "type": "lvm", "volumes": [{"_device": "/dev/mapper/vg1-lv1", "_mount_id": "/dev/mapper/vg1-lv1", "fs_create_options": "", "fs_label": "", "fs_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", "size": "2g", "state": "present", "type": "lvm"}, {"_device": "/dev/mapper/vg1-lv2", "_mount_id": "/dev/mapper/vg1-lv2", "fs_create_options": "", "fs_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", "size": "3g", "state": "present", "type": "lvm"}, {"_device": "/dev/mapper/vg1-lv3", "_mount_id": "/dev/mapper/vg1-lv3", "fs_create_options": "", "fs_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", "size": "3g", "state": "present", "type": "lvm"}]}]}, "changed": false} TASK [storage : set the list of volumes for test verification] ***************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:120 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : manage mounts to match the specified state] ******************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:132 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'path': '/opt/test3', 'state': 'absent'}) => {"ansible_loop_var": "mount_info", "changed": true, "dump": "0", "fstab": "/etc/fstab", "mount_info": {"path": "/opt/test3", "state": "absent"}, "name": "/opt/test3", "opts": "defaults", "passno": "0"} changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'path': '/opt/test2', 'state': 'absent'}) => {"ansible_loop_var": "mount_info", "changed": true, "dump": "0", "fstab": "/etc/fstab", "mount_info": {"path": "/opt/test2", "state": "absent"}, "name": "/opt/test2", "opts": "defaults", "passno": "0"} changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'path': '/opt/test1', 'state': '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 [storage : tell systemd to refresh its view of /etc/fstab] **************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:143 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [storage : Update facts] ************************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:153 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmpr6sk038f/tests/tests_create_raid_pool_then_remove.yml:89 included: /tmp/tmpr6sk038f/tests/verify-role-results.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [Print out pool information] ********************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:1 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools_list": [ { "disks": [ "vdb", "vdc" ], "name": "vg1", "raid_level": "raid0", "state": "absent", "type": "lvm", "volumes": [ { "_device": "/dev/mapper/vg1-lv1", "_mount_id": "/dev/mapper/vg1-lv1", "fs_create_options": "", "fs_label": "", "fs_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", "size": "2g", "state": "present", "type": "lvm" }, { "_device": "/dev/mapper/vg1-lv2", "_mount_id": "/dev/mapper/vg1-lv2", "fs_create_options": "", "fs_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", "size": "3g", "state": "present", "type": "lvm" }, { "_device": "/dev/mapper/vg1-lv3", "_mount_id": "/dev/mapper/vg1-lv3", "fs_create_options": "", "fs_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", "size": "3g", "state": "present", "type": "lvm" } ] } ] } TASK [Print out volume information] ******************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:6 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {} TASK [Collect info about the volumes.] ***************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:14 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "info": {"/dev/sr0": {"fstype": "iso9660", "label": "cidata", "name": "/dev/sr0", "type": "rom", "uuid": "2020-05-27-13-19-57-00"}, "/dev/vda": {"fstype": "", "label": "", "name": "/dev/vda", "type": "disk", "uuid": ""}, "/dev/vda1": {"fstype": "ext4", "label": "", "name": "/dev/vda1", "type": "partition", "uuid": "ea711a29-e460-4879-9d70-9da99ae021f9"}, "/dev/vdb": {"fstype": "", "label": "", "name": "/dev/vdb", "type": "disk", "uuid": ""}, "/dev/vdc": {"fstype": "", "label": "", "name": "/dev/vdc", "type": "disk", "uuid": ""}}} TASK [Read the /etc/fstab file for volume existence] *************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:19 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/fstab"], "delta": "0:00:00.002476", "end": "2020-05-27 13:22:43.856801", "rc": 0, "start": "2020-05-27 13:22:43.854325", "stderr": "", "stderr_lines": [], "stdout": "\n#\n# /etc/fstab\n# Created by anaconda on Fri Apr 26 02:02:19 2019\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=ea711a29-e460-4879-9d70-9da99ae021f9 / ext4 defaults 1 1", "stdout_lines": ["", "#", "# /etc/fstab", "# Created by anaconda on Fri Apr 26 02:02:19 2019", "#", "# 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=ea711a29-e460-4879-9d70-9da99ae021f9 / ext4 defaults 1 1"]} TASK [Verify the volumes listed in storage_pools were correctly managed] ******* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:27 [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/tmpr6sk038f/tests/test-verify-pool.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-pool.yml:5 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pool_tests": ["name", "type", "size", "members"]}, "changed": false} TASK [Verify the volumes in this pool were correctly managed] ****************** task path: /tmp/tmpr6sk038f/tests/test-verify-pool.yml:17 [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/tmpr6sk038f/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": false, "_storage_volume_tests": ["mount", "fstab", "fs", "device"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:12 included: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/vg1-lv1"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/vg1-lv1"], "delta": "0:00:00.002479", "end": "2020-05-27 13:22:44.352577", "rc": 0, "start": "2020-05-27 13:22:44.350098", "stderr": "", "stderr_lines": [], "stdout": "/dev/mapper/vg1-lv1", "stdout_lines": ["/dev/mapper/vg1-lv1"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:15 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": {"changed": true, "cmd": ["realpath", "/dev/mapper/vg1-lv1"], "delta": "0:00:00.002479", "end": "2020-05-27 13:22:44.352577", "failed": false, "rc": 0, "start": "2020-05-27 13:22:44.350098", "stderr": "", "stderr_lines": [], "stdout": "/dev/mapper/vg1-lv1", "stdout_lines": ["/dev/mapper/vg1-lv1"]}}, "changed": false} TASK [Set some facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:20 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [], "storage_test_mount_expected_match_count": "0", "storage_test_mount_point_matches": []}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:31 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:40 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:48 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Unset facts] ************************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:58 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_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/tmpr6sk038f/tests/test-verify-volume-fstab.yml:9 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:16 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:23 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/vg1-lv1"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/vg1-lv1"], "delta": "0:00:00.002712", "end": "2020-05-27 13:22:44.858312", "rc": 0, "start": "2020-05-27 13:22:44.855600", "stderr": "", "stderr_lines": [], "stdout": "/dev/mapper/vg1-lv1", "stdout_lines": ["/dev/mapper/vg1-lv1"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:15 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": {"changed": true, "cmd": ["realpath", "/dev/mapper/vg1-lv1"], "delta": "0:00:00.002712", "end": "2020-05-27 13:22:44.858312", "failed": false, "rc": 0, "start": "2020-05-27 13:22:44.855600", "stderr": "", "stderr_lines": [], "stdout": "/dev/mapper/vg1-lv1", "stdout_lines": ["/dev/mapper/vg1-lv1"]}}, "changed": false} TASK [Verify fs type] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:21 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify fs label] ********************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:27 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/vg1-lv1"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/vg1-lv1"], "delta": "0:00:00.002456", "end": "2020-05-27 13:22:45.244543", "rc": 0, "start": "2020-05-27 13:22:45.242087", "stderr": "", "stderr_lines": [], "stdout": "/dev/mapper/vg1-lv1", "stdout_lines": ["/dev/mapper/vg1-lv1"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:15 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": {"changed": true, "cmd": ["realpath", "/dev/mapper/vg1-lv1"], "delta": "0:00:00.002456", "end": "2020-05-27 13:22:45.244543", "failed": false, "rc": 0, "start": "2020-05-27 13:22:45.242087", "stderr": "", "stderr_lines": [], "stdout": "/dev/mapper/vg1-lv1", "stdout_lines": ["/dev/mapper/vg1-lv1"]}}, "changed": false} TASK [See whether the device node is present] ********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:21 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "stat": {"exists": false}} TASK [Verify the presence/absence of the device node] ************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:27 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:35 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:41 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "lvm"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:45 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:50 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Clean up facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": false, "_storage_volume_tests": ["mount", "fstab", "fs", "device"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:12 included: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/vg1-lv2"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/vg1-lv2"], "delta": "0:00:00.002726", "end": "2020-05-27 13:22:46.115218", "rc": 0, "start": "2020-05-27 13:22:46.112492", "stderr": "", "stderr_lines": [], "stdout": "/dev/mapper/vg1-lv2", "stdout_lines": ["/dev/mapper/vg1-lv2"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:15 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": {"changed": true, "cmd": ["realpath", "/dev/mapper/vg1-lv2"], "delta": "0:00:00.002726", "end": "2020-05-27 13:22:46.115218", "failed": false, "rc": 0, "start": "2020-05-27 13:22:46.112492", "stderr": "", "stderr_lines": [], "stdout": "/dev/mapper/vg1-lv2", "stdout_lines": ["/dev/mapper/vg1-lv2"]}}, "changed": false} TASK [Set some facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:20 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [], "storage_test_mount_expected_match_count": "0", "storage_test_mount_point_matches": []}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:31 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:40 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:48 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Unset facts] ************************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:58 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_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/tmpr6sk038f/tests/test-verify-volume-fstab.yml:9 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:16 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:23 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/vg1-lv2"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/vg1-lv2"], "delta": "0:00:00.002351", "end": "2020-05-27 13:22:46.634575", "rc": 0, "start": "2020-05-27 13:22:46.632224", "stderr": "", "stderr_lines": [], "stdout": "/dev/mapper/vg1-lv2", "stdout_lines": ["/dev/mapper/vg1-lv2"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:15 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": {"changed": true, "cmd": ["realpath", "/dev/mapper/vg1-lv2"], "delta": "0:00:00.002351", "end": "2020-05-27 13:22:46.634575", "failed": false, "rc": 0, "start": "2020-05-27 13:22:46.632224", "stderr": "", "stderr_lines": [], "stdout": "/dev/mapper/vg1-lv2", "stdout_lines": ["/dev/mapper/vg1-lv2"]}}, "changed": false} TASK [Verify fs type] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:21 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify fs label] ********************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:27 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/vg1-lv2"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/vg1-lv2"], "delta": "0:00:01.003969", "end": "2020-05-27 13:22:48.028935", "rc": 0, "start": "2020-05-27 13:22:47.024966", "stderr": "", "stderr_lines": [], "stdout": "/dev/mapper/vg1-lv2", "stdout_lines": ["/dev/mapper/vg1-lv2"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:15 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": {"changed": true, "cmd": ["realpath", "/dev/mapper/vg1-lv2"], "delta": "0:00:01.003969", "end": "2020-05-27 13:22:48.028935", "failed": false, "rc": 0, "start": "2020-05-27 13:22:47.024966", "stderr": "", "stderr_lines": [], "stdout": "/dev/mapper/vg1-lv2", "stdout_lines": ["/dev/mapper/vg1-lv2"]}}, "changed": false} TASK [See whether the device node is present] ********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:21 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "stat": {"exists": false}} TASK [Verify the presence/absence of the device node] ************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:27 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:35 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:41 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "lvm"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:45 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:50 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Clean up facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": false, "_storage_volume_tests": ["mount", "fstab", "fs", "device"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:12 included: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/vg1-lv3"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/vg1-lv3"], "delta": "0:00:00.002867", "end": "2020-05-27 13:22:48.870676", "rc": 0, "start": "2020-05-27 13:22:48.867809", "stderr": "", "stderr_lines": [], "stdout": "/dev/mapper/vg1-lv3", "stdout_lines": ["/dev/mapper/vg1-lv3"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:15 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": {"changed": true, "cmd": ["realpath", "/dev/mapper/vg1-lv3"], "delta": "0:00:00.002867", "end": "2020-05-27 13:22:48.870676", "failed": false, "rc": 0, "start": "2020-05-27 13:22:48.867809", "stderr": "", "stderr_lines": [], "stdout": "/dev/mapper/vg1-lv3", "stdout_lines": ["/dev/mapper/vg1-lv3"]}}, "changed": false} TASK [Set some facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:20 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [], "storage_test_mount_expected_match_count": "0", "storage_test_mount_point_matches": []}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:31 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:40 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:48 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Unset facts] ************************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:58 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_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/tmpr6sk038f/tests/test-verify-volume-fstab.yml:9 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:16 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:23 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/vg1-lv3"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/vg1-lv3"], "delta": "0:00:01.003369", "end": "2020-05-27 13:22:50.384366", "rc": 0, "start": "2020-05-27 13:22:49.380997", "stderr": "", "stderr_lines": [], "stdout": "/dev/mapper/vg1-lv3", "stdout_lines": ["/dev/mapper/vg1-lv3"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:15 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": {"changed": true, "cmd": ["realpath", "/dev/mapper/vg1-lv3"], "delta": "0:00:01.003369", "end": "2020-05-27 13:22:50.384366", "failed": false, "rc": 0, "start": "2020-05-27 13:22:49.380997", "stderr": "", "stderr_lines": [], "stdout": "/dev/mapper/vg1-lv3", "stdout_lines": ["/dev/mapper/vg1-lv3"]}}, "changed": false} TASK [Verify fs type] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:21 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify fs label] ********************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:27 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/vg1-lv3"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/vg1-lv3"], "delta": "0:00:00.002915", "end": "2020-05-27 13:22:50.800609", "rc": 0, "start": "2020-05-27 13:22:50.797694", "stderr": "", "stderr_lines": [], "stdout": "/dev/mapper/vg1-lv3", "stdout_lines": ["/dev/mapper/vg1-lv3"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:15 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": {"changed": true, "cmd": ["realpath", "/dev/mapper/vg1-lv3"], "delta": "0:00:00.002915", "end": "2020-05-27 13:22:50.800609", "failed": false, "rc": 0, "start": "2020-05-27 13:22:50.797694", "stderr": "", "stderr_lines": [], "stdout": "/dev/mapper/vg1-lv3", "stdout_lines": ["/dev/mapper/vg1-lv3"]}}, "changed": false} TASK [See whether the device node is present] ********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:21 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "stat": {"exists": false}} TASK [Verify the presence/absence of the device node] ************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:27 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:35 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:41 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "lvm"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:45 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:50 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Clean up facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:34 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_pool": null}, "changed": false} TASK [Verify the volumes with no pool were correctly managed] ****************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:41 TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:51 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_blkinfo": null, "storage_test_fstab": null, "storage_test_volume": null}, "changed": false} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 : ok=360 changed=32 unreachable=0 failed=0 skipped=71 rescued=0 ignored=0 + cd /tmp/tmpr6sk038f/tests; TEST_SUBJECTS=/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_storage-91-a6b7623-fedora-30-97_lk9m2/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmpr6sk038f/_setup.yml /tmp/tmpr6sk038f/tests/tests_default.yml ansible-playbook 2.9.9 config file = /etc/ansible/ansible.cfg configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.8/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 3.8.2 (default, Feb 28 2020, 00:00:00) [GCC 10.0.1 20200216 (Red Hat 10.0.1-0.8)] Using /etc/ansible/ansible.cfg as config file PLAYBOOK: _setup.yml *********************************************************** 1 plays in /tmp/tmpr6sk038f/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmpr6sk038f/_setup.yml:5 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "groups": { "all": [ "/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2" ], "localhost": [ "/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2" ], "subjects": [ "/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmpr6sk038f/_setup.yml:7 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/Fedora-Cloud-Base-30-1.2.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/tmpr6sk038f/tests/tests_default.yml PLAY [Ensure that the role runs with default parameters] *********************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpr6sk038f/tests/tests_default.yml:1 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] META: ran handlers TASK [storage : Set version specific variables] ******************************** task path: /tmp/tmpr6sk038f/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/tmp/tmpr6sk038f/vars/Fedora.yml) => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-dm", "libblockdev-lvm", "libblockdev-part", "libblockdev-mdraid"]}, "ansible_included_var_files": ["/tmp/tmpr6sk038f/vars/Fedora.yml"], "ansible_loop_var": "item", "changed": false, "item": "/tmp/tmpr6sk038f/vars/Fedora.yml"} TASK [storage : define an empty list of pools to be used in testing] *********** task path: /tmp/tmpr6sk038f/tasks/main.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [storage : define an empty list of volumes to be used in testing] ********* task path: /tmp/tmpr6sk038f/tasks/main.yml:13 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : include the appropriate provider tasks] ************************ task path: /tmp/tmpr6sk038f/tasks/main.yml:17 included: /tmp/tmpr6sk038f/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [storage : get a list of rpm packages installed on host machine] ********** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [storage : make sure blivet is available] ********************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:7 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: libblockdev-mpath-2.23-1.fc30.x86_64", "Installed: libblockdev-nvdimm-2.23-1.fc30.x86_64", "Installed: userspace-rcu-0.10.1-5.fc30.x86_64", "Installed: libblockdev-part-2.23-1.fc30.x86_64", "Installed: dmraid-1.0.0.rc16-41.fc30.x86_64", "Installed: dmraid-events-1.0.0.rc16-41.fc30.x86_64", "Installed: lzo-2.08-15.fc30.x86_64", "Installed: libblockdev-swap-2.23-1.fc30.x86_64", "Installed: lvm2-2.02.183-3.fc30.x86_64", "Installed: libblockdev-utils-2.23-1.fc30.x86_64", "Installed: lvm2-libs-2.02.183-3.fc30.x86_64", "Installed: python3-blivet-1:3.1.4-1.fc30.noarch", "Installed: python3-blockdev-2.23-1.fc30.x86_64", "Installed: daxctl-libs-68-1.fc30.x86_64", "Installed: mdadm-4.1-1.fc30.x86_64", "Installed: blivet-data-1:3.1.4-1.fc30.noarch", "Installed: sgpio-1.2.0.10-23.fc30.x86_64", "Installed: nspr-4.25.0-1.fc30.x86_64", "Installed: python3-bytesize-2.2-1.fc30.x86_64", "Installed: device-mapper-event-1.02.154-3.fc30.x86_64", "Installed: lsof-4.91-3.fc30.x86_64", "Installed: nss-3.51.1-1.fc30.x86_64", "Installed: device-mapper-event-libs-1.02.154-3.fc30.x86_64", "Installed: device-mapper-multipath-0.7.9-6.git2df6110.fc30.x86_64", "Installed: gdisk-1.0.5-1.fc30.x86_64", "Installed: device-mapper-multipath-libs-0.7.9-6.git2df6110.fc30.x86_64", "Installed: nss-softokn-3.51.1-1.fc30.x86_64", "Installed: python3-gobject-base-3.32.2-1.fc30.x86_64", "Installed: device-mapper-persistent-data-0.7.6-4.fc30.x86_64", "Installed: gobject-introspection-1.60.2-1.fc30.x86_64", "Installed: nss-softokn-freebl-3.51.1-1.fc30.x86_64", "Installed: libbytesize-2.2-1.fc30.x86_64", "Installed: nss-sysinit-3.51.1-1.fc30.x86_64", "Installed: nss-util-3.51.1-1.fc30.x86_64", "Installed: volume_key-libs-0.3.12-3.fc30.x86_64", "Installed: bcache-tools-1.0.8-15.fc30.x86_64", "Installed: ndctl-68-1.fc30.x86_64", "Installed: ndctl-libs-68-1.fc30.x86_64", "Installed: libblockdev-2.23-1.fc30.x86_64", "Installed: libblockdev-btrfs-2.23-1.fc30.x86_64", "Installed: libblockdev-crypto-2.23-1.fc30.x86_64", "Installed: python3-pyudev-0.21.0-10.fc30.noarch", "Installed: btrfs-progs-5.6-1.fc30.x86_64", "Installed: libblockdev-dm-2.23-1.fc30.x86_64", "Installed: libblockdev-fs-2.23-1.fc30.x86_64", "Installed: libblockdev-kbd-2.23-1.fc30.x86_64", "Installed: libblockdev-loop-2.23-1.fc30.x86_64", "Installed: libblockdev-lvm-2.23-1.fc30.x86_64", "Installed: python3-pyparted-1:3.11.2-1.fc30.x86_64", "Installed: libaio-0.3.111-4.fc30.x86_64", "Installed: libblockdev-mdraid-2.23-1.fc30.x86_64"]} TASK [storage : initialize internal facts] ************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.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 [storage : Apply defaults to pools and volumes [1/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:28 TASK [storage : Apply defaults to pools and volumes [2/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:36 TASK [storage : Apply defaults to pools and volumes [3/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:44 TASK [storage : Apply defaults to pools and volumes [4/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:52 TASK [storage : Apply defaults to pools and volumes [5/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:61 TASK [storage : Apply defaults to pools and volumes [6/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:72 TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools": [] } TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_volumes": [] } TASK [storage : get required packages] ***************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": []} TASK [storage : make sure required packages are installed] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : manage the pools and volumes to match the specified state] ***** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:104 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": []} TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:113 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "blivet_output": { "actions": [], "changed": false, "failed": false, "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": [] } } TASK [storage : set the list of pools for test verification] ******************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:116 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [storage : set the list of volumes for test verification] ***************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:120 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : manage mounts to match the specified state] ******************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:132 TASK [storage : tell systemd to refresh its view of /etc/fstab] **************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:143 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [storage : Update facts] ************************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:153 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 : ok=17 changed=1 unreachable=0 failed=0 skipped=10 rescued=0 ignored=0 + cd /tmp/tmpr6sk038f/tests; TEST_SUBJECTS=/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_storage-91-a6b7623-fedora-30-97_lk9m2/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmpr6sk038f/_setup.yml /tmp/tmpr6sk038f/tests/tests_deps.yml ansible-playbook 2.9.9 config file = /etc/ansible/ansible.cfg configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.8/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 3.8.2 (default, Feb 28 2020, 00:00:00) [GCC 10.0.1 20200216 (Red Hat 10.0.1-0.8)] Using /etc/ansible/ansible.cfg as config file PLAYBOOK: _setup.yml *********************************************************** 1 plays in /tmp/tmpr6sk038f/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmpr6sk038f/_setup.yml:5 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "groups": { "all": [ "/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2" ], "localhost": [ "/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2" ], "subjects": [ "/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmpr6sk038f/_setup.yml:7 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/Fedora-Cloud-Base-30-1.2.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/tmpr6sk038f/tests/tests_deps.yml PLAY [all localhost] *********************************************************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpr6sk038f/tests/tests_deps.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] META: ran handlers TASK [include_role : storage] ************************************************** task path: /tmp/tmpr6sk038f/tests/tests_deps.yml:6 TASK [storage : Set version specific variables] ******************************** task path: /tmp/tmpr6sk038f/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/tmp/tmpr6sk038f/vars/Fedora.yml) => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-dm", "libblockdev-lvm", "libblockdev-part", "libblockdev-mdraid"]}, "ansible_included_var_files": ["/tmp/tmpr6sk038f/vars/Fedora.yml"], "ansible_loop_var": "item", "changed": false, "item": "/tmp/tmpr6sk038f/vars/Fedora.yml"} TASK [storage : define an empty list of pools to be used in testing] *********** task path: /tmp/tmpr6sk038f/tasks/main.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [storage : define an empty list of volumes to be used in testing] ********* task path: /tmp/tmpr6sk038f/tasks/main.yml:13 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : include the appropriate provider tasks] ************************ task path: /tmp/tmpr6sk038f/tasks/main.yml:17 included: /tmp/tmpr6sk038f/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [storage : get a list of rpm packages installed on host machine] ********** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [storage : make sure blivet is available] ********************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:7 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: libblockdev-mpath-2.23-1.fc30.x86_64", "Installed: libblockdev-nvdimm-2.23-1.fc30.x86_64", "Installed: userspace-rcu-0.10.1-5.fc30.x86_64", "Installed: libblockdev-part-2.23-1.fc30.x86_64", "Installed: dmraid-1.0.0.rc16-41.fc30.x86_64", "Installed: dmraid-events-1.0.0.rc16-41.fc30.x86_64", "Installed: lzo-2.08-15.fc30.x86_64", "Installed: libblockdev-swap-2.23-1.fc30.x86_64", "Installed: lvm2-2.02.183-3.fc30.x86_64", "Installed: libblockdev-utils-2.23-1.fc30.x86_64", "Installed: lvm2-libs-2.02.183-3.fc30.x86_64", "Installed: python3-blivet-1:3.1.4-1.fc30.noarch", "Installed: python3-blockdev-2.23-1.fc30.x86_64", "Installed: daxctl-libs-68-1.fc30.x86_64", "Installed: mdadm-4.1-1.fc30.x86_64", "Installed: blivet-data-1:3.1.4-1.fc30.noarch", "Installed: sgpio-1.2.0.10-23.fc30.x86_64", "Installed: nspr-4.25.0-1.fc30.x86_64", "Installed: python3-bytesize-2.2-1.fc30.x86_64", "Installed: device-mapper-event-1.02.154-3.fc30.x86_64", "Installed: lsof-4.91-3.fc30.x86_64", "Installed: nss-3.51.1-1.fc30.x86_64", "Installed: device-mapper-event-libs-1.02.154-3.fc30.x86_64", "Installed: device-mapper-multipath-0.7.9-6.git2df6110.fc30.x86_64", "Installed: gdisk-1.0.5-1.fc30.x86_64", "Installed: device-mapper-multipath-libs-0.7.9-6.git2df6110.fc30.x86_64", "Installed: nss-softokn-3.51.1-1.fc30.x86_64", "Installed: python3-gobject-base-3.32.2-1.fc30.x86_64", "Installed: device-mapper-persistent-data-0.7.6-4.fc30.x86_64", "Installed: gobject-introspection-1.60.2-1.fc30.x86_64", "Installed: nss-softokn-freebl-3.51.1-1.fc30.x86_64", "Installed: libbytesize-2.2-1.fc30.x86_64", "Installed: nss-sysinit-3.51.1-1.fc30.x86_64", "Installed: nss-util-3.51.1-1.fc30.x86_64", "Installed: volume_key-libs-0.3.12-3.fc30.x86_64", "Installed: bcache-tools-1.0.8-15.fc30.x86_64", "Installed: ndctl-68-1.fc30.x86_64", "Installed: ndctl-libs-68-1.fc30.x86_64", "Installed: libblockdev-2.23-1.fc30.x86_64", "Installed: libblockdev-btrfs-2.23-1.fc30.x86_64", "Installed: libblockdev-crypto-2.23-1.fc30.x86_64", "Installed: python3-pyudev-0.21.0-10.fc30.noarch", "Installed: btrfs-progs-5.6-1.fc30.x86_64", "Installed: libblockdev-dm-2.23-1.fc30.x86_64", "Installed: libblockdev-fs-2.23-1.fc30.x86_64", "Installed: libblockdev-kbd-2.23-1.fc30.x86_64", "Installed: libblockdev-loop-2.23-1.fc30.x86_64", "Installed: libblockdev-lvm-2.23-1.fc30.x86_64", "Installed: python3-pyparted-1:3.11.2-1.fc30.x86_64", "Installed: libaio-0.3.111-4.fc30.x86_64", "Installed: libblockdev-mdraid-2.23-1.fc30.x86_64"]} TASK [storage : initialize internal facts] ************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.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 [storage : Apply defaults to pools and volumes [1/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:28 TASK [storage : Apply defaults to pools and volumes [2/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:36 TASK [storage : Apply defaults to pools and volumes [3/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:44 TASK [storage : Apply defaults to pools and volumes [4/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:52 TASK [storage : Apply defaults to pools and volumes [5/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:61 TASK [storage : Apply defaults to pools and volumes [6/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:72 TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools": [] } TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_volumes": [] } TASK [storage : get required packages] ***************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": []} TASK [storage : make sure required packages are installed] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : manage the pools and volumes to match the specified state] ***** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:104 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": []} TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:113 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "blivet_output": { "actions": [], "changed": false, "failed": false, "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": [] } } TASK [storage : set the list of pools for test verification] ******************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:116 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [storage : set the list of volumes for test verification] ***************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:120 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : manage mounts to match the specified state] ******************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:132 TASK [storage : tell systemd to refresh its view of /etc/fstab] **************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:143 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [storage : Update facts] ************************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:153 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] TASK [test lvm and xfs package deps] ******************************************* task path: /tmp/tmpr6sk038f/tests/tests_deps.yml:9 included: /tmp/tmpr6sk038f/tests/run_blivet.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [test lvm and xfs package deps] ******************************************* task path: /tmp/tmpr6sk038f/tests/run_blivet.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": [], "mounts": [], "packages": ["lvm2", "xfsprogs"], "pools": [], "volumes": []} TASK [assert] ****************************************************************** task path: /tmp/tmpr6sk038f/tests/tests_deps.yml:25 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [test disk and ext4 package deps] ***************************************** task path: /tmp/tmpr6sk038f/tests/tests_deps.yml:31 included: /tmp/tmpr6sk038f/tests/run_blivet.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [test lvm and xfs package deps] ******************************************* task path: /tmp/tmpr6sk038f/tests/run_blivet.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": [], "mounts": [], "packages": ["e2fsprogs"], "pools": [], "volumes": []} TASK [assert] ****************************************************************** task path: /tmp/tmpr6sk038f/tests/tests_deps.yml:42 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [test disk and swap package deps] ***************************************** task path: /tmp/tmpr6sk038f/tests/tests_deps.yml:48 included: /tmp/tmpr6sk038f/tests/run_blivet.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [test lvm and xfs package deps] ******************************************* task path: /tmp/tmpr6sk038f/tests/run_blivet.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": []} TASK [assert] ****************************************************************** task path: /tmp/tmpr6sk038f/tests/tests_deps.yml:59 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 : ok=26 changed=1 unreachable=0 failed=0 skipped=10 rescued=0 ignored=0 + cd /tmp/tmpr6sk038f/tests; TEST_SUBJECTS=/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_storage-91-a6b7623-fedora-30-97_lk9m2/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmpr6sk038f/_setup.yml /tmp/tmpr6sk038f/tests/tests_disk_errors.yml ansible-playbook 2.9.9 config file = /etc/ansible/ansible.cfg configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.8/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 3.8.2 (default, Feb 28 2020, 00:00:00) [GCC 10.0.1 20200216 (Red Hat 10.0.1-0.8)] Using /etc/ansible/ansible.cfg as config file PLAYBOOK: _setup.yml *********************************************************** 1 plays in /tmp/tmpr6sk038f/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmpr6sk038f/_setup.yml:5 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "groups": { "all": [ "/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2" ], "localhost": [ "/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2" ], "subjects": [ "/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmpr6sk038f/_setup.yml:7 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/Fedora-Cloud-Base-30-1.2.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/tmpr6sk038f/tests/tests_disk_errors.yml PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpr6sk038f/tests/tests_disk_errors.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] META: ran handlers TASK [include_role : storage] ************************************************** task path: /tmp/tmpr6sk038f/tests/tests_disk_errors.yml:9 TASK [storage : Set version specific variables] ******************************** task path: /tmp/tmpr6sk038f/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/tmp/tmpr6sk038f/vars/Fedora.yml) => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-dm", "libblockdev-lvm", "libblockdev-part", "libblockdev-mdraid"]}, "ansible_included_var_files": ["/tmp/tmpr6sk038f/vars/Fedora.yml"], "ansible_loop_var": "item", "changed": false, "item": "/tmp/tmpr6sk038f/vars/Fedora.yml"} TASK [storage : define an empty list of pools to be used in testing] *********** task path: /tmp/tmpr6sk038f/tasks/main.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [storage : define an empty list of volumes to be used in testing] ********* task path: /tmp/tmpr6sk038f/tasks/main.yml:13 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : include the appropriate provider tasks] ************************ task path: /tmp/tmpr6sk038f/tasks/main.yml:17 included: /tmp/tmpr6sk038f/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [storage : get a list of rpm packages installed on host machine] ********** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [storage : make sure blivet is available] ********************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:7 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: libblockdev-mpath-2.23-1.fc30.x86_64", "Installed: libblockdev-nvdimm-2.23-1.fc30.x86_64", "Installed: userspace-rcu-0.10.1-5.fc30.x86_64", "Installed: libblockdev-part-2.23-1.fc30.x86_64", "Installed: dmraid-1.0.0.rc16-41.fc30.x86_64", "Installed: dmraid-events-1.0.0.rc16-41.fc30.x86_64", "Installed: lzo-2.08-15.fc30.x86_64", "Installed: libblockdev-swap-2.23-1.fc30.x86_64", "Installed: lvm2-2.02.183-3.fc30.x86_64", "Installed: libblockdev-utils-2.23-1.fc30.x86_64", "Installed: lvm2-libs-2.02.183-3.fc30.x86_64", "Installed: python3-blivet-1:3.1.4-1.fc30.noarch", "Installed: python3-blockdev-2.23-1.fc30.x86_64", "Installed: daxctl-libs-68-1.fc30.x86_64", "Installed: mdadm-4.1-1.fc30.x86_64", "Installed: blivet-data-1:3.1.4-1.fc30.noarch", "Installed: sgpio-1.2.0.10-23.fc30.x86_64", "Installed: nspr-4.25.0-1.fc30.x86_64", "Installed: python3-bytesize-2.2-1.fc30.x86_64", "Installed: device-mapper-event-1.02.154-3.fc30.x86_64", "Installed: lsof-4.91-3.fc30.x86_64", "Installed: nss-3.51.1-1.fc30.x86_64", "Installed: device-mapper-event-libs-1.02.154-3.fc30.x86_64", "Installed: device-mapper-multipath-0.7.9-6.git2df6110.fc30.x86_64", "Installed: gdisk-1.0.5-1.fc30.x86_64", "Installed: device-mapper-multipath-libs-0.7.9-6.git2df6110.fc30.x86_64", "Installed: nss-softokn-3.51.1-1.fc30.x86_64", "Installed: python3-gobject-base-3.32.2-1.fc30.x86_64", "Installed: device-mapper-persistent-data-0.7.6-4.fc30.x86_64", "Installed: gobject-introspection-1.60.2-1.fc30.x86_64", "Installed: nss-softokn-freebl-3.51.1-1.fc30.x86_64", "Installed: libbytesize-2.2-1.fc30.x86_64", "Installed: nss-sysinit-3.51.1-1.fc30.x86_64", "Installed: nss-util-3.51.1-1.fc30.x86_64", "Installed: volume_key-libs-0.3.12-3.fc30.x86_64", "Installed: bcache-tools-1.0.8-15.fc30.x86_64", "Installed: ndctl-68-1.fc30.x86_64", "Installed: ndctl-libs-68-1.fc30.x86_64", "Installed: libblockdev-2.23-1.fc30.x86_64", "Installed: libblockdev-btrfs-2.23-1.fc30.x86_64", "Installed: libblockdev-crypto-2.23-1.fc30.x86_64", "Installed: python3-pyudev-0.21.0-10.fc30.noarch", "Installed: btrfs-progs-5.6-1.fc30.x86_64", "Installed: libblockdev-dm-2.23-1.fc30.x86_64", "Installed: libblockdev-fs-2.23-1.fc30.x86_64", "Installed: libblockdev-kbd-2.23-1.fc30.x86_64", "Installed: libblockdev-loop-2.23-1.fc30.x86_64", "Installed: libblockdev-lvm-2.23-1.fc30.x86_64", "Installed: python3-pyparted-1:3.11.2-1.fc30.x86_64", "Installed: libaio-0.3.111-4.fc30.x86_64", "Installed: libblockdev-mdraid-2.23-1.fc30.x86_64"]} TASK [storage : initialize internal facts] ************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.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 [storage : Apply defaults to pools and volumes [1/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:28 TASK [storage : Apply defaults to pools and volumes [2/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:36 TASK [storage : Apply defaults to pools and volumes [3/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:44 TASK [storage : Apply defaults to pools and volumes [4/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:52 TASK [storage : Apply defaults to pools and volumes [5/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:61 TASK [storage : Apply defaults to pools and volumes [6/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:72 TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools": [] } TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_volumes": [] } TASK [storage : get required packages] ***************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": []} TASK [storage : make sure required packages are installed] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : manage the pools and volumes to match the specified state] ***** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:104 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": []} TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:113 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "blivet_output": { "actions": [], "changed": false, "failed": false, "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": [] } } TASK [storage : set the list of pools for test verification] ******************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:116 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [storage : set the list of volumes for test verification] ***************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:120 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : manage mounts to match the specified state] ******************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:132 TASK [storage : tell systemd to refresh its view of /etc/fstab] **************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:143 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [storage : Update facts] ************************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:153 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmpr6sk038f/tests/tests_disk_errors.yml:12 included: /tmp/tmpr6sk038f/tests/get_unused_disk.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [Find unused disks in the system] ***************************************** task path: /tmp/tmpr6sk038f/tests/get_unused_disk.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "disks": ["vdb"]} TASK [set_fact] **************************************************************** task path: /tmp/tmpr6sk038f/tests/get_unused_disk.yml:8 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"unused_disks": ["vdb"]}, "changed": false} TASK [Exit playbook when there's not enough unused disks in the system] ******** task path: /tmp/tmpr6sk038f/tests/get_unused_disk.yml:12 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Print unused disks] ****************************************************** task path: /tmp/tmpr6sk038f/tests/get_unused_disk.yml:17 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "unused_disks": [ "vdb" ] } TASK [Create a disk volume mounted at "/opt/test1"] **************************** task path: /tmp/tmpr6sk038f/tests/tests_disk_errors.yml:19 TASK [storage : Set version specific variables] ******************************** task path: /tmp/tmpr6sk038f/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/tmp/tmpr6sk038f/vars/Fedora.yml) => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-dm", "libblockdev-lvm", "libblockdev-part", "libblockdev-mdraid"]}, "ansible_included_var_files": ["/tmp/tmpr6sk038f/vars/Fedora.yml"], "ansible_loop_var": "item", "changed": false, "item": "/tmp/tmpr6sk038f/vars/Fedora.yml"} TASK [storage : define an empty list of pools to be used in testing] *********** task path: /tmp/tmpr6sk038f/tasks/main.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [storage : define an empty list of volumes to be used in testing] ********* task path: /tmp/tmpr6sk038f/tasks/main.yml:13 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : include the appropriate provider tasks] ************************ task path: /tmp/tmpr6sk038f/tasks/main.yml:17 included: /tmp/tmpr6sk038f/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [storage : get a list of rpm packages installed on host machine] ********** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [storage : make sure blivet is available] ********************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : initialize internal facts] ************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.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 [storage : Apply defaults to pools and volumes [1/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:28 TASK [storage : Apply defaults to pools and volumes [2/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:36 TASK [storage : Apply defaults to pools and volumes [3/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:44 TASK [storage : Apply defaults to pools and volumes [4/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:52 TASK [storage : Apply defaults to pools and volumes [5/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:61 TASK [storage : Apply defaults to pools and volumes [6/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:72 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'name': 'test1', 'type': 'disk', 'disks': ['/dev/surelyidonotexist'], 'mount_point': '/opt/test1'}) => {"ansible_facts": {"_storage_volumes": [{"disks": ["/dev/surelyidonotexist"], "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "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 [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools": [] } TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_volumes": [ { "disks": [ "/dev/surelyidonotexist" ], "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "size": 0, "state": "present", "type": "disk" } ] } TASK [storage : get required packages] ***************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": [], "mounts": [], "packages": ["xfsprogs"], "pools": [], "volumes": []} TASK [storage : make sure required packages are installed] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : manage the pools and volumes to match the specified state] ***** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:104 fatal: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2]: FAILED! => {"actions": [], "changed": false, "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/tmpr6sk038f/tests/tests_disk_errors.yml:34 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Try to create two volumes w/ the same name] ****************************** task path: /tmp/tmpr6sk038f/tests/tests_disk_errors.yml:53 TASK [storage : Set version specific variables] ******************************** task path: /tmp/tmpr6sk038f/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/tmp/tmpr6sk038f/vars/Fedora.yml) => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-dm", "libblockdev-lvm", "libblockdev-part", "libblockdev-mdraid"]}, "ansible_included_var_files": ["/tmp/tmpr6sk038f/vars/Fedora.yml"], "ansible_loop_var": "item", "changed": false, "item": "/tmp/tmpr6sk038f/vars/Fedora.yml"} TASK [storage : define an empty list of pools to be used in testing] *********** task path: /tmp/tmpr6sk038f/tasks/main.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [storage : define an empty list of volumes to be used in testing] ********* task path: /tmp/tmpr6sk038f/tasks/main.yml:13 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : include the appropriate provider tasks] ************************ task path: /tmp/tmpr6sk038f/tasks/main.yml:17 included: /tmp/tmpr6sk038f/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [storage : get a list of rpm packages installed on host machine] ********** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [storage : make sure blivet is available] ********************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : initialize internal facts] ************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.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 [storage : Apply defaults to pools and volumes [1/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:28 TASK [storage : Apply defaults to pools and volumes [2/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:36 TASK [storage : Apply defaults to pools and volumes [3/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:44 TASK [storage : Apply defaults to pools and volumes [4/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:52 TASK [storage : Apply defaults to pools and volumes [5/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:61 TASK [storage : Apply defaults to pools and volumes [6/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:72 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'name': 'vol1', 'type': 'disk', 'disks': ['vdb']}) => {"ansible_facts": {"_storage_volumes": [{"disks": ["vdb"], "fs_create_options": "", "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", "size": 0, "state": "present", "type": "disk"}]}, "ansible_loop_var": "volume", "changed": false, "volume": {"disks": ["vdb"], "name": "vol1", "type": "disk"}} ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'name': 'vol1', 'type': 'disk', 'disks': ['vdb']}) => {"ansible_facts": {"_storage_volumes": [{"disks": ["vdb"], "fs_create_options": "", "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", "size": 0, "state": "present", "type": "disk"}, {"disks": ["vdb"], "fs_create_options": "", "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", "size": 0, "state": "present", "type": "disk"}]}, "ansible_loop_var": "volume", "changed": false, "volume": {"disks": ["vdb"], "name": "vol1", "type": "disk"}} TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools": [] } TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_volumes": [ { "disks": [ "vdb" ], "fs_create_options": "", "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", "size": 0, "state": "present", "type": "disk" }, { "disks": [ "vdb" ], "fs_create_options": "", "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", "size": 0, "state": "present", "type": "disk" } ] } TASK [storage : get required packages] ***************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": [], "mounts": [], "packages": ["xfsprogs"], "pools": [], "volumes": []} TASK [storage : make sure required packages are installed] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : manage the pools and volumes to match the specified state] ***** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:104 fatal: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2]: FAILED! => {"actions": [], "changed": false, "leaves": [], "mounts": [], "msg": "multiple volumes with the same name: vol1", "packages": [], "pools": [], "volumes": []} TASK [Check that we failed in the role] **************************************** task path: /tmp/tmpr6sk038f/tests/tests_disk_errors.yml:70 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the output of the duplicate volumes test] ************************* task path: /tmp/tmpr6sk038f/tests/tests_disk_errors.yml:79 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Create a file system on disk] ******************************************** task path: /tmp/tmpr6sk038f/tests/tests_disk_errors.yml:86 TASK [storage : Set version specific variables] ******************************** task path: /tmp/tmpr6sk038f/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/tmp/tmpr6sk038f/vars/Fedora.yml) => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-dm", "libblockdev-lvm", "libblockdev-part", "libblockdev-mdraid"]}, "ansible_included_var_files": ["/tmp/tmpr6sk038f/vars/Fedora.yml"], "ansible_loop_var": "item", "changed": false, "item": "/tmp/tmpr6sk038f/vars/Fedora.yml"} TASK [storage : define an empty list of pools to be used in testing] *********** task path: /tmp/tmpr6sk038f/tasks/main.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [storage : define an empty list of volumes to be used in testing] ********* task path: /tmp/tmpr6sk038f/tasks/main.yml:13 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : include the appropriate provider tasks] ************************ task path: /tmp/tmpr6sk038f/tasks/main.yml:17 included: /tmp/tmpr6sk038f/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [storage : get a list of rpm packages installed on host machine] ********** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [storage : make sure blivet is available] ********************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : initialize internal facts] ************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.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 [storage : Apply defaults to pools and volumes [1/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:28 TASK [storage : Apply defaults to pools and volumes [2/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:36 TASK [storage : Apply defaults to pools and volumes [3/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:44 TASK [storage : Apply defaults to pools and volumes [4/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:52 TASK [storage : Apply defaults to pools and volumes [5/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:61 TASK [storage : Apply defaults to pools and volumes [6/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:72 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'name': 'test1', 'type': 'disk', 'fs_type': 'ext4', 'disks': ['vdb'], 'mount_point': '/opt/test1'}) => {"ansible_facts": {"_storage_volumes": [{"disks": ["vdb"], "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", "size": 0, "state": "present", "type": "disk"}]}, "ansible_loop_var": "volume", "changed": false, "volume": {"disks": ["vdb"], "fs_type": "ext4", "mount_point": "/opt/test1", "name": "test1", "type": "disk"}} TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools": [] } TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_volumes": [ { "disks": [ "vdb" ], "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", "size": 0, "state": "present", "type": "disk" } ] } TASK [storage : get required packages] ***************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": [], "mounts": [], "packages": ["e2fsprogs"], "pools": [], "volumes": []} TASK [storage : make sure required packages are installed] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : manage the pools and volumes to match the specified state] ***** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:104 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [{"action": "create format", "device": "/dev/vdb", "fs_type": "ext4"}], "changed": true, "leaves": ["/dev/sr0", "/dev/vda1", "/dev/vdb", "/dev/vdc"], "mounts": [{"dump": 0, "fstype": "ext4", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "/dev/vdb", "state": "mounted"}], "packages": ["e2fsprogs"], "pools": [], "volumes": [{"_device": "/dev/vdb", "_mount_id": "/dev/vdb", "disks": ["vdb"], "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", "size": 0, "state": "present", "type": "disk"}]} TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:113 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "blivet_output": { "actions": [ { "action": "create format", "device": "/dev/vdb", "fs_type": "ext4" } ], "changed": true, "failed": false, "leaves": [ "/dev/sr0", "/dev/vda1", "/dev/vdb", "/dev/vdc" ], "mounts": [ { "dump": 0, "fstype": "ext4", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "/dev/vdb", "state": "mounted" } ], "packages": [ "e2fsprogs" ], "pools": [], "volumes": [ { "_device": "/dev/vdb", "_mount_id": "/dev/vdb", "disks": [ "vdb" ], "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", "size": 0, "state": "present", "type": "disk" } ] } } TASK [storage : set the list of pools for test verification] ******************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:116 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [storage : set the list of volumes for test verification] ***************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:120 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": [{"_device": "/dev/vdb", "_mount_id": "/dev/vdb", "disks": ["vdb"], "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", "size": 0, "state": "present", "type": "disk"}]}, "changed": false} TASK [storage : manage mounts to match the specified state] ******************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:132 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'src': '/dev/vdb', 'path': '/opt/test1', 'fstype': 'ext4', 'opts': 'defaults', 'dump': 0, 'passno': 0, 'state': 'mounted'}) => {"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/vdb", "state": "mounted"}, "name": "/opt/test1", "opts": "defaults", "passno": "0", "src": "/dev/vdb"} TASK [storage : tell systemd to refresh its view of /etc/fstab] **************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:143 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [storage : Update facts] ************************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:153 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] TASK [create a file] *********************************************************** task path: /tmp/tmpr6sk038f/tests/tests_disk_errors.yml:97 changed: [/cache/Fedora-Cloud-Base-30-1.2.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/tmpr6sk038f/tests/tests_disk_errors.yml:104 TASK [storage : Set version specific variables] ******************************** task path: /tmp/tmpr6sk038f/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/tmp/tmpr6sk038f/vars/Fedora.yml) => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-dm", "libblockdev-lvm", "libblockdev-part", "libblockdev-mdraid"]}, "ansible_included_var_files": ["/tmp/tmpr6sk038f/vars/Fedora.yml"], "ansible_loop_var": "item", "changed": false, "item": "/tmp/tmpr6sk038f/vars/Fedora.yml"} TASK [storage : define an empty list of pools to be used in testing] *********** task path: /tmp/tmpr6sk038f/tasks/main.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [storage : define an empty list of volumes to be used in testing] ********* task path: /tmp/tmpr6sk038f/tasks/main.yml:13 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : include the appropriate provider tasks] ************************ task path: /tmp/tmpr6sk038f/tasks/main.yml:17 included: /tmp/tmpr6sk038f/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [storage : get a list of rpm packages installed on host machine] ********** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [storage : make sure blivet is available] ********************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : initialize internal facts] ************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.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 [storage : Apply defaults to pools and volumes [1/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:28 TASK [storage : Apply defaults to pools and volumes [2/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:36 TASK [storage : Apply defaults to pools and volumes [3/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:44 TASK [storage : Apply defaults to pools and volumes [4/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:52 TASK [storage : Apply defaults to pools and volumes [5/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:61 TASK [storage : Apply defaults to pools and volumes [6/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:72 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'name': 'test1', 'type': 'disk', 'fs_type': 'ext3', 'disks': ['vdb']}) => {"ansible_facts": {"_storage_volumes": [{"disks": ["vdb"], "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", "size": 0, "state": "present", "type": "disk"}]}, "ansible_loop_var": "volume", "changed": false, "volume": {"disks": ["vdb"], "fs_type": "ext3", "name": "test1", "type": "disk"}} TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools": [] } TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_volumes": [ { "disks": [ "vdb" ], "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", "size": 0, "state": "present", "type": "disk" } ] } TASK [storage : get required packages] ***************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": [], "mounts": [], "packages": ["e2fsprogs"], "pools": [], "volumes": []} TASK [storage : make sure required packages are installed] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : manage the pools and volumes to match the specified state] ***** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:104 fatal: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2]: FAILED! => {"actions": [], "changed": false, "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/tmpr6sk038f/tests/tests_disk_errors.yml:119 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the output] ******************************************************* task path: /tmp/tmpr6sk038f/tests/tests_disk_errors.yml:125 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Unmount file system] ***************************************************** task path: /tmp/tmpr6sk038f/tests/tests_disk_errors.yml:132 TASK [storage : Set version specific variables] ******************************** task path: /tmp/tmpr6sk038f/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/tmp/tmpr6sk038f/vars/Fedora.yml) => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-dm", "libblockdev-lvm", "libblockdev-part", "libblockdev-mdraid"]}, "ansible_included_var_files": ["/tmp/tmpr6sk038f/vars/Fedora.yml"], "ansible_loop_var": "item", "changed": false, "item": "/tmp/tmpr6sk038f/vars/Fedora.yml"} TASK [storage : define an empty list of pools to be used in testing] *********** task path: /tmp/tmpr6sk038f/tasks/main.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [storage : define an empty list of volumes to be used in testing] ********* task path: /tmp/tmpr6sk038f/tasks/main.yml:13 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : include the appropriate provider tasks] ************************ task path: /tmp/tmpr6sk038f/tasks/main.yml:17 included: /tmp/tmpr6sk038f/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [storage : get a list of rpm packages installed on host machine] ********** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [storage : make sure blivet is available] ********************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : initialize internal facts] ************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.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 [storage : Apply defaults to pools and volumes [1/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:28 TASK [storage : Apply defaults to pools and volumes [2/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:36 TASK [storage : Apply defaults to pools and volumes [3/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:44 TASK [storage : Apply defaults to pools and volumes [4/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:52 TASK [storage : Apply defaults to pools and volumes [5/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:61 TASK [storage : Apply defaults to pools and volumes [6/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:72 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'name': 'test1', 'type': 'disk', 'fs_type': 'ext4', 'disks': ['vdb'], 'mount_point': 'none'}) => {"ansible_facts": {"_storage_volumes": [{"disks": ["vdb"], "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", "size": 0, "state": "present", "type": "disk"}]}, "ansible_loop_var": "volume", "changed": false, "volume": {"disks": ["vdb"], "fs_type": "ext4", "mount_point": "none", "name": "test1", "type": "disk"}} TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools": [] } TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_volumes": [ { "disks": [ "vdb" ], "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", "size": 0, "state": "present", "type": "disk" } ] } TASK [storage : get required packages] ***************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": [], "mounts": [], "packages": ["e2fsprogs"], "pools": [], "volumes": []} TASK [storage : make sure required packages are installed] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : manage the pools and volumes to match the specified state] ***** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:104 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": ["/dev/sr0", "/dev/vda1", "/dev/vdb", "/dev/vdc"], "mounts": [{"path": "/opt/test1", "state": "absent"}, {"dump": 0, "fstype": "ext4", "opts": "defaults", "passno": 0, "path": "none", "src": "UUID=0daf52ac-fa32-4949-907c-8753346ebf48", "state": "mounted"}], "packages": ["e2fsprogs"], "pools": [], "volumes": [{"_device": "/dev/vdb", "_mount_id": "UUID=0daf52ac-fa32-4949-907c-8753346ebf48", "disks": ["vdb"], "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", "size": 0, "state": "present", "type": "disk"}]} TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:113 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "blivet_output": { "actions": [], "changed": false, "failed": false, "leaves": [ "/dev/sr0", "/dev/vda1", "/dev/vdb", "/dev/vdc" ], "mounts": [ { "path": "/opt/test1", "state": "absent" }, { "dump": 0, "fstype": "ext4", "opts": "defaults", "passno": 0, "path": "none", "src": "UUID=0daf52ac-fa32-4949-907c-8753346ebf48", "state": "mounted" } ], "packages": [ "e2fsprogs" ], "pools": [], "volumes": [ { "_device": "/dev/vdb", "_mount_id": "UUID=0daf52ac-fa32-4949-907c-8753346ebf48", "disks": [ "vdb" ], "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", "size": 0, "state": "present", "type": "disk" } ] } } TASK [storage : set the list of pools for test verification] ******************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:116 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [storage : set the list of volumes for test verification] ***************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:120 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": [{"_device": "/dev/vdb", "_mount_id": "UUID=0daf52ac-fa32-4949-907c-8753346ebf48", "disks": ["vdb"], "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", "size": 0, "state": "present", "type": "disk"}]}, "changed": false} TASK [storage : manage mounts to match the specified state] ******************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:132 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'path': '/opt/test1', 'state': '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"} changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'src': 'UUID=0daf52ac-fa32-4949-907c-8753346ebf48', 'path': 'none', 'fstype': 'ext4', 'opts': 'defaults', 'dump': 0, 'passno': 0, 'state': 'mounted'}) => {"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": "none", "src": "UUID=0daf52ac-fa32-4949-907c-8753346ebf48", "state": "mounted"}, "name": "none", "opts": "defaults", "passno": "0", "src": "UUID=0daf52ac-fa32-4949-907c-8753346ebf48"} TASK [storage : tell systemd to refresh its view of /etc/fstab] **************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:143 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [storage : Update facts] ************************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:153 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] TASK [Try to replace the file system on disk in safe mode] ********************* task path: /tmp/tmpr6sk038f/tests/tests_disk_errors.yml:145 TASK [storage : Set version specific variables] ******************************** task path: /tmp/tmpr6sk038f/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/tmp/tmpr6sk038f/vars/Fedora.yml) => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-dm", "libblockdev-lvm", "libblockdev-part", "libblockdev-mdraid"]}, "ansible_included_var_files": ["/tmp/tmpr6sk038f/vars/Fedora.yml"], "ansible_loop_var": "item", "changed": false, "item": "/tmp/tmpr6sk038f/vars/Fedora.yml"} TASK [storage : define an empty list of pools to be used in testing] *********** task path: /tmp/tmpr6sk038f/tasks/main.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [storage : define an empty list of volumes to be used in testing] ********* task path: /tmp/tmpr6sk038f/tasks/main.yml:13 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : include the appropriate provider tasks] ************************ task path: /tmp/tmpr6sk038f/tasks/main.yml:17 included: /tmp/tmpr6sk038f/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [storage : get a list of rpm packages installed on host machine] ********** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [storage : make sure blivet is available] ********************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : initialize internal facts] ************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.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 [storage : Apply defaults to pools and volumes [1/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:28 TASK [storage : Apply defaults to pools and volumes [2/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:36 TASK [storage : Apply defaults to pools and volumes [3/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:44 TASK [storage : Apply defaults to pools and volumes [4/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:52 TASK [storage : Apply defaults to pools and volumes [5/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:61 TASK [storage : Apply defaults to pools and volumes [6/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:72 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'name': 'test1', 'type': 'disk', 'fs_type': 'ext3', 'disks': ['vdb']}) => {"ansible_facts": {"_storage_volumes": [{"disks": ["vdb"], "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", "size": 0, "state": "present", "type": "disk"}]}, "ansible_loop_var": "volume", "changed": false, "volume": {"disks": ["vdb"], "fs_type": "ext3", "name": "test1", "type": "disk"}} TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools": [] } TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_volumes": [ { "disks": [ "vdb" ], "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", "size": 0, "state": "present", "type": "disk" } ] } TASK [storage : get required packages] ***************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": [], "mounts": [], "packages": ["e2fsprogs"], "pools": [], "volumes": []} TASK [storage : make sure required packages are installed] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : manage the pools and volumes to match the specified state] ***** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:104 fatal: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2]: FAILED! => {"actions": [], "changed": false, "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/tmpr6sk038f/tests/tests_disk_errors.yml:160 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the output] ******************************************************* task path: /tmp/tmpr6sk038f/tests/tests_disk_errors.yml:166 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Remount file system] ***************************************************** task path: /tmp/tmpr6sk038f/tests/tests_disk_errors.yml:173 TASK [storage : Set version specific variables] ******************************** task path: /tmp/tmpr6sk038f/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/tmp/tmpr6sk038f/vars/Fedora.yml) => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-dm", "libblockdev-lvm", "libblockdev-part", "libblockdev-mdraid"]}, "ansible_included_var_files": ["/tmp/tmpr6sk038f/vars/Fedora.yml"], "ansible_loop_var": "item", "changed": false, "item": "/tmp/tmpr6sk038f/vars/Fedora.yml"} TASK [storage : define an empty list of pools to be used in testing] *********** task path: /tmp/tmpr6sk038f/tasks/main.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [storage : define an empty list of volumes to be used in testing] ********* task path: /tmp/tmpr6sk038f/tasks/main.yml:13 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : include the appropriate provider tasks] ************************ task path: /tmp/tmpr6sk038f/tasks/main.yml:17 included: /tmp/tmpr6sk038f/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [storage : get a list of rpm packages installed on host machine] ********** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [storage : make sure blivet is available] ********************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : initialize internal facts] ************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.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 [storage : Apply defaults to pools and volumes [1/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:28 TASK [storage : Apply defaults to pools and volumes [2/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:36 TASK [storage : Apply defaults to pools and volumes [3/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:44 TASK [storage : Apply defaults to pools and volumes [4/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:52 TASK [storage : Apply defaults to pools and volumes [5/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:61 TASK [storage : Apply defaults to pools and volumes [6/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:72 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'name': 'test1', 'type': 'disk', 'fs_type': 'ext4', 'disks': ['vdb'], 'mount_point': '/opt/test1'}) => {"ansible_facts": {"_storage_volumes": [{"disks": ["vdb"], "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", "size": 0, "state": "present", "type": "disk"}]}, "ansible_loop_var": "volume", "changed": false, "volume": {"disks": ["vdb"], "fs_type": "ext4", "mount_point": "/opt/test1", "name": "test1", "type": "disk"}} TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools": [] } TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_volumes": [ { "disks": [ "vdb" ], "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", "size": 0, "state": "present", "type": "disk" } ] } TASK [storage : get required packages] ***************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": [], "mounts": [], "packages": ["e2fsprogs"], "pools": [], "volumes": []} TASK [storage : make sure required packages are installed] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : manage the pools and volumes to match the specified state] ***** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:104 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": ["/dev/sr0", "/dev/vda1", "/dev/vdb", "/dev/vdc"], "mounts": [{"path": "none", "state": "absent"}, {"dump": 0, "fstype": "ext4", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "UUID=0daf52ac-fa32-4949-907c-8753346ebf48", "state": "mounted"}], "packages": ["e2fsprogs"], "pools": [], "volumes": [{"_device": "/dev/vdb", "_mount_id": "UUID=0daf52ac-fa32-4949-907c-8753346ebf48", "disks": ["vdb"], "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", "size": 0, "state": "present", "type": "disk"}]} TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:113 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "blivet_output": { "actions": [], "changed": false, "failed": false, "leaves": [ "/dev/sr0", "/dev/vda1", "/dev/vdb", "/dev/vdc" ], "mounts": [ { "path": "none", "state": "absent" }, { "dump": 0, "fstype": "ext4", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "UUID=0daf52ac-fa32-4949-907c-8753346ebf48", "state": "mounted" } ], "packages": [ "e2fsprogs" ], "pools": [], "volumes": [ { "_device": "/dev/vdb", "_mount_id": "UUID=0daf52ac-fa32-4949-907c-8753346ebf48", "disks": [ "vdb" ], "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", "size": 0, "state": "present", "type": "disk" } ] } } TASK [storage : set the list of pools for test verification] ******************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:116 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [storage : set the list of volumes for test verification] ***************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:120 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": [{"_device": "/dev/vdb", "_mount_id": "UUID=0daf52ac-fa32-4949-907c-8753346ebf48", "disks": ["vdb"], "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", "size": 0, "state": "present", "type": "disk"}]}, "changed": false} TASK [storage : manage mounts to match the specified state] ******************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:132 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'path': 'none', 'state': 'absent'}) => {"ansible_loop_var": "mount_info", "changed": true, "dump": "0", "fstab": "/etc/fstab", "mount_info": {"path": "none", "state": "absent"}, "name": "none", "opts": "defaults", "passno": "0"} changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'src': 'UUID=0daf52ac-fa32-4949-907c-8753346ebf48', 'path': '/opt/test1', 'fstype': 'ext4', 'opts': 'defaults', 'dump': 0, 'passno': 0, 'state': 'mounted'}) => {"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=0daf52ac-fa32-4949-907c-8753346ebf48", "state": "mounted"}, "name": "/opt/test1", "opts": "defaults", "passno": "0", "src": "UUID=0daf52ac-fa32-4949-907c-8753346ebf48"} TASK [storage : tell systemd to refresh its view of /etc/fstab] **************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:143 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [storage : Update facts] ************************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:153 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] TASK [stat the file] *********************************************************** task path: /tmp/tmpr6sk038f/tests/tests_disk_errors.yml:184 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "stat": {"atime": 1590586107.228176, "attr_flags": "e", "attributes": ["extents"], "block_size": 4096, "blocks": 0, "charset": "binary", "checksum": "da39a3ee5e6b4b0d3255bfef95601890afd80709", "ctime": 1590586107.228176, "dev": 64528, "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": 1590586107.228176, "nlink": 1, "path": "/opt/test1/quux", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 0, "uid": 0, "version": "3719131292", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}} TASK [assert file presence] **************************************************** task path: /tmp/tmpr6sk038f/tests/tests_disk_errors.yml:189 ok: [/cache/Fedora-Cloud-Base-30-1.2.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/tmpr6sk038f/tests/tests_disk_errors.yml:197 TASK [storage : Set version specific variables] ******************************** task path: /tmp/tmpr6sk038f/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/tmp/tmpr6sk038f/vars/Fedora.yml) => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-dm", "libblockdev-lvm", "libblockdev-part", "libblockdev-mdraid"]}, "ansible_included_var_files": ["/tmp/tmpr6sk038f/vars/Fedora.yml"], "ansible_loop_var": "item", "changed": false, "item": "/tmp/tmpr6sk038f/vars/Fedora.yml"} TASK [storage : define an empty list of pools to be used in testing] *********** task path: /tmp/tmpr6sk038f/tasks/main.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [storage : define an empty list of volumes to be used in testing] ********* task path: /tmp/tmpr6sk038f/tasks/main.yml:13 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : include the appropriate provider tasks] ************************ task path: /tmp/tmpr6sk038f/tasks/main.yml:17 included: /tmp/tmpr6sk038f/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [storage : get a list of rpm packages installed on host machine] ********** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [storage : make sure blivet is available] ********************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : initialize internal facts] ************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.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 [storage : Apply defaults to pools and volumes [1/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:28 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'name': 'foo', 'disks': ['vdb'], 'type': 'partition'}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vdb"], "name": "foo", "state": "present", "type": "partition"}]}, "ansible_loop_var": "pool", "changed": false, "pool": {"disks": ["vdb"], "name": "foo", "type": "partition"}} TASK [storage : Apply defaults to pools and volumes [2/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:36 TASK [storage : Apply defaults to pools and volumes [3/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:44 TASK [storage : Apply defaults to pools and volumes [4/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:52 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'partition', 'name': 'foo', 'disks': ['vdb']}) => {"ansible_facts": {"_storage_vols_no_defaults_by_pool": {"foo": []}}, "ansible_loop_var": "item", "changed": false, "item": {"disks": ["vdb"], "name": "foo", "state": "present", "type": "partition"}} TASK [storage : Apply defaults to pools and volumes [5/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:61 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'partition', 'name': 'foo', 'disks': ['vdb']}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vdb"], "name": "foo", "state": "present", "type": "partition", "volumes": []}]}, "ansible_index_var": "idx", "ansible_loop_var": "pool", "changed": false, "idx": 0, "pool": {"disks": ["vdb"], "name": "foo", "state": "present", "type": "partition"}} TASK [storage : Apply defaults to pools and volumes [6/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:72 TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools": [ { "disks": [ "vdb" ], "name": "foo", "state": "present", "type": "partition", "volumes": [] } ] } TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_volumes": [] } TASK [storage : get required packages] ***************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": []} TASK [storage : make sure required packages are installed] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : manage the pools and volumes to match the specified state] ***** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:104 fatal: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2]: FAILED! => {"actions": [], "changed": false, "leaves": [], "mounts": [], "msg": "cannot remove existing formatting and/or devices on disk 'vdb' (pool 'foo') in safe mode", "packages": [], "pools": [], "volumes": []} TASK [Check that we failed in the role] **************************************** task path: /tmp/tmpr6sk038f/tests/tests_disk_errors.yml:211 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the output] ******************************************************* task path: /tmp/tmpr6sk038f/tests/tests_disk_errors.yml:217 ok: [/cache/Fedora-Cloud-Base-30-1.2.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/tmpr6sk038f/tests/tests_disk_errors.yml:226 TASK [storage : Set version specific variables] ******************************** task path: /tmp/tmpr6sk038f/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/tmp/tmpr6sk038f/vars/Fedora.yml) => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-dm", "libblockdev-lvm", "libblockdev-part", "libblockdev-mdraid"]}, "ansible_included_var_files": ["/tmp/tmpr6sk038f/vars/Fedora.yml"], "ansible_loop_var": "item", "changed": false, "item": "/tmp/tmpr6sk038f/vars/Fedora.yml"} TASK [storage : define an empty list of pools to be used in testing] *********** task path: /tmp/tmpr6sk038f/tasks/main.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [storage : define an empty list of volumes to be used in testing] ********* task path: /tmp/tmpr6sk038f/tasks/main.yml:13 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : include the appropriate provider tasks] ************************ task path: /tmp/tmpr6sk038f/tasks/main.yml:17 included: /tmp/tmpr6sk038f/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [storage : get a list of rpm packages installed on host machine] ********** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [storage : make sure blivet is available] ********************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : initialize internal facts] ************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.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 [storage : Apply defaults to pools and volumes [1/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:28 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'name': 'foo', 'disks': ['vdb'], 'type': 'lvm'}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vdb"], "name": "foo", "state": "present", "type": "lvm"}]}, "ansible_loop_var": "pool", "changed": false, "pool": {"disks": ["vdb"], "name": "foo", "type": "lvm"}} TASK [storage : Apply defaults to pools and volumes [2/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:36 TASK [storage : Apply defaults to pools and volumes [3/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:44 TASK [storage : Apply defaults to pools and volumes [4/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:52 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'name': 'foo', 'disks': ['vdb']}) => {"ansible_facts": {"_storage_vols_no_defaults_by_pool": {"foo": []}}, "ansible_loop_var": "item", "changed": false, "item": {"disks": ["vdb"], "name": "foo", "state": "present", "type": "lvm"}} TASK [storage : Apply defaults to pools and volumes [5/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:61 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'name': 'foo', 'disks': ['vdb']}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vdb"], "name": "foo", "state": "present", "type": "lvm", "volumes": []}]}, "ansible_index_var": "idx", "ansible_loop_var": "pool", "changed": false, "idx": 0, "pool": {"disks": ["vdb"], "name": "foo", "state": "present", "type": "lvm"}} TASK [storage : Apply defaults to pools and volumes [6/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:72 TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools": [ { "disks": [ "vdb" ], "name": "foo", "state": "present", "type": "lvm", "volumes": [] } ] } TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_volumes": [] } TASK [storage : get required packages] ***************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": [], "mounts": [], "packages": ["lvm2"], "pools": [], "volumes": []} TASK [storage : make sure required packages are installed] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : manage the pools and volumes to match the specified state] ***** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:104 fatal: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2]: FAILED! => {"actions": [], "changed": false, "leaves": [], "mounts": [], "msg": "cannot remove existing formatting and/or devices on disk 'vdb' (pool 'foo') in safe mode", "packages": [], "pools": [], "volumes": []} TASK [Check that we failed in the role] **************************************** task path: /tmp/tmpr6sk038f/tests/tests_disk_errors.yml:240 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the output] ******************************************************* task path: /tmp/tmpr6sk038f/tests/tests_disk_errors.yml:246 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [stat the file] *********************************************************** task path: /tmp/tmpr6sk038f/tests/tests_disk_errors.yml:253 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "stat": {"atime": 1590586147.659176, "attr_flags": "e", "attributes": ["extents"], "block_size": 4096, "blocks": 0, "charset": "binary", "checksum": "da39a3ee5e6b4b0d3255bfef95601890afd80709", "ctime": 1590586107.228176, "dev": 64528, "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": 1590586107.228176, "nlink": 1, "path": "/opt/test1/quux", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 0, "uid": 0, "version": "3719131292", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false}} TASK [assert file presence] **************************************************** task path: /tmp/tmpr6sk038f/tests/tests_disk_errors.yml:258 ok: [/cache/Fedora-Cloud-Base-30-1.2.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/tmpr6sk038f/tests/tests_disk_errors.yml:264 TASK [storage : Set version specific variables] ******************************** task path: /tmp/tmpr6sk038f/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/tmp/tmpr6sk038f/vars/Fedora.yml) => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-dm", "libblockdev-lvm", "libblockdev-part", "libblockdev-mdraid"]}, "ansible_included_var_files": ["/tmp/tmpr6sk038f/vars/Fedora.yml"], "ansible_loop_var": "item", "changed": false, "item": "/tmp/tmpr6sk038f/vars/Fedora.yml"} TASK [storage : define an empty list of pools to be used in testing] *********** task path: /tmp/tmpr6sk038f/tasks/main.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [storage : define an empty list of volumes to be used in testing] ********* task path: /tmp/tmpr6sk038f/tasks/main.yml:13 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : include the appropriate provider tasks] ************************ task path: /tmp/tmpr6sk038f/tasks/main.yml:17 included: /tmp/tmpr6sk038f/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [storage : get a list of rpm packages installed on host machine] ********** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [storage : make sure blivet is available] ********************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : initialize internal facts] ************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.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 [storage : Apply defaults to pools and volumes [1/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:28 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'name': 'foo', 'disks': ['vdb'], 'type': 'partition'}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vdb"], "name": "foo", "state": "present", "type": "partition"}]}, "ansible_loop_var": "pool", "changed": false, "pool": {"disks": ["vdb"], "name": "foo", "type": "partition"}} TASK [storage : Apply defaults to pools and volumes [2/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:36 TASK [storage : Apply defaults to pools and volumes [3/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:44 TASK [storage : Apply defaults to pools and volumes [4/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:52 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'partition', 'name': 'foo', 'disks': ['vdb']}) => {"ansible_facts": {"_storage_vols_no_defaults_by_pool": {"foo": []}}, "ansible_loop_var": "item", "changed": false, "item": {"disks": ["vdb"], "name": "foo", "state": "present", "type": "partition"}} TASK [storage : Apply defaults to pools and volumes [5/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:61 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'partition', 'name': 'foo', 'disks': ['vdb']}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vdb"], "name": "foo", "state": "present", "type": "partition", "volumes": []}]}, "ansible_index_var": "idx", "ansible_loop_var": "pool", "changed": false, "idx": 0, "pool": {"disks": ["vdb"], "name": "foo", "state": "present", "type": "partition"}} TASK [storage : Apply defaults to pools and volumes [6/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:72 TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools": [ { "disks": [ "vdb" ], "name": "foo", "state": "present", "type": "partition", "volumes": [] } ] } TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_volumes": [] } TASK [storage : get required packages] ***************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": []} TASK [storage : make sure required packages are installed] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : manage the pools and volumes to match the specified state] ***** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:104 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [{"action": "destroy format", "device": "/dev/vdb", "fs_type": "ext4"}, {"action": "create format", "device": "/dev/vdb", "fs_type": "disklabel"}], "changed": true, "leaves": ["/dev/sr0", "/dev/vda1", "/dev/vdb", "/dev/vdc"], "mounts": [{"path": "/opt/test1", "state": "absent"}], "packages": ["e2fsprogs"], "pools": [{"disks": ["vdb"], "name": "foo", "state": "present", "type": "partition", "volumes": []}], "volumes": []} TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:113 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "blivet_output": { "actions": [ { "action": "destroy format", "device": "/dev/vdb", "fs_type": "ext4" }, { "action": "create format", "device": "/dev/vdb", "fs_type": "disklabel" } ], "changed": true, "failed": false, "leaves": [ "/dev/sr0", "/dev/vda1", "/dev/vdb", "/dev/vdc" ], "mounts": [ { "path": "/opt/test1", "state": "absent" } ], "packages": [ "e2fsprogs" ], "pools": [ { "disks": [ "vdb" ], "name": "foo", "state": "present", "type": "partition", "volumes": [] } ], "volumes": [] } } TASK [storage : set the list of pools for test verification] ******************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:116 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": [{"disks": ["vdb"], "name": "foo", "state": "present", "type": "partition", "volumes": []}]}, "changed": false} TASK [storage : set the list of volumes for test verification] ***************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:120 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : manage mounts to match the specified state] ******************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:132 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'path': '/opt/test1', 'state': '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 [storage : tell systemd to refresh its view of /etc/fstab] **************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:143 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [storage : Update facts] ************************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:153 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] TASK [Verify the output] ******************************************************* task path: /tmp/tmpr6sk038f/tests/tests_disk_errors.yml:274 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up] **************************************************************** task path: /tmp/tmpr6sk038f/tests/tests_disk_errors.yml:279 TASK [storage : Set version specific variables] ******************************** task path: /tmp/tmpr6sk038f/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/tmp/tmpr6sk038f/vars/Fedora.yml) => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-dm", "libblockdev-lvm", "libblockdev-part", "libblockdev-mdraid"]}, "ansible_included_var_files": ["/tmp/tmpr6sk038f/vars/Fedora.yml"], "ansible_loop_var": "item", "changed": false, "item": "/tmp/tmpr6sk038f/vars/Fedora.yml"} TASK [storage : define an empty list of pools to be used in testing] *********** task path: /tmp/tmpr6sk038f/tasks/main.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [storage : define an empty list of volumes to be used in testing] ********* task path: /tmp/tmpr6sk038f/tasks/main.yml:13 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : include the appropriate provider tasks] ************************ task path: /tmp/tmpr6sk038f/tasks/main.yml:17 included: /tmp/tmpr6sk038f/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [storage : get a list of rpm packages installed on host machine] ********** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [storage : make sure blivet is available] ********************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : initialize internal facts] ************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.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 [storage : Apply defaults to pools and volumes [1/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:28 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'name': 'foo', 'type': 'partition', 'disks': ['vdb'], 'state': 'absent'}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vdb"], "name": "foo", "state": "absent", "type": "partition"}]}, "ansible_loop_var": "pool", "changed": false, "pool": {"disks": ["vdb"], "name": "foo", "state": "absent", "type": "partition"}} TASK [storage : Apply defaults to pools and volumes [2/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:36 TASK [storage : Apply defaults to pools and volumes [3/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:44 TASK [storage : Apply defaults to pools and volumes [4/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:52 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'absent', 'type': 'partition', 'name': 'foo', 'disks': ['vdb']}) => {"ansible_facts": {"_storage_vols_no_defaults_by_pool": {"foo": []}}, "ansible_loop_var": "item", "changed": false, "item": {"disks": ["vdb"], "name": "foo", "state": "absent", "type": "partition"}} TASK [storage : Apply defaults to pools and volumes [5/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:61 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'absent', 'type': 'partition', 'name': 'foo', 'disks': ['vdb']}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vdb"], "name": "foo", "state": "absent", "type": "partition", "volumes": []}]}, "ansible_index_var": "idx", "ansible_loop_var": "pool", "changed": false, "idx": 0, "pool": {"disks": ["vdb"], "name": "foo", "state": "absent", "type": "partition"}} TASK [storage : Apply defaults to pools and volumes [6/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:72 TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools": [ { "disks": [ "vdb" ], "name": "foo", "state": "absent", "type": "partition", "volumes": [] } ] } TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_volumes": [] } TASK [storage : get required packages] ***************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": []} TASK [storage : make sure required packages are installed] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : manage the pools and volumes to match the specified state] ***** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:104 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [{"action": "destroy format", "device": "/dev/vdb", "fs_type": "disklabel"}], "changed": true, "leaves": ["/dev/sr0", "/dev/vda1", "/dev/vdb", "/dev/vdc"], "mounts": [], "packages": ["e2fsprogs"], "pools": [{"disks": ["vdb"], "name": "foo", "state": "absent", "type": "partition", "volumes": []}], "volumes": []} TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:113 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "blivet_output": { "actions": [ { "action": "destroy format", "device": "/dev/vdb", "fs_type": "disklabel" } ], "changed": true, "failed": false, "leaves": [ "/dev/sr0", "/dev/vda1", "/dev/vdb", "/dev/vdc" ], "mounts": [], "packages": [ "e2fsprogs" ], "pools": [ { "disks": [ "vdb" ], "name": "foo", "state": "absent", "type": "partition", "volumes": [] } ], "volumes": [] } } TASK [storage : set the list of pools for test verification] ******************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:116 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": [{"disks": ["vdb"], "name": "foo", "state": "absent", "type": "partition", "volumes": []}]}, "changed": false} TASK [storage : set the list of volumes for test verification] ***************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:120 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : manage mounts to match the specified state] ******************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:132 TASK [storage : tell systemd to refresh its view of /etc/fstab] **************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:143 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [storage : Update facts] ************************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:153 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 : ok=200 changed=9 unreachable=0 failed=0 skipped=71 rescued=6 ignored=0 + cd /tmp/tmpr6sk038f/tests; TEST_SUBJECTS=/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_storage-91-a6b7623-fedora-30-97_lk9m2/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmpr6sk038f/_setup.yml /tmp/tmpr6sk038f/tests/tests_fatals_raid_pool.yml ansible-playbook 2.9.9 config file = /etc/ansible/ansible.cfg configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.8/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 3.8.2 (default, Feb 28 2020, 00:00:00) [GCC 10.0.1 20200216 (Red Hat 10.0.1-0.8)] Using /etc/ansible/ansible.cfg as config file PLAYBOOK: _setup.yml *********************************************************** 1 plays in /tmp/tmpr6sk038f/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmpr6sk038f/_setup.yml:5 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "groups": { "all": [ "/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2" ], "localhost": [ "/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2" ], "subjects": [ "/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmpr6sk038f/_setup.yml:7 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/Fedora-Cloud-Base-30-1.2.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/tmpr6sk038f/tests/tests_fatals_raid_pool.yml PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpr6sk038f/tests/tests_fatals_raid_pool.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] META: ran handlers TASK [include_role : storage] ************************************************** task path: /tmp/tmpr6sk038f/tests/tests_fatals_raid_pool.yml:15 TASK [storage : Set version specific variables] ******************************** task path: /tmp/tmpr6sk038f/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/tmp/tmpr6sk038f/vars/Fedora.yml) => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-dm", "libblockdev-lvm", "libblockdev-part", "libblockdev-mdraid"]}, "ansible_included_var_files": ["/tmp/tmpr6sk038f/vars/Fedora.yml"], "ansible_loop_var": "item", "changed": false, "item": "/tmp/tmpr6sk038f/vars/Fedora.yml"} TASK [storage : define an empty list of pools to be used in testing] *********** task path: /tmp/tmpr6sk038f/tasks/main.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [storage : define an empty list of volumes to be used in testing] ********* task path: /tmp/tmpr6sk038f/tasks/main.yml:13 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : include the appropriate provider tasks] ************************ task path: /tmp/tmpr6sk038f/tasks/main.yml:17 included: /tmp/tmpr6sk038f/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [storage : get a list of rpm packages installed on host machine] ********** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [storage : make sure blivet is available] ********************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:7 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: libblockdev-mpath-2.23-1.fc30.x86_64", "Installed: libblockdev-nvdimm-2.23-1.fc30.x86_64", "Installed: userspace-rcu-0.10.1-5.fc30.x86_64", "Installed: libblockdev-part-2.23-1.fc30.x86_64", "Installed: dmraid-1.0.0.rc16-41.fc30.x86_64", "Installed: dmraid-events-1.0.0.rc16-41.fc30.x86_64", "Installed: lzo-2.08-15.fc30.x86_64", "Installed: libblockdev-swap-2.23-1.fc30.x86_64", "Installed: lvm2-2.02.183-3.fc30.x86_64", "Installed: libblockdev-utils-2.23-1.fc30.x86_64", "Installed: lvm2-libs-2.02.183-3.fc30.x86_64", "Installed: python3-blivet-1:3.1.4-1.fc30.noarch", "Installed: python3-blockdev-2.23-1.fc30.x86_64", "Installed: daxctl-libs-68-1.fc30.x86_64", "Installed: mdadm-4.1-1.fc30.x86_64", "Installed: blivet-data-1:3.1.4-1.fc30.noarch", "Installed: sgpio-1.2.0.10-23.fc30.x86_64", "Installed: nspr-4.25.0-1.fc30.x86_64", "Installed: python3-bytesize-2.2-1.fc30.x86_64", "Installed: device-mapper-event-1.02.154-3.fc30.x86_64", "Installed: lsof-4.91-3.fc30.x86_64", "Installed: nss-3.51.1-1.fc30.x86_64", "Installed: device-mapper-event-libs-1.02.154-3.fc30.x86_64", "Installed: device-mapper-multipath-0.7.9-6.git2df6110.fc30.x86_64", "Installed: gdisk-1.0.5-1.fc30.x86_64", "Installed: device-mapper-multipath-libs-0.7.9-6.git2df6110.fc30.x86_64", "Installed: nss-softokn-3.51.1-1.fc30.x86_64", "Installed: python3-gobject-base-3.32.2-1.fc30.x86_64", "Installed: device-mapper-persistent-data-0.7.6-4.fc30.x86_64", "Installed: gobject-introspection-1.60.2-1.fc30.x86_64", "Installed: nss-softokn-freebl-3.51.1-1.fc30.x86_64", "Installed: libbytesize-2.2-1.fc30.x86_64", "Installed: nss-sysinit-3.51.1-1.fc30.x86_64", "Installed: nss-util-3.51.1-1.fc30.x86_64", "Installed: volume_key-libs-0.3.12-3.fc30.x86_64", "Installed: bcache-tools-1.0.8-15.fc30.x86_64", "Installed: ndctl-68-1.fc30.x86_64", "Installed: ndctl-libs-68-1.fc30.x86_64", "Installed: libblockdev-2.23-1.fc30.x86_64", "Installed: libblockdev-btrfs-2.23-1.fc30.x86_64", "Installed: libblockdev-crypto-2.23-1.fc30.x86_64", "Installed: python3-pyudev-0.21.0-10.fc30.noarch", "Installed: btrfs-progs-5.6-1.fc30.x86_64", "Installed: libblockdev-dm-2.23-1.fc30.x86_64", "Installed: libblockdev-fs-2.23-1.fc30.x86_64", "Installed: libblockdev-kbd-2.23-1.fc30.x86_64", "Installed: libblockdev-loop-2.23-1.fc30.x86_64", "Installed: libblockdev-lvm-2.23-1.fc30.x86_64", "Installed: python3-pyparted-1:3.11.2-1.fc30.x86_64", "Installed: libaio-0.3.111-4.fc30.x86_64", "Installed: libblockdev-mdraid-2.23-1.fc30.x86_64"]} TASK [storage : initialize internal facts] ************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.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 [storage : Apply defaults to pools and volumes [1/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:28 TASK [storage : Apply defaults to pools and volumes [2/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:36 TASK [storage : Apply defaults to pools and volumes [3/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:44 TASK [storage : Apply defaults to pools and volumes [4/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:52 TASK [storage : Apply defaults to pools and volumes [5/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:61 TASK [storage : Apply defaults to pools and volumes [6/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:72 TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools": [] } TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_volumes": [] } TASK [storage : get required packages] ***************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": []} TASK [storage : make sure required packages are installed] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : manage the pools and volumes to match the specified state] ***** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:104 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": []} TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:113 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "blivet_output": { "actions": [], "changed": false, "failed": false, "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": [] } } TASK [storage : set the list of pools for test verification] ******************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:116 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [storage : set the list of volumes for test verification] ***************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:120 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : manage mounts to match the specified state] ******************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:132 TASK [storage : tell systemd to refresh its view of /etc/fstab] **************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:143 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [storage : Update facts] ************************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:153 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmpr6sk038f/tests/tests_fatals_raid_pool.yml:18 included: /tmp/tmpr6sk038f/tests/get_unused_disk.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [Find unused disks in the system] ***************************************** task path: /tmp/tmpr6sk038f/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-30-1.2.x86_64.qcow2] => {"changed": false, "disks": ["vdb", "vdc"]} TASK [set_fact] **************************************************************** task path: /tmp/tmpr6sk038f/tests/get_unused_disk.yml:8 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"unused_disks": ["vdb", "vdc"]}, "changed": false} TASK [Exit playbook when there's not enough unused disks in the system] ******** task path: /tmp/tmpr6sk038f/tests/get_unused_disk.yml:12 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Print unused disks] ****************************************************** task path: /tmp/tmpr6sk038f/tests/get_unused_disk.yml:17 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "unused_disks": [ "vdb", "vdc" ] } TASK [Create a disk volume mounted at "{{ mount_location }}"] ****************** task path: /tmp/tmpr6sk038f/tests/tests_fatals_raid_pool.yml:24 TASK [storage : Set version specific variables] ******************************** task path: /tmp/tmpr6sk038f/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/tmp/tmpr6sk038f/vars/Fedora.yml) => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-dm", "libblockdev-lvm", "libblockdev-part", "libblockdev-mdraid"]}, "ansible_included_var_files": ["/tmp/tmpr6sk038f/vars/Fedora.yml"], "ansible_loop_var": "item", "changed": false, "item": "/tmp/tmpr6sk038f/vars/Fedora.yml"} TASK [storage : define an empty list of pools to be used in testing] *********** task path: /tmp/tmpr6sk038f/tasks/main.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [storage : define an empty list of volumes to be used in testing] ********* task path: /tmp/tmpr6sk038f/tasks/main.yml:13 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : include the appropriate provider tasks] ************************ task path: /tmp/tmpr6sk038f/tasks/main.yml:17 included: /tmp/tmpr6sk038f/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [storage : get a list of rpm packages installed on host machine] ********** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [storage : make sure blivet is available] ********************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : initialize internal facts] ************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.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 [storage : Apply defaults to pools and volumes [1/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:28 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'name': 'vg1', 'disks': ['vdb', 'vdc'], 'type': 'lvm', 'raid_level': 'fail', 'state': 'present', 'volumes': [{'name': 'lv1', 'size': '2g', 'mount_point': '/opt/test1'}, {'name': 'lv2', 'size': '3g', 'mount_point': '/opt/test2'}, {'name': 'lv3', 'size': '3g', 'mount_point': '/opt/test3'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vdb", "vdc"], "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"}]}]}, "ansible_loop_var": "pool", "changed": false, "pool": {"disks": ["vdb", "vdc"], "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 [storage : Apply defaults to pools and volumes [2/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:36 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=[{'state': 'present', 'type': 'lvm', 'name': 'vg1', 'disks': ['vdb', 'vdc'], 'raid_level': 'fail', 'volumes': [{'name': 'lv1', 'size': '2g', 'mount_point': '/opt/test1'}, {'name': 'lv2', 'size': '3g', 'mount_point': '/opt/test2'}, {'name': 'lv3', 'size': '3g', 'mount_point': '/opt/test3'}]}, {'name': 'lv1', 'size': '2g', 'mount_point': '/opt/test1'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "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": ["vdb", "vdc"], "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"}]}, {"mount_point": "/opt/test1", "name": "lv1", "size": "2g"}]} ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=[{'state': 'present', 'type': 'lvm', 'name': 'vg1', 'disks': ['vdb', 'vdc'], 'raid_level': 'fail', 'volumes': [{'name': 'lv1', 'size': '2g', 'mount_point': '/opt/test1'}, {'name': 'lv2', 'size': '3g', 'mount_point': '/opt/test2'}, {'name': 'lv3', 'size': '3g', 'mount_point': '/opt/test3'}]}, {'name': 'lv2', 'size': '3g', 'mount_point': '/opt/test2'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "size": 0, "state": "present", "type": "lvm"}, {"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "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": ["vdb", "vdc"], "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"}]}, {"mount_point": "/opt/test2", "name": "lv2", "size": "3g"}]} ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=[{'state': 'present', 'type': 'lvm', 'name': 'vg1', 'disks': ['vdb', 'vdc'], 'raid_level': 'fail', 'volumes': [{'name': 'lv1', 'size': '2g', 'mount_point': '/opt/test1'}, {'name': 'lv2', 'size': '3g', 'mount_point': '/opt/test2'}, {'name': 'lv3', 'size': '3g', 'mount_point': '/opt/test3'}]}, {'name': 'lv3', 'size': '3g', 'mount_point': '/opt/test3'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "size": 0, "state": "present", "type": "lvm"}, {"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "size": 0, "state": "present", "type": "lvm"}, {"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "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": ["vdb", "vdc"], "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"}]}, {"mount_point": "/opt/test3", "name": "lv3", "size": "3g"}]} TASK [storage : Apply defaults to pools and volumes [3/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:44 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=[{'name': 'lv1', 'size': '2g', 'mount_point': '/opt/test1'}, {'state': 'present', 'type': 'lvm', 'size': 0, 'fs_type': 'xfs', 'fs_label': '', 'fs_create_options': '', 'fs_overwrite_existing': True, 'mount_point': '', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid'}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"fs_create_options": "", "fs_label": "", "fs_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", "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"}, {"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "size": 0, "state": "present", "type": "lvm"}]} ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=[{'name': 'lv2', 'size': '3g', 'mount_point': '/opt/test2'}, {'state': 'present', 'type': 'lvm', 'size': 0, 'fs_type': 'xfs', 'fs_label': '', 'fs_create_options': '', 'fs_overwrite_existing': True, 'mount_point': '', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid'}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"fs_create_options": "", "fs_label": "", "fs_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", "size": "2g", "state": "present", "type": "lvm"}, {"fs_create_options": "", "fs_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", "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"}, {"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "size": 0, "state": "present", "type": "lvm"}]} ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=[{'name': 'lv3', 'size': '3g', 'mount_point': '/opt/test3'}, {'state': 'present', 'type': 'lvm', 'size': 0, 'fs_type': 'xfs', 'fs_label': '', 'fs_create_options': '', 'fs_overwrite_existing': True, 'mount_point': '', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid'}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"fs_create_options": "", "fs_label": "", "fs_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", "size": "2g", "state": "present", "type": "lvm"}, {"fs_create_options": "", "fs_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", "size": "3g", "state": "present", "type": "lvm"}, {"fs_create_options": "", "fs_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", "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"}, {"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "size": 0, "state": "present", "type": "lvm"}]} TASK [storage : Apply defaults to pools and volumes [4/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:52 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'name': 'vg1', 'disks': ['vdb', 'vdc'], 'raid_level': 'fail', 'volumes': [{'name': 'lv1', 'size': '2g', 'mount_point': '/opt/test1'}, {'name': 'lv2', 'size': '3g', 'mount_point': '/opt/test2'}, {'name': 'lv3', 'size': '3g', 'mount_point': '/opt/test3'}]}) => {"ansible_facts": {"_storage_vols_no_defaults_by_pool": {"vg1": [{"fs_create_options": "", "fs_label": "", "fs_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", "size": "2g", "state": "present", "type": "lvm"}, {"fs_create_options": "", "fs_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", "size": "3g", "state": "present", "type": "lvm"}, {"fs_create_options": "", "fs_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", "size": "3g", "state": "present", "type": "lvm"}]}}, "ansible_loop_var": "item", "changed": false, "item": {"disks": ["vdb", "vdc"], "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 [storage : Apply defaults to pools and volumes [5/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:61 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'name': 'vg1', 'disks': ['vdb', 'vdc'], 'raid_level': 'fail', 'volumes': [{'name': 'lv1', 'size': '2g', 'mount_point': '/opt/test1'}, {'name': 'lv2', 'size': '3g', 'mount_point': '/opt/test2'}, {'name': 'lv3', 'size': '3g', 'mount_point': '/opt/test3'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vdb", "vdc"], "name": "vg1", "raid_level": "fail", "state": "present", "type": "lvm", "volumes": [{"fs_create_options": "", "fs_label": "", "fs_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", "size": "2g", "state": "present", "type": "lvm"}, {"fs_create_options": "", "fs_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", "size": "3g", "state": "present", "type": "lvm"}, {"fs_create_options": "", "fs_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", "size": "3g", "state": "present", "type": "lvm"}]}]}, "ansible_index_var": "idx", "ansible_loop_var": "pool", "changed": false, "idx": 0, "pool": {"disks": ["vdb", "vdc"], "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 [storage : Apply defaults to pools and volumes [6/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:72 TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools": [ { "disks": [ "vdb", "vdc" ], "name": "vg1", "raid_level": "fail", "state": "present", "type": "lvm", "volumes": [ { "fs_create_options": "", "fs_label": "", "fs_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", "size": "2g", "state": "present", "type": "lvm" }, { "fs_create_options": "", "fs_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", "size": "3g", "state": "present", "type": "lvm" }, { "fs_create_options": "", "fs_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", "size": "3g", "state": "present", "type": "lvm" } ] } ] } TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_volumes": [] } TASK [storage : get required packages] ***************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": [], "mounts": [], "packages": ["lvm2", "xfsprogs"], "pools": [], "volumes": []} TASK [storage : make sure required packages are installed] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : manage the pools and volumes to match the specified state] ***** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:104 fatal: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2]: FAILED! => {"actions": [], "changed": false, "leaves": [], "mounts": [], "msg": "invalid RAID level value 'fail'", "packages": [], "pools": [], "volumes": []} TASK [Check that we failed in the role] **************************************** task path: /tmp/tmpr6sk038f/tests/tests_fatals_raid_pool.yml:50 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 : ok=37 changed=1 unreachable=0 failed=0 skipped=13 rescued=1 ignored=0 + cd /tmp/tmpr6sk038f/tests; TEST_SUBJECTS=/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_storage-91-a6b7623-fedora-30-97_lk9m2/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmpr6sk038f/_setup.yml /tmp/tmpr6sk038f/tests/tests_filesystem_one_disk.yml ansible-playbook 2.9.9 config file = /etc/ansible/ansible.cfg configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.8/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 3.8.2 (default, Feb 28 2020, 00:00:00) [GCC 10.0.1 20200216 (Red Hat 10.0.1-0.8)] Using /etc/ansible/ansible.cfg as config file PLAYBOOK: _setup.yml *********************************************************** 1 plays in /tmp/tmpr6sk038f/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmpr6sk038f/_setup.yml:5 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "groups": { "all": [ "/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2" ], "localhost": [ "/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2" ], "subjects": [ "/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmpr6sk038f/_setup.yml:7 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/Fedora-Cloud-Base-30-1.2.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/tmpr6sk038f/tests/tests_filesystem_one_disk.yml PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpr6sk038f/tests/tests_filesystem_one_disk.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] META: ran handlers TASK [include_role : storage] ************************************************** task path: /tmp/tmpr6sk038f/tests/tests_filesystem_one_disk.yml:8 TASK [storage : Set version specific variables] ******************************** task path: /tmp/tmpr6sk038f/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/tmp/tmpr6sk038f/vars/Fedora.yml) => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-dm", "libblockdev-lvm", "libblockdev-part", "libblockdev-mdraid"]}, "ansible_included_var_files": ["/tmp/tmpr6sk038f/vars/Fedora.yml"], "ansible_loop_var": "item", "changed": false, "item": "/tmp/tmpr6sk038f/vars/Fedora.yml"} TASK [storage : define an empty list of pools to be used in testing] *********** task path: /tmp/tmpr6sk038f/tasks/main.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [storage : define an empty list of volumes to be used in testing] ********* task path: /tmp/tmpr6sk038f/tasks/main.yml:13 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : include the appropriate provider tasks] ************************ task path: /tmp/tmpr6sk038f/tasks/main.yml:17 included: /tmp/tmpr6sk038f/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [storage : get a list of rpm packages installed on host machine] ********** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [storage : make sure blivet is available] ********************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:7 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: libblockdev-mpath-2.23-1.fc30.x86_64", "Installed: libblockdev-nvdimm-2.23-1.fc30.x86_64", "Installed: userspace-rcu-0.10.1-5.fc30.x86_64", "Installed: libblockdev-part-2.23-1.fc30.x86_64", "Installed: dmraid-1.0.0.rc16-41.fc30.x86_64", "Installed: dmraid-events-1.0.0.rc16-41.fc30.x86_64", "Installed: lzo-2.08-15.fc30.x86_64", "Installed: libblockdev-swap-2.23-1.fc30.x86_64", "Installed: lvm2-2.02.183-3.fc30.x86_64", "Installed: libblockdev-utils-2.23-1.fc30.x86_64", "Installed: lvm2-libs-2.02.183-3.fc30.x86_64", "Installed: python3-blivet-1:3.1.4-1.fc30.noarch", "Installed: python3-blockdev-2.23-1.fc30.x86_64", "Installed: daxctl-libs-68-1.fc30.x86_64", "Installed: mdadm-4.1-1.fc30.x86_64", "Installed: blivet-data-1:3.1.4-1.fc30.noarch", "Installed: sgpio-1.2.0.10-23.fc30.x86_64", "Installed: nspr-4.25.0-1.fc30.x86_64", "Installed: python3-bytesize-2.2-1.fc30.x86_64", "Installed: device-mapper-event-1.02.154-3.fc30.x86_64", "Installed: lsof-4.91-3.fc30.x86_64", "Installed: nss-3.51.1-1.fc30.x86_64", "Installed: device-mapper-event-libs-1.02.154-3.fc30.x86_64", "Installed: device-mapper-multipath-0.7.9-6.git2df6110.fc30.x86_64", "Installed: gdisk-1.0.5-1.fc30.x86_64", "Installed: device-mapper-multipath-libs-0.7.9-6.git2df6110.fc30.x86_64", "Installed: nss-softokn-3.51.1-1.fc30.x86_64", "Installed: python3-gobject-base-3.32.2-1.fc30.x86_64", "Installed: device-mapper-persistent-data-0.7.6-4.fc30.x86_64", "Installed: gobject-introspection-1.60.2-1.fc30.x86_64", "Installed: nss-softokn-freebl-3.51.1-1.fc30.x86_64", "Installed: libbytesize-2.2-1.fc30.x86_64", "Installed: nss-sysinit-3.51.1-1.fc30.x86_64", "Installed: nss-util-3.51.1-1.fc30.x86_64", "Installed: volume_key-libs-0.3.12-3.fc30.x86_64", "Installed: bcache-tools-1.0.8-15.fc30.x86_64", "Installed: ndctl-68-1.fc30.x86_64", "Installed: ndctl-libs-68-1.fc30.x86_64", "Installed: libblockdev-2.23-1.fc30.x86_64", "Installed: libblockdev-btrfs-2.23-1.fc30.x86_64", "Installed: libblockdev-crypto-2.23-1.fc30.x86_64", "Installed: python3-pyudev-0.21.0-10.fc30.noarch", "Installed: btrfs-progs-5.6-1.fc30.x86_64", "Installed: libblockdev-dm-2.23-1.fc30.x86_64", "Installed: libblockdev-fs-2.23-1.fc30.x86_64", "Installed: libblockdev-kbd-2.23-1.fc30.x86_64", "Installed: libblockdev-loop-2.23-1.fc30.x86_64", "Installed: libblockdev-lvm-2.23-1.fc30.x86_64", "Installed: python3-pyparted-1:3.11.2-1.fc30.x86_64", "Installed: libaio-0.3.111-4.fc30.x86_64", "Installed: libblockdev-mdraid-2.23-1.fc30.x86_64"]} TASK [storage : initialize internal facts] ************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.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 [storage : Apply defaults to pools and volumes [1/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:28 TASK [storage : Apply defaults to pools and volumes [2/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:36 TASK [storage : Apply defaults to pools and volumes [3/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:44 TASK [storage : Apply defaults to pools and volumes [4/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:52 TASK [storage : Apply defaults to pools and volumes [5/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:61 TASK [storage : Apply defaults to pools and volumes [6/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:72 TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools": [] } TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_volumes": [] } TASK [storage : get required packages] ***************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": []} TASK [storage : make sure required packages are installed] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : manage the pools and volumes to match the specified state] ***** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:104 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": []} TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:113 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "blivet_output": { "actions": [], "changed": false, "failed": false, "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": [] } } TASK [storage : set the list of pools for test verification] ******************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:116 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [storage : set the list of volumes for test verification] ***************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:120 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : manage mounts to match the specified state] ******************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:132 TASK [storage : tell systemd to refresh its view of /etc/fstab] **************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:143 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [storage : Update facts] ************************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:153 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmpr6sk038f/tests/tests_filesystem_one_disk.yml:11 included: /tmp/tmpr6sk038f/tests/get_unused_disk.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [Find unused disks in the system] ***************************************** task path: /tmp/tmpr6sk038f/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-30-1.2.x86_64.qcow2] => {"changed": false, "disks": ["vdb"]} TASK [set_fact] **************************************************************** task path: /tmp/tmpr6sk038f/tests/get_unused_disk.yml:8 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"unused_disks": ["vdb"]}, "changed": false} TASK [Exit playbook when there's not enough unused disks in the system] ******** task path: /tmp/tmpr6sk038f/tests/get_unused_disk.yml:12 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Print unused disks] ****************************************************** task path: /tmp/tmpr6sk038f/tests/get_unused_disk.yml:17 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "unused_disks": [ "vdb" ] } TASK [Initialize a disk device with the default fs type] *********************** task path: /tmp/tmpr6sk038f/tests/tests_filesystem_one_disk.yml:15 TASK [storage : Set version specific variables] ******************************** task path: /tmp/tmpr6sk038f/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/tmp/tmpr6sk038f/vars/Fedora.yml) => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-dm", "libblockdev-lvm", "libblockdev-part", "libblockdev-mdraid"]}, "ansible_included_var_files": ["/tmp/tmpr6sk038f/vars/Fedora.yml"], "ansible_loop_var": "item", "changed": false, "item": "/tmp/tmpr6sk038f/vars/Fedora.yml"} TASK [storage : define an empty list of pools to be used in testing] *********** task path: /tmp/tmpr6sk038f/tasks/main.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [storage : define an empty list of volumes to be used in testing] ********* task path: /tmp/tmpr6sk038f/tasks/main.yml:13 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : include the appropriate provider tasks] ************************ task path: /tmp/tmpr6sk038f/tasks/main.yml:17 included: /tmp/tmpr6sk038f/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [storage : get a list of rpm packages installed on host machine] ********** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [storage : make sure blivet is available] ********************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : initialize internal facts] ************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.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 [storage : Apply defaults to pools and volumes [1/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:28 TASK [storage : Apply defaults to pools and volumes [2/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:36 TASK [storage : Apply defaults to pools and volumes [3/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:44 TASK [storage : Apply defaults to pools and volumes [4/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:52 TASK [storage : Apply defaults to pools and volumes [5/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:61 TASK [storage : Apply defaults to pools and volumes [6/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:72 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'name': 'test1', 'type': 'disk', 'mount_point': '/opt/test1', 'disks': ['vdb']}) => {"ansible_facts": {"_storage_volumes": [{"disks": ["vdb"], "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "size": 0, "state": "present", "type": "disk"}]}, "ansible_loop_var": "volume", "changed": false, "volume": {"disks": ["vdb"], "mount_point": "/opt/test1", "name": "test1", "type": "disk"}} TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools": [] } TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_volumes": [ { "disks": [ "vdb" ], "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "size": 0, "state": "present", "type": "disk" } ] } TASK [storage : get required packages] ***************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": [], "mounts": [], "packages": ["xfsprogs"], "pools": [], "volumes": []} TASK [storage : make sure required packages are installed] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : manage the pools and volumes to match the specified state] ***** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:104 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [{"action": "create format", "device": "/dev/vdb", "fs_type": "xfs"}], "changed": true, "leaves": ["/dev/sr0", "/dev/vda1", "/dev/vdb", "/dev/vdc"], "mounts": [{"dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "/dev/vdb", "state": "mounted"}], "packages": ["xfsprogs", "e2fsprogs"], "pools": [], "volumes": [{"_device": "/dev/vdb", "_mount_id": "/dev/vdb", "disks": ["vdb"], "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "size": 0, "state": "present", "type": "disk"}]} TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:113 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "blivet_output": { "actions": [ { "action": "create format", "device": "/dev/vdb", "fs_type": "xfs" } ], "changed": true, "failed": false, "leaves": [ "/dev/sr0", "/dev/vda1", "/dev/vdb", "/dev/vdc" ], "mounts": [ { "dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "/dev/vdb", "state": "mounted" } ], "packages": [ "xfsprogs", "e2fsprogs" ], "pools": [], "volumes": [ { "_device": "/dev/vdb", "_mount_id": "/dev/vdb", "disks": [ "vdb" ], "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "size": 0, "state": "present", "type": "disk" } ] } } TASK [storage : set the list of pools for test verification] ******************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:116 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [storage : set the list of volumes for test verification] ***************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:120 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": [{"_device": "/dev/vdb", "_mount_id": "/dev/vdb", "disks": ["vdb"], "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "size": 0, "state": "present", "type": "disk"}]}, "changed": false} TASK [storage : manage mounts to match the specified state] ******************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:132 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'src': '/dev/vdb', 'path': '/opt/test1', 'fstype': 'xfs', 'opts': 'defaults', 'dump': 0, 'passno': 0, 'state': 'mounted'}) => {"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/vdb", "state": "mounted"}, "name": "/opt/test1", "opts": "defaults", "passno": "0", "src": "/dev/vdb"} TASK [storage : tell systemd to refresh its view of /etc/fstab] **************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:143 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [storage : Update facts] ************************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:153 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmpr6sk038f/tests/tests_filesystem_one_disk.yml:25 included: /tmp/tmpr6sk038f/tests/verify-role-results.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [Print out pool information] ********************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:1 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {} TASK [Print out volume information] ******************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_volumes_list": [ { "_device": "/dev/vdb", "_mount_id": "/dev/vdb", "disks": [ "vdb" ], "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "size": 0, "state": "present", "type": "disk" } ] } TASK [Collect info about the volumes.] ***************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:14 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "info": {"/dev/sr0": {"fstype": "iso9660", "label": "cidata", "name": "/dev/sr0", "type": "rom", "uuid": "2020-05-27-13-32-42-00"}, "/dev/vda": {"fstype": "", "label": "", "name": "/dev/vda", "type": "disk", "uuid": ""}, "/dev/vda1": {"fstype": "ext4", "label": "", "name": "/dev/vda1", "type": "partition", "uuid": "ea711a29-e460-4879-9d70-9da99ae021f9"}, "/dev/vdb": {"fstype": "xfs", "label": "", "name": "/dev/vdb", "type": "disk", "uuid": "faa9c742-4859-4fe9-9505-e6f70fa6925a"}, "/dev/vdc": {"fstype": "", "label": "", "name": "/dev/vdc", "type": "disk", "uuid": ""}}} TASK [Read the /etc/fstab file for volume existence] *************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:19 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/fstab"], "delta": "0:00:00.002683", "end": "2020-05-27 13:37:12.311188", "rc": 0, "start": "2020-05-27 13:37:12.308505", "stderr": "", "stderr_lines": [], "stdout": "\n#\n# /etc/fstab\n# Created by anaconda on Fri Apr 26 02:02:19 2019\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=ea711a29-e460-4879-9d70-9da99ae021f9 / ext4 defaults 1 1\n/dev/vdb /opt/test1 xfs defaults 0 0", "stdout_lines": ["", "#", "# /etc/fstab", "# Created by anaconda on Fri Apr 26 02:02:19 2019", "#", "# 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=ea711a29-e460-4879-9d70-9da99ae021f9 / ext4 defaults 1 1", "/dev/vdb /opt/test1 xfs defaults 0 0"]} TASK [Verify the volumes listed in storage_pools were correctly managed] ******* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:27 TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:34 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_pool": null}, "changed": false} TASK [Verify the volumes with no pool were correctly managed] ****************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:41 included: /tmp/tmpr6sk038f/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": true, "_storage_volume_tests": ["mount", "fstab", "fs", "device"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:12 included: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/vdb"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/vdb"], "delta": "0:00:00.004182", "end": "2020-05-27 13:37:12.838195", "rc": 0, "start": "2020-05-27 13:37:12.834013", "stderr": "", "stderr_lines": [], "stdout": "/dev/vdb", "stdout_lines": ["/dev/vdb"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Set some facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:20 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [{"block_available": 2608012, "block_size": 4096, "block_total": 2618880, "block_used": 10868, "device": "/dev/vdb", "fstype": "xfs", "inode_available": 5242877, "inode_total": 5242880, "inode_used": 3, "mount": "/opt/test1", "options": "rw,seclabel,relatime,attr2,inode64,noquota", "size_available": 10682417152, "size_total": 10726932480, "uuid": "faa9c742-4859-4fe9-9505-e6f70fa6925a"}], "storage_test_mount_expected_match_count": "1", "storage_test_mount_point_matches": [{"block_available": 2608012, "block_size": 4096, "block_total": 2618880, "block_used": 10868, "device": "/dev/vdb", "fstype": "xfs", "inode_available": 5242877, "inode_total": 5242880, "inode_used": 3, "mount": "/opt/test1", "options": "rw,seclabel,relatime,attr2,inode64,noquota", "size_available": 10682417152, "size_total": 10726932480, "uuid": "faa9c742-4859-4fe9-9505-e6f70fa6925a"}]}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:31 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:40 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:48 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Unset facts] ************************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:58 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_matches": "1", "storage_test_fstab_id_matches": ["/dev/vdb "], "storage_test_fstab_mount_point_matches": [" /opt/test1 "]}, "changed": false} TASK [Verify that the device identifier appears in /etc/fstab] ***************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:16 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:23 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/vdb"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/vdb"], "delta": "0:00:00.002596", "end": "2020-05-27 13:37:13.515927", "rc": 0, "start": "2020-05-27 13:37:13.513331", "stderr": "", "stderr_lines": [], "stdout": "/dev/vdb", "stdout_lines": ["/dev/vdb"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify fs type] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:21 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify fs label] ********************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:27 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/vdb"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/vdb"], "delta": "0:00:00.002459", "end": "2020-05-27 13:37:14.024060", "rc": 0, "start": "2020-05-27 13:37:14.021601", "stderr": "", "stderr_lines": [], "stdout": "/dev/vdb", "stdout_lines": ["/dev/vdb"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [See whether the device node is present] ********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:21 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "stat": {"atime": 1590586629.1032152, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "ctime": 1590586629.1032152, "dev": 6, "device_type": 64528, "executable": false, "exists": true, "gid": 6, "gr_name": "disk", "inode": 477, "isblk": true, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mimetype": "inode/blockdevice", "mode": "0660", "mtime": 1590586629.1032152, "nlink": 1, "path": "/dev/vdb", "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/tmpr6sk038f/tests/test-verify-volume-device.yml:27 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:35 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:41 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "disk"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:45 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:50 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:51 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_blkinfo": null, "storage_test_fstab": null, "storage_test_volume": null}, "changed": false} TASK [Repeat the previous invocation to verify idempotence] ******************** task path: /tmp/tmpr6sk038f/tests/tests_filesystem_one_disk.yml:27 TASK [storage : Set version specific variables] ******************************** task path: /tmp/tmpr6sk038f/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/tmp/tmpr6sk038f/vars/Fedora.yml) => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-dm", "libblockdev-lvm", "libblockdev-part", "libblockdev-mdraid"]}, "ansible_included_var_files": ["/tmp/tmpr6sk038f/vars/Fedora.yml"], "ansible_loop_var": "item", "changed": false, "item": "/tmp/tmpr6sk038f/vars/Fedora.yml"} TASK [storage : define an empty list of pools to be used in testing] *********** task path: /tmp/tmpr6sk038f/tasks/main.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [storage : define an empty list of volumes to be used in testing] ********* task path: /tmp/tmpr6sk038f/tasks/main.yml:13 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : include the appropriate provider tasks] ************************ task path: /tmp/tmpr6sk038f/tasks/main.yml:17 included: /tmp/tmpr6sk038f/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [storage : get a list of rpm packages installed on host machine] ********** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [storage : make sure blivet is available] ********************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : initialize internal facts] ************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.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 [storage : Apply defaults to pools and volumes [1/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:28 TASK [storage : Apply defaults to pools and volumes [2/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:36 TASK [storage : Apply defaults to pools and volumes [3/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:44 TASK [storage : Apply defaults to pools and volumes [4/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:52 TASK [storage : Apply defaults to pools and volumes [5/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:61 TASK [storage : Apply defaults to pools and volumes [6/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:72 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'name': 'test1', 'type': 'disk', 'mount_point': '/opt/test1', 'disks': ['vdb']}) => {"ansible_facts": {"_storage_volumes": [{"disks": ["vdb"], "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "size": 0, "state": "present", "type": "disk"}]}, "ansible_loop_var": "volume", "changed": false, "volume": {"disks": ["vdb"], "mount_point": "/opt/test1", "name": "test1", "type": "disk"}} TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools": [] } TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_volumes": [ { "disks": [ "vdb" ], "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "size": 0, "state": "present", "type": "disk" } ] } TASK [storage : get required packages] ***************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": [], "mounts": [], "packages": ["xfsprogs"], "pools": [], "volumes": []} TASK [storage : make sure required packages are installed] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : manage the pools and volumes to match the specified state] ***** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:104 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": ["/dev/sr0", "/dev/vda1", "/dev/vdb", "/dev/vdc"], "mounts": [{"dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "UUID=faa9c742-4859-4fe9-9505-e6f70fa6925a", "state": "mounted"}], "packages": ["xfsprogs", "e2fsprogs"], "pools": [], "volumes": [{"_device": "/dev/vdb", "_mount_id": "UUID=faa9c742-4859-4fe9-9505-e6f70fa6925a", "disks": ["vdb"], "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "size": 0, "state": "present", "type": "disk"}]} TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:113 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "blivet_output": { "actions": [], "changed": false, "failed": false, "leaves": [ "/dev/sr0", "/dev/vda1", "/dev/vdb", "/dev/vdc" ], "mounts": [ { "dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "UUID=faa9c742-4859-4fe9-9505-e6f70fa6925a", "state": "mounted" } ], "packages": [ "xfsprogs", "e2fsprogs" ], "pools": [], "volumes": [ { "_device": "/dev/vdb", "_mount_id": "UUID=faa9c742-4859-4fe9-9505-e6f70fa6925a", "disks": [ "vdb" ], "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "size": 0, "state": "present", "type": "disk" } ] } } TASK [storage : set the list of pools for test verification] ******************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:116 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [storage : set the list of volumes for test verification] ***************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:120 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": [{"_device": "/dev/vdb", "_mount_id": "UUID=faa9c742-4859-4fe9-9505-e6f70fa6925a", "disks": ["vdb"], "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "size": 0, "state": "present", "type": "disk"}]}, "changed": false} TASK [storage : manage mounts to match the specified state] ******************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:132 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'src': 'UUID=faa9c742-4859-4fe9-9505-e6f70fa6925a', 'path': '/opt/test1', 'fstype': 'xfs', 'opts': 'defaults', 'dump': 0, 'passno': 0, 'state': 'mounted'}) => {"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=faa9c742-4859-4fe9-9505-e6f70fa6925a", "state": "mounted"}, "name": "/opt/test1", "opts": "defaults", "passno": "0", "src": "UUID=faa9c742-4859-4fe9-9505-e6f70fa6925a"} TASK [storage : tell systemd to refresh its view of /etc/fstab] **************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:143 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [storage : Update facts] ************************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:153 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmpr6sk038f/tests/tests_filesystem_one_disk.yml:37 included: /tmp/tmpr6sk038f/tests/verify-role-results.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [Print out pool information] ********************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:1 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {} TASK [Print out volume information] ******************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_volumes_list": [ { "_device": "/dev/vdb", "_mount_id": "UUID=faa9c742-4859-4fe9-9505-e6f70fa6925a", "disks": [ "vdb" ], "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "size": 0, "state": "present", "type": "disk" } ] } TASK [Collect info about the volumes.] ***************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:14 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "info": {"/dev/sr0": {"fstype": "iso9660", "label": "cidata", "name": "/dev/sr0", "type": "rom", "uuid": "2020-05-27-13-32-42-00"}, "/dev/vda": {"fstype": "", "label": "", "name": "/dev/vda", "type": "disk", "uuid": ""}, "/dev/vda1": {"fstype": "ext4", "label": "", "name": "/dev/vda1", "type": "partition", "uuid": "ea711a29-e460-4879-9d70-9da99ae021f9"}, "/dev/vdb": {"fstype": "xfs", "label": "", "name": "/dev/vdb", "type": "disk", "uuid": "faa9c742-4859-4fe9-9505-e6f70fa6925a"}, "/dev/vdc": {"fstype": "", "label": "", "name": "/dev/vdc", "type": "disk", "uuid": ""}}} TASK [Read the /etc/fstab file for volume existence] *************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:19 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/fstab"], "delta": "0:00:01.003796", "end": "2020-05-27 13:37:26.990397", "rc": 0, "start": "2020-05-27 13:37:25.986601", "stderr": "", "stderr_lines": [], "stdout": "\n#\n# /etc/fstab\n# Created by anaconda on Fri Apr 26 02:02:19 2019\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=ea711a29-e460-4879-9d70-9da99ae021f9 / ext4 defaults 1 1\nUUID=faa9c742-4859-4fe9-9505-e6f70fa6925a /opt/test1 xfs defaults 0 0", "stdout_lines": ["", "#", "# /etc/fstab", "# Created by anaconda on Fri Apr 26 02:02:19 2019", "#", "# 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=ea711a29-e460-4879-9d70-9da99ae021f9 / ext4 defaults 1 1", "UUID=faa9c742-4859-4fe9-9505-e6f70fa6925a /opt/test1 xfs defaults 0 0"]} TASK [Verify the volumes listed in storage_pools were correctly managed] ******* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:27 TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:34 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_pool": null}, "changed": false} TASK [Verify the volumes with no pool were correctly managed] ****************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:41 [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/tmpr6sk038f/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": true, "_storage_volume_tests": ["mount", "fstab", "fs", "device"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:12 included: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/vdb"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/vdb"], "delta": "0:00:00.002748", "end": "2020-05-27 13:37:27.546094", "rc": 0, "start": "2020-05-27 13:37:27.543346", "stderr": "", "stderr_lines": [], "stdout": "/dev/vdb", "stdout_lines": ["/dev/vdb"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Set some facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:20 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [{"block_available": 2608012, "block_size": 4096, "block_total": 2618880, "block_used": 10868, "device": "/dev/vdb", "fstype": "xfs", "inode_available": 5242877, "inode_total": 5242880, "inode_used": 3, "mount": "/opt/test1", "options": "rw,seclabel,relatime,attr2,inode64,noquota", "size_available": 10682417152, "size_total": 10726932480, "uuid": "faa9c742-4859-4fe9-9505-e6f70fa6925a"}], "storage_test_mount_expected_match_count": "1", "storage_test_mount_point_matches": [{"block_available": 2608012, "block_size": 4096, "block_total": 2618880, "block_used": 10868, "device": "/dev/vdb", "fstype": "xfs", "inode_available": 5242877, "inode_total": 5242880, "inode_used": 3, "mount": "/opt/test1", "options": "rw,seclabel,relatime,attr2,inode64,noquota", "size_available": 10682417152, "size_total": 10726932480, "uuid": "faa9c742-4859-4fe9-9505-e6f70fa6925a"}]}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:31 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:40 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:48 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Unset facts] ************************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:58 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_matches": "1", "storage_test_fstab_id_matches": ["UUID=faa9c742-4859-4fe9-9505-e6f70fa6925a "], "storage_test_fstab_mount_point_matches": [" /opt/test1 "]}, "changed": false} TASK [Verify that the device identifier appears in /etc/fstab] ***************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:16 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:23 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/vdb"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/vdb"], "delta": "0:00:01.003755", "end": "2020-05-27 13:37:29.244078", "rc": 0, "start": "2020-05-27 13:37:28.240323", "stderr": "", "stderr_lines": [], "stdout": "/dev/vdb", "stdout_lines": ["/dev/vdb"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify fs type] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:21 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify fs label] ********************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:27 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/vdb"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/vdb"], "delta": "0:00:01.003840", "end": "2020-05-27 13:37:30.719734", "rc": 0, "start": "2020-05-27 13:37:29.715894", "stderr": "", "stderr_lines": [], "stdout": "/dev/vdb", "stdout_lines": ["/dev/vdb"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [See whether the device node is present] ********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:21 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "stat": {"atime": 1590586629.1032152, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "ctime": 1590586629.1032152, "dev": 6, "device_type": 64528, "executable": false, "exists": true, "gid": 6, "gr_name": "disk", "inode": 477, "isblk": true, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mimetype": "inode/blockdevice", "mode": "0660", "mtime": 1590586629.1032152, "nlink": 1, "path": "/dev/vdb", "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/tmpr6sk038f/tests/test-verify-volume-device.yml:27 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:35 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:41 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "disk"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:45 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:50 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:51 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_blkinfo": null, "storage_test_fstab": null, "storage_test_volume": null}, "changed": false} TASK [Clean up] **************************************************************** task path: /tmp/tmpr6sk038f/tests/tests_filesystem_one_disk.yml:39 TASK [storage : Set version specific variables] ******************************** task path: /tmp/tmpr6sk038f/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/tmp/tmpr6sk038f/vars/Fedora.yml) => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-dm", "libblockdev-lvm", "libblockdev-part", "libblockdev-mdraid"]}, "ansible_included_var_files": ["/tmp/tmpr6sk038f/vars/Fedora.yml"], "ansible_loop_var": "item", "changed": false, "item": "/tmp/tmpr6sk038f/vars/Fedora.yml"} TASK [storage : define an empty list of pools to be used in testing] *********** task path: /tmp/tmpr6sk038f/tasks/main.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [storage : define an empty list of volumes to be used in testing] ********* task path: /tmp/tmpr6sk038f/tasks/main.yml:13 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : include the appropriate provider tasks] ************************ task path: /tmp/tmpr6sk038f/tasks/main.yml:17 included: /tmp/tmpr6sk038f/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [storage : get a list of rpm packages installed on host machine] ********** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [storage : make sure blivet is available] ********************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : initialize internal facts] ************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.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 [storage : Apply defaults to pools and volumes [1/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:28 TASK [storage : Apply defaults to pools and volumes [2/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:36 TASK [storage : Apply defaults to pools and volumes [3/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:44 TASK [storage : Apply defaults to pools and volumes [4/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:52 TASK [storage : Apply defaults to pools and volumes [5/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:61 TASK [storage : Apply defaults to pools and volumes [6/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:72 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'name': 'test1', 'type': 'disk', 'mount_point': '/opt/test1', 'disks': ['vdb'], 'state': 'absent'}) => {"ansible_facts": {"_storage_volumes": [{"disks": ["vdb"], "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "size": 0, "state": "absent", "type": "disk"}]}, "ansible_loop_var": "volume", "changed": false, "volume": {"disks": ["vdb"], "mount_point": "/opt/test1", "name": "test1", "state": "absent", "type": "disk"}} TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools": [] } TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_volumes": [ { "disks": [ "vdb" ], "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "size": 0, "state": "absent", "type": "disk" } ] } TASK [storage : get required packages] ***************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": []} TASK [storage : make sure required packages are installed] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : manage the pools and volumes to match the specified state] ***** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:104 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [{"action": "destroy format", "device": "/dev/vdb", "fs_type": "xfs"}], "changed": true, "leaves": ["/dev/sr0", "/dev/vda1", "/dev/vdb", "/dev/vdc"], "mounts": [{"path": "/opt/test1", "state": "absent"}], "packages": ["e2fsprogs"], "pools": [], "volumes": [{"_device": "/dev/vdb", "_mount_id": "UUID=faa9c742-4859-4fe9-9505-e6f70fa6925a", "disks": ["vdb"], "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "size": 0, "state": "absent", "type": "disk"}]} TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:113 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "blivet_output": { "actions": [ { "action": "destroy format", "device": "/dev/vdb", "fs_type": "xfs" } ], "changed": true, "failed": false, "leaves": [ "/dev/sr0", "/dev/vda1", "/dev/vdb", "/dev/vdc" ], "mounts": [ { "path": "/opt/test1", "state": "absent" } ], "packages": [ "e2fsprogs" ], "pools": [], "volumes": [ { "_device": "/dev/vdb", "_mount_id": "UUID=faa9c742-4859-4fe9-9505-e6f70fa6925a", "disks": [ "vdb" ], "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "size": 0, "state": "absent", "type": "disk" } ] } } TASK [storage : set the list of pools for test verification] ******************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:116 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [storage : set the list of volumes for test verification] ***************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:120 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": [{"_device": "/dev/vdb", "_mount_id": "UUID=faa9c742-4859-4fe9-9505-e6f70fa6925a", "disks": ["vdb"], "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "size": 0, "state": "absent", "type": "disk"}]}, "changed": false} TASK [storage : manage mounts to match the specified state] ******************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:132 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'path': '/opt/test1', 'state': '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 [storage : tell systemd to refresh its view of /etc/fstab] **************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:143 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [storage : Update facts] ************************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:153 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmpr6sk038f/tests/tests_filesystem_one_disk.yml:50 included: /tmp/tmpr6sk038f/tests/verify-role-results.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [Print out pool information] ********************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:1 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {} TASK [Print out volume information] ******************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_volumes_list": [ { "_device": "/dev/vdb", "_mount_id": "UUID=faa9c742-4859-4fe9-9505-e6f70fa6925a", "disks": [ "vdb" ], "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "size": 0, "state": "absent", "type": "disk" } ] } TASK [Collect info about the volumes.] ***************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:14 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "info": {"/dev/sr0": {"fstype": "iso9660", "label": "cidata", "name": "/dev/sr0", "type": "rom", "uuid": "2020-05-27-13-32-42-00"}, "/dev/vda": {"fstype": "", "label": "", "name": "/dev/vda", "type": "disk", "uuid": ""}, "/dev/vda1": {"fstype": "ext4", "label": "", "name": "/dev/vda1", "type": "partition", "uuid": "ea711a29-e460-4879-9d70-9da99ae021f9"}, "/dev/vdb": {"fstype": "", "label": "", "name": "/dev/vdb", "type": "disk", "uuid": ""}, "/dev/vdc": {"fstype": "", "label": "", "name": "/dev/vdc", "type": "disk", "uuid": ""}}} TASK [Read the /etc/fstab file for volume existence] *************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:19 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/fstab"], "delta": "0:00:00.003354", "end": "2020-05-27 13:37:42.818863", "rc": 0, "start": "2020-05-27 13:37:42.815509", "stderr": "", "stderr_lines": [], "stdout": "\n#\n# /etc/fstab\n# Created by anaconda on Fri Apr 26 02:02:19 2019\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=ea711a29-e460-4879-9d70-9da99ae021f9 / ext4 defaults 1 1", "stdout_lines": ["", "#", "# /etc/fstab", "# Created by anaconda on Fri Apr 26 02:02:19 2019", "#", "# 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=ea711a29-e460-4879-9d70-9da99ae021f9 / ext4 defaults 1 1"]} TASK [Verify the volumes listed in storage_pools were correctly managed] ******* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:27 TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:34 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_pool": null}, "changed": false} TASK [Verify the volumes with no pool were correctly managed] ****************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:41 [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/tmpr6sk038f/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": false, "_storage_volume_tests": ["mount", "fstab", "fs", "device"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:12 included: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/vdb"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/vdb"], "delta": "0:00:00.002767", "end": "2020-05-27 13:37:43.357839", "rc": 0, "start": "2020-05-27 13:37:43.355072", "stderr": "", "stderr_lines": [], "stdout": "/dev/vdb", "stdout_lines": ["/dev/vdb"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Set some facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:20 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [], "storage_test_mount_expected_match_count": "0", "storage_test_mount_point_matches": []}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:31 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:40 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:48 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Unset facts] ************************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:58 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_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/tmpr6sk038f/tests/test-verify-volume-fstab.yml:9 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:16 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:23 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/vdb"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/vdb"], "delta": "0:00:00.002818", "end": "2020-05-27 13:37:44.022340", "rc": 0, "start": "2020-05-27 13:37:44.019522", "stderr": "", "stderr_lines": [], "stdout": "/dev/vdb", "stdout_lines": ["/dev/vdb"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify fs type] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:21 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify fs label] ********************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:27 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/vdb"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/vdb"], "delta": "0:00:00.002998", "end": "2020-05-27 13:37:44.486002", "rc": 0, "start": "2020-05-27 13:37:44.483004", "stderr": "", "stderr_lines": [], "stdout": "/dev/vdb", "stdout_lines": ["/dev/vdb"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [See whether the device node is present] ********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:21 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "stat": {"atime": 1590586660.2882152, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "ctime": 1590586660.2882152, "dev": 6, "device_type": 64528, "executable": false, "exists": true, "gid": 6, "gr_name": "disk", "inode": 477, "isblk": true, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mimetype": "inode/blockdevice", "mode": "0660", "mtime": 1590586660.2882152, "nlink": 1, "path": "/dev/vdb", "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/tmpr6sk038f/tests/test-verify-volume-device.yml:27 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:35 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:41 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "disk"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:45 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:50 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Clean up facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:51 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_blkinfo": null, "storage_test_fstab": null, "storage_test_volume": null}, "changed": false} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 : ok=173 changed=15 unreachable=0 failed=0 skipped=54 rescued=0 ignored=0 + cd /tmp/tmpr6sk038f/tests; TEST_SUBJECTS=/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_storage-91-a6b7623-fedora-30-97_lk9m2/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmpr6sk038f/_setup.yml /tmp/tmpr6sk038f/tests/tests_lvm_errors.yml ansible-playbook 2.9.9 config file = /etc/ansible/ansible.cfg configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.8/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 3.8.2 (default, Feb 28 2020, 00:00:00) [GCC 10.0.1 20200216 (Red Hat 10.0.1-0.8)] Using /etc/ansible/ansible.cfg as config file PLAYBOOK: _setup.yml *********************************************************** 1 plays in /tmp/tmpr6sk038f/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmpr6sk038f/_setup.yml:5 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "groups": { "all": [ "/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2" ], "localhost": [ "/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2" ], "subjects": [ "/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmpr6sk038f/_setup.yml:7 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/Fedora-Cloud-Base-30-1.2.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/tmpr6sk038f/tests/tests_lvm_errors.yml PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpr6sk038f/tests/tests_lvm_errors.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] META: ran handlers TASK [include_role : storage] ************************************************** task path: /tmp/tmpr6sk038f/tests/tests_lvm_errors.yml:18 TASK [storage : Set version specific variables] ******************************** task path: /tmp/tmpr6sk038f/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/tmp/tmpr6sk038f/vars/Fedora.yml) => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-dm", "libblockdev-lvm", "libblockdev-part", "libblockdev-mdraid"]}, "ansible_included_var_files": ["/tmp/tmpr6sk038f/vars/Fedora.yml"], "ansible_loop_var": "item", "changed": false, "item": "/tmp/tmpr6sk038f/vars/Fedora.yml"} TASK [storage : define an empty list of pools to be used in testing] *********** task path: /tmp/tmpr6sk038f/tasks/main.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [storage : define an empty list of volumes to be used in testing] ********* task path: /tmp/tmpr6sk038f/tasks/main.yml:13 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : include the appropriate provider tasks] ************************ task path: /tmp/tmpr6sk038f/tasks/main.yml:17 included: /tmp/tmpr6sk038f/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [storage : get a list of rpm packages installed on host machine] ********** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [storage : make sure blivet is available] ********************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:7 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: libblockdev-mpath-2.23-1.fc30.x86_64", "Installed: libblockdev-nvdimm-2.23-1.fc30.x86_64", "Installed: userspace-rcu-0.10.1-5.fc30.x86_64", "Installed: libblockdev-part-2.23-1.fc30.x86_64", "Installed: dmraid-1.0.0.rc16-41.fc30.x86_64", "Installed: dmraid-events-1.0.0.rc16-41.fc30.x86_64", "Installed: lzo-2.08-15.fc30.x86_64", "Installed: libblockdev-swap-2.23-1.fc30.x86_64", "Installed: lvm2-2.02.183-3.fc30.x86_64", "Installed: libblockdev-utils-2.23-1.fc30.x86_64", "Installed: lvm2-libs-2.02.183-3.fc30.x86_64", "Installed: python3-blivet-1:3.1.4-1.fc30.noarch", "Installed: python3-blockdev-2.23-1.fc30.x86_64", "Installed: daxctl-libs-68-1.fc30.x86_64", "Installed: mdadm-4.1-1.fc30.x86_64", "Installed: blivet-data-1:3.1.4-1.fc30.noarch", "Installed: sgpio-1.2.0.10-23.fc30.x86_64", "Installed: nspr-4.25.0-1.fc30.x86_64", "Installed: python3-bytesize-2.2-1.fc30.x86_64", "Installed: device-mapper-event-1.02.154-3.fc30.x86_64", "Installed: lsof-4.91-3.fc30.x86_64", "Installed: nss-3.51.1-1.fc30.x86_64", "Installed: device-mapper-event-libs-1.02.154-3.fc30.x86_64", "Installed: device-mapper-multipath-0.7.9-6.git2df6110.fc30.x86_64", "Installed: gdisk-1.0.5-1.fc30.x86_64", "Installed: device-mapper-multipath-libs-0.7.9-6.git2df6110.fc30.x86_64", "Installed: nss-softokn-3.51.1-1.fc30.x86_64", "Installed: python3-gobject-base-3.32.2-1.fc30.x86_64", "Installed: device-mapper-persistent-data-0.7.6-4.fc30.x86_64", "Installed: gobject-introspection-1.60.2-1.fc30.x86_64", "Installed: nss-softokn-freebl-3.51.1-1.fc30.x86_64", "Installed: libbytesize-2.2-1.fc30.x86_64", "Installed: nss-sysinit-3.51.1-1.fc30.x86_64", "Installed: nss-util-3.51.1-1.fc30.x86_64", "Installed: volume_key-libs-0.3.12-3.fc30.x86_64", "Installed: bcache-tools-1.0.8-15.fc30.x86_64", "Installed: ndctl-68-1.fc30.x86_64", "Installed: ndctl-libs-68-1.fc30.x86_64", "Installed: libblockdev-2.23-1.fc30.x86_64", "Installed: libblockdev-btrfs-2.23-1.fc30.x86_64", "Installed: libblockdev-crypto-2.23-1.fc30.x86_64", "Installed: python3-pyudev-0.21.0-10.fc30.noarch", "Installed: btrfs-progs-5.6-1.fc30.x86_64", "Installed: libblockdev-dm-2.23-1.fc30.x86_64", "Installed: libblockdev-fs-2.23-1.fc30.x86_64", "Installed: libblockdev-kbd-2.23-1.fc30.x86_64", "Installed: libblockdev-loop-2.23-1.fc30.x86_64", "Installed: libblockdev-lvm-2.23-1.fc30.x86_64", "Installed: python3-pyparted-1:3.11.2-1.fc30.x86_64", "Installed: libaio-0.3.111-4.fc30.x86_64", "Installed: libblockdev-mdraid-2.23-1.fc30.x86_64"]} TASK [storage : initialize internal facts] ************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.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 [storage : Apply defaults to pools and volumes [1/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:28 TASK [storage : Apply defaults to pools and volumes [2/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:36 TASK [storage : Apply defaults to pools and volumes [3/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:44 TASK [storage : Apply defaults to pools and volumes [4/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:52 TASK [storage : Apply defaults to pools and volumes [5/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:61 TASK [storage : Apply defaults to pools and volumes [6/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:72 TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools": [] } TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_volumes": [] } TASK [storage : get required packages] ***************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": []} TASK [storage : make sure required packages are installed] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : manage the pools and volumes to match the specified state] ***** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:104 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": []} TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:113 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "blivet_output": { "actions": [], "changed": false, "failed": false, "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": [] } } TASK [storage : set the list of pools for test verification] ******************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:116 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [storage : set the list of volumes for test verification] ***************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:120 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : manage mounts to match the specified state] ******************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:132 TASK [storage : tell systemd to refresh its view of /etc/fstab] **************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:143 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [storage : Update facts] ************************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:153 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmpr6sk038f/tests/tests_lvm_errors.yml:21 included: /tmp/tmpr6sk038f/tests/get_unused_disk.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [Find unused disks in the system] ***************************************** task path: /tmp/tmpr6sk038f/tests/get_unused_disk.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "disks": ["vdb"]} TASK [set_fact] **************************************************************** task path: /tmp/tmpr6sk038f/tests/get_unused_disk.yml:8 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"unused_disks": ["vdb"]}, "changed": false} TASK [Exit playbook when there's not enough unused disks in the system] ******** task path: /tmp/tmpr6sk038f/tests/get_unused_disk.yml:12 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Print unused disks] ****************************************************** task path: /tmp/tmpr6sk038f/tests/get_unused_disk.yml:17 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "unused_disks": [ "vdb" ] } TASK [Try to create LVM with an invalid disk specification.] ******************* task path: /tmp/tmpr6sk038f/tests/tests_lvm_errors.yml:28 TASK [storage : Set version specific variables] ******************************** task path: /tmp/tmpr6sk038f/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/tmp/tmpr6sk038f/vars/Fedora.yml) => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-dm", "libblockdev-lvm", "libblockdev-part", "libblockdev-mdraid"]}, "ansible_included_var_files": ["/tmp/tmpr6sk038f/vars/Fedora.yml"], "ansible_loop_var": "item", "changed": false, "item": "/tmp/tmpr6sk038f/vars/Fedora.yml"} TASK [storage : define an empty list of pools to be used in testing] *********** task path: /tmp/tmpr6sk038f/tasks/main.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [storage : define an empty list of volumes to be used in testing] ********* task path: /tmp/tmpr6sk038f/tasks/main.yml:13 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : include the appropriate provider tasks] ************************ task path: /tmp/tmpr6sk038f/tasks/main.yml:17 included: /tmp/tmpr6sk038f/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [storage : get a list of rpm packages installed on host machine] ********** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [storage : make sure blivet is available] ********************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : initialize internal facts] ************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.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 [storage : Apply defaults to pools and volumes [1/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:28 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'name': 'foo', 'disks': ['/non/existent/disk'], 'volumes': [{'name': 'test1', 'size': '5g', 'mount_point': '/opt/test1'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["/non/existent/disk"], "name": "foo", "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 [storage : Apply defaults to pools and volumes [2/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:36 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=[{'state': 'present', 'type': 'lvm', 'name': 'foo', 'disks': ['/non/existent/disk'], 'volumes': [{'name': 'test1', 'size': '5g', 'mount_point': '/opt/test1'}]}, {'name': 'test1', 'size': '5g', 'mount_point': '/opt/test1'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "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"], "name": "foo", "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "5g"}]}, {"mount_point": "/opt/test1", "name": "test1", "size": "5g"}]} TASK [storage : Apply defaults to pools and volumes [3/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:44 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=[{'name': 'test1', 'size': '5g', 'mount_point': '/opt/test1'}, {'state': 'present', 'type': 'lvm', 'size': 0, 'fs_type': 'xfs', 'fs_label': '', 'fs_create_options': '', 'fs_overwrite_existing': True, 'mount_point': '', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid'}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "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"}, {"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "size": 0, "state": "present", "type": "lvm"}]} TASK [storage : Apply defaults to pools and volumes [4/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:52 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'name': 'foo', 'disks': ['/non/existent/disk'], 'volumes': [{'name': 'test1', 'size': '5g', 'mount_point': '/opt/test1'}]}) => {"ansible_facts": {"_storage_vols_no_defaults_by_pool": {"foo": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "5g", "state": "present", "type": "lvm"}]}}, "ansible_loop_var": "item", "changed": false, "item": {"disks": ["/non/existent/disk"], "name": "foo", "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "5g"}]}} TASK [storage : Apply defaults to pools and volumes [5/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:61 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'name': 'foo', 'disks': ['/non/existent/disk'], 'volumes': [{'name': 'test1', 'size': '5g', 'mount_point': '/opt/test1'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["/non/existent/disk"], "name": "foo", "state": "present", "type": "lvm", "volumes": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "5g", "state": "present", "type": "lvm"}]}]}, "ansible_index_var": "idx", "ansible_loop_var": "pool", "changed": false, "idx": 0, "pool": {"disks": ["/non/existent/disk"], "name": "foo", "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "5g"}]}} TASK [storage : Apply defaults to pools and volumes [6/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:72 TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools": [ { "disks": [ "/non/existent/disk" ], "name": "foo", "state": "present", "type": "lvm", "volumes": [ { "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "5g", "state": "present", "type": "lvm" } ] } ] } TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_volumes": [] } TASK [storage : get required packages] ***************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": [], "mounts": [], "packages": ["lvm2", "xfsprogs"], "pools": [], "volumes": []} TASK [storage : make sure required packages are installed] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : manage the pools and volumes to match the specified state] ***** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:104 fatal: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2]: FAILED! => {"actions": [], "changed": false, "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/tmpr6sk038f/tests/tests_lvm_errors.yml:45 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Try to create LVM with an invalid size specification.] ******************* task path: /tmp/tmpr6sk038f/tests/tests_lvm_errors.yml:66 TASK [storage : Set version specific variables] ******************************** task path: /tmp/tmpr6sk038f/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/tmp/tmpr6sk038f/vars/Fedora.yml) => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-dm", "libblockdev-lvm", "libblockdev-part", "libblockdev-mdraid"]}, "ansible_included_var_files": ["/tmp/tmpr6sk038f/vars/Fedora.yml"], "ansible_loop_var": "item", "changed": false, "item": "/tmp/tmpr6sk038f/vars/Fedora.yml"} TASK [storage : define an empty list of pools to be used in testing] *********** task path: /tmp/tmpr6sk038f/tasks/main.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [storage : define an empty list of volumes to be used in testing] ********* task path: /tmp/tmpr6sk038f/tasks/main.yml:13 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : include the appropriate provider tasks] ************************ task path: /tmp/tmpr6sk038f/tasks/main.yml:17 included: /tmp/tmpr6sk038f/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [storage : get a list of rpm packages installed on host machine] ********** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [storage : make sure blivet is available] ********************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : initialize internal facts] ************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.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 [storage : Apply defaults to pools and volumes [1/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:28 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'name': 'foo', 'disks': ['vdb'], 'volumes': [{'name': 'test1', 'size': 'xyz GiB', 'mount_point': '/opt/test1'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vdb"], "name": "foo", "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "xyz GiB"}]}]}, "ansible_loop_var": "pool", "changed": false, "pool": {"disks": ["vdb"], "name": "foo", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "xyz GiB"}]}} TASK [storage : Apply defaults to pools and volumes [2/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:36 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=[{'state': 'present', 'type': 'lvm', 'name': 'foo', 'disks': ['vdb'], 'volumes': [{'name': 'test1', 'size': 'xyz GiB', 'mount_point': '/opt/test1'}]}, {'name': 'test1', 'size': 'xyz GiB', 'mount_point': '/opt/test1'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "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": ["vdb"], "name": "foo", "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "xyz GiB"}]}, {"mount_point": "/opt/test1", "name": "test1", "size": "xyz GiB"}]} TASK [storage : Apply defaults to pools and volumes [3/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:44 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=[{'name': 'test1', 'size': 'xyz GiB', 'mount_point': '/opt/test1'}, {'state': 'present', 'type': 'lvm', 'size': 0, 'fs_type': 'xfs', 'fs_label': '', 'fs_create_options': '', 'fs_overwrite_existing': True, 'mount_point': '', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid'}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "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"}, {"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "size": 0, "state": "present", "type": "lvm"}]} TASK [storage : Apply defaults to pools and volumes [4/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:52 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'name': 'foo', 'disks': ['vdb'], 'volumes': [{'name': 'test1', 'size': 'xyz GiB', 'mount_point': '/opt/test1'}]}) => {"ansible_facts": {"_storage_vols_no_defaults_by_pool": {"foo": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "xyz GiB", "state": "present", "type": "lvm"}]}}, "ansible_loop_var": "item", "changed": false, "item": {"disks": ["vdb"], "name": "foo", "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "xyz GiB"}]}} TASK [storage : Apply defaults to pools and volumes [5/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:61 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'name': 'foo', 'disks': ['vdb'], 'volumes': [{'name': 'test1', 'size': 'xyz GiB', 'mount_point': '/opt/test1'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vdb"], "name": "foo", "state": "present", "type": "lvm", "volumes": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "xyz GiB", "state": "present", "type": "lvm"}]}]}, "ansible_index_var": "idx", "ansible_loop_var": "pool", "changed": false, "idx": 0, "pool": {"disks": ["vdb"], "name": "foo", "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "xyz GiB"}]}} TASK [storage : Apply defaults to pools and volumes [6/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:72 TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools": [ { "disks": [ "vdb" ], "name": "foo", "state": "present", "type": "lvm", "volumes": [ { "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "xyz GiB", "state": "present", "type": "lvm" } ] } ] } TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_volumes": [] } TASK [storage : get required packages] ***************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": [], "mounts": [], "packages": ["lvm2", "xfsprogs"], "pools": [], "volumes": []} TASK [storage : make sure required packages are installed] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : manage the pools and volumes to match the specified state] ***** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:104 fatal: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2]: FAILED! => {"actions": [], "changed": false, "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/tmpr6sk038f/tests/tests_lvm_errors.yml:83 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Try to create LVM with a too-large volume size.] ************************* task path: /tmp/tmpr6sk038f/tests/tests_lvm_errors.yml:99 TASK [storage : Set version specific variables] ******************************** task path: /tmp/tmpr6sk038f/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/tmp/tmpr6sk038f/vars/Fedora.yml) => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-dm", "libblockdev-lvm", "libblockdev-part", "libblockdev-mdraid"]}, "ansible_included_var_files": ["/tmp/tmpr6sk038f/vars/Fedora.yml"], "ansible_loop_var": "item", "changed": false, "item": "/tmp/tmpr6sk038f/vars/Fedora.yml"} TASK [storage : define an empty list of pools to be used in testing] *********** task path: /tmp/tmpr6sk038f/tasks/main.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [storage : define an empty list of volumes to be used in testing] ********* task path: /tmp/tmpr6sk038f/tasks/main.yml:13 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : include the appropriate provider tasks] ************************ task path: /tmp/tmpr6sk038f/tasks/main.yml:17 included: /tmp/tmpr6sk038f/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [storage : get a list of rpm packages installed on host machine] ********** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [storage : make sure blivet is available] ********************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : initialize internal facts] ************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.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 [storage : Apply defaults to pools and volumes [1/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:28 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'name': 'foo', 'disks': ['vdb'], 'volumes': [{'name': 'test1', 'size': '10737418752', 'mount_point': '/opt/test1'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vdb"], "name": "foo", "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "10737418752"}]}]}, "ansible_loop_var": "pool", "changed": false, "pool": {"disks": ["vdb"], "name": "foo", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "10737418752"}]}} TASK [storage : Apply defaults to pools and volumes [2/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:36 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=[{'state': 'present', 'type': 'lvm', 'name': 'foo', 'disks': ['vdb'], 'volumes': [{'name': 'test1', 'size': '10737418752', 'mount_point': '/opt/test1'}]}, {'name': 'test1', 'size': '10737418752', 'mount_point': '/opt/test1'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "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": ["vdb"], "name": "foo", "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "10737418752"}]}, {"mount_point": "/opt/test1", "name": "test1", "size": "10737418752"}]} TASK [storage : Apply defaults to pools and volumes [3/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:44 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=[{'name': 'test1', 'size': '10737418752', 'mount_point': '/opt/test1'}, {'state': 'present', 'type': 'lvm', 'size': 0, 'fs_type': 'xfs', 'fs_label': '', 'fs_create_options': '', 'fs_overwrite_existing': True, 'mount_point': '', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid'}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "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"}, {"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "size": 0, "state": "present", "type": "lvm"}]} TASK [storage : Apply defaults to pools and volumes [4/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:52 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'name': 'foo', 'disks': ['vdb'], 'volumes': [{'name': 'test1', 'size': '10737418752', 'mount_point': '/opt/test1'}]}) => {"ansible_facts": {"_storage_vols_no_defaults_by_pool": {"foo": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "10737418752", "state": "present", "type": "lvm"}]}}, "ansible_loop_var": "item", "changed": false, "item": {"disks": ["vdb"], "name": "foo", "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "10737418752"}]}} TASK [storage : Apply defaults to pools and volumes [5/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:61 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'name': 'foo', 'disks': ['vdb'], 'volumes': [{'name': 'test1', 'size': '10737418752', 'mount_point': '/opt/test1'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vdb"], "name": "foo", "state": "present", "type": "lvm", "volumes": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "10737418752", "state": "present", "type": "lvm"}]}]}, "ansible_index_var": "idx", "ansible_loop_var": "pool", "changed": false, "idx": 0, "pool": {"disks": ["vdb"], "name": "foo", "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "10737418752"}]}} TASK [storage : Apply defaults to pools and volumes [6/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:72 TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools": [ { "disks": [ "vdb" ], "name": "foo", "state": "present", "type": "lvm", "volumes": [ { "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "10737418752", "state": "present", "type": "lvm" } ] } ] } TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_volumes": [] } TASK [storage : get required packages] ***************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": [], "mounts": [], "packages": ["lvm2", "xfsprogs"], "pools": [], "volumes": []} TASK [storage : make sure required packages are installed] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : manage the pools and volumes to match the specified state] ***** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:104 fatal: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2]: FAILED! => {"actions": [], "changed": false, "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/tmpr6sk038f/tests/tests_lvm_errors.yml:116 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Try to create LVM pool with disks specified as non-list.] **************** task path: /tmp/tmpr6sk038f/tests/tests_lvm_errors.yml:132 TASK [storage : Set version specific variables] ******************************** task path: /tmp/tmpr6sk038f/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/tmp/tmpr6sk038f/vars/Fedora.yml) => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-dm", "libblockdev-lvm", "libblockdev-part", "libblockdev-mdraid"]}, "ansible_included_var_files": ["/tmp/tmpr6sk038f/vars/Fedora.yml"], "ansible_loop_var": "item", "changed": false, "item": "/tmp/tmpr6sk038f/vars/Fedora.yml"} TASK [storage : define an empty list of pools to be used in testing] *********** task path: /tmp/tmpr6sk038f/tasks/main.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [storage : define an empty list of volumes to be used in testing] ********* task path: /tmp/tmpr6sk038f/tasks/main.yml:13 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : include the appropriate provider tasks] ************************ task path: /tmp/tmpr6sk038f/tasks/main.yml:17 included: /tmp/tmpr6sk038f/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [storage : get a list of rpm packages installed on host machine] ********** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [storage : make sure blivet is available] ********************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : initialize internal facts] ************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.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 [storage : Apply defaults to pools and volumes [1/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:28 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'name': 'foo', 'disks': 'vdb', 'volumes': [{'name': 'test1', 'size': '10737418752', 'mount_point': '/opt/test1'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": "vdb", "name": "foo", "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "10737418752"}]}]}, "ansible_loop_var": "pool", "changed": false, "pool": {"disks": "vdb", "name": "foo", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "10737418752"}]}} TASK [storage : Apply defaults to pools and volumes [2/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:36 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=[{'state': 'present', 'type': 'lvm', 'name': 'foo', 'disks': 'vdb', 'volumes': [{'name': 'test1', 'size': '10737418752', 'mount_point': '/opt/test1'}]}, {'name': 'test1', 'size': '10737418752', 'mount_point': '/opt/test1'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "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": "vdb", "name": "foo", "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "10737418752"}]}, {"mount_point": "/opt/test1", "name": "test1", "size": "10737418752"}]} TASK [storage : Apply defaults to pools and volumes [3/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:44 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=[{'name': 'test1', 'size': '10737418752', 'mount_point': '/opt/test1'}, {'state': 'present', 'type': 'lvm', 'size': 0, 'fs_type': 'xfs', 'fs_label': '', 'fs_create_options': '', 'fs_overwrite_existing': True, 'mount_point': '', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid'}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "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"}, {"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "size": 0, "state": "present", "type": "lvm"}]} TASK [storage : Apply defaults to pools and volumes [4/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:52 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'name': 'foo', 'disks': 'vdb', 'volumes': [{'name': 'test1', 'size': '10737418752', 'mount_point': '/opt/test1'}]}) => {"ansible_facts": {"_storage_vols_no_defaults_by_pool": {"foo": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "10737418752", "state": "present", "type": "lvm"}]}}, "ansible_loop_var": "item", "changed": false, "item": {"disks": "vdb", "name": "foo", "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "10737418752"}]}} TASK [storage : Apply defaults to pools and volumes [5/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:61 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'name': 'foo', 'disks': 'vdb', 'volumes': [{'name': 'test1', 'size': '10737418752', 'mount_point': '/opt/test1'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": "vdb", "name": "foo", "state": "present", "type": "lvm", "volumes": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "10737418752", "state": "present", "type": "lvm"}]}]}, "ansible_index_var": "idx", "ansible_loop_var": "pool", "changed": false, "idx": 0, "pool": {"disks": "vdb", "name": "foo", "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "10737418752"}]}} TASK [storage : Apply defaults to pools and volumes [6/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:72 TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools": [ { "disks": "vdb", "name": "foo", "state": "present", "type": "lvm", "volumes": [ { "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "10737418752", "state": "present", "type": "lvm" } ] } ] } TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_volumes": [] } TASK [storage : get required packages] ***************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": [], "mounts": [], "packages": ["lvm2", "xfsprogs"], "pools": [], "volumes": []} TASK [storage : make sure required packages are installed] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : manage the pools and volumes to match the specified state] ***** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:104 fatal: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2]: FAILED! => {"actions": [], "changed": false, "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/tmpr6sk038f/tests/tests_lvm_errors.yml:149 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Try to create LVM pool with no disks specified.] ************************* task path: /tmp/tmpr6sk038f/tests/tests_lvm_errors.yml:165 TASK [storage : Set version specific variables] ******************************** task path: /tmp/tmpr6sk038f/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/tmp/tmpr6sk038f/vars/Fedora.yml) => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-dm", "libblockdev-lvm", "libblockdev-part", "libblockdev-mdraid"]}, "ansible_included_var_files": ["/tmp/tmpr6sk038f/vars/Fedora.yml"], "ansible_loop_var": "item", "changed": false, "item": "/tmp/tmpr6sk038f/vars/Fedora.yml"} TASK [storage : define an empty list of pools to be used in testing] *********** task path: /tmp/tmpr6sk038f/tasks/main.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [storage : define an empty list of volumes to be used in testing] ********* task path: /tmp/tmpr6sk038f/tasks/main.yml:13 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : include the appropriate provider tasks] ************************ task path: /tmp/tmpr6sk038f/tasks/main.yml:17 included: /tmp/tmpr6sk038f/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [storage : get a list of rpm packages installed on host machine] ********** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [storage : make sure blivet is available] ********************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : initialize internal facts] ************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.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 [storage : Apply defaults to pools and volumes [1/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:28 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'name': 'foo', 'disks': [], 'volumes': [{'name': 'test1', 'size': '10737418752', 'mount_point': '/opt/test1'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": [], "name": "foo", "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 [storage : Apply defaults to pools and volumes [2/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:36 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=[{'state': 'present', 'type': 'lvm', 'name': 'foo', 'disks': [], 'volumes': [{'name': 'test1', 'size': '10737418752', 'mount_point': '/opt/test1'}]}, {'name': 'test1', 'size': '10737418752', 'mount_point': '/opt/test1'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "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": [], "name": "foo", "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "10737418752"}]}, {"mount_point": "/opt/test1", "name": "test1", "size": "10737418752"}]} TASK [storage : Apply defaults to pools and volumes [3/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:44 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=[{'name': 'test1', 'size': '10737418752', 'mount_point': '/opt/test1'}, {'state': 'present', 'type': 'lvm', 'size': 0, 'fs_type': 'xfs', 'fs_label': '', 'fs_create_options': '', 'fs_overwrite_existing': True, 'mount_point': '', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid'}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "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"}, {"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "size": 0, "state": "present", "type": "lvm"}]} TASK [storage : Apply defaults to pools and volumes [4/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:52 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'name': 'foo', 'disks': [], 'volumes': [{'name': 'test1', 'size': '10737418752', 'mount_point': '/opt/test1'}]}) => {"ansible_facts": {"_storage_vols_no_defaults_by_pool": {"foo": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "10737418752", "state": "present", "type": "lvm"}]}}, "ansible_loop_var": "item", "changed": false, "item": {"disks": [], "name": "foo", "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "10737418752"}]}} TASK [storage : Apply defaults to pools and volumes [5/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:61 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'name': 'foo', 'disks': [], 'volumes': [{'name': 'test1', 'size': '10737418752', 'mount_point': '/opt/test1'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": [], "name": "foo", "state": "present", "type": "lvm", "volumes": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "10737418752", "state": "present", "type": "lvm"}]}]}, "ansible_index_var": "idx", "ansible_loop_var": "pool", "changed": false, "idx": 0, "pool": {"disks": [], "name": "foo", "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "10737418752"}]}} TASK [storage : Apply defaults to pools and volumes [6/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:72 TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools": [ { "disks": [], "name": "foo", "state": "present", "type": "lvm", "volumes": [ { "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "10737418752", "state": "present", "type": "lvm" } ] } ] } TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_volumes": [] } TASK [storage : get required packages] ***************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": [], "mounts": [], "packages": ["lvm2", "xfsprogs"], "pools": [], "volumes": []} TASK [storage : make sure required packages are installed] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : manage the pools and volumes to match the specified state] ***** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:104 fatal: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2]: FAILED! => {"actions": [], "changed": false, "leaves": [], "mounts": [], "msg": "no disks specified for pool 'foo'", "packages": [], "pools": [], "volumes": []} TASK [Check that we failed in the role] **************************************** task path: /tmp/tmpr6sk038f/tests/tests_lvm_errors.yml:182 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Try to create LVM volume from outside of any pool.] ********************** task path: /tmp/tmpr6sk038f/tests/tests_lvm_errors.yml:198 TASK [storage : Set version specific variables] ******************************** task path: /tmp/tmpr6sk038f/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/tmp/tmpr6sk038f/vars/Fedora.yml) => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-dm", "libblockdev-lvm", "libblockdev-part", "libblockdev-mdraid"]}, "ansible_included_var_files": ["/tmp/tmpr6sk038f/vars/Fedora.yml"], "ansible_loop_var": "item", "changed": false, "item": "/tmp/tmpr6sk038f/vars/Fedora.yml"} TASK [storage : define an empty list of pools to be used in testing] *********** task path: /tmp/tmpr6sk038f/tasks/main.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [storage : define an empty list of volumes to be used in testing] ********* task path: /tmp/tmpr6sk038f/tasks/main.yml:13 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : include the appropriate provider tasks] ************************ task path: /tmp/tmpr6sk038f/tasks/main.yml:17 included: /tmp/tmpr6sk038f/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [storage : get a list of rpm packages installed on host machine] ********** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [storage : make sure blivet is available] ********************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : initialize internal facts] ************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.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 [storage : Apply defaults to pools and volumes [1/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:28 TASK [storage : Apply defaults to pools and volumes [2/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:36 TASK [storage : Apply defaults to pools and volumes [3/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:44 TASK [storage : Apply defaults to pools and volumes [4/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:52 TASK [storage : Apply defaults to pools and volumes [5/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:61 TASK [storage : Apply defaults to pools and volumes [6/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:72 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'name': 'test1', 'type': 'lvm', 'disks': [], 'size': '5g', 'mount_point': '/opt/test1'}) => {"ansible_facts": {"_storage_volumes": [{"disks": [], "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "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 [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools": [] } TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_volumes": [ { "disks": [], "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "size": "5g", "state": "present", "type": "lvm" } ] } TASK [storage : get required packages] ***************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": [], "mounts": [], "packages": ["lvm2", "xfsprogs"], "pools": [], "volumes": []} TASK [storage : make sure required packages are installed] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : manage the pools and volumes to match the specified state] ***** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:104 An exception occurred during task execution. To see the full traceback, use -vvv. The error was: AttributeError: 'NoneType' object has no attribute '_device' fatal: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2]: FAILED! => {"changed": false, "module_stderr": "Shared connection to 127.0.0.3 closed.\r\n", "module_stdout": "Traceback (most recent call last):\r\n File \"/root/.ansible/tmp/ansible-tmp-1590586864.5846903-140190-80138407151173/AnsiballZ_blivet.py\", line 102, in \r\n _ansiballz_main()\r\n File \"/root/.ansible/tmp/ansible-tmp-1590586864.5846903-140190-80138407151173/AnsiballZ_blivet.py\", line 94, in _ansiballz_main\r\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\r\n File \"/root/.ansible/tmp/ansible-tmp-1590586864.5846903-140190-80138407151173/AnsiballZ_blivet.py\", line 40, in invoke_module\r\n runpy.run_module(mod_name='ansible.modules.blivet', init_globals=None, run_name='__main__', alter_sys=True)\r\n File \"/usr/lib64/python3.7/runpy.py\", line 205, in run_module\r\n return _run_module_code(code, init_globals, run_name, mod_spec)\r\n File \"/usr/lib64/python3.7/runpy.py\", line 96, in _run_module_code\r\n mod_name, mod_spec, pkg_name, script_name)\r\n File \"/usr/lib64/python3.7/runpy.py\", line 85, in _run_code\r\n exec(code, run_globals)\r\n File \"/tmp/ansible_blivet_payload_ze87bdux/ansible_blivet_payload.zip/ansible/modules/blivet.py\", line 936, in \r\n File \"/tmp/ansible_blivet_payload_ze87bdux/ansible_blivet_payload.zip/ansible/modules/blivet.py\", line 933, in main\r\n File \"/tmp/ansible_blivet_payload_ze87bdux/ansible_blivet_payload.zip/ansible/modules/blivet.py\", line 902, in run_module\r\n File \"/tmp/ansible_blivet_payload_ze87bdux/ansible_blivet_payload.zip/ansible/modules/blivet.py\", line 688, in manage_volume\r\n File \"/tmp/ansible_blivet_payload_ze87bdux/ansible_blivet_payload.zip/ansible/modules/blivet.py\", line 268, in manage\r\n File \"/tmp/ansible_blivet_payload_ze87bdux/ansible_blivet_payload.zip/ansible/modules/blivet.py\", line 193, in _look_up_device\r\n File \"/tmp/ansible_blivet_payload_ze87bdux/ansible_blivet_payload.zip/ansible/modules/blivet.py\", line 356, 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/tmpr6sk038f/tests/tests_lvm_errors.yml:214 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Try to create two pools w/ the same name] ******************************** task path: /tmp/tmpr6sk038f/tests/tests_lvm_errors.yml:230 TASK [storage : Set version specific variables] ******************************** task path: /tmp/tmpr6sk038f/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/tmp/tmpr6sk038f/vars/Fedora.yml) => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-dm", "libblockdev-lvm", "libblockdev-part", "libblockdev-mdraid"]}, "ansible_included_var_files": ["/tmp/tmpr6sk038f/vars/Fedora.yml"], "ansible_loop_var": "item", "changed": false, "item": "/tmp/tmpr6sk038f/vars/Fedora.yml"} TASK [storage : define an empty list of pools to be used in testing] *********** task path: /tmp/tmpr6sk038f/tasks/main.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [storage : define an empty list of volumes to be used in testing] ********* task path: /tmp/tmpr6sk038f/tasks/main.yml:13 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : include the appropriate provider tasks] ************************ task path: /tmp/tmpr6sk038f/tasks/main.yml:17 included: /tmp/tmpr6sk038f/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [storage : get a list of rpm packages installed on host machine] ********** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [storage : make sure blivet is available] ********************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : initialize internal facts] ************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.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 [storage : Apply defaults to pools and volumes [1/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:28 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'name': 'pool1', 'type': 'lvm', 'disks': ['vdb']}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vdb"], "name": "pool1", "state": "present", "type": "lvm"}]}, "ansible_loop_var": "pool", "changed": false, "pool": {"disks": ["vdb"], "name": "pool1", "type": "lvm"}} ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'name': 'pool1', 'type': 'lvm', 'disks': ['vdb']}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vdb"], "name": "pool1", "state": "present", "type": "lvm"}, {"disks": ["vdb"], "name": "pool1", "state": "present", "type": "lvm"}]}, "ansible_loop_var": "pool", "changed": false, "pool": {"disks": ["vdb"], "name": "pool1", "type": "lvm"}} TASK [storage : Apply defaults to pools and volumes [2/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:36 TASK [storage : Apply defaults to pools and volumes [3/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:44 TASK [storage : Apply defaults to pools and volumes [4/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:52 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'name': 'pool1', 'disks': ['vdb']}) => {"ansible_facts": {"_storage_vols_no_defaults_by_pool": {"pool1": []}}, "ansible_loop_var": "item", "changed": false, "item": {"disks": ["vdb"], "name": "pool1", "state": "present", "type": "lvm"}} ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'name': 'pool1', 'disks': ['vdb']}) => {"ansible_facts": {"_storage_vols_no_defaults_by_pool": {"pool1": []}}, "ansible_loop_var": "item", "changed": false, "item": {"disks": ["vdb"], "name": "pool1", "state": "present", "type": "lvm"}} TASK [storage : Apply defaults to pools and volumes [5/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:61 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'name': 'pool1', 'disks': ['vdb']}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vdb"], "name": "pool1", "state": "present", "type": "lvm", "volumes": []}, {"disks": ["vdb"], "name": "pool1", "state": "present", "type": "lvm"}]}, "ansible_index_var": "idx", "ansible_loop_var": "pool", "changed": false, "idx": 0, "pool": {"disks": ["vdb"], "name": "pool1", "state": "present", "type": "lvm"}} ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'name': 'pool1', 'disks': ['vdb']}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vdb"], "name": "pool1", "state": "present", "type": "lvm", "volumes": []}, {"disks": ["vdb"], "name": "pool1", "state": "present", "type": "lvm", "volumes": []}]}, "ansible_index_var": "idx", "ansible_loop_var": "pool", "changed": false, "idx": 1, "pool": {"disks": ["vdb"], "name": "pool1", "state": "present", "type": "lvm"}} TASK [storage : Apply defaults to pools and volumes [6/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:72 TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools": [ { "disks": [ "vdb" ], "name": "pool1", "state": "present", "type": "lvm", "volumes": [] }, { "disks": [ "vdb" ], "name": "pool1", "state": "present", "type": "lvm", "volumes": [] } ] } TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_volumes": [] } TASK [storage : get required packages] ***************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": [], "mounts": [], "packages": ["lvm2"], "pools": [], "volumes": []} TASK [storage : make sure required packages are installed] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : manage the pools and volumes to match the specified state] ***** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:104 fatal: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2]: FAILED! => {"actions": [], "changed": false, "leaves": [], "mounts": [], "msg": "multiple pools with the same name: pool1", "packages": [], "pools": [], "volumes": []} TASK [Check that we failed in the role] **************************************** task path: /tmp/tmpr6sk038f/tests/tests_lvm_errors.yml:247 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the output of the duplicate pools test] *************************** task path: /tmp/tmpr6sk038f/tests/tests_lvm_errors.yml:256 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Try to create two volumes w/ the same name] ****************************** task path: /tmp/tmpr6sk038f/tests/tests_lvm_errors.yml:265 TASK [storage : Set version specific variables] ******************************** task path: /tmp/tmpr6sk038f/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/tmp/tmpr6sk038f/vars/Fedora.yml) => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-dm", "libblockdev-lvm", "libblockdev-part", "libblockdev-mdraid"]}, "ansible_included_var_files": ["/tmp/tmpr6sk038f/vars/Fedora.yml"], "ansible_loop_var": "item", "changed": false, "item": "/tmp/tmpr6sk038f/vars/Fedora.yml"} TASK [storage : define an empty list of pools to be used in testing] *********** task path: /tmp/tmpr6sk038f/tasks/main.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [storage : define an empty list of volumes to be used in testing] ********* task path: /tmp/tmpr6sk038f/tasks/main.yml:13 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : include the appropriate provider tasks] ************************ task path: /tmp/tmpr6sk038f/tasks/main.yml:17 included: /tmp/tmpr6sk038f/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [storage : get a list of rpm packages installed on host machine] ********** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [storage : make sure blivet is available] ********************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : initialize internal facts] ************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.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 [storage : Apply defaults to pools and volumes [1/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:28 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'name': 'pool1', 'type': 'lvm', 'disks': ['vdb'], 'volumes': [{'name': 'test1', 'type': 'lvm', 'size': '5g', 'mount_point': '/opt/test1'}, {'name': 'test1', 'type': 'lvm', 'size': '2g', 'mount_point': '/opt/test2'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vdb"], "name": "pool1", "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": ["vdb"], "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 [storage : Apply defaults to pools and volumes [2/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:36 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=[{'state': 'present', 'type': 'lvm', 'name': 'pool1', 'disks': ['vdb'], 'volumes': [{'name': 'test1', 'type': 'lvm', 'size': '5g', 'mount_point': '/opt/test1'}, {'name': 'test1', 'type': 'lvm', 'size': '2g', 'mount_point': '/opt/test2'}]}, {'name': 'test1', 'type': 'lvm', 'size': '5g', 'mount_point': '/opt/test1'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "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": ["vdb"], "name": "pool1", "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-30-1.2.x86_64.qcow2] => (item=[{'state': 'present', 'type': 'lvm', 'name': 'pool1', 'disks': ['vdb'], 'volumes': [{'name': 'test1', 'type': 'lvm', 'size': '5g', 'mount_point': '/opt/test1'}, {'name': 'test1', 'type': 'lvm', 'size': '2g', 'mount_point': '/opt/test2'}]}, {'name': 'test1', 'type': 'lvm', 'size': '2g', 'mount_point': '/opt/test2'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "size": 0, "state": "present", "type": "lvm"}, {"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "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": ["vdb"], "name": "pool1", "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 [storage : Apply defaults to pools and volumes [3/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:44 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=[{'name': 'test1', 'type': 'lvm', 'size': '5g', 'mount_point': '/opt/test1'}, {'state': 'present', 'type': 'lvm', 'size': 0, 'fs_type': 'xfs', 'fs_label': '', 'fs_create_options': '', 'fs_overwrite_existing': True, 'mount_point': '', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid'}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": 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", "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"}, {"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "size": 0, "state": "present", "type": "lvm"}]} ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=[{'name': 'test1', 'type': 'lvm', 'size': '2g', 'mount_point': '/opt/test2'}, {'state': 'present', 'type': 'lvm', 'size': 0, 'fs_type': 'xfs', 'fs_label': '', 'fs_create_options': '', 'fs_overwrite_existing': True, 'mount_point': '', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid'}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": 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", "size": "5g", "state": "present", "type": "lvm"}, {"fs_create_options": "", "fs_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", "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"}, {"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "size": 0, "state": "present", "type": "lvm"}]} TASK [storage : Apply defaults to pools and volumes [4/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:52 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'name': 'pool1', 'disks': ['vdb'], 'volumes': [{'name': 'test1', 'type': 'lvm', 'size': '5g', 'mount_point': '/opt/test1'}, {'name': 'test1', 'type': 'lvm', 'size': '2g', 'mount_point': '/opt/test2'}]}) => {"ansible_facts": {"_storage_vols_no_defaults_by_pool": {"pool1": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": 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", "size": "5g", "state": "present", "type": "lvm"}, {"fs_create_options": "", "fs_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", "size": "2g", "state": "present", "type": "lvm"}]}}, "ansible_loop_var": "item", "changed": false, "item": {"disks": ["vdb"], "name": "pool1", "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 [storage : Apply defaults to pools and volumes [5/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:61 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'name': 'pool1', 'disks': ['vdb'], 'volumes': [{'name': 'test1', 'type': 'lvm', 'size': '5g', 'mount_point': '/opt/test1'}, {'name': 'test1', 'type': 'lvm', 'size': '2g', 'mount_point': '/opt/test2'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vdb"], "name": "pool1", "state": "present", "type": "lvm", "volumes": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": 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", "size": "5g", "state": "present", "type": "lvm"}, {"fs_create_options": "", "fs_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", "size": "2g", "state": "present", "type": "lvm"}]}]}, "ansible_index_var": "idx", "ansible_loop_var": "pool", "changed": false, "idx": 0, "pool": {"disks": ["vdb"], "name": "pool1", "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 [storage : Apply defaults to pools and volumes [6/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:72 TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools": [ { "disks": [ "vdb" ], "name": "pool1", "state": "present", "type": "lvm", "volumes": [ { "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": 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", "size": "5g", "state": "present", "type": "lvm" }, { "fs_create_options": "", "fs_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", "size": "2g", "state": "present", "type": "lvm" } ] } ] } TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_volumes": [] } TASK [storage : get required packages] ***************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": [], "mounts": [], "packages": ["lvm2", "xfsprogs"], "pools": [], "volumes": []} TASK [storage : make sure required packages are installed] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : manage the pools and volumes to match the specified state] ***** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:104 fatal: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2]: FAILED! => {"actions": [], "changed": false, "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/tmpr6sk038f/tests/tests_lvm_errors.yml:288 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the output of the duplicate volumes test] ************************* task path: /tmp/tmpr6sk038f/tests/tests_lvm_errors.yml:297 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Create a pool] *********************************************************** task path: /tmp/tmpr6sk038f/tests/tests_lvm_errors.yml:304 TASK [storage : Set version specific variables] ******************************** task path: /tmp/tmpr6sk038f/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/tmp/tmpr6sk038f/vars/Fedora.yml) => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-dm", "libblockdev-lvm", "libblockdev-part", "libblockdev-mdraid"]}, "ansible_included_var_files": ["/tmp/tmpr6sk038f/vars/Fedora.yml"], "ansible_loop_var": "item", "changed": false, "item": "/tmp/tmpr6sk038f/vars/Fedora.yml"} TASK [storage : define an empty list of pools to be used in testing] *********** task path: /tmp/tmpr6sk038f/tasks/main.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [storage : define an empty list of volumes to be used in testing] ********* task path: /tmp/tmpr6sk038f/tasks/main.yml:13 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : include the appropriate provider tasks] ************************ task path: /tmp/tmpr6sk038f/tasks/main.yml:17 included: /tmp/tmpr6sk038f/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [storage : get a list of rpm packages installed on host machine] ********** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [storage : make sure blivet is available] ********************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : initialize internal facts] ************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.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 [storage : Apply defaults to pools and volumes [1/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:28 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'name': 'testpool1', 'type': 'lvm', 'disks': ['vdb'], 'volumes': [{'name': 'testvol1', 'fs_type': 'ext4', 'size': '1g'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vdb"], "name": "testpool1", "state": "present", "type": "lvm", "volumes": [{"fs_type": "ext4", "name": "testvol1", "size": "1g"}]}]}, "ansible_loop_var": "pool", "changed": false, "pool": {"disks": ["vdb"], "name": "testpool1", "type": "lvm", "volumes": [{"fs_type": "ext4", "name": "testvol1", "size": "1g"}]}} TASK [storage : Apply defaults to pools and volumes [2/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:36 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=[{'state': 'present', 'type': 'lvm', 'name': 'testpool1', 'disks': ['vdb'], 'volumes': [{'name': 'testvol1', 'fs_type': 'ext4', 'size': '1g'}]}, {'name': 'testvol1', 'fs_type': 'ext4', 'size': '1g'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "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": ["vdb"], "name": "testpool1", "state": "present", "type": "lvm", "volumes": [{"fs_type": "ext4", "name": "testvol1", "size": "1g"}]}, {"fs_type": "ext4", "name": "testvol1", "size": "1g"}]} TASK [storage : Apply defaults to pools and volumes [3/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:44 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=[{'name': 'testvol1', 'fs_type': 'ext4', 'size': '1g'}, {'state': 'present', 'type': 'lvm', 'size': 0, 'fs_type': 'xfs', 'fs_label': '', 'fs_create_options': '', 'fs_overwrite_existing': True, 'mount_point': '', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid'}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"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", "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"}, {"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "size": 0, "state": "present", "type": "lvm"}]} TASK [storage : Apply defaults to pools and volumes [4/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:52 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'name': 'testpool1', 'disks': ['vdb'], 'volumes': [{'name': 'testvol1', 'fs_type': 'ext4', 'size': '1g'}]}) => {"ansible_facts": {"_storage_vols_no_defaults_by_pool": {"testpool1": [{"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", "size": "1g", "state": "present", "type": "lvm"}]}}, "ansible_loop_var": "item", "changed": false, "item": {"disks": ["vdb"], "name": "testpool1", "state": "present", "type": "lvm", "volumes": [{"fs_type": "ext4", "name": "testvol1", "size": "1g"}]}} TASK [storage : Apply defaults to pools and volumes [5/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:61 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'name': 'testpool1', 'disks': ['vdb'], 'volumes': [{'name': 'testvol1', 'fs_type': 'ext4', 'size': '1g'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vdb"], "name": "testpool1", "state": "present", "type": "lvm", "volumes": [{"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", "size": "1g", "state": "present", "type": "lvm"}]}]}, "ansible_index_var": "idx", "ansible_loop_var": "pool", "changed": false, "idx": 0, "pool": {"disks": ["vdb"], "name": "testpool1", "state": "present", "type": "lvm", "volumes": [{"fs_type": "ext4", "name": "testvol1", "size": "1g"}]}} TASK [storage : Apply defaults to pools and volumes [6/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:72 TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools": [ { "disks": [ "vdb" ], "name": "testpool1", "state": "present", "type": "lvm", "volumes": [ { "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", "size": "1g", "state": "present", "type": "lvm" } ] } ] } TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_volumes": [] } TASK [storage : get required packages] ***************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": [], "mounts": [], "packages": ["e2fsprogs", "lvm2"], "pools": [], "volumes": []} TASK [storage : make sure required packages are installed] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : manage the pools and volumes to match the specified state] ***** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:104 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [{"action": "create format", "device": "/dev/vdb", "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, "leaves": ["/dev/sr0", "/dev/vda1", "/dev/vdc", "/dev/mapper/testpool1-testvol1"], "mounts": [], "packages": ["lvm2", "e2fsprogs"], "pools": [{"disks": ["vdb"], "name": "testpool1", "state": "present", "type": "lvm", "volumes": [{"_device": "/dev/mapper/testpool1-testvol1", "_mount_id": "/dev/mapper/testpool1-testvol1", "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", "size": "1g", "state": "present", "type": "lvm"}]}], "volumes": []} TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:113 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "blivet_output": { "actions": [ { "action": "create format", "device": "/dev/vdb", "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, "failed": false, "leaves": [ "/dev/sr0", "/dev/vda1", "/dev/vdc", "/dev/mapper/testpool1-testvol1" ], "mounts": [], "packages": [ "lvm2", "e2fsprogs" ], "pools": [ { "disks": [ "vdb" ], "name": "testpool1", "state": "present", "type": "lvm", "volumes": [ { "_device": "/dev/mapper/testpool1-testvol1", "_mount_id": "/dev/mapper/testpool1-testvol1", "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", "size": "1g", "state": "present", "type": "lvm" } ] } ], "volumes": [] } } TASK [storage : set the list of pools for test verification] ******************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:116 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": [{"disks": ["vdb"], "name": "testpool1", "state": "present", "type": "lvm", "volumes": [{"_device": "/dev/mapper/testpool1-testvol1", "_mount_id": "/dev/mapper/testpool1-testvol1", "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", "size": "1g", "state": "present", "type": "lvm"}]}]}, "changed": false} TASK [storage : set the list of volumes for test verification] ***************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:120 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : manage mounts to match the specified state] ******************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:132 TASK [storage : tell systemd to refresh its view of /etc/fstab] **************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:143 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [storage : Update facts] ************************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:153 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] TASK [Try to replace file system in safe mode] ********************************* task path: /tmp/tmpr6sk038f/tests/tests_lvm_errors.yml:319 TASK [storage : Set version specific variables] ******************************** task path: /tmp/tmpr6sk038f/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/tmp/tmpr6sk038f/vars/Fedora.yml) => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-dm", "libblockdev-lvm", "libblockdev-part", "libblockdev-mdraid"]}, "ansible_included_var_files": ["/tmp/tmpr6sk038f/vars/Fedora.yml"], "ansible_loop_var": "item", "changed": false, "item": "/tmp/tmpr6sk038f/vars/Fedora.yml"} TASK [storage : define an empty list of pools to be used in testing] *********** task path: /tmp/tmpr6sk038f/tasks/main.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [storage : define an empty list of volumes to be used in testing] ********* task path: /tmp/tmpr6sk038f/tasks/main.yml:13 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : include the appropriate provider tasks] ************************ task path: /tmp/tmpr6sk038f/tasks/main.yml:17 included: /tmp/tmpr6sk038f/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [storage : get a list of rpm packages installed on host machine] ********** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [storage : make sure blivet is available] ********************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : initialize internal facts] ************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.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 [storage : Apply defaults to pools and volumes [1/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:28 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'name': 'testpool1', 'type': 'lvm', 'disks': ['vdb'], 'volumes': [{'name': 'testvol1', 'fs_type': 'ext3', 'size': '1g'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vdb"], "name": "testpool1", "state": "present", "type": "lvm", "volumes": [{"fs_type": "ext3", "name": "testvol1", "size": "1g"}]}]}, "ansible_loop_var": "pool", "changed": false, "pool": {"disks": ["vdb"], "name": "testpool1", "type": "lvm", "volumes": [{"fs_type": "ext3", "name": "testvol1", "size": "1g"}]}} TASK [storage : Apply defaults to pools and volumes [2/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:36 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=[{'state': 'present', 'type': 'lvm', 'name': 'testpool1', 'disks': ['vdb'], 'volumes': [{'name': 'testvol1', 'fs_type': 'ext3', 'size': '1g'}]}, {'name': 'testvol1', 'fs_type': 'ext3', 'size': '1g'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "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": ["vdb"], "name": "testpool1", "state": "present", "type": "lvm", "volumes": [{"fs_type": "ext3", "name": "testvol1", "size": "1g"}]}, {"fs_type": "ext3", "name": "testvol1", "size": "1g"}]} TASK [storage : Apply defaults to pools and volumes [3/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:44 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=[{'name': 'testvol1', 'fs_type': 'ext3', 'size': '1g'}, {'state': 'present', 'type': 'lvm', 'size': 0, 'fs_type': 'xfs', 'fs_label': '', 'fs_create_options': '', 'fs_overwrite_existing': True, 'mount_point': '', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid'}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"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", "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"}, {"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "size": 0, "state": "present", "type": "lvm"}]} TASK [storage : Apply defaults to pools and volumes [4/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:52 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'name': 'testpool1', 'disks': ['vdb'], 'volumes': [{'name': 'testvol1', 'fs_type': 'ext3', 'size': '1g'}]}) => {"ansible_facts": {"_storage_vols_no_defaults_by_pool": {"testpool1": [{"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", "size": "1g", "state": "present", "type": "lvm"}]}}, "ansible_loop_var": "item", "changed": false, "item": {"disks": ["vdb"], "name": "testpool1", "state": "present", "type": "lvm", "volumes": [{"fs_type": "ext3", "name": "testvol1", "size": "1g"}]}} TASK [storage : Apply defaults to pools and volumes [5/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:61 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'name': 'testpool1', 'disks': ['vdb'], 'volumes': [{'name': 'testvol1', 'fs_type': 'ext3', 'size': '1g'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vdb"], "name": "testpool1", "state": "present", "type": "lvm", "volumes": [{"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", "size": "1g", "state": "present", "type": "lvm"}]}]}, "ansible_index_var": "idx", "ansible_loop_var": "pool", "changed": false, "idx": 0, "pool": {"disks": ["vdb"], "name": "testpool1", "state": "present", "type": "lvm", "volumes": [{"fs_type": "ext3", "name": "testvol1", "size": "1g"}]}} TASK [storage : Apply defaults to pools and volumes [6/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:72 TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools": [ { "disks": [ "vdb" ], "name": "testpool1", "state": "present", "type": "lvm", "volumes": [ { "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", "size": "1g", "state": "present", "type": "lvm" } ] } ] } TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_volumes": [] } TASK [storage : get required packages] ***************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": [], "mounts": [], "packages": ["e2fsprogs", "lvm2"], "pools": [], "volumes": []} TASK [storage : make sure required packages are installed] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : manage the pools and volumes to match the specified state] ***** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:104 fatal: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2]: FAILED! => {"actions": [], "changed": false, "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/tmpr6sk038f/tests/tests_lvm_errors.yml:337 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the output] ******************************************************* task path: /tmp/tmpr6sk038f/tests/tests_lvm_errors.yml:343 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Try to resize in safe mode] ********************************************** task path: /tmp/tmpr6sk038f/tests/tests_lvm_errors.yml:352 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the output] ******************************************************* task path: /tmp/tmpr6sk038f/tests/tests_lvm_errors.yml:365 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Try to create LVM pool on disks that already belong to an existing pool] *** task path: /tmp/tmpr6sk038f/tests/tests_lvm_errors.yml:374 TASK [storage : Set version specific variables] ******************************** task path: /tmp/tmpr6sk038f/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/tmp/tmpr6sk038f/vars/Fedora.yml) => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-dm", "libblockdev-lvm", "libblockdev-part", "libblockdev-mdraid"]}, "ansible_included_var_files": ["/tmp/tmpr6sk038f/vars/Fedora.yml"], "ansible_loop_var": "item", "changed": false, "item": "/tmp/tmpr6sk038f/vars/Fedora.yml"} TASK [storage : define an empty list of pools to be used in testing] *********** task path: /tmp/tmpr6sk038f/tasks/main.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [storage : define an empty list of volumes to be used in testing] ********* task path: /tmp/tmpr6sk038f/tasks/main.yml:13 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : include the appropriate provider tasks] ************************ task path: /tmp/tmpr6sk038f/tasks/main.yml:17 included: /tmp/tmpr6sk038f/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [storage : get a list of rpm packages installed on host machine] ********** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [storage : make sure blivet is available] ********************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : initialize internal facts] ************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.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 [storage : Apply defaults to pools and volumes [1/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:28 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'name': 'foo', 'disks': ['vdb'], 'type': 'lvm'}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vdb"], "name": "foo", "state": "present", "type": "lvm"}]}, "ansible_loop_var": "pool", "changed": false, "pool": {"disks": ["vdb"], "name": "foo", "type": "lvm"}} TASK [storage : Apply defaults to pools and volumes [2/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:36 TASK [storage : Apply defaults to pools and volumes [3/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:44 TASK [storage : Apply defaults to pools and volumes [4/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:52 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'name': 'foo', 'disks': ['vdb']}) => {"ansible_facts": {"_storage_vols_no_defaults_by_pool": {"foo": []}}, "ansible_loop_var": "item", "changed": false, "item": {"disks": ["vdb"], "name": "foo", "state": "present", "type": "lvm"}} TASK [storage : Apply defaults to pools and volumes [5/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:61 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'name': 'foo', 'disks': ['vdb']}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vdb"], "name": "foo", "state": "present", "type": "lvm", "volumes": []}]}, "ansible_index_var": "idx", "ansible_loop_var": "pool", "changed": false, "idx": 0, "pool": {"disks": ["vdb"], "name": "foo", "state": "present", "type": "lvm"}} TASK [storage : Apply defaults to pools and volumes [6/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:72 TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools": [ { "disks": [ "vdb" ], "name": "foo", "state": "present", "type": "lvm", "volumes": [] } ] } TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_volumes": [] } TASK [storage : get required packages] ***************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": [], "mounts": [], "packages": ["lvm2"], "pools": [], "volumes": []} TASK [storage : make sure required packages are installed] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : manage the pools and volumes to match the specified state] ***** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:104 fatal: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2]: FAILED! => {"actions": [], "changed": false, "leaves": [], "mounts": [], "msg": "cannot remove existing formatting and/or devices on disk 'vdb' (pool 'foo') in safe mode", "packages": [], "pools": [], "volumes": []} TASK [Check that we failed in the role] **************************************** task path: /tmp/tmpr6sk038f/tests/tests_lvm_errors.yml:388 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the output] ******************************************************* task path: /tmp/tmpr6sk038f/tests/tests_lvm_errors.yml:394 ok: [/cache/Fedora-Cloud-Base-30-1.2.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/tmpr6sk038f/tests/tests_lvm_errors.yml:403 TASK [storage : Set version specific variables] ******************************** task path: /tmp/tmpr6sk038f/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/tmp/tmpr6sk038f/vars/Fedora.yml) => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-dm", "libblockdev-lvm", "libblockdev-part", "libblockdev-mdraid"]}, "ansible_included_var_files": ["/tmp/tmpr6sk038f/vars/Fedora.yml"], "ansible_loop_var": "item", "changed": false, "item": "/tmp/tmpr6sk038f/vars/Fedora.yml"} TASK [storage : define an empty list of pools to be used in testing] *********** task path: /tmp/tmpr6sk038f/tasks/main.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [storage : define an empty list of volumes to be used in testing] ********* task path: /tmp/tmpr6sk038f/tasks/main.yml:13 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : include the appropriate provider tasks] ************************ task path: /tmp/tmpr6sk038f/tasks/main.yml:17 included: /tmp/tmpr6sk038f/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [storage : get a list of rpm packages installed on host machine] ********** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [storage : make sure blivet is available] ********************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : initialize internal facts] ************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.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 [storage : Apply defaults to pools and volumes [1/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:28 TASK [storage : Apply defaults to pools and volumes [2/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:36 TASK [storage : Apply defaults to pools and volumes [3/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:44 TASK [storage : Apply defaults to pools and volumes [4/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:52 TASK [storage : Apply defaults to pools and volumes [5/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:61 TASK [storage : Apply defaults to pools and volumes [6/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:72 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'name': 'test1', 'type': 'disk', 'fs_type': 'ext3', 'disks': ['vdb']}) => {"ansible_facts": {"_storage_volumes": [{"disks": ["vdb"], "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", "size": 0, "state": "present", "type": "disk"}]}, "ansible_loop_var": "volume", "changed": false, "volume": {"disks": ["vdb"], "fs_type": "ext3", "name": "test1", "type": "disk"}} TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools": [] } TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_volumes": [ { "disks": [ "vdb" ], "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", "size": 0, "state": "present", "type": "disk" } ] } TASK [storage : get required packages] ***************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": [], "mounts": [], "packages": ["e2fsprogs"], "pools": [], "volumes": []} TASK [storage : make sure required packages are installed] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : manage the pools and volumes to match the specified state] ***** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:104 fatal: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2]: FAILED! => {"actions": [], "changed": false, "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/tmpr6sk038f/tests/tests_lvm_errors.yml:419 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the output] ******************************************************* task path: /tmp/tmpr6sk038f/tests/tests_lvm_errors.yml:425 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up] **************************************************************** task path: /tmp/tmpr6sk038f/tests/tests_lvm_errors.yml:432 TASK [storage : Set version specific variables] ******************************** task path: /tmp/tmpr6sk038f/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/tmp/tmpr6sk038f/vars/Fedora.yml) => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-dm", "libblockdev-lvm", "libblockdev-part", "libblockdev-mdraid"]}, "ansible_included_var_files": ["/tmp/tmpr6sk038f/vars/Fedora.yml"], "ansible_loop_var": "item", "changed": false, "item": "/tmp/tmpr6sk038f/vars/Fedora.yml"} TASK [storage : define an empty list of pools to be used in testing] *********** task path: /tmp/tmpr6sk038f/tasks/main.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [storage : define an empty list of volumes to be used in testing] ********* task path: /tmp/tmpr6sk038f/tasks/main.yml:13 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : include the appropriate provider tasks] ************************ task path: /tmp/tmpr6sk038f/tasks/main.yml:17 included: /tmp/tmpr6sk038f/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [storage : get a list of rpm packages installed on host machine] ********** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [storage : make sure blivet is available] ********************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : initialize internal facts] ************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.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 [storage : Apply defaults to pools and volumes [1/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:28 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'name': 'testpool1', 'type': 'lvm', 'disks': ['vdb'], 'state': 'absent'}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vdb"], "name": "testpool1", "state": "absent", "type": "lvm"}]}, "ansible_loop_var": "pool", "changed": false, "pool": {"disks": ["vdb"], "name": "testpool1", "state": "absent", "type": "lvm"}} TASK [storage : Apply defaults to pools and volumes [2/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:36 TASK [storage : Apply defaults to pools and volumes [3/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:44 TASK [storage : Apply defaults to pools and volumes [4/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:52 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'absent', 'type': 'lvm', 'name': 'testpool1', 'disks': ['vdb']}) => {"ansible_facts": {"_storage_vols_no_defaults_by_pool": {"testpool1": []}}, "ansible_loop_var": "item", "changed": false, "item": {"disks": ["vdb"], "name": "testpool1", "state": "absent", "type": "lvm"}} TASK [storage : Apply defaults to pools and volumes [5/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:61 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'absent', 'type': 'lvm', 'name': 'testpool1', 'disks': ['vdb']}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vdb"], "name": "testpool1", "state": "absent", "type": "lvm", "volumes": []}]}, "ansible_index_var": "idx", "ansible_loop_var": "pool", "changed": false, "idx": 0, "pool": {"disks": ["vdb"], "name": "testpool1", "state": "absent", "type": "lvm"}} TASK [storage : Apply defaults to pools and volumes [6/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:72 TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools": [ { "disks": [ "vdb" ], "name": "testpool1", "state": "absent", "type": "lvm", "volumes": [] } ] } TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_volumes": [] } TASK [storage : get required packages] ***************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": []} TASK [storage : make sure required packages are installed] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : manage the pools and volumes to match the specified state] ***** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:104 changed: [/cache/Fedora-Cloud-Base-30-1.2.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/vdb", "fs_type": "lvmpv"}], "changed": true, "leaves": ["/dev/sr0", "/dev/vda1", "/dev/vdb", "/dev/vdc"], "mounts": [], "packages": ["e2fsprogs"], "pools": [{"disks": ["vdb"], "name": "testpool1", "state": "absent", "type": "lvm", "volumes": []}], "volumes": []} TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:113 ok: [/cache/Fedora-Cloud-Base-30-1.2.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/vdb", "fs_type": "lvmpv" } ], "changed": true, "failed": false, "leaves": [ "/dev/sr0", "/dev/vda1", "/dev/vdb", "/dev/vdc" ], "mounts": [], "packages": [ "e2fsprogs" ], "pools": [ { "disks": [ "vdb" ], "name": "testpool1", "state": "absent", "type": "lvm", "volumes": [] } ], "volumes": [] } } TASK [storage : set the list of pools for test verification] ******************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:116 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": [{"disks": ["vdb"], "name": "testpool1", "state": "absent", "type": "lvm", "volumes": []}]}, "changed": false} TASK [storage : set the list of volumes for test verification] ***************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:120 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : manage mounts to match the specified state] ******************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:132 TASK [storage : tell systemd to refresh its view of /etc/fstab] **************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:143 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [storage : Update facts] ************************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:153 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 : ok=228 changed=3 unreachable=0 failed=0 skipped=57 rescued=11 ignored=0 + cd /tmp/tmpr6sk038f/tests; TEST_SUBJECTS=/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_storage-91-a6b7623-fedora-30-97_lk9m2/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmpr6sk038f/_setup.yml /tmp/tmpr6sk038f/tests/tests_lvm_multiple_disks_multiple_volumes.yml ansible-playbook 2.9.9 config file = /etc/ansible/ansible.cfg configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.8/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 3.8.2 (default, Feb 28 2020, 00:00:00) [GCC 10.0.1 20200216 (Red Hat 10.0.1-0.8)] Using /etc/ansible/ansible.cfg as config file PLAYBOOK: _setup.yml *********************************************************** 1 plays in /tmp/tmpr6sk038f/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmpr6sk038f/_setup.yml:5 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "groups": { "all": [ "/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2" ], "localhost": [ "/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2" ], "subjects": [ "/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmpr6sk038f/_setup.yml:7 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/Fedora-Cloud-Base-30-1.2.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/tmpr6sk038f/tests/tests_lvm_multiple_disks_multiple_volumes.yml PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpr6sk038f/tests/tests_lvm_multiple_disks_multiple_volumes.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] META: ran handlers TASK [include_role : storage] ************************************************** task path: /tmp/tmpr6sk038f/tests/tests_lvm_multiple_disks_multiple_volumes.yml:11 TASK [storage : Set version specific variables] ******************************** task path: /tmp/tmpr6sk038f/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/tmp/tmpr6sk038f/vars/Fedora.yml) => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-dm", "libblockdev-lvm", "libblockdev-part", "libblockdev-mdraid"]}, "ansible_included_var_files": ["/tmp/tmpr6sk038f/vars/Fedora.yml"], "ansible_loop_var": "item", "changed": false, "item": "/tmp/tmpr6sk038f/vars/Fedora.yml"} TASK [storage : define an empty list of pools to be used in testing] *********** task path: /tmp/tmpr6sk038f/tasks/main.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [storage : define an empty list of volumes to be used in testing] ********* task path: /tmp/tmpr6sk038f/tasks/main.yml:13 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : include the appropriate provider tasks] ************************ task path: /tmp/tmpr6sk038f/tasks/main.yml:17 included: /tmp/tmpr6sk038f/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [storage : get a list of rpm packages installed on host machine] ********** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [storage : make sure blivet is available] ********************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:7 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: libblockdev-mpath-2.23-1.fc30.x86_64", "Installed: libblockdev-nvdimm-2.23-1.fc30.x86_64", "Installed: userspace-rcu-0.10.1-5.fc30.x86_64", "Installed: libblockdev-part-2.23-1.fc30.x86_64", "Installed: dmraid-1.0.0.rc16-41.fc30.x86_64", "Installed: dmraid-events-1.0.0.rc16-41.fc30.x86_64", "Installed: lzo-2.08-15.fc30.x86_64", "Installed: libblockdev-swap-2.23-1.fc30.x86_64", "Installed: lvm2-2.02.183-3.fc30.x86_64", "Installed: libblockdev-utils-2.23-1.fc30.x86_64", "Installed: lvm2-libs-2.02.183-3.fc30.x86_64", "Installed: python3-blivet-1:3.1.4-1.fc30.noarch", "Installed: python3-blockdev-2.23-1.fc30.x86_64", "Installed: daxctl-libs-68-1.fc30.x86_64", "Installed: mdadm-4.1-1.fc30.x86_64", "Installed: blivet-data-1:3.1.4-1.fc30.noarch", "Installed: sgpio-1.2.0.10-23.fc30.x86_64", "Installed: nspr-4.25.0-1.fc30.x86_64", "Installed: python3-bytesize-2.2-1.fc30.x86_64", "Installed: device-mapper-event-1.02.154-3.fc30.x86_64", "Installed: lsof-4.91-3.fc30.x86_64", "Installed: nss-3.51.1-1.fc30.x86_64", "Installed: device-mapper-event-libs-1.02.154-3.fc30.x86_64", "Installed: device-mapper-multipath-0.7.9-6.git2df6110.fc30.x86_64", "Installed: gdisk-1.0.5-1.fc30.x86_64", "Installed: device-mapper-multipath-libs-0.7.9-6.git2df6110.fc30.x86_64", "Installed: nss-softokn-3.51.1-1.fc30.x86_64", "Installed: python3-gobject-base-3.32.2-1.fc30.x86_64", "Installed: device-mapper-persistent-data-0.7.6-4.fc30.x86_64", "Installed: gobject-introspection-1.60.2-1.fc30.x86_64", "Installed: nss-softokn-freebl-3.51.1-1.fc30.x86_64", "Installed: libbytesize-2.2-1.fc30.x86_64", "Installed: nss-sysinit-3.51.1-1.fc30.x86_64", "Installed: nss-util-3.51.1-1.fc30.x86_64", "Installed: volume_key-libs-0.3.12-3.fc30.x86_64", "Installed: bcache-tools-1.0.8-15.fc30.x86_64", "Installed: ndctl-68-1.fc30.x86_64", "Installed: ndctl-libs-68-1.fc30.x86_64", "Installed: libblockdev-2.23-1.fc30.x86_64", "Installed: libblockdev-btrfs-2.23-1.fc30.x86_64", "Installed: libblockdev-crypto-2.23-1.fc30.x86_64", "Installed: python3-pyudev-0.21.0-10.fc30.noarch", "Installed: btrfs-progs-5.6-1.fc30.x86_64", "Installed: libblockdev-dm-2.23-1.fc30.x86_64", "Installed: libblockdev-fs-2.23-1.fc30.x86_64", "Installed: libblockdev-kbd-2.23-1.fc30.x86_64", "Installed: libblockdev-loop-2.23-1.fc30.x86_64", "Installed: libblockdev-lvm-2.23-1.fc30.x86_64", "Installed: python3-pyparted-1:3.11.2-1.fc30.x86_64", "Installed: libaio-0.3.111-4.fc30.x86_64", "Installed: libblockdev-mdraid-2.23-1.fc30.x86_64"]} TASK [storage : initialize internal facts] ************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.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 [storage : Apply defaults to pools and volumes [1/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:28 TASK [storage : Apply defaults to pools and volumes [2/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:36 TASK [storage : Apply defaults to pools and volumes [3/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:44 TASK [storage : Apply defaults to pools and volumes [4/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:52 TASK [storage : Apply defaults to pools and volumes [5/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:61 TASK [storage : Apply defaults to pools and volumes [6/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:72 TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools": [] } TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_volumes": [] } TASK [storage : get required packages] ***************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": []} TASK [storage : make sure required packages are installed] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : manage the pools and volumes to match the specified state] ***** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:104 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": []} TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:113 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "blivet_output": { "actions": [], "changed": false, "failed": false, "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": [] } } TASK [storage : set the list of pools for test verification] ******************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:116 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [storage : set the list of volumes for test verification] ***************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:120 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : manage mounts to match the specified state] ******************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:132 TASK [storage : tell systemd to refresh its view of /etc/fstab] **************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:143 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [storage : Update facts] ************************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:153 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmpr6sk038f/tests/tests_lvm_multiple_disks_multiple_volumes.yml:14 included: /tmp/tmpr6sk038f/tests/get_unused_disk.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [Find unused disks in the system] ***************************************** task path: /tmp/tmpr6sk038f/tests/get_unused_disk.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "disks": ["vdb", "vdc"]} TASK [set_fact] **************************************************************** task path: /tmp/tmpr6sk038f/tests/get_unused_disk.yml:8 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"unused_disks": ["vdb", "vdc"]}, "changed": false} TASK [Exit playbook when there's not enough unused disks in the system] ******** task path: /tmp/tmpr6sk038f/tests/get_unused_disk.yml:12 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Print unused disks] ****************************************************** task path: /tmp/tmpr6sk038f/tests/get_unused_disk.yml:17 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "unused_disks": [ "vdb", "vdc" ] } TASK [Create a logical volume spanning two physical volumes that changes its mount location] *** task path: /tmp/tmpr6sk038f/tests/tests_lvm_multiple_disks_multiple_volumes.yml:20 TASK [storage : Set version specific variables] ******************************** task path: /tmp/tmpr6sk038f/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/tmp/tmpr6sk038f/vars/Fedora.yml) => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-dm", "libblockdev-lvm", "libblockdev-part", "libblockdev-mdraid"]}, "ansible_included_var_files": ["/tmp/tmpr6sk038f/vars/Fedora.yml"], "ansible_loop_var": "item", "changed": false, "item": "/tmp/tmpr6sk038f/vars/Fedora.yml"} TASK [storage : define an empty list of pools to be used in testing] *********** task path: /tmp/tmpr6sk038f/tasks/main.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [storage : define an empty list of volumes to be used in testing] ********* task path: /tmp/tmpr6sk038f/tasks/main.yml:13 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : include the appropriate provider tasks] ************************ task path: /tmp/tmpr6sk038f/tasks/main.yml:17 included: /tmp/tmpr6sk038f/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [storage : get a list of rpm packages installed on host machine] ********** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [storage : make sure blivet is available] ********************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : initialize internal facts] ************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.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 [storage : Apply defaults to pools and volumes [1/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:28 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'name': 'phi', 'disks': ['vdb', 'vdc'], 'volumes': [{'name': 'test1', 'size': '4g', 'mount_point': '/opt/test1'}, {'name': 'test2', 'size': '4g', 'mount_point': '/opt/test2'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vdb", "vdc"], "name": "phi", "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": ["vdb", "vdc"], "name": "phi", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "4g"}, {"mount_point": "/opt/test2", "name": "test2", "size": "4g"}]}} TASK [storage : Apply defaults to pools and volumes [2/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:36 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=[{'state': 'present', 'type': 'lvm', 'name': 'phi', 'disks': ['vdb', 'vdc'], 'volumes': [{'name': 'test1', 'size': '4g', 'mount_point': '/opt/test1'}, {'name': 'test2', 'size': '4g', 'mount_point': '/opt/test2'}]}, {'name': 'test1', 'size': '4g', 'mount_point': '/opt/test1'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "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": ["vdb", "vdc"], "name": "phi", "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-30-1.2.x86_64.qcow2] => (item=[{'state': 'present', 'type': 'lvm', 'name': 'phi', 'disks': ['vdb', 'vdc'], 'volumes': [{'name': 'test1', 'size': '4g', 'mount_point': '/opt/test1'}, {'name': 'test2', 'size': '4g', 'mount_point': '/opt/test2'}]}, {'name': 'test2', 'size': '4g', 'mount_point': '/opt/test2'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "size": 0, "state": "present", "type": "lvm"}, {"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "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": ["vdb", "vdc"], "name": "phi", "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 [storage : Apply defaults to pools and volumes [3/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:44 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=[{'name': 'test1', 'size': '4g', 'mount_point': '/opt/test1'}, {'state': 'present', 'type': 'lvm', 'size': 0, 'fs_type': 'xfs', 'fs_label': '', 'fs_create_options': '', 'fs_overwrite_existing': True, 'mount_point': '', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid'}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": 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", "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"}, {"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "size": 0, "state": "present", "type": "lvm"}]} ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=[{'name': 'test2', 'size': '4g', 'mount_point': '/opt/test2'}, {'state': 'present', 'type': 'lvm', 'size': 0, 'fs_type': 'xfs', 'fs_label': '', 'fs_create_options': '', 'fs_overwrite_existing': True, 'mount_point': '', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid'}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": 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", "size": "4g", "state": "present", "type": "lvm"}, {"fs_create_options": "", "fs_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", "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"}, {"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "size": 0, "state": "present", "type": "lvm"}]} TASK [storage : Apply defaults to pools and volumes [4/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:52 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'name': 'phi', 'disks': ['vdb', 'vdc'], 'volumes': [{'name': 'test1', 'size': '4g', 'mount_point': '/opt/test1'}, {'name': 'test2', 'size': '4g', 'mount_point': '/opt/test2'}]}) => {"ansible_facts": {"_storage_vols_no_defaults_by_pool": {"phi": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": 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", "size": "4g", "state": "present", "type": "lvm"}, {"fs_create_options": "", "fs_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", "size": "4g", "state": "present", "type": "lvm"}]}}, "ansible_loop_var": "item", "changed": false, "item": {"disks": ["vdb", "vdc"], "name": "phi", "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "4g"}, {"mount_point": "/opt/test2", "name": "test2", "size": "4g"}]}} TASK [storage : Apply defaults to pools and volumes [5/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:61 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'name': 'phi', 'disks': ['vdb', 'vdc'], 'volumes': [{'name': 'test1', 'size': '4g', 'mount_point': '/opt/test1'}, {'name': 'test2', 'size': '4g', 'mount_point': '/opt/test2'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vdb", "vdc"], "name": "phi", "state": "present", "type": "lvm", "volumes": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": 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", "size": "4g", "state": "present", "type": "lvm"}, {"fs_create_options": "", "fs_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", "size": "4g", "state": "present", "type": "lvm"}]}]}, "ansible_index_var": "idx", "ansible_loop_var": "pool", "changed": false, "idx": 0, "pool": {"disks": ["vdb", "vdc"], "name": "phi", "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "4g"}, {"mount_point": "/opt/test2", "name": "test2", "size": "4g"}]}} TASK [storage : Apply defaults to pools and volumes [6/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:72 TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools": [ { "disks": [ "vdb", "vdc" ], "name": "phi", "state": "present", "type": "lvm", "volumes": [ { "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": 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", "size": "4g", "state": "present", "type": "lvm" }, { "fs_create_options": "", "fs_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", "size": "4g", "state": "present", "type": "lvm" } ] } ] } TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_volumes": [] } TASK [storage : get required packages] ***************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": [], "mounts": [], "packages": ["lvm2", "xfsprogs"], "pools": [], "volumes": []} TASK [storage : make sure required packages are installed] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : manage the pools and volumes to match the specified state] ***** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:104 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [{"action": "create format", "device": "/dev/vdc", "fs_type": "lvmpv"}, {"action": "create format", "device": "/dev/vdb", "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, "leaves": ["/dev/sr0", "/dev/vda1", "/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", "xfsprogs", "e2fsprogs"], "pools": [{"disks": ["vdb", "vdc"], "name": "phi", "state": "present", "type": "lvm", "volumes": [{"_device": "/dev/mapper/phi-test1", "_mount_id": "/dev/mapper/phi-test1", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": 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", "size": "4g", "state": "present", "type": "lvm"}, {"_device": "/dev/mapper/phi-test2", "_mount_id": "/dev/mapper/phi-test2", "fs_create_options": "", "fs_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", "size": "4g", "state": "present", "type": "lvm"}]}], "volumes": []} TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:113 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "blivet_output": { "actions": [ { "action": "create format", "device": "/dev/vdc", "fs_type": "lvmpv" }, { "action": "create format", "device": "/dev/vdb", "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, "failed": false, "leaves": [ "/dev/sr0", "/dev/vda1", "/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", "xfsprogs", "e2fsprogs" ], "pools": [ { "disks": [ "vdb", "vdc" ], "name": "phi", "state": "present", "type": "lvm", "volumes": [ { "_device": "/dev/mapper/phi-test1", "_mount_id": "/dev/mapper/phi-test1", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": 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", "size": "4g", "state": "present", "type": "lvm" }, { "_device": "/dev/mapper/phi-test2", "_mount_id": "/dev/mapper/phi-test2", "fs_create_options": "", "fs_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", "size": "4g", "state": "present", "type": "lvm" } ] } ], "volumes": [] } } TASK [storage : set the list of pools for test verification] ******************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:116 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": [{"disks": ["vdb", "vdc"], "name": "phi", "state": "present", "type": "lvm", "volumes": [{"_device": "/dev/mapper/phi-test1", "_mount_id": "/dev/mapper/phi-test1", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": 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", "size": "4g", "state": "present", "type": "lvm"}, {"_device": "/dev/mapper/phi-test2", "_mount_id": "/dev/mapper/phi-test2", "fs_create_options": "", "fs_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", "size": "4g", "state": "present", "type": "lvm"}]}]}, "changed": false} TASK [storage : set the list of volumes for test verification] ***************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:120 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : manage mounts to match the specified state] ******************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:132 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'src': '/dev/mapper/phi-test1', 'path': '/opt/test1', 'fstype': 'xfs', 'opts': 'defaults', 'dump': 0, 'passno': 0, 'state': 'mounted'}) => {"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-30-1.2.x86_64.qcow2] => (item={'src': '/dev/mapper/phi-test2', 'path': '/opt/test2', 'fstype': 'xfs', 'opts': 'defaults', 'dump': 0, 'passno': 0, 'state': 'mounted'}) => {"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 [storage : tell systemd to refresh its view of /etc/fstab] **************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:143 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [storage : Update facts] ************************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:153 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmpr6sk038f/tests/tests_lvm_multiple_disks_multiple_volumes.yml:35 included: /tmp/tmpr6sk038f/tests/verify-role-results.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [Print out pool information] ********************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:1 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools_list": [ { "disks": [ "vdb", "vdc" ], "name": "phi", "state": "present", "type": "lvm", "volumes": [ { "_device": "/dev/mapper/phi-test1", "_mount_id": "/dev/mapper/phi-test1", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": 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", "size": "4g", "state": "present", "type": "lvm" }, { "_device": "/dev/mapper/phi-test2", "_mount_id": "/dev/mapper/phi-test2", "fs_create_options": "", "fs_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", "size": "4g", "state": "present", "type": "lvm" } ] } ] } TASK [Print out volume information] ******************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:6 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {} TASK [Collect info about the volumes.] ***************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:14 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "info": {"/dev/mapper/phi-test1": {"fstype": "xfs", "label": "", "name": "/dev/mapper/phi-test1", "type": "lvm", "uuid": "c5627293-a41a-4ffb-bcdc-113fe4793ea9"}, "/dev/mapper/phi-test2": {"fstype": "xfs", "label": "", "name": "/dev/mapper/phi-test2", "type": "lvm", "uuid": "16ddaed9-db3c-4f73-b81d-633b21b39186"}, "/dev/sr0": {"fstype": "iso9660", "label": "cidata", "name": "/dev/sr0", "type": "rom", "uuid": "2020-05-27-13-42-13-00"}, "/dev/vda": {"fstype": "", "label": "", "name": "/dev/vda", "type": "disk", "uuid": ""}, "/dev/vda1": {"fstype": "ext4", "label": "", "name": "/dev/vda1", "type": "partition", "uuid": "ea711a29-e460-4879-9d70-9da99ae021f9"}, "/dev/vdb": {"fstype": "LVM2_member", "label": "", "name": "/dev/vdb", "type": "disk", "uuid": "9QUP5I-U1Gz-ctez-2noL-k2uB-aiba-kFU6KB"}, "/dev/vdc": {"fstype": "LVM2_member", "label": "", "name": "/dev/vdc", "type": "disk", "uuid": "6c6m0n-tUVx-kPXn-7vjo-OuRn-HwIk-jK8pgv"}}} TASK [Read the /etc/fstab file for volume existence] *************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:19 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/fstab"], "delta": "0:00:01.003943", "end": "2020-05-27 13:46:12.755447", "rc": 0, "start": "2020-05-27 13:46:11.751504", "stderr": "", "stderr_lines": [], "stdout": "\n#\n# /etc/fstab\n# Created by anaconda on Fri Apr 26 02:02:19 2019\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=ea711a29-e460-4879-9d70-9da99ae021f9 / 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 Fri Apr 26 02:02:19 2019", "#", "# 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=ea711a29-e460-4879-9d70-9da99ae021f9 / 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 [Verify the volumes listed in storage_pools were correctly managed] ******* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:27 included: /tmp/tmpr6sk038f/tests/test-verify-pool.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-pool.yml:5 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pool_tests": ["name", "type", "size", "members"]}, "changed": false} TASK [Verify the volumes in this pool were correctly managed] ****************** task path: /tmp/tmpr6sk038f/tests/test-verify-pool.yml:17 included: /tmp/tmpr6sk038f/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": true, "_storage_volume_tests": ["mount", "fstab", "fs", "device"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:12 included: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/phi-test1"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/phi-test1"], "delta": "0:00:00.003615", "end": "2020-05-27 13:46:13.395907", "rc": 0, "start": "2020-05-27 13:46:13.392292", "stderr": "", "stderr_lines": [], "stdout": "/dev/dm-1", "stdout_lines": ["/dev/dm-1"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Set some facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:20 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [{"block_available": 1036712, "block_size": 4096, "block_total": 1046016, "block_used": 9304, "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,noquota", "size_available": 4246372352, "size_total": 4284481536, "uuid": "c5627293-a41a-4ffb-bcdc-113fe4793ea9"}], "storage_test_mount_expected_match_count": "1", "storage_test_mount_point_matches": [{"block_available": 1036712, "block_size": 4096, "block_total": 1046016, "block_used": 9304, "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,noquota", "size_available": 4246372352, "size_total": 4284481536, "uuid": "c5627293-a41a-4ffb-bcdc-113fe4793ea9"}]}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:31 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:40 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:48 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Unset facts] ************************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:58 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_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/tmpr6sk038f/tests/test-verify-volume-fstab.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:16 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:23 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/phi-test1"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/phi-test1"], "delta": "0:00:00.002498", "end": "2020-05-27 13:46:14.183747", "rc": 0, "start": "2020-05-27 13:46:14.181249", "stderr": "", "stderr_lines": [], "stdout": "/dev/dm-1", "stdout_lines": ["/dev/dm-1"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify fs type] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:21 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify fs label] ********************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:27 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/phi-test1"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/phi-test1"], "delta": "0:00:00.002216", "end": "2020-05-27 13:46:14.681836", "rc": 0, "start": "2020-05-27 13:46:14.679620", "stderr": "", "stderr_lines": [], "stdout": "/dev/dm-1", "stdout_lines": ["/dev/dm-1"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [See whether the device node is present] ********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:21 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "stat": {"atime": 1590587168.1639519, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "ctime": 1590587168.1639519, "dev": 6, "device_type": 64769, "executable": false, "exists": true, "gid": 6, "gr_name": "disk", "inode": 13901, "isblk": true, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mimetype": "inode/symlink", "mode": "0660", "mtime": 1590587168.1639519, "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/tmpr6sk038f/tests/test-verify-volume-device.yml:27 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:35 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:41 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "lvm"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:45 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:50 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": true, "_storage_volume_tests": ["mount", "fstab", "fs", "device"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:12 included: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/phi-test2"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/phi-test2"], "delta": "0:00:00.003281", "end": "2020-05-27 13:46:15.834088", "rc": 0, "start": "2020-05-27 13:46:15.830807", "stderr": "", "stderr_lines": [], "stdout": "/dev/dm-0", "stdout_lines": ["/dev/dm-0"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Set some facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:20 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [{"block_available": 1036712, "block_size": 4096, "block_total": 1046016, "block_used": 9304, "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,noquota", "size_available": 4246372352, "size_total": 4284481536, "uuid": "16ddaed9-db3c-4f73-b81d-633b21b39186"}], "storage_test_mount_expected_match_count": "1", "storage_test_mount_point_matches": [{"block_available": 1036712, "block_size": 4096, "block_total": 1046016, "block_used": 9304, "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,noquota", "size_available": 4246372352, "size_total": 4284481536, "uuid": "16ddaed9-db3c-4f73-b81d-633b21b39186"}]}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:31 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:40 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:48 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Unset facts] ************************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:58 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_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/tmpr6sk038f/tests/test-verify-volume-fstab.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:16 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:23 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/phi-test2"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/phi-test2"], "delta": "0:00:01.003803", "end": "2020-05-27 13:46:17.552131", "rc": 0, "start": "2020-05-27 13:46:16.548328", "stderr": "", "stderr_lines": [], "stdout": "/dev/dm-0", "stdout_lines": ["/dev/dm-0"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify fs type] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:21 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify fs label] ********************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:27 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/phi-test2"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/phi-test2"], "delta": "0:00:00.003393", "end": "2020-05-27 13:46:18.045417", "rc": 0, "start": "2020-05-27 13:46:18.042024", "stderr": "", "stderr_lines": [], "stdout": "/dev/dm-0", "stdout_lines": ["/dev/dm-0"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [See whether the device node is present] ********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:21 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "stat": {"atime": 1590587167.9819517, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "ctime": 1590587167.9819517, "dev": 6, "device_type": 64768, "executable": false, "exists": true, "gid": 6, "gr_name": "disk", "inode": 13900, "isblk": true, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mimetype": "inode/symlink", "mode": "0660", "mtime": 1590587167.9819517, "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/tmpr6sk038f/tests/test-verify-volume-device.yml:27 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:35 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:41 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "lvm"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:45 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:50 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:34 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_pool": null}, "changed": false} TASK [Verify the volumes with no pool were correctly managed] ****************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:41 TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:51 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_blkinfo": null, "storage_test_fstab": null, "storage_test_volume": null}, "changed": false} TASK [Repeat the previous invocation to verify idempotence] ******************** task path: /tmp/tmpr6sk038f/tests/tests_lvm_multiple_disks_multiple_volumes.yml:37 TASK [storage : Set version specific variables] ******************************** task path: /tmp/tmpr6sk038f/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/tmp/tmpr6sk038f/vars/Fedora.yml) => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-dm", "libblockdev-lvm", "libblockdev-part", "libblockdev-mdraid"]}, "ansible_included_var_files": ["/tmp/tmpr6sk038f/vars/Fedora.yml"], "ansible_loop_var": "item", "changed": false, "item": "/tmp/tmpr6sk038f/vars/Fedora.yml"} TASK [storage : define an empty list of pools to be used in testing] *********** task path: /tmp/tmpr6sk038f/tasks/main.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [storage : define an empty list of volumes to be used in testing] ********* task path: /tmp/tmpr6sk038f/tasks/main.yml:13 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : include the appropriate provider tasks] ************************ task path: /tmp/tmpr6sk038f/tasks/main.yml:17 included: /tmp/tmpr6sk038f/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [storage : get a list of rpm packages installed on host machine] ********** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [storage : make sure blivet is available] ********************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : initialize internal facts] ************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.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 [storage : Apply defaults to pools and volumes [1/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:28 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'name': 'phi', 'disks': ['vdb', 'vdc'], 'volumes': [{'name': 'test1', 'size': '4g', 'mount_point': '/opt/test1'}, {'name': 'test2', 'size': '4g', 'mount_point': '/opt/test2'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vdb", "vdc"], "name": "phi", "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": ["vdb", "vdc"], "name": "phi", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "4g"}, {"mount_point": "/opt/test2", "name": "test2", "size": "4g"}]}} TASK [storage : Apply defaults to pools and volumes [2/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:36 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=[{'state': 'present', 'type': 'lvm', 'name': 'phi', 'disks': ['vdb', 'vdc'], 'volumes': [{'name': 'test1', 'size': '4g', 'mount_point': '/opt/test1'}, {'name': 'test2', 'size': '4g', 'mount_point': '/opt/test2'}]}, {'name': 'test1', 'size': '4g', 'mount_point': '/opt/test1'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "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": ["vdb", "vdc"], "name": "phi", "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-30-1.2.x86_64.qcow2] => (item=[{'state': 'present', 'type': 'lvm', 'name': 'phi', 'disks': ['vdb', 'vdc'], 'volumes': [{'name': 'test1', 'size': '4g', 'mount_point': '/opt/test1'}, {'name': 'test2', 'size': '4g', 'mount_point': '/opt/test2'}]}, {'name': 'test2', 'size': '4g', 'mount_point': '/opt/test2'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "size": 0, "state": "present", "type": "lvm"}, {"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "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": ["vdb", "vdc"], "name": "phi", "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 [storage : Apply defaults to pools and volumes [3/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:44 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=[{'name': 'test1', 'size': '4g', 'mount_point': '/opt/test1'}, {'state': 'present', 'type': 'lvm', 'size': 0, 'fs_type': 'xfs', 'fs_label': '', 'fs_create_options': '', 'fs_overwrite_existing': True, 'mount_point': '', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid'}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": 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", "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"}, {"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "size": 0, "state": "present", "type": "lvm"}]} ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=[{'name': 'test2', 'size': '4g', 'mount_point': '/opt/test2'}, {'state': 'present', 'type': 'lvm', 'size': 0, 'fs_type': 'xfs', 'fs_label': '', 'fs_create_options': '', 'fs_overwrite_existing': True, 'mount_point': '', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid'}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": 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", "size": "4g", "state": "present", "type": "lvm"}, {"fs_create_options": "", "fs_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", "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"}, {"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "size": 0, "state": "present", "type": "lvm"}]} TASK [storage : Apply defaults to pools and volumes [4/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:52 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'name': 'phi', 'disks': ['vdb', 'vdc'], 'volumes': [{'name': 'test1', 'size': '4g', 'mount_point': '/opt/test1'}, {'name': 'test2', 'size': '4g', 'mount_point': '/opt/test2'}]}) => {"ansible_facts": {"_storage_vols_no_defaults_by_pool": {"phi": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": 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", "size": "4g", "state": "present", "type": "lvm"}, {"fs_create_options": "", "fs_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", "size": "4g", "state": "present", "type": "lvm"}]}}, "ansible_loop_var": "item", "changed": false, "item": {"disks": ["vdb", "vdc"], "name": "phi", "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "4g"}, {"mount_point": "/opt/test2", "name": "test2", "size": "4g"}]}} TASK [storage : Apply defaults to pools and volumes [5/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:61 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'name': 'phi', 'disks': ['vdb', 'vdc'], 'volumes': [{'name': 'test1', 'size': '4g', 'mount_point': '/opt/test1'}, {'name': 'test2', 'size': '4g', 'mount_point': '/opt/test2'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vdb", "vdc"], "name": "phi", "state": "present", "type": "lvm", "volumes": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": 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", "size": "4g", "state": "present", "type": "lvm"}, {"fs_create_options": "", "fs_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", "size": "4g", "state": "present", "type": "lvm"}]}]}, "ansible_index_var": "idx", "ansible_loop_var": "pool", "changed": false, "idx": 0, "pool": {"disks": ["vdb", "vdc"], "name": "phi", "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "4g"}, {"mount_point": "/opt/test2", "name": "test2", "size": "4g"}]}} TASK [storage : Apply defaults to pools and volumes [6/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:72 TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools": [ { "disks": [ "vdb", "vdc" ], "name": "phi", "state": "present", "type": "lvm", "volumes": [ { "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": 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", "size": "4g", "state": "present", "type": "lvm" }, { "fs_create_options": "", "fs_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", "size": "4g", "state": "present", "type": "lvm" } ] } ] } TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_volumes": [] } TASK [storage : get required packages] ***************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": [], "mounts": [], "packages": ["lvm2", "xfsprogs"], "pools": [], "volumes": []} TASK [storage : make sure required packages are installed] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : manage the pools and volumes to match the specified state] ***** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:104 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": ["/dev/sr0", "/dev/vda1", "/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": ["xfsprogs", "lvm2", "e2fsprogs"], "pools": [{"disks": ["vdb", "vdc"], "name": "phi", "state": "present", "type": "lvm", "volumes": [{"_device": "/dev/mapper/phi-test1", "_mount_id": "/dev/mapper/phi-test1", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": 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", "size": "4g", "state": "present", "type": "lvm"}, {"_device": "/dev/mapper/phi-test2", "_mount_id": "/dev/mapper/phi-test2", "fs_create_options": "", "fs_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", "size": "4g", "state": "present", "type": "lvm"}]}], "volumes": []} TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:113 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "blivet_output": { "actions": [], "changed": false, "failed": false, "leaves": [ "/dev/sr0", "/dev/vda1", "/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": [ "xfsprogs", "lvm2", "e2fsprogs" ], "pools": [ { "disks": [ "vdb", "vdc" ], "name": "phi", "state": "present", "type": "lvm", "volumes": [ { "_device": "/dev/mapper/phi-test1", "_mount_id": "/dev/mapper/phi-test1", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": 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", "size": "4g", "state": "present", "type": "lvm" }, { "_device": "/dev/mapper/phi-test2", "_mount_id": "/dev/mapper/phi-test2", "fs_create_options": "", "fs_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", "size": "4g", "state": "present", "type": "lvm" } ] } ], "volumes": [] } } TASK [storage : set the list of pools for test verification] ******************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:116 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": [{"disks": ["vdb", "vdc"], "name": "phi", "state": "present", "type": "lvm", "volumes": [{"_device": "/dev/mapper/phi-test1", "_mount_id": "/dev/mapper/phi-test1", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": 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", "size": "4g", "state": "present", "type": "lvm"}, {"_device": "/dev/mapper/phi-test2", "_mount_id": "/dev/mapper/phi-test2", "fs_create_options": "", "fs_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", "size": "4g", "state": "present", "type": "lvm"}]}]}, "changed": false} TASK [storage : set the list of volumes for test verification] ***************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:120 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : manage mounts to match the specified state] ******************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:132 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'src': '/dev/mapper/phi-test1', 'path': '/opt/test1', 'fstype': 'xfs', 'opts': 'defaults', 'dump': 0, 'passno': 0, 'state': 'mounted'}) => {"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-30-1.2.x86_64.qcow2] => (item={'src': '/dev/mapper/phi-test2', 'path': '/opt/test2', 'fstype': 'xfs', 'opts': 'defaults', 'dump': 0, 'passno': 0, 'state': 'mounted'}) => {"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 [storage : tell systemd to refresh its view of /etc/fstab] **************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:143 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [storage : Update facts] ************************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:153 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmpr6sk038f/tests/tests_lvm_multiple_disks_multiple_volumes.yml:52 included: /tmp/tmpr6sk038f/tests/verify-role-results.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [Print out pool information] ********************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:1 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools_list": [ { "disks": [ "vdb", "vdc" ], "name": "phi", "state": "present", "type": "lvm", "volumes": [ { "_device": "/dev/mapper/phi-test1", "_mount_id": "/dev/mapper/phi-test1", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": 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", "size": "4g", "state": "present", "type": "lvm" }, { "_device": "/dev/mapper/phi-test2", "_mount_id": "/dev/mapper/phi-test2", "fs_create_options": "", "fs_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", "size": "4g", "state": "present", "type": "lvm" } ] } ] } TASK [Print out volume information] ******************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:6 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {} TASK [Collect info about the volumes.] ***************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:14 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "info": {"/dev/mapper/phi-test1": {"fstype": "xfs", "label": "", "name": "/dev/mapper/phi-test1", "type": "lvm", "uuid": "c5627293-a41a-4ffb-bcdc-113fe4793ea9"}, "/dev/mapper/phi-test2": {"fstype": "xfs", "label": "", "name": "/dev/mapper/phi-test2", "type": "lvm", "uuid": "16ddaed9-db3c-4f73-b81d-633b21b39186"}, "/dev/sr0": {"fstype": "iso9660", "label": "cidata", "name": "/dev/sr0", "type": "rom", "uuid": "2020-05-27-13-42-13-00"}, "/dev/vda": {"fstype": "", "label": "", "name": "/dev/vda", "type": "disk", "uuid": ""}, "/dev/vda1": {"fstype": "ext4", "label": "", "name": "/dev/vda1", "type": "partition", "uuid": "ea711a29-e460-4879-9d70-9da99ae021f9"}, "/dev/vdb": {"fstype": "LVM2_member", "label": "", "name": "/dev/vdb", "type": "disk", "uuid": "9QUP5I-U1Gz-ctez-2noL-k2uB-aiba-kFU6KB"}, "/dev/vdc": {"fstype": "LVM2_member", "label": "", "name": "/dev/vdc", "type": "disk", "uuid": "6c6m0n-tUVx-kPXn-7vjo-OuRn-HwIk-jK8pgv"}}} TASK [Read the /etc/fstab file for volume existence] *************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:19 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/fstab"], "delta": "0:00:00.002667", "end": "2020-05-27 13:46:31.756186", "rc": 0, "start": "2020-05-27 13:46:31.753519", "stderr": "", "stderr_lines": [], "stdout": "\n#\n# /etc/fstab\n# Created by anaconda on Fri Apr 26 02:02:19 2019\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=ea711a29-e460-4879-9d70-9da99ae021f9 / 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 Fri Apr 26 02:02:19 2019", "#", "# 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=ea711a29-e460-4879-9d70-9da99ae021f9 / 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 [Verify the volumes listed in storage_pools were correctly managed] ******* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:27 [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/tmpr6sk038f/tests/test-verify-pool.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-pool.yml:5 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pool_tests": ["name", "type", "size", "members"]}, "changed": false} TASK [Verify the volumes in this pool were correctly managed] ****************** task path: /tmp/tmpr6sk038f/tests/test-verify-pool.yml:17 [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/tmpr6sk038f/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": true, "_storage_volume_tests": ["mount", "fstab", "fs", "device"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:12 included: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/phi-test1"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/phi-test1"], "delta": "0:00:00.002854", "end": "2020-05-27 13:46:32.333805", "rc": 0, "start": "2020-05-27 13:46:32.330951", "stderr": "", "stderr_lines": [], "stdout": "/dev/dm-1", "stdout_lines": ["/dev/dm-1"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Set some facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:20 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [{"block_available": 1036712, "block_size": 4096, "block_total": 1046016, "block_used": 9304, "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,noquota", "size_available": 4246372352, "size_total": 4284481536, "uuid": "c5627293-a41a-4ffb-bcdc-113fe4793ea9"}], "storage_test_mount_expected_match_count": "1", "storage_test_mount_point_matches": [{"block_available": 1036712, "block_size": 4096, "block_total": 1046016, "block_used": 9304, "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,noquota", "size_available": 4246372352, "size_total": 4284481536, "uuid": "c5627293-a41a-4ffb-bcdc-113fe4793ea9"}]}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:31 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:40 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:48 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Unset facts] ************************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:58 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_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/tmpr6sk038f/tests/test-verify-volume-fstab.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:16 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:23 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/phi-test1"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/phi-test1"], "delta": "0:00:00.002916", "end": "2020-05-27 13:46:33.027083", "rc": 0, "start": "2020-05-27 13:46:33.024167", "stderr": "", "stderr_lines": [], "stdout": "/dev/dm-1", "stdout_lines": ["/dev/dm-1"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify fs type] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:21 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify fs label] ********************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:27 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/phi-test1"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/phi-test1"], "delta": "0:00:00.002785", "end": "2020-05-27 13:46:33.508521", "rc": 0, "start": "2020-05-27 13:46:33.505736", "stderr": "", "stderr_lines": [], "stdout": "/dev/dm-1", "stdout_lines": ["/dev/dm-1"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [See whether the device node is present] ********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:21 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "stat": {"atime": 1590587168.1639519, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "ctime": 1590587168.1639519, "dev": 6, "device_type": 64769, "executable": false, "exists": true, "gid": 6, "gr_name": "disk", "inode": 13901, "isblk": true, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mimetype": "inode/symlink", "mode": "0660", "mtime": 1590587168.1639519, "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/tmpr6sk038f/tests/test-verify-volume-device.yml:27 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:35 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:41 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "lvm"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:45 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:50 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": true, "_storage_volume_tests": ["mount", "fstab", "fs", "device"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:12 included: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/phi-test2"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/phi-test2"], "delta": "0:00:00.002309", "end": "2020-05-27 13:46:34.543932", "rc": 0, "start": "2020-05-27 13:46:34.541623", "stderr": "", "stderr_lines": [], "stdout": "/dev/dm-0", "stdout_lines": ["/dev/dm-0"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Set some facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:20 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [{"block_available": 1036712, "block_size": 4096, "block_total": 1046016, "block_used": 9304, "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,noquota", "size_available": 4246372352, "size_total": 4284481536, "uuid": "16ddaed9-db3c-4f73-b81d-633b21b39186"}], "storage_test_mount_expected_match_count": "1", "storage_test_mount_point_matches": [{"block_available": 1036712, "block_size": 4096, "block_total": 1046016, "block_used": 9304, "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,noquota", "size_available": 4246372352, "size_total": 4284481536, "uuid": "16ddaed9-db3c-4f73-b81d-633b21b39186"}]}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:31 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:40 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:48 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Unset facts] ************************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:58 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_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/tmpr6sk038f/tests/test-verify-volume-fstab.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:16 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:23 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/phi-test2"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/phi-test2"], "delta": "0:00:00.002904", "end": "2020-05-27 13:46:35.259327", "rc": 0, "start": "2020-05-27 13:46:35.256423", "stderr": "", "stderr_lines": [], "stdout": "/dev/dm-0", "stdout_lines": ["/dev/dm-0"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify fs type] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:21 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify fs label] ********************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:27 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/phi-test2"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/phi-test2"], "delta": "0:00:00.002928", "end": "2020-05-27 13:46:35.743648", "rc": 0, "start": "2020-05-27 13:46:35.740720", "stderr": "", "stderr_lines": [], "stdout": "/dev/dm-0", "stdout_lines": ["/dev/dm-0"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [See whether the device node is present] ********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:21 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "stat": {"atime": 1590587167.9819517, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "ctime": 1590587167.9819517, "dev": 6, "device_type": 64768, "executable": false, "exists": true, "gid": 6, "gr_name": "disk", "inode": 13900, "isblk": true, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mimetype": "inode/symlink", "mode": "0660", "mtime": 1590587167.9819517, "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/tmpr6sk038f/tests/test-verify-volume-device.yml:27 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:35 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:41 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "lvm"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:45 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:50 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:34 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_pool": null}, "changed": false} TASK [Verify the volumes with no pool were correctly managed] ****************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:41 TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:51 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_blkinfo": null, "storage_test_fstab": null, "storage_test_volume": null}, "changed": false} TASK [Clean up] **************************************************************** task path: /tmp/tmpr6sk038f/tests/tests_lvm_multiple_disks_multiple_volumes.yml:54 TASK [storage : Set version specific variables] ******************************** task path: /tmp/tmpr6sk038f/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/tmp/tmpr6sk038f/vars/Fedora.yml) => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-dm", "libblockdev-lvm", "libblockdev-part", "libblockdev-mdraid"]}, "ansible_included_var_files": ["/tmp/tmpr6sk038f/vars/Fedora.yml"], "ansible_loop_var": "item", "changed": false, "item": "/tmp/tmpr6sk038f/vars/Fedora.yml"} TASK [storage : define an empty list of pools to be used in testing] *********** task path: /tmp/tmpr6sk038f/tasks/main.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [storage : define an empty list of volumes to be used in testing] ********* task path: /tmp/tmpr6sk038f/tasks/main.yml:13 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : include the appropriate provider tasks] ************************ task path: /tmp/tmpr6sk038f/tasks/main.yml:17 included: /tmp/tmpr6sk038f/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [storage : get a list of rpm packages installed on host machine] ********** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [storage : make sure blivet is available] ********************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : initialize internal facts] ************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.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 [storage : Apply defaults to pools and volumes [1/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:28 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'name': 'phi', 'disks': ['vdb', 'vdc'], 'volumes': [], 'state': 'absent'}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vdb", "vdc"], "name": "phi", "state": "absent", "type": "lvm", "volumes": []}]}, "ansible_loop_var": "pool", "changed": false, "pool": {"disks": ["vdb", "vdc"], "name": "phi", "state": "absent", "volumes": []}} TASK [storage : Apply defaults to pools and volumes [2/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:36 TASK [storage : Apply defaults to pools and volumes [3/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:44 TASK [storage : Apply defaults to pools and volumes [4/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:52 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'absent', 'type': 'lvm', 'name': 'phi', 'disks': ['vdb', 'vdc'], 'volumes': []}) => {"ansible_facts": {"_storage_vols_no_defaults_by_pool": {"phi": []}}, "ansible_loop_var": "item", "changed": false, "item": {"disks": ["vdb", "vdc"], "name": "phi", "state": "absent", "type": "lvm", "volumes": []}} TASK [storage : Apply defaults to pools and volumes [5/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:61 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'absent', 'type': 'lvm', 'name': 'phi', 'disks': ['vdb', 'vdc'], 'volumes': []}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vdb", "vdc"], "name": "phi", "state": "absent", "type": "lvm", "volumes": []}]}, "ansible_index_var": "idx", "ansible_loop_var": "pool", "changed": false, "idx": 0, "pool": {"disks": ["vdb", "vdc"], "name": "phi", "state": "absent", "type": "lvm", "volumes": []}} TASK [storage : Apply defaults to pools and volumes [6/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:72 TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools": [ { "disks": [ "vdb", "vdc" ], "name": "phi", "state": "absent", "type": "lvm", "volumes": [] } ] } TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_volumes": [] } TASK [storage : get required packages] ***************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": []} TASK [storage : make sure required packages are installed] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : manage the pools and volumes to match the specified state] ***** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:104 changed: [/cache/Fedora-Cloud-Base-30-1.2.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/vdc", "fs_type": "lvmpv"}], "changed": true, "leaves": ["/dev/sr0", "/dev/vda1", "/dev/vdb", "/dev/vdc"], "mounts": [{"path": "/opt/test1", "state": "absent"}, {"path": "/opt/test2", "state": "absent"}], "packages": ["e2fsprogs"], "pools": [{"disks": ["vdb", "vdc"], "name": "phi", "state": "absent", "type": "lvm", "volumes": []}], "volumes": []} TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:113 ok: [/cache/Fedora-Cloud-Base-30-1.2.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/vdc", "fs_type": "lvmpv" } ], "changed": true, "failed": false, "leaves": [ "/dev/sr0", "/dev/vda1", "/dev/vdb", "/dev/vdc" ], "mounts": [ { "path": "/opt/test1", "state": "absent" }, { "path": "/opt/test2", "state": "absent" } ], "packages": [ "e2fsprogs" ], "pools": [ { "disks": [ "vdb", "vdc" ], "name": "phi", "state": "absent", "type": "lvm", "volumes": [] } ], "volumes": [] } } TASK [storage : set the list of pools for test verification] ******************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:116 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": [{"disks": ["vdb", "vdc"], "name": "phi", "state": "absent", "type": "lvm", "volumes": []}]}, "changed": false} TASK [storage : set the list of volumes for test verification] ***************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:120 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : manage mounts to match the specified state] ******************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:132 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'path': '/opt/test1', 'state': '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"} changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'path': '/opt/test2', 'state': 'absent'}) => {"ansible_loop_var": "mount_info", "changed": true, "dump": "0", "fstab": "/etc/fstab", "mount_info": {"path": "/opt/test2", "state": "absent"}, "name": "/opt/test2", "opts": "defaults", "passno": "0"} TASK [storage : tell systemd to refresh its view of /etc/fstab] **************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:143 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [storage : Update facts] ************************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:153 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmpr6sk038f/tests/tests_lvm_multiple_disks_multiple_volumes.yml:64 included: /tmp/tmpr6sk038f/tests/verify-role-results.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [Print out pool information] ********************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:1 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools_list": [ { "disks": [ "vdb", "vdc" ], "name": "phi", "state": "absent", "type": "lvm", "volumes": [] } ] } TASK [Print out volume information] ******************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:6 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {} TASK [Collect info about the volumes.] ***************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:14 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "info": {"/dev/sr0": {"fstype": "iso9660", "label": "cidata", "name": "/dev/sr0", "type": "rom", "uuid": "2020-05-27-13-42-13-00"}, "/dev/vda": {"fstype": "", "label": "", "name": "/dev/vda", "type": "disk", "uuid": ""}, "/dev/vda1": {"fstype": "ext4", "label": "", "name": "/dev/vda1", "type": "partition", "uuid": "ea711a29-e460-4879-9d70-9da99ae021f9"}, "/dev/vdb": {"fstype": "", "label": "", "name": "/dev/vdb", "type": "disk", "uuid": ""}, "/dev/vdc": {"fstype": "", "label": "", "name": "/dev/vdc", "type": "disk", "uuid": ""}}} TASK [Read the /etc/fstab file for volume existence] *************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:19 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/fstab"], "delta": "0:00:00.002719", "end": "2020-05-27 13:46:50.426384", "rc": 0, "start": "2020-05-27 13:46:50.423665", "stderr": "", "stderr_lines": [], "stdout": "\n#\n# /etc/fstab\n# Created by anaconda on Fri Apr 26 02:02:19 2019\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=ea711a29-e460-4879-9d70-9da99ae021f9 / ext4 defaults 1 1", "stdout_lines": ["", "#", "# /etc/fstab", "# Created by anaconda on Fri Apr 26 02:02:19 2019", "#", "# 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=ea711a29-e460-4879-9d70-9da99ae021f9 / ext4 defaults 1 1"]} TASK [Verify the volumes listed in storage_pools were correctly managed] ******* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:27 [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/tmpr6sk038f/tests/test-verify-pool.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-pool.yml:5 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pool_tests": ["name", "type", "size", "members"]}, "changed": false} TASK [Verify the volumes in this pool were correctly managed] ****************** task path: /tmp/tmpr6sk038f/tests/test-verify-pool.yml:17 TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:34 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_pool": null}, "changed": false} TASK [Verify the volumes with no pool were correctly managed] ****************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:41 TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:51 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_blkinfo": null, "storage_test_fstab": null, "storage_test_volume": null}, "changed": false} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 : ok=225 changed=17 unreachable=0 failed=0 skipped=42 rescued=0 ignored=0 + cd /tmp/tmpr6sk038f/tests; TEST_SUBJECTS=/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_storage-91-a6b7623-fedora-30-97_lk9m2/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmpr6sk038f/_setup.yml /tmp/tmpr6sk038f/tests/tests_lvm_one_disk_multiple_volumes.yml ansible-playbook 2.9.9 config file = /etc/ansible/ansible.cfg configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.8/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 3.8.2 (default, Feb 28 2020, 00:00:00) [GCC 10.0.1 20200216 (Red Hat 10.0.1-0.8)] Using /etc/ansible/ansible.cfg as config file PLAYBOOK: _setup.yml *********************************************************** 1 plays in /tmp/tmpr6sk038f/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmpr6sk038f/_setup.yml:5 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "groups": { "all": [ "/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2" ], "localhost": [ "/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2" ], "subjects": [ "/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmpr6sk038f/_setup.yml:7 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/Fedora-Cloud-Base-30-1.2.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/tmpr6sk038f/tests/tests_lvm_one_disk_multiple_volumes.yml PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpr6sk038f/tests/tests_lvm_one_disk_multiple_volumes.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] META: ran handlers TASK [include_role : storage] ************************************************** task path: /tmp/tmpr6sk038f/tests/tests_lvm_one_disk_multiple_volumes.yml:9 TASK [storage : Set version specific variables] ******************************** task path: /tmp/tmpr6sk038f/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/tmp/tmpr6sk038f/vars/Fedora.yml) => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-dm", "libblockdev-lvm", "libblockdev-part", "libblockdev-mdraid"]}, "ansible_included_var_files": ["/tmp/tmpr6sk038f/vars/Fedora.yml"], "ansible_loop_var": "item", "changed": false, "item": "/tmp/tmpr6sk038f/vars/Fedora.yml"} TASK [storage : define an empty list of pools to be used in testing] *********** task path: /tmp/tmpr6sk038f/tasks/main.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [storage : define an empty list of volumes to be used in testing] ********* task path: /tmp/tmpr6sk038f/tasks/main.yml:13 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : include the appropriate provider tasks] ************************ task path: /tmp/tmpr6sk038f/tasks/main.yml:17 included: /tmp/tmpr6sk038f/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [storage : get a list of rpm packages installed on host machine] ********** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [storage : make sure blivet is available] ********************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:7 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: libblockdev-mpath-2.23-1.fc30.x86_64", "Installed: libblockdev-nvdimm-2.23-1.fc30.x86_64", "Installed: userspace-rcu-0.10.1-5.fc30.x86_64", "Installed: libblockdev-part-2.23-1.fc30.x86_64", "Installed: dmraid-1.0.0.rc16-41.fc30.x86_64", "Installed: dmraid-events-1.0.0.rc16-41.fc30.x86_64", "Installed: lzo-2.08-15.fc30.x86_64", "Installed: libblockdev-swap-2.23-1.fc30.x86_64", "Installed: lvm2-2.02.183-3.fc30.x86_64", "Installed: libblockdev-utils-2.23-1.fc30.x86_64", "Installed: lvm2-libs-2.02.183-3.fc30.x86_64", "Installed: python3-blivet-1:3.1.4-1.fc30.noarch", "Installed: python3-blockdev-2.23-1.fc30.x86_64", "Installed: daxctl-libs-68-1.fc30.x86_64", "Installed: mdadm-4.1-1.fc30.x86_64", "Installed: blivet-data-1:3.1.4-1.fc30.noarch", "Installed: sgpio-1.2.0.10-23.fc30.x86_64", "Installed: nspr-4.25.0-1.fc30.x86_64", "Installed: python3-bytesize-2.2-1.fc30.x86_64", "Installed: device-mapper-event-1.02.154-3.fc30.x86_64", "Installed: lsof-4.91-3.fc30.x86_64", "Installed: nss-3.51.1-1.fc30.x86_64", "Installed: device-mapper-event-libs-1.02.154-3.fc30.x86_64", "Installed: device-mapper-multipath-0.7.9-6.git2df6110.fc30.x86_64", "Installed: gdisk-1.0.5-1.fc30.x86_64", "Installed: device-mapper-multipath-libs-0.7.9-6.git2df6110.fc30.x86_64", "Installed: nss-softokn-3.51.1-1.fc30.x86_64", "Installed: python3-gobject-base-3.32.2-1.fc30.x86_64", "Installed: device-mapper-persistent-data-0.7.6-4.fc30.x86_64", "Installed: gobject-introspection-1.60.2-1.fc30.x86_64", "Installed: nss-softokn-freebl-3.51.1-1.fc30.x86_64", "Installed: libbytesize-2.2-1.fc30.x86_64", "Installed: nss-sysinit-3.51.1-1.fc30.x86_64", "Installed: nss-util-3.51.1-1.fc30.x86_64", "Installed: volume_key-libs-0.3.12-3.fc30.x86_64", "Installed: bcache-tools-1.0.8-15.fc30.x86_64", "Installed: ndctl-68-1.fc30.x86_64", "Installed: ndctl-libs-68-1.fc30.x86_64", "Installed: libblockdev-2.23-1.fc30.x86_64", "Installed: libblockdev-btrfs-2.23-1.fc30.x86_64", "Installed: libblockdev-crypto-2.23-1.fc30.x86_64", "Installed: python3-pyudev-0.21.0-10.fc30.noarch", "Installed: btrfs-progs-5.6-1.fc30.x86_64", "Installed: libblockdev-dm-2.23-1.fc30.x86_64", "Installed: libblockdev-fs-2.23-1.fc30.x86_64", "Installed: libblockdev-kbd-2.23-1.fc30.x86_64", "Installed: libblockdev-loop-2.23-1.fc30.x86_64", "Installed: libblockdev-lvm-2.23-1.fc30.x86_64", "Installed: python3-pyparted-1:3.11.2-1.fc30.x86_64", "Installed: libaio-0.3.111-4.fc30.x86_64", "Installed: libblockdev-mdraid-2.23-1.fc30.x86_64"]} TASK [storage : initialize internal facts] ************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.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 [storage : Apply defaults to pools and volumes [1/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:28 TASK [storage : Apply defaults to pools and volumes [2/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:36 TASK [storage : Apply defaults to pools and volumes [3/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:44 TASK [storage : Apply defaults to pools and volumes [4/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:52 TASK [storage : Apply defaults to pools and volumes [5/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:61 TASK [storage : Apply defaults to pools and volumes [6/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:72 TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools": [] } TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_volumes": [] } TASK [storage : get required packages] ***************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": []} TASK [storage : make sure required packages are installed] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : manage the pools and volumes to match the specified state] ***** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:104 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": []} TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:113 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "blivet_output": { "actions": [], "changed": false, "failed": false, "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": [] } } TASK [storage : set the list of pools for test verification] ******************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:116 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [storage : set the list of volumes for test verification] ***************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:120 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : manage mounts to match the specified state] ******************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:132 TASK [storage : tell systemd to refresh its view of /etc/fstab] **************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:143 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [storage : Update facts] ************************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:153 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmpr6sk038f/tests/tests_lvm_one_disk_multiple_volumes.yml:12 included: /tmp/tmpr6sk038f/tests/get_unused_disk.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [Find unused disks in the system] ***************************************** task path: /tmp/tmpr6sk038f/tests/get_unused_disk.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "disks": ["vdb"]} TASK [set_fact] **************************************************************** task path: /tmp/tmpr6sk038f/tests/get_unused_disk.yml:8 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"unused_disks": ["vdb"]}, "changed": false} TASK [Exit playbook when there's not enough unused disks in the system] ******** task path: /tmp/tmpr6sk038f/tests/get_unused_disk.yml:12 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Print unused disks] ****************************************************** task path: /tmp/tmpr6sk038f/tests/get_unused_disk.yml:17 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "unused_disks": [ "vdb" ] } TASK [Create three LVM logical volumes under one volume group] ***************** task path: /tmp/tmpr6sk038f/tests/tests_lvm_one_disk_multiple_volumes.yml:17 TASK [storage : Set version specific variables] ******************************** task path: /tmp/tmpr6sk038f/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/tmp/tmpr6sk038f/vars/Fedora.yml) => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-dm", "libblockdev-lvm", "libblockdev-part", "libblockdev-mdraid"]}, "ansible_included_var_files": ["/tmp/tmpr6sk038f/vars/Fedora.yml"], "ansible_loop_var": "item", "changed": false, "item": "/tmp/tmpr6sk038f/vars/Fedora.yml"} TASK [storage : define an empty list of pools to be used in testing] *********** task path: /tmp/tmpr6sk038f/tasks/main.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [storage : define an empty list of volumes to be used in testing] ********* task path: /tmp/tmpr6sk038f/tasks/main.yml:13 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : include the appropriate provider tasks] ************************ task path: /tmp/tmpr6sk038f/tasks/main.yml:17 included: /tmp/tmpr6sk038f/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [storage : get a list of rpm packages installed on host machine] ********** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [storage : make sure blivet is available] ********************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : initialize internal facts] ************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.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 [storage : Apply defaults to pools and volumes [1/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:28 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'name': 'foo', 'disks': ['vdb'], 'volumes': [{'name': 'test1', 'size': '3g', 'mount_point': '/opt/test1'}, {'name': 'test2', 'size': '3g', 'mount_point': '/opt/test2'}, {'name': 'test3', 'size': '3g', 'mount_point': '/opt/test3'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vdb"], "name": "foo", "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": ["vdb"], "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 [storage : Apply defaults to pools and volumes [2/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:36 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=[{'state': 'present', 'type': 'lvm', 'name': 'foo', 'disks': ['vdb'], 'volumes': [{'name': 'test1', 'size': '3g', 'mount_point': '/opt/test1'}, {'name': 'test2', 'size': '3g', 'mount_point': '/opt/test2'}, {'name': 'test3', 'size': '3g', 'mount_point': '/opt/test3'}]}, {'name': 'test1', 'size': '3g', 'mount_point': '/opt/test1'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "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": ["vdb"], "name": "foo", "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-30-1.2.x86_64.qcow2] => (item=[{'state': 'present', 'type': 'lvm', 'name': 'foo', 'disks': ['vdb'], 'volumes': [{'name': 'test1', 'size': '3g', 'mount_point': '/opt/test1'}, {'name': 'test2', 'size': '3g', 'mount_point': '/opt/test2'}, {'name': 'test3', 'size': '3g', 'mount_point': '/opt/test3'}]}, {'name': 'test2', 'size': '3g', 'mount_point': '/opt/test2'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "size": 0, "state": "present", "type": "lvm"}, {"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "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": ["vdb"], "name": "foo", "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-30-1.2.x86_64.qcow2] => (item=[{'state': 'present', 'type': 'lvm', 'name': 'foo', 'disks': ['vdb'], 'volumes': [{'name': 'test1', 'size': '3g', 'mount_point': '/opt/test1'}, {'name': 'test2', 'size': '3g', 'mount_point': '/opt/test2'}, {'name': 'test3', 'size': '3g', 'mount_point': '/opt/test3'}]}, {'name': 'test3', 'size': '3g', 'mount_point': '/opt/test3'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "size": 0, "state": "present", "type": "lvm"}, {"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "size": 0, "state": "present", "type": "lvm"}, {"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "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": ["vdb"], "name": "foo", "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 [storage : Apply defaults to pools and volumes [3/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:44 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=[{'name': 'test1', 'size': '3g', 'mount_point': '/opt/test1'}, {'state': 'present', 'type': 'lvm', 'size': 0, 'fs_type': 'xfs', 'fs_label': '', 'fs_create_options': '', 'fs_overwrite_existing': True, 'mount_point': '', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid'}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "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"}, {"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "size": 0, "state": "present", "type": "lvm"}]} ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=[{'name': 'test2', 'size': '3g', 'mount_point': '/opt/test2'}, {'state': 'present', 'type': 'lvm', 'size': 0, 'fs_type': 'xfs', 'fs_label': '', 'fs_create_options': '', 'fs_overwrite_existing': True, 'mount_point': '', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid'}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "3g", "state": "present", "type": "lvm"}, {"fs_create_options": "", "fs_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", "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"}, {"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "size": 0, "state": "present", "type": "lvm"}]} ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=[{'name': 'test3', 'size': '3g', 'mount_point': '/opt/test3'}, {'state': 'present', 'type': 'lvm', 'size': 0, 'fs_type': 'xfs', 'fs_label': '', 'fs_create_options': '', 'fs_overwrite_existing': True, 'mount_point': '', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid'}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "3g", "state": "present", "type": "lvm"}, {"fs_create_options": "", "fs_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", "size": "3g", "state": "present", "type": "lvm"}, {"fs_create_options": "", "fs_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", "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"}, {"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "size": 0, "state": "present", "type": "lvm"}]} TASK [storage : Apply defaults to pools and volumes [4/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:52 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'name': 'foo', 'disks': ['vdb'], 'volumes': [{'name': 'test1', 'size': '3g', 'mount_point': '/opt/test1'}, {'name': 'test2', 'size': '3g', 'mount_point': '/opt/test2'}, {'name': 'test3', 'size': '3g', 'mount_point': '/opt/test3'}]}) => {"ansible_facts": {"_storage_vols_no_defaults_by_pool": {"foo": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "3g", "state": "present", "type": "lvm"}, {"fs_create_options": "", "fs_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", "size": "3g", "state": "present", "type": "lvm"}, {"fs_create_options": "", "fs_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", "size": "3g", "state": "present", "type": "lvm"}]}}, "ansible_loop_var": "item", "changed": false, "item": {"disks": ["vdb"], "name": "foo", "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 [storage : Apply defaults to pools and volumes [5/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:61 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'name': 'foo', 'disks': ['vdb'], 'volumes': [{'name': 'test1', 'size': '3g', 'mount_point': '/opt/test1'}, {'name': 'test2', 'size': '3g', 'mount_point': '/opt/test2'}, {'name': 'test3', 'size': '3g', 'mount_point': '/opt/test3'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vdb"], "name": "foo", "state": "present", "type": "lvm", "volumes": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "3g", "state": "present", "type": "lvm"}, {"fs_create_options": "", "fs_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", "size": "3g", "state": "present", "type": "lvm"}, {"fs_create_options": "", "fs_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", "size": "3g", "state": "present", "type": "lvm"}]}]}, "ansible_index_var": "idx", "ansible_loop_var": "pool", "changed": false, "idx": 0, "pool": {"disks": ["vdb"], "name": "foo", "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 [storage : Apply defaults to pools and volumes [6/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:72 TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools": [ { "disks": [ "vdb" ], "name": "foo", "state": "present", "type": "lvm", "volumes": [ { "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "3g", "state": "present", "type": "lvm" }, { "fs_create_options": "", "fs_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", "size": "3g", "state": "present", "type": "lvm" }, { "fs_create_options": "", "fs_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", "size": "3g", "state": "present", "type": "lvm" } ] } ] } TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_volumes": [] } TASK [storage : get required packages] ***************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": [], "mounts": [], "packages": ["lvm2", "xfsprogs"], "pools": [], "volumes": []} TASK [storage : make sure required packages are installed] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : manage the pools and volumes to match the specified state] ***** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:104 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [{"action": "create format", "device": "/dev/vdb", "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, "leaves": ["/dev/sr0", "/dev/vda1", "/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": ["e2fsprogs", "xfsprogs", "lvm2"], "pools": [{"disks": ["vdb"], "name": "foo", "state": "present", "type": "lvm", "volumes": [{"_device": "/dev/mapper/foo-test1", "_mount_id": "/dev/mapper/foo-test1", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "3g", "state": "present", "type": "lvm"}, {"_device": "/dev/mapper/foo-test2", "_mount_id": "/dev/mapper/foo-test2", "fs_create_options": "", "fs_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", "size": "3g", "state": "present", "type": "lvm"}, {"_device": "/dev/mapper/foo-test3", "_mount_id": "/dev/mapper/foo-test3", "fs_create_options": "", "fs_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", "size": "3g", "state": "present", "type": "lvm"}]}], "volumes": []} TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:113 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "blivet_output": { "actions": [ { "action": "create format", "device": "/dev/vdb", "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, "failed": false, "leaves": [ "/dev/sr0", "/dev/vda1", "/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": [ "e2fsprogs", "xfsprogs", "lvm2" ], "pools": [ { "disks": [ "vdb" ], "name": "foo", "state": "present", "type": "lvm", "volumes": [ { "_device": "/dev/mapper/foo-test1", "_mount_id": "/dev/mapper/foo-test1", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "3g", "state": "present", "type": "lvm" }, { "_device": "/dev/mapper/foo-test2", "_mount_id": "/dev/mapper/foo-test2", "fs_create_options": "", "fs_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", "size": "3g", "state": "present", "type": "lvm" }, { "_device": "/dev/mapper/foo-test3", "_mount_id": "/dev/mapper/foo-test3", "fs_create_options": "", "fs_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", "size": "3g", "state": "present", "type": "lvm" } ] } ], "volumes": [] } } TASK [storage : set the list of pools for test verification] ******************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:116 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": [{"disks": ["vdb"], "name": "foo", "state": "present", "type": "lvm", "volumes": [{"_device": "/dev/mapper/foo-test1", "_mount_id": "/dev/mapper/foo-test1", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "3g", "state": "present", "type": "lvm"}, {"_device": "/dev/mapper/foo-test2", "_mount_id": "/dev/mapper/foo-test2", "fs_create_options": "", "fs_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", "size": "3g", "state": "present", "type": "lvm"}, {"_device": "/dev/mapper/foo-test3", "_mount_id": "/dev/mapper/foo-test3", "fs_create_options": "", "fs_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", "size": "3g", "state": "present", "type": "lvm"}]}]}, "changed": false} TASK [storage : set the list of volumes for test verification] ***************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:120 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : manage mounts to match the specified state] ******************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:132 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'src': '/dev/mapper/foo-test1', 'path': '/opt/test1', 'fstype': 'xfs', 'opts': 'defaults', 'dump': 0, 'passno': 0, 'state': 'mounted'}) => {"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-30-1.2.x86_64.qcow2] => (item={'src': '/dev/mapper/foo-test2', 'path': '/opt/test2', 'fstype': 'xfs', 'opts': 'defaults', 'dump': 0, 'passno': 0, 'state': 'mounted'}) => {"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-30-1.2.x86_64.qcow2] => (item={'src': '/dev/mapper/foo-test3', 'path': '/opt/test3', 'fstype': 'xfs', 'opts': 'defaults', 'dump': 0, 'passno': 0, 'state': 'mounted'}) => {"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 [storage : tell systemd to refresh its view of /etc/fstab] **************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:143 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [storage : Update facts] ************************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:153 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmpr6sk038f/tests/tests_lvm_one_disk_multiple_volumes.yml:35 included: /tmp/tmpr6sk038f/tests/verify-role-results.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [Print out pool information] ********************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:1 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools_list": [ { "disks": [ "vdb" ], "name": "foo", "state": "present", "type": "lvm", "volumes": [ { "_device": "/dev/mapper/foo-test1", "_mount_id": "/dev/mapper/foo-test1", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "3g", "state": "present", "type": "lvm" }, { "_device": "/dev/mapper/foo-test2", "_mount_id": "/dev/mapper/foo-test2", "fs_create_options": "", "fs_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", "size": "3g", "state": "present", "type": "lvm" }, { "_device": "/dev/mapper/foo-test3", "_mount_id": "/dev/mapper/foo-test3", "fs_create_options": "", "fs_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", "size": "3g", "state": "present", "type": "lvm" } ] } ] } TASK [Print out volume information] ******************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:6 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {} TASK [Collect info about the volumes.] ***************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:14 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "info": {"/dev/mapper/foo-test1": {"fstype": "xfs", "label": "", "name": "/dev/mapper/foo-test1", "type": "lvm", "uuid": "6397c89d-e20f-4ed3-b2eb-7d2a377ea826"}, "/dev/mapper/foo-test2": {"fstype": "xfs", "label": "", "name": "/dev/mapper/foo-test2", "type": "lvm", "uuid": "c10404b9-bd3a-4192-b11c-c2766a2cec9b"}, "/dev/mapper/foo-test3": {"fstype": "xfs", "label": "", "name": "/dev/mapper/foo-test3", "type": "lvm", "uuid": "bc3ec62e-470e-4fb9-91a3-6d7c1f8b295f"}, "/dev/sr0": {"fstype": "iso9660", "label": "cidata", "name": "/dev/sr0", "type": "rom", "uuid": "2020-05-27-13-46-50-00"}, "/dev/vda": {"fstype": "", "label": "", "name": "/dev/vda", "type": "disk", "uuid": ""}, "/dev/vda1": {"fstype": "ext4", "label": "", "name": "/dev/vda1", "type": "partition", "uuid": "ea711a29-e460-4879-9d70-9da99ae021f9"}, "/dev/vdb": {"fstype": "LVM2_member", "label": "", "name": "/dev/vdb", "type": "disk", "uuid": "w36tDJ-9S4e-rVoS-i0o5-Shqy-0Y8b-2B2BXH"}, "/dev/vdc": {"fstype": "", "label": "", "name": "/dev/vdc", "type": "disk", "uuid": ""}}} TASK [Read the /etc/fstab file for volume existence] *************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:19 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/fstab"], "delta": "0:00:00.003254", "end": "2020-05-27 13:48:34.937822", "rc": 0, "start": "2020-05-27 13:48:34.934568", "stderr": "", "stderr_lines": [], "stdout": "\n#\n# /etc/fstab\n# Created by anaconda on Fri Apr 26 02:02:19 2019\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=ea711a29-e460-4879-9d70-9da99ae021f9 / 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 Fri Apr 26 02:02:19 2019", "#", "# 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=ea711a29-e460-4879-9d70-9da99ae021f9 / 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 [Verify the volumes listed in storage_pools were correctly managed] ******* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:27 included: /tmp/tmpr6sk038f/tests/test-verify-pool.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-pool.yml:5 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pool_tests": ["name", "type", "size", "members"]}, "changed": false} TASK [Verify the volumes in this pool were correctly managed] ****************** task path: /tmp/tmpr6sk038f/tests/test-verify-pool.yml:17 included: /tmp/tmpr6sk038f/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": true, "_storage_volume_tests": ["mount", "fstab", "fs", "device"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:12 included: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/foo-test1"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/foo-test1"], "delta": "0:00:00.003922", "end": "2020-05-27 13:48:35.520332", "rc": 0, "start": "2020-05-27 13:48:35.516410", "stderr": "", "stderr_lines": [], "stdout": "/dev/dm-2", "stdout_lines": ["/dev/dm-2"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Set some facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:20 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [{"block_available": 774836, "block_size": 4096, "block_total": 783872, "block_used": 9036, "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,noquota", "size_available": 3173728256, "size_total": 3210739712, "uuid": "6397c89d-e20f-4ed3-b2eb-7d2a377ea826"}], "storage_test_mount_expected_match_count": "1", "storage_test_mount_point_matches": [{"block_available": 774836, "block_size": 4096, "block_total": 783872, "block_used": 9036, "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,noquota", "size_available": 3173728256, "size_total": 3210739712, "uuid": "6397c89d-e20f-4ed3-b2eb-7d2a377ea826"}]}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:31 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:40 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:48 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Unset facts] ************************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:58 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_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/tmpr6sk038f/tests/test-verify-volume-fstab.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:16 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:23 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/foo-test1"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/foo-test1"], "delta": "0:00:00.002557", "end": "2020-05-27 13:48:36.219269", "rc": 0, "start": "2020-05-27 13:48:36.216712", "stderr": "", "stderr_lines": [], "stdout": "/dev/dm-2", "stdout_lines": ["/dev/dm-2"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify fs type] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:21 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify fs label] ********************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:27 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/foo-test1"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/foo-test1"], "delta": "0:00:00.003114", "end": "2020-05-27 13:48:36.688590", "rc": 0, "start": "2020-05-27 13:48:36.685476", "stderr": "", "stderr_lines": [], "stdout": "/dev/dm-2", "stdout_lines": ["/dev/dm-2"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [See whether the device node is present] ********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:21 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "stat": {"atime": 1590587310.8420448, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "ctime": 1590587310.8420448, "dev": 6, "device_type": 64770, "executable": false, "exists": true, "gid": 6, "gr_name": "disk", "inode": 13923, "isblk": true, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mimetype": "inode/symlink", "mode": "0660", "mtime": 1590587310.8420448, "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/tmpr6sk038f/tests/test-verify-volume-device.yml:27 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:35 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:41 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "lvm"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:45 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:50 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": true, "_storage_volume_tests": ["mount", "fstab", "fs", "device"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:12 included: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/foo-test2"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/foo-test2"], "delta": "0:00:00.002850", "end": "2020-05-27 13:48:37.873499", "rc": 0, "start": "2020-05-27 13:48:37.870649", "stderr": "", "stderr_lines": [], "stdout": "/dev/dm-1", "stdout_lines": ["/dev/dm-1"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Set some facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:20 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [{"block_available": 774836, "block_size": 4096, "block_total": 783872, "block_used": 9036, "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,noquota", "size_available": 3173728256, "size_total": 3210739712, "uuid": "c10404b9-bd3a-4192-b11c-c2766a2cec9b"}], "storage_test_mount_expected_match_count": "1", "storage_test_mount_point_matches": [{"block_available": 774836, "block_size": 4096, "block_total": 783872, "block_used": 9036, "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,noquota", "size_available": 3173728256, "size_total": 3210739712, "uuid": "c10404b9-bd3a-4192-b11c-c2766a2cec9b"}]}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:31 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:40 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:48 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Unset facts] ************************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:58 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_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/tmpr6sk038f/tests/test-verify-volume-fstab.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:16 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:23 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/foo-test2"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/foo-test2"], "delta": "0:00:00.002986", "end": "2020-05-27 13:48:38.588412", "rc": 0, "start": "2020-05-27 13:48:38.585426", "stderr": "", "stderr_lines": [], "stdout": "/dev/dm-1", "stdout_lines": ["/dev/dm-1"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify fs type] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:21 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify fs label] ********************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:27 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/foo-test2"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/foo-test2"], "delta": "0:00:00.003034", "end": "2020-05-27 13:48:39.076655", "rc": 0, "start": "2020-05-27 13:48:39.073621", "stderr": "", "stderr_lines": [], "stdout": "/dev/dm-1", "stdout_lines": ["/dev/dm-1"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [See whether the device node is present] ********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:21 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "stat": {"atime": 1590587310.6490448, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "ctime": 1590587310.6490448, "dev": 6, "device_type": 64769, "executable": false, "exists": true, "gid": 6, "gr_name": "disk", "inode": 13922, "isblk": true, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mimetype": "inode/symlink", "mode": "0660", "mtime": 1590587310.6490448, "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/tmpr6sk038f/tests/test-verify-volume-device.yml:27 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:35 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:41 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "lvm"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:45 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:50 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": true, "_storage_volume_tests": ["mount", "fstab", "fs", "device"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:12 included: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/foo-test3"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/foo-test3"], "delta": "0:00:00.002438", "end": "2020-05-27 13:48:40.110667", "rc": 0, "start": "2020-05-27 13:48:40.108229", "stderr": "", "stderr_lines": [], "stdout": "/dev/dm-0", "stdout_lines": ["/dev/dm-0"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Set some facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:20 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [{"block_available": 774836, "block_size": 4096, "block_total": 783872, "block_used": 9036, "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,noquota", "size_available": 3173728256, "size_total": 3210739712, "uuid": "bc3ec62e-470e-4fb9-91a3-6d7c1f8b295f"}], "storage_test_mount_expected_match_count": "1", "storage_test_mount_point_matches": [{"block_available": 774836, "block_size": 4096, "block_total": 783872, "block_used": 9036, "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,noquota", "size_available": 3173728256, "size_total": 3210739712, "uuid": "bc3ec62e-470e-4fb9-91a3-6d7c1f8b295f"}]}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:31 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:40 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:48 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Unset facts] ************************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:58 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_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/tmpr6sk038f/tests/test-verify-volume-fstab.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:16 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:23 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/foo-test3"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/foo-test3"], "delta": "0:00:00.003189", "end": "2020-05-27 13:48:40.846369", "rc": 0, "start": "2020-05-27 13:48:40.843180", "stderr": "", "stderr_lines": [], "stdout": "/dev/dm-0", "stdout_lines": ["/dev/dm-0"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify fs type] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:21 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify fs label] ********************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:27 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/foo-test3"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/foo-test3"], "delta": "0:00:00.002973", "end": "2020-05-27 13:48:41.327591", "rc": 0, "start": "2020-05-27 13:48:41.324618", "stderr": "", "stderr_lines": [], "stdout": "/dev/dm-0", "stdout_lines": ["/dev/dm-0"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [See whether the device node is present] ********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:21 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "stat": {"atime": 1590587310.4680448, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "ctime": 1590587310.4680448, "dev": 6, "device_type": 64768, "executable": false, "exists": true, "gid": 6, "gr_name": "disk", "inode": 13921, "isblk": true, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mimetype": "inode/symlink", "mode": "0660", "mtime": 1590587310.4680448, "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/tmpr6sk038f/tests/test-verify-volume-device.yml:27 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:35 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:41 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "lvm"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:45 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:50 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:34 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_pool": null}, "changed": false} TASK [Verify the volumes with no pool were correctly managed] ****************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:41 TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:51 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_blkinfo": null, "storage_test_fstab": null, "storage_test_volume": null}, "changed": false} TASK [Repeat the previous invocation to verify idempotence] ******************** task path: /tmp/tmpr6sk038f/tests/tests_lvm_one_disk_multiple_volumes.yml:37 TASK [storage : Set version specific variables] ******************************** task path: /tmp/tmpr6sk038f/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/tmp/tmpr6sk038f/vars/Fedora.yml) => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-dm", "libblockdev-lvm", "libblockdev-part", "libblockdev-mdraid"]}, "ansible_included_var_files": ["/tmp/tmpr6sk038f/vars/Fedora.yml"], "ansible_loop_var": "item", "changed": false, "item": "/tmp/tmpr6sk038f/vars/Fedora.yml"} TASK [storage : define an empty list of pools to be used in testing] *********** task path: /tmp/tmpr6sk038f/tasks/main.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [storage : define an empty list of volumes to be used in testing] ********* task path: /tmp/tmpr6sk038f/tasks/main.yml:13 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : include the appropriate provider tasks] ************************ task path: /tmp/tmpr6sk038f/tasks/main.yml:17 included: /tmp/tmpr6sk038f/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [storage : get a list of rpm packages installed on host machine] ********** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [storage : make sure blivet is available] ********************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : initialize internal facts] ************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.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 [storage : Apply defaults to pools and volumes [1/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:28 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'name': 'foo', 'disks': ['vdb'], 'volumes': [{'name': 'test1', 'size': '3g', 'mount_point': '/opt/test1'}, {'name': 'test2', 'size': '3g', 'mount_point': '/opt/test2'}, {'name': 'test3', 'size': '3g', 'mount_point': '/opt/test3'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vdb"], "name": "foo", "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": ["vdb"], "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 [storage : Apply defaults to pools and volumes [2/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:36 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=[{'state': 'present', 'type': 'lvm', 'name': 'foo', 'disks': ['vdb'], 'volumes': [{'name': 'test1', 'size': '3g', 'mount_point': '/opt/test1'}, {'name': 'test2', 'size': '3g', 'mount_point': '/opt/test2'}, {'name': 'test3', 'size': '3g', 'mount_point': '/opt/test3'}]}, {'name': 'test1', 'size': '3g', 'mount_point': '/opt/test1'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "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": ["vdb"], "name": "foo", "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-30-1.2.x86_64.qcow2] => (item=[{'state': 'present', 'type': 'lvm', 'name': 'foo', 'disks': ['vdb'], 'volumes': [{'name': 'test1', 'size': '3g', 'mount_point': '/opt/test1'}, {'name': 'test2', 'size': '3g', 'mount_point': '/opt/test2'}, {'name': 'test3', 'size': '3g', 'mount_point': '/opt/test3'}]}, {'name': 'test2', 'size': '3g', 'mount_point': '/opt/test2'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "size": 0, "state": "present", "type": "lvm"}, {"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "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": ["vdb"], "name": "foo", "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-30-1.2.x86_64.qcow2] => (item=[{'state': 'present', 'type': 'lvm', 'name': 'foo', 'disks': ['vdb'], 'volumes': [{'name': 'test1', 'size': '3g', 'mount_point': '/opt/test1'}, {'name': 'test2', 'size': '3g', 'mount_point': '/opt/test2'}, {'name': 'test3', 'size': '3g', 'mount_point': '/opt/test3'}]}, {'name': 'test3', 'size': '3g', 'mount_point': '/opt/test3'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "size": 0, "state": "present", "type": "lvm"}, {"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "size": 0, "state": "present", "type": "lvm"}, {"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "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": ["vdb"], "name": "foo", "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 [storage : Apply defaults to pools and volumes [3/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:44 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=[{'name': 'test1', 'size': '3g', 'mount_point': '/opt/test1'}, {'state': 'present', 'type': 'lvm', 'size': 0, 'fs_type': 'xfs', 'fs_label': '', 'fs_create_options': '', 'fs_overwrite_existing': True, 'mount_point': '', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid'}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "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"}, {"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "size": 0, "state": "present", "type": "lvm"}]} ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=[{'name': 'test2', 'size': '3g', 'mount_point': '/opt/test2'}, {'state': 'present', 'type': 'lvm', 'size': 0, 'fs_type': 'xfs', 'fs_label': '', 'fs_create_options': '', 'fs_overwrite_existing': True, 'mount_point': '', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid'}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "3g", "state": "present", "type": "lvm"}, {"fs_create_options": "", "fs_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", "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"}, {"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "size": 0, "state": "present", "type": "lvm"}]} ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=[{'name': 'test3', 'size': '3g', 'mount_point': '/opt/test3'}, {'state': 'present', 'type': 'lvm', 'size': 0, 'fs_type': 'xfs', 'fs_label': '', 'fs_create_options': '', 'fs_overwrite_existing': True, 'mount_point': '', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid'}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "3g", "state": "present", "type": "lvm"}, {"fs_create_options": "", "fs_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", "size": "3g", "state": "present", "type": "lvm"}, {"fs_create_options": "", "fs_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", "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"}, {"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "size": 0, "state": "present", "type": "lvm"}]} TASK [storage : Apply defaults to pools and volumes [4/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:52 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'name': 'foo', 'disks': ['vdb'], 'volumes': [{'name': 'test1', 'size': '3g', 'mount_point': '/opt/test1'}, {'name': 'test2', 'size': '3g', 'mount_point': '/opt/test2'}, {'name': 'test3', 'size': '3g', 'mount_point': '/opt/test3'}]}) => {"ansible_facts": {"_storage_vols_no_defaults_by_pool": {"foo": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "3g", "state": "present", "type": "lvm"}, {"fs_create_options": "", "fs_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", "size": "3g", "state": "present", "type": "lvm"}, {"fs_create_options": "", "fs_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", "size": "3g", "state": "present", "type": "lvm"}]}}, "ansible_loop_var": "item", "changed": false, "item": {"disks": ["vdb"], "name": "foo", "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 [storage : Apply defaults to pools and volumes [5/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:61 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'name': 'foo', 'disks': ['vdb'], 'volumes': [{'name': 'test1', 'size': '3g', 'mount_point': '/opt/test1'}, {'name': 'test2', 'size': '3g', 'mount_point': '/opt/test2'}, {'name': 'test3', 'size': '3g', 'mount_point': '/opt/test3'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vdb"], "name": "foo", "state": "present", "type": "lvm", "volumes": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "3g", "state": "present", "type": "lvm"}, {"fs_create_options": "", "fs_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", "size": "3g", "state": "present", "type": "lvm"}, {"fs_create_options": "", "fs_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", "size": "3g", "state": "present", "type": "lvm"}]}]}, "ansible_index_var": "idx", "ansible_loop_var": "pool", "changed": false, "idx": 0, "pool": {"disks": ["vdb"], "name": "foo", "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 [storage : Apply defaults to pools and volumes [6/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:72 TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools": [ { "disks": [ "vdb" ], "name": "foo", "state": "present", "type": "lvm", "volumes": [ { "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "3g", "state": "present", "type": "lvm" }, { "fs_create_options": "", "fs_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", "size": "3g", "state": "present", "type": "lvm" }, { "fs_create_options": "", "fs_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", "size": "3g", "state": "present", "type": "lvm" } ] } ] } TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_volumes": [] } TASK [storage : get required packages] ***************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": [], "mounts": [], "packages": ["lvm2", "xfsprogs"], "pools": [], "volumes": []} TASK [storage : make sure required packages are installed] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : manage the pools and volumes to match the specified state] ***** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:104 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": ["/dev/sr0", "/dev/vda1", "/dev/mapper/foo-test1", "/dev/mapper/foo-test2", "/dev/mapper/foo-test3", "/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": ["lvm2", "e2fsprogs", "xfsprogs"], "pools": [{"disks": ["vdb"], "name": "foo", "state": "present", "type": "lvm", "volumes": [{"_device": "/dev/mapper/foo-test1", "_mount_id": "/dev/mapper/foo-test1", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "3g", "state": "present", "type": "lvm"}, {"_device": "/dev/mapper/foo-test2", "_mount_id": "/dev/mapper/foo-test2", "fs_create_options": "", "fs_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", "size": "3g", "state": "present", "type": "lvm"}, {"_device": "/dev/mapper/foo-test3", "_mount_id": "/dev/mapper/foo-test3", "fs_create_options": "", "fs_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", "size": "3g", "state": "present", "type": "lvm"}]}], "volumes": []} TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:113 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "blivet_output": { "actions": [], "changed": false, "failed": false, "leaves": [ "/dev/sr0", "/dev/vda1", "/dev/mapper/foo-test1", "/dev/mapper/foo-test2", "/dev/mapper/foo-test3", "/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": [ "lvm2", "e2fsprogs", "xfsprogs" ], "pools": [ { "disks": [ "vdb" ], "name": "foo", "state": "present", "type": "lvm", "volumes": [ { "_device": "/dev/mapper/foo-test1", "_mount_id": "/dev/mapper/foo-test1", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "3g", "state": "present", "type": "lvm" }, { "_device": "/dev/mapper/foo-test2", "_mount_id": "/dev/mapper/foo-test2", "fs_create_options": "", "fs_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", "size": "3g", "state": "present", "type": "lvm" }, { "_device": "/dev/mapper/foo-test3", "_mount_id": "/dev/mapper/foo-test3", "fs_create_options": "", "fs_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", "size": "3g", "state": "present", "type": "lvm" } ] } ], "volumes": [] } } TASK [storage : set the list of pools for test verification] ******************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:116 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": [{"disks": ["vdb"], "name": "foo", "state": "present", "type": "lvm", "volumes": [{"_device": "/dev/mapper/foo-test1", "_mount_id": "/dev/mapper/foo-test1", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "3g", "state": "present", "type": "lvm"}, {"_device": "/dev/mapper/foo-test2", "_mount_id": "/dev/mapper/foo-test2", "fs_create_options": "", "fs_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", "size": "3g", "state": "present", "type": "lvm"}, {"_device": "/dev/mapper/foo-test3", "_mount_id": "/dev/mapper/foo-test3", "fs_create_options": "", "fs_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", "size": "3g", "state": "present", "type": "lvm"}]}]}, "changed": false} TASK [storage : set the list of volumes for test verification] ***************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:120 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : manage mounts to match the specified state] ******************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:132 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'src': '/dev/mapper/foo-test1', 'path': '/opt/test1', 'fstype': 'xfs', 'opts': 'defaults', 'dump': 0, 'passno': 0, 'state': 'mounted'}) => {"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-30-1.2.x86_64.qcow2] => (item={'src': '/dev/mapper/foo-test2', 'path': '/opt/test2', 'fstype': 'xfs', 'opts': 'defaults', 'dump': 0, 'passno': 0, 'state': 'mounted'}) => {"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-30-1.2.x86_64.qcow2] => (item={'src': '/dev/mapper/foo-test3', 'path': '/opt/test3', 'fstype': 'xfs', 'opts': 'defaults', 'dump': 0, 'passno': 0, 'state': 'mounted'}) => {"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 [storage : tell systemd to refresh its view of /etc/fstab] **************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:143 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [storage : Update facts] ************************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:153 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmpr6sk038f/tests/tests_lvm_one_disk_multiple_volumes.yml:55 included: /tmp/tmpr6sk038f/tests/verify-role-results.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [Print out pool information] ********************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:1 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools_list": [ { "disks": [ "vdb" ], "name": "foo", "state": "present", "type": "lvm", "volumes": [ { "_device": "/dev/mapper/foo-test1", "_mount_id": "/dev/mapper/foo-test1", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "3g", "state": "present", "type": "lvm" }, { "_device": "/dev/mapper/foo-test2", "_mount_id": "/dev/mapper/foo-test2", "fs_create_options": "", "fs_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", "size": "3g", "state": "present", "type": "lvm" }, { "_device": "/dev/mapper/foo-test3", "_mount_id": "/dev/mapper/foo-test3", "fs_create_options": "", "fs_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", "size": "3g", "state": "present", "type": "lvm" } ] } ] } TASK [Print out volume information] ******************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:6 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {} TASK [Collect info about the volumes.] ***************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:14 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "info": {"/dev/mapper/foo-test1": {"fstype": "xfs", "label": "", "name": "/dev/mapper/foo-test1", "type": "lvm", "uuid": "6397c89d-e20f-4ed3-b2eb-7d2a377ea826"}, "/dev/mapper/foo-test2": {"fstype": "xfs", "label": "", "name": "/dev/mapper/foo-test2", "type": "lvm", "uuid": "c10404b9-bd3a-4192-b11c-c2766a2cec9b"}, "/dev/mapper/foo-test3": {"fstype": "xfs", "label": "", "name": "/dev/mapper/foo-test3", "type": "lvm", "uuid": "bc3ec62e-470e-4fb9-91a3-6d7c1f8b295f"}, "/dev/sr0": {"fstype": "iso9660", "label": "cidata", "name": "/dev/sr0", "type": "rom", "uuid": "2020-05-27-13-46-50-00"}, "/dev/vda": {"fstype": "", "label": "", "name": "/dev/vda", "type": "disk", "uuid": ""}, "/dev/vda1": {"fstype": "ext4", "label": "", "name": "/dev/vda1", "type": "partition", "uuid": "ea711a29-e460-4879-9d70-9da99ae021f9"}, "/dev/vdb": {"fstype": "LVM2_member", "label": "", "name": "/dev/vdb", "type": "disk", "uuid": "w36tDJ-9S4e-rVoS-i0o5-Shqy-0Y8b-2B2BXH"}, "/dev/vdc": {"fstype": "", "label": "", "name": "/dev/vdc", "type": "disk", "uuid": ""}}} TASK [Read the /etc/fstab file for volume existence] *************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:19 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/fstab"], "delta": "0:00:00.002879", "end": "2020-05-27 13:48:55.441568", "rc": 0, "start": "2020-05-27 13:48:55.438689", "stderr": "", "stderr_lines": [], "stdout": "\n#\n# /etc/fstab\n# Created by anaconda on Fri Apr 26 02:02:19 2019\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=ea711a29-e460-4879-9d70-9da99ae021f9 / 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 Fri Apr 26 02:02:19 2019", "#", "# 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=ea711a29-e460-4879-9d70-9da99ae021f9 / 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 [Verify the volumes listed in storage_pools were correctly managed] ******* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:27 [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/tmpr6sk038f/tests/test-verify-pool.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-pool.yml:5 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pool_tests": ["name", "type", "size", "members"]}, "changed": false} TASK [Verify the volumes in this pool were correctly managed] ****************** task path: /tmp/tmpr6sk038f/tests/test-verify-pool.yml:17 [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/tmpr6sk038f/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": true, "_storage_volume_tests": ["mount", "fstab", "fs", "device"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:12 included: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/foo-test1"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/foo-test1"], "delta": "0:00:00.003145", "end": "2020-05-27 13:48:56.067332", "rc": 0, "start": "2020-05-27 13:48:56.064187", "stderr": "", "stderr_lines": [], "stdout": "/dev/dm-2", "stdout_lines": ["/dev/dm-2"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Set some facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:20 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [{"block_available": 774836, "block_size": 4096, "block_total": 783872, "block_used": 9036, "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,noquota", "size_available": 3173728256, "size_total": 3210739712, "uuid": "6397c89d-e20f-4ed3-b2eb-7d2a377ea826"}], "storage_test_mount_expected_match_count": "1", "storage_test_mount_point_matches": [{"block_available": 774836, "block_size": 4096, "block_total": 783872, "block_used": 9036, "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,noquota", "size_available": 3173728256, "size_total": 3210739712, "uuid": "6397c89d-e20f-4ed3-b2eb-7d2a377ea826"}]}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:31 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:40 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:48 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Unset facts] ************************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:58 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_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/tmpr6sk038f/tests/test-verify-volume-fstab.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:16 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:23 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/foo-test1"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/foo-test1"], "delta": "0:00:00.003301", "end": "2020-05-27 13:48:56.804588", "rc": 0, "start": "2020-05-27 13:48:56.801287", "stderr": "", "stderr_lines": [], "stdout": "/dev/dm-2", "stdout_lines": ["/dev/dm-2"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify fs type] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:21 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify fs label] ********************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:27 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/foo-test1"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/foo-test1"], "delta": "0:00:01.003946", "end": "2020-05-27 13:48:58.371712", "rc": 0, "start": "2020-05-27 13:48:57.367766", "stderr": "", "stderr_lines": [], "stdout": "/dev/dm-2", "stdout_lines": ["/dev/dm-2"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [See whether the device node is present] ********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:21 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "stat": {"atime": 1590587310.8420448, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "ctime": 1590587310.8420448, "dev": 6, "device_type": 64770, "executable": false, "exists": true, "gid": 6, "gr_name": "disk", "inode": 13923, "isblk": true, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mimetype": "inode/symlink", "mode": "0660", "mtime": 1590587310.8420448, "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/tmpr6sk038f/tests/test-verify-volume-device.yml:27 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:35 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:41 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "lvm"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:45 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:50 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": true, "_storage_volume_tests": ["mount", "fstab", "fs", "device"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:12 included: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/foo-test2"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/foo-test2"], "delta": "0:00:00.003156", "end": "2020-05-27 13:48:59.534002", "rc": 0, "start": "2020-05-27 13:48:59.530846", "stderr": "", "stderr_lines": [], "stdout": "/dev/dm-1", "stdout_lines": ["/dev/dm-1"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Set some facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:20 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [{"block_available": 774836, "block_size": 4096, "block_total": 783872, "block_used": 9036, "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,noquota", "size_available": 3173728256, "size_total": 3210739712, "uuid": "c10404b9-bd3a-4192-b11c-c2766a2cec9b"}], "storage_test_mount_expected_match_count": "1", "storage_test_mount_point_matches": [{"block_available": 774836, "block_size": 4096, "block_total": 783872, "block_used": 9036, "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,noquota", "size_available": 3173728256, "size_total": 3210739712, "uuid": "c10404b9-bd3a-4192-b11c-c2766a2cec9b"}]}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:31 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:40 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:48 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Unset facts] ************************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:58 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_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/tmpr6sk038f/tests/test-verify-volume-fstab.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:16 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:23 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/foo-test2"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/foo-test2"], "delta": "0:00:00.003083", "end": "2020-05-27 13:49:00.248072", "rc": 0, "start": "2020-05-27 13:49:00.244989", "stderr": "", "stderr_lines": [], "stdout": "/dev/dm-1", "stdout_lines": ["/dev/dm-1"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify fs type] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:21 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify fs label] ********************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:27 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/foo-test2"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/foo-test2"], "delta": "0:00:00.004121", "end": "2020-05-27 13:49:00.746472", "rc": 0, "start": "2020-05-27 13:49:00.742351", "stderr": "", "stderr_lines": [], "stdout": "/dev/dm-1", "stdout_lines": ["/dev/dm-1"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [See whether the device node is present] ********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:21 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "stat": {"atime": 1590587310.6490448, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "ctime": 1590587310.6490448, "dev": 6, "device_type": 64769, "executable": false, "exists": true, "gid": 6, "gr_name": "disk", "inode": 13922, "isblk": true, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mimetype": "inode/symlink", "mode": "0660", "mtime": 1590587310.6490448, "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/tmpr6sk038f/tests/test-verify-volume-device.yml:27 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:35 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:41 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "lvm"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:45 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:50 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": true, "_storage_volume_tests": ["mount", "fstab", "fs", "device"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:12 included: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/foo-test3"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/foo-test3"], "delta": "0:00:00.002915", "end": "2020-05-27 13:49:01.841104", "rc": 0, "start": "2020-05-27 13:49:01.838189", "stderr": "", "stderr_lines": [], "stdout": "/dev/dm-0", "stdout_lines": ["/dev/dm-0"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Set some facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:20 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [{"block_available": 774836, "block_size": 4096, "block_total": 783872, "block_used": 9036, "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,noquota", "size_available": 3173728256, "size_total": 3210739712, "uuid": "bc3ec62e-470e-4fb9-91a3-6d7c1f8b295f"}], "storage_test_mount_expected_match_count": "1", "storage_test_mount_point_matches": [{"block_available": 774836, "block_size": 4096, "block_total": 783872, "block_used": 9036, "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,noquota", "size_available": 3173728256, "size_total": 3210739712, "uuid": "bc3ec62e-470e-4fb9-91a3-6d7c1f8b295f"}]}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:31 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:40 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:48 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Unset facts] ************************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:58 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_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/tmpr6sk038f/tests/test-verify-volume-fstab.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:16 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:23 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/foo-test3"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/foo-test3"], "delta": "0:00:00.002505", "end": "2020-05-27 13:49:02.570092", "rc": 0, "start": "2020-05-27 13:49:02.567587", "stderr": "", "stderr_lines": [], "stdout": "/dev/dm-0", "stdout_lines": ["/dev/dm-0"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify fs type] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:21 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify fs label] ********************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:27 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/foo-test3"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/foo-test3"], "delta": "0:00:00.002590", "end": "2020-05-27 13:49:03.078340", "rc": 0, "start": "2020-05-27 13:49:03.075750", "stderr": "", "stderr_lines": [], "stdout": "/dev/dm-0", "stdout_lines": ["/dev/dm-0"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [See whether the device node is present] ********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:21 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "stat": {"atime": 1590587310.4680448, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "ctime": 1590587310.4680448, "dev": 6, "device_type": 64768, "executable": false, "exists": true, "gid": 6, "gr_name": "disk", "inode": 13921, "isblk": true, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mimetype": "inode/symlink", "mode": "0660", "mtime": 1590587310.4680448, "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/tmpr6sk038f/tests/test-verify-volume-device.yml:27 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:35 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:41 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "lvm"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:45 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:50 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:34 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_pool": null}, "changed": false} TASK [Verify the volumes with no pool were correctly managed] ****************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:41 TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:51 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_blkinfo": null, "storage_test_fstab": null, "storage_test_volume": null}, "changed": false} TASK [Remove two of the LVs] *************************************************** task path: /tmp/tmpr6sk038f/tests/tests_lvm_one_disk_multiple_volumes.yml:57 TASK [storage : Set version specific variables] ******************************** task path: /tmp/tmpr6sk038f/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/tmp/tmpr6sk038f/vars/Fedora.yml) => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-dm", "libblockdev-lvm", "libblockdev-part", "libblockdev-mdraid"]}, "ansible_included_var_files": ["/tmp/tmpr6sk038f/vars/Fedora.yml"], "ansible_loop_var": "item", "changed": false, "item": "/tmp/tmpr6sk038f/vars/Fedora.yml"} TASK [storage : define an empty list of pools to be used in testing] *********** task path: /tmp/tmpr6sk038f/tasks/main.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [storage : define an empty list of volumes to be used in testing] ********* task path: /tmp/tmpr6sk038f/tasks/main.yml:13 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : include the appropriate provider tasks] ************************ task path: /tmp/tmpr6sk038f/tasks/main.yml:17 included: /tmp/tmpr6sk038f/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [storage : get a list of rpm packages installed on host machine] ********** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [storage : make sure blivet is available] ********************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : initialize internal facts] ************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.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 [storage : Apply defaults to pools and volumes [1/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:28 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'name': 'foo', 'disks': ['vdb'], 'volumes': [{'name': 'test1', 'size': '3g', 'mount_point': '/opt/test1'}, {'name': 'test2', 'size': '3g', 'mount_point': '/opt/test2', 'state': 'absent'}, {'name': 'test3', 'size': '3g', 'mount_point': '/opt/test3', 'state': 'absent'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vdb"], "name": "foo", "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": ["vdb"], "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 [storage : Apply defaults to pools and volumes [2/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:36 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=[{'state': 'present', 'type': 'lvm', 'name': 'foo', 'disks': ['vdb'], 'volumes': [{'name': 'test1', 'size': '3g', 'mount_point': '/opt/test1'}, {'name': 'test2', 'size': '3g', 'mount_point': '/opt/test2', 'state': 'absent'}, {'name': 'test3', 'size': '3g', 'mount_point': '/opt/test3', 'state': 'absent'}]}, {'name': 'test1', 'size': '3g', 'mount_point': '/opt/test1'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "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": ["vdb"], "name": "foo", "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-30-1.2.x86_64.qcow2] => (item=[{'state': 'present', 'type': 'lvm', 'name': 'foo', 'disks': ['vdb'], 'volumes': [{'name': 'test1', 'size': '3g', 'mount_point': '/opt/test1'}, {'name': 'test2', 'size': '3g', 'mount_point': '/opt/test2', 'state': 'absent'}, {'name': 'test3', 'size': '3g', 'mount_point': '/opt/test3', 'state': 'absent'}]}, {'name': 'test2', 'size': '3g', 'mount_point': '/opt/test2', 'state': 'absent'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "size": 0, "state": "present", "type": "lvm"}, {"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "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": ["vdb"], "name": "foo", "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-30-1.2.x86_64.qcow2] => (item=[{'state': 'present', 'type': 'lvm', 'name': 'foo', 'disks': ['vdb'], 'volumes': [{'name': 'test1', 'size': '3g', 'mount_point': '/opt/test1'}, {'name': 'test2', 'size': '3g', 'mount_point': '/opt/test2', 'state': 'absent'}, {'name': 'test3', 'size': '3g', 'mount_point': '/opt/test3', 'state': 'absent'}]}, {'name': 'test3', 'size': '3g', 'mount_point': '/opt/test3', 'state': 'absent'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "size": 0, "state": "present", "type": "lvm"}, {"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "size": 0, "state": "present", "type": "lvm"}, {"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "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": ["vdb"], "name": "foo", "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 [storage : Apply defaults to pools and volumes [3/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:44 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=[{'name': 'test1', 'size': '3g', 'mount_point': '/opt/test1'}, {'state': 'present', 'type': 'lvm', 'size': 0, 'fs_type': 'xfs', 'fs_label': '', 'fs_create_options': '', 'fs_overwrite_existing': True, 'mount_point': '', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid'}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "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"}, {"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "size": 0, "state": "present", "type": "lvm"}]} ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=[{'name': 'test2', 'size': '3g', 'mount_point': '/opt/test2', 'state': 'absent'}, {'state': 'present', 'type': 'lvm', 'size': 0, 'fs_type': 'xfs', 'fs_label': '', 'fs_create_options': '', 'fs_overwrite_existing': True, 'mount_point': '', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid'}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "3g", "state": "present", "type": "lvm"}, {"fs_create_options": "", "fs_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", "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"}, {"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "size": 0, "state": "present", "type": "lvm"}]} ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=[{'name': 'test3', 'size': '3g', 'mount_point': '/opt/test3', 'state': 'absent'}, {'state': 'present', 'type': 'lvm', 'size': 0, 'fs_type': 'xfs', 'fs_label': '', 'fs_create_options': '', 'fs_overwrite_existing': True, 'mount_point': '', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid'}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "3g", "state": "present", "type": "lvm"}, {"fs_create_options": "", "fs_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", "size": "3g", "state": "absent", "type": "lvm"}, {"fs_create_options": "", "fs_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", "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"}, {"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "size": 0, "state": "present", "type": "lvm"}]} TASK [storage : Apply defaults to pools and volumes [4/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:52 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'name': 'foo', 'disks': ['vdb'], 'volumes': [{'name': 'test1', 'size': '3g', 'mount_point': '/opt/test1'}, {'name': 'test2', 'size': '3g', 'mount_point': '/opt/test2', 'state': 'absent'}, {'name': 'test3', 'size': '3g', 'mount_point': '/opt/test3', 'state': 'absent'}]}) => {"ansible_facts": {"_storage_vols_no_defaults_by_pool": {"foo": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "3g", "state": "present", "type": "lvm"}, {"fs_create_options": "", "fs_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", "size": "3g", "state": "absent", "type": "lvm"}, {"fs_create_options": "", "fs_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", "size": "3g", "state": "absent", "type": "lvm"}]}}, "ansible_loop_var": "item", "changed": false, "item": {"disks": ["vdb"], "name": "foo", "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 [storage : Apply defaults to pools and volumes [5/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:61 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'name': 'foo', 'disks': ['vdb'], 'volumes': [{'name': 'test1', 'size': '3g', 'mount_point': '/opt/test1'}, {'name': 'test2', 'size': '3g', 'mount_point': '/opt/test2', 'state': 'absent'}, {'name': 'test3', 'size': '3g', 'mount_point': '/opt/test3', 'state': 'absent'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vdb"], "name": "foo", "state": "present", "type": "lvm", "volumes": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "3g", "state": "present", "type": "lvm"}, {"fs_create_options": "", "fs_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", "size": "3g", "state": "absent", "type": "lvm"}, {"fs_create_options": "", "fs_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", "size": "3g", "state": "absent", "type": "lvm"}]}]}, "ansible_index_var": "idx", "ansible_loop_var": "pool", "changed": false, "idx": 0, "pool": {"disks": ["vdb"], "name": "foo", "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 [storage : Apply defaults to pools and volumes [6/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:72 TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools": [ { "disks": [ "vdb" ], "name": "foo", "state": "present", "type": "lvm", "volumes": [ { "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "3g", "state": "present", "type": "lvm" }, { "fs_create_options": "", "fs_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", "size": "3g", "state": "absent", "type": "lvm" }, { "fs_create_options": "", "fs_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", "size": "3g", "state": "absent", "type": "lvm" } ] } ] } TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_volumes": [] } TASK [storage : get required packages] ***************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": [], "mounts": [], "packages": ["lvm2", "xfsprogs"], "pools": [], "volumes": []} TASK [storage : make sure required packages are installed] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : manage the pools and volumes to match the specified state] ***** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:104 changed: [/cache/Fedora-Cloud-Base-30-1.2.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, "leaves": ["/dev/sr0", "/dev/vda1", "/dev/mapper/foo-test1", "/dev/vdc"], "mounts": [{"path": "/opt/test3", "state": "absent"}, {"path": "/opt/test2", "state": "absent"}, {"dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "/dev/mapper/foo-test1", "state": "mounted"}], "packages": ["xfsprogs", "e2fsprogs", "lvm2"], "pools": [{"disks": ["vdb"], "name": "foo", "state": "present", "type": "lvm", "volumes": [{"_device": "/dev/mapper/foo-test1", "_mount_id": "/dev/mapper/foo-test1", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "3g", "state": "present", "type": "lvm"}, {"_device": "/dev/mapper/foo-test2", "_mount_id": "/dev/mapper/foo-test2", "fs_create_options": "", "fs_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", "size": "3g", "state": "absent", "type": "lvm"}, {"_device": "/dev/mapper/foo-test3", "_mount_id": "/dev/mapper/foo-test3", "fs_create_options": "", "fs_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", "size": "3g", "state": "absent", "type": "lvm"}]}], "volumes": []} TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:113 ok: [/cache/Fedora-Cloud-Base-30-1.2.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, "failed": false, "leaves": [ "/dev/sr0", "/dev/vda1", "/dev/mapper/foo-test1", "/dev/vdc" ], "mounts": [ { "path": "/opt/test3", "state": "absent" }, { "path": "/opt/test2", "state": "absent" }, { "dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "/dev/mapper/foo-test1", "state": "mounted" } ], "packages": [ "xfsprogs", "e2fsprogs", "lvm2" ], "pools": [ { "disks": [ "vdb" ], "name": "foo", "state": "present", "type": "lvm", "volumes": [ { "_device": "/dev/mapper/foo-test1", "_mount_id": "/dev/mapper/foo-test1", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "3g", "state": "present", "type": "lvm" }, { "_device": "/dev/mapper/foo-test2", "_mount_id": "/dev/mapper/foo-test2", "fs_create_options": "", "fs_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", "size": "3g", "state": "absent", "type": "lvm" }, { "_device": "/dev/mapper/foo-test3", "_mount_id": "/dev/mapper/foo-test3", "fs_create_options": "", "fs_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", "size": "3g", "state": "absent", "type": "lvm" } ] } ], "volumes": [] } } TASK [storage : set the list of pools for test verification] ******************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:116 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": [{"disks": ["vdb"], "name": "foo", "state": "present", "type": "lvm", "volumes": [{"_device": "/dev/mapper/foo-test1", "_mount_id": "/dev/mapper/foo-test1", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "3g", "state": "present", "type": "lvm"}, {"_device": "/dev/mapper/foo-test2", "_mount_id": "/dev/mapper/foo-test2", "fs_create_options": "", "fs_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", "size": "3g", "state": "absent", "type": "lvm"}, {"_device": "/dev/mapper/foo-test3", "_mount_id": "/dev/mapper/foo-test3", "fs_create_options": "", "fs_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", "size": "3g", "state": "absent", "type": "lvm"}]}]}, "changed": false} TASK [storage : set the list of volumes for test verification] ***************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:120 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : manage mounts to match the specified state] ******************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:132 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'path': '/opt/test3', 'state': 'absent'}) => {"ansible_loop_var": "mount_info", "changed": true, "dump": "0", "fstab": "/etc/fstab", "mount_info": {"path": "/opt/test3", "state": "absent"}, "name": "/opt/test3", "opts": "defaults", "passno": "0"} changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'path': '/opt/test2', 'state': 'absent'}) => {"ansible_loop_var": "mount_info", "changed": true, "dump": "0", "fstab": "/etc/fstab", "mount_info": {"path": "/opt/test2", "state": "absent"}, "name": "/opt/test2", "opts": "defaults", "passno": "0"} ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'src': '/dev/mapper/foo-test1', 'path': '/opt/test1', 'fstype': 'xfs', 'opts': 'defaults', 'dump': 0, 'passno': 0, 'state': 'mounted'}) => {"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 [storage : tell systemd to refresh its view of /etc/fstab] **************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:143 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [storage : Update facts] ************************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:153 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmpr6sk038f/tests/tests_lvm_one_disk_multiple_volumes.yml:77 included: /tmp/tmpr6sk038f/tests/verify-role-results.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [Print out pool information] ********************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:1 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools_list": [ { "disks": [ "vdb" ], "name": "foo", "state": "present", "type": "lvm", "volumes": [ { "_device": "/dev/mapper/foo-test1", "_mount_id": "/dev/mapper/foo-test1", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "3g", "state": "present", "type": "lvm" }, { "_device": "/dev/mapper/foo-test2", "_mount_id": "/dev/mapper/foo-test2", "fs_create_options": "", "fs_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", "size": "3g", "state": "absent", "type": "lvm" }, { "_device": "/dev/mapper/foo-test3", "_mount_id": "/dev/mapper/foo-test3", "fs_create_options": "", "fs_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", "size": "3g", "state": "absent", "type": "lvm" } ] } ] } TASK [Print out volume information] ******************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:6 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {} TASK [Collect info about the volumes.] ***************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:14 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "info": {"/dev/mapper/foo-test1": {"fstype": "xfs", "label": "", "name": "/dev/mapper/foo-test1", "type": "lvm", "uuid": "6397c89d-e20f-4ed3-b2eb-7d2a377ea826"}, "/dev/sr0": {"fstype": "iso9660", "label": "cidata", "name": "/dev/sr0", "type": "rom", "uuid": "2020-05-27-13-46-50-00"}, "/dev/vda": {"fstype": "", "label": "", "name": "/dev/vda", "type": "disk", "uuid": ""}, "/dev/vda1": {"fstype": "ext4", "label": "", "name": "/dev/vda1", "type": "partition", "uuid": "ea711a29-e460-4879-9d70-9da99ae021f9"}, "/dev/vdb": {"fstype": "LVM2_member", "label": "", "name": "/dev/vdb", "type": "disk", "uuid": "w36tDJ-9S4e-rVoS-i0o5-Shqy-0Y8b-2B2BXH"}, "/dev/vdc": {"fstype": "", "label": "", "name": "/dev/vdc", "type": "disk", "uuid": ""}}} TASK [Read the /etc/fstab file for volume existence] *************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:19 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/fstab"], "delta": "0:00:01.004151", "end": "2020-05-27 13:49:18.954448", "rc": 0, "start": "2020-05-27 13:49:17.950297", "stderr": "", "stderr_lines": [], "stdout": "\n#\n# /etc/fstab\n# Created by anaconda on Fri Apr 26 02:02:19 2019\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=ea711a29-e460-4879-9d70-9da99ae021f9 / ext4 defaults 1 1\n/dev/mapper/foo-test1 /opt/test1 xfs defaults 0 0", "stdout_lines": ["", "#", "# /etc/fstab", "# Created by anaconda on Fri Apr 26 02:02:19 2019", "#", "# 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=ea711a29-e460-4879-9d70-9da99ae021f9 / ext4 defaults 1 1", "/dev/mapper/foo-test1 /opt/test1 xfs defaults 0 0"]} TASK [Verify the volumes listed in storage_pools were correctly managed] ******* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:27 [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/tmpr6sk038f/tests/test-verify-pool.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-pool.yml:5 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pool_tests": ["name", "type", "size", "members"]}, "changed": false} TASK [Verify the volumes in this pool were correctly managed] ****************** task path: /tmp/tmpr6sk038f/tests/test-verify-pool.yml:17 [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/tmpr6sk038f/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": true, "_storage_volume_tests": ["mount", "fstab", "fs", "device"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:12 included: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/foo-test1"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/foo-test1"], "delta": "0:00:00.002354", "end": "2020-05-27 13:49:19.565809", "rc": 0, "start": "2020-05-27 13:49:19.563455", "stderr": "", "stderr_lines": [], "stdout": "/dev/dm-2", "stdout_lines": ["/dev/dm-2"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Set some facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:20 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [{"block_available": 774836, "block_size": 4096, "block_total": 783872, "block_used": 9036, "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,noquota", "size_available": 3173728256, "size_total": 3210739712, "uuid": "6397c89d-e20f-4ed3-b2eb-7d2a377ea826"}], "storage_test_mount_expected_match_count": "1", "storage_test_mount_point_matches": [{"block_available": 774836, "block_size": 4096, "block_total": 783872, "block_used": 9036, "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,noquota", "size_available": 3173728256, "size_total": 3210739712, "uuid": "6397c89d-e20f-4ed3-b2eb-7d2a377ea826"}]}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:31 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:40 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:48 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Unset facts] ************************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:58 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_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/tmpr6sk038f/tests/test-verify-volume-fstab.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:16 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:23 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/foo-test1"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/foo-test1"], "delta": "0:00:00.002695", "end": "2020-05-27 13:49:20.309100", "rc": 0, "start": "2020-05-27 13:49:20.306405", "stderr": "", "stderr_lines": [], "stdout": "/dev/dm-2", "stdout_lines": ["/dev/dm-2"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify fs type] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:21 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify fs label] ********************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:27 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/foo-test1"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/foo-test1"], "delta": "0:00:00.002760", "end": "2020-05-27 13:49:20.869227", "rc": 0, "start": "2020-05-27 13:49:20.866467", "stderr": "", "stderr_lines": [], "stdout": "/dev/dm-2", "stdout_lines": ["/dev/dm-2"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [See whether the device node is present] ********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:21 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "stat": {"atime": 1590587310.8420448, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "ctime": 1590587310.8420448, "dev": 6, "device_type": 64770, "executable": false, "exists": true, "gid": 6, "gr_name": "disk", "inode": 13923, "isblk": true, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mimetype": "inode/symlink", "mode": "0660", "mtime": 1590587310.8420448, "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/tmpr6sk038f/tests/test-verify-volume-device.yml:27 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:35 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:41 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "lvm"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:45 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:50 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": false, "_storage_volume_tests": ["mount", "fstab", "fs", "device"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:12 included: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/foo-test2"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/foo-test2"], "delta": "0:00:00.003026", "end": "2020-05-27 13:49:21.994118", "rc": 0, "start": "2020-05-27 13:49:21.991092", "stderr": "", "stderr_lines": [], "stdout": "/dev/mapper/foo-test2", "stdout_lines": ["/dev/mapper/foo-test2"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:15 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": {"changed": true, "cmd": ["realpath", "/dev/mapper/foo-test2"], "delta": "0:00:00.003026", "end": "2020-05-27 13:49:21.994118", "failed": false, "rc": 0, "start": "2020-05-27 13:49:21.991092", "stderr": "", "stderr_lines": [], "stdout": "/dev/mapper/foo-test2", "stdout_lines": ["/dev/mapper/foo-test2"]}}, "changed": false} TASK [Set some facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:20 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [], "storage_test_mount_expected_match_count": "0", "storage_test_mount_point_matches": []}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:31 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:40 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:48 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Unset facts] ************************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:58 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_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/tmpr6sk038f/tests/test-verify-volume-fstab.yml:9 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:16 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:23 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/foo-test2"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/foo-test2"], "delta": "0:00:00.002230", "end": "2020-05-27 13:49:22.668429", "rc": 0, "start": "2020-05-27 13:49:22.666199", "stderr": "", "stderr_lines": [], "stdout": "/dev/mapper/foo-test2", "stdout_lines": ["/dev/mapper/foo-test2"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:15 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": {"changed": true, "cmd": ["realpath", "/dev/mapper/foo-test2"], "delta": "0:00:00.002230", "end": "2020-05-27 13:49:22.668429", "failed": false, "rc": 0, "start": "2020-05-27 13:49:22.666199", "stderr": "", "stderr_lines": [], "stdout": "/dev/mapper/foo-test2", "stdout_lines": ["/dev/mapper/foo-test2"]}}, "changed": false} TASK [Verify fs type] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:21 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify fs label] ********************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:27 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/foo-test2"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/foo-test2"], "delta": "0:00:01.003997", "end": "2020-05-27 13:49:24.130352", "rc": 0, "start": "2020-05-27 13:49:23.126355", "stderr": "", "stderr_lines": [], "stdout": "/dev/mapper/foo-test2", "stdout_lines": ["/dev/mapper/foo-test2"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:15 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": {"changed": true, "cmd": ["realpath", "/dev/mapper/foo-test2"], "delta": "0:00:01.003997", "end": "2020-05-27 13:49:24.130352", "failed": false, "rc": 0, "start": "2020-05-27 13:49:23.126355", "stderr": "", "stderr_lines": [], "stdout": "/dev/mapper/foo-test2", "stdout_lines": ["/dev/mapper/foo-test2"]}}, "changed": false} TASK [See whether the device node is present] ********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:21 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "stat": {"exists": false}} TASK [Verify the presence/absence of the device node] ************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:27 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:35 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:41 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "lvm"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:45 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:50 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Clean up facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": false, "_storage_volume_tests": ["mount", "fstab", "fs", "device"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:12 included: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/foo-test3"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/foo-test3"], "delta": "0:00:01.004607", "end": "2020-05-27 13:49:26.155521", "rc": 0, "start": "2020-05-27 13:49:25.150914", "stderr": "", "stderr_lines": [], "stdout": "/dev/mapper/foo-test3", "stdout_lines": ["/dev/mapper/foo-test3"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:15 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": {"changed": true, "cmd": ["realpath", "/dev/mapper/foo-test3"], "delta": "0:00:01.004607", "end": "2020-05-27 13:49:26.155521", "failed": false, "rc": 0, "start": "2020-05-27 13:49:25.150914", "stderr": "", "stderr_lines": [], "stdout": "/dev/mapper/foo-test3", "stdout_lines": ["/dev/mapper/foo-test3"]}}, "changed": false} TASK [Set some facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:20 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [], "storage_test_mount_expected_match_count": "0", "storage_test_mount_point_matches": []}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:31 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:40 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:48 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Unset facts] ************************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:58 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_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/tmpr6sk038f/tests/test-verify-volume-fstab.yml:9 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:16 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:23 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/foo-test3"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/foo-test3"], "delta": "0:00:00.002567", "end": "2020-05-27 13:49:26.858233", "rc": 0, "start": "2020-05-27 13:49:26.855666", "stderr": "", "stderr_lines": [], "stdout": "/dev/mapper/foo-test3", "stdout_lines": ["/dev/mapper/foo-test3"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:15 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": {"changed": true, "cmd": ["realpath", "/dev/mapper/foo-test3"], "delta": "0:00:00.002567", "end": "2020-05-27 13:49:26.858233", "failed": false, "rc": 0, "start": "2020-05-27 13:49:26.855666", "stderr": "", "stderr_lines": [], "stdout": "/dev/mapper/foo-test3", "stdout_lines": ["/dev/mapper/foo-test3"]}}, "changed": false} TASK [Verify fs type] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:21 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify fs label] ********************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:27 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/foo-test3"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/foo-test3"], "delta": "0:00:01.005141", "end": "2020-05-27 13:49:28.320940", "rc": 0, "start": "2020-05-27 13:49:27.315799", "stderr": "", "stderr_lines": [], "stdout": "/dev/mapper/foo-test3", "stdout_lines": ["/dev/mapper/foo-test3"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:15 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": {"changed": true, "cmd": ["realpath", "/dev/mapper/foo-test3"], "delta": "0:00:01.005141", "end": "2020-05-27 13:49:28.320940", "failed": false, "rc": 0, "start": "2020-05-27 13:49:27.315799", "stderr": "", "stderr_lines": [], "stdout": "/dev/mapper/foo-test3", "stdout_lines": ["/dev/mapper/foo-test3"]}}, "changed": false} TASK [See whether the device node is present] ********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:21 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "stat": {"exists": false}} TASK [Verify the presence/absence of the device node] ************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:27 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:35 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:41 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "lvm"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:45 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:50 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Clean up facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:34 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_pool": null}, "changed": false} TASK [Verify the volumes with no pool were correctly managed] ****************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:41 TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:51 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_blkinfo": null, "storage_test_fstab": null, "storage_test_volume": null}, "changed": false} TASK [Re-run the previous role invocation to ensure idempotence] *************** task path: /tmp/tmpr6sk038f/tests/tests_lvm_one_disk_multiple_volumes.yml:79 TASK [storage : Set version specific variables] ******************************** task path: /tmp/tmpr6sk038f/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/tmp/tmpr6sk038f/vars/Fedora.yml) => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-dm", "libblockdev-lvm", "libblockdev-part", "libblockdev-mdraid"]}, "ansible_included_var_files": ["/tmp/tmpr6sk038f/vars/Fedora.yml"], "ansible_loop_var": "item", "changed": false, "item": "/tmp/tmpr6sk038f/vars/Fedora.yml"} TASK [storage : define an empty list of pools to be used in testing] *********** task path: /tmp/tmpr6sk038f/tasks/main.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [storage : define an empty list of volumes to be used in testing] ********* task path: /tmp/tmpr6sk038f/tasks/main.yml:13 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : include the appropriate provider tasks] ************************ task path: /tmp/tmpr6sk038f/tasks/main.yml:17 included: /tmp/tmpr6sk038f/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [storage : get a list of rpm packages installed on host machine] ********** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [storage : make sure blivet is available] ********************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : initialize internal facts] ************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.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 [storage : Apply defaults to pools and volumes [1/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:28 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'name': 'foo', 'disks': ['vdb'], 'volumes': [{'name': 'test1', 'size': '3g', 'mount_point': '/opt/test1'}, {'name': 'test2', 'size': '3g', 'mount_point': '/opt/test2', 'state': 'absent'}, {'name': 'test3', 'size': '3g', 'mount_point': '/opt/test3', 'state': 'absent'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vdb"], "name": "foo", "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": ["vdb"], "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 [storage : Apply defaults to pools and volumes [2/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:36 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=[{'state': 'present', 'type': 'lvm', 'name': 'foo', 'disks': ['vdb'], 'volumes': [{'name': 'test1', 'size': '3g', 'mount_point': '/opt/test1'}, {'name': 'test2', 'size': '3g', 'mount_point': '/opt/test2', 'state': 'absent'}, {'name': 'test3', 'size': '3g', 'mount_point': '/opt/test3', 'state': 'absent'}]}, {'name': 'test1', 'size': '3g', 'mount_point': '/opt/test1'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "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": ["vdb"], "name": "foo", "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-30-1.2.x86_64.qcow2] => (item=[{'state': 'present', 'type': 'lvm', 'name': 'foo', 'disks': ['vdb'], 'volumes': [{'name': 'test1', 'size': '3g', 'mount_point': '/opt/test1'}, {'name': 'test2', 'size': '3g', 'mount_point': '/opt/test2', 'state': 'absent'}, {'name': 'test3', 'size': '3g', 'mount_point': '/opt/test3', 'state': 'absent'}]}, {'name': 'test2', 'size': '3g', 'mount_point': '/opt/test2', 'state': 'absent'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "size": 0, "state": "present", "type": "lvm"}, {"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "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": ["vdb"], "name": "foo", "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-30-1.2.x86_64.qcow2] => (item=[{'state': 'present', 'type': 'lvm', 'name': 'foo', 'disks': ['vdb'], 'volumes': [{'name': 'test1', 'size': '3g', 'mount_point': '/opt/test1'}, {'name': 'test2', 'size': '3g', 'mount_point': '/opt/test2', 'state': 'absent'}, {'name': 'test3', 'size': '3g', 'mount_point': '/opt/test3', 'state': 'absent'}]}, {'name': 'test3', 'size': '3g', 'mount_point': '/opt/test3', 'state': 'absent'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "size": 0, "state": "present", "type": "lvm"}, {"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "size": 0, "state": "present", "type": "lvm"}, {"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "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": ["vdb"], "name": "foo", "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 [storage : Apply defaults to pools and volumes [3/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:44 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=[{'name': 'test1', 'size': '3g', 'mount_point': '/opt/test1'}, {'state': 'present', 'type': 'lvm', 'size': 0, 'fs_type': 'xfs', 'fs_label': '', 'fs_create_options': '', 'fs_overwrite_existing': True, 'mount_point': '', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid'}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "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"}, {"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "size": 0, "state": "present", "type": "lvm"}]} ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=[{'name': 'test2', 'size': '3g', 'mount_point': '/opt/test2', 'state': 'absent'}, {'state': 'present', 'type': 'lvm', 'size': 0, 'fs_type': 'xfs', 'fs_label': '', 'fs_create_options': '', 'fs_overwrite_existing': True, 'mount_point': '', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid'}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "3g", "state": "present", "type": "lvm"}, {"fs_create_options": "", "fs_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", "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"}, {"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "size": 0, "state": "present", "type": "lvm"}]} ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=[{'name': 'test3', 'size': '3g', 'mount_point': '/opt/test3', 'state': 'absent'}, {'state': 'present', 'type': 'lvm', 'size': 0, 'fs_type': 'xfs', 'fs_label': '', 'fs_create_options': '', 'fs_overwrite_existing': True, 'mount_point': '', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid'}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "3g", "state": "present", "type": "lvm"}, {"fs_create_options": "", "fs_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", "size": "3g", "state": "absent", "type": "lvm"}, {"fs_create_options": "", "fs_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", "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"}, {"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "size": 0, "state": "present", "type": "lvm"}]} TASK [storage : Apply defaults to pools and volumes [4/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:52 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'name': 'foo', 'disks': ['vdb'], 'volumes': [{'name': 'test1', 'size': '3g', 'mount_point': '/opt/test1'}, {'name': 'test2', 'size': '3g', 'mount_point': '/opt/test2', 'state': 'absent'}, {'name': 'test3', 'size': '3g', 'mount_point': '/opt/test3', 'state': 'absent'}]}) => {"ansible_facts": {"_storage_vols_no_defaults_by_pool": {"foo": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "3g", "state": "present", "type": "lvm"}, {"fs_create_options": "", "fs_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", "size": "3g", "state": "absent", "type": "lvm"}, {"fs_create_options": "", "fs_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", "size": "3g", "state": "absent", "type": "lvm"}]}}, "ansible_loop_var": "item", "changed": false, "item": {"disks": ["vdb"], "name": "foo", "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 [storage : Apply defaults to pools and volumes [5/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:61 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'name': 'foo', 'disks': ['vdb'], 'volumes': [{'name': 'test1', 'size': '3g', 'mount_point': '/opt/test1'}, {'name': 'test2', 'size': '3g', 'mount_point': '/opt/test2', 'state': 'absent'}, {'name': 'test3', 'size': '3g', 'mount_point': '/opt/test3', 'state': 'absent'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vdb"], "name": "foo", "state": "present", "type": "lvm", "volumes": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "3g", "state": "present", "type": "lvm"}, {"fs_create_options": "", "fs_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", "size": "3g", "state": "absent", "type": "lvm"}, {"fs_create_options": "", "fs_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", "size": "3g", "state": "absent", "type": "lvm"}]}]}, "ansible_index_var": "idx", "ansible_loop_var": "pool", "changed": false, "idx": 0, "pool": {"disks": ["vdb"], "name": "foo", "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 [storage : Apply defaults to pools and volumes [6/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:72 TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools": [ { "disks": [ "vdb" ], "name": "foo", "state": "present", "type": "lvm", "volumes": [ { "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "3g", "state": "present", "type": "lvm" }, { "fs_create_options": "", "fs_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", "size": "3g", "state": "absent", "type": "lvm" }, { "fs_create_options": "", "fs_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", "size": "3g", "state": "absent", "type": "lvm" } ] } ] } TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_volumes": [] } TASK [storage : get required packages] ***************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": [], "mounts": [], "packages": ["lvm2", "xfsprogs"], "pools": [], "volumes": []} TASK [storage : make sure required packages are installed] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : manage the pools and volumes to match the specified state] ***** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:104 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": ["/dev/sr0", "/dev/vda1", "/dev/mapper/foo-test1", "/dev/vdc"], "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": ["vdb"], "name": "foo", "state": "present", "type": "lvm", "volumes": [{"_device": "/dev/mapper/foo-test1", "_mount_id": "/dev/mapper/foo-test1", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "3g", "state": "present", "type": "lvm"}, {"_device": "", "_mount_id": "", "fs_create_options": "", "fs_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", "size": "3g", "state": "absent", "type": "lvm"}, {"_device": "", "_mount_id": "", "fs_create_options": "", "fs_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", "size": "3g", "state": "absent", "type": "lvm"}]}], "volumes": []} TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:113 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "blivet_output": { "actions": [], "changed": false, "failed": false, "leaves": [ "/dev/sr0", "/dev/vda1", "/dev/mapper/foo-test1", "/dev/vdc" ], "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": [ "vdb" ], "name": "foo", "state": "present", "type": "lvm", "volumes": [ { "_device": "/dev/mapper/foo-test1", "_mount_id": "/dev/mapper/foo-test1", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "3g", "state": "present", "type": "lvm" }, { "_device": "", "_mount_id": "", "fs_create_options": "", "fs_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", "size": "3g", "state": "absent", "type": "lvm" }, { "_device": "", "_mount_id": "", "fs_create_options": "", "fs_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", "size": "3g", "state": "absent", "type": "lvm" } ] } ], "volumes": [] } } TASK [storage : set the list of pools for test verification] ******************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:116 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": [{"disks": ["vdb"], "name": "foo", "state": "present", "type": "lvm", "volumes": [{"_device": "/dev/mapper/foo-test1", "_mount_id": "/dev/mapper/foo-test1", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "3g", "state": "present", "type": "lvm"}, {"_device": "", "_mount_id": "", "fs_create_options": "", "fs_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", "size": "3g", "state": "absent", "type": "lvm"}, {"_device": "", "_mount_id": "", "fs_create_options": "", "fs_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", "size": "3g", "state": "absent", "type": "lvm"}]}]}, "changed": false} TASK [storage : set the list of volumes for test verification] ***************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:120 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : manage mounts to match the specified state] ******************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:132 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'src': '/dev/mapper/foo-test1', 'path': '/opt/test1', 'fstype': 'xfs', 'opts': 'defaults', 'dump': 0, 'passno': 0, 'state': 'mounted'}) => {"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 [storage : tell systemd to refresh its view of /etc/fstab] **************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:143 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [storage : Update facts] ************************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:153 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmpr6sk038f/tests/tests_lvm_one_disk_multiple_volumes.yml:99 included: /tmp/tmpr6sk038f/tests/verify-role-results.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [Print out pool information] ********************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:1 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools_list": [ { "disks": [ "vdb" ], "name": "foo", "state": "present", "type": "lvm", "volumes": [ { "_device": "/dev/mapper/foo-test1", "_mount_id": "/dev/mapper/foo-test1", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "3g", "state": "present", "type": "lvm" }, { "_device": "", "_mount_id": "", "fs_create_options": "", "fs_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", "size": "3g", "state": "absent", "type": "lvm" }, { "_device": "", "_mount_id": "", "fs_create_options": "", "fs_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", "size": "3g", "state": "absent", "type": "lvm" } ] } ] } TASK [Print out volume information] ******************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:6 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {} TASK [Collect info about the volumes.] ***************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:14 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "info": {"/dev/mapper/foo-test1": {"fstype": "xfs", "label": "", "name": "/dev/mapper/foo-test1", "type": "lvm", "uuid": "6397c89d-e20f-4ed3-b2eb-7d2a377ea826"}, "/dev/sr0": {"fstype": "iso9660", "label": "cidata", "name": "/dev/sr0", "type": "rom", "uuid": "2020-05-27-13-46-50-00"}, "/dev/vda": {"fstype": "", "label": "", "name": "/dev/vda", "type": "disk", "uuid": ""}, "/dev/vda1": {"fstype": "ext4", "label": "", "name": "/dev/vda1", "type": "partition", "uuid": "ea711a29-e460-4879-9d70-9da99ae021f9"}, "/dev/vdb": {"fstype": "LVM2_member", "label": "", "name": "/dev/vdb", "type": "disk", "uuid": "w36tDJ-9S4e-rVoS-i0o5-Shqy-0Y8b-2B2BXH"}, "/dev/vdc": {"fstype": "", "label": "", "name": "/dev/vdc", "type": "disk", "uuid": ""}}} TASK [Read the /etc/fstab file for volume existence] *************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:19 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/fstab"], "delta": "0:00:00.002969", "end": "2020-05-27 13:49:41.491875", "rc": 0, "start": "2020-05-27 13:49:41.488906", "stderr": "", "stderr_lines": [], "stdout": "\n#\n# /etc/fstab\n# Created by anaconda on Fri Apr 26 02:02:19 2019\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=ea711a29-e460-4879-9d70-9da99ae021f9 / ext4 defaults 1 1\n/dev/mapper/foo-test1 /opt/test1 xfs defaults 0 0", "stdout_lines": ["", "#", "# /etc/fstab", "# Created by anaconda on Fri Apr 26 02:02:19 2019", "#", "# 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=ea711a29-e460-4879-9d70-9da99ae021f9 / ext4 defaults 1 1", "/dev/mapper/foo-test1 /opt/test1 xfs defaults 0 0"]} TASK [Verify the volumes listed in storage_pools were correctly managed] ******* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:27 [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/tmpr6sk038f/tests/test-verify-pool.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-pool.yml:5 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pool_tests": ["name", "type", "size", "members"]}, "changed": false} TASK [Verify the volumes in this pool were correctly managed] ****************** task path: /tmp/tmpr6sk038f/tests/test-verify-pool.yml:17 [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/tmpr6sk038f/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": true, "_storage_volume_tests": ["mount", "fstab", "fs", "device"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:12 included: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/foo-test1"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/foo-test1"], "delta": "0:00:00.003202", "end": "2020-05-27 13:49:42.123938", "rc": 0, "start": "2020-05-27 13:49:42.120736", "stderr": "", "stderr_lines": [], "stdout": "/dev/dm-2", "stdout_lines": ["/dev/dm-2"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Set some facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:20 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [{"block_available": 774836, "block_size": 4096, "block_total": 783872, "block_used": 9036, "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,noquota", "size_available": 3173728256, "size_total": 3210739712, "uuid": "6397c89d-e20f-4ed3-b2eb-7d2a377ea826"}], "storage_test_mount_expected_match_count": "1", "storage_test_mount_point_matches": [{"block_available": 774836, "block_size": 4096, "block_total": 783872, "block_used": 9036, "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,noquota", "size_available": 3173728256, "size_total": 3210739712, "uuid": "6397c89d-e20f-4ed3-b2eb-7d2a377ea826"}]}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:31 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:40 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:48 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Unset facts] ************************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:58 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_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/tmpr6sk038f/tests/test-verify-volume-fstab.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:16 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:23 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/foo-test1"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/foo-test1"], "delta": "0:00:00.002628", "end": "2020-05-27 13:49:42.846947", "rc": 0, "start": "2020-05-27 13:49:42.844319", "stderr": "", "stderr_lines": [], "stdout": "/dev/dm-2", "stdout_lines": ["/dev/dm-2"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify fs type] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:21 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify fs label] ********************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:27 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/foo-test1"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/foo-test1"], "delta": "0:00:00.003184", "end": "2020-05-27 13:49:43.340844", "rc": 0, "start": "2020-05-27 13:49:43.337660", "stderr": "", "stderr_lines": [], "stdout": "/dev/dm-2", "stdout_lines": ["/dev/dm-2"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [See whether the device node is present] ********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:21 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "stat": {"atime": 1590587310.8420448, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "ctime": 1590587310.8420448, "dev": 6, "device_type": 64770, "executable": false, "exists": true, "gid": 6, "gr_name": "disk", "inode": 13923, "isblk": true, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mimetype": "inode/symlink", "mode": "0660", "mtime": 1590587310.8420448, "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/tmpr6sk038f/tests/test-verify-volume-device.yml:27 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:35 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:41 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "lvm"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:45 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:50 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": false, "_storage_volume_tests": ["mount", "fstab", "fs", "device"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:12 included: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": ""}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:10 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:15 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": {"changed": false, "skip_reason": "Conditional result was False", "skipped": true}}, "changed": false} TASK [Set some facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:20 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [], "storage_test_mount_expected_match_count": "0", "storage_test_mount_point_matches": []}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:31 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:40 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:48 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Unset facts] ************************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:58 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_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/tmpr6sk038f/tests/test-verify-volume-fstab.yml:9 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:16 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:23 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": ""}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:10 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:15 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": {"changed": false, "skip_reason": "Conditional result was False", "skipped": true}}, "changed": false} TASK [Verify fs type] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:21 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify fs label] ********************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:27 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": ""}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:10 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:15 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": {"changed": false, "skip_reason": "Conditional result was False", "skipped": true}}, "changed": false} TASK [See whether the device node is present] ********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:21 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "stat": {"exists": false}} TASK [Verify the presence/absence of the device node] ************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:27 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:35 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:41 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "lvm"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:45 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:50 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Clean up facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [set_fact] **************************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": false, "_storage_volume_tests": ["mount", "fstab", "fs", "device"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:12 included: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": ""}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:10 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:15 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": {"changed": false, "skip_reason": "Conditional result was False", "skipped": true}}, "changed": false} TASK [Set some facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:20 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [], "storage_test_mount_expected_match_count": "0", "storage_test_mount_point_matches": []}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:31 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:40 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:48 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Unset facts] ************************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:58 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_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/tmpr6sk038f/tests/test-verify-volume-fstab.yml:9 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:16 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:23 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": ""}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:10 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:15 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": {"changed": false, "skip_reason": "Conditional result was False", "skipped": true}}, "changed": false} TASK [Verify fs type] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:21 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify fs label] ********************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:27 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": ""}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:10 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:15 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": {"changed": false, "skip_reason": "Conditional result was False", "skipped": true}}, "changed": false} TASK [See whether the device node is present] ********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:21 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "stat": {"exists": false}} TASK [Verify the presence/absence of the device node] ************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:27 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:35 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:41 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "lvm"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:45 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:50 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Clean up facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:34 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_pool": null}, "changed": false} TASK [Verify the volumes with no pool were correctly managed] ****************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:41 TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:51 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_blkinfo": null, "storage_test_fstab": null, "storage_test_volume": null}, "changed": false} TASK [Clean up] **************************************************************** task path: /tmp/tmpr6sk038f/tests/tests_lvm_one_disk_multiple_volumes.yml:101 TASK [storage : Set version specific variables] ******************************** task path: /tmp/tmpr6sk038f/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/tmp/tmpr6sk038f/vars/Fedora.yml) => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-dm", "libblockdev-lvm", "libblockdev-part", "libblockdev-mdraid"]}, "ansible_included_var_files": ["/tmp/tmpr6sk038f/vars/Fedora.yml"], "ansible_loop_var": "item", "changed": false, "item": "/tmp/tmpr6sk038f/vars/Fedora.yml"} TASK [storage : define an empty list of pools to be used in testing] *********** task path: /tmp/tmpr6sk038f/tasks/main.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [storage : define an empty list of volumes to be used in testing] ********* task path: /tmp/tmpr6sk038f/tasks/main.yml:13 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : include the appropriate provider tasks] ************************ task path: /tmp/tmpr6sk038f/tasks/main.yml:17 included: /tmp/tmpr6sk038f/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [storage : get a list of rpm packages installed on host machine] ********** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [storage : make sure blivet is available] ********************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : initialize internal facts] ************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.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 [storage : Apply defaults to pools and volumes [1/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:28 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'name': 'foo', 'disks': ['vdb'], 'state': 'absent', 'volumes': []}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vdb"], "name": "foo", "state": "absent", "type": "lvm", "volumes": []}]}, "ansible_loop_var": "pool", "changed": false, "pool": {"disks": ["vdb"], "name": "foo", "state": "absent", "volumes": []}} TASK [storage : Apply defaults to pools and volumes [2/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:36 TASK [storage : Apply defaults to pools and volumes [3/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:44 TASK [storage : Apply defaults to pools and volumes [4/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:52 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'absent', 'type': 'lvm', 'name': 'foo', 'disks': ['vdb'], 'volumes': []}) => {"ansible_facts": {"_storage_vols_no_defaults_by_pool": {"foo": []}}, "ansible_loop_var": "item", "changed": false, "item": {"disks": ["vdb"], "name": "foo", "state": "absent", "type": "lvm", "volumes": []}} TASK [storage : Apply defaults to pools and volumes [5/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:61 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'absent', 'type': 'lvm', 'name': 'foo', 'disks': ['vdb'], 'volumes': []}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vdb"], "name": "foo", "state": "absent", "type": "lvm", "volumes": []}]}, "ansible_index_var": "idx", "ansible_loop_var": "pool", "changed": false, "idx": 0, "pool": {"disks": ["vdb"], "name": "foo", "state": "absent", "type": "lvm", "volumes": []}} TASK [storage : Apply defaults to pools and volumes [6/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:72 TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools": [ { "disks": [ "vdb" ], "name": "foo", "state": "absent", "type": "lvm", "volumes": [] } ] } TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_volumes": [] } TASK [storage : get required packages] ***************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": []} TASK [storage : make sure required packages are installed] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : manage the pools and volumes to match the specified state] ***** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:104 changed: [/cache/Fedora-Cloud-Base-30-1.2.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/vdb", "fs_type": "lvmpv"}], "changed": true, "leaves": ["/dev/sr0", "/dev/vda1", "/dev/vdb", "/dev/vdc"], "mounts": [{"path": "/opt/test1", "state": "absent"}], "packages": ["e2fsprogs"], "pools": [{"disks": ["vdb"], "name": "foo", "state": "absent", "type": "lvm", "volumes": []}], "volumes": []} TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:113 ok: [/cache/Fedora-Cloud-Base-30-1.2.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/vdb", "fs_type": "lvmpv" } ], "changed": true, "failed": false, "leaves": [ "/dev/sr0", "/dev/vda1", "/dev/vdb", "/dev/vdc" ], "mounts": [ { "path": "/opt/test1", "state": "absent" } ], "packages": [ "e2fsprogs" ], "pools": [ { "disks": [ "vdb" ], "name": "foo", "state": "absent", "type": "lvm", "volumes": [] } ], "volumes": [] } } TASK [storage : set the list of pools for test verification] ******************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:116 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": [{"disks": ["vdb"], "name": "foo", "state": "absent", "type": "lvm", "volumes": []}]}, "changed": false} TASK [storage : set the list of volumes for test verification] ***************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:120 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : manage mounts to match the specified state] ******************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:132 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'path': '/opt/test1', 'state': '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 [storage : tell systemd to refresh its view of /etc/fstab] **************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:143 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [storage : Update facts] ************************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:153 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 : ok=487 changed=37 unreachable=0 failed=0 skipped=101 rescued=0 ignored=0 + cd /tmp/tmpr6sk038f/tests; TEST_SUBJECTS=/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_storage-91-a6b7623-fedora-30-97_lk9m2/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmpr6sk038f/_setup.yml /tmp/tmpr6sk038f/tests/tests_lvm_one_disk_one_volume.yml ansible-playbook 2.9.9 config file = /etc/ansible/ansible.cfg configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.8/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 3.8.2 (default, Feb 28 2020, 00:00:00) [GCC 10.0.1 20200216 (Red Hat 10.0.1-0.8)] Using /etc/ansible/ansible.cfg as config file PLAYBOOK: _setup.yml *********************************************************** 1 plays in /tmp/tmpr6sk038f/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmpr6sk038f/_setup.yml:5 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "groups": { "all": [ "/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2" ], "localhost": [ "/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2" ], "subjects": [ "/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmpr6sk038f/_setup.yml:7 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/Fedora-Cloud-Base-30-1.2.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/tmpr6sk038f/tests/tests_lvm_one_disk_one_volume.yml PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpr6sk038f/tests/tests_lvm_one_disk_one_volume.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] META: ran handlers TASK [include_role : storage] ************************************************** task path: /tmp/tmpr6sk038f/tests/tests_lvm_one_disk_one_volume.yml:10 TASK [storage : Set version specific variables] ******************************** task path: /tmp/tmpr6sk038f/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/tmp/tmpr6sk038f/vars/Fedora.yml) => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-dm", "libblockdev-lvm", "libblockdev-part", "libblockdev-mdraid"]}, "ansible_included_var_files": ["/tmp/tmpr6sk038f/vars/Fedora.yml"], "ansible_loop_var": "item", "changed": false, "item": "/tmp/tmpr6sk038f/vars/Fedora.yml"} TASK [storage : define an empty list of pools to be used in testing] *********** task path: /tmp/tmpr6sk038f/tasks/main.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [storage : define an empty list of volumes to be used in testing] ********* task path: /tmp/tmpr6sk038f/tasks/main.yml:13 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : include the appropriate provider tasks] ************************ task path: /tmp/tmpr6sk038f/tasks/main.yml:17 included: /tmp/tmpr6sk038f/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [storage : get a list of rpm packages installed on host machine] ********** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [storage : make sure blivet is available] ********************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:7 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: libblockdev-mpath-2.23-1.fc30.x86_64", "Installed: libblockdev-nvdimm-2.23-1.fc30.x86_64", "Installed: userspace-rcu-0.10.1-5.fc30.x86_64", "Installed: libblockdev-part-2.23-1.fc30.x86_64", "Installed: dmraid-1.0.0.rc16-41.fc30.x86_64", "Installed: dmraid-events-1.0.0.rc16-41.fc30.x86_64", "Installed: lzo-2.08-15.fc30.x86_64", "Installed: libblockdev-swap-2.23-1.fc30.x86_64", "Installed: lvm2-2.02.183-3.fc30.x86_64", "Installed: libblockdev-utils-2.23-1.fc30.x86_64", "Installed: lvm2-libs-2.02.183-3.fc30.x86_64", "Installed: python3-blivet-1:3.1.4-1.fc30.noarch", "Installed: python3-blockdev-2.23-1.fc30.x86_64", "Installed: daxctl-libs-68-1.fc30.x86_64", "Installed: mdadm-4.1-1.fc30.x86_64", "Installed: blivet-data-1:3.1.4-1.fc30.noarch", "Installed: sgpio-1.2.0.10-23.fc30.x86_64", "Installed: nspr-4.25.0-1.fc30.x86_64", "Installed: python3-bytesize-2.2-1.fc30.x86_64", "Installed: device-mapper-event-1.02.154-3.fc30.x86_64", "Installed: lsof-4.91-3.fc30.x86_64", "Installed: nss-3.51.1-1.fc30.x86_64", "Installed: device-mapper-event-libs-1.02.154-3.fc30.x86_64", "Installed: device-mapper-multipath-0.7.9-6.git2df6110.fc30.x86_64", "Installed: gdisk-1.0.5-1.fc30.x86_64", "Installed: device-mapper-multipath-libs-0.7.9-6.git2df6110.fc30.x86_64", "Installed: nss-softokn-3.51.1-1.fc30.x86_64", "Installed: python3-gobject-base-3.32.2-1.fc30.x86_64", "Installed: device-mapper-persistent-data-0.7.6-4.fc30.x86_64", "Installed: gobject-introspection-1.60.2-1.fc30.x86_64", "Installed: nss-softokn-freebl-3.51.1-1.fc30.x86_64", "Installed: libbytesize-2.2-1.fc30.x86_64", "Installed: nss-sysinit-3.51.1-1.fc30.x86_64", "Installed: nss-util-3.51.1-1.fc30.x86_64", "Installed: volume_key-libs-0.3.12-3.fc30.x86_64", "Installed: bcache-tools-1.0.8-15.fc30.x86_64", "Installed: ndctl-68-1.fc30.x86_64", "Installed: ndctl-libs-68-1.fc30.x86_64", "Installed: libblockdev-2.23-1.fc30.x86_64", "Installed: libblockdev-btrfs-2.23-1.fc30.x86_64", "Installed: libblockdev-crypto-2.23-1.fc30.x86_64", "Installed: python3-pyudev-0.21.0-10.fc30.noarch", "Installed: btrfs-progs-5.6-1.fc30.x86_64", "Installed: libblockdev-dm-2.23-1.fc30.x86_64", "Installed: libblockdev-fs-2.23-1.fc30.x86_64", "Installed: libblockdev-kbd-2.23-1.fc30.x86_64", "Installed: libblockdev-loop-2.23-1.fc30.x86_64", "Installed: libblockdev-lvm-2.23-1.fc30.x86_64", "Installed: python3-pyparted-1:3.11.2-1.fc30.x86_64", "Installed: libaio-0.3.111-4.fc30.x86_64", "Installed: libblockdev-mdraid-2.23-1.fc30.x86_64"]} TASK [storage : initialize internal facts] ************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.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 [storage : Apply defaults to pools and volumes [1/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:28 TASK [storage : Apply defaults to pools and volumes [2/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:36 TASK [storage : Apply defaults to pools and volumes [3/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:44 TASK [storage : Apply defaults to pools and volumes [4/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:52 TASK [storage : Apply defaults to pools and volumes [5/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:61 TASK [storage : Apply defaults to pools and volumes [6/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:72 TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools": [] } TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_volumes": [] } TASK [storage : get required packages] ***************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": []} TASK [storage : make sure required packages are installed] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : manage the pools and volumes to match the specified state] ***** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:104 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": []} TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:113 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "blivet_output": { "actions": [], "changed": false, "failed": false, "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": [] } } TASK [storage : set the list of pools for test verification] ******************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:116 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [storage : set the list of volumes for test verification] ***************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:120 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : manage mounts to match the specified state] ******************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:132 TASK [storage : tell systemd to refresh its view of /etc/fstab] **************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:143 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [storage : Update facts] ************************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:153 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmpr6sk038f/tests/tests_lvm_one_disk_one_volume.yml:13 included: /tmp/tmpr6sk038f/tests/get_unused_disk.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [Find unused disks in the system] ***************************************** task path: /tmp/tmpr6sk038f/tests/get_unused_disk.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "disks": ["vdb"]} TASK [set_fact] **************************************************************** task path: /tmp/tmpr6sk038f/tests/get_unused_disk.yml:8 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"unused_disks": ["vdb"]}, "changed": false} TASK [Exit playbook when there's not enough unused disks in the system] ******** task path: /tmp/tmpr6sk038f/tests/get_unused_disk.yml:12 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Print unused disks] ****************************************************** task path: /tmp/tmpr6sk038f/tests/get_unused_disk.yml:17 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "unused_disks": [ "vdb" ] } TASK [Create one LVM logical volume under one volume group] ******************** task path: /tmp/tmpr6sk038f/tests/tests_lvm_one_disk_one_volume.yml:18 TASK [storage : Set version specific variables] ******************************** task path: /tmp/tmpr6sk038f/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/tmp/tmpr6sk038f/vars/Fedora.yml) => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-dm", "libblockdev-lvm", "libblockdev-part", "libblockdev-mdraid"]}, "ansible_included_var_files": ["/tmp/tmpr6sk038f/vars/Fedora.yml"], "ansible_loop_var": "item", "changed": false, "item": "/tmp/tmpr6sk038f/vars/Fedora.yml"} TASK [storage : define an empty list of pools to be used in testing] *********** task path: /tmp/tmpr6sk038f/tasks/main.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [storage : define an empty list of volumes to be used in testing] ********* task path: /tmp/tmpr6sk038f/tasks/main.yml:13 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : include the appropriate provider tasks] ************************ task path: /tmp/tmpr6sk038f/tasks/main.yml:17 included: /tmp/tmpr6sk038f/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [storage : get a list of rpm packages installed on host machine] ********** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [storage : make sure blivet is available] ********************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : initialize internal facts] ************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.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 [storage : Apply defaults to pools and volumes [1/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:28 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'name': 'foo', 'disks': ['vdb'], 'volumes': [{'name': 'test1', 'size': '4g', 'mount_point': '/opt/test1'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vdb"], "name": "foo", "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "4g"}]}]}, "ansible_loop_var": "pool", "changed": false, "pool": {"disks": ["vdb"], "name": "foo", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "4g"}]}} TASK [storage : Apply defaults to pools and volumes [2/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:36 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=[{'state': 'present', 'type': 'lvm', 'name': 'foo', 'disks': ['vdb'], 'volumes': [{'name': 'test1', 'size': '4g', 'mount_point': '/opt/test1'}]}, {'name': 'test1', 'size': '4g', 'mount_point': '/opt/test1'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "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": ["vdb"], "name": "foo", "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "4g"}]}, {"mount_point": "/opt/test1", "name": "test1", "size": "4g"}]} TASK [storage : Apply defaults to pools and volumes [3/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:44 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=[{'name': 'test1', 'size': '4g', 'mount_point': '/opt/test1'}, {'state': 'present', 'type': 'lvm', 'size': 0, 'fs_type': 'xfs', 'fs_label': '', 'fs_create_options': '', 'fs_overwrite_existing': True, 'mount_point': '', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid'}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "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"}, {"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "size": 0, "state": "present", "type": "lvm"}]} TASK [storage : Apply defaults to pools and volumes [4/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:52 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'name': 'foo', 'disks': ['vdb'], 'volumes': [{'name': 'test1', 'size': '4g', 'mount_point': '/opt/test1'}]}) => {"ansible_facts": {"_storage_vols_no_defaults_by_pool": {"foo": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "4g", "state": "present", "type": "lvm"}]}}, "ansible_loop_var": "item", "changed": false, "item": {"disks": ["vdb"], "name": "foo", "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "4g"}]}} TASK [storage : Apply defaults to pools and volumes [5/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:61 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'name': 'foo', 'disks': ['vdb'], 'volumes': [{'name': 'test1', 'size': '4g', 'mount_point': '/opt/test1'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vdb"], "name": "foo", "state": "present", "type": "lvm", "volumes": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "4g", "state": "present", "type": "lvm"}]}]}, "ansible_index_var": "idx", "ansible_loop_var": "pool", "changed": false, "idx": 0, "pool": {"disks": ["vdb"], "name": "foo", "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "4g"}]}} TASK [storage : Apply defaults to pools and volumes [6/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:72 TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools": [ { "disks": [ "vdb" ], "name": "foo", "state": "present", "type": "lvm", "volumes": [ { "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "4g", "state": "present", "type": "lvm" } ] } ] } TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_volumes": [] } TASK [storage : get required packages] ***************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": [], "mounts": [], "packages": ["lvm2", "xfsprogs"], "pools": [], "volumes": []} TASK [storage : make sure required packages are installed] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : manage the pools and volumes to match the specified state] ***** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:104 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [{"action": "create format", "device": "/dev/vdb", "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, "leaves": ["/dev/sr0", "/dev/vda1", "/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": ["vdb"], "name": "foo", "state": "present", "type": "lvm", "volumes": [{"_device": "/dev/mapper/foo-test1", "_mount_id": "/dev/mapper/foo-test1", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "4g", "state": "present", "type": "lvm"}]}], "volumes": []} TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:113 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "blivet_output": { "actions": [ { "action": "create format", "device": "/dev/vdb", "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, "failed": false, "leaves": [ "/dev/sr0", "/dev/vda1", "/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": [ "vdb" ], "name": "foo", "state": "present", "type": "lvm", "volumes": [ { "_device": "/dev/mapper/foo-test1", "_mount_id": "/dev/mapper/foo-test1", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "4g", "state": "present", "type": "lvm" } ] } ], "volumes": [] } } TASK [storage : set the list of pools for test verification] ******************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:116 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": [{"disks": ["vdb"], "name": "foo", "state": "present", "type": "lvm", "volumes": [{"_device": "/dev/mapper/foo-test1", "_mount_id": "/dev/mapper/foo-test1", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "4g", "state": "present", "type": "lvm"}]}]}, "changed": false} TASK [storage : set the list of volumes for test verification] ***************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:120 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : manage mounts to match the specified state] ******************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:132 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'src': '/dev/mapper/foo-test1', 'path': '/opt/test1', 'fstype': 'xfs', 'opts': 'defaults', 'dump': 0, 'passno': 0, 'state': 'mounted'}) => {"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 [storage : tell systemd to refresh its view of /etc/fstab] **************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:143 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [storage : Update facts] ************************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:153 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmpr6sk038f/tests/tests_lvm_one_disk_one_volume.yml:30 included: /tmp/tmpr6sk038f/tests/verify-role-results.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [Print out pool information] ********************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:1 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools_list": [ { "disks": [ "vdb" ], "name": "foo", "state": "present", "type": "lvm", "volumes": [ { "_device": "/dev/mapper/foo-test1", "_mount_id": "/dev/mapper/foo-test1", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "4g", "state": "present", "type": "lvm" } ] } ] } TASK [Print out volume information] ******************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:6 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {} TASK [Collect info about the volumes.] ***************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:14 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "info": {"/dev/mapper/foo-test1": {"fstype": "xfs", "label": "", "name": "/dev/mapper/foo-test1", "type": "lvm", "uuid": "6ef9e10b-a4a5-4ac1-88d5-ec62343677d4"}, "/dev/sr0": {"fstype": "iso9660", "label": "cidata", "name": "/dev/sr0", "type": "rom", "uuid": "2020-05-27-13-49-59-00"}, "/dev/vda": {"fstype": "", "label": "", "name": "/dev/vda", "type": "disk", "uuid": ""}, "/dev/vda1": {"fstype": "ext4", "label": "", "name": "/dev/vda1", "type": "partition", "uuid": "ea711a29-e460-4879-9d70-9da99ae021f9"}, "/dev/vdb": {"fstype": "LVM2_member", "label": "", "name": "/dev/vdb", "type": "disk", "uuid": "Z3uKWf-nKu5-8ZpH-2Q9Z-IUfO-6bTj-v7UDgy"}, "/dev/vdc": {"fstype": "", "label": "", "name": "/dev/vdc", "type": "disk", "uuid": ""}}} TASK [Read the /etc/fstab file for volume existence] *************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:19 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/fstab"], "delta": "0:00:00.002934", "end": "2020-05-27 13:53:01.287777", "rc": 0, "start": "2020-05-27 13:53:01.284843", "stderr": "", "stderr_lines": [], "stdout": "\n#\n# /etc/fstab\n# Created by anaconda on Fri Apr 26 02:02:19 2019\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=ea711a29-e460-4879-9d70-9da99ae021f9 / ext4 defaults 1 1\n/dev/mapper/foo-test1 /opt/test1 xfs defaults 0 0", "stdout_lines": ["", "#", "# /etc/fstab", "# Created by anaconda on Fri Apr 26 02:02:19 2019", "#", "# 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=ea711a29-e460-4879-9d70-9da99ae021f9 / ext4 defaults 1 1", "/dev/mapper/foo-test1 /opt/test1 xfs defaults 0 0"]} TASK [Verify the volumes listed in storage_pools were correctly managed] ******* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:27 included: /tmp/tmpr6sk038f/tests/test-verify-pool.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-pool.yml:5 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pool_tests": ["name", "type", "size", "members"]}, "changed": false} TASK [Verify the volumes in this pool were correctly managed] ****************** task path: /tmp/tmpr6sk038f/tests/test-verify-pool.yml:17 included: /tmp/tmpr6sk038f/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": true, "_storage_volume_tests": ["mount", "fstab", "fs", "device"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:12 included: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/foo-test1"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/foo-test1"], "delta": "0:00:00.004387", "end": "2020-05-27 13:53:01.877794", "rc": 0, "start": "2020-05-27 13:53:01.873407", "stderr": "", "stderr_lines": [], "stdout": "/dev/dm-0", "stdout_lines": ["/dev/dm-0"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Set some facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:20 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [{"block_available": 1036712, "block_size": 4096, "block_total": 1046016, "block_used": 9304, "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,noquota", "size_available": 4246372352, "size_total": 4284481536, "uuid": "6ef9e10b-a4a5-4ac1-88d5-ec62343677d4"}], "storage_test_mount_expected_match_count": "1", "storage_test_mount_point_matches": [{"block_available": 1036712, "block_size": 4096, "block_total": 1046016, "block_used": 9304, "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,noquota", "size_available": 4246372352, "size_total": 4284481536, "uuid": "6ef9e10b-a4a5-4ac1-88d5-ec62343677d4"}]}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:31 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:40 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:48 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Unset facts] ************************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:58 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_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/tmpr6sk038f/tests/test-verify-volume-fstab.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:16 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:23 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/foo-test1"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/foo-test1"], "delta": "0:00:00.002854", "end": "2020-05-27 13:53:02.596650", "rc": 0, "start": "2020-05-27 13:53:02.593796", "stderr": "", "stderr_lines": [], "stdout": "/dev/dm-0", "stdout_lines": ["/dev/dm-0"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify fs type] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:21 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify fs label] ********************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:27 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/foo-test1"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/foo-test1"], "delta": "0:00:00.002993", "end": "2020-05-27 13:53:03.084719", "rc": 0, "start": "2020-05-27 13:53:03.081726", "stderr": "", "stderr_lines": [], "stdout": "/dev/dm-0", "stdout_lines": ["/dev/dm-0"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [See whether the device node is present] ********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:21 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "stat": {"atime": 1590587577.957324, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "ctime": 1590587577.957324, "dev": 6, "device_type": 64768, "executable": false, "exists": true, "gid": 6, "gr_name": "disk", "inode": 1452, "isblk": true, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mimetype": "inode/symlink", "mode": "0660", "mtime": 1590587577.957324, "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/tmpr6sk038f/tests/test-verify-volume-device.yml:27 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:35 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:41 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "lvm"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:45 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:50 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:34 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_pool": null}, "changed": false} TASK [Verify the volumes with no pool were correctly managed] ****************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:41 TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:51 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_blkinfo": null, "storage_test_fstab": null, "storage_test_volume": null}, "changed": false} TASK [Repeat the previous invocation to verify idempotence] ******************** task path: /tmp/tmpr6sk038f/tests/tests_lvm_one_disk_one_volume.yml:32 TASK [storage : Set version specific variables] ******************************** task path: /tmp/tmpr6sk038f/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/tmp/tmpr6sk038f/vars/Fedora.yml) => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-dm", "libblockdev-lvm", "libblockdev-part", "libblockdev-mdraid"]}, "ansible_included_var_files": ["/tmp/tmpr6sk038f/vars/Fedora.yml"], "ansible_loop_var": "item", "changed": false, "item": "/tmp/tmpr6sk038f/vars/Fedora.yml"} TASK [storage : define an empty list of pools to be used in testing] *********** task path: /tmp/tmpr6sk038f/tasks/main.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [storage : define an empty list of volumes to be used in testing] ********* task path: /tmp/tmpr6sk038f/tasks/main.yml:13 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : include the appropriate provider tasks] ************************ task path: /tmp/tmpr6sk038f/tasks/main.yml:17 included: /tmp/tmpr6sk038f/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [storage : get a list of rpm packages installed on host machine] ********** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [storage : make sure blivet is available] ********************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : initialize internal facts] ************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.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 [storage : Apply defaults to pools and volumes [1/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:28 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'name': 'foo', 'disks': ['vdb'], 'volumes': [{'name': 'test1', 'size': '4g', 'mount_point': '/opt/test1'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vdb"], "name": "foo", "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "4g"}]}]}, "ansible_loop_var": "pool", "changed": false, "pool": {"disks": ["vdb"], "name": "foo", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "4g"}]}} TASK [storage : Apply defaults to pools and volumes [2/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:36 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=[{'state': 'present', 'type': 'lvm', 'name': 'foo', 'disks': ['vdb'], 'volumes': [{'name': 'test1', 'size': '4g', 'mount_point': '/opt/test1'}]}, {'name': 'test1', 'size': '4g', 'mount_point': '/opt/test1'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "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": ["vdb"], "name": "foo", "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "4g"}]}, {"mount_point": "/opt/test1", "name": "test1", "size": "4g"}]} TASK [storage : Apply defaults to pools and volumes [3/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:44 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=[{'name': 'test1', 'size': '4g', 'mount_point': '/opt/test1'}, {'state': 'present', 'type': 'lvm', 'size': 0, 'fs_type': 'xfs', 'fs_label': '', 'fs_create_options': '', 'fs_overwrite_existing': True, 'mount_point': '', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid'}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "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"}, {"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "size": 0, "state": "present", "type": "lvm"}]} TASK [storage : Apply defaults to pools and volumes [4/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:52 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'name': 'foo', 'disks': ['vdb'], 'volumes': [{'name': 'test1', 'size': '4g', 'mount_point': '/opt/test1'}]}) => {"ansible_facts": {"_storage_vols_no_defaults_by_pool": {"foo": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "4g", "state": "present", "type": "lvm"}]}}, "ansible_loop_var": "item", "changed": false, "item": {"disks": ["vdb"], "name": "foo", "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "4g"}]}} TASK [storage : Apply defaults to pools and volumes [5/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:61 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'name': 'foo', 'disks': ['vdb'], 'volumes': [{'name': 'test1', 'size': '4g', 'mount_point': '/opt/test1'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vdb"], "name": "foo", "state": "present", "type": "lvm", "volumes": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "4g", "state": "present", "type": "lvm"}]}]}, "ansible_index_var": "idx", "ansible_loop_var": "pool", "changed": false, "idx": 0, "pool": {"disks": ["vdb"], "name": "foo", "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "4g"}]}} TASK [storage : Apply defaults to pools and volumes [6/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:72 TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools": [ { "disks": [ "vdb" ], "name": "foo", "state": "present", "type": "lvm", "volumes": [ { "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "4g", "state": "present", "type": "lvm" } ] } ] } TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_volumes": [] } TASK [storage : get required packages] ***************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": [], "mounts": [], "packages": ["lvm2", "xfsprogs"], "pools": [], "volumes": []} TASK [storage : make sure required packages are installed] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : manage the pools and volumes to match the specified state] ***** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:104 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": ["/dev/sr0", "/dev/vda1", "/dev/mapper/foo-test1", "/dev/vdc"], "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": ["vdb"], "name": "foo", "state": "present", "type": "lvm", "volumes": [{"_device": "/dev/mapper/foo-test1", "_mount_id": "/dev/mapper/foo-test1", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "4g", "state": "present", "type": "lvm"}]}], "volumes": []} TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:113 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "blivet_output": { "actions": [], "changed": false, "failed": false, "leaves": [ "/dev/sr0", "/dev/vda1", "/dev/mapper/foo-test1", "/dev/vdc" ], "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": [ "vdb" ], "name": "foo", "state": "present", "type": "lvm", "volumes": [ { "_device": "/dev/mapper/foo-test1", "_mount_id": "/dev/mapper/foo-test1", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "4g", "state": "present", "type": "lvm" } ] } ], "volumes": [] } } TASK [storage : set the list of pools for test verification] ******************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:116 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": [{"disks": ["vdb"], "name": "foo", "state": "present", "type": "lvm", "volumes": [{"_device": "/dev/mapper/foo-test1", "_mount_id": "/dev/mapper/foo-test1", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "4g", "state": "present", "type": "lvm"}]}]}, "changed": false} TASK [storage : set the list of volumes for test verification] ***************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:120 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : manage mounts to match the specified state] ******************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:132 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'src': '/dev/mapper/foo-test1', 'path': '/opt/test1', 'fstype': 'xfs', 'opts': 'defaults', 'dump': 0, 'passno': 0, 'state': 'mounted'}) => {"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 [storage : tell systemd to refresh its view of /etc/fstab] **************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:143 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [storage : Update facts] ************************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:153 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmpr6sk038f/tests/tests_lvm_one_disk_one_volume.yml:44 included: /tmp/tmpr6sk038f/tests/verify-role-results.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [Print out pool information] ********************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:1 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools_list": [ { "disks": [ "vdb" ], "name": "foo", "state": "present", "type": "lvm", "volumes": [ { "_device": "/dev/mapper/foo-test1", "_mount_id": "/dev/mapper/foo-test1", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "4g", "state": "present", "type": "lvm" } ] } ] } TASK [Print out volume information] ******************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:6 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {} TASK [Collect info about the volumes.] ***************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:14 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "info": {"/dev/mapper/foo-test1": {"fstype": "xfs", "label": "", "name": "/dev/mapper/foo-test1", "type": "lvm", "uuid": "6ef9e10b-a4a5-4ac1-88d5-ec62343677d4"}, "/dev/sr0": {"fstype": "iso9660", "label": "cidata", "name": "/dev/sr0", "type": "rom", "uuid": "2020-05-27-13-49-59-00"}, "/dev/vda": {"fstype": "", "label": "", "name": "/dev/vda", "type": "disk", "uuid": ""}, "/dev/vda1": {"fstype": "ext4", "label": "", "name": "/dev/vda1", "type": "partition", "uuid": "ea711a29-e460-4879-9d70-9da99ae021f9"}, "/dev/vdb": {"fstype": "LVM2_member", "label": "", "name": "/dev/vdb", "type": "disk", "uuid": "Z3uKWf-nKu5-8ZpH-2Q9Z-IUfO-6bTj-v7UDgy"}, "/dev/vdc": {"fstype": "", "label": "", "name": "/dev/vdc", "type": "disk", "uuid": ""}}} TASK [Read the /etc/fstab file for volume existence] *************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:19 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/fstab"], "delta": "0:00:01.004002", "end": "2020-05-27 13:53:16.915036", "rc": 0, "start": "2020-05-27 13:53:15.911034", "stderr": "", "stderr_lines": [], "stdout": "\n#\n# /etc/fstab\n# Created by anaconda on Fri Apr 26 02:02:19 2019\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=ea711a29-e460-4879-9d70-9da99ae021f9 / ext4 defaults 1 1\n/dev/mapper/foo-test1 /opt/test1 xfs defaults 0 0", "stdout_lines": ["", "#", "# /etc/fstab", "# Created by anaconda on Fri Apr 26 02:02:19 2019", "#", "# 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=ea711a29-e460-4879-9d70-9da99ae021f9 / ext4 defaults 1 1", "/dev/mapper/foo-test1 /opt/test1 xfs defaults 0 0"]} TASK [Verify the volumes listed in storage_pools were correctly managed] ******* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:27 [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/tmpr6sk038f/tests/test-verify-pool.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-pool.yml:5 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pool_tests": ["name", "type", "size", "members"]}, "changed": false} TASK [Verify the volumes in this pool were correctly managed] ****************** task path: /tmp/tmpr6sk038f/tests/test-verify-pool.yml:17 [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/tmpr6sk038f/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": true, "_storage_volume_tests": ["mount", "fstab", "fs", "device"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:12 included: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/foo-test1"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/foo-test1"], "delta": "0:00:00.002875", "end": "2020-05-27 13:53:17.505966", "rc": 0, "start": "2020-05-27 13:53:17.503091", "stderr": "", "stderr_lines": [], "stdout": "/dev/dm-0", "stdout_lines": ["/dev/dm-0"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Set some facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:20 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [{"block_available": 1036712, "block_size": 4096, "block_total": 1046016, "block_used": 9304, "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,noquota", "size_available": 4246372352, "size_total": 4284481536, "uuid": "6ef9e10b-a4a5-4ac1-88d5-ec62343677d4"}], "storage_test_mount_expected_match_count": "1", "storage_test_mount_point_matches": [{"block_available": 1036712, "block_size": 4096, "block_total": 1046016, "block_used": 9304, "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,noquota", "size_available": 4246372352, "size_total": 4284481536, "uuid": "6ef9e10b-a4a5-4ac1-88d5-ec62343677d4"}]}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:31 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:40 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:48 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Unset facts] ************************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:58 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_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/tmpr6sk038f/tests/test-verify-volume-fstab.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:16 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:23 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/foo-test1"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/foo-test1"], "delta": "0:00:00.002501", "end": "2020-05-27 13:53:18.242673", "rc": 0, "start": "2020-05-27 13:53:18.240172", "stderr": "", "stderr_lines": [], "stdout": "/dev/dm-0", "stdout_lines": ["/dev/dm-0"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify fs type] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:21 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify fs label] ********************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:27 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/foo-test1"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/foo-test1"], "delta": "0:00:01.004143", "end": "2020-05-27 13:53:19.712724", "rc": 0, "start": "2020-05-27 13:53:18.708581", "stderr": "", "stderr_lines": [], "stdout": "/dev/dm-0", "stdout_lines": ["/dev/dm-0"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [See whether the device node is present] ********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:21 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "stat": {"atime": 1590587577.957324, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "ctime": 1590587577.957324, "dev": 6, "device_type": 64768, "executable": false, "exists": true, "gid": 6, "gr_name": "disk", "inode": 1452, "isblk": true, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mimetype": "inode/symlink", "mode": "0660", "mtime": 1590587577.957324, "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/tmpr6sk038f/tests/test-verify-volume-device.yml:27 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:35 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:41 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "lvm"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:45 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:50 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:34 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_pool": null}, "changed": false} TASK [Verify the volumes with no pool were correctly managed] ****************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:41 TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:51 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_blkinfo": null, "storage_test_fstab": null, "storage_test_volume": null}, "changed": false} TASK [Clean up] **************************************************************** task path: /tmp/tmpr6sk038f/tests/tests_lvm_one_disk_one_volume.yml:46 TASK [storage : Set version specific variables] ******************************** task path: /tmp/tmpr6sk038f/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/tmp/tmpr6sk038f/vars/Fedora.yml) => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-dm", "libblockdev-lvm", "libblockdev-part", "libblockdev-mdraid"]}, "ansible_included_var_files": ["/tmp/tmpr6sk038f/vars/Fedora.yml"], "ansible_loop_var": "item", "changed": false, "item": "/tmp/tmpr6sk038f/vars/Fedora.yml"} TASK [storage : define an empty list of pools to be used in testing] *********** task path: /tmp/tmpr6sk038f/tasks/main.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [storage : define an empty list of volumes to be used in testing] ********* task path: /tmp/tmpr6sk038f/tasks/main.yml:13 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : include the appropriate provider tasks] ************************ task path: /tmp/tmpr6sk038f/tasks/main.yml:17 included: /tmp/tmpr6sk038f/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [storage : get a list of rpm packages installed on host machine] ********** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [storage : make sure blivet is available] ********************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : initialize internal facts] ************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.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 [storage : Apply defaults to pools and volumes [1/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:28 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'name': 'foo', 'disks': ['vdb'], 'state': 'absent', 'volumes': [{'name': 'test1', 'size': '4g', 'mount_point': '/opt/test1', 'state': 'absent'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vdb"], "name": "foo", "state": "absent", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "4g", "state": "absent"}]}]}, "ansible_loop_var": "pool", "changed": false, "pool": {"disks": ["vdb"], "name": "foo", "state": "absent", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "4g", "state": "absent"}]}} TASK [storage : Apply defaults to pools and volumes [2/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:36 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=[{'state': 'absent', 'type': 'lvm', 'name': 'foo', 'disks': ['vdb'], 'volumes': [{'name': 'test1', 'size': '4g', 'mount_point': '/opt/test1', 'state': 'absent'}]}, {'name': 'test1', 'size': '4g', 'mount_point': '/opt/test1', 'state': 'absent'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "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": ["vdb"], "name": "foo", "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 [storage : Apply defaults to pools and volumes [3/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:44 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=[{'name': 'test1', 'size': '4g', 'mount_point': '/opt/test1', 'state': 'absent'}, {'state': 'present', 'type': 'lvm', 'size': 0, 'fs_type': 'xfs', 'fs_label': '', 'fs_create_options': '', 'fs_overwrite_existing': True, 'mount_point': '', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid'}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "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"}, {"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "size": 0, "state": "present", "type": "lvm"}]} TASK [storage : Apply defaults to pools and volumes [4/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:52 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'absent', 'type': 'lvm', 'name': 'foo', 'disks': ['vdb'], 'volumes': [{'name': 'test1', 'size': '4g', 'mount_point': '/opt/test1', 'state': 'absent'}]}) => {"ansible_facts": {"_storage_vols_no_defaults_by_pool": {"foo": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "4g", "state": "absent", "type": "lvm"}]}}, "ansible_loop_var": "item", "changed": false, "item": {"disks": ["vdb"], "name": "foo", "state": "absent", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "4g", "state": "absent"}]}} TASK [storage : Apply defaults to pools and volumes [5/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:61 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'absent', 'type': 'lvm', 'name': 'foo', 'disks': ['vdb'], 'volumes': [{'name': 'test1', 'size': '4g', 'mount_point': '/opt/test1', 'state': 'absent'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vdb"], "name": "foo", "state": "absent", "type": "lvm", "volumes": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "4g", "state": "absent", "type": "lvm"}]}]}, "ansible_index_var": "idx", "ansible_loop_var": "pool", "changed": false, "idx": 0, "pool": {"disks": ["vdb"], "name": "foo", "state": "absent", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "4g", "state": "absent"}]}} TASK [storage : Apply defaults to pools and volumes [6/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:72 TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools": [ { "disks": [ "vdb" ], "name": "foo", "state": "absent", "type": "lvm", "volumes": [ { "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "4g", "state": "absent", "type": "lvm" } ] } ] } TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_volumes": [] } TASK [storage : get required packages] ***************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": []} TASK [storage : make sure required packages are installed] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : manage the pools and volumes to match the specified state] ***** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:104 changed: [/cache/Fedora-Cloud-Base-30-1.2.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/vdb", "fs_type": "lvmpv"}], "changed": true, "leaves": ["/dev/sr0", "/dev/vda1", "/dev/vdb", "/dev/vdc"], "mounts": [{"path": "/opt/test1", "state": "absent"}], "packages": ["e2fsprogs"], "pools": [{"disks": ["vdb"], "name": "foo", "state": "absent", "type": "lvm", "volumes": [{"_device": "/dev/mapper/foo-test1", "_mount_id": "/dev/mapper/foo-test1", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "4g", "state": "absent", "type": "lvm"}]}], "volumes": []} TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:113 ok: [/cache/Fedora-Cloud-Base-30-1.2.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/vdb", "fs_type": "lvmpv" } ], "changed": true, "failed": false, "leaves": [ "/dev/sr0", "/dev/vda1", "/dev/vdb", "/dev/vdc" ], "mounts": [ { "path": "/opt/test1", "state": "absent" } ], "packages": [ "e2fsprogs" ], "pools": [ { "disks": [ "vdb" ], "name": "foo", "state": "absent", "type": "lvm", "volumes": [ { "_device": "/dev/mapper/foo-test1", "_mount_id": "/dev/mapper/foo-test1", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "4g", "state": "absent", "type": "lvm" } ] } ], "volumes": [] } } TASK [storage : set the list of pools for test verification] ******************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:116 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": [{"disks": ["vdb"], "name": "foo", "state": "absent", "type": "lvm", "volumes": [{"_device": "/dev/mapper/foo-test1", "_mount_id": "/dev/mapper/foo-test1", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "4g", "state": "absent", "type": "lvm"}]}]}, "changed": false} TASK [storage : set the list of volumes for test verification] ***************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:120 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : manage mounts to match the specified state] ******************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:132 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'path': '/opt/test1', 'state': '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 [storage : tell systemd to refresh its view of /etc/fstab] **************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:143 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [storage : Update facts] ************************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:153 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmpr6sk038f/tests/tests_lvm_one_disk_one_volume.yml:60 included: /tmp/tmpr6sk038f/tests/verify-role-results.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [Print out pool information] ********************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:1 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools_list": [ { "disks": [ "vdb" ], "name": "foo", "state": "absent", "type": "lvm", "volumes": [ { "_device": "/dev/mapper/foo-test1", "_mount_id": "/dev/mapper/foo-test1", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "4g", "state": "absent", "type": "lvm" } ] } ] } TASK [Print out volume information] ******************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:6 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {} TASK [Collect info about the volumes.] ***************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:14 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "info": {"/dev/sr0": {"fstype": "iso9660", "label": "cidata", "name": "/dev/sr0", "type": "rom", "uuid": "2020-05-27-13-49-59-00"}, "/dev/vda": {"fstype": "", "label": "", "name": "/dev/vda", "type": "disk", "uuid": ""}, "/dev/vda1": {"fstype": "ext4", "label": "", "name": "/dev/vda1", "type": "partition", "uuid": "ea711a29-e460-4879-9d70-9da99ae021f9"}, "/dev/vdb": {"fstype": "", "label": "", "name": "/dev/vdb", "type": "disk", "uuid": ""}, "/dev/vdc": {"fstype": "", "label": "", "name": "/dev/vdc", "type": "disk", "uuid": ""}}} TASK [Read the /etc/fstab file for volume existence] *************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:19 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/fstab"], "delta": "0:00:00.002737", "end": "2020-05-27 13:53:33.285731", "rc": 0, "start": "2020-05-27 13:53:33.282994", "stderr": "", "stderr_lines": [], "stdout": "\n#\n# /etc/fstab\n# Created by anaconda on Fri Apr 26 02:02:19 2019\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=ea711a29-e460-4879-9d70-9da99ae021f9 / ext4 defaults 1 1", "stdout_lines": ["", "#", "# /etc/fstab", "# Created by anaconda on Fri Apr 26 02:02:19 2019", "#", "# 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=ea711a29-e460-4879-9d70-9da99ae021f9 / ext4 defaults 1 1"]} TASK [Verify the volumes listed in storage_pools were correctly managed] ******* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:27 [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/tmpr6sk038f/tests/test-verify-pool.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-pool.yml:5 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pool_tests": ["name", "type", "size", "members"]}, "changed": false} TASK [Verify the volumes in this pool were correctly managed] ****************** task path: /tmp/tmpr6sk038f/tests/test-verify-pool.yml:17 [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/tmpr6sk038f/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": false, "_storage_volume_tests": ["mount", "fstab", "fs", "device"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:12 included: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/foo-test1"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/foo-test1"], "delta": "0:00:00.002622", "end": "2020-05-27 13:53:33.870609", "rc": 0, "start": "2020-05-27 13:53:33.867987", "stderr": "", "stderr_lines": [], "stdout": "/dev/mapper/foo-test1", "stdout_lines": ["/dev/mapper/foo-test1"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:15 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": {"changed": true, "cmd": ["realpath", "/dev/mapper/foo-test1"], "delta": "0:00:00.002622", "end": "2020-05-27 13:53:33.870609", "failed": false, "rc": 0, "start": "2020-05-27 13:53:33.867987", "stderr": "", "stderr_lines": [], "stdout": "/dev/mapper/foo-test1", "stdout_lines": ["/dev/mapper/foo-test1"]}}, "changed": false} TASK [Set some facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:20 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [], "storage_test_mount_expected_match_count": "0", "storage_test_mount_point_matches": []}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:31 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:40 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:48 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Unset facts] ************************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:58 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_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/tmpr6sk038f/tests/test-verify-volume-fstab.yml:9 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:16 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:23 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/foo-test1"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/foo-test1"], "delta": "0:00:00.002982", "end": "2020-05-27 13:53:34.551266", "rc": 0, "start": "2020-05-27 13:53:34.548284", "stderr": "", "stderr_lines": [], "stdout": "/dev/mapper/foo-test1", "stdout_lines": ["/dev/mapper/foo-test1"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:15 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": {"changed": true, "cmd": ["realpath", "/dev/mapper/foo-test1"], "delta": "0:00:00.002982", "end": "2020-05-27 13:53:34.551266", "failed": false, "rc": 0, "start": "2020-05-27 13:53:34.548284", "stderr": "", "stderr_lines": [], "stdout": "/dev/mapper/foo-test1", "stdout_lines": ["/dev/mapper/foo-test1"]}}, "changed": false} TASK [Verify fs type] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:21 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify fs label] ********************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:27 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/foo-test1"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/foo-test1"], "delta": "0:00:00.002592", "end": "2020-05-27 13:53:35.006169", "rc": 0, "start": "2020-05-27 13:53:35.003577", "stderr": "", "stderr_lines": [], "stdout": "/dev/mapper/foo-test1", "stdout_lines": ["/dev/mapper/foo-test1"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:15 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": {"changed": true, "cmd": ["realpath", "/dev/mapper/foo-test1"], "delta": "0:00:00.002592", "end": "2020-05-27 13:53:35.006169", "failed": false, "rc": 0, "start": "2020-05-27 13:53:35.003577", "stderr": "", "stderr_lines": [], "stdout": "/dev/mapper/foo-test1", "stdout_lines": ["/dev/mapper/foo-test1"]}}, "changed": false} TASK [See whether the device node is present] ********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:21 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "stat": {"exists": false}} TASK [Verify the presence/absence of the device node] ************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:27 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:35 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:41 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "lvm"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:45 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:50 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Clean up facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:34 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_pool": null}, "changed": false} TASK [Verify the volumes with no pool were correctly managed] ****************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:41 TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:51 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_blkinfo": null, "storage_test_fstab": null, "storage_test_volume": null}, "changed": false} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 : ok=194 changed=14 unreachable=0 failed=0 skipped=39 rescued=0 ignored=0 + cd /tmp/tmpr6sk038f/tests; TEST_SUBJECTS=/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_storage-91-a6b7623-fedora-30-97_lk9m2/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmpr6sk038f/_setup.yml /tmp/tmpr6sk038f/tests/tests_null_raid_pool.yml ansible-playbook 2.9.9 config file = /etc/ansible/ansible.cfg configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.8/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 3.8.2 (default, Feb 28 2020, 00:00:00) [GCC 10.0.1 20200216 (Red Hat 10.0.1-0.8)] Using /etc/ansible/ansible.cfg as config file PLAYBOOK: _setup.yml *********************************************************** 1 plays in /tmp/tmpr6sk038f/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmpr6sk038f/_setup.yml:5 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "groups": { "all": [ "/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2" ], "localhost": [ "/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2" ], "subjects": [ "/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmpr6sk038f/_setup.yml:7 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 : ok=1 changed=0 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 PLAYBOOK: tests_null_raid_pool.yml ********************************************* 1 plays in /tmp/tmpr6sk038f/tests/tests_null_raid_pool.yml PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpr6sk038f/tests/tests_null_raid_pool.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] META: ran handlers TASK [include_role : storage] ************************************************** task path: /tmp/tmpr6sk038f/tests/tests_null_raid_pool.yml:11 TASK [storage : Set version specific variables] ******************************** task path: /tmp/tmpr6sk038f/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/tmp/tmpr6sk038f/vars/Fedora.yml) => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-dm", "libblockdev-lvm", "libblockdev-part", "libblockdev-mdraid"]}, "ansible_included_var_files": ["/tmp/tmpr6sk038f/vars/Fedora.yml"], "ansible_loop_var": "item", "changed": false, "item": "/tmp/tmpr6sk038f/vars/Fedora.yml"} TASK [storage : define an empty list of pools to be used in testing] *********** task path: /tmp/tmpr6sk038f/tasks/main.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [storage : define an empty list of volumes to be used in testing] ********* task path: /tmp/tmpr6sk038f/tasks/main.yml:13 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : include the appropriate provider tasks] ************************ task path: /tmp/tmpr6sk038f/tasks/main.yml:17 included: /tmp/tmpr6sk038f/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [storage : get a list of rpm packages installed on host machine] ********** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [storage : make sure blivet is available] ********************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:7 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: libblockdev-mpath-2.23-1.fc30.x86_64", "Installed: libblockdev-nvdimm-2.23-1.fc30.x86_64", "Installed: userspace-rcu-0.10.1-5.fc30.x86_64", "Installed: libblockdev-part-2.23-1.fc30.x86_64", "Installed: dmraid-1.0.0.rc16-41.fc30.x86_64", "Installed: dmraid-events-1.0.0.rc16-41.fc30.x86_64", "Installed: lzo-2.08-15.fc30.x86_64", "Installed: libblockdev-swap-2.23-1.fc30.x86_64", "Installed: lvm2-2.02.183-3.fc30.x86_64", "Installed: libblockdev-utils-2.23-1.fc30.x86_64", "Installed: lvm2-libs-2.02.183-3.fc30.x86_64", "Installed: python3-blivet-1:3.1.4-1.fc30.noarch", "Installed: python3-blockdev-2.23-1.fc30.x86_64", "Installed: daxctl-libs-68-1.fc30.x86_64", "Installed: mdadm-4.1-1.fc30.x86_64", "Installed: blivet-data-1:3.1.4-1.fc30.noarch", "Installed: sgpio-1.2.0.10-23.fc30.x86_64", "Installed: nspr-4.25.0-1.fc30.x86_64", "Installed: python3-bytesize-2.2-1.fc30.x86_64", "Installed: device-mapper-event-1.02.154-3.fc30.x86_64", "Installed: lsof-4.91-3.fc30.x86_64", "Installed: nss-3.51.1-1.fc30.x86_64", "Installed: device-mapper-event-libs-1.02.154-3.fc30.x86_64", "Installed: device-mapper-multipath-0.7.9-6.git2df6110.fc30.x86_64", "Installed: gdisk-1.0.5-1.fc30.x86_64", "Installed: device-mapper-multipath-libs-0.7.9-6.git2df6110.fc30.x86_64", "Installed: nss-softokn-3.51.1-1.fc30.x86_64", "Installed: python3-gobject-base-3.32.2-1.fc30.x86_64", "Installed: device-mapper-persistent-data-0.7.6-4.fc30.x86_64", "Installed: gobject-introspection-1.60.2-1.fc30.x86_64", "Installed: nss-softokn-freebl-3.51.1-1.fc30.x86_64", "Installed: libbytesize-2.2-1.fc30.x86_64", "Installed: nss-sysinit-3.51.1-1.fc30.x86_64", "Installed: nss-util-3.51.1-1.fc30.x86_64", "Installed: volume_key-libs-0.3.12-3.fc30.x86_64", "Installed: bcache-tools-1.0.8-15.fc30.x86_64", "Installed: ndctl-68-1.fc30.x86_64", "Installed: ndctl-libs-68-1.fc30.x86_64", "Installed: libblockdev-2.23-1.fc30.x86_64", "Installed: libblockdev-btrfs-2.23-1.fc30.x86_64", "Installed: libblockdev-crypto-2.23-1.fc30.x86_64", "Installed: python3-pyudev-0.21.0-10.fc30.noarch", "Installed: btrfs-progs-5.6-1.fc30.x86_64", "Installed: libblockdev-dm-2.23-1.fc30.x86_64", "Installed: libblockdev-fs-2.23-1.fc30.x86_64", "Installed: libblockdev-kbd-2.23-1.fc30.x86_64", "Installed: libblockdev-loop-2.23-1.fc30.x86_64", "Installed: libblockdev-lvm-2.23-1.fc30.x86_64", "Installed: python3-pyparted-1:3.11.2-1.fc30.x86_64", "Installed: libaio-0.3.111-4.fc30.x86_64", "Installed: libblockdev-mdraid-2.23-1.fc30.x86_64"]} TASK [storage : initialize internal facts] ************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.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 [storage : Apply defaults to pools and volumes [1/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:28 TASK [storage : Apply defaults to pools and volumes [2/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:36 TASK [storage : Apply defaults to pools and volumes [3/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:44 TASK [storage : Apply defaults to pools and volumes [4/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:52 TASK [storage : Apply defaults to pools and volumes [5/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:61 TASK [storage : Apply defaults to pools and volumes [6/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:72 TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools": [] } TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_volumes": [] } TASK [storage : get required packages] ***************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": []} TASK [storage : make sure required packages are installed] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : manage the pools and volumes to match the specified state] ***** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:104 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": []} TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:113 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "blivet_output": { "actions": [], "changed": false, "failed": false, "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": [] } } TASK [storage : set the list of pools for test verification] ******************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:116 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [storage : set the list of volumes for test verification] ***************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:120 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : manage mounts to match the specified state] ******************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:132 TASK [storage : tell systemd to refresh its view of /etc/fstab] **************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:143 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [storage : Update facts] ************************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:153 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmpr6sk038f/tests/tests_null_raid_pool.yml:14 included: /tmp/tmpr6sk038f/tests/get_unused_disk.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [Find unused disks in the system] ***************************************** task path: /tmp/tmpr6sk038f/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-30-1.2.x86_64.qcow2] => {"changed": false, "disks": ["vdb", "vdc"]} TASK [set_fact] **************************************************************** task path: /tmp/tmpr6sk038f/tests/get_unused_disk.yml:8 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"unused_disks": ["vdb", "vdc"]}, "changed": false} TASK [Exit playbook when there's not enough unused disks in the system] ******** task path: /tmp/tmpr6sk038f/tests/get_unused_disk.yml:12 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Print unused disks] ****************************************************** task path: /tmp/tmpr6sk038f/tests/get_unused_disk.yml:17 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "unused_disks": [ "vdb", "vdc" ] } TASK [get existing raids (before run)] ***************************************** task path: /tmp/tmpr6sk038f/tests/tests_null_raid_pool.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/proc/mdstat"], "delta": "0:00:01.004337", "end": "2020-05-27 13:55:07.616557", "rc": 0, "start": "2020-05-27 13:55:06.612220", "stderr": "", "stderr_lines": [], "stdout": "Personalities : \nunused devices: ", "stdout_lines": ["Personalities : ", "unused devices: "]} TASK [check that raid_level null does not create raid] ************************* task path: /tmp/tmpr6sk038f/tests/tests_null_raid_pool.yml:23 TASK [storage : Set version specific variables] ******************************** task path: /tmp/tmpr6sk038f/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/tmp/tmpr6sk038f/vars/Fedora.yml) => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-dm", "libblockdev-lvm", "libblockdev-part", "libblockdev-mdraid"]}, "ansible_included_var_files": ["/tmp/tmpr6sk038f/vars/Fedora.yml"], "ansible_loop_var": "item", "changed": false, "item": "/tmp/tmpr6sk038f/vars/Fedora.yml"} TASK [storage : define an empty list of pools to be used in testing] *********** task path: /tmp/tmpr6sk038f/tasks/main.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [storage : define an empty list of volumes to be used in testing] ********* task path: /tmp/tmpr6sk038f/tasks/main.yml:13 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : include the appropriate provider tasks] ************************ task path: /tmp/tmpr6sk038f/tasks/main.yml:17 included: /tmp/tmpr6sk038f/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [storage : get a list of rpm packages installed on host machine] ********** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [storage : make sure blivet is available] ********************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : initialize internal facts] ************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.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 [storage : Apply defaults to pools and volumes [1/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:28 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'name': 'vg1', 'disks': ['vdb', 'vdc'], 'type': 'lvm', 'raid_level': 'null', 'state': 'present', 'volumes': [{'name': 'lv1', 'size': '2g', 'mount_point': '/opt/test1'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vdb", "vdc"], "name": "vg1", "raid_level": "null", "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "lv1", "size": "2g"}]}]}, "ansible_loop_var": "pool", "changed": false, "pool": {"disks": ["vdb", "vdc"], "name": "vg1", "raid_level": "null", "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "lv1", "size": "2g"}]}} TASK [storage : Apply defaults to pools and volumes [2/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:36 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=[{'state': 'present', 'type': 'lvm', 'name': 'vg1', 'disks': ['vdb', 'vdc'], 'raid_level': 'null', 'volumes': [{'name': 'lv1', 'size': '2g', 'mount_point': '/opt/test1'}]}, {'name': 'lv1', 'size': '2g', 'mount_point': '/opt/test1'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "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": ["vdb", "vdc"], "name": "vg1", "raid_level": "null", "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "lv1", "size": "2g"}]}, {"mount_point": "/opt/test1", "name": "lv1", "size": "2g"}]} TASK [storage : Apply defaults to pools and volumes [3/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:44 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=[{'name': 'lv1', 'size': '2g', 'mount_point': '/opt/test1'}, {'state': 'present', 'type': 'lvm', 'size': 0, 'fs_type': 'xfs', 'fs_label': '', 'fs_create_options': '', 'fs_overwrite_existing': True, 'mount_point': '', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid'}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"fs_create_options": "", "fs_label": "", "fs_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", "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"}, {"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "size": 0, "state": "present", "type": "lvm"}]} TASK [storage : Apply defaults to pools and volumes [4/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:52 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'name': 'vg1', 'disks': ['vdb', 'vdc'], 'raid_level': 'null', 'volumes': [{'name': 'lv1', 'size': '2g', 'mount_point': '/opt/test1'}]}) => {"ansible_facts": {"_storage_vols_no_defaults_by_pool": {"vg1": [{"fs_create_options": "", "fs_label": "", "fs_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", "size": "2g", "state": "present", "type": "lvm"}]}}, "ansible_loop_var": "item", "changed": false, "item": {"disks": ["vdb", "vdc"], "name": "vg1", "raid_level": "null", "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "lv1", "size": "2g"}]}} TASK [storage : Apply defaults to pools and volumes [5/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:61 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'name': 'vg1', 'disks': ['vdb', 'vdc'], 'raid_level': 'null', 'volumes': [{'name': 'lv1', 'size': '2g', 'mount_point': '/opt/test1'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vdb", "vdc"], "name": "vg1", "raid_level": "null", "state": "present", "type": "lvm", "volumes": [{"fs_create_options": "", "fs_label": "", "fs_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", "size": "2g", "state": "present", "type": "lvm"}]}]}, "ansible_index_var": "idx", "ansible_loop_var": "pool", "changed": false, "idx": 0, "pool": {"disks": ["vdb", "vdc"], "name": "vg1", "raid_level": "null", "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "lv1", "size": "2g"}]}} TASK [storage : Apply defaults to pools and volumes [6/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:72 TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools": [ { "disks": [ "vdb", "vdc" ], "name": "vg1", "raid_level": "null", "state": "present", "type": "lvm", "volumes": [ { "fs_create_options": "", "fs_label": "", "fs_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", "size": "2g", "state": "present", "type": "lvm" } ] } ] } TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_volumes": [] } TASK [storage : get required packages] ***************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": [], "mounts": [], "packages": ["lvm2", "xfsprogs"], "pools": [], "volumes": []} TASK [storage : make sure required packages are installed] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : manage the pools and volumes to match the specified state] ***** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:104 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [{"action": "create format", "device": "/dev/vdc", "fs_type": "disklabel"}, {"action": "create device", "device": "/dev/vdc1", "fs_type": null}, {"action": "create format", "device": "/dev/vdc1", "fs_type": "lvmpv"}, {"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 device", "device": "/dev/vg1", "fs_type": null}, {"action": "create device", "device": "/dev/mapper/vg1-lv1", "fs_type": null}, {"action": "create format", "device": "/dev/mapper/vg1-lv1", "fs_type": "xfs"}], "changed": true, "leaves": ["/dev/sr0", "/dev/vda1", "/dev/mapper/vg1-lv1"], "mounts": [{"dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "/dev/mapper/vg1-lv1", "state": "mounted"}], "packages": ["lvm2", "xfsprogs", "e2fsprogs"], "pools": [{"disks": ["vdb", "vdc"], "name": "vg1", "raid_level": "null", "state": "present", "type": "lvm", "volumes": [{"_device": "/dev/mapper/vg1-lv1", "_mount_id": "/dev/mapper/vg1-lv1", "fs_create_options": "", "fs_label": "", "fs_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", "size": "2g", "state": "present", "type": "lvm"}]}], "volumes": []} TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:113 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "blivet_output": { "actions": [ { "action": "create format", "device": "/dev/vdc", "fs_type": "disklabel" }, { "action": "create device", "device": "/dev/vdc1", "fs_type": null }, { "action": "create format", "device": "/dev/vdc1", "fs_type": "lvmpv" }, { "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 device", "device": "/dev/vg1", "fs_type": null }, { "action": "create device", "device": "/dev/mapper/vg1-lv1", "fs_type": null }, { "action": "create format", "device": "/dev/mapper/vg1-lv1", "fs_type": "xfs" } ], "changed": true, "failed": false, "leaves": [ "/dev/sr0", "/dev/vda1", "/dev/mapper/vg1-lv1" ], "mounts": [ { "dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "/dev/mapper/vg1-lv1", "state": "mounted" } ], "packages": [ "lvm2", "xfsprogs", "e2fsprogs" ], "pools": [ { "disks": [ "vdb", "vdc" ], "name": "vg1", "raid_level": "null", "state": "present", "type": "lvm", "volumes": [ { "_device": "/dev/mapper/vg1-lv1", "_mount_id": "/dev/mapper/vg1-lv1", "fs_create_options": "", "fs_label": "", "fs_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", "size": "2g", "state": "present", "type": "lvm" } ] } ], "volumes": [] } } TASK [storage : set the list of pools for test verification] ******************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:116 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": [{"disks": ["vdb", "vdc"], "name": "vg1", "raid_level": "null", "state": "present", "type": "lvm", "volumes": [{"_device": "/dev/mapper/vg1-lv1", "_mount_id": "/dev/mapper/vg1-lv1", "fs_create_options": "", "fs_label": "", "fs_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", "size": "2g", "state": "present", "type": "lvm"}]}]}, "changed": false} TASK [storage : set the list of volumes for test verification] ***************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:120 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : manage mounts to match the specified state] ******************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:132 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'src': '/dev/mapper/vg1-lv1', 'path': '/opt/test1', 'fstype': 'xfs', 'opts': 'defaults', 'dump': 0, 'passno': 0, 'state': 'mounted'}) => {"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"} TASK [storage : tell systemd to refresh its view of /etc/fstab] **************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:143 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [storage : Update facts] ************************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:153 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] TASK [get existing raids (after run)] ****************************************** task path: /tmp/tmpr6sk038f/tests/tests_null_raid_pool.yml:38 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/proc/mdstat"], "delta": "0:00:00.002687", "end": "2020-05-27 13:55:20.234087", "rc": 0, "start": "2020-05-27 13:55:20.231400", "stderr": "", "stderr_lines": [], "stdout": "Personalities : \nunused devices: ", "stdout_lines": ["Personalities : ", "unused devices: "]} TASK [cleanup] ***************************************************************** task path: /tmp/tmpr6sk038f/tests/tests_null_raid_pool.yml:44 TASK [storage : Set version specific variables] ******************************** task path: /tmp/tmpr6sk038f/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/tmp/tmpr6sk038f/vars/Fedora.yml) => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-dm", "libblockdev-lvm", "libblockdev-part", "libblockdev-mdraid"]}, "ansible_included_var_files": ["/tmp/tmpr6sk038f/vars/Fedora.yml"], "ansible_loop_var": "item", "changed": false, "item": "/tmp/tmpr6sk038f/vars/Fedora.yml"} TASK [storage : define an empty list of pools to be used in testing] *********** task path: /tmp/tmpr6sk038f/tasks/main.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [storage : define an empty list of volumes to be used in testing] ********* task path: /tmp/tmpr6sk038f/tasks/main.yml:13 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : include the appropriate provider tasks] ************************ task path: /tmp/tmpr6sk038f/tasks/main.yml:17 included: /tmp/tmpr6sk038f/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [storage : get a list of rpm packages installed on host machine] ********** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [storage : make sure blivet is available] ********************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : initialize internal facts] ************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.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 [storage : Apply defaults to pools and volumes [1/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:28 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'name': 'vg1', 'disks': ['vdb', 'vdc'], 'type': 'lvm', 'raid_level': 'null', 'state': 'absent', 'volumes': [{'name': 'lv1', 'size': '2g', 'mount_point': '/opt/test1'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vdb", "vdc"], "name": "vg1", "raid_level": "null", "state": "absent", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "lv1", "size": "2g"}]}]}, "ansible_loop_var": "pool", "changed": false, "pool": {"disks": ["vdb", "vdc"], "name": "vg1", "raid_level": "null", "state": "absent", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "lv1", "size": "2g"}]}} TASK [storage : Apply defaults to pools and volumes [2/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:36 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=[{'state': 'absent', 'type': 'lvm', 'name': 'vg1', 'disks': ['vdb', 'vdc'], 'raid_level': 'null', 'volumes': [{'name': 'lv1', 'size': '2g', 'mount_point': '/opt/test1'}]}, {'name': 'lv1', 'size': '2g', 'mount_point': '/opt/test1'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "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": ["vdb", "vdc"], "name": "vg1", "raid_level": "null", "state": "absent", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "lv1", "size": "2g"}]}, {"mount_point": "/opt/test1", "name": "lv1", "size": "2g"}]} TASK [storage : Apply defaults to pools and volumes [3/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:44 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=[{'name': 'lv1', 'size': '2g', 'mount_point': '/opt/test1'}, {'state': 'present', 'type': 'lvm', 'size': 0, 'fs_type': 'xfs', 'fs_label': '', 'fs_create_options': '', 'fs_overwrite_existing': True, 'mount_point': '', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid'}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"fs_create_options": "", "fs_label": "", "fs_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", "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"}, {"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "size": 0, "state": "present", "type": "lvm"}]} TASK [storage : Apply defaults to pools and volumes [4/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:52 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'absent', 'type': 'lvm', 'name': 'vg1', 'disks': ['vdb', 'vdc'], 'raid_level': 'null', 'volumes': [{'name': 'lv1', 'size': '2g', 'mount_point': '/opt/test1'}]}) => {"ansible_facts": {"_storage_vols_no_defaults_by_pool": {"vg1": [{"fs_create_options": "", "fs_label": "", "fs_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", "size": "2g", "state": "present", "type": "lvm"}]}}, "ansible_loop_var": "item", "changed": false, "item": {"disks": ["vdb", "vdc"], "name": "vg1", "raid_level": "null", "state": "absent", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "lv1", "size": "2g"}]}} TASK [storage : Apply defaults to pools and volumes [5/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:61 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'absent', 'type': 'lvm', 'name': 'vg1', 'disks': ['vdb', 'vdc'], 'raid_level': 'null', 'volumes': [{'name': 'lv1', 'size': '2g', 'mount_point': '/opt/test1'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vdb", "vdc"], "name": "vg1", "raid_level": "null", "state": "absent", "type": "lvm", "volumes": [{"fs_create_options": "", "fs_label": "", "fs_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", "size": "2g", "state": "present", "type": "lvm"}]}]}, "ansible_index_var": "idx", "ansible_loop_var": "pool", "changed": false, "idx": 0, "pool": {"disks": ["vdb", "vdc"], "name": "vg1", "raid_level": "null", "state": "absent", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "lv1", "size": "2g"}]}} TASK [storage : Apply defaults to pools and volumes [6/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:72 TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools": [ { "disks": [ "vdb", "vdc" ], "name": "vg1", "raid_level": "null", "state": "absent", "type": "lvm", "volumes": [ { "fs_create_options": "", "fs_label": "", "fs_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", "size": "2g", "state": "present", "type": "lvm" } ] } ] } TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_volumes": [] } TASK [storage : get required packages] ***************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": []} TASK [storage : make sure required packages are installed] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : manage the pools and volumes to match the specified state] ***** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:104 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [{"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/vdc1", "fs_type": "lvmpv"}, {"action": "destroy device", "device": "/dev/vdc1", "fs_type": null}, {"action": "destroy format", "device": "/dev/vdc", "fs_type": "disklabel"}, {"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"}], "changed": true, "leaves": ["/dev/sr0", "/dev/vda1", "/dev/vdb", "/dev/vdc"], "mounts": [{"path": "/opt/test1", "state": "absent"}], "packages": ["e2fsprogs"], "pools": [{"disks": ["vdb", "vdc"], "name": "vg1", "raid_level": "null", "state": "absent", "type": "lvm", "volumes": [{"_device": "/dev/mapper/vg1-lv1", "_mount_id": "/dev/mapper/vg1-lv1", "fs_create_options": "", "fs_label": "", "fs_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", "size": "2g", "state": "present", "type": "lvm"}]}], "volumes": []} TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:113 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "blivet_output": { "actions": [ { "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/vdc1", "fs_type": "lvmpv" }, { "action": "destroy device", "device": "/dev/vdc1", "fs_type": null }, { "action": "destroy format", "device": "/dev/vdc", "fs_type": "disklabel" }, { "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" } ], "changed": true, "failed": false, "leaves": [ "/dev/sr0", "/dev/vda1", "/dev/vdb", "/dev/vdc" ], "mounts": [ { "path": "/opt/test1", "state": "absent" } ], "packages": [ "e2fsprogs" ], "pools": [ { "disks": [ "vdb", "vdc" ], "name": "vg1", "raid_level": "null", "state": "absent", "type": "lvm", "volumes": [ { "_device": "/dev/mapper/vg1-lv1", "_mount_id": "/dev/mapper/vg1-lv1", "fs_create_options": "", "fs_label": "", "fs_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", "size": "2g", "state": "present", "type": "lvm" } ] } ], "volumes": [] } } TASK [storage : set the list of pools for test verification] ******************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:116 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": [{"disks": ["vdb", "vdc"], "name": "vg1", "raid_level": "null", "state": "absent", "type": "lvm", "volumes": [{"_device": "/dev/mapper/vg1-lv1", "_mount_id": "/dev/mapper/vg1-lv1", "fs_create_options": "", "fs_label": "", "fs_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", "size": "2g", "state": "present", "type": "lvm"}]}]}, "changed": false} TASK [storage : set the list of volumes for test verification] ***************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:120 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : manage mounts to match the specified state] ******************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:132 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'path': '/opt/test1', 'state': '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 [storage : tell systemd to refresh its view of /etc/fstab] **************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:143 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [storage : Update facts] ************************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:153 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] TASK [compare mdstat results] ************************************************** task path: /tmp/tmpr6sk038f/tests/tests_null_raid_pool.yml:59 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 : ok=68 changed=5 unreachable=0 failed=0 skipped=15 rescued=0 ignored=0 + cd /tmp/tmpr6sk038f/tests; TEST_SUBJECTS=/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_storage-91-a6b7623-fedora-30-97_lk9m2/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmpr6sk038f/_setup.yml /tmp/tmpr6sk038f/tests/tests_remove_mount.yml ansible-playbook 2.9.9 config file = /etc/ansible/ansible.cfg configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.8/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 3.8.2 (default, Feb 28 2020, 00:00:00) [GCC 10.0.1 20200216 (Red Hat 10.0.1-0.8)] Using /etc/ansible/ansible.cfg as config file PLAYBOOK: _setup.yml *********************************************************** 1 plays in /tmp/tmpr6sk038f/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmpr6sk038f/_setup.yml:5 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "groups": { "all": [ "/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2" ], "localhost": [ "/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2" ], "subjects": [ "/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmpr6sk038f/_setup.yml:7 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 : ok=1 changed=0 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 PLAYBOOK: tests_remove_mount.yml *********************************************** 1 plays in /tmp/tmpr6sk038f/tests/tests_remove_mount.yml PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpr6sk038f/tests/tests_remove_mount.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] META: ran handlers TASK [include_role : storage] ************************************************** task path: /tmp/tmpr6sk038f/tests/tests_remove_mount.yml:10 TASK [storage : Set version specific variables] ******************************** task path: /tmp/tmpr6sk038f/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/tmp/tmpr6sk038f/vars/Fedora.yml) => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-dm", "libblockdev-lvm", "libblockdev-part", "libblockdev-mdraid"]}, "ansible_included_var_files": ["/tmp/tmpr6sk038f/vars/Fedora.yml"], "ansible_loop_var": "item", "changed": false, "item": "/tmp/tmpr6sk038f/vars/Fedora.yml"} TASK [storage : define an empty list of pools to be used in testing] *********** task path: /tmp/tmpr6sk038f/tasks/main.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [storage : define an empty list of volumes to be used in testing] ********* task path: /tmp/tmpr6sk038f/tasks/main.yml:13 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : include the appropriate provider tasks] ************************ task path: /tmp/tmpr6sk038f/tasks/main.yml:17 included: /tmp/tmpr6sk038f/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [storage : get a list of rpm packages installed on host machine] ********** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [storage : make sure blivet is available] ********************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:7 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: libblockdev-mpath-2.23-1.fc30.x86_64", "Installed: libblockdev-nvdimm-2.23-1.fc30.x86_64", "Installed: userspace-rcu-0.10.1-5.fc30.x86_64", "Installed: libblockdev-part-2.23-1.fc30.x86_64", "Installed: dmraid-1.0.0.rc16-41.fc30.x86_64", "Installed: dmraid-events-1.0.0.rc16-41.fc30.x86_64", "Installed: lzo-2.08-15.fc30.x86_64", "Installed: libblockdev-swap-2.23-1.fc30.x86_64", "Installed: lvm2-2.02.183-3.fc30.x86_64", "Installed: libblockdev-utils-2.23-1.fc30.x86_64", "Installed: lvm2-libs-2.02.183-3.fc30.x86_64", "Installed: python3-blivet-1:3.1.4-1.fc30.noarch", "Installed: python3-blockdev-2.23-1.fc30.x86_64", "Installed: daxctl-libs-68-1.fc30.x86_64", "Installed: mdadm-4.1-1.fc30.x86_64", "Installed: blivet-data-1:3.1.4-1.fc30.noarch", "Installed: sgpio-1.2.0.10-23.fc30.x86_64", "Installed: nspr-4.25.0-1.fc30.x86_64", "Installed: python3-bytesize-2.2-1.fc30.x86_64", "Installed: device-mapper-event-1.02.154-3.fc30.x86_64", "Installed: lsof-4.91-3.fc30.x86_64", "Installed: nss-3.51.1-1.fc30.x86_64", "Installed: device-mapper-event-libs-1.02.154-3.fc30.x86_64", "Installed: device-mapper-multipath-0.7.9-6.git2df6110.fc30.x86_64", "Installed: gdisk-1.0.5-1.fc30.x86_64", "Installed: device-mapper-multipath-libs-0.7.9-6.git2df6110.fc30.x86_64", "Installed: nss-softokn-3.51.1-1.fc30.x86_64", "Installed: python3-gobject-base-3.32.2-1.fc30.x86_64", "Installed: device-mapper-persistent-data-0.7.6-4.fc30.x86_64", "Installed: gobject-introspection-1.60.2-1.fc30.x86_64", "Installed: nss-softokn-freebl-3.51.1-1.fc30.x86_64", "Installed: libbytesize-2.2-1.fc30.x86_64", "Installed: nss-sysinit-3.51.1-1.fc30.x86_64", "Installed: nss-util-3.51.1-1.fc30.x86_64", "Installed: volume_key-libs-0.3.12-3.fc30.x86_64", "Installed: bcache-tools-1.0.8-15.fc30.x86_64", "Installed: ndctl-68-1.fc30.x86_64", "Installed: ndctl-libs-68-1.fc30.x86_64", "Installed: libblockdev-2.23-1.fc30.x86_64", "Installed: libblockdev-btrfs-2.23-1.fc30.x86_64", "Installed: libblockdev-crypto-2.23-1.fc30.x86_64", "Installed: python3-pyudev-0.21.0-10.fc30.noarch", "Installed: btrfs-progs-5.6-1.fc30.x86_64", "Installed: libblockdev-dm-2.23-1.fc30.x86_64", "Installed: libblockdev-fs-2.23-1.fc30.x86_64", "Installed: libblockdev-kbd-2.23-1.fc30.x86_64", "Installed: libblockdev-loop-2.23-1.fc30.x86_64", "Installed: libblockdev-lvm-2.23-1.fc30.x86_64", "Installed: python3-pyparted-1:3.11.2-1.fc30.x86_64", "Installed: libaio-0.3.111-4.fc30.x86_64", "Installed: libblockdev-mdraid-2.23-1.fc30.x86_64"]} TASK [storage : initialize internal facts] ************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.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 [storage : Apply defaults to pools and volumes [1/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:28 TASK [storage : Apply defaults to pools and volumes [2/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:36 TASK [storage : Apply defaults to pools and volumes [3/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:44 TASK [storage : Apply defaults to pools and volumes [4/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:52 TASK [storage : Apply defaults to pools and volumes [5/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:61 TASK [storage : Apply defaults to pools and volumes [6/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:72 TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools": [] } TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_volumes": [] } TASK [storage : get required packages] ***************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": []} TASK [storage : make sure required packages are installed] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : manage the pools and volumes to match the specified state] ***** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:104 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": []} TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:113 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "blivet_output": { "actions": [], "changed": false, "failed": false, "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": [] } } TASK [storage : set the list of pools for test verification] ******************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:116 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [storage : set the list of volumes for test verification] ***************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:120 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : manage mounts to match the specified state] ******************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:132 TASK [storage : tell systemd to refresh its view of /etc/fstab] **************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:143 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [storage : Update facts] ************************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:153 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmpr6sk038f/tests/tests_remove_mount.yml:13 included: /tmp/tmpr6sk038f/tests/get_unused_disk.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [Find unused disks in the system] ***************************************** task path: /tmp/tmpr6sk038f/tests/get_unused_disk.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "disks": ["vdb"]} TASK [set_fact] **************************************************************** task path: /tmp/tmpr6sk038f/tests/get_unused_disk.yml:8 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"unused_disks": ["vdb"]}, "changed": false} TASK [Exit playbook when there's not enough unused disks in the system] ******** task path: /tmp/tmpr6sk038f/tests/get_unused_disk.yml:12 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Print unused disks] ****************************************************** task path: /tmp/tmpr6sk038f/tests/get_unused_disk.yml:17 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "unused_disks": [ "vdb" ] } TASK [Create a LVM logical volume mounted at "/opt/test1"] ********************* task path: /tmp/tmpr6sk038f/tests/tests_remove_mount.yml:18 TASK [storage : Set version specific variables] ******************************** task path: /tmp/tmpr6sk038f/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/tmp/tmpr6sk038f/vars/Fedora.yml) => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-dm", "libblockdev-lvm", "libblockdev-part", "libblockdev-mdraid"]}, "ansible_included_var_files": ["/tmp/tmpr6sk038f/vars/Fedora.yml"], "ansible_loop_var": "item", "changed": false, "item": "/tmp/tmpr6sk038f/vars/Fedora.yml"} TASK [storage : define an empty list of pools to be used in testing] *********** task path: /tmp/tmpr6sk038f/tasks/main.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [storage : define an empty list of volumes to be used in testing] ********* task path: /tmp/tmpr6sk038f/tasks/main.yml:13 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : include the appropriate provider tasks] ************************ task path: /tmp/tmpr6sk038f/tasks/main.yml:17 included: /tmp/tmpr6sk038f/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [storage : get a list of rpm packages installed on host machine] ********** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [storage : make sure blivet is available] ********************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : initialize internal facts] ************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.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 [storage : Apply defaults to pools and volumes [1/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:28 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'name': 'foo', 'disks': ['vdb'], 'volumes': [{'name': 'test1', 'size': '3g', 'mount_point': '/opt/test1'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vdb"], "name": "foo", "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "3g"}]}]}, "ansible_loop_var": "pool", "changed": false, "pool": {"disks": ["vdb"], "name": "foo", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "3g"}]}} TASK [storage : Apply defaults to pools and volumes [2/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:36 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=[{'state': 'present', 'type': 'lvm', 'name': 'foo', 'disks': ['vdb'], 'volumes': [{'name': 'test1', 'size': '3g', 'mount_point': '/opt/test1'}]}, {'name': 'test1', 'size': '3g', 'mount_point': '/opt/test1'}]) => {"ansible_facts": {"_storage_vol_defaults": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "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": ["vdb"], "name": "foo", "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "3g"}]}, {"mount_point": "/opt/test1", "name": "test1", "size": "3g"}]} TASK [storage : Apply defaults to pools and volumes [3/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:44 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=[{'name': 'test1', 'size': '3g', 'mount_point': '/opt/test1'}, {'state': 'present', 'type': 'lvm', 'size': 0, 'fs_type': 'xfs', 'fs_label': '', 'fs_create_options': '', 'fs_overwrite_existing': True, 'mount_point': '', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid'}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "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"}, {"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "size": 0, "state": "present", "type": "lvm"}]} TASK [storage : Apply defaults to pools and volumes [4/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:52 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'name': 'foo', 'disks': ['vdb'], 'volumes': [{'name': 'test1', 'size': '3g', 'mount_point': '/opt/test1'}]}) => {"ansible_facts": {"_storage_vols_no_defaults_by_pool": {"foo": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "3g", "state": "present", "type": "lvm"}]}}, "ansible_loop_var": "item", "changed": false, "item": {"disks": ["vdb"], "name": "foo", "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "3g"}]}} TASK [storage : Apply defaults to pools and volumes [5/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:61 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'name': 'foo', 'disks': ['vdb'], 'volumes': [{'name': 'test1', 'size': '3g', 'mount_point': '/opt/test1'}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vdb"], "name": "foo", "state": "present", "type": "lvm", "volumes": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "3g", "state": "present", "type": "lvm"}]}]}, "ansible_index_var": "idx", "ansible_loop_var": "pool", "changed": false, "idx": 0, "pool": {"disks": ["vdb"], "name": "foo", "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "3g"}]}} TASK [storage : Apply defaults to pools and volumes [6/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:72 TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools": [ { "disks": [ "vdb" ], "name": "foo", "state": "present", "type": "lvm", "volumes": [ { "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "3g", "state": "present", "type": "lvm" } ] } ] } TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_volumes": [] } TASK [storage : get required packages] ***************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": [], "mounts": [], "packages": ["lvm2", "xfsprogs"], "pools": [], "volumes": []} TASK [storage : make sure required packages are installed] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : manage the pools and volumes to match the specified state] ***** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:104 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [{"action": "create format", "device": "/dev/vdb", "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, "leaves": ["/dev/sr0", "/dev/vda1", "/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": ["lvm2", "e2fsprogs", "xfsprogs"], "pools": [{"disks": ["vdb"], "name": "foo", "state": "present", "type": "lvm", "volumes": [{"_device": "/dev/mapper/foo-test1", "_mount_id": "/dev/mapper/foo-test1", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "3g", "state": "present", "type": "lvm"}]}], "volumes": []} TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:113 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "blivet_output": { "actions": [ { "action": "create format", "device": "/dev/vdb", "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, "failed": false, "leaves": [ "/dev/sr0", "/dev/vda1", "/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": [ "lvm2", "e2fsprogs", "xfsprogs" ], "pools": [ { "disks": [ "vdb" ], "name": "foo", "state": "present", "type": "lvm", "volumes": [ { "_device": "/dev/mapper/foo-test1", "_mount_id": "/dev/mapper/foo-test1", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "3g", "state": "present", "type": "lvm" } ] } ], "volumes": [] } } TASK [storage : set the list of pools for test verification] ******************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:116 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": [{"disks": ["vdb"], "name": "foo", "state": "present", "type": "lvm", "volumes": [{"_device": "/dev/mapper/foo-test1", "_mount_id": "/dev/mapper/foo-test1", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "3g", "state": "present", "type": "lvm"}]}]}, "changed": false} TASK [storage : set the list of volumes for test verification] ***************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:120 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : manage mounts to match the specified state] ******************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:132 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'src': '/dev/mapper/foo-test1', 'path': '/opt/test1', 'fstype': 'xfs', 'opts': 'defaults', 'dump': 0, 'passno': 0, 'state': 'mounted'}) => {"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 [storage : tell systemd to refresh its view of /etc/fstab] **************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:143 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [storage : Update facts] ************************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:153 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmpr6sk038f/tests/tests_remove_mount.yml:30 included: /tmp/tmpr6sk038f/tests/verify-role-results.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [Print out pool information] ********************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:1 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools_list": [ { "disks": [ "vdb" ], "name": "foo", "state": "present", "type": "lvm", "volumes": [ { "_device": "/dev/mapper/foo-test1", "_mount_id": "/dev/mapper/foo-test1", "fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "/opt/test1", "name": "test1", "pool": "foo", "size": "3g", "state": "present", "type": "lvm" } ] } ] } TASK [Print out volume information] ******************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:6 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {} TASK [Collect info about the volumes.] ***************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:14 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "info": {"/dev/mapper/foo-test1": {"fstype": "xfs", "label": "", "name": "/dev/mapper/foo-test1", "type": "lvm", "uuid": "b003f632-27af-4a23-bee3-c4dd845ea6cc"}, "/dev/sr0": {"fstype": "iso9660", "label": "cidata", "name": "/dev/sr0", "type": "rom", "uuid": "2020-05-27-13-55-33-00"}, "/dev/vda": {"fstype": "", "label": "", "name": "/dev/vda", "type": "disk", "uuid": ""}, "/dev/vda1": {"fstype": "ext4", "label": "", "name": "/dev/vda1", "type": "partition", "uuid": "ea711a29-e460-4879-9d70-9da99ae021f9"}, "/dev/vdb": {"fstype": "LVM2_member", "label": "", "name": "/dev/vdb", "type": "disk", "uuid": "kVYdbm-YirG-76J9-FOls-nj4q-wxvk-vFyfQv"}, "/dev/vdc": {"fstype": "", "label": "", "name": "/dev/vdc", "type": "disk", "uuid": ""}}} TASK [Read the /etc/fstab file for volume existence] *************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:19 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/fstab"], "delta": "0:00:00.002561", "end": "2020-05-27 13:57:42.479387", "rc": 0, "start": "2020-05-27 13:57:42.476826", "stderr": "", "stderr_lines": [], "stdout": "\n#\n# /etc/fstab\n# Created by anaconda on Fri Apr 26 02:02:19 2019\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=ea711a29-e460-4879-9d70-9da99ae021f9 / ext4 defaults 1 1\n/dev/mapper/foo-test1 /opt/test1 xfs defaults 0 0", "stdout_lines": ["", "#", "# /etc/fstab", "# Created by anaconda on Fri Apr 26 02:02:19 2019", "#", "# 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=ea711a29-e460-4879-9d70-9da99ae021f9 / ext4 defaults 1 1", "/dev/mapper/foo-test1 /opt/test1 xfs defaults 0 0"]} TASK [Verify the volumes listed in storage_pools were correctly managed] ******* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:27 included: /tmp/tmpr6sk038f/tests/test-verify-pool.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-pool.yml:5 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pool_tests": ["name", "type", "size", "members"]}, "changed": false} TASK [Verify the volumes in this pool were correctly managed] ****************** task path: /tmp/tmpr6sk038f/tests/test-verify-pool.yml:17 included: /tmp/tmpr6sk038f/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": true, "_storage_volume_tests": ["mount", "fstab", "fs", "device"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:12 included: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/foo-test1"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/foo-test1"], "delta": "0:00:00.004219", "end": "2020-05-27 13:57:42.951462", "rc": 0, "start": "2020-05-27 13:57:42.947243", "stderr": "", "stderr_lines": [], "stdout": "/dev/dm-0", "stdout_lines": ["/dev/dm-0"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Set some facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:20 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [{"block_available": 774836, "block_size": 4096, "block_total": 783872, "block_used": 9036, "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,noquota", "size_available": 3173728256, "size_total": 3210739712, "uuid": "b003f632-27af-4a23-bee3-c4dd845ea6cc"}], "storage_test_mount_expected_match_count": "1", "storage_test_mount_point_matches": [{"block_available": 774836, "block_size": 4096, "block_total": 783872, "block_used": 9036, "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,noquota", "size_available": 3173728256, "size_total": 3210739712, "uuid": "b003f632-27af-4a23-bee3-c4dd845ea6cc"}]}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:31 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:40 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:48 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Unset facts] ************************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:58 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_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/tmpr6sk038f/tests/test-verify-volume-fstab.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:16 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:23 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/foo-test1"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/foo-test1"], "delta": "0:00:00.002329", "end": "2020-05-27 13:57:43.470219", "rc": 0, "start": "2020-05-27 13:57:43.467890", "stderr": "", "stderr_lines": [], "stdout": "/dev/dm-0", "stdout_lines": ["/dev/dm-0"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify fs type] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:21 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify fs label] ********************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:27 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/foo-test1"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/foo-test1"], "delta": "0:00:00.002596", "end": "2020-05-27 13:57:43.851640", "rc": 0, "start": "2020-05-27 13:57:43.849044", "stderr": "", "stderr_lines": [], "stdout": "/dev/dm-0", "stdout_lines": ["/dev/dm-0"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [See whether the device node is present] ********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:21 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "stat": {"atime": 1590587859.4339132, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "ctime": 1590587859.4339132, "dev": 6, "device_type": 64768, "executable": false, "exists": true, "gid": 6, "gr_name": "disk", "inode": 74832, "isblk": true, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mimetype": "inode/symlink", "mode": "0660", "mtime": 1590587859.4339132, "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/tmpr6sk038f/tests/test-verify-volume-device.yml:27 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:35 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:41 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "lvm"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:45 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:50 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:34 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_pool": null}, "changed": false} TASK [Verify the volumes with no pool were correctly managed] ****************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:41 TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:51 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_blkinfo": null, "storage_test_fstab": null, "storage_test_volume": null}, "changed": false} TASK [Change the mount location to ""] ***************************************** task path: /tmp/tmpr6sk038f/tests/tests_remove_mount.yml:32 TASK [storage : Set version specific variables] ******************************** task path: /tmp/tmpr6sk038f/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/tmp/tmpr6sk038f/vars/Fedora.yml) => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-dm", "libblockdev-lvm", "libblockdev-part", "libblockdev-mdraid"]}, "ansible_included_var_files": ["/tmp/tmpr6sk038f/vars/Fedora.yml"], "ansible_loop_var": "item", "changed": false, "item": "/tmp/tmpr6sk038f/vars/Fedora.yml"} TASK [storage : define an empty list of pools to be used in testing] *********** task path: /tmp/tmpr6sk038f/tasks/main.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [storage : define an empty list of volumes to be used in testing] ********* task path: /tmp/tmpr6sk038f/tasks/main.yml:13 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : include the appropriate provider tasks] ************************ task path: /tmp/tmpr6sk038f/tasks/main.yml:17 included: /tmp/tmpr6sk038f/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [storage : get a list of rpm packages installed on host machine] ********** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [storage : make sure blivet is available] ********************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : initialize internal facts] ************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.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 [storage : Apply defaults to pools and volumes [1/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:28 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'name': 'foo', 'disks': ['vdb'], 'volumes': [{'name': 'test1', 'size': '3g', 'mount_point': ''}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vdb"], "name": "foo", "state": "present", "type": "lvm", "volumes": [{"mount_point": "", "name": "test1", "size": "3g"}]}]}, "ansible_loop_var": "pool", "changed": false, "pool": {"disks": ["vdb"], "name": "foo", "volumes": [{"mount_point": "", "name": "test1", "size": "3g"}]}} TASK [storage : Apply defaults to pools and volumes [2/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:36 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=[{'state': 'present', 'type': 'lvm', 'name': 'foo', 'disks': ['vdb'], 'volumes': [{'name': 'test1', 'size': '3g', 'mount_point': ''}]}, {'name': 'test1', 'size': '3g', 'mount_point': ''}]) => {"ansible_facts": {"_storage_vol_defaults": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "size": 0, "state": "present", "type": "lvm"}], "_storage_vol_pools": ["foo"], "_storage_vols_no_defaults": [{"mount_point": "", "name": "test1", "size": "3g"}]}, "ansible_loop_var": "item", "changed": false, "item": [{"disks": ["vdb"], "name": "foo", "state": "present", "type": "lvm", "volumes": [{"mount_point": "", "name": "test1", "size": "3g"}]}, {"mount_point": "", "name": "test1", "size": "3g"}]} TASK [storage : Apply defaults to pools and volumes [3/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:44 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=[{'name': 'test1', 'size': '3g', 'mount_point': ''}, {'state': 'present', 'type': 'lvm', 'size': 0, 'fs_type': 'xfs', 'fs_label': '', 'fs_create_options': '', 'fs_overwrite_existing': True, 'mount_point': '', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid'}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"fs_create_options": "", "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": "test1", "pool": "foo", "size": "3g", "state": "present", "type": "lvm"}]}, "ansible_index_var": "idx", "ansible_loop_var": "item", "changed": false, "idx": 0, "item": [{"mount_point": "", "name": "test1", "size": "3g"}, {"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "size": 0, "state": "present", "type": "lvm"}]} TASK [storage : Apply defaults to pools and volumes [4/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:52 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'name': 'foo', 'disks': ['vdb'], 'volumes': [{'name': 'test1', 'size': '3g', 'mount_point': ''}]}) => {"ansible_facts": {"_storage_vols_no_defaults_by_pool": {"foo": [{"fs_create_options": "", "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": "test1", "pool": "foo", "size": "3g", "state": "present", "type": "lvm"}]}}, "ansible_loop_var": "item", "changed": false, "item": {"disks": ["vdb"], "name": "foo", "state": "present", "type": "lvm", "volumes": [{"mount_point": "", "name": "test1", "size": "3g"}]}} TASK [storage : Apply defaults to pools and volumes [5/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:61 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'name': 'foo', 'disks': ['vdb'], 'volumes': [{'name': 'test1', 'size': '3g', 'mount_point': ''}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vdb"], "name": "foo", "state": "present", "type": "lvm", "volumes": [{"fs_create_options": "", "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": "test1", "pool": "foo", "size": "3g", "state": "present", "type": "lvm"}]}]}, "ansible_index_var": "idx", "ansible_loop_var": "pool", "changed": false, "idx": 0, "pool": {"disks": ["vdb"], "name": "foo", "state": "present", "type": "lvm", "volumes": [{"mount_point": "", "name": "test1", "size": "3g"}]}} TASK [storage : Apply defaults to pools and volumes [6/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:72 TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools": [ { "disks": [ "vdb" ], "name": "foo", "state": "present", "type": "lvm", "volumes": [ { "fs_create_options": "", "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": "test1", "pool": "foo", "size": "3g", "state": "present", "type": "lvm" } ] } ] } TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_volumes": [] } TASK [storage : get required packages] ***************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": [], "mounts": [], "packages": ["lvm2", "xfsprogs"], "pools": [], "volumes": []} TASK [storage : make sure required packages are installed] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : manage the pools and volumes to match the specified state] ***** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:104 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": ["/dev/sr0", "/dev/vda1", "/dev/mapper/foo-test1", "/dev/vdc"], "mounts": [{"path": "/opt/test1", "state": "absent"}], "packages": ["xfsprogs", "lvm2", "e2fsprogs"], "pools": [{"disks": ["vdb"], "name": "foo", "state": "present", "type": "lvm", "volumes": [{"_device": "/dev/mapper/foo-test1", "_mount_id": "/dev/mapper/foo-test1", "fs_create_options": "", "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": "test1", "pool": "foo", "size": "3g", "state": "present", "type": "lvm"}]}], "volumes": []} TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:113 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "blivet_output": { "actions": [], "changed": false, "failed": false, "leaves": [ "/dev/sr0", "/dev/vda1", "/dev/mapper/foo-test1", "/dev/vdc" ], "mounts": [ { "path": "/opt/test1", "state": "absent" } ], "packages": [ "xfsprogs", "lvm2", "e2fsprogs" ], "pools": [ { "disks": [ "vdb" ], "name": "foo", "state": "present", "type": "lvm", "volumes": [ { "_device": "/dev/mapper/foo-test1", "_mount_id": "/dev/mapper/foo-test1", "fs_create_options": "", "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": "test1", "pool": "foo", "size": "3g", "state": "present", "type": "lvm" } ] } ], "volumes": [] } } TASK [storage : set the list of pools for test verification] ******************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:116 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": [{"disks": ["vdb"], "name": "foo", "state": "present", "type": "lvm", "volumes": [{"_device": "/dev/mapper/foo-test1", "_mount_id": "/dev/mapper/foo-test1", "fs_create_options": "", "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": "test1", "pool": "foo", "size": "3g", "state": "present", "type": "lvm"}]}]}, "changed": false} TASK [storage : set the list of volumes for test verification] ***************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:120 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : manage mounts to match the specified state] ******************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:132 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'path': '/opt/test1', 'state': '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 [storage : tell systemd to refresh its view of /etc/fstab] **************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:143 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "name": null, "status": {}} TASK [storage : Update facts] ************************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:153 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmpr6sk038f/tests/tests_remove_mount.yml:44 included: /tmp/tmpr6sk038f/tests/verify-role-results.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [Print out pool information] ********************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:1 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools_list": [ { "disks": [ "vdb" ], "name": "foo", "state": "present", "type": "lvm", "volumes": [ { "_device": "/dev/mapper/foo-test1", "_mount_id": "/dev/mapper/foo-test1", "fs_create_options": "", "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": "test1", "pool": "foo", "size": "3g", "state": "present", "type": "lvm" } ] } ] } TASK [Print out volume information] ******************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:6 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {} TASK [Collect info about the volumes.] ***************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:14 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "info": {"/dev/mapper/foo-test1": {"fstype": "xfs", "label": "", "name": "/dev/mapper/foo-test1", "type": "lvm", "uuid": "b003f632-27af-4a23-bee3-c4dd845ea6cc"}, "/dev/sr0": {"fstype": "iso9660", "label": "cidata", "name": "/dev/sr0", "type": "rom", "uuid": "2020-05-27-13-55-33-00"}, "/dev/vda": {"fstype": "", "label": "", "name": "/dev/vda", "type": "disk", "uuid": ""}, "/dev/vda1": {"fstype": "ext4", "label": "", "name": "/dev/vda1", "type": "partition", "uuid": "ea711a29-e460-4879-9d70-9da99ae021f9"}, "/dev/vdb": {"fstype": "LVM2_member", "label": "", "name": "/dev/vdb", "type": "disk", "uuid": "kVYdbm-YirG-76J9-FOls-nj4q-wxvk-vFyfQv"}, "/dev/vdc": {"fstype": "", "label": "", "name": "/dev/vdc", "type": "disk", "uuid": ""}}} TASK [Read the /etc/fstab file for volume existence] *************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:19 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/fstab"], "delta": "0:00:01.003895", "end": "2020-05-27 13:57:57.007628", "rc": 0, "start": "2020-05-27 13:57:56.003733", "stderr": "", "stderr_lines": [], "stdout": "\n#\n# /etc/fstab\n# Created by anaconda on Fri Apr 26 02:02:19 2019\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=ea711a29-e460-4879-9d70-9da99ae021f9 / ext4 defaults 1 1", "stdout_lines": ["", "#", "# /etc/fstab", "# Created by anaconda on Fri Apr 26 02:02:19 2019", "#", "# 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=ea711a29-e460-4879-9d70-9da99ae021f9 / ext4 defaults 1 1"]} TASK [Verify the volumes listed in storage_pools were correctly managed] ******* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:27 [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/tmpr6sk038f/tests/test-verify-pool.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-pool.yml:5 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pool_tests": ["name", "type", "size", "members"]}, "changed": false} TASK [Verify the volumes in this pool were correctly managed] ****************** task path: /tmp/tmpr6sk038f/tests/test-verify-pool.yml:17 [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/tmpr6sk038f/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": true, "_storage_volume_tests": ["mount", "fstab", "fs", "device"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:12 included: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/foo-test1"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/foo-test1"], "delta": "0:00:00.002517", "end": "2020-05-27 13:57:57.474012", "rc": 0, "start": "2020-05-27 13:57:57.471495", "stderr": "", "stderr_lines": [], "stdout": "/dev/dm-0", "stdout_lines": ["/dev/dm-0"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Set some facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:20 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [], "storage_test_mount_expected_match_count": "0", "storage_test_mount_point_matches": []}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:31 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:40 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:48 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Unset facts] ************************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:58 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_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/tmpr6sk038f/tests/test-verify-volume-fstab.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:16 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:23 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/foo-test1"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/foo-test1"], "delta": "0:00:01.004144", "end": "2020-05-27 13:57:58.979866", "rc": 0, "start": "2020-05-27 13:57:57.975722", "stderr": "", "stderr_lines": [], "stdout": "/dev/dm-0", "stdout_lines": ["/dev/dm-0"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify fs type] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:21 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify fs label] ********************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:27 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/foo-test1"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/foo-test1"], "delta": "0:00:00.002553", "end": "2020-05-27 13:57:59.366777", "rc": 0, "start": "2020-05-27 13:57:59.364224", "stderr": "", "stderr_lines": [], "stdout": "/dev/dm-0", "stdout_lines": ["/dev/dm-0"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [See whether the device node is present] ********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:21 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "stat": {"atime": 1590587859.4339132, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "ctime": 1590587859.4339132, "dev": 6, "device_type": 64768, "executable": false, "exists": true, "gid": 6, "gr_name": "disk", "inode": 74832, "isblk": true, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mimetype": "inode/symlink", "mode": "0660", "mtime": 1590587859.4339132, "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/tmpr6sk038f/tests/test-verify-volume-device.yml:27 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:35 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:41 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "lvm"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:45 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:50 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:34 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_pool": null}, "changed": false} TASK [Verify the volumes with no pool were correctly managed] ****************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:41 TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:51 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_blkinfo": null, "storage_test_fstab": null, "storage_test_volume": null}, "changed": false} TASK [Repeat the previous invocation to verify idempotence] ******************** task path: /tmp/tmpr6sk038f/tests/tests_remove_mount.yml:46 TASK [storage : Set version specific variables] ******************************** task path: /tmp/tmpr6sk038f/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/tmp/tmpr6sk038f/vars/Fedora.yml) => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-dm", "libblockdev-lvm", "libblockdev-part", "libblockdev-mdraid"]}, "ansible_included_var_files": ["/tmp/tmpr6sk038f/vars/Fedora.yml"], "ansible_loop_var": "item", "changed": false, "item": "/tmp/tmpr6sk038f/vars/Fedora.yml"} TASK [storage : define an empty list of pools to be used in testing] *********** task path: /tmp/tmpr6sk038f/tasks/main.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [storage : define an empty list of volumes to be used in testing] ********* task path: /tmp/tmpr6sk038f/tasks/main.yml:13 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : include the appropriate provider tasks] ************************ task path: /tmp/tmpr6sk038f/tasks/main.yml:17 included: /tmp/tmpr6sk038f/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [storage : get a list of rpm packages installed on host machine] ********** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [storage : make sure blivet is available] ********************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : initialize internal facts] ************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.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 [storage : Apply defaults to pools and volumes [1/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:28 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'name': 'foo', 'disks': ['vdb'], 'volumes': [{'name': 'test1', 'size': '3g', 'mount_point': ''}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vdb"], "name": "foo", "state": "present", "type": "lvm", "volumes": [{"mount_point": "", "name": "test1", "size": "3g"}]}]}, "ansible_loop_var": "pool", "changed": false, "pool": {"disks": ["vdb"], "name": "foo", "volumes": [{"mount_point": "", "name": "test1", "size": "3g"}]}} TASK [storage : Apply defaults to pools and volumes [2/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:36 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=[{'state': 'present', 'type': 'lvm', 'name': 'foo', 'disks': ['vdb'], 'volumes': [{'name': 'test1', 'size': '3g', 'mount_point': ''}]}, {'name': 'test1', 'size': '3g', 'mount_point': ''}]) => {"ansible_facts": {"_storage_vol_defaults": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "size": 0, "state": "present", "type": "lvm"}], "_storage_vol_pools": ["foo"], "_storage_vols_no_defaults": [{"mount_point": "", "name": "test1", "size": "3g"}]}, "ansible_loop_var": "item", "changed": false, "item": [{"disks": ["vdb"], "name": "foo", "state": "present", "type": "lvm", "volumes": [{"mount_point": "", "name": "test1", "size": "3g"}]}, {"mount_point": "", "name": "test1", "size": "3g"}]} TASK [storage : Apply defaults to pools and volumes [3/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:44 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=[{'name': 'test1', 'size': '3g', 'mount_point': ''}, {'state': 'present', 'type': 'lvm', 'size': 0, 'fs_type': 'xfs', 'fs_label': '', 'fs_create_options': '', 'fs_overwrite_existing': True, 'mount_point': '', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid'}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"fs_create_options": "", "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": "test1", "pool": "foo", "size": "3g", "state": "present", "type": "lvm"}]}, "ansible_index_var": "idx", "ansible_loop_var": "item", "changed": false, "idx": 0, "item": [{"mount_point": "", "name": "test1", "size": "3g"}, {"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "size": 0, "state": "present", "type": "lvm"}]} TASK [storage : Apply defaults to pools and volumes [4/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:52 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'name': 'foo', 'disks': ['vdb'], 'volumes': [{'name': 'test1', 'size': '3g', 'mount_point': ''}]}) => {"ansible_facts": {"_storage_vols_no_defaults_by_pool": {"foo": [{"fs_create_options": "", "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": "test1", "pool": "foo", "size": "3g", "state": "present", "type": "lvm"}]}}, "ansible_loop_var": "item", "changed": false, "item": {"disks": ["vdb"], "name": "foo", "state": "present", "type": "lvm", "volumes": [{"mount_point": "", "name": "test1", "size": "3g"}]}} TASK [storage : Apply defaults to pools and volumes [5/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:61 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'name': 'foo', 'disks': ['vdb'], 'volumes': [{'name': 'test1', 'size': '3g', 'mount_point': ''}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vdb"], "name": "foo", "state": "present", "type": "lvm", "volumes": [{"fs_create_options": "", "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": "test1", "pool": "foo", "size": "3g", "state": "present", "type": "lvm"}]}]}, "ansible_index_var": "idx", "ansible_loop_var": "pool", "changed": false, "idx": 0, "pool": {"disks": ["vdb"], "name": "foo", "state": "present", "type": "lvm", "volumes": [{"mount_point": "", "name": "test1", "size": "3g"}]}} TASK [storage : Apply defaults to pools and volumes [6/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:72 TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools": [ { "disks": [ "vdb" ], "name": "foo", "state": "present", "type": "lvm", "volumes": [ { "fs_create_options": "", "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": "test1", "pool": "foo", "size": "3g", "state": "present", "type": "lvm" } ] } ] } TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_volumes": [] } TASK [storage : get required packages] ***************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": [], "mounts": [], "packages": ["lvm2", "xfsprogs"], "pools": [], "volumes": []} TASK [storage : make sure required packages are installed] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : manage the pools and volumes to match the specified state] ***** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:104 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": ["/dev/sr0", "/dev/vda1", "/dev/mapper/foo-test1", "/dev/vdc"], "mounts": [], "packages": ["e2fsprogs", "lvm2", "xfsprogs"], "pools": [{"disks": ["vdb"], "name": "foo", "state": "present", "type": "lvm", "volumes": [{"_device": "/dev/mapper/foo-test1", "_mount_id": "/dev/mapper/foo-test1", "fs_create_options": "", "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": "test1", "pool": "foo", "size": "3g", "state": "present", "type": "lvm"}]}], "volumes": []} TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:113 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "blivet_output": { "actions": [], "changed": false, "failed": false, "leaves": [ "/dev/sr0", "/dev/vda1", "/dev/mapper/foo-test1", "/dev/vdc" ], "mounts": [], "packages": [ "e2fsprogs", "lvm2", "xfsprogs" ], "pools": [ { "disks": [ "vdb" ], "name": "foo", "state": "present", "type": "lvm", "volumes": [ { "_device": "/dev/mapper/foo-test1", "_mount_id": "/dev/mapper/foo-test1", "fs_create_options": "", "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": "test1", "pool": "foo", "size": "3g", "state": "present", "type": "lvm" } ] } ], "volumes": [] } } TASK [storage : set the list of pools for test verification] ******************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:116 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": [{"disks": ["vdb"], "name": "foo", "state": "present", "type": "lvm", "volumes": [{"_device": "/dev/mapper/foo-test1", "_mount_id": "/dev/mapper/foo-test1", "fs_create_options": "", "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": "test1", "pool": "foo", "size": "3g", "state": "present", "type": "lvm"}]}]}, "changed": false} TASK [storage : set the list of volumes for test verification] ***************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:120 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : manage mounts to match the specified state] ******************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:132 TASK [storage : tell systemd to refresh its view of /etc/fstab] **************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:143 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [storage : Update facts] ************************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:153 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmpr6sk038f/tests/tests_remove_mount.yml:58 included: /tmp/tmpr6sk038f/tests/verify-role-results.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [Print out pool information] ********************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:1 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools_list": [ { "disks": [ "vdb" ], "name": "foo", "state": "present", "type": "lvm", "volumes": [ { "_device": "/dev/mapper/foo-test1", "_mount_id": "/dev/mapper/foo-test1", "fs_create_options": "", "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": "test1", "pool": "foo", "size": "3g", "state": "present", "type": "lvm" } ] } ] } TASK [Print out volume information] ******************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:6 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {} TASK [Collect info about the volumes.] ***************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:14 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "info": {"/dev/mapper/foo-test1": {"fstype": "xfs", "label": "", "name": "/dev/mapper/foo-test1", "type": "lvm", "uuid": "b003f632-27af-4a23-bee3-c4dd845ea6cc"}, "/dev/sr0": {"fstype": "iso9660", "label": "cidata", "name": "/dev/sr0", "type": "rom", "uuid": "2020-05-27-13-55-33-00"}, "/dev/vda": {"fstype": "", "label": "", "name": "/dev/vda", "type": "disk", "uuid": ""}, "/dev/vda1": {"fstype": "ext4", "label": "", "name": "/dev/vda1", "type": "partition", "uuid": "ea711a29-e460-4879-9d70-9da99ae021f9"}, "/dev/vdb": {"fstype": "LVM2_member", "label": "", "name": "/dev/vdb", "type": "disk", "uuid": "kVYdbm-YirG-76J9-FOls-nj4q-wxvk-vFyfQv"}, "/dev/vdc": {"fstype": "", "label": "", "name": "/dev/vdc", "type": "disk", "uuid": ""}}} TASK [Read the /etc/fstab file for volume existence] *************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:19 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/fstab"], "delta": "0:00:00.003094", "end": "2020-05-27 13:58:10.388176", "rc": 0, "start": "2020-05-27 13:58:10.385082", "stderr": "", "stderr_lines": [], "stdout": "\n#\n# /etc/fstab\n# Created by anaconda on Fri Apr 26 02:02:19 2019\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=ea711a29-e460-4879-9d70-9da99ae021f9 / ext4 defaults 1 1", "stdout_lines": ["", "#", "# /etc/fstab", "# Created by anaconda on Fri Apr 26 02:02:19 2019", "#", "# 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=ea711a29-e460-4879-9d70-9da99ae021f9 / ext4 defaults 1 1"]} TASK [Verify the volumes listed in storage_pools were correctly managed] ******* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:27 [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/tmpr6sk038f/tests/test-verify-pool.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-pool.yml:5 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pool_tests": ["name", "type", "size", "members"]}, "changed": false} TASK [Verify the volumes in this pool were correctly managed] ****************** task path: /tmp/tmpr6sk038f/tests/test-verify-pool.yml:17 [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/tmpr6sk038f/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": true, "_storage_volume_tests": ["mount", "fstab", "fs", "device"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:12 included: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/foo-test1"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/foo-test1"], "delta": "0:00:01.003517", "end": "2020-05-27 13:58:11.839023", "rc": 0, "start": "2020-05-27 13:58:10.835506", "stderr": "", "stderr_lines": [], "stdout": "/dev/dm-0", "stdout_lines": ["/dev/dm-0"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Set some facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:20 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [], "storage_test_mount_expected_match_count": "0", "storage_test_mount_point_matches": []}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:31 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:40 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:48 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Unset facts] ************************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:58 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_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/tmpr6sk038f/tests/test-verify-volume-fstab.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:16 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:23 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/foo-test1"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/foo-test1"], "delta": "0:00:00.002382", "end": "2020-05-27 13:58:12.348011", "rc": 0, "start": "2020-05-27 13:58:12.345629", "stderr": "", "stderr_lines": [], "stdout": "/dev/dm-0", "stdout_lines": ["/dev/dm-0"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify fs type] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:21 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify fs label] ********************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:27 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/foo-test1"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/foo-test1"], "delta": "0:00:00.002648", "end": "2020-05-27 13:58:12.725811", "rc": 0, "start": "2020-05-27 13:58:12.723163", "stderr": "", "stderr_lines": [], "stdout": "/dev/dm-0", "stdout_lines": ["/dev/dm-0"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:15 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [See whether the device node is present] ********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:21 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "stat": {"atime": 1590587859.4339132, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "ctime": 1590587859.4339132, "dev": 6, "device_type": 64768, "executable": false, "exists": true, "gid": 6, "gr_name": "disk", "inode": 74832, "isblk": true, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mimetype": "inode/symlink", "mode": "0660", "mtime": 1590587859.4339132, "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/tmpr6sk038f/tests/test-verify-volume-device.yml:27 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:35 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:41 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "lvm"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:45 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:50 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:34 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_pool": null}, "changed": false} TASK [Verify the volumes with no pool were correctly managed] ****************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:41 TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:51 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_blkinfo": null, "storage_test_fstab": null, "storage_test_volume": null}, "changed": false} TASK [Clean up] **************************************************************** task path: /tmp/tmpr6sk038f/tests/tests_remove_mount.yml:60 TASK [storage : Set version specific variables] ******************************** task path: /tmp/tmpr6sk038f/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/tmp/tmpr6sk038f/vars/Fedora.yml) => {"ansible_facts": {"blivet_package_list": ["python3-blivet", "libblockdev-dm", "libblockdev-lvm", "libblockdev-part", "libblockdev-mdraid"]}, "ansible_included_var_files": ["/tmp/tmpr6sk038f/vars/Fedora.yml"], "ansible_loop_var": "item", "changed": false, "item": "/tmp/tmpr6sk038f/vars/Fedora.yml"} TASK [storage : define an empty list of pools to be used in testing] *********** task path: /tmp/tmpr6sk038f/tasks/main.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": []}, "changed": false} TASK [storage : define an empty list of volumes to be used in testing] ********* task path: /tmp/tmpr6sk038f/tasks/main.yml:13 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : include the appropriate provider tasks] ************************ task path: /tmp/tmpr6sk038f/tasks/main.yml:17 included: /tmp/tmpr6sk038f/tasks/main-blivet.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [storage : get a list of rpm packages installed on host machine] ********** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:2 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [storage : make sure blivet is available] ********************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:7 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : initialize internal facts] ************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.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 [storage : Apply defaults to pools and volumes [1/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:28 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'name': 'foo', 'disks': ['vdb'], 'state': 'absent', 'volumes': [{'name': 'test1', 'size': '3g', 'mount_point': ''}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vdb"], "name": "foo", "state": "absent", "type": "lvm", "volumes": [{"mount_point": "", "name": "test1", "size": "3g"}]}]}, "ansible_loop_var": "pool", "changed": false, "pool": {"disks": ["vdb"], "name": "foo", "state": "absent", "volumes": [{"mount_point": "", "name": "test1", "size": "3g"}]}} TASK [storage : Apply defaults to pools and volumes [2/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:36 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=[{'state': 'absent', 'type': 'lvm', 'name': 'foo', 'disks': ['vdb'], 'volumes': [{'name': 'test1', 'size': '3g', 'mount_point': ''}]}, {'name': 'test1', 'size': '3g', 'mount_point': ''}]) => {"ansible_facts": {"_storage_vol_defaults": [{"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "size": 0, "state": "present", "type": "lvm"}], "_storage_vol_pools": ["foo"], "_storage_vols_no_defaults": [{"mount_point": "", "name": "test1", "size": "3g"}]}, "ansible_loop_var": "item", "changed": false, "item": [{"disks": ["vdb"], "name": "foo", "state": "absent", "type": "lvm", "volumes": [{"mount_point": "", "name": "test1", "size": "3g"}]}, {"mount_point": "", "name": "test1", "size": "3g"}]} TASK [storage : Apply defaults to pools and volumes [3/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:44 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=[{'name': 'test1', 'size': '3g', 'mount_point': ''}, {'state': 'present', 'type': 'lvm', 'size': 0, 'fs_type': 'xfs', 'fs_label': '', 'fs_create_options': '', 'fs_overwrite_existing': True, 'mount_point': '', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid'}]) => {"ansible_facts": {"_storage_vols_w_defaults": [{"fs_create_options": "", "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": "test1", "pool": "foo", "size": "3g", "state": "present", "type": "lvm"}]}, "ansible_index_var": "idx", "ansible_loop_var": "item", "changed": false, "idx": 0, "item": [{"mount_point": "", "name": "test1", "size": "3g"}, {"fs_create_options": "", "fs_label": "", "fs_overwrite_existing": true, "fs_type": "xfs", "mount_check": 0, "mount_device_identifier": "uuid", "mount_options": "defaults", "mount_passno": 0, "mount_point": "", "size": 0, "state": "present", "type": "lvm"}]} TASK [storage : Apply defaults to pools and volumes [4/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:52 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'absent', 'type': 'lvm', 'name': 'foo', 'disks': ['vdb'], 'volumes': [{'name': 'test1', 'size': '3g', 'mount_point': ''}]}) => {"ansible_facts": {"_storage_vols_no_defaults_by_pool": {"foo": [{"fs_create_options": "", "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": "test1", "pool": "foo", "size": "3g", "state": "present", "type": "lvm"}]}}, "ansible_loop_var": "item", "changed": false, "item": {"disks": ["vdb"], "name": "foo", "state": "absent", "type": "lvm", "volumes": [{"mount_point": "", "name": "test1", "size": "3g"}]}} TASK [storage : Apply defaults to pools and volumes [5/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:61 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'absent', 'type': 'lvm', 'name': 'foo', 'disks': ['vdb'], 'volumes': [{'name': 'test1', 'size': '3g', 'mount_point': ''}]}) => {"ansible_facts": {"_storage_pools": [{"disks": ["vdb"], "name": "foo", "state": "absent", "type": "lvm", "volumes": [{"fs_create_options": "", "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": "test1", "pool": "foo", "size": "3g", "state": "present", "type": "lvm"}]}]}, "ansible_index_var": "idx", "ansible_loop_var": "pool", "changed": false, "idx": 0, "pool": {"disks": ["vdb"], "name": "foo", "state": "absent", "type": "lvm", "volumes": [{"mount_point": "", "name": "test1", "size": "3g"}]}} TASK [storage : Apply defaults to pools and volumes [6/6]] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:72 TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:84 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools": [ { "disks": [ "vdb" ], "name": "foo", "state": "absent", "type": "lvm", "volumes": [ { "fs_create_options": "", "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": "test1", "pool": "foo", "size": "3g", "state": "present", "type": "lvm" } ] } ] } TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:87 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_volumes": [] } TASK [storage : get required packages] ***************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:90 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": [], "mounts": [], "packages": [], "pools": [], "volumes": []} TASK [storage : make sure required packages are installed] ********************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:99 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [storage : manage the pools and volumes to match the specified state] ***** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:104 changed: [/cache/Fedora-Cloud-Base-30-1.2.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/vdb", "fs_type": "lvmpv"}], "changed": true, "leaves": ["/dev/sr0", "/dev/vda1", "/dev/vdb", "/dev/vdc"], "mounts": [], "packages": ["e2fsprogs"], "pools": [{"disks": ["vdb"], "name": "foo", "state": "absent", "type": "lvm", "volumes": [{"_device": "/dev/mapper/foo-test1", "_mount_id": "/dev/mapper/foo-test1", "fs_create_options": "", "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": "test1", "pool": "foo", "size": "3g", "state": "present", "type": "lvm"}]}], "volumes": []} TASK [storage : debug] ********************************************************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:113 ok: [/cache/Fedora-Cloud-Base-30-1.2.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/vdb", "fs_type": "lvmpv" } ], "changed": true, "failed": false, "leaves": [ "/dev/sr0", "/dev/vda1", "/dev/vdb", "/dev/vdc" ], "mounts": [], "packages": [ "e2fsprogs" ], "pools": [ { "disks": [ "vdb" ], "name": "foo", "state": "absent", "type": "lvm", "volumes": [ { "_device": "/dev/mapper/foo-test1", "_mount_id": "/dev/mapper/foo-test1", "fs_create_options": "", "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": "test1", "pool": "foo", "size": "3g", "state": "present", "type": "lvm" } ] } ], "volumes": [] } } TASK [storage : set the list of pools for test verification] ******************* task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:116 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": [{"disks": ["vdb"], "name": "foo", "state": "absent", "type": "lvm", "volumes": [{"_device": "/dev/mapper/foo-test1", "_mount_id": "/dev/mapper/foo-test1", "fs_create_options": "", "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": "test1", "pool": "foo", "size": "3g", "state": "present", "type": "lvm"}]}]}, "changed": false} TASK [storage : set the list of volumes for test verification] ***************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:120 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : manage mounts to match the specified state] ******************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:132 TASK [storage : tell systemd to refresh its view of /etc/fstab] **************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:143 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [storage : Update facts] ************************************************** task path: /tmp/tmpr6sk038f/tasks/main-blivet.yml:153 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] TASK [include_tasks] *********************************************************** task path: /tmp/tmpr6sk038f/tests/tests_remove_mount.yml:73 included: /tmp/tmpr6sk038f/tests/verify-role-results.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [Print out pool information] ********************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:1 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools_list": [ { "disks": [ "vdb" ], "name": "foo", "state": "absent", "type": "lvm", "volumes": [ { "_device": "/dev/mapper/foo-test1", "_mount_id": "/dev/mapper/foo-test1", "fs_create_options": "", "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": "test1", "pool": "foo", "size": "3g", "state": "present", "type": "lvm" } ] } ] } TASK [Print out volume information] ******************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:6 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {} TASK [Collect info about the volumes.] ***************************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:14 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "info": {"/dev/sr0": {"fstype": "iso9660", "label": "cidata", "name": "/dev/sr0", "type": "rom", "uuid": "2020-05-27-13-55-33-00"}, "/dev/vda": {"fstype": "", "label": "", "name": "/dev/vda", "type": "disk", "uuid": ""}, "/dev/vda1": {"fstype": "ext4", "label": "", "name": "/dev/vda1", "type": "partition", "uuid": "ea711a29-e460-4879-9d70-9da99ae021f9"}, "/dev/vdb": {"fstype": "", "label": "", "name": "/dev/vdb", "type": "disk", "uuid": ""}, "/dev/vdc": {"fstype": "", "label": "", "name": "/dev/vdc", "type": "disk", "uuid": ""}}} TASK [Read the /etc/fstab file for volume existence] *************************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:19 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/fstab"], "delta": "0:00:01.003953", "end": "2020-05-27 13:58:25.386400", "rc": 0, "start": "2020-05-27 13:58:24.382447", "stderr": "", "stderr_lines": [], "stdout": "\n#\n# /etc/fstab\n# Created by anaconda on Fri Apr 26 02:02:19 2019\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=ea711a29-e460-4879-9d70-9da99ae021f9 / ext4 defaults 1 1", "stdout_lines": ["", "#", "# /etc/fstab", "# Created by anaconda on Fri Apr 26 02:02:19 2019", "#", "# 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=ea711a29-e460-4879-9d70-9da99ae021f9 / ext4 defaults 1 1"]} TASK [Verify the volumes listed in storage_pools were correctly managed] ******* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:27 [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/tmpr6sk038f/tests/test-verify-pool.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-pool.yml:5 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pool_tests": ["name", "type", "size", "members"]}, "changed": false} TASK [Verify the volumes in this pool were correctly managed] ****************** task path: /tmp/tmpr6sk038f/tests/test-verify-pool.yml:17 [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/tmpr6sk038f/tests/test-verify-volume.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [set_fact] **************************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": false, "_storage_volume_tests": ["mount", "fstab", "fs", "device"]}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:12 included: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 included: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/foo-test1"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/foo-test1"], "delta": "0:00:00.004104", "end": "2020-05-27 13:58:25.882089", "rc": 0, "start": "2020-05-27 13:58:25.877985", "stderr": "", "stderr_lines": [], "stdout": "/dev/mapper/foo-test1", "stdout_lines": ["/dev/mapper/foo-test1"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:15 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": {"changed": true, "cmd": ["realpath", "/dev/mapper/foo-test1"], "delta": "0:00:00.004104", "end": "2020-05-27 13:58:25.882089", "failed": false, "rc": 0, "start": "2020-05-27 13:58:25.877985", "stderr": "", "stderr_lines": [], "stdout": "/dev/mapper/foo-test1", "stdout_lines": ["/dev/mapper/foo-test1"]}}, "changed": false} TASK [Set some facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:20 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": [], "storage_test_mount_expected_match_count": "0", "storage_test_mount_point_matches": []}, "changed": false} TASK [Verify the current mount state by device] ******************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:31 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the current mount state by mount point] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:40 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Verify the mount fs type] ************************************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:48 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Unset facts] ************************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-mount.yml:58 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_mount_device_matches": null, "storage_test_mount_expected_match_count": null, "storage_test_mount_point_matches": null}, "changed": false} TASK [Set some variables for fstab checking] *********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_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/tmpr6sk038f/tests/test-verify-volume-fstab.yml:9 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the fstab mount point] ******************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:16 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up variables] ****************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fstab.yml:23 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_fstab_expected_matches": null, "storage_test_fstab_id_matches": null, "storage_test_fstab_mount_point_matches": null}, "changed": false} TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/foo-test1"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/foo-test1"], "delta": "0:00:00.002589", "end": "2020-05-27 13:58:26.425627", "rc": 0, "start": "2020-05-27 13:58:26.423038", "stderr": "", "stderr_lines": [], "stdout": "/dev/mapper/foo-test1", "stdout_lines": ["/dev/mapper/foo-test1"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:15 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": {"changed": true, "cmd": ["realpath", "/dev/mapper/foo-test1"], "delta": "0:00:00.002589", "end": "2020-05-27 13:58:26.425627", "failed": false, "rc": 0, "start": "2020-05-27 13:58:26.423038", "stderr": "", "stderr_lines": [], "stdout": "/dev/mapper/foo-test1", "stdout_lines": ["/dev/mapper/foo-test1"]}}, "changed": false} TASK [Verify fs type] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:21 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify fs label] ********************************************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-fs.yml:27 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [(1/3) Process device path (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:6 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": "/dev/mapper/foo-test1"}, "changed": false} TASK [(2/3) Process device path (get device file info)] ************************ task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:10 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["realpath", "/dev/mapper/foo-test1"], "delta": "0:00:00.002396", "end": "2020-05-27 13:58:26.823195", "rc": 0, "start": "2020-05-27 13:58:26.820799", "stderr": "", "stderr_lines": [], "stdout": "/dev/mapper/foo-test1", "stdout_lines": ["/dev/mapper/foo-test1"]} TASK [(3/3) Process device path (replace device with its target if it is a symlink)] *** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:15 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_device_path": {"changed": true, "cmd": ["realpath", "/dev/mapper/foo-test1"], "delta": "0:00:00.002396", "end": "2020-05-27 13:58:26.823195", "failed": false, "rc": 0, "start": "2020-05-27 13:58:26.820799", "stderr": "", "stderr_lines": [], "stdout": "/dev/mapper/foo-test1", "stdout_lines": ["/dev/mapper/foo-test1"]}}, "changed": false} TASK [See whether the device node is present] ********************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:21 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "stat": {"exists": false}} TASK [Verify the presence/absence of the device node] ************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:27 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Make sure we got info about this volume] ********************************* task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:35 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [(1/2) Process volume type (set initial value)] *************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:41 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"st_volume_type": "lvm"}, "changed": false} TASK [(2/2) Process volume type (get RAID value)] ****************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:45 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify the volume's device type] ***************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume-device.yml:50 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Clean up facts] ********************************************************** task path: /tmp/tmpr6sk038f/tests/test-verify-volume.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_test_volume_present": null}, "changed": false} TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:34 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_pool": null}, "changed": false} TASK [Verify the volumes with no pool were correctly managed] ****************** task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:41 TASK [Clean up variable namespace] ********************************************* task path: /tmp/tmpr6sk038f/tests/verify-role-results.yml:51 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_test_blkinfo": null, "storage_test_fstab": null, "storage_test_volume": null}, "changed": false} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 : ok=245 changed=17 unreachable=0 failed=0 skipped=55 rescued=0 ignored=0