+ cd /tmp/tmpshcwqol8/tests; TEST_SUBJECTS=/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_storage-25-db52957-fedora-30-cqpxlans/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmpshcwqol8/_setup.yml /tmp/tmpshcwqol8/tests/tests_change_disk_fs.yml ansible-playbook 2.8.0 config file = /home/till/.ansible.cfg configured module search path = ['/home/till/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.7/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 3.7.3 (default, May 11 2019, 00:38:04) [GCC 9.1.1 20190503 (Red Hat 9.1.1-1)] Using /home/till/.ansible.cfg as config file PLAYBOOK: _setup.yml *************************************************************************************************************************************************************************************** 1 plays in /tmp/tmpshcwqol8/_setup.yml PLAY [Fail when only localhost is available] *************************************************************************************************************************************************************** META: ran handlers TASK [debug] *********************************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/_setup.yml:5 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "groups": { "all": [ "/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2" ], "localhost": [ "/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2" ], "subjects": [ "/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2" ], "ungrouped": [] } } TASK [fail] ************************************************************************************************************************************************************************************************ task path: /tmp/tmpshcwqol8/_setup.yml:7 skipping: [/home/till/lsr-test-harness-files/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 ************************************************************************************************************************************************************************************************* /home/till/lsr-test-harness-files/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/tmpshcwqol8/tests/tests_change_disk_fs.yml PLAY [all] ************************************************************************************************************************************************************************************************* META: ran handlers META: ran handlers META: ran handlers PLAY RECAP ************************************************************************************************************************************************************************************************* /home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 : ok=1 changed=0 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 + cd /tmp/tmpshcwqol8/tests; TEST_SUBJECTS=/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_storage-25-db52957-fedora-30-cqpxlans/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmpshcwqol8/_setup.yml /tmp/tmpshcwqol8/tests/tests_change_disk_mount.yml ansible-playbook 2.8.0 config file = /home/till/.ansible.cfg configured module search path = ['/home/till/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.7/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 3.7.3 (default, May 11 2019, 00:38:04) [GCC 9.1.1 20190503 (Red Hat 9.1.1-1)] Using /home/till/.ansible.cfg as config file PLAYBOOK: _setup.yml *************************************************************************************************************************************************************************************** 1 plays in /tmp/tmpshcwqol8/_setup.yml PLAY [Fail when only localhost is available] *************************************************************************************************************************************************************** META: ran handlers TASK [debug] *********************************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/_setup.yml:5 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "groups": { "all": [ "/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2" ], "localhost": [ "/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2" ], "subjects": [ "/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2" ], "ungrouped": [] } } TASK [fail] ************************************************************************************************************************************************************************************************ task path: /tmp/tmpshcwqol8/_setup.yml:7 skipping: [/home/till/lsr-test-harness-files/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 ************************************************************************************************************************************************************************************************* /home/till/lsr-test-harness-files/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/tmpshcwqol8/tests/tests_change_disk_mount.yml PLAY [all] ************************************************************************************************************************************************************************************************* META: ran handlers META: ran handlers META: ran handlers PLAY RECAP ************************************************************************************************************************************************************************************************* /home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 : ok=1 changed=0 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 + cd /tmp/tmpshcwqol8/tests; TEST_SUBJECTS=/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_storage-25-db52957-fedora-30-cqpxlans/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmpshcwqol8/_setup.yml /tmp/tmpshcwqol8/tests/tests_change_fs.yml ansible-playbook 2.8.0 config file = /home/till/.ansible.cfg configured module search path = ['/home/till/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.7/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 3.7.3 (default, May 11 2019, 00:38:04) [GCC 9.1.1 20190503 (Red Hat 9.1.1-1)] Using /home/till/.ansible.cfg as config file PLAYBOOK: _setup.yml *************************************************************************************************************************************************************************************** 1 plays in /tmp/tmpshcwqol8/_setup.yml PLAY [Fail when only localhost is available] *************************************************************************************************************************************************************** META: ran handlers TASK [debug] *********************************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/_setup.yml:5 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "groups": { "all": [ "/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2" ], "localhost": [ "/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2" ], "subjects": [ "/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2" ], "ungrouped": [] } } TASK [fail] ************************************************************************************************************************************************************************************************ task path: /tmp/tmpshcwqol8/_setup.yml:7 skipping: [/home/till/lsr-test-harness-files/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 ************************************************************************************************************************************************************************************************* /home/till/lsr-test-harness-files/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/tmpshcwqol8/tests/tests_change_fs.yml PLAY [all] ************************************************************************************************************************************************************************************************* TASK [Gathering Facts] ************************************************************************************************************************************************************************************* task path: /tmp/tmpshcwqol8/tests/tests_change_fs.yml:2 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"ansible_all_ipv4_addresses": ["10.0.2.15"], "ansible_all_ipv6_addresses": ["fec0::5054:ff:fe12:3456", "fe80::5054:ff:fe12:3456"], "ansible_apparmor": {"status": "disabled"}, "ansible_architecture": "x86_64", "ansible_bios_date": "04/01/2014", "ansible_bios_version": "1.12.0-2.fc30", "ansible_cmdline": {"BOOT_IMAGE": "(hd0,msdos1)/boot/vmlinuz-5.0.9-301.fc30.x86_64", "console": "ttyS0,115200n8", "net.ifnames": "0", "no_timer_check": true, "ro": true, "root": "UUID=ea711a29-e460-4879-9d70-9da99ae021f9"}, "ansible_date_time": {"date": "2019-05-25", "day": "25", "epoch": "1558791540", "hour": "13", "iso8601": "2019-05-25T13:39:00Z", "iso8601_basic": "20190525T133900895645", "iso8601_basic_short": "20190525T133900", "iso8601_micro": "2019-05-25T13:39:00.895889Z", "minute": "39", "month": "05", "second": "00", "time": "13:39:00", "tz": "UTC", "tz_offset": "+0000", "weekday": "Saturday", "weekday_number": "6", "weeknumber": "20", "year": "2019"}, "ansible_default_ipv4": {"address": "10.0.2.15", "alias": "eth0", "broadcast": "10.0.2.255", "gateway": "10.0.2.2", "interface": "eth0", "macaddress": "52:54:00:12:34:56", "mtu": 1500, "netmask": "255.255.255.0", "network": "10.0.2.0", "type": "ether"}, "ansible_default_ipv6": {"address": "fec0::5054:ff:fe12:3456", "gateway": "fe80::2", "interface": "eth0", "macaddress": "52:54:00:12:34:56", "mtu": 1500, "prefix": "64", "scope": "site", "type": "ether"}, "ansible_device_links": {"ids": {"sr0": ["ata-QEMU_DVD-ROM_QM00003"]}, "labels": {"sr0": ["cidata"]}, "masters": {}, "uuids": {"sr0": ["2019-05-25-15-38-36-00"], "vda1": ["ea711a29-e460-4879-9d70-9da99ae021f9"]}}, "ansible_devices": {"sr0": {"holders": [], "host": "", "links": {"ids": ["ata-QEMU_DVD-ROM_QM00003"], "labels": ["cidata"], "masters": [], "uuids": ["2019-05-25-15-38-36-00"]}, "model": "QEMU DVD-ROM", "partitions": {}, "removable": "1", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "mq-deadline", "sectors": "728", "sectorsize": "2048", "size": "364.00 KB", "support_discard": "0", "vendor": "QEMU", "virtual": 1}, "vda": {"holders": [], "host": "", "links": {"ids": [], "labels": [], "masters": [], "uuids": []}, "model": null, "partitions": {"vda1": {"holders": [], "links": {"ids": [], "labels": [], "masters": [], "uuids": ["ea711a29-e460-4879-9d70-9da99ae021f9"]}, "sectors": "8386560", "sectorsize": 512, "size": "4.00 GB", "start": "2048", "uuid": "ea711a29-e460-4879-9d70-9da99ae021f9"}}, "removable": "0", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "mq-deadline", "sectors": "8388608", "sectorsize": "512", "size": "4.00 GB", "support_discard": "0", "vendor": "0x1af4", "virtual": 1}, "vdb": {"holders": [], "host": "", "links": {"ids": [], "labels": [], "masters": [], "uuids": []}, "model": null, "partitions": {}, "removable": "0", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "mq-deadline", "sectors": "20971520", "sectorsize": "512", "size": "10.00 GB", "support_discard": "0", "vendor": "0x1af4", "virtual": 1}, "vdc": {"holders": [], "host": "", "links": {"ids": [], "labels": [], "masters": [], "uuids": []}, "model": null, "partitions": {}, "removable": "0", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "mq-deadline", "sectors": "20971520", "sectorsize": "512", "size": "10.00 GB", "support_discard": "0", "vendor": "0x1af4", "virtual": 1}}, "ansible_distribution": "Fedora", "ansible_distribution_file_parsed": true, "ansible_distribution_file_path": "/etc/redhat-release", "ansible_distribution_file_variety": "RedHat", "ansible_distribution_major_version": "30", "ansible_distribution_release": "", "ansible_distribution_version": "30", "ansible_dns": {"nameservers": ["10.0.2.3"]}, "ansible_domain": "", "ansible_effective_group_id": 0, "ansible_effective_user_id": 0, "ansible_env": {"DBUS_SESSION_BUS_ADDRESS": "unix:path=/run/user/0/bus", "HOME": "/root", "LANG": "en_US.UTF-8", "LESSOPEN": "||/usr/bin/lesspipe.sh %s", "LOGNAME": "root", "LS_COLORS": "rs=0:di=38;5;33:ln=38;5;51:mh=00:pi=40;38;5;11:so=38;5;13:do=38;5;5:bd=48;5;232;38;5;11:cd=48;5;232;38;5;3:or=48;5;232;38;5;9:mi=01;05;37;41:su=48;5;196;38;5;15:sg=48;5;11;38;5;16:ca=48;5;196;38;5;226:tw=48;5;10;38;5;16:ow=48;5;10;38;5;21:st=48;5;21;38;5;15:ex=38;5;40:*.tar=38;5;9:*.tgz=38;5;9:*.arc=38;5;9:*.arj=38;5;9:*.taz=38;5;9:*.lha=38;5;9:*.lz4=38;5;9:*.lzh=38;5;9:*.lzma=38;5;9:*.tlz=38;5;9:*.txz=38;5;9:*.tzo=38;5;9:*.t7z=38;5;9:*.zip=38;5;9:*.z=38;5;9:*.dz=38;5;9:*.gz=38;5;9:*.lrz=38;5;9:*.lz=38;5;9:*.lzo=38;5;9:*.xz=38;5;9:*.zst=38;5;9:*.tzst=38;5;9:*.bz2=38;5;9:*.bz=38;5;9:*.tbz=38;5;9:*.tbz2=38;5;9:*.tz=38;5;9:*.deb=38;5;9:*.rpm=38;5;9:*.jar=38;5;9:*.war=38;5;9:*.ear=38;5;9:*.sar=38;5;9:*.rar=38;5;9:*.alz=38;5;9:*.ace=38;5;9:*.zoo=38;5;9:*.cpio=38;5;9:*.7z=38;5;9:*.rz=38;5;9:*.cab=38;5;9:*.wim=38;5;9:*.swm=38;5;9:*.dwm=38;5;9:*.esd=38;5;9:*.jpg=38;5;13:*.jpeg=38;5;13:*.mjpg=38;5;13:*.mjpeg=38;5;13:*.gif=38;5;13:*.bmp=38;5;13:*.pbm=38;5;13:*.pgm=38;5;13:*.ppm=38;5;13:*.tga=38;5;13:*.xbm=38;5;13:*.xpm=38;5;13:*.tif=38;5;13:*.tiff=38;5;13:*.png=38;5;13:*.svg=38;5;13:*.svgz=38;5;13:*.mng=38;5;13:*.pcx=38;5;13:*.mov=38;5;13:*.mpg=38;5;13:*.mpeg=38;5;13:*.m2v=38;5;13:*.mkv=38;5;13:*.webm=38;5;13:*.ogm=38;5;13:*.mp4=38;5;13:*.m4v=38;5;13:*.mp4v=38;5;13:*.vob=38;5;13:*.qt=38;5;13:*.nuv=38;5;13:*.wmv=38;5;13:*.asf=38;5;13:*.rm=38;5;13:*.rmvb=38;5;13:*.flc=38;5;13:*.avi=38;5;13:*.fli=38;5;13:*.flv=38;5;13:*.gl=38;5;13:*.dl=38;5;13:*.xcf=38;5;13:*.xwd=38;5;13:*.yuv=38;5;13:*.cgm=38;5;13:*.emf=38;5;13:*.ogv=38;5;13:*.ogx=38;5;13:*.aac=38;5;45:*.au=38;5;45:*.flac=38;5;45:*.m4a=38;5;45:*.mid=38;5;45:*.midi=38;5;45:*.mka=38;5;45:*.mp3=38;5;45:*.mpc=38;5;45:*.ogg=38;5;45:*.ra=38;5;45:*.wav=38;5;45:*.oga=38;5;45:*.opus=38;5;45:*.spx=38;5;45:*.xspf=38;5;45:", "MAIL": "/var/mail/root", "PATH": "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin", "PWD": "/root", "SELINUX_LEVEL_REQUESTED": "", "SELINUX_ROLE_REQUESTED": "", "SELINUX_USE_CURRENT_RANGE": "", "SHELL": "/bin/bash", "SHLVL": "1", "SSH_CLIENT": "10.0.2.2 36470 22", "SSH_CONNECTION": "10.0.2.2 36470 10.0.2.15 22", "SSH_TTY": "/dev/pts/0", "TERM": "xterm-256color", "USER": "root", "XDG_RUNTIME_DIR": "/run/user/0", "XDG_SESSION_CLASS": "user", "XDG_SESSION_ID": "1", "XDG_SESSION_TYPE": "tty", "_": "/usr/bin/python3"}, "ansible_eth0": {"active": true, "device": "eth0", "ipv4": {"address": "10.0.2.15", "broadcast": "10.0.2.255", "netmask": "255.255.255.0", "network": "10.0.2.0"}, "ipv6": [{"address": "fec0::5054:ff:fe12:3456", "prefix": "64", "scope": "site"}, {"address": "fe80::5054:ff:fe12:3456", "prefix": "64", "scope": "link"}], "macaddress": "52:54:00:12:34:56", "module": "virtio_net", "mtu": 1500, "pciid": "virtio0", "promisc": false, "speed": -1, "type": "ether"}, "ansible_fibre_channel_wwn": [], "ansible_fips": false, "ansible_form_factor": "Other", "ansible_fqdn": "ibm-p8-kvm-03-guest-02", "ansible_hostname": "ibm-p8-kvm-03-guest-02", "ansible_hostnqn": "", "ansible_interfaces": ["lo", "eth0"], "ansible_is_chroot": false, "ansible_iscsi_iqn": "", "ansible_kernel": "5.0.9-301.fc30.x86_64", "ansible_lo": {"active": true, "device": "lo", "ipv4": {"address": "127.0.0.1", "broadcast": "host", "netmask": "255.0.0.0", "network": "127.0.0.0"}, "ipv6": [{"address": "::1", "prefix": "128", "scope": "host"}], "mtu": 65536, "promisc": false, "type": "loopback"}, "ansible_local": {}, "ansible_lsb": {}, "ansible_machine": "x86_64", "ansible_machine_id": "18b583b4f6f145aea681b8e421a142a5", "ansible_memfree_mb": 647, "ansible_memory_mb": {"nocache": {"free": 840, "used": 142}, "real": {"free": 647, "total": 982, "used": 335}, "swap": {"cached": 0, "free": 0, "total": 0, "used": 0}}, "ansible_memtotal_mb": 982, "ansible_mounts": [{"block_available": 731960, "block_size": 4096, "block_total": 1015472, "block_used": 283512, "device": "/dev/vda1", "fstype": "ext4", "inode_available": 233659, "inode_total": 262144, "inode_used": 28485, "mount": "/", "options": "rw,seclabel,relatime", "size_available": 2998108160, "size_total": 4159373312, "uuid": "ea711a29-e460-4879-9d70-9da99ae021f9"}], "ansible_nodename": "ibm-p8-kvm-03-guest-02", "ansible_os_family": "RedHat", "ansible_pkg_mgr": "dnf", "ansible_proc_cmdline": {"BOOT_IMAGE": "(hd0,msdos1)/boot/vmlinuz-5.0.9-301.fc30.x86_64", "console": ["tty1", "ttyS0,115200n8"], "net.ifnames": "0", "no_timer_check": true, "ro": true, "root": "UUID=ea711a29-e460-4879-9d70-9da99ae021f9"}, "ansible_processor": ["0", "GenuineIntel", "Intel(R) Core(TM) i7-7600U CPU @ 2.80GHz", "1", "GenuineIntel", "Intel(R) Core(TM) i7-7600U CPU @ 2.80GHz", "2", "GenuineIntel", "Intel(R) Core(TM) i7-7600U CPU @ 2.80GHz"], "ansible_processor_cores": 1, "ansible_processor_count": 3, "ansible_processor_threads_per_core": 1, "ansible_processor_vcpus": 3, "ansible_product_name": "Standard PC (i440FX + PIIX, 1996)", "ansible_product_serial": "NA", "ansible_product_uuid": "NA", "ansible_product_version": "pc-i440fx-3.1", "ansible_python": {"executable": "/usr/bin/python3", "has_sslcontext": true, "type": "cpython", "version": {"major": 3, "micro": 3, "minor": 7, "releaselevel": "final", "serial": 0}, "version_info": [3, 7, 3, "final", 0]}, "ansible_python_version": "3.7.3", "ansible_real_group_id": 0, "ansible_real_user_id": 0, "ansible_selinux": {"config_mode": "enforcing", "mode": "enforcing", "policyvers": 31, "status": "enabled", "type": "targeted"}, "ansible_selinux_python_present": true, "ansible_service_mgr": "systemd", "ansible_ssh_host_key_ecdsa_public": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBED+nhxtHFIrIqWNbZWaJa2ej6Bp1vUGk9x4sYQ7n68AuMV7UnrfrpSj0lscftuwWFbyzX1d29tbHFE8N71cIKA=", "ansible_ssh_host_key_ed25519_public": "AAAAC3NzaC1lZDI1NTE5AAAAIN1w1MI8oGImLHJ1/9Vwg16JxSIUT0EwZBT5sqCNtklK", "ansible_ssh_host_key_rsa_public": "AAAAB3NzaC1yc2EAAAADAQABAAABAQCxP9uCD+F/CcMuTLCaHNczI8WmuHebPdADcmqAO83i+RFzPAa2Oai1v0SKn4ASsVvdQLG9D8t9dcGWfOXtxSyHo2aHOMAf3aEOhkTtapBrJOC5YGXNcrpmzR/HOEfmEs10uMXlPDxTnaETEEtbFxOWsALpPNVfaBz3P0EwYgfYSPR+ek/1YUrLnlceSai/tMj1U3YLqdl15cn9ZoIDIXE+D7KI2UU4eaiVxs04uHwVUTukx+4lub3hASMEimmIBwCKX0ljUU0bTfqbavcNqmIH8j3QNxCFCvZlPznIZyvil7pDlLWMIp8ZLWouy1rXK9/ZSIpbQOp847gNUJxnC36/", "ansible_swapfree_mb": 0, "ansible_swaptotal_mb": 0, "ansible_system": "Linux", "ansible_system_capabilities": ["cap_chown", "cap_dac_override", "cap_dac_read_search", "cap_fowner", "cap_fsetid", "cap_kill", "cap_setgid", "cap_setuid", "cap_setpcap", "cap_linux_immutable", "cap_net_bind_service", "cap_net_broadcast", "cap_net_admin", "cap_net_raw", "cap_ipc_lock", "cap_ipc_owner", "cap_sys_module", "cap_sys_rawio", "cap_sys_chroot", "cap_sys_ptrace", "cap_sys_pacct", "cap_sys_admin", "cap_sys_boot", "cap_sys_nice", "cap_sys_resource", "cap_sys_time", "cap_sys_tty_config", "cap_mknod", "cap_lease", "cap_audit_write", "cap_audit_control", "cap_setfcap", "cap_mac_override", "cap_mac_admin", "cap_syslog", "cap_wake_alarm", "cap_block_suspend", "cap_audit_read+ep"], "ansible_system_capabilities_enforced": "True", "ansible_system_vendor": "QEMU", "ansible_uptime_seconds": 22, "ansible_user_dir": "/root", "ansible_user_gecos": "root", "ansible_user_gid": 0, "ansible_user_id": "root", "ansible_user_shell": "/bin/bash", "ansible_user_uid": 0, "ansible_userspace_architecture": "x86_64", "ansible_userspace_bits": "64", "ansible_virtualization_role": "guest", "ansible_virtualization_type": "kvm", "gather_subset": ["all"], "module_setup": true}, "changed": false} META: ran handlers TASK [include_role : storage] ****************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/tests_change_fs.yml:10 TASK [storage : define an empty list of pools to be used in testing] *************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main.yml:2 ok: [/home/till/lsr-test-harness-files/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/tmpshcwqol8/tasks/main.yml:6 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : include the appropriate backend tasks] ***************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main.yml:10 included: /tmp/tmpshcwqol8/tasks/main-blivet.yml for /home/till/lsr-test-harness-files/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/tmpshcwqol8/tasks/main-blivet.yml:2 skipping: [/home/till/lsr-test-harness-files/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/tmpshcwqol8/tasks/main-blivet.yml:7 changed: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: python3-blivet", "Installed: libblockdev-kbd-2.21-3.fc30.x86_64", "Installed: lvm2-2.02.183-3.fc30.x86_64", "Installed: libblockdev-loop-2.21-3.fc30.x86_64", "Installed: libblockdev-lvm-2.21-3.fc30.x86_64", "Installed: lvm2-libs-2.02.183-3.fc30.x86_64", "Installed: gdisk-1.0.4-4.fc30.x86_64", "Installed: lzo-2.08-15.fc30.x86_64", "Installed: python3-blivet-1:3.1.3-3.fc30.noarch", "Installed: libblockdev-mdraid-2.21-3.fc30.x86_64", "Installed: libblockdev-mpath-2.21-3.fc30.x86_64", "Installed: daxctl-libs-65-1.fc30.x86_64", "Installed: gobject-introspection-1.60.1-2.fc30.x86_64", "Installed: libblockdev-nvdimm-2.21-3.fc30.x86_64", "Installed: libblockdev-part-2.21-3.fc30.x86_64", "Installed: python3-blockdev-2.21-3.fc30.x86_64", "Installed: sgpio-1.2.0.10-23.fc30.x86_64", "Installed: libblockdev-swap-2.21-3.fc30.x86_64", "Installed: lsof-4.91-3.fc30.x86_64", "Installed: device-mapper-event-1.02.154-3.fc30.x86_64", "Installed: python3-bytesize-2.0-1.fc30.x86_64", "Installed: libblockdev-utils-2.21-3.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: device-mapper-multipath-libs-0.7.9-6.git2df6110.fc30.x86_64", "Installed: nss-3.44.0-2.fc30.x86_64", "Installed: device-mapper-persistent-data-0.7.6-4.fc30.x86_64", "Installed: libbytesize-2.0-1.fc30.x86_64", "Installed: nss-softokn-3.44.0-2.fc30.x86_64", "Installed: nss-softokn-freebl-3.44.0-2.fc30.x86_64", "Installed: volume_key-libs-0.3.12-3.fc30.x86_64", "Installed: nss-sysinit-3.44.0-2.fc30.x86_64", "Installed: bcache-tools-1.0.8-15.fc30.x86_64", "Installed: nss-util-3.44.0-2.fc30.x86_64", "Installed: btrfs-progs-4.20.2-1.fc30.x86_64", "Installed: nspr-4.21.0-1.fc30.x86_64", "Installed: python3-pyudev-0.21.0-10.fc30.noarch", "Installed: mdadm-4.1-rc2.0.3.fc30.x86_64", "Installed: blivet-data-1:3.1.3-3.fc30.noarch", "Installed: python3-gobject-base-3.32.1-1.fc30.x86_64", "Installed: python3-pyparted-1:3.11.2-1.fc30.x86_64", "Installed: libblockdev-2.21-3.fc30.x86_64", "Installed: libaio-0.3.111-4.fc30.x86_64", "Installed: libblockdev-btrfs-2.21-3.fc30.x86_64", "Installed: libblockdev-crypto-2.21-3.fc30.x86_64", "Installed: userspace-rcu-0.10.1-5.fc30.x86_64", "Installed: ndctl-65-1.fc30.x86_64", "Installed: libblockdev-dm-2.21-3.fc30.x86_64", "Installed: dmraid-1.0.0.rc16-41.fc30.x86_64", "Installed: ndctl-libs-65-1.fc30.x86_64", "Installed: dmraid-events-1.0.0.rc16-41.fc30.x86_64", "Installed: libblockdev-fs-2.21-3.fc30.x86_64"]} TASK [storage : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:15 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"all_vols": [], "pools": [], "vol_pools": [], "vols": [], "vols_by_pool": [], "volumes": []}, "changed": false} TASK [storage : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:23 TASK [storage : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:30 TASK [storage : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:37 skipping: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [storage : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:44 TASK [storage : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:49 TASK [storage : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:57 TASK [storage : set the list of pools for test verification] *********************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:72 ok: [/home/till/lsr-test-harness-files/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/tmpshcwqol8/tasks/main-blivet.yml:76 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:80 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "pools": [] } TASK [storage : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:83 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "volumes": [] } TASK [storage : manage the pools] ************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:86 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": [], "mounts": [], "removed_mounts": []} TASK [storage : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:92 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "blivet_output": { "actions": [], "changed": false, "failed": false, "leaves": [], "mounts": [], "removed_mounts": [] } } TASK [storage : remove obsolete mounts] ******************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:103 TASK [storage : add new mounts] **************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:111 TASK [storage : tell systemd to refresh its view of /etc/fstab] ******************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:122 skipping: [/home/till/lsr-test-harness-files/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/tmpshcwqol8/tasks/main-blivet.yml:131 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] TASK [include_tasks] *************************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/tests_change_fs.yml:13 included: /tmp/tmpshcwqol8/tests/get_unused_disk.yml for /home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [Find unused disks in the system] ********************************************************************************************************************************************************************* task path: /tmp/tmpshcwqol8/tests/get_unused_disk.yml:2 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "disks": ["vdb"]} TASK [set_fact] ******************************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/get_unused_disk.yml:8 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"unused_disks": ["vdb"]}, "changed": false} TASK [Exit playbook when there's no unused disks in the system] ******************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/get_unused_disk.yml:13 skipping: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {} META: TASK [Print unused disks] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/get_unused_disk.yml:19 ok: [/home/till/lsr-test-harness-files/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/tmpshcwqol8/tests/tests_change_fs.yml:18 TASK [storage : define an empty list of pools to be used in testing] *************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main.yml:2 ok: [/home/till/lsr-test-harness-files/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/tmpshcwqol8/tasks/main.yml:6 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : include the appropriate backend tasks] ***************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main.yml:10 included: /tmp/tmpshcwqol8/tasks/main-blivet.yml for /home/till/lsr-test-harness-files/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/tmpshcwqol8/tasks/main-blivet.yml:2 skipping: [/home/till/lsr-test-harness-files/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/tmpshcwqol8/tasks/main-blivet.yml:7 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: python3-blivet"]} TASK [storage : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:15 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"all_vols": [], "pools": [], "vol_pools": [], "vols": [], "vols_by_pool": [], "volumes": []}, "changed": false} TASK [storage : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:23 ok: [/home/till/lsr-test-harness-files/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": {"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 : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:30 ok: [/home/till/lsr-test-harness-files/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": {"vol_defaults": [{"fs_create_options": "", "fs_destroy_options": "-af", "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"}], "vol_pools": ["foo"], "vols": [{"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 : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:37 ok: [/home/till/lsr-test-harness-files/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_destroy_options': '-af', 'fs_overwrite_existing': True, 'mount_point': '', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid'}]) => {"ansible_facts": {"all_vols": [{"fs_create_options": "", "fs_destroy_options": "-af", "fs_label": "", "fs_overwrite_existing": true, "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, "idx": 0, "item": [{"mount_point": "/opt/test1", "name": "test1", "size": "5g"}, {"fs_create_options": "", "fs_destroy_options": "-af", "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 : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:44 ok: [/home/till/lsr-test-harness-files/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": {"vols_by_pool": {"foo": [{"fs_create_options": "", "fs_destroy_options": "-af", "fs_label": "", "fs_overwrite_existing": true, "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 : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:49 ok: [/home/till/lsr-test-harness-files/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": {"pools": [{"disks": ["vdb"], "name": "foo", "state": "present", "type": "lvm", "volumes": [{"fs_create_options": "", "fs_destroy_options": "-af", "fs_label": "", "fs_overwrite_existing": true, "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": "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 : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:57 TASK [storage : set the list of pools for test verification] *********************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:72 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": [{"disks": ["vdb"], "name": "foo", "state": "present", "type": "lvm", "volumes": [{"fs_create_options": "", "fs_destroy_options": "-af", "fs_label": "", "fs_overwrite_existing": true, "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/tmpshcwqol8/tasks/main-blivet.yml:76 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:80 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "pools": [ { "disks": [ "vdb" ], "name": "foo", "state": "present", "type": "lvm", "volumes": [ { "fs_create_options": "", "fs_destroy_options": "-af", "fs_label": "", "fs_overwrite_existing": true, "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/tmpshcwqol8/tasks/main-blivet.yml:83 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "volumes": [] } TASK [storage : manage the pools] ************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:86 changed: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": ["create format lvmpv on /dev/vdb", "create device /dev/foo", "create device /dev/mapper/foo-test1", "create format xfs on /dev/mapper/foo-test1"], "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"}], "removed_mounts": []} TASK [storage : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:92 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "blivet_output": { "actions": [ "create format lvmpv on /dev/vdb", "create device /dev/foo", "create device /dev/mapper/foo-test1", "create format xfs on /dev/mapper/foo-test1" ], "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" } ], "removed_mounts": [] } } TASK [storage : remove obsolete mounts] ******************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:103 TASK [storage : add new mounts] **************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:111 changed: [/home/till/lsr-test-harness-files/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/tmpshcwqol8/tasks/main-blivet.yml:122 changed: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["systemctl", "daemon-reload"], "delta": "0:00:00.228161", "end": "2019-05-25 13:40:34.784757", "rc": 0, "start": "2019-05-25 13:40:34.556596", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [storage : Update facts] ****************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:131 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] TASK [include_tasks] *************************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/tests_change_fs.yml:30 included: /tmp/tmpshcwqol8/tests/verify-role-results.yml for /home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [set_fact] ******************************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/verify-role-results.yml:1 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_tests_list": ["verify-volumes"]}, "changed": false} TASK [Print out pool information] ************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/verify-role-results.yml:4 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools_list": [ { "disks": [ "vdb" ], "name": "foo", "state": "present", "type": "lvm", "volumes": [ { "fs_create_options": "", "fs_destroy_options": "-af", "fs_label": "", "fs_overwrite_existing": true, "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/tmpshcwqol8/tests/verify-role-results.yml:9 skipping: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {} TASK [Ensure the specified devices in the role were correctly configured in the user's system] ************************************************************************************************************* task path: /tmp/tmpshcwqol8/tests/verify-role-results.yml:14 included: /tmp/tmpshcwqol8/tests/test-verify-volumes.yml for /home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [Read the /etc/fstab file for volume existence] ******************************************************************************************************************************************************* task path: /tmp/tmpshcwqol8/tests/test-verify-volumes.yml:2 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/fstab"], "delta": "0:00:00.002713", "end": "2019-05-25 13:40:36.628158", "rc": 0, "start": "2019-05-25 13:40:36.625445", "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/tmpshcwqol8/tests/test-verify-volumes.yml:7 included: /tmp/tmpshcwqol8/tests/test-volumes-present-helper.yml for /home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [set_fact] ******************************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/test-volumes-present-helper.yml:2 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"mount_entries": []}, "changed": false} TASK [gather mounts related to each volume in the pool] **************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/test-volumes-present-helper.yml:5 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'size': '5g', 'fs_type': 'xfs', 'fs_label': '', 'fs_create_options': '', 'fs_destroy_options': '-af', 'fs_overwrite_existing': True, 'mount_point': '/opt/test1', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid', 'name': 'test1', 'pool': 'foo'}) => {"ansible_facts": {"mount_entries": [[{"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": "e969560e-a274-463c-9c3f-417eac18e3ce"}]]}, "ansible_loop_var": "current_volume", "changed": false, "current_volume": {"fs_create_options": "", "fs_destroy_options": "-af", "fs_label": "", "fs_overwrite_existing": true, "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 [Ensure all lvm volumes were correctly managed in /etc/fstab and ansible_mounts.] ********************************************************************************************************************* task path: /tmp/tmpshcwqol8/tests/test-volumes-present-helper.yml:12 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'size': '5g', 'fs_type': 'xfs', 'fs_label': '', 'fs_create_options': '', 'fs_destroy_options': '-af', 'fs_overwrite_existing': True, 'mount_point': '/opt/test1', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid', 'name': 'test1', 'pool': 'foo'}) => { "ansible_loop_var": "current_volume", "changed": false, "current_volume": { "fs_create_options": "", "fs_destroy_options": "-af", "fs_label": "", "fs_overwrite_existing": true, "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" }, "idx": 0, "msg": "All assertions passed" } TASK [Ensure all lvm volumes were correctly managed in /etc/fstab and ansible_mounts.] ********************************************************************************************************************* task path: /tmp/tmpshcwqol8/tests/test-volumes-present-helper.yml:25 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'size': '5g', 'fs_type': 'xfs', 'fs_label': '', 'fs_create_options': '', 'fs_destroy_options': '-af', 'fs_overwrite_existing': True, 'mount_point': '/opt/test1', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid', 'name': 'test1', 'pool': 'foo'}) => { "ansible_loop_var": "current_volume", "changed": false, "current_volume": { "fs_create_options": "", "fs_destroy_options": "-af", "fs_label": "", "fs_overwrite_existing": true, "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" }, "idx": 0, "msg": "All assertions passed" } TASK [Ensure all lvm volumes were correctly managed in /etc/fstab.] **************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/test-volumes-present-helper.yml:38 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'size': '5g', 'fs_type': 'xfs', 'fs_label': '', 'fs_create_options': '', 'fs_destroy_options': '-af', 'fs_overwrite_existing': True, 'mount_point': '/opt/test1', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid', 'name': 'test1', 'pool': 'foo'}) => { "ansible_loop_var": "current_volume", "changed": false, "current_volume": { "fs_create_options": "", "fs_destroy_options": "-af", "fs_label": "", "fs_overwrite_existing": true, "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" }, "msg": "All assertions passed" } TASK [resolve_blockdev] ************************************************************************************************************************************************************************************ task path: /tmp/tmpshcwqol8/tests/test-verify-volumes.yml:14 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/dev/mapper/foo-test1) => {"ansible_loop_var": "dev_id", "changed": false, "dev_id": "/dev/mapper/foo-test1", "device": "/dev/mapper/foo-test1"} TASK [resolve_blockdev] ************************************************************************************************************************************************************************************ task path: /tmp/tmpshcwqol8/tests/test-verify-volumes.yml:21 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/dev/vda1) => {"ansible_loop_var": "dev_id", "changed": false, "dev_id": "/dev/vda1", "device": "/dev/vda1"} ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/dev/mapper/foo-test1) => {"ansible_loop_var": "dev_id", "changed": false, "dev_id": "/dev/mapper/foo-test1", "device": "/dev/mapper/foo-test1"} TASK [set_fact] ******************************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/test-verify-volumes.yml:28 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"ansible_mount_devs": ["/dev/vda1", "/dev/mapper/foo-test1"], "blivet_mount_devs": ["/dev/mapper/foo-test1"], "removed_volumes": []}, "changed": false} TASK [set_fact] ******************************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/test-verify-volumes.yml:33 TASK [Verify the volumes with no pool were correctly managed] ********************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/test-verify-volumes.yml:40 TASK [Verify the present volumes with no pool were correctly managed] ************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/test-verify-volumes.yml:52 TASK [Verify the absent volumes with no pool are not in ansible_mounts] ************************************************************************************************************************************ task path: /tmp/tmpshcwqol8/tests/test-verify-volumes.yml:65 TASK [Change the file system signature on the logical volume created above] ******************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/tests_change_fs.yml:32 TASK [storage : define an empty list of pools to be used in testing] *************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main.yml:2 ok: [/home/till/lsr-test-harness-files/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/tmpshcwqol8/tasks/main.yml:6 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : include the appropriate backend tasks] ***************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main.yml:10 included: /tmp/tmpshcwqol8/tasks/main-blivet.yml for /home/till/lsr-test-harness-files/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/tmpshcwqol8/tasks/main-blivet.yml:2 skipping: [/home/till/lsr-test-harness-files/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/tmpshcwqol8/tasks/main-blivet.yml:7 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: python3-blivet"]} TASK [storage : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:15 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"all_vols": [], "pools": [], "vol_pools": [], "vols": [], "vols_by_pool": [], "volumes": []}, "changed": false} TASK [storage : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:23 ok: [/home/till/lsr-test-harness-files/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": {"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 : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:30 ok: [/home/till/lsr-test-harness-files/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": {"vol_defaults": [{"fs_create_options": "", "fs_destroy_options": "-af", "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_destroy_options": "-af", "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"}], "vol_pools": ["foo"], "vols": [{"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 : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:37 ok: [/home/till/lsr-test-harness-files/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_destroy_options': '-af', 'fs_overwrite_existing': True, 'mount_point': '', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid'}]) => {"ansible_facts": {"all_vols": [{"fs_create_options": "", "fs_destroy_options": "-af", "fs_label": "", "fs_overwrite_existing": true, "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, "idx": 0, "item": [{"fs_type": "xfs", "mount_point": "/opt/test1", "name": "test1", "size": "5g"}, {"fs_create_options": "", "fs_destroy_options": "-af", "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 : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:44 ok: [/home/till/lsr-test-harness-files/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": {"vols_by_pool": {"foo": [{"fs_create_options": "", "fs_destroy_options": "-af", "fs_label": "", "fs_overwrite_existing": true, "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 : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:49 ok: [/home/till/lsr-test-harness-files/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": {"pools": [{"disks": ["vdb"], "name": "foo", "state": "present", "type": "lvm", "volumes": [{"fs_create_options": "", "fs_destroy_options": "-af", "fs_label": "", "fs_overwrite_existing": true, "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": "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 : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:57 TASK [storage : set the list of pools for test verification] *********************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:72 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": [{"disks": ["vdb"], "name": "foo", "state": "present", "type": "lvm", "volumes": [{"fs_create_options": "", "fs_destroy_options": "-af", "fs_label": "", "fs_overwrite_existing": true, "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/tmpshcwqol8/tasks/main-blivet.yml:76 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:80 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "pools": [ { "disks": [ "vdb" ], "name": "foo", "state": "present", "type": "lvm", "volumes": [ { "fs_create_options": "", "fs_destroy_options": "-af", "fs_label": "", "fs_overwrite_existing": true, "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/tmpshcwqol8/tasks/main-blivet.yml:83 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "volumes": [] } TASK [storage : manage the pools] ************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:86 ok: [/home/till/lsr-test-harness-files/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"}], "removed_mounts": [{"device": "/dev/mapper/foo-test1", "path": "/opt/test1"}]} TASK [storage : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:92 ok: [/home/till/lsr-test-harness-files/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" } ], "removed_mounts": [ { "device": "/dev/mapper/foo-test1", "path": "/opt/test1" } ] } } TASK [storage : remove obsolete mounts] ******************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:103 changed: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'path': '/opt/test1', 'device': '/dev/mapper/foo-test1'}) => {"ansible_loop_var": "mount_info", "changed": true, "dump": "0", "fstab": "/etc/fstab", "mount_info": {"device": "/dev/mapper/foo-test1", "path": "/opt/test1"}, "name": "/opt/test1", "opts": "defaults", "passno": "0"} TASK [storage : add new mounts] **************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:111 changed: [/home/till/lsr-test-harness-files/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/tmpshcwqol8/tasks/main-blivet.yml:122 changed: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["systemctl", "daemon-reload"], "delta": "0:00:00.241978", "end": "2019-05-25 13:40:48.321295", "rc": 0, "start": "2019-05-25 13:40:48.079317", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [storage : Update facts] ****************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:131 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] TASK [include_tasks] *************************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/tests_change_fs.yml:45 included: /tmp/tmpshcwqol8/tests/verify-role-results.yml for /home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [set_fact] ******************************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/verify-role-results.yml:1 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_tests_list": ["verify-volumes"]}, "changed": false} TASK [Print out pool information] ************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/verify-role-results.yml:4 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools_list": [ { "disks": [ "vdb" ], "name": "foo", "state": "present", "type": "lvm", "volumes": [ { "fs_create_options": "", "fs_destroy_options": "-af", "fs_label": "", "fs_overwrite_existing": true, "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/tmpshcwqol8/tests/verify-role-results.yml:9 skipping: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {} TASK [Ensure the specified devices in the role were correctly configured in the user's system] ************************************************************************************************************* task path: /tmp/tmpshcwqol8/tests/verify-role-results.yml:14 included: /tmp/tmpshcwqol8/tests/test-verify-volumes.yml for /home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [Read the /etc/fstab file for volume existence] ******************************************************************************************************************************************************* task path: /tmp/tmpshcwqol8/tests/test-verify-volumes.yml:2 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/fstab"], "delta": "0:00:00.012129", "end": "2019-05-25 13:40:50.355933", "rc": 0, "start": "2019-05-25 13:40:50.343804", "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/tmpshcwqol8/tests/test-verify-volumes.yml:7 included: /tmp/tmpshcwqol8/tests/test-volumes-present-helper.yml for /home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [set_fact] ******************************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/test-volumes-present-helper.yml:2 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"mount_entries": []}, "changed": false} TASK [gather mounts related to each volume in the pool] **************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/test-volumes-present-helper.yml:5 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'size': '5g', 'fs_type': 'xfs', 'fs_label': '', 'fs_create_options': '', 'fs_destroy_options': '-af', 'fs_overwrite_existing': True, 'mount_point': '/opt/test1', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid', 'name': 'test1', 'pool': 'foo'}) => {"ansible_facts": {"mount_entries": [[{"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": "e969560e-a274-463c-9c3f-417eac18e3ce"}]]}, "ansible_loop_var": "current_volume", "changed": false, "current_volume": {"fs_create_options": "", "fs_destroy_options": "-af", "fs_label": "", "fs_overwrite_existing": true, "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 [Ensure all lvm volumes were correctly managed in /etc/fstab and ansible_mounts.] ********************************************************************************************************************* task path: /tmp/tmpshcwqol8/tests/test-volumes-present-helper.yml:12 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'size': '5g', 'fs_type': 'xfs', 'fs_label': '', 'fs_create_options': '', 'fs_destroy_options': '-af', 'fs_overwrite_existing': True, 'mount_point': '/opt/test1', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid', 'name': 'test1', 'pool': 'foo'}) => { "ansible_loop_var": "current_volume", "changed": false, "current_volume": { "fs_create_options": "", "fs_destroy_options": "-af", "fs_label": "", "fs_overwrite_existing": true, "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" }, "idx": 0, "msg": "All assertions passed" } TASK [Ensure all lvm volumes were correctly managed in /etc/fstab and ansible_mounts.] ********************************************************************************************************************* task path: /tmp/tmpshcwqol8/tests/test-volumes-present-helper.yml:25 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'size': '5g', 'fs_type': 'xfs', 'fs_label': '', 'fs_create_options': '', 'fs_destroy_options': '-af', 'fs_overwrite_existing': True, 'mount_point': '/opt/test1', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid', 'name': 'test1', 'pool': 'foo'}) => { "ansible_loop_var": "current_volume", "changed": false, "current_volume": { "fs_create_options": "", "fs_destroy_options": "-af", "fs_label": "", "fs_overwrite_existing": true, "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" }, "idx": 0, "msg": "All assertions passed" } TASK [Ensure all lvm volumes were correctly managed in /etc/fstab.] **************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/test-volumes-present-helper.yml:38 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'size': '5g', 'fs_type': 'xfs', 'fs_label': '', 'fs_create_options': '', 'fs_destroy_options': '-af', 'fs_overwrite_existing': True, 'mount_point': '/opt/test1', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid', 'name': 'test1', 'pool': 'foo'}) => { "ansible_loop_var": "current_volume", "changed": false, "current_volume": { "fs_create_options": "", "fs_destroy_options": "-af", "fs_label": "", "fs_overwrite_existing": true, "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" }, "msg": "All assertions passed" } TASK [resolve_blockdev] ************************************************************************************************************************************************************************************ task path: /tmp/tmpshcwqol8/tests/test-verify-volumes.yml:14 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/dev/mapper/foo-test1) => {"ansible_loop_var": "dev_id", "changed": false, "dev_id": "/dev/mapper/foo-test1", "device": "/dev/mapper/foo-test1"} TASK [resolve_blockdev] ************************************************************************************************************************************************************************************ task path: /tmp/tmpshcwqol8/tests/test-verify-volumes.yml:21 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/dev/vda1) => {"ansible_loop_var": "dev_id", "changed": false, "dev_id": "/dev/vda1", "device": "/dev/vda1"} ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/dev/mapper/foo-test1) => {"ansible_loop_var": "dev_id", "changed": false, "dev_id": "/dev/mapper/foo-test1", "device": "/dev/mapper/foo-test1"} TASK [set_fact] ******************************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/test-verify-volumes.yml:28 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"ansible_mount_devs": ["/dev/vda1", "/dev/mapper/foo-test1"], "blivet_mount_devs": ["/dev/mapper/foo-test1"], "removed_volumes": []}, "changed": false} TASK [set_fact] ******************************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/test-verify-volumes.yml:33 TASK [Verify the volumes with no pool were correctly managed] ********************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/test-verify-volumes.yml:40 TASK [Verify the present volumes with no pool were correctly managed] ************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/test-verify-volumes.yml:52 TASK [Verify the absent volumes with no pool are not in ansible_mounts] ************************************************************************************************************************************ task path: /tmp/tmpshcwqol8/tests/test-verify-volumes.yml:65 META: ran handlers META: ran handlers PLAY RECAP ************************************************************************************************************************************************************************************************* /home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 : ok=85 changed=7 unreachable=0 failed=0 skipped=27 rescued=0 ignored=0 + cd /tmp/tmpshcwqol8/tests; TEST_SUBJECTS=/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_storage-25-db52957-fedora-30-cqpxlans/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmpshcwqol8/_setup.yml /tmp/tmpshcwqol8/tests/tests_change_fs_use_partitions.yml ansible-playbook 2.8.0 config file = /home/till/.ansible.cfg configured module search path = ['/home/till/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.7/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 3.7.3 (default, May 11 2019, 00:38:04) [GCC 9.1.1 20190503 (Red Hat 9.1.1-1)] Using /home/till/.ansible.cfg as config file PLAYBOOK: _setup.yml *************************************************************************************************************************************************************************************** 1 plays in /tmp/tmpshcwqol8/_setup.yml PLAY [Fail when only localhost is available] *************************************************************************************************************************************************************** META: ran handlers TASK [debug] *********************************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/_setup.yml:5 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "groups": { "all": [ "/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2" ], "localhost": [ "/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2" ], "subjects": [ "/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2" ], "ungrouped": [] } } TASK [fail] ************************************************************************************************************************************************************************************************ task path: /tmp/tmpshcwqol8/_setup.yml:7 skipping: [/home/till/lsr-test-harness-files/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 ************************************************************************************************************************************************************************************************* /home/till/lsr-test-harness-files/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/tmpshcwqol8/tests/tests_change_fs_use_partitions.yml PLAY [all] ************************************************************************************************************************************************************************************************* TASK [Gathering Facts] ************************************************************************************************************************************************************************************* task path: /tmp/tmpshcwqol8/tests/tests_change_fs_use_partitions.yml:2 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"ansible_all_ipv4_addresses": ["10.0.2.15"], "ansible_all_ipv6_addresses": ["fec0::5054:ff:fe12:3456", "fe80::5054:ff:fe12:3456"], "ansible_apparmor": {"status": "disabled"}, "ansible_architecture": "x86_64", "ansible_bios_date": "04/01/2014", "ansible_bios_version": "1.12.0-2.fc30", "ansible_cmdline": {"BOOT_IMAGE": "(hd0,msdos1)/boot/vmlinuz-5.0.9-301.fc30.x86_64", "console": "ttyS0,115200n8", "net.ifnames": "0", "no_timer_check": true, "ro": true, "root": "UUID=ea711a29-e460-4879-9d70-9da99ae021f9"}, "ansible_date_time": {"date": "2019-05-25", "day": "25", "epoch": "1558791681", "hour": "13", "iso8601": "2019-05-25T13:41:21Z", "iso8601_basic": "20190525T134121408790", "iso8601_basic_short": "20190525T134121", "iso8601_micro": "2019-05-25T13:41:21.408887Z", "minute": "41", "month": "05", "second": "21", "time": "13:41:21", "tz": "UTC", "tz_offset": "+0000", "weekday": "Saturday", "weekday_number": "6", "weeknumber": "20", "year": "2019"}, "ansible_default_ipv4": {"address": "10.0.2.15", "alias": "eth0", "broadcast": "10.0.2.255", "gateway": "10.0.2.2", "interface": "eth0", "macaddress": "52:54:00:12:34:56", "mtu": 1500, "netmask": "255.255.255.0", "network": "10.0.2.0", "type": "ether"}, "ansible_default_ipv6": {"address": "fec0::5054:ff:fe12:3456", "gateway": "fe80::2", "interface": "eth0", "macaddress": "52:54:00:12:34:56", "mtu": 1500, "prefix": "64", "scope": "site", "type": "ether"}, "ansible_device_links": {"ids": {"sr0": ["ata-QEMU_DVD-ROM_QM00003"]}, "labels": {"sr0": ["cidata"]}, "masters": {}, "uuids": {"sr0": ["2019-05-25-15-40-54-00"], "vda1": ["ea711a29-e460-4879-9d70-9da99ae021f9"]}}, "ansible_devices": {"sr0": {"holders": [], "host": "", "links": {"ids": ["ata-QEMU_DVD-ROM_QM00003"], "labels": ["cidata"], "masters": [], "uuids": ["2019-05-25-15-40-54-00"]}, "model": "QEMU DVD-ROM", "partitions": {}, "removable": "1", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "mq-deadline", "sectors": "728", "sectorsize": "2048", "size": "364.00 KB", "support_discard": "0", "vendor": "QEMU", "virtual": 1}, "vda": {"holders": [], "host": "", "links": {"ids": [], "labels": [], "masters": [], "uuids": []}, "model": null, "partitions": {"vda1": {"holders": [], "links": {"ids": [], "labels": [], "masters": [], "uuids": ["ea711a29-e460-4879-9d70-9da99ae021f9"]}, "sectors": "8386560", "sectorsize": 512, "size": "4.00 GB", "start": "2048", "uuid": "ea711a29-e460-4879-9d70-9da99ae021f9"}}, "removable": "0", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "mq-deadline", "sectors": "8388608", "sectorsize": "512", "size": "4.00 GB", "support_discard": "0", "vendor": "0x1af4", "virtual": 1}, "vdb": {"holders": [], "host": "", "links": {"ids": [], "labels": [], "masters": [], "uuids": []}, "model": null, "partitions": {}, "removable": "0", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "mq-deadline", "sectors": "20971520", "sectorsize": "512", "size": "10.00 GB", "support_discard": "0", "vendor": "0x1af4", "virtual": 1}, "vdc": {"holders": [], "host": "", "links": {"ids": [], "labels": [], "masters": [], "uuids": []}, "model": null, "partitions": {}, "removable": "0", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "mq-deadline", "sectors": "20971520", "sectorsize": "512", "size": "10.00 GB", "support_discard": "0", "vendor": "0x1af4", "virtual": 1}}, "ansible_distribution": "Fedora", "ansible_distribution_file_parsed": true, "ansible_distribution_file_path": "/etc/redhat-release", "ansible_distribution_file_variety": "RedHat", "ansible_distribution_major_version": "30", "ansible_distribution_release": "", "ansible_distribution_version": "30", "ansible_dns": {"nameservers": ["10.0.2.3"]}, "ansible_domain": "", "ansible_effective_group_id": 0, "ansible_effective_user_id": 0, "ansible_env": {"DBUS_SESSION_BUS_ADDRESS": "unix:path=/run/user/0/bus", "HOME": "/root", "LANG": "en_US.UTF-8", "LESSOPEN": "||/usr/bin/lesspipe.sh %s", "LOGNAME": "root", "LS_COLORS": "rs=0:di=38;5;33:ln=38;5;51:mh=00:pi=40;38;5;11:so=38;5;13:do=38;5;5:bd=48;5;232;38;5;11:cd=48;5;232;38;5;3:or=48;5;232;38;5;9:mi=01;05;37;41:su=48;5;196;38;5;15:sg=48;5;11;38;5;16:ca=48;5;196;38;5;226:tw=48;5;10;38;5;16:ow=48;5;10;38;5;21:st=48;5;21;38;5;15:ex=38;5;40:*.tar=38;5;9:*.tgz=38;5;9:*.arc=38;5;9:*.arj=38;5;9:*.taz=38;5;9:*.lha=38;5;9:*.lz4=38;5;9:*.lzh=38;5;9:*.lzma=38;5;9:*.tlz=38;5;9:*.txz=38;5;9:*.tzo=38;5;9:*.t7z=38;5;9:*.zip=38;5;9:*.z=38;5;9:*.dz=38;5;9:*.gz=38;5;9:*.lrz=38;5;9:*.lz=38;5;9:*.lzo=38;5;9:*.xz=38;5;9:*.zst=38;5;9:*.tzst=38;5;9:*.bz2=38;5;9:*.bz=38;5;9:*.tbz=38;5;9:*.tbz2=38;5;9:*.tz=38;5;9:*.deb=38;5;9:*.rpm=38;5;9:*.jar=38;5;9:*.war=38;5;9:*.ear=38;5;9:*.sar=38;5;9:*.rar=38;5;9:*.alz=38;5;9:*.ace=38;5;9:*.zoo=38;5;9:*.cpio=38;5;9:*.7z=38;5;9:*.rz=38;5;9:*.cab=38;5;9:*.wim=38;5;9:*.swm=38;5;9:*.dwm=38;5;9:*.esd=38;5;9:*.jpg=38;5;13:*.jpeg=38;5;13:*.mjpg=38;5;13:*.mjpeg=38;5;13:*.gif=38;5;13:*.bmp=38;5;13:*.pbm=38;5;13:*.pgm=38;5;13:*.ppm=38;5;13:*.tga=38;5;13:*.xbm=38;5;13:*.xpm=38;5;13:*.tif=38;5;13:*.tiff=38;5;13:*.png=38;5;13:*.svg=38;5;13:*.svgz=38;5;13:*.mng=38;5;13:*.pcx=38;5;13:*.mov=38;5;13:*.mpg=38;5;13:*.mpeg=38;5;13:*.m2v=38;5;13:*.mkv=38;5;13:*.webm=38;5;13:*.ogm=38;5;13:*.mp4=38;5;13:*.m4v=38;5;13:*.mp4v=38;5;13:*.vob=38;5;13:*.qt=38;5;13:*.nuv=38;5;13:*.wmv=38;5;13:*.asf=38;5;13:*.rm=38;5;13:*.rmvb=38;5;13:*.flc=38;5;13:*.avi=38;5;13:*.fli=38;5;13:*.flv=38;5;13:*.gl=38;5;13:*.dl=38;5;13:*.xcf=38;5;13:*.xwd=38;5;13:*.yuv=38;5;13:*.cgm=38;5;13:*.emf=38;5;13:*.ogv=38;5;13:*.ogx=38;5;13:*.aac=38;5;45:*.au=38;5;45:*.flac=38;5;45:*.m4a=38;5;45:*.mid=38;5;45:*.midi=38;5;45:*.mka=38;5;45:*.mp3=38;5;45:*.mpc=38;5;45:*.ogg=38;5;45:*.ra=38;5;45:*.wav=38;5;45:*.oga=38;5;45:*.opus=38;5;45:*.spx=38;5;45:*.xspf=38;5;45:", "MAIL": "/var/mail/root", "PATH": "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin", "PWD": "/root", "SELINUX_LEVEL_REQUESTED": "", "SELINUX_ROLE_REQUESTED": "", "SELINUX_USE_CURRENT_RANGE": "", "SHELL": "/bin/bash", "SHLVL": "1", "SSH_CLIENT": "10.0.2.2 39592 22", "SSH_CONNECTION": "10.0.2.2 39592 10.0.2.15 22", "SSH_TTY": "/dev/pts/0", "TERM": "xterm-256color", "USER": "root", "XDG_RUNTIME_DIR": "/run/user/0", "XDG_SESSION_CLASS": "user", "XDG_SESSION_ID": "1", "XDG_SESSION_TYPE": "tty", "_": "/usr/bin/python3"}, "ansible_eth0": {"active": true, "device": "eth0", "ipv4": {"address": "10.0.2.15", "broadcast": "10.0.2.255", "netmask": "255.255.255.0", "network": "10.0.2.0"}, "ipv6": [{"address": "fec0::5054:ff:fe12:3456", "prefix": "64", "scope": "site"}, {"address": "fe80::5054:ff:fe12:3456", "prefix": "64", "scope": "link"}], "macaddress": "52:54:00:12:34:56", "module": "virtio_net", "mtu": 1500, "pciid": "virtio0", "promisc": false, "speed": -1, "type": "ether"}, "ansible_fibre_channel_wwn": [], "ansible_fips": false, "ansible_form_factor": "Other", "ansible_fqdn": "ibm-p8-kvm-03-guest-02", "ansible_hostname": "ibm-p8-kvm-03-guest-02", "ansible_hostnqn": "", "ansible_interfaces": ["eth0", "lo"], "ansible_is_chroot": false, "ansible_iscsi_iqn": "", "ansible_kernel": "5.0.9-301.fc30.x86_64", "ansible_lo": {"active": true, "device": "lo", "ipv4": {"address": "127.0.0.1", "broadcast": "host", "netmask": "255.0.0.0", "network": "127.0.0.0"}, "ipv6": [{"address": "::1", "prefix": "128", "scope": "host"}], "mtu": 65536, "promisc": false, "type": "loopback"}, "ansible_local": {}, "ansible_lsb": {}, "ansible_machine": "x86_64", "ansible_machine_id": "b2430531dd564d92bb071f7ef33547a1", "ansible_memfree_mb": 646, "ansible_memory_mb": {"nocache": {"free": 839, "used": 143}, "real": {"free": 646, "total": 982, "used": 336}, "swap": {"cached": 0, "free": 0, "total": 0, "used": 0}}, "ansible_memtotal_mb": 982, "ansible_mounts": [{"block_available": 731960, "block_size": 4096, "block_total": 1015472, "block_used": 283512, "device": "/dev/vda1", "fstype": "ext4", "inode_available": 233659, "inode_total": 262144, "inode_used": 28485, "mount": "/", "options": "rw,seclabel,relatime", "size_available": 2998108160, "size_total": 4159373312, "uuid": "ea711a29-e460-4879-9d70-9da99ae021f9"}], "ansible_nodename": "ibm-p8-kvm-03-guest-02", "ansible_os_family": "RedHat", "ansible_pkg_mgr": "dnf", "ansible_proc_cmdline": {"BOOT_IMAGE": "(hd0,msdos1)/boot/vmlinuz-5.0.9-301.fc30.x86_64", "console": ["tty1", "ttyS0,115200n8"], "net.ifnames": "0", "no_timer_check": true, "ro": true, "root": "UUID=ea711a29-e460-4879-9d70-9da99ae021f9"}, "ansible_processor": ["0", "GenuineIntel", "Intel(R) Core(TM) i7-7600U CPU @ 2.80GHz", "1", "GenuineIntel", "Intel(R) Core(TM) i7-7600U CPU @ 2.80GHz", "2", "GenuineIntel", "Intel(R) Core(TM) i7-7600U CPU @ 2.80GHz"], "ansible_processor_cores": 1, "ansible_processor_count": 3, "ansible_processor_threads_per_core": 1, "ansible_processor_vcpus": 3, "ansible_product_name": "Standard PC (i440FX + PIIX, 1996)", "ansible_product_serial": "NA", "ansible_product_uuid": "NA", "ansible_product_version": "pc-i440fx-3.1", "ansible_python": {"executable": "/usr/bin/python3", "has_sslcontext": true, "type": "cpython", "version": {"major": 3, "micro": 3, "minor": 7, "releaselevel": "final", "serial": 0}, "version_info": [3, 7, 3, "final", 0]}, "ansible_python_version": "3.7.3", "ansible_real_group_id": 0, "ansible_real_user_id": 0, "ansible_selinux": {"config_mode": "enforcing", "mode": "enforcing", "policyvers": 31, "status": "enabled", "type": "targeted"}, "ansible_selinux_python_present": true, "ansible_service_mgr": "systemd", "ansible_ssh_host_key_ecdsa_public": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBKlgHeeUT516b+XIPrbkzlBZ9dtm+KiTdv26x99wMIkyyXnSxCHJnoJ+fk2snoDh8Md9KPybLQ6yz3pZqlMT7Q0=", "ansible_ssh_host_key_ed25519_public": "AAAAC3NzaC1lZDI1NTE5AAAAIL8SGHxg5sC9+83mt1WJt/wowGusygUDcriDgzkXjsOm", "ansible_ssh_host_key_rsa_public": "AAAAB3NzaC1yc2EAAAADAQABAAABAQDQw4k5ux6VCHLju2lf4YtK2C71N1aK/RLPsYo7d2skOqvJVxL8/Zj4Ajh+puNQN8+aijsi9OeF59gcBI3Hv1v4pOXhWFXPD59wJF/qshiIXnV4r+FCdykBLxuDUTdTjsw7jAoVmjqF+c2/QSXrO1uFumS8yxCEETxfkDQXn+FeMFjR1hxZjDMk/EXfjj5WxWHFZXgzUC7gPNIoiuRPzZ2lKB2yS1TyP7xjs5hrj5uM9rESo9yQdlHnhQIoUG+7JP8kQxKEoOMHr78MYIRaiCRw7WkW5/N+qQ/M8fzK8uSZr4r/Bl6Znlr3ZDVTZnPD2cxmnqFoI8HeYUrPHBsPcRJB", "ansible_swapfree_mb": 0, "ansible_swaptotal_mb": 0, "ansible_system": "Linux", "ansible_system_capabilities": ["cap_chown", "cap_dac_override", "cap_dac_read_search", "cap_fowner", "cap_fsetid", "cap_kill", "cap_setgid", "cap_setuid", "cap_setpcap", "cap_linux_immutable", "cap_net_bind_service", "cap_net_broadcast", "cap_net_admin", "cap_net_raw", "cap_ipc_lock", "cap_ipc_owner", "cap_sys_module", "cap_sys_rawio", "cap_sys_chroot", "cap_sys_ptrace", "cap_sys_pacct", "cap_sys_admin", "cap_sys_boot", "cap_sys_nice", "cap_sys_resource", "cap_sys_time", "cap_sys_tty_config", "cap_mknod", "cap_lease", "cap_audit_write", "cap_audit_control", "cap_setfcap", "cap_mac_override", "cap_mac_admin", "cap_syslog", "cap_wake_alarm", "cap_block_suspend", "cap_audit_read+ep"], "ansible_system_capabilities_enforced": "True", "ansible_system_vendor": "QEMU", "ansible_uptime_seconds": 23, "ansible_user_dir": "/root", "ansible_user_gecos": "root", "ansible_user_gid": 0, "ansible_user_id": "root", "ansible_user_shell": "/bin/bash", "ansible_user_uid": 0, "ansible_userspace_architecture": "x86_64", "ansible_userspace_bits": "64", "ansible_virtualization_role": "guest", "ansible_virtualization_type": "kvm", "gather_subset": ["all"], "module_setup": true}, "changed": false} META: ran handlers TASK [include_role : storage] ****************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/tests_change_fs_use_partitions.yml:11 TASK [storage : define an empty list of pools to be used in testing] *************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main.yml:2 ok: [/home/till/lsr-test-harness-files/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/tmpshcwqol8/tasks/main.yml:6 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : include the appropriate backend tasks] ***************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main.yml:10 included: /tmp/tmpshcwqol8/tasks/main-blivet.yml for /home/till/lsr-test-harness-files/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/tmpshcwqol8/tasks/main-blivet.yml:2 skipping: [/home/till/lsr-test-harness-files/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/tmpshcwqol8/tasks/main-blivet.yml:7 changed: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: python3-blivet", "Installed: libblockdev-kbd-2.21-3.fc30.x86_64", "Installed: lvm2-2.02.183-3.fc30.x86_64", "Installed: libblockdev-loop-2.21-3.fc30.x86_64", "Installed: libblockdev-lvm-2.21-3.fc30.x86_64", "Installed: lvm2-libs-2.02.183-3.fc30.x86_64", "Installed: gdisk-1.0.4-4.fc30.x86_64", "Installed: lzo-2.08-15.fc30.x86_64", "Installed: python3-blivet-1:3.1.3-3.fc30.noarch", "Installed: libblockdev-mdraid-2.21-3.fc30.x86_64", "Installed: libblockdev-mpath-2.21-3.fc30.x86_64", "Installed: daxctl-libs-65-1.fc30.x86_64", "Installed: gobject-introspection-1.60.1-2.fc30.x86_64", "Installed: libblockdev-nvdimm-2.21-3.fc30.x86_64", "Installed: libblockdev-part-2.21-3.fc30.x86_64", "Installed: python3-blockdev-2.21-3.fc30.x86_64", "Installed: sgpio-1.2.0.10-23.fc30.x86_64", "Installed: libblockdev-swap-2.21-3.fc30.x86_64", "Installed: lsof-4.91-3.fc30.x86_64", "Installed: device-mapper-event-1.02.154-3.fc30.x86_64", "Installed: python3-bytesize-2.0-1.fc30.x86_64", "Installed: libblockdev-utils-2.21-3.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: device-mapper-multipath-libs-0.7.9-6.git2df6110.fc30.x86_64", "Installed: nss-3.44.0-2.fc30.x86_64", "Installed: device-mapper-persistent-data-0.7.6-4.fc30.x86_64", "Installed: libbytesize-2.0-1.fc30.x86_64", "Installed: nss-softokn-3.44.0-2.fc30.x86_64", "Installed: nss-softokn-freebl-3.44.0-2.fc30.x86_64", "Installed: volume_key-libs-0.3.12-3.fc30.x86_64", "Installed: nss-sysinit-3.44.0-2.fc30.x86_64", "Installed: bcache-tools-1.0.8-15.fc30.x86_64", "Installed: nss-util-3.44.0-2.fc30.x86_64", "Installed: btrfs-progs-4.20.2-1.fc30.x86_64", "Installed: nspr-4.21.0-1.fc30.x86_64", "Installed: python3-pyudev-0.21.0-10.fc30.noarch", "Installed: mdadm-4.1-rc2.0.3.fc30.x86_64", "Installed: blivet-data-1:3.1.3-3.fc30.noarch", "Installed: python3-gobject-base-3.32.1-1.fc30.x86_64", "Installed: python3-pyparted-1:3.11.2-1.fc30.x86_64", "Installed: libblockdev-2.21-3.fc30.x86_64", "Installed: libaio-0.3.111-4.fc30.x86_64", "Installed: libblockdev-btrfs-2.21-3.fc30.x86_64", "Installed: libblockdev-crypto-2.21-3.fc30.x86_64", "Installed: userspace-rcu-0.10.1-5.fc30.x86_64", "Installed: ndctl-65-1.fc30.x86_64", "Installed: libblockdev-dm-2.21-3.fc30.x86_64", "Installed: dmraid-1.0.0.rc16-41.fc30.x86_64", "Installed: ndctl-libs-65-1.fc30.x86_64", "Installed: dmraid-events-1.0.0.rc16-41.fc30.x86_64", "Installed: libblockdev-fs-2.21-3.fc30.x86_64"]} TASK [storage : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:15 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"all_vols": [], "pools": [], "vol_pools": [], "vols": [], "vols_by_pool": [], "volumes": []}, "changed": false} TASK [storage : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:23 TASK [storage : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:30 TASK [storage : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:37 skipping: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [storage : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:44 TASK [storage : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:49 TASK [storage : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:57 TASK [storage : set the list of pools for test verification] *********************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:72 ok: [/home/till/lsr-test-harness-files/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/tmpshcwqol8/tasks/main-blivet.yml:76 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:80 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "pools": [] } TASK [storage : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:83 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "volumes": [] } TASK [storage : manage the pools] ************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:86 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": [], "mounts": [], "removed_mounts": []} TASK [storage : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:92 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "blivet_output": { "actions": [], "changed": false, "failed": false, "leaves": [], "mounts": [], "removed_mounts": [] } } TASK [storage : remove obsolete mounts] ******************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:103 TASK [storage : add new mounts] **************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:111 TASK [storage : tell systemd to refresh its view of /etc/fstab] ******************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:122 skipping: [/home/till/lsr-test-harness-files/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/tmpshcwqol8/tasks/main-blivet.yml:131 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] TASK [include_tasks] *************************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/tests_change_fs_use_partitions.yml:14 included: /tmp/tmpshcwqol8/tests/get_unused_disk.yml for /home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [Find unused disks in the system] ********************************************************************************************************************************************************************* task path: /tmp/tmpshcwqol8/tests/get_unused_disk.yml:2 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "disks": ["vdb"]} TASK [set_fact] ******************************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/get_unused_disk.yml:8 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"unused_disks": ["vdb"]}, "changed": false} TASK [Exit playbook when there's no unused disks in the system] ******************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/get_unused_disk.yml:13 skipping: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {} META: TASK [Print unused disks] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/get_unused_disk.yml:19 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "unused_disks": [ "vdb" ] } TASK [Create an LVM partition with the default file system type] ******************************************************************************************************************************************* task path: /tmp/tmpshcwqol8/tests/tests_change_fs_use_partitions.yml:19 TASK [storage : define an empty list of pools to be used in testing] *************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main.yml:2 ok: [/home/till/lsr-test-harness-files/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/tmpshcwqol8/tasks/main.yml:6 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : include the appropriate backend tasks] ***************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main.yml:10 included: /tmp/tmpshcwqol8/tasks/main-blivet.yml for /home/till/lsr-test-harness-files/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/tmpshcwqol8/tasks/main-blivet.yml:2 skipping: [/home/till/lsr-test-harness-files/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/tmpshcwqol8/tasks/main-blivet.yml:7 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: python3-blivet"]} TASK [storage : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:15 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"all_vols": [], "pools": [], "vol_pools": [], "vols": [], "vols_by_pool": [], "volumes": []}, "changed": false} TASK [storage : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:23 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'name': 'bar', 'disks': ['vdb'], 'volumes': [{'name': 'test1', 'size': '5g', 'mount_point': '/opt/test1'}]}) => {"ansible_facts": {"pools": [{"disks": ["vdb"], "name": "bar", "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "5g"}]}]}, "ansible_loop_var": "pool", "changed": false, "pool": {"disks": ["vdb"], "name": "bar", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "5g"}]}} TASK [storage : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:30 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=[{'state': 'present', 'type': 'lvm', 'name': 'bar', 'disks': ['vdb'], 'volumes': [{'name': 'test1', 'size': '5g', 'mount_point': '/opt/test1'}]}, {'name': 'test1', 'size': '5g', 'mount_point': '/opt/test1'}]) => {"ansible_facts": {"vol_defaults": [{"fs_create_options": "", "fs_destroy_options": "-af", "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"}], "vol_pools": ["bar"], "vols": [{"mount_point": "/opt/test1", "name": "test1", "size": "5g"}]}, "ansible_loop_var": "item", "changed": false, "item": [{"disks": ["vdb"], "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 : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:37 ok: [/home/till/lsr-test-harness-files/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_destroy_options': '-af', 'fs_overwrite_existing': True, 'mount_point': '', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid'}]) => {"ansible_facts": {"all_vols": [{"fs_create_options": "", "fs_destroy_options": "-af", "fs_label": "", "fs_overwrite_existing": 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, "idx": 0, "item": [{"mount_point": "/opt/test1", "name": "test1", "size": "5g"}, {"fs_create_options": "", "fs_destroy_options": "-af", "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 : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:44 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'name': 'bar', 'disks': ['vdb'], 'volumes': [{'name': 'test1', 'size': '5g', 'mount_point': '/opt/test1'}]}) => {"ansible_facts": {"vols_by_pool": {"bar": [{"fs_create_options": "", "fs_destroy_options": "-af", "fs_label": "", "fs_overwrite_existing": 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"], "name": "bar", "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "5g"}]}} TASK [storage : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:49 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'name': 'bar', 'disks': ['vdb'], 'volumes': [{'name': 'test1', 'size': '5g', 'mount_point': '/opt/test1'}]}) => {"ansible_facts": {"pools": [{"disks": ["vdb"], "name": "bar", "state": "present", "type": "lvm", "volumes": [{"fs_create_options": "", "fs_destroy_options": "-af", "fs_label": "", "fs_overwrite_existing": 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": "pool", "changed": false, "idx": 0, "pool": {"disks": ["vdb"], "name": "bar", "state": "present", "type": "lvm", "volumes": [{"mount_point": "/opt/test1", "name": "test1", "size": "5g"}]}} TASK [storage : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:57 TASK [storage : set the list of pools for test verification] *********************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:72 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": [{"disks": ["vdb"], "name": "bar", "state": "present", "type": "lvm", "volumes": [{"fs_create_options": "", "fs_destroy_options": "-af", "fs_label": "", "fs_overwrite_existing": 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/tmpshcwqol8/tasks/main-blivet.yml:76 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:80 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "pools": [ { "disks": [ "vdb" ], "name": "bar", "state": "present", "type": "lvm", "volumes": [ { "fs_create_options": "", "fs_destroy_options": "-af", "fs_label": "", "fs_overwrite_existing": 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/tmpshcwqol8/tasks/main-blivet.yml:83 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "volumes": [] } TASK [storage : manage the pools] ************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:86 changed: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": ["create format lvmpv on /dev/vdb", "create device /dev/bar", "create device /dev/mapper/bar-test1", "create format xfs on /dev/mapper/bar-test1"], "changed": true, "leaves": ["/dev/sr0", "/dev/vda1", "/dev/vdc", "/dev/mapper/bar-test1"], "mounts": [{"dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "/dev/mapper/bar-test1", "state": "mounted"}], "removed_mounts": []} TASK [storage : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:92 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "blivet_output": { "actions": [ "create format lvmpv on /dev/vdb", "create device /dev/bar", "create device /dev/mapper/bar-test1", "create format xfs on /dev/mapper/bar-test1" ], "changed": true, "failed": false, "leaves": [ "/dev/sr0", "/dev/vda1", "/dev/vdc", "/dev/mapper/bar-test1" ], "mounts": [ { "dump": 0, "fstype": "xfs", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "/dev/mapper/bar-test1", "state": "mounted" } ], "removed_mounts": [] } } TASK [storage : remove obsolete mounts] ******************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:103 TASK [storage : add new mounts] **************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:111 changed: [/home/till/lsr-test-harness-files/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/tmpshcwqol8/tasks/main-blivet.yml:122 changed: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["systemctl", "daemon-reload"], "delta": "0:00:00.273648", "end": "2019-05-25 13:42:49.709112", "rc": 0, "start": "2019-05-25 13:42:49.435464", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [storage : Update facts] ****************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:131 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] TASK [include_tasks] *************************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/tests_change_fs_use_partitions.yml:31 included: /tmp/tmpshcwqol8/tests/verify-role-results.yml for /home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [set_fact] ******************************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/verify-role-results.yml:1 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_tests_list": ["verify-volumes"]}, "changed": false} TASK [Print out pool information] ************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/verify-role-results.yml:4 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools_list": [ { "disks": [ "vdb" ], "name": "bar", "state": "present", "type": "lvm", "volumes": [ { "fs_create_options": "", "fs_destroy_options": "-af", "fs_label": "", "fs_overwrite_existing": 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/tmpshcwqol8/tests/verify-role-results.yml:9 skipping: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {} TASK [Ensure the specified devices in the role were correctly configured in the user's system] ************************************************************************************************************* task path: /tmp/tmpshcwqol8/tests/verify-role-results.yml:14 included: /tmp/tmpshcwqol8/tests/test-verify-volumes.yml for /home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [Read the /etc/fstab file for volume existence] ******************************************************************************************************************************************************* task path: /tmp/tmpshcwqol8/tests/test-verify-volumes.yml:2 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/fstab"], "delta": "0:00:00.002449", "end": "2019-05-25 13:42:51.804624", "rc": 0, "start": "2019-05-25 13:42:51.802175", "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/tmpshcwqol8/tests/test-verify-volumes.yml:7 included: /tmp/tmpshcwqol8/tests/test-volumes-present-helper.yml for /home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [set_fact] ******************************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/test-volumes-present-helper.yml:2 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"mount_entries": []}, "changed": false} TASK [gather mounts related to each volume in the pool] **************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/test-volumes-present-helper.yml:5 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'size': '5g', 'fs_type': 'xfs', 'fs_label': '', 'fs_create_options': '', 'fs_destroy_options': '-af', 'fs_overwrite_existing': True, 'mount_point': '/opt/test1', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid', 'name': 'test1', 'pool': 'bar'}) => {"ansible_facts": {"mount_entries": [[{"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": "1c9c76e3-6a1e-485f-add0-6582aa3e200f"}]]}, "ansible_loop_var": "current_volume", "changed": false, "current_volume": {"fs_create_options": "", "fs_destroy_options": "-af", "fs_label": "", "fs_overwrite_existing": 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 [Ensure all lvm volumes were correctly managed in /etc/fstab and ansible_mounts.] ********************************************************************************************************************* task path: /tmp/tmpshcwqol8/tests/test-volumes-present-helper.yml:12 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'size': '5g', 'fs_type': 'xfs', 'fs_label': '', 'fs_create_options': '', 'fs_destroy_options': '-af', 'fs_overwrite_existing': True, 'mount_point': '/opt/test1', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid', 'name': 'test1', 'pool': 'bar'}) => { "ansible_loop_var": "current_volume", "changed": false, "current_volume": { "fs_create_options": "", "fs_destroy_options": "-af", "fs_label": "", "fs_overwrite_existing": 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" }, "idx": 0, "msg": "All assertions passed" } TASK [Ensure all lvm volumes were correctly managed in /etc/fstab and ansible_mounts.] ********************************************************************************************************************* task path: /tmp/tmpshcwqol8/tests/test-volumes-present-helper.yml:25 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'size': '5g', 'fs_type': 'xfs', 'fs_label': '', 'fs_create_options': '', 'fs_destroy_options': '-af', 'fs_overwrite_existing': True, 'mount_point': '/opt/test1', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid', 'name': 'test1', 'pool': 'bar'}) => { "ansible_loop_var": "current_volume", "changed": false, "current_volume": { "fs_create_options": "", "fs_destroy_options": "-af", "fs_label": "", "fs_overwrite_existing": 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" }, "idx": 0, "msg": "All assertions passed" } TASK [Ensure all lvm volumes were correctly managed in /etc/fstab.] **************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/test-volumes-present-helper.yml:38 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'size': '5g', 'fs_type': 'xfs', 'fs_label': '', 'fs_create_options': '', 'fs_destroy_options': '-af', 'fs_overwrite_existing': True, 'mount_point': '/opt/test1', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid', 'name': 'test1', 'pool': 'bar'}) => { "ansible_loop_var": "current_volume", "changed": false, "current_volume": { "fs_create_options": "", "fs_destroy_options": "-af", "fs_label": "", "fs_overwrite_existing": 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" }, "msg": "All assertions passed" } TASK [resolve_blockdev] ************************************************************************************************************************************************************************************ task path: /tmp/tmpshcwqol8/tests/test-verify-volumes.yml:14 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/dev/mapper/bar-test1) => {"ansible_loop_var": "dev_id", "changed": false, "dev_id": "/dev/mapper/bar-test1", "device": "/dev/mapper/bar-test1"} TASK [resolve_blockdev] ************************************************************************************************************************************************************************************ task path: /tmp/tmpshcwqol8/tests/test-verify-volumes.yml:21 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/dev/vda1) => {"ansible_loop_var": "dev_id", "changed": false, "dev_id": "/dev/vda1", "device": "/dev/vda1"} ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/dev/mapper/bar-test1) => {"ansible_loop_var": "dev_id", "changed": false, "dev_id": "/dev/mapper/bar-test1", "device": "/dev/mapper/bar-test1"} TASK [set_fact] ******************************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/test-verify-volumes.yml:28 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"ansible_mount_devs": ["/dev/vda1", "/dev/mapper/bar-test1"], "blivet_mount_devs": ["/dev/mapper/bar-test1"], "removed_volumes": []}, "changed": false} TASK [set_fact] ******************************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/test-verify-volumes.yml:33 TASK [Verify the volumes with no pool were correctly managed] ********************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/test-verify-volumes.yml:40 TASK [Verify the present volumes with no pool were correctly managed] ************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/test-verify-volumes.yml:52 TASK [Verify the absent volumes with no pool are not in ansible_mounts] ************************************************************************************************************************************ task path: /tmp/tmpshcwqol8/tests/test-verify-volumes.yml:65 TASK [Change the LVM partition file system type to "ext4"] ************************************************************************************************************************************************* task path: /tmp/tmpshcwqol8/tests/tests_change_fs_use_partitions.yml:33 TASK [storage : define an empty list of pools to be used in testing] *************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main.yml:2 ok: [/home/till/lsr-test-harness-files/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/tmpshcwqol8/tasks/main.yml:6 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : include the appropriate backend tasks] ***************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main.yml:10 included: /tmp/tmpshcwqol8/tasks/main-blivet.yml for /home/till/lsr-test-harness-files/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/tmpshcwqol8/tasks/main-blivet.yml:2 skipping: [/home/till/lsr-test-harness-files/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/tmpshcwqol8/tasks/main-blivet.yml:7 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: python3-blivet"]} TASK [storage : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:15 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"all_vols": [], "pools": [], "vol_pools": [], "vols": [], "vols_by_pool": [], "volumes": []}, "changed": false} TASK [storage : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:23 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'name': 'bar', 'disks': ['vdb'], 'volumes': [{'name': 'test1', 'size': '5g', 'fs_type': 'ext4', 'mount_point': '/opt/test1'}]}) => {"ansible_facts": {"pools": [{"disks": ["vdb"], "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"], "name": "bar", "volumes": [{"fs_type": "ext4", "mount_point": "/opt/test1", "name": "test1", "size": "5g"}]}} TASK [storage : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:30 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=[{'state': 'present', 'type': 'lvm', 'name': 'bar', 'disks': ['vdb'], '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": {"vol_defaults": [{"fs_create_options": "", "fs_destroy_options": "-af", "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_destroy_options": "-af", "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"}], "vol_pools": ["bar"], "vols": [{"fs_type": "ext4", "mount_point": "/opt/test1", "name": "test1", "size": "5g"}]}, "ansible_loop_var": "item", "changed": false, "item": [{"disks": ["vdb"], "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 : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:37 ok: [/home/till/lsr-test-harness-files/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_destroy_options': '-af', 'fs_overwrite_existing': True, 'mount_point': '', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid'}]) => {"ansible_facts": {"all_vols": [{"fs_create_options": "", "fs_destroy_options": "-af", "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, "idx": 0, "item": [{"fs_type": "ext4", "mount_point": "/opt/test1", "name": "test1", "size": "5g"}, {"fs_create_options": "", "fs_destroy_options": "-af", "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 : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:44 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'name': 'bar', 'disks': ['vdb'], 'volumes': [{'name': 'test1', 'size': '5g', 'fs_type': 'ext4', 'mount_point': '/opt/test1'}]}) => {"ansible_facts": {"vols_by_pool": {"bar": [{"fs_create_options": "", "fs_destroy_options": "-af", "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"], "name": "bar", "state": "present", "type": "lvm", "volumes": [{"fs_type": "ext4", "mount_point": "/opt/test1", "name": "test1", "size": "5g"}]}} TASK [storage : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:49 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'name': 'bar', 'disks': ['vdb'], 'volumes': [{'name': 'test1', 'size': '5g', 'fs_type': 'ext4', 'mount_point': '/opt/test1'}]}) => {"ansible_facts": {"pools": [{"disks": ["vdb"], "name": "bar", "state": "present", "type": "lvm", "volumes": [{"fs_create_options": "", "fs_destroy_options": "-af", "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": "pool", "changed": false, "idx": 0, "pool": {"disks": ["vdb"], "name": "bar", "state": "present", "type": "lvm", "volumes": [{"fs_type": "ext4", "mount_point": "/opt/test1", "name": "test1", "size": "5g"}]}} TASK [storage : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:57 TASK [storage : set the list of pools for test verification] *********************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:72 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": [{"disks": ["vdb"], "name": "bar", "state": "present", "type": "lvm", "volumes": [{"fs_create_options": "", "fs_destroy_options": "-af", "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/tmpshcwqol8/tasks/main-blivet.yml:76 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:80 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "pools": [ { "disks": [ "vdb" ], "name": "bar", "state": "present", "type": "lvm", "volumes": [ { "fs_create_options": "", "fs_destroy_options": "-af", "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/tmpshcwqol8/tasks/main-blivet.yml:83 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "volumes": [] } TASK [storage : manage the pools] ************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:86 changed: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": ["destroy format xfs on /dev/mapper/bar-test1", "create format ext4 on /dev/mapper/bar-test1"], "changed": true, "leaves": ["/dev/sr0", "/dev/vda1", "/dev/mapper/bar-test1", "/dev/vdc"], "mounts": [{"dump": 0, "fstype": "ext4", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "/dev/mapper/bar-test1", "state": "mounted"}], "removed_mounts": [{"device": "/dev/mapper/bar-test1", "path": "/opt/test1"}, {"device": "/dev/mapper/bar-test1", "path": "/opt/test1"}]} TASK [storage : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:92 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "blivet_output": { "actions": [ "destroy format xfs on /dev/mapper/bar-test1", "create format ext4 on /dev/mapper/bar-test1" ], "changed": true, "failed": false, "leaves": [ "/dev/sr0", "/dev/vda1", "/dev/mapper/bar-test1", "/dev/vdc" ], "mounts": [ { "dump": 0, "fstype": "ext4", "opts": "defaults", "passno": 0, "path": "/opt/test1", "src": "/dev/mapper/bar-test1", "state": "mounted" } ], "removed_mounts": [ { "device": "/dev/mapper/bar-test1", "path": "/opt/test1" }, { "device": "/dev/mapper/bar-test1", "path": "/opt/test1" } ] } } TASK [storage : remove obsolete mounts] ******************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:103 changed: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'path': '/opt/test1', 'device': '/dev/mapper/bar-test1'}) => {"ansible_loop_var": "mount_info", "changed": true, "dump": "0", "fstab": "/etc/fstab", "mount_info": {"device": "/dev/mapper/bar-test1", "path": "/opt/test1"}, "name": "/opt/test1", "opts": "defaults", "passno": "0"} ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'path': '/opt/test1', 'device': '/dev/mapper/bar-test1'}) => {"ansible_loop_var": "mount_info", "changed": false, "dump": "0", "fstab": "/etc/fstab", "mount_info": {"device": "/dev/mapper/bar-test1", "path": "/opt/test1"}, "name": "/opt/test1", "opts": "defaults", "passno": "0"} TASK [storage : add new mounts] **************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:111 changed: [/home/till/lsr-test-harness-files/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/tmpshcwqol8/tasks/main-blivet.yml:122 changed: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["systemctl", "daemon-reload"], "delta": "0:00:00.322971", "end": "2019-05-25 13:43:08.468951", "rc": 0, "start": "2019-05-25 13:43:08.145980", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [storage : Update facts] ****************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:131 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] TASK [include_tasks] *************************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/tests_change_fs_use_partitions.yml:46 included: /tmp/tmpshcwqol8/tests/verify-role-results.yml for /home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [set_fact] ******************************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/verify-role-results.yml:1 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_tests_list": ["verify-volumes"]}, "changed": false} TASK [Print out pool information] ************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/verify-role-results.yml:4 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools_list": [ { "disks": [ "vdb" ], "name": "bar", "state": "present", "type": "lvm", "volumes": [ { "fs_create_options": "", "fs_destroy_options": "-af", "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/tmpshcwqol8/tests/verify-role-results.yml:9 skipping: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {} TASK [Ensure the specified devices in the role were correctly configured in the user's system] ************************************************************************************************************* task path: /tmp/tmpshcwqol8/tests/verify-role-results.yml:14 included: /tmp/tmpshcwqol8/tests/test-verify-volumes.yml for /home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [Read the /etc/fstab file for volume existence] ******************************************************************************************************************************************************* task path: /tmp/tmpshcwqol8/tests/test-verify-volumes.yml:2 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/fstab"], "delta": "0:00:00.002775", "end": "2019-05-25 13:43:10.708326", "rc": 0, "start": "2019-05-25 13:43:10.705551", "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/tmpshcwqol8/tests/test-verify-volumes.yml:7 included: /tmp/tmpshcwqol8/tests/test-volumes-present-helper.yml for /home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [set_fact] ******************************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/test-volumes-present-helper.yml:2 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"mount_entries": []}, "changed": false} TASK [gather mounts related to each volume in the pool] **************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/test-volumes-present-helper.yml:5 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'size': '5g', 'fs_type': 'ext4', 'fs_label': '', 'fs_create_options': '', 'fs_destroy_options': '-af', 'fs_overwrite_existing': True, 'mount_point': '/opt/test1', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid', 'name': 'test1', 'pool': 'bar'}) => {"ansible_facts": {"mount_entries": [[{"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": "9a3a9041-2cf5-45f6-851b-ca31b6dfb643"}]]}, "ansible_loop_var": "current_volume", "changed": false, "current_volume": {"fs_create_options": "", "fs_destroy_options": "-af", "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 [Ensure all lvm volumes were correctly managed in /etc/fstab and ansible_mounts.] ********************************************************************************************************************* task path: /tmp/tmpshcwqol8/tests/test-volumes-present-helper.yml:12 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'size': '5g', 'fs_type': 'ext4', 'fs_label': '', 'fs_create_options': '', 'fs_destroy_options': '-af', 'fs_overwrite_existing': True, 'mount_point': '/opt/test1', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid', 'name': 'test1', 'pool': 'bar'}) => { "ansible_loop_var": "current_volume", "changed": false, "current_volume": { "fs_create_options": "", "fs_destroy_options": "-af", "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" }, "idx": 0, "msg": "All assertions passed" } TASK [Ensure all lvm volumes were correctly managed in /etc/fstab and ansible_mounts.] ********************************************************************************************************************* task path: /tmp/tmpshcwqol8/tests/test-volumes-present-helper.yml:25 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'size': '5g', 'fs_type': 'ext4', 'fs_label': '', 'fs_create_options': '', 'fs_destroy_options': '-af', 'fs_overwrite_existing': True, 'mount_point': '/opt/test1', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid', 'name': 'test1', 'pool': 'bar'}) => { "ansible_loop_var": "current_volume", "changed": false, "current_volume": { "fs_create_options": "", "fs_destroy_options": "-af", "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" }, "idx": 0, "msg": "All assertions passed" } TASK [Ensure all lvm volumes were correctly managed in /etc/fstab.] **************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/test-volumes-present-helper.yml:38 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'size': '5g', 'fs_type': 'ext4', 'fs_label': '', 'fs_create_options': '', 'fs_destroy_options': '-af', 'fs_overwrite_existing': True, 'mount_point': '/opt/test1', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid', 'name': 'test1', 'pool': 'bar'}) => { "ansible_loop_var": "current_volume", "changed": false, "current_volume": { "fs_create_options": "", "fs_destroy_options": "-af", "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" }, "msg": "All assertions passed" } TASK [resolve_blockdev] ************************************************************************************************************************************************************************************ task path: /tmp/tmpshcwqol8/tests/test-verify-volumes.yml:14 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/dev/mapper/bar-test1) => {"ansible_loop_var": "dev_id", "changed": false, "dev_id": "/dev/mapper/bar-test1", "device": "/dev/mapper/bar-test1"} TASK [resolve_blockdev] ************************************************************************************************************************************************************************************ task path: /tmp/tmpshcwqol8/tests/test-verify-volumes.yml:21 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/dev/vda1) => {"ansible_loop_var": "dev_id", "changed": false, "dev_id": "/dev/vda1", "device": "/dev/vda1"} ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/dev/mapper/bar-test1) => {"ansible_loop_var": "dev_id", "changed": false, "dev_id": "/dev/mapper/bar-test1", "device": "/dev/mapper/bar-test1"} TASK [set_fact] ******************************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/test-verify-volumes.yml:28 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"ansible_mount_devs": ["/dev/vda1", "/dev/mapper/bar-test1"], "blivet_mount_devs": ["/dev/mapper/bar-test1"], "removed_volumes": []}, "changed": false} TASK [set_fact] ******************************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/test-verify-volumes.yml:33 TASK [Verify the volumes with no pool were correctly managed] ********************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/test-verify-volumes.yml:40 TASK [Verify the present volumes with no pool were correctly managed] ************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/test-verify-volumes.yml:52 TASK [Verify the absent volumes with no pool are not in ansible_mounts] ************************************************************************************************************************************ task path: /tmp/tmpshcwqol8/tests/test-verify-volumes.yml:65 META: ran handlers META: ran handlers PLAY RECAP ************************************************************************************************************************************************************************************************* /home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 : ok=85 changed=8 unreachable=0 failed=0 skipped=27 rescued=0 ignored=0 + cd /tmp/tmpshcwqol8/tests; TEST_SUBJECTS=/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_storage-25-db52957-fedora-30-cqpxlans/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmpshcwqol8/_setup.yml /tmp/tmpshcwqol8/tests/tests_change_mount.yml ansible-playbook 2.8.0 config file = /home/till/.ansible.cfg configured module search path = ['/home/till/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.7/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 3.7.3 (default, May 11 2019, 00:38:04) [GCC 9.1.1 20190503 (Red Hat 9.1.1-1)] Using /home/till/.ansible.cfg as config file PLAYBOOK: _setup.yml *************************************************************************************************************************************************************************************** 1 plays in /tmp/tmpshcwqol8/_setup.yml PLAY [Fail when only localhost is available] *************************************************************************************************************************************************************** META: ran handlers TASK [debug] *********************************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/_setup.yml:5 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "groups": { "all": [ "/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2" ], "localhost": [ "/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2" ], "subjects": [ "/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2" ], "ungrouped": [] } } TASK [fail] ************************************************************************************************************************************************************************************************ task path: /tmp/tmpshcwqol8/_setup.yml:7 skipping: [/home/till/lsr-test-harness-files/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 ************************************************************************************************************************************************************************************************* /home/till/lsr-test-harness-files/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/tmpshcwqol8/tests/tests_change_mount.yml PLAY [all] ************************************************************************************************************************************************************************************************* TASK [Gathering Facts] ************************************************************************************************************************************************************************************* task path: /tmp/tmpshcwqol8/tests/tests_change_mount.yml:2 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"ansible_all_ipv4_addresses": ["10.0.2.15"], "ansible_all_ipv6_addresses": ["fec0::5054:ff:fe12:3456", "fe80::5054:ff:fe12:3456"], "ansible_apparmor": {"status": "disabled"}, "ansible_architecture": "x86_64", "ansible_bios_date": "04/01/2014", "ansible_bios_version": "1.12.0-2.fc30", "ansible_cmdline": {"BOOT_IMAGE": "(hd0,msdos1)/boot/vmlinuz-5.0.9-301.fc30.x86_64", "console": "ttyS0,115200n8", "net.ifnames": "0", "no_timer_check": true, "ro": true, "root": "UUID=ea711a29-e460-4879-9d70-9da99ae021f9"}, "ansible_date_time": {"date": "2019-05-25", "day": "25", "epoch": "1558791813", "hour": "13", "iso8601": "2019-05-25T13:43:33Z", "iso8601_basic": "20190525T134333137902", "iso8601_basic_short": "20190525T134333", "iso8601_micro": "2019-05-25T13:43:33.138030Z", "minute": "43", "month": "05", "second": "33", "time": "13:43:33", "tz": "UTC", "tz_offset": "+0000", "weekday": "Saturday", "weekday_number": "6", "weeknumber": "20", "year": "2019"}, "ansible_default_ipv4": {"address": "10.0.2.15", "alias": "eth0", "broadcast": "10.0.2.255", "gateway": "10.0.2.2", "interface": "eth0", "macaddress": "52:54:00:12:34:56", "mtu": 1500, "netmask": "255.255.255.0", "network": "10.0.2.0", "type": "ether"}, "ansible_default_ipv6": {"address": "fec0::5054:ff:fe12:3456", "gateway": "fe80::2", "interface": "eth0", "macaddress": "52:54:00:12:34:56", "mtu": 1500, "prefix": "64", "scope": "site", "type": "ether"}, "ansible_device_links": {"ids": {"sr0": ["ata-QEMU_DVD-ROM_QM00003"]}, "labels": {"sr0": ["cidata"]}, "masters": {}, "uuids": {"sr0": ["2019-05-25-15-43-13-00"], "vda1": ["ea711a29-e460-4879-9d70-9da99ae021f9"]}}, "ansible_devices": {"sr0": {"holders": [], "host": "", "links": {"ids": ["ata-QEMU_DVD-ROM_QM00003"], "labels": ["cidata"], "masters": [], "uuids": ["2019-05-25-15-43-13-00"]}, "model": "QEMU DVD-ROM", "partitions": {}, "removable": "1", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "mq-deadline", "sectors": "728", "sectorsize": "2048", "size": "364.00 KB", "support_discard": "0", "vendor": "QEMU", "virtual": 1}, "vda": {"holders": [], "host": "", "links": {"ids": [], "labels": [], "masters": [], "uuids": []}, "model": null, "partitions": {"vda1": {"holders": [], "links": {"ids": [], "labels": [], "masters": [], "uuids": ["ea711a29-e460-4879-9d70-9da99ae021f9"]}, "sectors": "8386560", "sectorsize": 512, "size": "4.00 GB", "start": "2048", "uuid": "ea711a29-e460-4879-9d70-9da99ae021f9"}}, "removable": "0", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "mq-deadline", "sectors": "8388608", "sectorsize": "512", "size": "4.00 GB", "support_discard": "0", "vendor": "0x1af4", "virtual": 1}, "vdb": {"holders": [], "host": "", "links": {"ids": [], "labels": [], "masters": [], "uuids": []}, "model": null, "partitions": {}, "removable": "0", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "mq-deadline", "sectors": "20971520", "sectorsize": "512", "size": "10.00 GB", "support_discard": "0", "vendor": "0x1af4", "virtual": 1}, "vdc": {"holders": [], "host": "", "links": {"ids": [], "labels": [], "masters": [], "uuids": []}, "model": null, "partitions": {}, "removable": "0", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "mq-deadline", "sectors": "20971520", "sectorsize": "512", "size": "10.00 GB", "support_discard": "0", "vendor": "0x1af4", "virtual": 1}}, "ansible_distribution": "Fedora", "ansible_distribution_file_parsed": true, "ansible_distribution_file_path": "/etc/redhat-release", "ansible_distribution_file_variety": "RedHat", "ansible_distribution_major_version": "30", "ansible_distribution_release": "", "ansible_distribution_version": "30", "ansible_dns": {"nameservers": ["10.0.2.3"]}, "ansible_domain": "", "ansible_effective_group_id": 0, "ansible_effective_user_id": 0, "ansible_env": {"DBUS_SESSION_BUS_ADDRESS": "unix:path=/run/user/0/bus", "HOME": "/root", "LANG": "en_US.UTF-8", "LESSOPEN": "||/usr/bin/lesspipe.sh %s", "LOGNAME": "root", "LS_COLORS": "rs=0:di=38;5;33:ln=38;5;51:mh=00:pi=40;38;5;11:so=38;5;13:do=38;5;5:bd=48;5;232;38;5;11:cd=48;5;232;38;5;3:or=48;5;232;38;5;9:mi=01;05;37;41:su=48;5;196;38;5;15:sg=48;5;11;38;5;16:ca=48;5;196;38;5;226:tw=48;5;10;38;5;16:ow=48;5;10;38;5;21:st=48;5;21;38;5;15:ex=38;5;40:*.tar=38;5;9:*.tgz=38;5;9:*.arc=38;5;9:*.arj=38;5;9:*.taz=38;5;9:*.lha=38;5;9:*.lz4=38;5;9:*.lzh=38;5;9:*.lzma=38;5;9:*.tlz=38;5;9:*.txz=38;5;9:*.tzo=38;5;9:*.t7z=38;5;9:*.zip=38;5;9:*.z=38;5;9:*.dz=38;5;9:*.gz=38;5;9:*.lrz=38;5;9:*.lz=38;5;9:*.lzo=38;5;9:*.xz=38;5;9:*.zst=38;5;9:*.tzst=38;5;9:*.bz2=38;5;9:*.bz=38;5;9:*.tbz=38;5;9:*.tbz2=38;5;9:*.tz=38;5;9:*.deb=38;5;9:*.rpm=38;5;9:*.jar=38;5;9:*.war=38;5;9:*.ear=38;5;9:*.sar=38;5;9:*.rar=38;5;9:*.alz=38;5;9:*.ace=38;5;9:*.zoo=38;5;9:*.cpio=38;5;9:*.7z=38;5;9:*.rz=38;5;9:*.cab=38;5;9:*.wim=38;5;9:*.swm=38;5;9:*.dwm=38;5;9:*.esd=38;5;9:*.jpg=38;5;13:*.jpeg=38;5;13:*.mjpg=38;5;13:*.mjpeg=38;5;13:*.gif=38;5;13:*.bmp=38;5;13:*.pbm=38;5;13:*.pgm=38;5;13:*.ppm=38;5;13:*.tga=38;5;13:*.xbm=38;5;13:*.xpm=38;5;13:*.tif=38;5;13:*.tiff=38;5;13:*.png=38;5;13:*.svg=38;5;13:*.svgz=38;5;13:*.mng=38;5;13:*.pcx=38;5;13:*.mov=38;5;13:*.mpg=38;5;13:*.mpeg=38;5;13:*.m2v=38;5;13:*.mkv=38;5;13:*.webm=38;5;13:*.ogm=38;5;13:*.mp4=38;5;13:*.m4v=38;5;13:*.mp4v=38;5;13:*.vob=38;5;13:*.qt=38;5;13:*.nuv=38;5;13:*.wmv=38;5;13:*.asf=38;5;13:*.rm=38;5;13:*.rmvb=38;5;13:*.flc=38;5;13:*.avi=38;5;13:*.fli=38;5;13:*.flv=38;5;13:*.gl=38;5;13:*.dl=38;5;13:*.xcf=38;5;13:*.xwd=38;5;13:*.yuv=38;5;13:*.cgm=38;5;13:*.emf=38;5;13:*.ogv=38;5;13:*.ogx=38;5;13:*.aac=38;5;45:*.au=38;5;45:*.flac=38;5;45:*.m4a=38;5;45:*.mid=38;5;45:*.midi=38;5;45:*.mka=38;5;45:*.mp3=38;5;45:*.mpc=38;5;45:*.ogg=38;5;45:*.ra=38;5;45:*.wav=38;5;45:*.oga=38;5;45:*.opus=38;5;45:*.spx=38;5;45:*.xspf=38;5;45:", "MAIL": "/var/mail/root", "PATH": "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin", "PWD": "/root", "SELINUX_LEVEL_REQUESTED": "", "SELINUX_ROLE_REQUESTED": "", "SELINUX_USE_CURRENT_RANGE": "", "SHELL": "/bin/bash", "SHLVL": "1", "SSH_CLIENT": "10.0.2.2 38528 22", "SSH_CONNECTION": "10.0.2.2 38528 10.0.2.15 22", "SSH_TTY": "/dev/pts/0", "TERM": "xterm-256color", "USER": "root", "XDG_RUNTIME_DIR": "/run/user/0", "XDG_SESSION_CLASS": "user", "XDG_SESSION_ID": "1", "XDG_SESSION_TYPE": "tty", "_": "/usr/bin/python3"}, "ansible_eth0": {"active": true, "device": "eth0", "ipv4": {"address": "10.0.2.15", "broadcast": "10.0.2.255", "netmask": "255.255.255.0", "network": "10.0.2.0"}, "ipv6": [{"address": "fec0::5054:ff:fe12:3456", "prefix": "64", "scope": "site"}, {"address": "fe80::5054:ff:fe12:3456", "prefix": "64", "scope": "link"}], "macaddress": "52:54:00:12:34:56", "module": "virtio_net", "mtu": 1500, "pciid": "virtio0", "promisc": false, "speed": -1, "type": "ether"}, "ansible_fibre_channel_wwn": [], "ansible_fips": false, "ansible_form_factor": "Other", "ansible_fqdn": "ibm-p8-kvm-03-guest-02", "ansible_hostname": "ibm-p8-kvm-03-guest-02", "ansible_hostnqn": "", "ansible_interfaces": ["lo", "eth0"], "ansible_is_chroot": false, "ansible_iscsi_iqn": "", "ansible_kernel": "5.0.9-301.fc30.x86_64", "ansible_lo": {"active": true, "device": "lo", "ipv4": {"address": "127.0.0.1", "broadcast": "host", "netmask": "255.0.0.0", "network": "127.0.0.0"}, "ipv6": [{"address": "::1", "prefix": "128", "scope": "host"}], "mtu": 65536, "promisc": false, "type": "loopback"}, "ansible_local": {}, "ansible_lsb": {}, "ansible_machine": "x86_64", "ansible_machine_id": "9e29651c06c34901969dcc6af36e0468", "ansible_memfree_mb": 648, "ansible_memory_mb": {"nocache": {"free": 841, "used": 141}, "real": {"free": 648, "total": 982, "used": 334}, "swap": {"cached": 0, "free": 0, "total": 0, "used": 0}}, "ansible_memtotal_mb": 982, "ansible_mounts": [{"block_available": 731959, "block_size": 4096, "block_total": 1015472, "block_used": 283513, "device": "/dev/vda1", "fstype": "ext4", "inode_available": 233659, "inode_total": 262144, "inode_used": 28485, "mount": "/", "options": "rw,seclabel,relatime", "size_available": 2998104064, "size_total": 4159373312, "uuid": "ea711a29-e460-4879-9d70-9da99ae021f9"}], "ansible_nodename": "ibm-p8-kvm-03-guest-02", "ansible_os_family": "RedHat", "ansible_pkg_mgr": "dnf", "ansible_proc_cmdline": {"BOOT_IMAGE": "(hd0,msdos1)/boot/vmlinuz-5.0.9-301.fc30.x86_64", "console": ["tty1", "ttyS0,115200n8"], "net.ifnames": "0", "no_timer_check": true, "ro": true, "root": "UUID=ea711a29-e460-4879-9d70-9da99ae021f9"}, "ansible_processor": ["0", "GenuineIntel", "Intel(R) Core(TM) i7-7600U CPU @ 2.80GHz", "1", "GenuineIntel", "Intel(R) Core(TM) i7-7600U CPU @ 2.80GHz", "2", "GenuineIntel", "Intel(R) Core(TM) i7-7600U CPU @ 2.80GHz"], "ansible_processor_cores": 1, "ansible_processor_count": 3, "ansible_processor_threads_per_core": 1, "ansible_processor_vcpus": 3, "ansible_product_name": "Standard PC (i440FX + PIIX, 1996)", "ansible_product_serial": "NA", "ansible_product_uuid": "NA", "ansible_product_version": "pc-i440fx-3.1", "ansible_python": {"executable": "/usr/bin/python3", "has_sslcontext": true, "type": "cpython", "version": {"major": 3, "micro": 3, "minor": 7, "releaselevel": "final", "serial": 0}, "version_info": [3, 7, 3, "final", 0]}, "ansible_python_version": "3.7.3", "ansible_real_group_id": 0, "ansible_real_user_id": 0, "ansible_selinux": {"config_mode": "enforcing", "mode": "enforcing", "policyvers": 31, "status": "enabled", "type": "targeted"}, "ansible_selinux_python_present": true, "ansible_service_mgr": "systemd", "ansible_ssh_host_key_ecdsa_public": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBLu0opMR3e9k8Pn4MbOzDxQKkQTQnuPa/tzcZhrJD5w/4qT777+edWShYc7MEnDXXq82SNVsToR8gwejkDYDojw=", "ansible_ssh_host_key_ed25519_public": "AAAAC3NzaC1lZDI1NTE5AAAAIAT4GHCa6NIiKkjHjSLAPOVhsmsIFbTxXaDQXjrrMD7x", "ansible_ssh_host_key_rsa_public": "AAAAB3NzaC1yc2EAAAADAQABAAABAQCcyefL9IFyY6+E+p2KLssjPusT0qcBwPx6iO1768q1BCwjXCpPjAZPkDTHnOs/x7lEdgX3YHbo9t2saW4l0522w2SwsnaXyn7y/2fUmhzW/0mLBvOOCQVHtpGFi2IveoCcqrszaWemmNeqZcuMPkZWs8UuPrmmRWgM2JZot03fTjWJ2PIGaSdBS0tmZaqhh+mYStKdGv09wnPuDKKGaZmqEC4P8Q7SY1yIPiADUzH8H/gdzKAoishAISlkXzEP9y59uJlEi83E5EOZ1hUZ26NRN/SKBXqoNS8xchBlythCFubVjd5btKa6dkxkRJDHSdAS1RZpBZf7GFUn/6HkX1d7", "ansible_swapfree_mb": 0, "ansible_swaptotal_mb": 0, "ansible_system": "Linux", "ansible_system_capabilities": ["cap_chown", "cap_dac_override", "cap_dac_read_search", "cap_fowner", "cap_fsetid", "cap_kill", "cap_setgid", "cap_setuid", "cap_setpcap", "cap_linux_immutable", "cap_net_bind_service", "cap_net_broadcast", "cap_net_admin", "cap_net_raw", "cap_ipc_lock", "cap_ipc_owner", "cap_sys_module", "cap_sys_rawio", "cap_sys_chroot", "cap_sys_ptrace", "cap_sys_pacct", "cap_sys_admin", "cap_sys_boot", "cap_sys_nice", "cap_sys_resource", "cap_sys_time", "cap_sys_tty_config", "cap_mknod", "cap_lease", "cap_audit_write", "cap_audit_control", "cap_setfcap", "cap_mac_override", "cap_mac_admin", "cap_syslog", "cap_wake_alarm", "cap_block_suspend", "cap_audit_read+ep"], "ansible_system_capabilities_enforced": "True", "ansible_system_vendor": "QEMU", "ansible_uptime_seconds": 16, "ansible_user_dir": "/root", "ansible_user_gecos": "root", "ansible_user_gid": 0, "ansible_user_id": "root", "ansible_user_shell": "/bin/bash", "ansible_user_uid": 0, "ansible_userspace_architecture": "x86_64", "ansible_userspace_bits": "64", "ansible_virtualization_role": "guest", "ansible_virtualization_type": "kvm", "gather_subset": ["all"], "module_setup": true}, "changed": false} META: ran handlers TASK [include_role : storage] ****************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/tests_change_mount.yml:10 TASK [storage : define an empty list of pools to be used in testing] *************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main.yml:2 ok: [/home/till/lsr-test-harness-files/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/tmpshcwqol8/tasks/main.yml:6 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : include the appropriate backend tasks] ***************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main.yml:10 included: /tmp/tmpshcwqol8/tasks/main-blivet.yml for /home/till/lsr-test-harness-files/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/tmpshcwqol8/tasks/main-blivet.yml:2 skipping: [/home/till/lsr-test-harness-files/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/tmpshcwqol8/tasks/main-blivet.yml:7 changed: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: python3-blivet", "Installed: libblockdev-kbd-2.21-3.fc30.x86_64", "Installed: lvm2-2.02.183-3.fc30.x86_64", "Installed: libblockdev-loop-2.21-3.fc30.x86_64", "Installed: libblockdev-lvm-2.21-3.fc30.x86_64", "Installed: lvm2-libs-2.02.183-3.fc30.x86_64", "Installed: gdisk-1.0.4-4.fc30.x86_64", "Installed: lzo-2.08-15.fc30.x86_64", "Installed: python3-blivet-1:3.1.3-3.fc30.noarch", "Installed: libblockdev-mdraid-2.21-3.fc30.x86_64", "Installed: libblockdev-mpath-2.21-3.fc30.x86_64", "Installed: daxctl-libs-65-1.fc30.x86_64", "Installed: gobject-introspection-1.60.1-2.fc30.x86_64", "Installed: libblockdev-nvdimm-2.21-3.fc30.x86_64", "Installed: libblockdev-part-2.21-3.fc30.x86_64", "Installed: python3-blockdev-2.21-3.fc30.x86_64", "Installed: sgpio-1.2.0.10-23.fc30.x86_64", "Installed: libblockdev-swap-2.21-3.fc30.x86_64", "Installed: lsof-4.91-3.fc30.x86_64", "Installed: device-mapper-event-1.02.154-3.fc30.x86_64", "Installed: python3-bytesize-2.0-1.fc30.x86_64", "Installed: libblockdev-utils-2.21-3.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: device-mapper-multipath-libs-0.7.9-6.git2df6110.fc30.x86_64", "Installed: nss-3.44.0-2.fc30.x86_64", "Installed: device-mapper-persistent-data-0.7.6-4.fc30.x86_64", "Installed: libbytesize-2.0-1.fc30.x86_64", "Installed: nss-softokn-3.44.0-2.fc30.x86_64", "Installed: nss-softokn-freebl-3.44.0-2.fc30.x86_64", "Installed: volume_key-libs-0.3.12-3.fc30.x86_64", "Installed: nss-sysinit-3.44.0-2.fc30.x86_64", "Installed: bcache-tools-1.0.8-15.fc30.x86_64", "Installed: nss-util-3.44.0-2.fc30.x86_64", "Installed: btrfs-progs-4.20.2-1.fc30.x86_64", "Installed: nspr-4.21.0-1.fc30.x86_64", "Installed: python3-pyudev-0.21.0-10.fc30.noarch", "Installed: mdadm-4.1-rc2.0.3.fc30.x86_64", "Installed: blivet-data-1:3.1.3-3.fc30.noarch", "Installed: python3-gobject-base-3.32.1-1.fc30.x86_64", "Installed: python3-pyparted-1:3.11.2-1.fc30.x86_64", "Installed: libblockdev-2.21-3.fc30.x86_64", "Installed: libaio-0.3.111-4.fc30.x86_64", "Installed: libblockdev-btrfs-2.21-3.fc30.x86_64", "Installed: libblockdev-crypto-2.21-3.fc30.x86_64", "Installed: userspace-rcu-0.10.1-5.fc30.x86_64", "Installed: ndctl-65-1.fc30.x86_64", "Installed: libblockdev-dm-2.21-3.fc30.x86_64", "Installed: dmraid-1.0.0.rc16-41.fc30.x86_64", "Installed: ndctl-libs-65-1.fc30.x86_64", "Installed: dmraid-events-1.0.0.rc16-41.fc30.x86_64", "Installed: libblockdev-fs-2.21-3.fc30.x86_64"]} TASK [storage : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:15 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"all_vols": [], "pools": [], "vol_pools": [], "vols": [], "vols_by_pool": [], "volumes": []}, "changed": false} TASK [storage : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:23 TASK [storage : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:30 TASK [storage : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:37 skipping: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [storage : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:44 TASK [storage : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:49 TASK [storage : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:57 TASK [storage : set the list of pools for test verification] *********************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:72 ok: [/home/till/lsr-test-harness-files/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/tmpshcwqol8/tasks/main-blivet.yml:76 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:80 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "pools": [] } TASK [storage : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:83 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "volumes": [] } TASK [storage : manage the pools] ************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:86 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": [], "mounts": [], "removed_mounts": []} TASK [storage : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:92 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "blivet_output": { "actions": [], "changed": false, "failed": false, "leaves": [], "mounts": [], "removed_mounts": [] } } TASK [storage : remove obsolete mounts] ******************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:103 TASK [storage : add new mounts] **************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:111 TASK [storage : tell systemd to refresh its view of /etc/fstab] ******************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:122 skipping: [/home/till/lsr-test-harness-files/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/tmpshcwqol8/tasks/main-blivet.yml:131 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] TASK [include_tasks] *************************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/tests_change_mount.yml:13 included: /tmp/tmpshcwqol8/tests/get_unused_disk.yml for /home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [Find unused disks in the system] ********************************************************************************************************************************************************************* task path: /tmp/tmpshcwqol8/tests/get_unused_disk.yml:2 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "disks": ["vdb"]} TASK [set_fact] ******************************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/get_unused_disk.yml:8 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"unused_disks": ["vdb"]}, "changed": false} TASK [Exit playbook when there's no unused disks in the system] ******************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/get_unused_disk.yml:13 skipping: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {} META: TASK [Print unused disks] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/get_unused_disk.yml:19 ok: [/home/till/lsr-test-harness-files/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/tmpshcwqol8/tests/tests_change_mount.yml:18 TASK [storage : define an empty list of pools to be used in testing] *************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main.yml:2 ok: [/home/till/lsr-test-harness-files/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/tmpshcwqol8/tasks/main.yml:6 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : include the appropriate backend tasks] ***************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main.yml:10 included: /tmp/tmpshcwqol8/tasks/main-blivet.yml for /home/till/lsr-test-harness-files/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/tmpshcwqol8/tasks/main-blivet.yml:2 skipping: [/home/till/lsr-test-harness-files/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/tmpshcwqol8/tasks/main-blivet.yml:7 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: python3-blivet"]} TASK [storage : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:15 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"all_vols": [], "pools": [], "vol_pools": [], "vols": [], "vols_by_pool": [], "volumes": []}, "changed": false} TASK [storage : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:23 ok: [/home/till/lsr-test-harness-files/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": {"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 : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:30 ok: [/home/till/lsr-test-harness-files/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": {"vol_defaults": [{"fs_create_options": "", "fs_destroy_options": "-af", "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"}], "vol_pools": ["foo"], "vols": [{"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 : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:37 ok: [/home/till/lsr-test-harness-files/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_destroy_options': '-af', 'fs_overwrite_existing': True, 'mount_point': '', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid'}]) => {"ansible_facts": {"all_vols": [{"fs_create_options": "", "fs_destroy_options": "-af", "fs_label": "", "fs_overwrite_existing": true, "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, "idx": 0, "item": [{"mount_point": "/opt/test1", "name": "test1", "size": "3g"}, {"fs_create_options": "", "fs_destroy_options": "-af", "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 : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:44 ok: [/home/till/lsr-test-harness-files/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": {"vols_by_pool": {"foo": [{"fs_create_options": "", "fs_destroy_options": "-af", "fs_label": "", "fs_overwrite_existing": true, "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 : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:49 ok: [/home/till/lsr-test-harness-files/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": {"pools": [{"disks": ["vdb"], "name": "foo", "state": "present", "type": "lvm", "volumes": [{"fs_create_options": "", "fs_destroy_options": "-af", "fs_label": "", "fs_overwrite_existing": true, "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": "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 : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:57 TASK [storage : set the list of pools for test verification] *********************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:72 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": [{"disks": ["vdb"], "name": "foo", "state": "present", "type": "lvm", "volumes": [{"fs_create_options": "", "fs_destroy_options": "-af", "fs_label": "", "fs_overwrite_existing": true, "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/tmpshcwqol8/tasks/main-blivet.yml:76 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:80 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "pools": [ { "disks": [ "vdb" ], "name": "foo", "state": "present", "type": "lvm", "volumes": [ { "fs_create_options": "", "fs_destroy_options": "-af", "fs_label": "", "fs_overwrite_existing": true, "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/tmpshcwqol8/tasks/main-blivet.yml:83 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "volumes": [] } TASK [storage : manage the pools] ************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:86 changed: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": ["create format lvmpv on /dev/vdb", "create device /dev/foo", "create device /dev/mapper/foo-test1", "create format xfs on /dev/mapper/foo-test1"], "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"}], "removed_mounts": []} TASK [storage : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:92 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "blivet_output": { "actions": [ "create format lvmpv on /dev/vdb", "create device /dev/foo", "create device /dev/mapper/foo-test1", "create format xfs on /dev/mapper/foo-test1" ], "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" } ], "removed_mounts": [] } } TASK [storage : remove obsolete mounts] ******************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:103 TASK [storage : add new mounts] **************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:111 changed: [/home/till/lsr-test-harness-files/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/tmpshcwqol8/tasks/main-blivet.yml:122 changed: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["systemctl", "daemon-reload"], "delta": "0:00:00.384872", "end": "2019-05-25 13:45:06.798951", "rc": 0, "start": "2019-05-25 13:45:06.414079", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [storage : Update facts] ****************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:131 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] TASK [include_tasks] *************************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/tests_change_mount.yml:30 included: /tmp/tmpshcwqol8/tests/verify-role-results.yml for /home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [set_fact] ******************************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/verify-role-results.yml:1 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_tests_list": ["verify-volumes"]}, "changed": false} TASK [Print out pool information] ************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/verify-role-results.yml:4 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools_list": [ { "disks": [ "vdb" ], "name": "foo", "state": "present", "type": "lvm", "volumes": [ { "fs_create_options": "", "fs_destroy_options": "-af", "fs_label": "", "fs_overwrite_existing": true, "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/tmpshcwqol8/tests/verify-role-results.yml:9 skipping: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {} TASK [Ensure the specified devices in the role were correctly configured in the user's system] ************************************************************************************************************* task path: /tmp/tmpshcwqol8/tests/verify-role-results.yml:14 included: /tmp/tmpshcwqol8/tests/test-verify-volumes.yml for /home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [Read the /etc/fstab file for volume existence] ******************************************************************************************************************************************************* task path: /tmp/tmpshcwqol8/tests/test-verify-volumes.yml:2 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/fstab"], "delta": "0:00:00.010912", "end": "2019-05-25 13:45:09.268022", "rc": 0, "start": "2019-05-25 13:45:09.257110", "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/tmpshcwqol8/tests/test-verify-volumes.yml:7 included: /tmp/tmpshcwqol8/tests/test-volumes-present-helper.yml for /home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [set_fact] ******************************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/test-volumes-present-helper.yml:2 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"mount_entries": []}, "changed": false} TASK [gather mounts related to each volume in the pool] **************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/test-volumes-present-helper.yml:5 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'size': '3g', 'fs_type': 'xfs', 'fs_label': '', 'fs_create_options': '', 'fs_destroy_options': '-af', 'fs_overwrite_existing': True, 'mount_point': '/opt/test1', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid', 'name': 'test1', 'pool': 'foo'}) => {"ansible_facts": {"mount_entries": [[{"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": "54eb7d43-897c-4b2b-bbe0-ccd7f2ca23d4"}]]}, "ansible_loop_var": "current_volume", "changed": false, "current_volume": {"fs_create_options": "", "fs_destroy_options": "-af", "fs_label": "", "fs_overwrite_existing": true, "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 [Ensure all lvm volumes were correctly managed in /etc/fstab and ansible_mounts.] ********************************************************************************************************************* task path: /tmp/tmpshcwqol8/tests/test-volumes-present-helper.yml:12 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'size': '3g', 'fs_type': 'xfs', 'fs_label': '', 'fs_create_options': '', 'fs_destroy_options': '-af', 'fs_overwrite_existing': True, 'mount_point': '/opt/test1', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid', 'name': 'test1', 'pool': 'foo'}) => { "ansible_loop_var": "current_volume", "changed": false, "current_volume": { "fs_create_options": "", "fs_destroy_options": "-af", "fs_label": "", "fs_overwrite_existing": true, "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" }, "idx": 0, "msg": "All assertions passed" } TASK [Ensure all lvm volumes were correctly managed in /etc/fstab and ansible_mounts.] ********************************************************************************************************************* task path: /tmp/tmpshcwqol8/tests/test-volumes-present-helper.yml:25 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'size': '3g', 'fs_type': 'xfs', 'fs_label': '', 'fs_create_options': '', 'fs_destroy_options': '-af', 'fs_overwrite_existing': True, 'mount_point': '/opt/test1', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid', 'name': 'test1', 'pool': 'foo'}) => { "ansible_loop_var": "current_volume", "changed": false, "current_volume": { "fs_create_options": "", "fs_destroy_options": "-af", "fs_label": "", "fs_overwrite_existing": true, "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" }, "idx": 0, "msg": "All assertions passed" } TASK [Ensure all lvm volumes were correctly managed in /etc/fstab.] **************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/test-volumes-present-helper.yml:38 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'size': '3g', 'fs_type': 'xfs', 'fs_label': '', 'fs_create_options': '', 'fs_destroy_options': '-af', 'fs_overwrite_existing': True, 'mount_point': '/opt/test1', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid', 'name': 'test1', 'pool': 'foo'}) => { "ansible_loop_var": "current_volume", "changed": false, "current_volume": { "fs_create_options": "", "fs_destroy_options": "-af", "fs_label": "", "fs_overwrite_existing": true, "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" }, "msg": "All assertions passed" } TASK [resolve_blockdev] ************************************************************************************************************************************************************************************ task path: /tmp/tmpshcwqol8/tests/test-verify-volumes.yml:14 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/dev/mapper/foo-test1) => {"ansible_loop_var": "dev_id", "changed": false, "dev_id": "/dev/mapper/foo-test1", "device": "/dev/mapper/foo-test1"} TASK [resolve_blockdev] ************************************************************************************************************************************************************************************ task path: /tmp/tmpshcwqol8/tests/test-verify-volumes.yml:21 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/dev/vda1) => {"ansible_loop_var": "dev_id", "changed": false, "dev_id": "/dev/vda1", "device": "/dev/vda1"} ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/dev/mapper/foo-test1) => {"ansible_loop_var": "dev_id", "changed": false, "dev_id": "/dev/mapper/foo-test1", "device": "/dev/mapper/foo-test1"} TASK [set_fact] ******************************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/test-verify-volumes.yml:28 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"ansible_mount_devs": ["/dev/vda1", "/dev/mapper/foo-test1"], "blivet_mount_devs": ["/dev/mapper/foo-test1"], "removed_volumes": []}, "changed": false} TASK [set_fact] ******************************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/test-verify-volumes.yml:33 TASK [Verify the volumes with no pool were correctly managed] ********************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/test-verify-volumes.yml:40 TASK [Verify the present volumes with no pool were correctly managed] ************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/test-verify-volumes.yml:52 TASK [Verify the absent volumes with no pool are not in ansible_mounts] ************************************************************************************************************************************ task path: /tmp/tmpshcwqol8/tests/test-verify-volumes.yml:65 TASK [Change the mount location to "/opt/test2"] *********************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/tests_change_mount.yml:32 TASK [storage : define an empty list of pools to be used in testing] *************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main.yml:2 ok: [/home/till/lsr-test-harness-files/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/tmpshcwqol8/tasks/main.yml:6 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : include the appropriate backend tasks] ***************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main.yml:10 included: /tmp/tmpshcwqol8/tasks/main-blivet.yml for /home/till/lsr-test-harness-files/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/tmpshcwqol8/tasks/main-blivet.yml:2 skipping: [/home/till/lsr-test-harness-files/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/tmpshcwqol8/tasks/main-blivet.yml:7 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: python3-blivet"]} TASK [storage : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:15 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"all_vols": [], "pools": [], "vol_pools": [], "vols": [], "vols_by_pool": [], "volumes": []}, "changed": false} TASK [storage : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:23 ok: [/home/till/lsr-test-harness-files/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": {"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 : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:30 ok: [/home/till/lsr-test-harness-files/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": {"vol_defaults": [{"fs_create_options": "", "fs_destroy_options": "-af", "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_destroy_options": "-af", "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"}], "vol_pools": ["foo"], "vols": [{"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 : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:37 ok: [/home/till/lsr-test-harness-files/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_destroy_options': '-af', 'fs_overwrite_existing': True, 'mount_point': '', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid'}]) => {"ansible_facts": {"all_vols": [{"fs_create_options": "", "fs_destroy_options": "-af", "fs_label": "", "fs_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, "idx": 0, "item": [{"mount_point": "/opt/test2", "name": "test1", "size": "3g"}, {"fs_create_options": "", "fs_destroy_options": "-af", "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 : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:44 ok: [/home/till/lsr-test-harness-files/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": {"vols_by_pool": {"foo": [{"fs_create_options": "", "fs_destroy_options": "-af", "fs_label": "", "fs_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 : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:49 ok: [/home/till/lsr-test-harness-files/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": {"pools": [{"disks": ["vdb"], "name": "foo", "state": "present", "type": "lvm", "volumes": [{"fs_create_options": "", "fs_destroy_options": "-af", "fs_label": "", "fs_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": "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 : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:57 TASK [storage : set the list of pools for test verification] *********************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:72 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": [{"disks": ["vdb"], "name": "foo", "state": "present", "type": "lvm", "volumes": [{"fs_create_options": "", "fs_destroy_options": "-af", "fs_label": "", "fs_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/tmpshcwqol8/tasks/main-blivet.yml:76 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:80 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "pools": [ { "disks": [ "vdb" ], "name": "foo", "state": "present", "type": "lvm", "volumes": [ { "fs_create_options": "", "fs_destroy_options": "-af", "fs_label": "", "fs_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/tmpshcwqol8/tasks/main-blivet.yml:83 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "volumes": [] } TASK [storage : manage the pools] ************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:86 ok: [/home/till/lsr-test-harness-files/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"}], "removed_mounts": [{"device": "/dev/mapper/foo-test1", "path": "/opt/test1"}]} TASK [storage : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:92 ok: [/home/till/lsr-test-harness-files/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" } ], "removed_mounts": [ { "device": "/dev/mapper/foo-test1", "path": "/opt/test1" } ] } } TASK [storage : remove obsolete mounts] ******************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:103 changed: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'path': '/opt/test1', 'device': '/dev/mapper/foo-test1'}) => {"ansible_loop_var": "mount_info", "changed": true, "dump": "0", "fstab": "/etc/fstab", "mount_info": {"device": "/dev/mapper/foo-test1", "path": "/opt/test1"}, "name": "/opt/test1", "opts": "defaults", "passno": "0"} TASK [storage : add new mounts] **************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:111 changed: [/home/till/lsr-test-harness-files/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/tmpshcwqol8/tasks/main-blivet.yml:122 changed: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["systemctl", "daemon-reload"], "delta": "0:00:00.434968", "end": "2019-05-25 13:45:25.221668", "rc": 0, "start": "2019-05-25 13:45:24.786700", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [storage : Update facts] ****************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:131 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] TASK [include_tasks] *************************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/tests_change_mount.yml:44 included: /tmp/tmpshcwqol8/tests/verify-role-results.yml for /home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [set_fact] ******************************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/verify-role-results.yml:1 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_tests_list": ["verify-volumes"]}, "changed": false} TASK [Print out pool information] ************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/verify-role-results.yml:4 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools_list": [ { "disks": [ "vdb" ], "name": "foo", "state": "present", "type": "lvm", "volumes": [ { "fs_create_options": "", "fs_destroy_options": "-af", "fs_label": "", "fs_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/tmpshcwqol8/tests/verify-role-results.yml:9 skipping: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {} TASK [Ensure the specified devices in the role were correctly configured in the user's system] ************************************************************************************************************* task path: /tmp/tmpshcwqol8/tests/verify-role-results.yml:14 included: /tmp/tmpshcwqol8/tests/test-verify-volumes.yml for /home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [Read the /etc/fstab file for volume existence] ******************************************************************************************************************************************************* task path: /tmp/tmpshcwqol8/tests/test-verify-volumes.yml:2 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/fstab"], "delta": "0:00:00.014487", "end": "2019-05-25 13:45:28.901306", "rc": 0, "start": "2019-05-25 13:45:28.886819", "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/tmpshcwqol8/tests/test-verify-volumes.yml:7 included: /tmp/tmpshcwqol8/tests/test-volumes-present-helper.yml for /home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [set_fact] ******************************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/test-volumes-present-helper.yml:2 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"mount_entries": []}, "changed": false} TASK [gather mounts related to each volume in the pool] **************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/test-volumes-present-helper.yml:5 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'size': '3g', 'fs_type': 'xfs', 'fs_label': '', 'fs_create_options': '', 'fs_destroy_options': '-af', 'fs_overwrite_existing': True, 'mount_point': '/opt/test2', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid', 'name': 'test1', 'pool': 'foo'}) => {"ansible_facts": {"mount_entries": [[{"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": "54eb7d43-897c-4b2b-bbe0-ccd7f2ca23d4"}]]}, "ansible_loop_var": "current_volume", "changed": false, "current_volume": {"fs_create_options": "", "fs_destroy_options": "-af", "fs_label": "", "fs_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 [Ensure all lvm volumes were correctly managed in /etc/fstab and ansible_mounts.] ********************************************************************************************************************* task path: /tmp/tmpshcwqol8/tests/test-volumes-present-helper.yml:12 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'size': '3g', 'fs_type': 'xfs', 'fs_label': '', 'fs_create_options': '', 'fs_destroy_options': '-af', 'fs_overwrite_existing': True, 'mount_point': '/opt/test2', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid', 'name': 'test1', 'pool': 'foo'}) => { "ansible_loop_var": "current_volume", "changed": false, "current_volume": { "fs_create_options": "", "fs_destroy_options": "-af", "fs_label": "", "fs_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" }, "idx": 0, "msg": "All assertions passed" } TASK [Ensure all lvm volumes were correctly managed in /etc/fstab and ansible_mounts.] ********************************************************************************************************************* task path: /tmp/tmpshcwqol8/tests/test-volumes-present-helper.yml:25 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'size': '3g', 'fs_type': 'xfs', 'fs_label': '', 'fs_create_options': '', 'fs_destroy_options': '-af', 'fs_overwrite_existing': True, 'mount_point': '/opt/test2', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid', 'name': 'test1', 'pool': 'foo'}) => { "ansible_loop_var": "current_volume", "changed": false, "current_volume": { "fs_create_options": "", "fs_destroy_options": "-af", "fs_label": "", "fs_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" }, "idx": 0, "msg": "All assertions passed" } TASK [Ensure all lvm volumes were correctly managed in /etc/fstab.] **************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/test-volumes-present-helper.yml:38 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'size': '3g', 'fs_type': 'xfs', 'fs_label': '', 'fs_create_options': '', 'fs_destroy_options': '-af', 'fs_overwrite_existing': True, 'mount_point': '/opt/test2', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid', 'name': 'test1', 'pool': 'foo'}) => { "ansible_loop_var": "current_volume", "changed": false, "current_volume": { "fs_create_options": "", "fs_destroy_options": "-af", "fs_label": "", "fs_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" }, "msg": "All assertions passed" } TASK [resolve_blockdev] ************************************************************************************************************************************************************************************ task path: /tmp/tmpshcwqol8/tests/test-verify-volumes.yml:14 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/dev/mapper/foo-test1) => {"ansible_loop_var": "dev_id", "changed": false, "dev_id": "/dev/mapper/foo-test1", "device": "/dev/mapper/foo-test1"} TASK [resolve_blockdev] ************************************************************************************************************************************************************************************ task path: /tmp/tmpshcwqol8/tests/test-verify-volumes.yml:21 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/dev/vda1) => {"ansible_loop_var": "dev_id", "changed": false, "dev_id": "/dev/vda1", "device": "/dev/vda1"} ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/dev/mapper/foo-test1) => {"ansible_loop_var": "dev_id", "changed": false, "dev_id": "/dev/mapper/foo-test1", "device": "/dev/mapper/foo-test1"} TASK [set_fact] ******************************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/test-verify-volumes.yml:28 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"ansible_mount_devs": ["/dev/vda1", "/dev/mapper/foo-test1"], "blivet_mount_devs": ["/dev/mapper/foo-test1"], "removed_volumes": []}, "changed": false} TASK [set_fact] ******************************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/test-verify-volumes.yml:33 TASK [Verify the volumes with no pool were correctly managed] ********************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/test-verify-volumes.yml:40 TASK [Verify the present volumes with no pool were correctly managed] ************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/test-verify-volumes.yml:52 TASK [Verify the absent volumes with no pool are not in ansible_mounts] ************************************************************************************************************************************ task path: /tmp/tmpshcwqol8/tests/test-verify-volumes.yml:65 META: ran handlers META: ran handlers PLAY RECAP ************************************************************************************************************************************************************************************************* /home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 : ok=85 changed=7 unreachable=0 failed=0 skipped=27 rescued=0 ignored=0 + cd /tmp/tmpshcwqol8/tests; TEST_SUBJECTS=/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_storage-25-db52957-fedora-30-cqpxlans/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmpshcwqol8/_setup.yml /tmp/tmpshcwqol8/tests/tests_create_disk_then_remove.yml ansible-playbook 2.8.0 config file = /home/till/.ansible.cfg configured module search path = ['/home/till/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.7/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 3.7.3 (default, May 11 2019, 00:38:04) [GCC 9.1.1 20190503 (Red Hat 9.1.1-1)] Using /home/till/.ansible.cfg as config file PLAYBOOK: _setup.yml *************************************************************************************************************************************************************************************** 1 plays in /tmp/tmpshcwqol8/_setup.yml PLAY [Fail when only localhost is available] *************************************************************************************************************************************************************** META: ran handlers TASK [debug] *********************************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/_setup.yml:5 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "groups": { "all": [ "/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2" ], "localhost": [ "/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2" ], "subjects": [ "/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2" ], "ungrouped": [] } } TASK [fail] ************************************************************************************************************************************************************************************************ task path: /tmp/tmpshcwqol8/_setup.yml:7 skipping: [/home/till/lsr-test-harness-files/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 ************************************************************************************************************************************************************************************************* /home/till/lsr-test-harness-files/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/tmpshcwqol8/tests/tests_create_disk_then_remove.yml PLAY [all] ************************************************************************************************************************************************************************************************* TASK [Gathering Facts] ************************************************************************************************************************************************************************************* task path: /tmp/tmpshcwqol8/tests/tests_create_disk_then_remove.yml:2 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"ansible_all_ipv4_addresses": ["10.0.2.15"], "ansible_all_ipv6_addresses": ["fec0::5054:ff:fe12:3456", "fe80::5054:ff:fe12:3456"], "ansible_apparmor": {"status": "disabled"}, "ansible_architecture": "x86_64", "ansible_bios_date": "04/01/2014", "ansible_bios_version": "1.12.0-2.fc30", "ansible_cmdline": {"BOOT_IMAGE": "(hd0,msdos1)/boot/vmlinuz-5.0.9-301.fc30.x86_64", "console": "ttyS0,115200n8", "net.ifnames": "0", "no_timer_check": true, "ro": true, "root": "UUID=ea711a29-e460-4879-9d70-9da99ae021f9"}, "ansible_date_time": {"date": "2019-05-25", "day": "25", "epoch": "1558791954", "hour": "13", "iso8601": "2019-05-25T13:45:54Z", "iso8601_basic": "20190525T134554544355", "iso8601_basic_short": "20190525T134554", "iso8601_micro": "2019-05-25T13:45:54.544493Z", "minute": "45", "month": "05", "second": "54", "time": "13:45:54", "tz": "UTC", "tz_offset": "+0000", "weekday": "Saturday", "weekday_number": "6", "weeknumber": "20", "year": "2019"}, "ansible_default_ipv4": {"address": "10.0.2.15", "alias": "eth0", "broadcast": "10.0.2.255", "gateway": "10.0.2.2", "interface": "eth0", "macaddress": "52:54:00:12:34:56", "mtu": 1500, "netmask": "255.255.255.0", "network": "10.0.2.0", "type": "ether"}, "ansible_default_ipv6": {"address": "fec0::5054:ff:fe12:3456", "gateway": "fe80::2", "interface": "eth0", "macaddress": "52:54:00:12:34:56", "mtu": 1500, "prefix": "64", "scope": "site", "type": "ether"}, "ansible_device_links": {"ids": {"sr0": ["ata-QEMU_DVD-ROM_QM00003"]}, "labels": {"sr0": ["cidata"]}, "masters": {}, "uuids": {"sr0": ["2019-05-25-15-45-32-00"], "vda1": ["ea711a29-e460-4879-9d70-9da99ae021f9"]}}, "ansible_devices": {"sr0": {"holders": [], "host": "", "links": {"ids": ["ata-QEMU_DVD-ROM_QM00003"], "labels": ["cidata"], "masters": [], "uuids": ["2019-05-25-15-45-32-00"]}, "model": "QEMU DVD-ROM", "partitions": {}, "removable": "1", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "mq-deadline", "sectors": "728", "sectorsize": "2048", "size": "364.00 KB", "support_discard": "0", "vendor": "QEMU", "virtual": 1}, "vda": {"holders": [], "host": "", "links": {"ids": [], "labels": [], "masters": [], "uuids": []}, "model": null, "partitions": {"vda1": {"holders": [], "links": {"ids": [], "labels": [], "masters": [], "uuids": ["ea711a29-e460-4879-9d70-9da99ae021f9"]}, "sectors": "8386560", "sectorsize": 512, "size": "4.00 GB", "start": "2048", "uuid": "ea711a29-e460-4879-9d70-9da99ae021f9"}}, "removable": "0", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "mq-deadline", "sectors": "8388608", "sectorsize": "512", "size": "4.00 GB", "support_discard": "0", "vendor": "0x1af4", "virtual": 1}, "vdb": {"holders": [], "host": "", "links": {"ids": [], "labels": [], "masters": [], "uuids": []}, "model": null, "partitions": {}, "removable": "0", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "mq-deadline", "sectors": "20971520", "sectorsize": "512", "size": "10.00 GB", "support_discard": "0", "vendor": "0x1af4", "virtual": 1}, "vdc": {"holders": [], "host": "", "links": {"ids": [], "labels": [], "masters": [], "uuids": []}, "model": null, "partitions": {}, "removable": "0", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "mq-deadline", "sectors": "20971520", "sectorsize": "512", "size": "10.00 GB", "support_discard": "0", "vendor": "0x1af4", "virtual": 1}}, "ansible_distribution": "Fedora", "ansible_distribution_file_parsed": true, "ansible_distribution_file_path": "/etc/redhat-release", "ansible_distribution_file_variety": "RedHat", "ansible_distribution_major_version": "30", "ansible_distribution_release": "", "ansible_distribution_version": "30", "ansible_dns": {"nameservers": ["10.0.2.3"]}, "ansible_domain": "", "ansible_effective_group_id": 0, "ansible_effective_user_id": 0, "ansible_env": {"DBUS_SESSION_BUS_ADDRESS": "unix:path=/run/user/0/bus", "HOME": "/root", "LANG": "en_US.UTF-8", "LESSOPEN": "||/usr/bin/lesspipe.sh %s", "LOGNAME": "root", "LS_COLORS": "rs=0:di=38;5;33:ln=38;5;51:mh=00:pi=40;38;5;11:so=38;5;13:do=38;5;5:bd=48;5;232;38;5;11:cd=48;5;232;38;5;3:or=48;5;232;38;5;9:mi=01;05;37;41:su=48;5;196;38;5;15:sg=48;5;11;38;5;16:ca=48;5;196;38;5;226:tw=48;5;10;38;5;16:ow=48;5;10;38;5;21:st=48;5;21;38;5;15:ex=38;5;40:*.tar=38;5;9:*.tgz=38;5;9:*.arc=38;5;9:*.arj=38;5;9:*.taz=38;5;9:*.lha=38;5;9:*.lz4=38;5;9:*.lzh=38;5;9:*.lzma=38;5;9:*.tlz=38;5;9:*.txz=38;5;9:*.tzo=38;5;9:*.t7z=38;5;9:*.zip=38;5;9:*.z=38;5;9:*.dz=38;5;9:*.gz=38;5;9:*.lrz=38;5;9:*.lz=38;5;9:*.lzo=38;5;9:*.xz=38;5;9:*.zst=38;5;9:*.tzst=38;5;9:*.bz2=38;5;9:*.bz=38;5;9:*.tbz=38;5;9:*.tbz2=38;5;9:*.tz=38;5;9:*.deb=38;5;9:*.rpm=38;5;9:*.jar=38;5;9:*.war=38;5;9:*.ear=38;5;9:*.sar=38;5;9:*.rar=38;5;9:*.alz=38;5;9:*.ace=38;5;9:*.zoo=38;5;9:*.cpio=38;5;9:*.7z=38;5;9:*.rz=38;5;9:*.cab=38;5;9:*.wim=38;5;9:*.swm=38;5;9:*.dwm=38;5;9:*.esd=38;5;9:*.jpg=38;5;13:*.jpeg=38;5;13:*.mjpg=38;5;13:*.mjpeg=38;5;13:*.gif=38;5;13:*.bmp=38;5;13:*.pbm=38;5;13:*.pgm=38;5;13:*.ppm=38;5;13:*.tga=38;5;13:*.xbm=38;5;13:*.xpm=38;5;13:*.tif=38;5;13:*.tiff=38;5;13:*.png=38;5;13:*.svg=38;5;13:*.svgz=38;5;13:*.mng=38;5;13:*.pcx=38;5;13:*.mov=38;5;13:*.mpg=38;5;13:*.mpeg=38;5;13:*.m2v=38;5;13:*.mkv=38;5;13:*.webm=38;5;13:*.ogm=38;5;13:*.mp4=38;5;13:*.m4v=38;5;13:*.mp4v=38;5;13:*.vob=38;5;13:*.qt=38;5;13:*.nuv=38;5;13:*.wmv=38;5;13:*.asf=38;5;13:*.rm=38;5;13:*.rmvb=38;5;13:*.flc=38;5;13:*.avi=38;5;13:*.fli=38;5;13:*.flv=38;5;13:*.gl=38;5;13:*.dl=38;5;13:*.xcf=38;5;13:*.xwd=38;5;13:*.yuv=38;5;13:*.cgm=38;5;13:*.emf=38;5;13:*.ogv=38;5;13:*.ogx=38;5;13:*.aac=38;5;45:*.au=38;5;45:*.flac=38;5;45:*.m4a=38;5;45:*.mid=38;5;45:*.midi=38;5;45:*.mka=38;5;45:*.mp3=38;5;45:*.mpc=38;5;45:*.ogg=38;5;45:*.ra=38;5;45:*.wav=38;5;45:*.oga=38;5;45:*.opus=38;5;45:*.spx=38;5;45:*.xspf=38;5;45:", "MAIL": "/var/mail/root", "PATH": "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin", "PWD": "/root", "SELINUX_LEVEL_REQUESTED": "", "SELINUX_ROLE_REQUESTED": "", "SELINUX_USE_CURRENT_RANGE": "", "SHELL": "/bin/bash", "SHLVL": "1", "SSH_CLIENT": "10.0.2.2 36036 22", "SSH_CONNECTION": "10.0.2.2 36036 10.0.2.15 22", "SSH_TTY": "/dev/pts/0", "TERM": "xterm-256color", "USER": "root", "XDG_RUNTIME_DIR": "/run/user/0", "XDG_SESSION_CLASS": "user", "XDG_SESSION_ID": "1", "XDG_SESSION_TYPE": "tty", "_": "/usr/bin/python3"}, "ansible_eth0": {"active": true, "device": "eth0", "ipv4": {"address": "10.0.2.15", "broadcast": "10.0.2.255", "netmask": "255.255.255.0", "network": "10.0.2.0"}, "ipv6": [{"address": "fec0::5054:ff:fe12:3456", "prefix": "64", "scope": "site"}, {"address": "fe80::5054:ff:fe12:3456", "prefix": "64", "scope": "link"}], "macaddress": "52:54:00:12:34:56", "module": "virtio_net", "mtu": 1500, "pciid": "virtio0", "promisc": false, "speed": -1, "type": "ether"}, "ansible_fibre_channel_wwn": [], "ansible_fips": false, "ansible_form_factor": "Other", "ansible_fqdn": "ibm-p8-kvm-03-guest-02", "ansible_hostname": "ibm-p8-kvm-03-guest-02", "ansible_hostnqn": "", "ansible_interfaces": ["eth0", "lo"], "ansible_is_chroot": false, "ansible_iscsi_iqn": "", "ansible_kernel": "5.0.9-301.fc30.x86_64", "ansible_lo": {"active": true, "device": "lo", "ipv4": {"address": "127.0.0.1", "broadcast": "host", "netmask": "255.0.0.0", "network": "127.0.0.0"}, "ipv6": [{"address": "::1", "prefix": "128", "scope": "host"}], "mtu": 65536, "promisc": false, "type": "loopback"}, "ansible_local": {}, "ansible_lsb": {}, "ansible_machine": "x86_64", "ansible_machine_id": "6f574417ba0d42b59ec97683beb528fb", "ansible_memfree_mb": 647, "ansible_memory_mb": {"nocache": {"free": 840, "used": 142}, "real": {"free": 647, "total": 982, "used": 335}, "swap": {"cached": 0, "free": 0, "total": 0, "used": 0}}, "ansible_memtotal_mb": 982, "ansible_mounts": [{"block_available": 731959, "block_size": 4096, "block_total": 1015472, "block_used": 283513, "device": "/dev/vda1", "fstype": "ext4", "inode_available": 233659, "inode_total": 262144, "inode_used": 28485, "mount": "/", "options": "rw,seclabel,relatime", "size_available": 2998104064, "size_total": 4159373312, "uuid": "ea711a29-e460-4879-9d70-9da99ae021f9"}], "ansible_nodename": "ibm-p8-kvm-03-guest-02", "ansible_os_family": "RedHat", "ansible_pkg_mgr": "dnf", "ansible_proc_cmdline": {"BOOT_IMAGE": "(hd0,msdos1)/boot/vmlinuz-5.0.9-301.fc30.x86_64", "console": ["tty1", "ttyS0,115200n8"], "net.ifnames": "0", "no_timer_check": true, "ro": true, "root": "UUID=ea711a29-e460-4879-9d70-9da99ae021f9"}, "ansible_processor": ["0", "GenuineIntel", "Intel(R) Core(TM) i7-7600U CPU @ 2.80GHz", "1", "GenuineIntel", "Intel(R) Core(TM) i7-7600U CPU @ 2.80GHz", "2", "GenuineIntel", "Intel(R) Core(TM) i7-7600U CPU @ 2.80GHz"], "ansible_processor_cores": 1, "ansible_processor_count": 3, "ansible_processor_threads_per_core": 1, "ansible_processor_vcpus": 3, "ansible_product_name": "Standard PC (i440FX + PIIX, 1996)", "ansible_product_serial": "NA", "ansible_product_uuid": "NA", "ansible_product_version": "pc-i440fx-3.1", "ansible_python": {"executable": "/usr/bin/python3", "has_sslcontext": true, "type": "cpython", "version": {"major": 3, "micro": 3, "minor": 7, "releaselevel": "final", "serial": 0}, "version_info": [3, 7, 3, "final", 0]}, "ansible_python_version": "3.7.3", "ansible_real_group_id": 0, "ansible_real_user_id": 0, "ansible_selinux": {"config_mode": "enforcing", "mode": "enforcing", "policyvers": 31, "status": "enabled", "type": "targeted"}, "ansible_selinux_python_present": true, "ansible_service_mgr": "systemd", "ansible_ssh_host_key_ecdsa_public": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBL5os85HTUBK2BT1c5YCXBYCllppPTGxLrORf7gqg3YutWyBkrF0cW3XAXbXDgADb4vxz6YOO3LII/JhT0Kp9ZU=", "ansible_ssh_host_key_ed25519_public": "AAAAC3NzaC1lZDI1NTE5AAAAIDUE9adzZz762fg3k7JOWNqp+uZJYZ5SSFx12nhPSnYb", "ansible_ssh_host_key_rsa_public": "AAAAB3NzaC1yc2EAAAADAQABAAABAQC4t3YPfh0QWvZt5s48Ok4hJi9urABlzl2vZC4Zyz/YxG+BNHLT+9/CH8/sKdlrsKCChxIMUuBwdkbOwPU96BWrlP/n0OK6Xv1CqvkP1fUXhrDZ9WIZj43YXpycCohwY2A5vU0NQgTW9uFIjQkRxHn98XBj5TVaHubXRbwwC0cnPYHUU8angYzTIR9k8que2b4U47pcAaTyfGB7Usp7ffp9XvIbzxAGCUPCKKv2oPJyNDvtisr3GOT9WoSMJqdJ7ZS6Omeu8ZnG4a+2Rf9nbSxsZlgPYkuCNq9nViiWzebN8aqgrE8jksvVa/Qx6TbRdyvdOSfREaLddpaiis4FAUfX", "ansible_swapfree_mb": 0, "ansible_swaptotal_mb": 0, "ansible_system": "Linux", "ansible_system_capabilities": ["cap_chown", "cap_dac_override", "cap_dac_read_search", "cap_fowner", "cap_fsetid", "cap_kill", "cap_setgid", "cap_setuid", "cap_setpcap", "cap_linux_immutable", "cap_net_bind_service", "cap_net_broadcast", "cap_net_admin", "cap_net_raw", "cap_ipc_lock", "cap_ipc_owner", "cap_sys_module", "cap_sys_rawio", "cap_sys_chroot", "cap_sys_ptrace", "cap_sys_pacct", "cap_sys_admin", "cap_sys_boot", "cap_sys_nice", "cap_sys_resource", "cap_sys_time", "cap_sys_tty_config", "cap_mknod", "cap_lease", "cap_audit_write", "cap_audit_control", "cap_setfcap", "cap_mac_override", "cap_mac_admin", "cap_syslog", "cap_wake_alarm", "cap_block_suspend", "cap_audit_read+ep"], "ansible_system_capabilities_enforced": "True", "ansible_system_vendor": "QEMU", "ansible_uptime_seconds": 18, "ansible_user_dir": "/root", "ansible_user_gecos": "root", "ansible_user_gid": 0, "ansible_user_id": "root", "ansible_user_shell": "/bin/bash", "ansible_user_uid": 0, "ansible_userspace_architecture": "x86_64", "ansible_userspace_bits": "64", "ansible_virtualization_role": "guest", "ansible_virtualization_type": "kvm", "gather_subset": ["all"], "module_setup": true}, "changed": false} META: ran handlers TASK [include_role : storage] ****************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/tests_create_disk_then_remove.yml:8 TASK [storage : define an empty list of pools to be used in testing] *************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main.yml:2 ok: [/home/till/lsr-test-harness-files/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/tmpshcwqol8/tasks/main.yml:6 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : include the appropriate backend tasks] ***************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main.yml:10 included: /tmp/tmpshcwqol8/tasks/main-blivet.yml for /home/till/lsr-test-harness-files/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/tmpshcwqol8/tasks/main-blivet.yml:2 skipping: [/home/till/lsr-test-harness-files/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/tmpshcwqol8/tasks/main-blivet.yml:7 changed: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: python3-blivet", "Installed: libblockdev-kbd-2.21-3.fc30.x86_64", "Installed: lvm2-2.02.183-3.fc30.x86_64", "Installed: libblockdev-loop-2.21-3.fc30.x86_64", "Installed: libblockdev-lvm-2.21-3.fc30.x86_64", "Installed: lvm2-libs-2.02.183-3.fc30.x86_64", "Installed: gdisk-1.0.4-4.fc30.x86_64", "Installed: lzo-2.08-15.fc30.x86_64", "Installed: python3-blivet-1:3.1.3-3.fc30.noarch", "Installed: libblockdev-mdraid-2.21-3.fc30.x86_64", "Installed: libblockdev-mpath-2.21-3.fc30.x86_64", "Installed: daxctl-libs-65-1.fc30.x86_64", "Installed: gobject-introspection-1.60.1-2.fc30.x86_64", "Installed: libblockdev-nvdimm-2.21-3.fc30.x86_64", "Installed: libblockdev-part-2.21-3.fc30.x86_64", "Installed: python3-blockdev-2.21-3.fc30.x86_64", "Installed: sgpio-1.2.0.10-23.fc30.x86_64", "Installed: libblockdev-swap-2.21-3.fc30.x86_64", "Installed: lsof-4.91-3.fc30.x86_64", "Installed: device-mapper-event-1.02.154-3.fc30.x86_64", "Installed: python3-bytesize-2.0-1.fc30.x86_64", "Installed: libblockdev-utils-2.21-3.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: device-mapper-multipath-libs-0.7.9-6.git2df6110.fc30.x86_64", "Installed: nss-3.44.0-2.fc30.x86_64", "Installed: device-mapper-persistent-data-0.7.6-4.fc30.x86_64", "Installed: libbytesize-2.0-1.fc30.x86_64", "Installed: nss-softokn-3.44.0-2.fc30.x86_64", "Installed: nss-softokn-freebl-3.44.0-2.fc30.x86_64", "Installed: volume_key-libs-0.3.12-3.fc30.x86_64", "Installed: nss-sysinit-3.44.0-2.fc30.x86_64", "Installed: bcache-tools-1.0.8-15.fc30.x86_64", "Installed: nss-util-3.44.0-2.fc30.x86_64", "Installed: btrfs-progs-4.20.2-1.fc30.x86_64", "Installed: nspr-4.21.0-1.fc30.x86_64", "Installed: python3-pyudev-0.21.0-10.fc30.noarch", "Installed: mdadm-4.1-rc2.0.3.fc30.x86_64", "Installed: blivet-data-1:3.1.3-3.fc30.noarch", "Installed: python3-gobject-base-3.32.1-1.fc30.x86_64", "Installed: python3-pyparted-1:3.11.2-1.fc30.x86_64", "Installed: libblockdev-2.21-3.fc30.x86_64", "Installed: libaio-0.3.111-4.fc30.x86_64", "Installed: libblockdev-btrfs-2.21-3.fc30.x86_64", "Installed: libblockdev-crypto-2.21-3.fc30.x86_64", "Installed: userspace-rcu-0.10.1-5.fc30.x86_64", "Installed: ndctl-65-1.fc30.x86_64", "Installed: libblockdev-dm-2.21-3.fc30.x86_64", "Installed: dmraid-1.0.0.rc16-41.fc30.x86_64", "Installed: ndctl-libs-65-1.fc30.x86_64", "Installed: dmraid-events-1.0.0.rc16-41.fc30.x86_64", "Installed: libblockdev-fs-2.21-3.fc30.x86_64"]} TASK [storage : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:15 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"all_vols": [], "pools": [], "vol_pools": [], "vols": [], "vols_by_pool": [], "volumes": []}, "changed": false} TASK [storage : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:23 TASK [storage : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:30 TASK [storage : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:37 skipping: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [storage : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:44 TASK [storage : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:49 TASK [storage : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:57 TASK [storage : set the list of pools for test verification] *********************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:72 ok: [/home/till/lsr-test-harness-files/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/tmpshcwqol8/tasks/main-blivet.yml:76 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:80 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "pools": [] } TASK [storage : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:83 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "volumes": [] } TASK [storage : manage the pools] ************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:86 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": [], "mounts": [], "removed_mounts": []} TASK [storage : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:92 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "blivet_output": { "actions": [], "changed": false, "failed": false, "leaves": [], "mounts": [], "removed_mounts": [] } } TASK [storage : remove obsolete mounts] ******************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:103 TASK [storage : add new mounts] **************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:111 TASK [storage : tell systemd to refresh its view of /etc/fstab] ******************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:122 skipping: [/home/till/lsr-test-harness-files/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/tmpshcwqol8/tasks/main-blivet.yml:131 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] TASK [include_tasks] *************************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/tests_create_disk_then_remove.yml:11 included: /tmp/tmpshcwqol8/tests/get_unused_disk.yml for /home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [Find unused disks in the system] ********************************************************************************************************************************************************************* task path: /tmp/tmpshcwqol8/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: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "disks": ["vdb"]} TASK [set_fact] ******************************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/get_unused_disk.yml:8 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"unused_disks": ["vdb"]}, "changed": false} TASK [Exit playbook when there's no unused disks in the system] ******************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/get_unused_disk.yml:13 skipping: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {} META: TASK [Print unused disks] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/get_unused_disk.yml:19 ok: [/home/till/lsr-test-harness-files/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/tmpshcwqol8/tests/tests_create_disk_then_remove.yml:15 TASK [storage : define an empty list of pools to be used in testing] *************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main.yml:2 ok: [/home/till/lsr-test-harness-files/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/tmpshcwqol8/tasks/main.yml:6 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : include the appropriate backend tasks] ***************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main.yml:10 included: /tmp/tmpshcwqol8/tasks/main-blivet.yml for /home/till/lsr-test-harness-files/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/tmpshcwqol8/tasks/main-blivet.yml:2 skipping: [/home/till/lsr-test-harness-files/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/tmpshcwqol8/tasks/main-blivet.yml:7 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: python3-blivet"]} TASK [storage : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:15 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"all_vols": [], "pools": [], "vol_pools": [], "vols": [], "vols_by_pool": [], "volumes": []}, "changed": false} TASK [storage : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:23 TASK [storage : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:30 TASK [storage : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:37 skipping: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [storage : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:44 TASK [storage : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:49 TASK [storage : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:57 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'name': 'test1', 'type': 'disk', 'disks': ['vdb'], 'mount_point': '/opt/test1'}) => {"ansible_facts": {"volumes": [{"disks": ["vdb"], "fs_create_options": "", "fs_destroy_options": "-af", "fs_label": "", "fs_overwrite_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 : set the list of pools for test verification] *********************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:72 ok: [/home/till/lsr-test-harness-files/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/tmpshcwqol8/tasks/main-blivet.yml:76 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": [{"disks": ["vdb"], "fs_create_options": "", "fs_destroy_options": "-af", "fs_label": "", "fs_overwrite_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 : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:80 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "pools": [] } TASK [storage : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:83 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "volumes": [ { "disks": [ "vdb" ], "fs_create_options": "", "fs_destroy_options": "-af", "fs_label": "", "fs_overwrite_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 : manage the pools] ************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:86 changed: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": ["create format xfs on /dev/vdb"], "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"}], "removed_mounts": []} TASK [storage : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:92 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "blivet_output": { "actions": [ "create format xfs on /dev/vdb" ], "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" } ], "removed_mounts": [] } } TASK [storage : remove obsolete mounts] ******************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:103 TASK [storage : add new mounts] **************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:111 changed: [/home/till/lsr-test-harness-files/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/tmpshcwqol8/tasks/main-blivet.yml:122 changed: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["systemctl", "daemon-reload"], "delta": "0:00:00.418942", "end": "2019-05-25 13:47:30.587762", "rc": 0, "start": "2019-05-25 13:47:30.168820", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [storage : Update facts] ****************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:131 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] TASK [include_tasks] *************************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/tests_create_disk_then_remove.yml:25 included: /tmp/tmpshcwqol8/tests/verify-role-results.yml for /home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [set_fact] ******************************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/verify-role-results.yml:1 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_tests_list": ["verify-volumes"]}, "changed": false} TASK [Print out pool information] ************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/verify-role-results.yml:4 skipping: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {} TASK [Print out volume information] ************************************************************************************************************************************************************************ task path: /tmp/tmpshcwqol8/tests/verify-role-results.yml:9 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_volumes_list": [ { "disks": [ "vdb" ], "fs_create_options": "", "fs_destroy_options": "-af", "fs_label": "", "fs_overwrite_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 [Ensure the specified devices in the role were correctly configured in the user's system] ************************************************************************************************************* task path: /tmp/tmpshcwqol8/tests/verify-role-results.yml:14 included: /tmp/tmpshcwqol8/tests/test-verify-volumes.yml for /home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [Read the /etc/fstab file for volume existence] ******************************************************************************************************************************************************* task path: /tmp/tmpshcwqol8/tests/test-verify-volumes.yml:2 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/fstab"], "delta": "0:00:00.004199", "end": "2019-05-25 13:47:33.112124", "rc": 0, "start": "2019-05-25 13:47:33.107925", "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/tmpshcwqol8/tests/test-verify-volumes.yml:7 TASK [resolve_blockdev] ************************************************************************************************************************************************************************************ task path: /tmp/tmpshcwqol8/tests/test-verify-volumes.yml:14 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/dev/vdb) => {"ansible_loop_var": "dev_id", "changed": false, "dev_id": "/dev/vdb", "device": "/dev/vdb"} TASK [resolve_blockdev] ************************************************************************************************************************************************************************************ task path: /tmp/tmpshcwqol8/tests/test-verify-volumes.yml:21 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/dev/vda1) => {"ansible_loop_var": "dev_id", "changed": false, "dev_id": "/dev/vda1", "device": "/dev/vda1"} ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/dev/vdb) => {"ansible_loop_var": "dev_id", "changed": false, "dev_id": "/dev/vdb", "device": "/dev/vdb"} TASK [set_fact] ******************************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/test-verify-volumes.yml:28 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"ansible_mount_devs": ["/dev/vda1", "/dev/vdb"], "blivet_mount_devs": ["/dev/vdb"], "removed_volumes": []}, "changed": false} TASK [set_fact] ******************************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/test-verify-volumes.yml:33 TASK [Verify the volumes with no pool were correctly managed] ********************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/test-verify-volumes.yml:40 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'disk', 'size': 0, 'fs_type': 'xfs', 'fs_label': '', 'fs_create_options': '', 'fs_destroy_options': '-af', 'fs_overwrite_existing': True, 'mount_point': '/opt/test1', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid', 'name': 'test1', 'disks': ['vdb']}) => { "ansible_loop_var": "current_volume", "changed": false, "current_volume": { "disks": [ "vdb" ], "fs_create_options": "", "fs_destroy_options": "-af", "fs_label": "", "fs_overwrite_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" }, "msg": "All assertions passed" } TASK [Verify the present volumes with no pool were correctly managed] ************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/test-verify-volumes.yml:52 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'disk', 'size': 0, 'fs_type': 'xfs', 'fs_label': '', 'fs_create_options': '', 'fs_destroy_options': '-af', 'fs_overwrite_existing': True, 'mount_point': '/opt/test1', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid', 'name': 'test1', 'disks': ['vdb']}) => { "ansible_loop_var": "current_volume", "changed": false, "current_volume": { "disks": [ "vdb" ], "fs_create_options": "", "fs_destroy_options": "-af", "fs_label": "", "fs_overwrite_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" }, "idx": 0, "msg": "All assertions passed" } TASK [Verify the absent volumes with no pool are not in ansible_mounts] ************************************************************************************************************************************ task path: /tmp/tmpshcwqol8/tests/test-verify-volumes.yml:65 TASK [Remove the disk device created above] **************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/tests_create_disk_then_remove.yml:27 TASK [storage : define an empty list of pools to be used in testing] *************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main.yml:2 ok: [/home/till/lsr-test-harness-files/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/tmpshcwqol8/tasks/main.yml:6 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : include the appropriate backend tasks] ***************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main.yml:10 included: /tmp/tmpshcwqol8/tasks/main-blivet.yml for /home/till/lsr-test-harness-files/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/tmpshcwqol8/tasks/main-blivet.yml:2 skipping: [/home/till/lsr-test-harness-files/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/tmpshcwqol8/tasks/main-blivet.yml:7 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: python3-blivet"]} TASK [storage : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:15 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"all_vols": [], "pools": [], "vol_pools": [], "vols": [], "vols_by_pool": [], "volumes": []}, "changed": false} TASK [storage : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:23 TASK [storage : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:30 TASK [storage : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:37 skipping: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [storage : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:44 TASK [storage : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:49 TASK [storage : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:57 ok: [/home/till/lsr-test-harness-files/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": {"volumes": [{"disks": ["vdb"], "fs_create_options": "", "fs_destroy_options": "-af", "fs_label": "", "fs_overwrite_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 : set the list of pools for test verification] *********************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:72 ok: [/home/till/lsr-test-harness-files/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/tmpshcwqol8/tasks/main-blivet.yml:76 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": [{"disks": ["vdb"], "fs_create_options": "", "fs_destroy_options": "-af", "fs_label": "", "fs_overwrite_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 : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:80 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "pools": [] } TASK [storage : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:83 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "volumes": [ { "disks": [ "vdb" ], "fs_create_options": "", "fs_destroy_options": "-af", "fs_label": "", "fs_overwrite_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 : manage the pools] ************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:86 changed: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": ["destroy format xfs on /dev/vdb"], "changed": true, "leaves": ["/dev/sr0", "/dev/vda1", "/dev/vdb", "/dev/vdc"], "mounts": [], "removed_mounts": [{"device": "/dev/vdb", "path": "/opt/test1"}]} TASK [storage : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:92 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "blivet_output": { "actions": [ "destroy format xfs on /dev/vdb" ], "changed": true, "failed": false, "leaves": [ "/dev/sr0", "/dev/vda1", "/dev/vdb", "/dev/vdc" ], "mounts": [], "removed_mounts": [ { "device": "/dev/vdb", "path": "/opt/test1" } ] } } TASK [storage : remove obsolete mounts] ******************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:103 changed: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'path': '/opt/test1', 'device': '/dev/vdb'}) => {"ansible_loop_var": "mount_info", "changed": true, "dump": "0", "fstab": "/etc/fstab", "mount_info": {"device": "/dev/vdb", "path": "/opt/test1"}, "name": "/opt/test1", "opts": "defaults", "passno": "0"} TASK [storage : add new mounts] **************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:111 TASK [storage : tell systemd to refresh its view of /etc/fstab] ******************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:122 changed: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["systemctl", "daemon-reload"], "delta": "0:00:00.391500", "end": "2019-05-25 13:47:47.604291", "rc": 0, "start": "2019-05-25 13:47:47.212791", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [storage : Update facts] ****************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:131 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] TASK [include_tasks] *************************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/tests_create_disk_then_remove.yml:38 included: /tmp/tmpshcwqol8/tests/verify-role-results.yml for /home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [set_fact] ******************************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/verify-role-results.yml:1 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_tests_list": ["verify-volumes"]}, "changed": false} TASK [Print out pool information] ************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/verify-role-results.yml:4 skipping: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {} TASK [Print out volume information] ************************************************************************************************************************************************************************ task path: /tmp/tmpshcwqol8/tests/verify-role-results.yml:9 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_volumes_list": [ { "disks": [ "vdb" ], "fs_create_options": "", "fs_destroy_options": "-af", "fs_label": "", "fs_overwrite_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 [Ensure the specified devices in the role were correctly configured in the user's system] ************************************************************************************************************* task path: /tmp/tmpshcwqol8/tests/verify-role-results.yml:14 included: /tmp/tmpshcwqol8/tests/test-verify-volumes.yml for /home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [Read the /etc/fstab file for volume existence] ******************************************************************************************************************************************************* task path: /tmp/tmpshcwqol8/tests/test-verify-volumes.yml:2 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/fstab"], "delta": "0:00:00.011465", "end": "2019-05-25 13:47:50.153527", "rc": 0, "start": "2019-05-25 13:47:50.142062", "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/tmpshcwqol8/tests/test-verify-volumes.yml:7 TASK [resolve_blockdev] ************************************************************************************************************************************************************************************ task path: /tmp/tmpshcwqol8/tests/test-verify-volumes.yml:14 TASK [resolve_blockdev] ************************************************************************************************************************************************************************************ task path: /tmp/tmpshcwqol8/tests/test-verify-volumes.yml:21 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/dev/vda1) => {"ansible_loop_var": "dev_id", "changed": false, "dev_id": "/dev/vda1", "device": "/dev/vda1"} TASK [set_fact] ******************************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/test-verify-volumes.yml:28 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"ansible_mount_devs": ["/dev/vda1"], "blivet_mount_devs": [], "removed_volumes": []}, "changed": false} TASK [set_fact] ******************************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/test-verify-volumes.yml:33 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'absent', 'type': 'disk', 'size': 0, 'fs_type': 'xfs', 'fs_label': '', 'fs_create_options': '', 'fs_destroy_options': '-af', 'fs_overwrite_existing': True, 'mount_point': '/opt/test1', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid', 'name': 'test1', 'disks': ['vdb']}) => {"ansible_facts": {"removed_volumes": [{"_device": {"device": "/dev/vdb", "path": "/opt/test1"}, "disks": ["vdb"], "fs_create_options": "", "fs_destroy_options": "-af", "fs_label": "", "fs_overwrite_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": "current_volume", "changed": false, "current_volume": {"disks": ["vdb"], "fs_create_options": "", "fs_destroy_options": "-af", "fs_label": "", "fs_overwrite_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 [Verify the volumes with no pool were correctly managed] ********************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/test-verify-volumes.yml:40 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'absent', 'type': 'disk', 'size': 0, 'fs_type': 'xfs', 'fs_label': '', 'fs_create_options': '', 'fs_destroy_options': '-af', 'fs_overwrite_existing': True, 'mount_point': '/opt/test1', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid', 'name': 'test1', 'disks': ['vdb']}) => { "ansible_loop_var": "current_volume", "changed": false, "current_volume": { "disks": [ "vdb" ], "fs_create_options": "", "fs_destroy_options": "-af", "fs_label": "", "fs_overwrite_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" }, "msg": "All assertions passed" } TASK [Verify the present volumes with no pool were correctly managed] ************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/test-verify-volumes.yml:52 TASK [Verify the absent volumes with no pool are not in ansible_mounts] ************************************************************************************************************************************ task path: /tmp/tmpshcwqol8/tests/test-verify-volumes.yml:65 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'absent', 'type': 'disk', 'size': 0, 'fs_type': 'xfs', 'fs_label': '', 'fs_create_options': '', 'fs_destroy_options': '-af', 'fs_overwrite_existing': True, 'mount_point': '/opt/test1', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid', 'name': 'test1', 'disks': ['vdb'], '_device': {'path': '/opt/test1', 'device': '/dev/vdb'}}) => { "ansible_loop_var": "current_volume", "changed": false, "current_volume": { "_device": { "device": "/dev/vdb", "path": "/opt/test1" }, "disks": [ "vdb" ], "fs_create_options": "", "fs_destroy_options": "-af", "fs_label": "", "fs_overwrite_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" }, "msg": "All assertions passed" } META: ran handlers META: ran handlers PLAY RECAP ************************************************************************************************************************************************************************************************* /home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 : ok=68 changed=7 unreachable=0 failed=0 skipped=34 rescued=0 ignored=0 + cd /tmp/tmpshcwqol8/tests; TEST_SUBJECTS=/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_storage-25-db52957-fedora-30-cqpxlans/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmpshcwqol8/_setup.yml /tmp/tmpshcwqol8/tests/tests_create_lvm_pool_then_remove.yml ansible-playbook 2.8.0 config file = /home/till/.ansible.cfg configured module search path = ['/home/till/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.7/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 3.7.3 (default, May 11 2019, 00:38:04) [GCC 9.1.1 20190503 (Red Hat 9.1.1-1)] Using /home/till/.ansible.cfg as config file PLAYBOOK: _setup.yml *************************************************************************************************************************************************************************************** 1 plays in /tmp/tmpshcwqol8/_setup.yml PLAY [Fail when only localhost is available] *************************************************************************************************************************************************************** META: ran handlers TASK [debug] *********************************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/_setup.yml:5 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "groups": { "all": [ "/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2" ], "localhost": [ "/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2" ], "subjects": [ "/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2" ], "ungrouped": [] } } TASK [fail] ************************************************************************************************************************************************************************************************ task path: /tmp/tmpshcwqol8/_setup.yml:7 skipping: [/home/till/lsr-test-harness-files/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 ************************************************************************************************************************************************************************************************* /home/till/lsr-test-harness-files/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/tmpshcwqol8/tests/tests_create_lvm_pool_then_remove.yml PLAY [all] ************************************************************************************************************************************************************************************************* TASK [Gathering Facts] ************************************************************************************************************************************************************************************* task path: /tmp/tmpshcwqol8/tests/tests_create_lvm_pool_then_remove.yml:2 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"ansible_all_ipv4_addresses": ["10.0.2.15"], "ansible_all_ipv6_addresses": ["fec0::5054:ff:fe12:3456", "fe80::5054:ff:fe12:3456"], "ansible_apparmor": {"status": "disabled"}, "ansible_architecture": "x86_64", "ansible_bios_date": "04/01/2014", "ansible_bios_version": "1.12.0-2.fc30", "ansible_cmdline": {"BOOT_IMAGE": "(hd0,msdos1)/boot/vmlinuz-5.0.9-301.fc30.x86_64", "console": "ttyS0,115200n8", "net.ifnames": "0", "no_timer_check": true, "ro": true, "root": "UUID=ea711a29-e460-4879-9d70-9da99ae021f9"}, "ansible_date_time": {"date": "2019-05-25", "day": "25", "epoch": "1558792096", "hour": "13", "iso8601": "2019-05-25T13:48:16Z", "iso8601_basic": "20190525T134816241556", "iso8601_basic_short": "20190525T134816", "iso8601_micro": "2019-05-25T13:48:16.241699Z", "minute": "48", "month": "05", "second": "16", "time": "13:48:16", "tz": "UTC", "tz_offset": "+0000", "weekday": "Saturday", "weekday_number": "6", "weeknumber": "20", "year": "2019"}, "ansible_default_ipv4": {"address": "10.0.2.15", "alias": "eth0", "broadcast": "10.0.2.255", "gateway": "10.0.2.2", "interface": "eth0", "macaddress": "52:54:00:12:34:56", "mtu": 1500, "netmask": "255.255.255.0", "network": "10.0.2.0", "type": "ether"}, "ansible_default_ipv6": {"address": "fec0::5054:ff:fe12:3456", "gateway": "fe80::2", "interface": "eth0", "macaddress": "52:54:00:12:34:56", "mtu": 1500, "prefix": "64", "scope": "site", "type": "ether"}, "ansible_device_links": {"ids": {"sr0": ["ata-QEMU_DVD-ROM_QM00003"]}, "labels": {"sr0": ["cidata"]}, "masters": {}, "uuids": {"sr0": ["2019-05-25-15-47-52-00"], "vda1": ["ea711a29-e460-4879-9d70-9da99ae021f9"]}}, "ansible_devices": {"sr0": {"holders": [], "host": "", "links": {"ids": ["ata-QEMU_DVD-ROM_QM00003"], "labels": ["cidata"], "masters": [], "uuids": ["2019-05-25-15-47-52-00"]}, "model": "QEMU DVD-ROM", "partitions": {}, "removable": "1", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "mq-deadline", "sectors": "728", "sectorsize": "2048", "size": "364.00 KB", "support_discard": "0", "vendor": "QEMU", "virtual": 1}, "vda": {"holders": [], "host": "", "links": {"ids": [], "labels": [], "masters": [], "uuids": []}, "model": null, "partitions": {"vda1": {"holders": [], "links": {"ids": [], "labels": [], "masters": [], "uuids": ["ea711a29-e460-4879-9d70-9da99ae021f9"]}, "sectors": "8386560", "sectorsize": 512, "size": "4.00 GB", "start": "2048", "uuid": "ea711a29-e460-4879-9d70-9da99ae021f9"}}, "removable": "0", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "mq-deadline", "sectors": "8388608", "sectorsize": "512", "size": "4.00 GB", "support_discard": "0", "vendor": "0x1af4", "virtual": 1}, "vdb": {"holders": [], "host": "", "links": {"ids": [], "labels": [], "masters": [], "uuids": []}, "model": null, "partitions": {}, "removable": "0", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "mq-deadline", "sectors": "20971520", "sectorsize": "512", "size": "10.00 GB", "support_discard": "0", "vendor": "0x1af4", "virtual": 1}, "vdc": {"holders": [], "host": "", "links": {"ids": [], "labels": [], "masters": [], "uuids": []}, "model": null, "partitions": {}, "removable": "0", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "mq-deadline", "sectors": "20971520", "sectorsize": "512", "size": "10.00 GB", "support_discard": "0", "vendor": "0x1af4", "virtual": 1}}, "ansible_distribution": "Fedora", "ansible_distribution_file_parsed": true, "ansible_distribution_file_path": "/etc/redhat-release", "ansible_distribution_file_variety": "RedHat", "ansible_distribution_major_version": "30", "ansible_distribution_release": "", "ansible_distribution_version": "30", "ansible_dns": {"nameservers": ["10.0.2.3"]}, "ansible_domain": "", "ansible_effective_group_id": 0, "ansible_effective_user_id": 0, "ansible_env": {"DBUS_SESSION_BUS_ADDRESS": "unix:path=/run/user/0/bus", "HOME": "/root", "LANG": "en_US.UTF-8", "LESSOPEN": "||/usr/bin/lesspipe.sh %s", "LOGNAME": "root", "LS_COLORS": "rs=0:di=38;5;33:ln=38;5;51:mh=00:pi=40;38;5;11:so=38;5;13:do=38;5;5:bd=48;5;232;38;5;11:cd=48;5;232;38;5;3:or=48;5;232;38;5;9:mi=01;05;37;41:su=48;5;196;38;5;15:sg=48;5;11;38;5;16:ca=48;5;196;38;5;226:tw=48;5;10;38;5;16:ow=48;5;10;38;5;21:st=48;5;21;38;5;15:ex=38;5;40:*.tar=38;5;9:*.tgz=38;5;9:*.arc=38;5;9:*.arj=38;5;9:*.taz=38;5;9:*.lha=38;5;9:*.lz4=38;5;9:*.lzh=38;5;9:*.lzma=38;5;9:*.tlz=38;5;9:*.txz=38;5;9:*.tzo=38;5;9:*.t7z=38;5;9:*.zip=38;5;9:*.z=38;5;9:*.dz=38;5;9:*.gz=38;5;9:*.lrz=38;5;9:*.lz=38;5;9:*.lzo=38;5;9:*.xz=38;5;9:*.zst=38;5;9:*.tzst=38;5;9:*.bz2=38;5;9:*.bz=38;5;9:*.tbz=38;5;9:*.tbz2=38;5;9:*.tz=38;5;9:*.deb=38;5;9:*.rpm=38;5;9:*.jar=38;5;9:*.war=38;5;9:*.ear=38;5;9:*.sar=38;5;9:*.rar=38;5;9:*.alz=38;5;9:*.ace=38;5;9:*.zoo=38;5;9:*.cpio=38;5;9:*.7z=38;5;9:*.rz=38;5;9:*.cab=38;5;9:*.wim=38;5;9:*.swm=38;5;9:*.dwm=38;5;9:*.esd=38;5;9:*.jpg=38;5;13:*.jpeg=38;5;13:*.mjpg=38;5;13:*.mjpeg=38;5;13:*.gif=38;5;13:*.bmp=38;5;13:*.pbm=38;5;13:*.pgm=38;5;13:*.ppm=38;5;13:*.tga=38;5;13:*.xbm=38;5;13:*.xpm=38;5;13:*.tif=38;5;13:*.tiff=38;5;13:*.png=38;5;13:*.svg=38;5;13:*.svgz=38;5;13:*.mng=38;5;13:*.pcx=38;5;13:*.mov=38;5;13:*.mpg=38;5;13:*.mpeg=38;5;13:*.m2v=38;5;13:*.mkv=38;5;13:*.webm=38;5;13:*.ogm=38;5;13:*.mp4=38;5;13:*.m4v=38;5;13:*.mp4v=38;5;13:*.vob=38;5;13:*.qt=38;5;13:*.nuv=38;5;13:*.wmv=38;5;13:*.asf=38;5;13:*.rm=38;5;13:*.rmvb=38;5;13:*.flc=38;5;13:*.avi=38;5;13:*.fli=38;5;13:*.flv=38;5;13:*.gl=38;5;13:*.dl=38;5;13:*.xcf=38;5;13:*.xwd=38;5;13:*.yuv=38;5;13:*.cgm=38;5;13:*.emf=38;5;13:*.ogv=38;5;13:*.ogx=38;5;13:*.aac=38;5;45:*.au=38;5;45:*.flac=38;5;45:*.m4a=38;5;45:*.mid=38;5;45:*.midi=38;5;45:*.mka=38;5;45:*.mp3=38;5;45:*.mpc=38;5;45:*.ogg=38;5;45:*.ra=38;5;45:*.wav=38;5;45:*.oga=38;5;45:*.opus=38;5;45:*.spx=38;5;45:*.xspf=38;5;45:", "MAIL": "/var/mail/root", "PATH": "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin", "PWD": "/root", "SELINUX_LEVEL_REQUESTED": "", "SELINUX_ROLE_REQUESTED": "", "SELINUX_USE_CURRENT_RANGE": "", "SHELL": "/bin/bash", "SHLVL": "1", "SSH_CLIENT": "10.0.2.2 46558 22", "SSH_CONNECTION": "10.0.2.2 46558 10.0.2.15 22", "SSH_TTY": "/dev/pts/0", "TERM": "xterm-256color", "USER": "root", "XDG_RUNTIME_DIR": "/run/user/0", "XDG_SESSION_CLASS": "user", "XDG_SESSION_ID": "1", "XDG_SESSION_TYPE": "tty", "_": "/usr/bin/python3"}, "ansible_eth0": {"active": true, "device": "eth0", "ipv4": {"address": "10.0.2.15", "broadcast": "10.0.2.255", "netmask": "255.255.255.0", "network": "10.0.2.0"}, "ipv6": [{"address": "fec0::5054:ff:fe12:3456", "prefix": "64", "scope": "site"}, {"address": "fe80::5054:ff:fe12:3456", "prefix": "64", "scope": "link"}], "macaddress": "52:54:00:12:34:56", "module": "virtio_net", "mtu": 1500, "pciid": "virtio0", "promisc": false, "speed": -1, "type": "ether"}, "ansible_fibre_channel_wwn": [], "ansible_fips": false, "ansible_form_factor": "Other", "ansible_fqdn": "ibm-p8-kvm-03-guest-02", "ansible_hostname": "ibm-p8-kvm-03-guest-02", "ansible_hostnqn": "", "ansible_interfaces": ["eth0", "lo"], "ansible_is_chroot": false, "ansible_iscsi_iqn": "", "ansible_kernel": "5.0.9-301.fc30.x86_64", "ansible_lo": {"active": true, "device": "lo", "ipv4": {"address": "127.0.0.1", "broadcast": "host", "netmask": "255.0.0.0", "network": "127.0.0.0"}, "ipv6": [{"address": "::1", "prefix": "128", "scope": "host"}], "mtu": 65536, "promisc": false, "type": "loopback"}, "ansible_local": {}, "ansible_lsb": {}, "ansible_machine": "x86_64", "ansible_machine_id": "94482fb10bbb47afb73b0414fde31b50", "ansible_memfree_mb": 646, "ansible_memory_mb": {"nocache": {"free": 839, "used": 143}, "real": {"free": 646, "total": 982, "used": 336}, "swap": {"cached": 0, "free": 0, "total": 0, "used": 0}}, "ansible_memtotal_mb": 982, "ansible_mounts": [{"block_available": 731960, "block_size": 4096, "block_total": 1015472, "block_used": 283512, "device": "/dev/vda1", "fstype": "ext4", "inode_available": 233659, "inode_total": 262144, "inode_used": 28485, "mount": "/", "options": "rw,seclabel,relatime", "size_available": 2998108160, "size_total": 4159373312, "uuid": "ea711a29-e460-4879-9d70-9da99ae021f9"}], "ansible_nodename": "ibm-p8-kvm-03-guest-02", "ansible_os_family": "RedHat", "ansible_pkg_mgr": "dnf", "ansible_proc_cmdline": {"BOOT_IMAGE": "(hd0,msdos1)/boot/vmlinuz-5.0.9-301.fc30.x86_64", "console": ["tty1", "ttyS0,115200n8"], "net.ifnames": "0", "no_timer_check": true, "ro": true, "root": "UUID=ea711a29-e460-4879-9d70-9da99ae021f9"}, "ansible_processor": ["0", "GenuineIntel", "Intel(R) Core(TM) i7-7600U CPU @ 2.80GHz", "1", "GenuineIntel", "Intel(R) Core(TM) i7-7600U CPU @ 2.80GHz", "2", "GenuineIntel", "Intel(R) Core(TM) i7-7600U CPU @ 2.80GHz"], "ansible_processor_cores": 1, "ansible_processor_count": 3, "ansible_processor_threads_per_core": 1, "ansible_processor_vcpus": 3, "ansible_product_name": "Standard PC (i440FX + PIIX, 1996)", "ansible_product_serial": "NA", "ansible_product_uuid": "NA", "ansible_product_version": "pc-i440fx-3.1", "ansible_python": {"executable": "/usr/bin/python3", "has_sslcontext": true, "type": "cpython", "version": {"major": 3, "micro": 3, "minor": 7, "releaselevel": "final", "serial": 0}, "version_info": [3, 7, 3, "final", 0]}, "ansible_python_version": "3.7.3", "ansible_real_group_id": 0, "ansible_real_user_id": 0, "ansible_selinux": {"config_mode": "enforcing", "mode": "enforcing", "policyvers": 31, "status": "enabled", "type": "targeted"}, "ansible_selinux_python_present": true, "ansible_service_mgr": "systemd", "ansible_ssh_host_key_ecdsa_public": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBKJFXR0Rip31BuzCaw9QPpJ/XRJ6FYAlWDuQFkVEje+t0X+kSvpiNXP4Yhl0GbJpO4pjqk04JHXx104Fz1F3ar4=", "ansible_ssh_host_key_ed25519_public": "AAAAC3NzaC1lZDI1NTE5AAAAIE5axL/1oEaENtLtGliSlXMoH/vEJQ2ZL1jAGt0RYlfg", "ansible_ssh_host_key_rsa_public": "AAAAB3NzaC1yc2EAAAADAQABAAABAQDvbLE88wXtVBc+E+NuZZdyKm7qC7rb1GhZ4rtpbaZy4n4PKP52OrvCQrTJQe/ix5RT7I5HiT+X76JmtFpMvfjxnfGO4VSz8yNZFwlG0GlxRjg6ywfrS9ZzTTS6/IGPiDt6qyQcSwOHFUMpa1buAB8b+qIlFfWIueeA68rJwFVZR0ETUDGTJqNOfswOsKbtaknrCsyIpu63PwUW6c/U6qL7egC8N2wFr3hIExttJrXhIY29m3FHoyj1jU37mYwwuCLIqI39zbLKe5wsDnckclt3537uv12AaVr+qL30Z+BfBEpS1FZTQ9AIrA/QH5a0yzYoadDCpCLKm8RB69D4//CD", "ansible_swapfree_mb": 0, "ansible_swaptotal_mb": 0, "ansible_system": "Linux", "ansible_system_capabilities": ["cap_chown", "cap_dac_override", "cap_dac_read_search", "cap_fowner", "cap_fsetid", "cap_kill", "cap_setgid", "cap_setuid", "cap_setpcap", "cap_linux_immutable", "cap_net_bind_service", "cap_net_broadcast", "cap_net_admin", "cap_net_raw", "cap_ipc_lock", "cap_ipc_owner", "cap_sys_module", "cap_sys_rawio", "cap_sys_chroot", "cap_sys_ptrace", "cap_sys_pacct", "cap_sys_admin", "cap_sys_boot", "cap_sys_nice", "cap_sys_resource", "cap_sys_time", "cap_sys_tty_config", "cap_mknod", "cap_lease", "cap_audit_write", "cap_audit_control", "cap_setfcap", "cap_mac_override", "cap_mac_admin", "cap_syslog", "cap_wake_alarm", "cap_block_suspend", "cap_audit_read+ep"], "ansible_system_capabilities_enforced": "True", "ansible_system_vendor": "QEMU", "ansible_uptime_seconds": 21, "ansible_user_dir": "/root", "ansible_user_gecos": "root", "ansible_user_gid": 0, "ansible_user_id": "root", "ansible_user_shell": "/bin/bash", "ansible_user_uid": 0, "ansible_userspace_architecture": "x86_64", "ansible_userspace_bits": "64", "ansible_virtualization_role": "guest", "ansible_virtualization_type": "kvm", "gather_subset": ["all"], "module_setup": true}, "changed": false} META: ran handlers TASK [include_role : storage] ****************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/tests_create_lvm_pool_then_remove.yml:12 TASK [storage : define an empty list of pools to be used in testing] *************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main.yml:2 ok: [/home/till/lsr-test-harness-files/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/tmpshcwqol8/tasks/main.yml:6 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : include the appropriate backend tasks] ***************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main.yml:10 included: /tmp/tmpshcwqol8/tasks/main-blivet.yml for /home/till/lsr-test-harness-files/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/tmpshcwqol8/tasks/main-blivet.yml:2 skipping: [/home/till/lsr-test-harness-files/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/tmpshcwqol8/tasks/main-blivet.yml:7 changed: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: python3-blivet", "Installed: libblockdev-kbd-2.21-3.fc30.x86_64", "Installed: lvm2-2.02.183-3.fc30.x86_64", "Installed: libblockdev-loop-2.21-3.fc30.x86_64", "Installed: libblockdev-lvm-2.21-3.fc30.x86_64", "Installed: lvm2-libs-2.02.183-3.fc30.x86_64", "Installed: gdisk-1.0.4-4.fc30.x86_64", "Installed: lzo-2.08-15.fc30.x86_64", "Installed: python3-blivet-1:3.1.3-3.fc30.noarch", "Installed: libblockdev-mdraid-2.21-3.fc30.x86_64", "Installed: libblockdev-mpath-2.21-3.fc30.x86_64", "Installed: daxctl-libs-65-1.fc30.x86_64", "Installed: gobject-introspection-1.60.1-2.fc30.x86_64", "Installed: libblockdev-nvdimm-2.21-3.fc30.x86_64", "Installed: libblockdev-part-2.21-3.fc30.x86_64", "Installed: python3-blockdev-2.21-3.fc30.x86_64", "Installed: sgpio-1.2.0.10-23.fc30.x86_64", "Installed: libblockdev-swap-2.21-3.fc30.x86_64", "Installed: lsof-4.91-3.fc30.x86_64", "Installed: device-mapper-event-1.02.154-3.fc30.x86_64", "Installed: python3-bytesize-2.0-1.fc30.x86_64", "Installed: libblockdev-utils-2.21-3.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: device-mapper-multipath-libs-0.7.9-6.git2df6110.fc30.x86_64", "Installed: nss-3.44.0-2.fc30.x86_64", "Installed: device-mapper-persistent-data-0.7.6-4.fc30.x86_64", "Installed: libbytesize-2.0-1.fc30.x86_64", "Installed: nss-softokn-3.44.0-2.fc30.x86_64", "Installed: nss-softokn-freebl-3.44.0-2.fc30.x86_64", "Installed: volume_key-libs-0.3.12-3.fc30.x86_64", "Installed: nss-sysinit-3.44.0-2.fc30.x86_64", "Installed: bcache-tools-1.0.8-15.fc30.x86_64", "Installed: nss-util-3.44.0-2.fc30.x86_64", "Installed: btrfs-progs-4.20.2-1.fc30.x86_64", "Installed: nspr-4.21.0-1.fc30.x86_64", "Installed: python3-pyudev-0.21.0-10.fc30.noarch", "Installed: mdadm-4.1-rc2.0.3.fc30.x86_64", "Installed: blivet-data-1:3.1.3-3.fc30.noarch", "Installed: python3-gobject-base-3.32.1-1.fc30.x86_64", "Installed: python3-pyparted-1:3.11.2-1.fc30.x86_64", "Installed: libblockdev-2.21-3.fc30.x86_64", "Installed: libaio-0.3.111-4.fc30.x86_64", "Installed: libblockdev-btrfs-2.21-3.fc30.x86_64", "Installed: libblockdev-crypto-2.21-3.fc30.x86_64", "Installed: userspace-rcu-0.10.1-5.fc30.x86_64", "Installed: ndctl-65-1.fc30.x86_64", "Installed: libblockdev-dm-2.21-3.fc30.x86_64", "Installed: dmraid-1.0.0.rc16-41.fc30.x86_64", "Installed: ndctl-libs-65-1.fc30.x86_64", "Installed: dmraid-events-1.0.0.rc16-41.fc30.x86_64", "Installed: libblockdev-fs-2.21-3.fc30.x86_64"]} TASK [storage : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:15 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"all_vols": [], "pools": [], "vol_pools": [], "vols": [], "vols_by_pool": [], "volumes": []}, "changed": false} TASK [storage : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:23 TASK [storage : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:30 TASK [storage : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:37 skipping: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [storage : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:44 TASK [storage : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:49 TASK [storage : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:57 TASK [storage : set the list of pools for test verification] *********************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:72 ok: [/home/till/lsr-test-harness-files/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/tmpshcwqol8/tasks/main-blivet.yml:76 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:80 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "pools": [] } TASK [storage : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:83 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "volumes": [] } TASK [storage : manage the pools] ************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:86 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": [], "mounts": [], "removed_mounts": []} TASK [storage : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:92 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "blivet_output": { "actions": [], "changed": false, "failed": false, "leaves": [], "mounts": [], "removed_mounts": [] } } TASK [storage : remove obsolete mounts] ******************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:103 TASK [storage : add new mounts] **************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:111 TASK [storage : tell systemd to refresh its view of /etc/fstab] ******************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:122 skipping: [/home/till/lsr-test-harness-files/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/tmpshcwqol8/tasks/main-blivet.yml:131 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] TASK [include_tasks] *************************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/tests_create_lvm_pool_then_remove.yml:15 included: /tmp/tmpshcwqol8/tests/get_unused_disk.yml for /home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [Find unused disks in the system] ********************************************************************************************************************************************************************* task path: /tmp/tmpshcwqol8/tests/get_unused_disk.yml:2 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "disks": ["vdb"]} TASK [set_fact] ******************************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/get_unused_disk.yml:8 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"unused_disks": ["vdb"]}, "changed": false} TASK [Exit playbook when there's no unused disks in the system] ******************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/get_unused_disk.yml:13 skipping: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {} META: TASK [Print unused disks] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/get_unused_disk.yml:19 ok: [/home/till/lsr-test-harness-files/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/tmpshcwqol8/tests/tests_create_lvm_pool_then_remove.yml:20 TASK [storage : define an empty list of pools to be used in testing] *************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main.yml:2 ok: [/home/till/lsr-test-harness-files/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/tmpshcwqol8/tasks/main.yml:6 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : include the appropriate backend tasks] ***************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main.yml:10 included: /tmp/tmpshcwqol8/tasks/main-blivet.yml for /home/till/lsr-test-harness-files/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/tmpshcwqol8/tasks/main-blivet.yml:2 skipping: [/home/till/lsr-test-harness-files/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/tmpshcwqol8/tasks/main-blivet.yml:7 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: python3-blivet"]} TASK [storage : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:15 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"all_vols": [], "pools": [], "vol_pools": [], "vols": [], "vols_by_pool": [], "volumes": []}, "changed": false} TASK [storage : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:23 ok: [/home/till/lsr-test-harness-files/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": {"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 : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:30 ok: [/home/till/lsr-test-harness-files/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": {"vol_defaults": [{"fs_create_options": "", "fs_destroy_options": "-af", "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"}], "vol_pools": ["foo"], "vols": [{"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: [/home/till/lsr-test-harness-files/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": {"vol_defaults": [{"fs_create_options": "", "fs_destroy_options": "-af", "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_destroy_options": "-af", "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"}], "vol_pools": ["foo", "foo"], "vols": [{"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 : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:37 ok: [/home/till/lsr-test-harness-files/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_destroy_options': '-af', 'fs_overwrite_existing': True, 'mount_point': '', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid'}]) => {"ansible_facts": {"all_vols": [{"fs_create_options": "", "fs_destroy_options": "-af", "fs_label": "", "fs_overwrite_existing": true, "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, "idx": 0, "item": [{"mount_point": "/opt/test1", "name": "test1", "size": "5g"}, {"fs_create_options": "", "fs_destroy_options": "-af", "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: [/home/till/lsr-test-harness-files/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_destroy_options': '-af', 'fs_overwrite_existing': True, 'mount_point': '', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid'}]) => {"ansible_facts": {"all_vols": [{"fs_create_options": "", "fs_destroy_options": "-af", "fs_label": "", "fs_overwrite_existing": true, "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_destroy_options": "-af", "fs_label": "", "fs_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, "idx": 1, "item": [{"mount_point": "/opt/test2", "name": "test2", "size": "4g"}, {"fs_create_options": "", "fs_destroy_options": "-af", "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 : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:44 ok: [/home/till/lsr-test-harness-files/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": {"vols_by_pool": {"foo": [{"fs_create_options": "", "fs_destroy_options": "-af", "fs_label": "", "fs_overwrite_existing": true, "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_destroy_options": "-af", "fs_label": "", "fs_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 : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:49 ok: [/home/till/lsr-test-harness-files/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": {"pools": [{"disks": ["vdb"], "name": "foo", "state": "present", "type": "lvm", "volumes": [{"fs_create_options": "", "fs_destroy_options": "-af", "fs_label": "", "fs_overwrite_existing": true, "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_destroy_options": "-af", "fs_label": "", "fs_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": "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 : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:57 TASK [storage : set the list of pools for test verification] *********************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:72 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": [{"disks": ["vdb"], "name": "foo", "state": "present", "type": "lvm", "volumes": [{"fs_create_options": "", "fs_destroy_options": "-af", "fs_label": "", "fs_overwrite_existing": true, "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_destroy_options": "-af", "fs_label": "", "fs_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/tmpshcwqol8/tasks/main-blivet.yml:76 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:80 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "pools": [ { "disks": [ "vdb" ], "name": "foo", "state": "present", "type": "lvm", "volumes": [ { "fs_create_options": "", "fs_destroy_options": "-af", "fs_label": "", "fs_overwrite_existing": true, "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_destroy_options": "-af", "fs_label": "", "fs_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/tmpshcwqol8/tasks/main-blivet.yml:83 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "volumes": [] } TASK [storage : manage the pools] ************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:86 changed: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": ["create format lvmpv on /dev/vdb", "create device /dev/foo", "create device /dev/mapper/foo-test2", "create format xfs on /dev/mapper/foo-test2", "create device /dev/mapper/foo-test1", "create format xfs on /dev/mapper/foo-test1"], "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"}], "removed_mounts": []} TASK [storage : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:92 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "blivet_output": { "actions": [ "create format lvmpv on /dev/vdb", "create device /dev/foo", "create device /dev/mapper/foo-test2", "create format xfs on /dev/mapper/foo-test2", "create device /dev/mapper/foo-test1", "create format xfs on /dev/mapper/foo-test1" ], "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" } ], "removed_mounts": [] } } TASK [storage : remove obsolete mounts] ******************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:103 TASK [storage : add new mounts] **************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:111 changed: [/home/till/lsr-test-harness-files/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: [/home/till/lsr-test-harness-files/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/tmpshcwqol8/tasks/main-blivet.yml:122 changed: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["systemctl", "daemon-reload"], "delta": "0:00:00.312391", "end": "2019-05-25 13:49:36.061960", "rc": 0, "start": "2019-05-25 13:49:35.749569", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [storage : Update facts] ****************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:131 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] TASK [include_tasks] *************************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/tests_create_lvm_pool_then_remove.yml:35 included: /tmp/tmpshcwqol8/tests/verify-role-results.yml for /home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [set_fact] ******************************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/verify-role-results.yml:1 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_tests_list": ["verify-volumes"]}, "changed": false} TASK [Print out pool information] ************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/verify-role-results.yml:4 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools_list": [ { "disks": [ "vdb" ], "name": "foo", "state": "present", "type": "lvm", "volumes": [ { "fs_create_options": "", "fs_destroy_options": "-af", "fs_label": "", "fs_overwrite_existing": true, "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_destroy_options": "-af", "fs_label": "", "fs_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/tmpshcwqol8/tests/verify-role-results.yml:9 skipping: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {} TASK [Ensure the specified devices in the role were correctly configured in the user's system] ************************************************************************************************************* task path: /tmp/tmpshcwqol8/tests/verify-role-results.yml:14 included: /tmp/tmpshcwqol8/tests/test-verify-volumes.yml for /home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [Read the /etc/fstab file for volume existence] ******************************************************************************************************************************************************* task path: /tmp/tmpshcwqol8/tests/test-verify-volumes.yml:2 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/fstab"], "delta": "0:00:00.005800", "end": "2019-05-25 13:49:37.786100", "rc": 0, "start": "2019-05-25 13:49:37.780300", "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/tmpshcwqol8/tests/test-verify-volumes.yml:7 included: /tmp/tmpshcwqol8/tests/test-volumes-present-helper.yml for /home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [set_fact] ******************************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/test-volumes-present-helper.yml:2 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"mount_entries": []}, "changed": false} TASK [gather mounts related to each volume in the pool] **************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/test-volumes-present-helper.yml:5 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'size': '5g', 'fs_type': 'xfs', 'fs_label': '', 'fs_create_options': '', 'fs_destroy_options': '-af', 'fs_overwrite_existing': True, 'mount_point': '/opt/test1', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid', 'name': 'test1', 'pool': 'foo'}) => {"ansible_facts": {"mount_entries": [[{"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": "0feb056a-641b-4da7-b10e-e9ff7aa5f6c0"}]]}, "ansible_loop_var": "current_volume", "changed": false, "current_volume": {"fs_create_options": "", "fs_destroy_options": "-af", "fs_label": "", "fs_overwrite_existing": true, "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"}} ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'size': '4g', 'fs_type': 'xfs', 'fs_label': '', 'fs_create_options': '', 'fs_destroy_options': '-af', 'fs_overwrite_existing': True, 'mount_point': '/opt/test2', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid', 'name': 'test2', 'pool': 'foo'}) => {"ansible_facts": {"mount_entries": [[{"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": "0feb056a-641b-4da7-b10e-e9ff7aa5f6c0"}], [{"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": "899d1fce-f051-4857-b2d1-8a2ca45f0af8"}]]}, "ansible_loop_var": "current_volume", "changed": false, "current_volume": {"fs_create_options": "", "fs_destroy_options": "-af", "fs_label": "", "fs_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 [Ensure all lvm volumes were correctly managed in /etc/fstab and ansible_mounts.] ********************************************************************************************************************* task path: /tmp/tmpshcwqol8/tests/test-volumes-present-helper.yml:12 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'size': '5g', 'fs_type': 'xfs', 'fs_label': '', 'fs_create_options': '', 'fs_destroy_options': '-af', 'fs_overwrite_existing': True, 'mount_point': '/opt/test1', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid', 'name': 'test1', 'pool': 'foo'}) => { "ansible_loop_var": "current_volume", "changed": false, "current_volume": { "fs_create_options": "", "fs_destroy_options": "-af", "fs_label": "", "fs_overwrite_existing": true, "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" }, "idx": 0, "msg": "All assertions passed" } ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'size': '4g', 'fs_type': 'xfs', 'fs_label': '', 'fs_create_options': '', 'fs_destroy_options': '-af', 'fs_overwrite_existing': True, 'mount_point': '/opt/test2', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid', 'name': 'test2', 'pool': 'foo'}) => { "ansible_loop_var": "current_volume", "changed": false, "current_volume": { "fs_create_options": "", "fs_destroy_options": "-af", "fs_label": "", "fs_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" }, "idx": 1, "msg": "All assertions passed" } TASK [Ensure all lvm volumes were correctly managed in /etc/fstab and ansible_mounts.] ********************************************************************************************************************* task path: /tmp/tmpshcwqol8/tests/test-volumes-present-helper.yml:25 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'size': '5g', 'fs_type': 'xfs', 'fs_label': '', 'fs_create_options': '', 'fs_destroy_options': '-af', 'fs_overwrite_existing': True, 'mount_point': '/opt/test1', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid', 'name': 'test1', 'pool': 'foo'}) => { "ansible_loop_var": "current_volume", "changed": false, "current_volume": { "fs_create_options": "", "fs_destroy_options": "-af", "fs_label": "", "fs_overwrite_existing": true, "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" }, "idx": 0, "msg": "All assertions passed" } ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'size': '4g', 'fs_type': 'xfs', 'fs_label': '', 'fs_create_options': '', 'fs_destroy_options': '-af', 'fs_overwrite_existing': True, 'mount_point': '/opt/test2', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid', 'name': 'test2', 'pool': 'foo'}) => { "ansible_loop_var": "current_volume", "changed": false, "current_volume": { "fs_create_options": "", "fs_destroy_options": "-af", "fs_label": "", "fs_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" }, "idx": 1, "msg": "All assertions passed" } TASK [Ensure all lvm volumes were correctly managed in /etc/fstab.] **************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/test-volumes-present-helper.yml:38 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'size': '5g', 'fs_type': 'xfs', 'fs_label': '', 'fs_create_options': '', 'fs_destroy_options': '-af', 'fs_overwrite_existing': True, 'mount_point': '/opt/test1', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid', 'name': 'test1', 'pool': 'foo'}) => { "ansible_loop_var": "current_volume", "changed": false, "current_volume": { "fs_create_options": "", "fs_destroy_options": "-af", "fs_label": "", "fs_overwrite_existing": true, "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" }, "msg": "All assertions passed" } ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'size': '4g', 'fs_type': 'xfs', 'fs_label': '', 'fs_create_options': '', 'fs_destroy_options': '-af', 'fs_overwrite_existing': True, 'mount_point': '/opt/test2', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid', 'name': 'test2', 'pool': 'foo'}) => { "ansible_loop_var": "current_volume", "changed": false, "current_volume": { "fs_create_options": "", "fs_destroy_options": "-af", "fs_label": "", "fs_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" }, "msg": "All assertions passed" } TASK [resolve_blockdev] ************************************************************************************************************************************************************************************ task path: /tmp/tmpshcwqol8/tests/test-verify-volumes.yml:14 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/dev/mapper/foo-test1) => {"ansible_loop_var": "dev_id", "changed": false, "dev_id": "/dev/mapper/foo-test1", "device": "/dev/mapper/foo-test1"} ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/dev/mapper/foo-test2) => {"ansible_loop_var": "dev_id", "changed": false, "dev_id": "/dev/mapper/foo-test2", "device": "/dev/mapper/foo-test2"} TASK [resolve_blockdev] ************************************************************************************************************************************************************************************ task path: /tmp/tmpshcwqol8/tests/test-verify-volumes.yml:21 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/dev/vda1) => {"ansible_loop_var": "dev_id", "changed": false, "dev_id": "/dev/vda1", "device": "/dev/vda1"} ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/dev/mapper/foo-test1) => {"ansible_loop_var": "dev_id", "changed": false, "dev_id": "/dev/mapper/foo-test1", "device": "/dev/mapper/foo-test1"} ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/dev/mapper/foo-test2) => {"ansible_loop_var": "dev_id", "changed": false, "dev_id": "/dev/mapper/foo-test2", "device": "/dev/mapper/foo-test2"} TASK [set_fact] ******************************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/test-verify-volumes.yml:28 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"ansible_mount_devs": ["/dev/vda1", "/dev/mapper/foo-test1", "/dev/mapper/foo-test2"], "blivet_mount_devs": ["/dev/mapper/foo-test1", "/dev/mapper/foo-test2"], "removed_volumes": []}, "changed": false} TASK [set_fact] ******************************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/test-verify-volumes.yml:33 TASK [Verify the volumes with no pool were correctly managed] ********************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/test-verify-volumes.yml:40 TASK [Verify the present volumes with no pool were correctly managed] ************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/test-verify-volumes.yml:52 TASK [Verify the absent volumes with no pool are not in ansible_mounts] ************************************************************************************************************************************ task path: /tmp/tmpshcwqol8/tests/test-verify-volumes.yml:65 TASK [Remove both of the LVM logical volumes in 'foo' created above] *************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/tests_create_lvm_pool_then_remove.yml:37 TASK [storage : define an empty list of pools to be used in testing] *************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main.yml:2 ok: [/home/till/lsr-test-harness-files/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/tmpshcwqol8/tasks/main.yml:6 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : include the appropriate backend tasks] ***************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main.yml:10 included: /tmp/tmpshcwqol8/tasks/main-blivet.yml for /home/till/lsr-test-harness-files/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/tmpshcwqol8/tasks/main-blivet.yml:2 skipping: [/home/till/lsr-test-harness-files/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/tmpshcwqol8/tasks/main-blivet.yml:7 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: python3-blivet"]} TASK [storage : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:15 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"all_vols": [], "pools": [], "vol_pools": [], "vols": [], "vols_by_pool": [], "volumes": []}, "changed": false} TASK [storage : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:23 ok: [/home/till/lsr-test-harness-files/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": {"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 : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:30 ok: [/home/till/lsr-test-harness-files/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": {"vol_defaults": [{"fs_create_options": "", "fs_destroy_options": "-af", "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_destroy_options": "-af", "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_destroy_options": "-af", "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"}], "vol_pools": ["foo"], "vols": [{"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: [/home/till/lsr-test-harness-files/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": {"vol_defaults": [{"fs_create_options": "", "fs_destroy_options": "-af", "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_destroy_options": "-af", "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_destroy_options": "-af", "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_destroy_options": "-af", "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"}], "vol_pools": ["foo", "foo"], "vols": [{"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 : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:37 ok: [/home/till/lsr-test-harness-files/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_destroy_options': '-af', 'fs_overwrite_existing': True, 'mount_point': '', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid'}]) => {"ansible_facts": {"all_vols": [{"fs_create_options": "", "fs_destroy_options": "-af", "fs_label": "", "fs_overwrite_existing": true, "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, "idx": 0, "item": [{"mount_point": "/opt/test1", "name": "test1", "size": "5g"}, {"fs_create_options": "", "fs_destroy_options": "-af", "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: [/home/till/lsr-test-harness-files/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_destroy_options': '-af', 'fs_overwrite_existing': True, 'mount_point': '', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid'}]) => {"ansible_facts": {"all_vols": [{"fs_create_options": "", "fs_destroy_options": "-af", "fs_label": "", "fs_overwrite_existing": true, "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_destroy_options": "-af", "fs_label": "", "fs_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, "idx": 1, "item": [{"mount_point": "/opt/test2", "name": "test2", "size": "4g"}, {"fs_create_options": "", "fs_destroy_options": "-af", "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 : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:44 ok: [/home/till/lsr-test-harness-files/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": {"vols_by_pool": {"foo": [{"fs_create_options": "", "fs_destroy_options": "-af", "fs_label": "", "fs_overwrite_existing": true, "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_destroy_options": "-af", "fs_label": "", "fs_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 : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:49 ok: [/home/till/lsr-test-harness-files/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": {"pools": [{"disks": ["vdb"], "name": "foo", "state": "absent", "type": "lvm", "volumes": [{"fs_create_options": "", "fs_destroy_options": "-af", "fs_label": "", "fs_overwrite_existing": true, "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_destroy_options": "-af", "fs_label": "", "fs_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": "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 : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:57 TASK [storage : set the list of pools for test verification] *********************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:72 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": [{"disks": ["vdb"], "name": "foo", "state": "absent", "type": "lvm", "volumes": [{"fs_create_options": "", "fs_destroy_options": "-af", "fs_label": "", "fs_overwrite_existing": true, "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_destroy_options": "-af", "fs_label": "", "fs_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/tmpshcwqol8/tasks/main-blivet.yml:76 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:80 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "pools": [ { "disks": [ "vdb" ], "name": "foo", "state": "absent", "type": "lvm", "volumes": [ { "fs_create_options": "", "fs_destroy_options": "-af", "fs_label": "", "fs_overwrite_existing": true, "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_destroy_options": "-af", "fs_label": "", "fs_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/tmpshcwqol8/tasks/main-blivet.yml:83 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "volumes": [] } TASK [storage : manage the pools] ************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:86 changed: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": ["destroy format xfs on /dev/mapper/foo-test1", "destroy device /dev/mapper/foo-test1", "destroy format xfs on /dev/mapper/foo-test2", "destroy device /dev/mapper/foo-test2", "destroy device /dev/foo"], "changed": true, "leaves": ["/dev/sr0", "/dev/vda1", "/dev/vdb", "/dev/vdc"], "mounts": [], "removed_mounts": [{"device": "/dev/mapper/foo-test1", "path": "/opt/test1"}, {"device": "/dev/mapper/foo-test2", "path": "/opt/test2"}]} TASK [storage : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:92 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "blivet_output": { "actions": [ "destroy format xfs on /dev/mapper/foo-test1", "destroy device /dev/mapper/foo-test1", "destroy format xfs on /dev/mapper/foo-test2", "destroy device /dev/mapper/foo-test2", "destroy device /dev/foo" ], "changed": true, "failed": false, "leaves": [ "/dev/sr0", "/dev/vda1", "/dev/vdb", "/dev/vdc" ], "mounts": [], "removed_mounts": [ { "device": "/dev/mapper/foo-test1", "path": "/opt/test1" }, { "device": "/dev/mapper/foo-test2", "path": "/opt/test2" } ] } } TASK [storage : remove obsolete mounts] ******************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:103 changed: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'path': '/opt/test1', 'device': '/dev/mapper/foo-test1'}) => {"ansible_loop_var": "mount_info", "changed": true, "dump": "0", "fstab": "/etc/fstab", "mount_info": {"device": "/dev/mapper/foo-test1", "path": "/opt/test1"}, "name": "/opt/test1", "opts": "defaults", "passno": "0"} changed: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'path': '/opt/test2', 'device': '/dev/mapper/foo-test2'}) => {"ansible_loop_var": "mount_info", "changed": true, "dump": "0", "fstab": "/etc/fstab", "mount_info": {"device": "/dev/mapper/foo-test2", "path": "/opt/test2"}, "name": "/opt/test2", "opts": "defaults", "passno": "0"} TASK [storage : add new mounts] **************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:111 TASK [storage : tell systemd to refresh its view of /etc/fstab] ******************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:122 changed: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["systemctl", "daemon-reload"], "delta": "0:00:00.152828", "end": "2019-05-25 13:49:50.794128", "rc": 0, "start": "2019-05-25 13:49:50.641300", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [storage : Update facts] ****************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:131 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] TASK [include_tasks] *************************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/tests_create_lvm_pool_then_remove.yml:53 included: /tmp/tmpshcwqol8/tests/verify-role-results.yml for /home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [set_fact] ******************************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/verify-role-results.yml:1 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_tests_list": ["verify-volumes"]}, "changed": false} TASK [Print out pool information] ************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/verify-role-results.yml:4 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools_list": [ { "disks": [ "vdb" ], "name": "foo", "state": "absent", "type": "lvm", "volumes": [ { "fs_create_options": "", "fs_destroy_options": "-af", "fs_label": "", "fs_overwrite_existing": true, "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_destroy_options": "-af", "fs_label": "", "fs_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/tmpshcwqol8/tests/verify-role-results.yml:9 skipping: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {} TASK [Ensure the specified devices in the role were correctly configured in the user's system] ************************************************************************************************************* task path: /tmp/tmpshcwqol8/tests/verify-role-results.yml:14 included: /tmp/tmpshcwqol8/tests/test-verify-volumes.yml for /home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [Read the /etc/fstab file for volume existence] ******************************************************************************************************************************************************* task path: /tmp/tmpshcwqol8/tests/test-verify-volumes.yml:2 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/fstab"], "delta": "0:00:00.002107", "end": "2019-05-25 13:49:52.062719", "rc": 0, "start": "2019-05-25 13:49:52.060612", "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/tmpshcwqol8/tests/test-verify-volumes.yml:7 included: /tmp/tmpshcwqol8/tests/test-volumes-absent-helper.yml for /home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [Make sure all volumes in pool.volumes are absent] **************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/test-volumes-absent-helper.yml:2 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'size': '5g', 'fs_type': 'xfs', 'fs_label': '', 'fs_create_options': '', 'fs_destroy_options': '-af', 'fs_overwrite_existing': True, 'mount_point': '/opt/test1', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid', 'name': 'test1', 'pool': 'foo'}) => { "ansible_loop_var": "current_volume", "changed": false, "current_volume": { "fs_create_options": "", "fs_destroy_options": "-af", "fs_label": "", "fs_overwrite_existing": true, "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" }, "msg": "All assertions passed" } ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'size': '4g', 'fs_type': 'xfs', 'fs_label': '', 'fs_create_options': '', 'fs_destroy_options': '-af', 'fs_overwrite_existing': True, 'mount_point': '/opt/test2', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid', 'name': 'test2', 'pool': 'foo'}) => { "ansible_loop_var": "current_volume", "changed": false, "current_volume": { "fs_create_options": "", "fs_destroy_options": "-af", "fs_label": "", "fs_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" }, "msg": "All assertions passed" } TASK [resolve_blockdev] ************************************************************************************************************************************************************************************ task path: /tmp/tmpshcwqol8/tests/test-verify-volumes.yml:14 TASK [resolve_blockdev] ************************************************************************************************************************************************************************************ task path: /tmp/tmpshcwqol8/tests/test-verify-volumes.yml:21 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/dev/vda1) => {"ansible_loop_var": "dev_id", "changed": false, "dev_id": "/dev/vda1", "device": "/dev/vda1"} TASK [set_fact] ******************************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/test-verify-volumes.yml:28 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"ansible_mount_devs": ["/dev/vda1"], "blivet_mount_devs": [], "removed_volumes": []}, "changed": false} TASK [set_fact] ******************************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/test-verify-volumes.yml:33 TASK [Verify the volumes with no pool were correctly managed] ********************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/test-verify-volumes.yml:40 TASK [Verify the present volumes with no pool were correctly managed] ************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/test-verify-volumes.yml:52 TASK [Verify the absent volumes with no pool are not in ansible_mounts] ************************************************************************************************************************************ task path: /tmp/tmpshcwqol8/tests/test-verify-volumes.yml:65 META: ran handlers META: ran handlers PLAY RECAP ************************************************************************************************************************************************************************************************* /home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 : ok=79 changed=7 unreachable=0 failed=0 skipped=29 rescued=0 ignored=0 + cd /tmp/tmpshcwqol8/tests; TEST_SUBJECTS=/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_storage-25-db52957-fedora-30-cqpxlans/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmpshcwqol8/_setup.yml /tmp/tmpshcwqol8/tests/tests_filesystem_one_disk.yml ansible-playbook 2.8.0 config file = /home/till/.ansible.cfg configured module search path = ['/home/till/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.7/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 3.7.3 (default, May 11 2019, 00:38:04) [GCC 9.1.1 20190503 (Red Hat 9.1.1-1)] Using /home/till/.ansible.cfg as config file PLAYBOOK: _setup.yml *************************************************************************************************************************************************************************************** 1 plays in /tmp/tmpshcwqol8/_setup.yml PLAY [Fail when only localhost is available] *************************************************************************************************************************************************************** META: ran handlers TASK [debug] *********************************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/_setup.yml:5 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "groups": { "all": [ "/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2" ], "localhost": [ "/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2" ], "subjects": [ "/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2" ], "ungrouped": [] } } TASK [fail] ************************************************************************************************************************************************************************************************ task path: /tmp/tmpshcwqol8/_setup.yml:7 skipping: [/home/till/lsr-test-harness-files/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 ************************************************************************************************************************************************************************************************* /home/till/lsr-test-harness-files/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/tmpshcwqol8/tests/tests_filesystem_one_disk.yml PLAY [all] ************************************************************************************************************************************************************************************************* TASK [Gathering Facts] ************************************************************************************************************************************************************************************* task path: /tmp/tmpshcwqol8/tests/tests_filesystem_one_disk.yml:2 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"ansible_all_ipv4_addresses": ["10.0.2.15"], "ansible_all_ipv6_addresses": ["fec0::5054:ff:fe12:3456", "fe80::5054:ff:fe12:3456"], "ansible_apparmor": {"status": "disabled"}, "ansible_architecture": "x86_64", "ansible_bios_date": "04/01/2014", "ansible_bios_version": "1.12.0-2.fc30", "ansible_cmdline": {"BOOT_IMAGE": "(hd0,msdos1)/boot/vmlinuz-5.0.9-301.fc30.x86_64", "console": "ttyS0,115200n8", "net.ifnames": "0", "no_timer_check": true, "ro": true, "root": "UUID=ea711a29-e460-4879-9d70-9da99ae021f9"}, "ansible_date_time": {"date": "2019-05-25", "day": "25", "epoch": "1558792211", "hour": "13", "iso8601": "2019-05-25T13:50:11Z", "iso8601_basic": "20190525T135011392657", "iso8601_basic_short": "20190525T135011", "iso8601_micro": "2019-05-25T13:50:11.392766Z", "minute": "50", "month": "05", "second": "11", "time": "13:50:11", "tz": "UTC", "tz_offset": "+0000", "weekday": "Saturday", "weekday_number": "6", "weeknumber": "20", "year": "2019"}, "ansible_default_ipv4": {"address": "10.0.2.15", "alias": "eth0", "broadcast": "10.0.2.255", "gateway": "10.0.2.2", "interface": "eth0", "macaddress": "52:54:00:12:34:56", "mtu": 1500, "netmask": "255.255.255.0", "network": "10.0.2.0", "type": "ether"}, "ansible_default_ipv6": {"address": "fec0::5054:ff:fe12:3456", "gateway": "fe80::2", "interface": "eth0", "macaddress": "52:54:00:12:34:56", "mtu": 1500, "prefix": "64", "scope": "site", "type": "ether"}, "ansible_device_links": {"ids": {"sr0": ["ata-QEMU_DVD-ROM_QM00003"]}, "labels": {"sr0": ["cidata"]}, "masters": {}, "uuids": {"sr0": ["2019-05-25-15-49-53-00"], "vda1": ["ea711a29-e460-4879-9d70-9da99ae021f9"]}}, "ansible_devices": {"sr0": {"holders": [], "host": "", "links": {"ids": ["ata-QEMU_DVD-ROM_QM00003"], "labels": ["cidata"], "masters": [], "uuids": ["2019-05-25-15-49-53-00"]}, "model": "QEMU DVD-ROM", "partitions": {}, "removable": "1", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "mq-deadline", "sectors": "728", "sectorsize": "2048", "size": "364.00 KB", "support_discard": "0", "vendor": "QEMU", "virtual": 1}, "vda": {"holders": [], "host": "", "links": {"ids": [], "labels": [], "masters": [], "uuids": []}, "model": null, "partitions": {"vda1": {"holders": [], "links": {"ids": [], "labels": [], "masters": [], "uuids": ["ea711a29-e460-4879-9d70-9da99ae021f9"]}, "sectors": "8386560", "sectorsize": 512, "size": "4.00 GB", "start": "2048", "uuid": "ea711a29-e460-4879-9d70-9da99ae021f9"}}, "removable": "0", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "mq-deadline", "sectors": "8388608", "sectorsize": "512", "size": "4.00 GB", "support_discard": "0", "vendor": "0x1af4", "virtual": 1}, "vdb": {"holders": [], "host": "", "links": {"ids": [], "labels": [], "masters": [], "uuids": []}, "model": null, "partitions": {}, "removable": "0", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "mq-deadline", "sectors": "20971520", "sectorsize": "512", "size": "10.00 GB", "support_discard": "0", "vendor": "0x1af4", "virtual": 1}, "vdc": {"holders": [], "host": "", "links": {"ids": [], "labels": [], "masters": [], "uuids": []}, "model": null, "partitions": {}, "removable": "0", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "mq-deadline", "sectors": "20971520", "sectorsize": "512", "size": "10.00 GB", "support_discard": "0", "vendor": "0x1af4", "virtual": 1}}, "ansible_distribution": "Fedora", "ansible_distribution_file_parsed": true, "ansible_distribution_file_path": "/etc/redhat-release", "ansible_distribution_file_variety": "RedHat", "ansible_distribution_major_version": "30", "ansible_distribution_release": "", "ansible_distribution_version": "30", "ansible_dns": {"nameservers": ["10.0.2.3"]}, "ansible_domain": "", "ansible_effective_group_id": 0, "ansible_effective_user_id": 0, "ansible_env": {"DBUS_SESSION_BUS_ADDRESS": "unix:path=/run/user/0/bus", "HOME": "/root", "LANG": "en_US.UTF-8", "LESSOPEN": "||/usr/bin/lesspipe.sh %s", "LOGNAME": "root", "LS_COLORS": "rs=0:di=38;5;33:ln=38;5;51:mh=00:pi=40;38;5;11:so=38;5;13:do=38;5;5:bd=48;5;232;38;5;11:cd=48;5;232;38;5;3:or=48;5;232;38;5;9:mi=01;05;37;41:su=48;5;196;38;5;15:sg=48;5;11;38;5;16:ca=48;5;196;38;5;226:tw=48;5;10;38;5;16:ow=48;5;10;38;5;21:st=48;5;21;38;5;15:ex=38;5;40:*.tar=38;5;9:*.tgz=38;5;9:*.arc=38;5;9:*.arj=38;5;9:*.taz=38;5;9:*.lha=38;5;9:*.lz4=38;5;9:*.lzh=38;5;9:*.lzma=38;5;9:*.tlz=38;5;9:*.txz=38;5;9:*.tzo=38;5;9:*.t7z=38;5;9:*.zip=38;5;9:*.z=38;5;9:*.dz=38;5;9:*.gz=38;5;9:*.lrz=38;5;9:*.lz=38;5;9:*.lzo=38;5;9:*.xz=38;5;9:*.zst=38;5;9:*.tzst=38;5;9:*.bz2=38;5;9:*.bz=38;5;9:*.tbz=38;5;9:*.tbz2=38;5;9:*.tz=38;5;9:*.deb=38;5;9:*.rpm=38;5;9:*.jar=38;5;9:*.war=38;5;9:*.ear=38;5;9:*.sar=38;5;9:*.rar=38;5;9:*.alz=38;5;9:*.ace=38;5;9:*.zoo=38;5;9:*.cpio=38;5;9:*.7z=38;5;9:*.rz=38;5;9:*.cab=38;5;9:*.wim=38;5;9:*.swm=38;5;9:*.dwm=38;5;9:*.esd=38;5;9:*.jpg=38;5;13:*.jpeg=38;5;13:*.mjpg=38;5;13:*.mjpeg=38;5;13:*.gif=38;5;13:*.bmp=38;5;13:*.pbm=38;5;13:*.pgm=38;5;13:*.ppm=38;5;13:*.tga=38;5;13:*.xbm=38;5;13:*.xpm=38;5;13:*.tif=38;5;13:*.tiff=38;5;13:*.png=38;5;13:*.svg=38;5;13:*.svgz=38;5;13:*.mng=38;5;13:*.pcx=38;5;13:*.mov=38;5;13:*.mpg=38;5;13:*.mpeg=38;5;13:*.m2v=38;5;13:*.mkv=38;5;13:*.webm=38;5;13:*.ogm=38;5;13:*.mp4=38;5;13:*.m4v=38;5;13:*.mp4v=38;5;13:*.vob=38;5;13:*.qt=38;5;13:*.nuv=38;5;13:*.wmv=38;5;13:*.asf=38;5;13:*.rm=38;5;13:*.rmvb=38;5;13:*.flc=38;5;13:*.avi=38;5;13:*.fli=38;5;13:*.flv=38;5;13:*.gl=38;5;13:*.dl=38;5;13:*.xcf=38;5;13:*.xwd=38;5;13:*.yuv=38;5;13:*.cgm=38;5;13:*.emf=38;5;13:*.ogv=38;5;13:*.ogx=38;5;13:*.aac=38;5;45:*.au=38;5;45:*.flac=38;5;45:*.m4a=38;5;45:*.mid=38;5;45:*.midi=38;5;45:*.mka=38;5;45:*.mp3=38;5;45:*.mpc=38;5;45:*.ogg=38;5;45:*.ra=38;5;45:*.wav=38;5;45:*.oga=38;5;45:*.opus=38;5;45:*.spx=38;5;45:*.xspf=38;5;45:", "MAIL": "/var/mail/root", "PATH": "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin", "PWD": "/root", "SELINUX_LEVEL_REQUESTED": "", "SELINUX_ROLE_REQUESTED": "", "SELINUX_USE_CURRENT_RANGE": "", "SHELL": "/bin/bash", "SHLVL": "1", "SSH_CLIENT": "10.0.2.2 48258 22", "SSH_CONNECTION": "10.0.2.2 48258 10.0.2.15 22", "SSH_TTY": "/dev/pts/0", "TERM": "xterm-256color", "USER": "root", "XDG_RUNTIME_DIR": "/run/user/0", "XDG_SESSION_CLASS": "user", "XDG_SESSION_ID": "1", "XDG_SESSION_TYPE": "tty", "_": "/usr/bin/python3"}, "ansible_eth0": {"active": true, "device": "eth0", "ipv4": {"address": "10.0.2.15", "broadcast": "10.0.2.255", "netmask": "255.255.255.0", "network": "10.0.2.0"}, "ipv6": [{"address": "fec0::5054:ff:fe12:3456", "prefix": "64", "scope": "site"}, {"address": "fe80::5054:ff:fe12:3456", "prefix": "64", "scope": "link"}], "macaddress": "52:54:00:12:34:56", "module": "virtio_net", "mtu": 1500, "pciid": "virtio0", "promisc": false, "speed": -1, "type": "ether"}, "ansible_fibre_channel_wwn": [], "ansible_fips": false, "ansible_form_factor": "Other", "ansible_fqdn": "ibm-p8-kvm-03-guest-02", "ansible_hostname": "ibm-p8-kvm-03-guest-02", "ansible_hostnqn": "", "ansible_interfaces": ["lo", "eth0"], "ansible_is_chroot": false, "ansible_iscsi_iqn": "", "ansible_kernel": "5.0.9-301.fc30.x86_64", "ansible_lo": {"active": true, "device": "lo", "ipv4": {"address": "127.0.0.1", "broadcast": "host", "netmask": "255.0.0.0", "network": "127.0.0.0"}, "ipv6": [{"address": "::1", "prefix": "128", "scope": "host"}], "mtu": 65536, "promisc": false, "type": "loopback"}, "ansible_local": {}, "ansible_lsb": {}, "ansible_machine": "x86_64", "ansible_machine_id": "edeadca1c556472e8ebd7ba9f505ef60", "ansible_memfree_mb": 647, "ansible_memory_mb": {"nocache": {"free": 840, "used": 142}, "real": {"free": 647, "total": 982, "used": 335}, "swap": {"cached": 0, "free": 0, "total": 0, "used": 0}}, "ansible_memtotal_mb": 982, "ansible_mounts": [{"block_available": 731960, "block_size": 4096, "block_total": 1015472, "block_used": 283512, "device": "/dev/vda1", "fstype": "ext4", "inode_available": 233659, "inode_total": 262144, "inode_used": 28485, "mount": "/", "options": "rw,seclabel,relatime", "size_available": 2998108160, "size_total": 4159373312, "uuid": "ea711a29-e460-4879-9d70-9da99ae021f9"}], "ansible_nodename": "ibm-p8-kvm-03-guest-02", "ansible_os_family": "RedHat", "ansible_pkg_mgr": "dnf", "ansible_proc_cmdline": {"BOOT_IMAGE": "(hd0,msdos1)/boot/vmlinuz-5.0.9-301.fc30.x86_64", "console": ["tty1", "ttyS0,115200n8"], "net.ifnames": "0", "no_timer_check": true, "ro": true, "root": "UUID=ea711a29-e460-4879-9d70-9da99ae021f9"}, "ansible_processor": ["0", "GenuineIntel", "Intel(R) Core(TM) i7-7600U CPU @ 2.80GHz", "1", "GenuineIntel", "Intel(R) Core(TM) i7-7600U CPU @ 2.80GHz", "2", "GenuineIntel", "Intel(R) Core(TM) i7-7600U CPU @ 2.80GHz"], "ansible_processor_cores": 1, "ansible_processor_count": 3, "ansible_processor_threads_per_core": 1, "ansible_processor_vcpus": 3, "ansible_product_name": "Standard PC (i440FX + PIIX, 1996)", "ansible_product_serial": "NA", "ansible_product_uuid": "NA", "ansible_product_version": "pc-i440fx-3.1", "ansible_python": {"executable": "/usr/bin/python3", "has_sslcontext": true, "type": "cpython", "version": {"major": 3, "micro": 3, "minor": 7, "releaselevel": "final", "serial": 0}, "version_info": [3, 7, 3, "final", 0]}, "ansible_python_version": "3.7.3", "ansible_real_group_id": 0, "ansible_real_user_id": 0, "ansible_selinux": {"config_mode": "enforcing", "mode": "enforcing", "policyvers": 31, "status": "enabled", "type": "targeted"}, "ansible_selinux_python_present": true, "ansible_service_mgr": "systemd", "ansible_ssh_host_key_ecdsa_public": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBD4po8A/hOljn1EH04EjtfliM62pbi7edGimntWaba0OTuKnZdoTVXv4r0nVVm3qrUf4sTcsPsNME26bECiHyVU=", "ansible_ssh_host_key_ed25519_public": "AAAAC3NzaC1lZDI1NTE5AAAAIE9S9mU0d0oyl9QmGVn4KS6QlZhpQmpgFOLinDKmjcVI", "ansible_ssh_host_key_rsa_public": "AAAAB3NzaC1yc2EAAAADAQABAAABAQD4X7/tuWJq7SC8kXFMjSIagTN0dnn+nH58uhDrRyuF5w4H8mp7fUPNLqlzas+LcfiC0auXAXi7WMAiZSgp/Hq0AJMBdctyv4U4D1+F5MdPwzBsg0efq47EnmyCNOpD2zXY5eJmTGrb2cpHAxUU3izLwersOwIMPCoL3E5szF9ou0vKh5J2FSBA0jOou7RDKDQbrgy44J/cZpjdUIE6s79PwkzBqHs9UDk4XL/sY57f/e0Sd4nJ8+0TshoPQbXqQPFHyI9uziRkVBBCXxeF99TSDyvN1/wKshMLgSxJjQ+QuW76N5RezLGhT2rHXIaVyVIPGDzTDDcZiaP4QxKR1YfF", "ansible_swapfree_mb": 0, "ansible_swaptotal_mb": 0, "ansible_system": "Linux", "ansible_system_capabilities": ["cap_chown", "cap_dac_override", "cap_dac_read_search", "cap_fowner", "cap_fsetid", "cap_kill", "cap_setgid", "cap_setuid", "cap_setpcap", "cap_linux_immutable", "cap_net_bind_service", "cap_net_broadcast", "cap_net_admin", "cap_net_raw", "cap_ipc_lock", "cap_ipc_owner", "cap_sys_module", "cap_sys_rawio", "cap_sys_chroot", "cap_sys_ptrace", "cap_sys_pacct", "cap_sys_admin", "cap_sys_boot", "cap_sys_nice", "cap_sys_resource", "cap_sys_time", "cap_sys_tty_config", "cap_mknod", "cap_lease", "cap_audit_write", "cap_audit_control", "cap_setfcap", "cap_mac_override", "cap_mac_admin", "cap_syslog", "cap_wake_alarm", "cap_block_suspend", "cap_audit_read+ep"], "ansible_system_capabilities_enforced": "True", "ansible_system_vendor": "QEMU", "ansible_uptime_seconds": 15, "ansible_user_dir": "/root", "ansible_user_gecos": "root", "ansible_user_gid": 0, "ansible_user_id": "root", "ansible_user_shell": "/bin/bash", "ansible_user_uid": 0, "ansible_userspace_architecture": "x86_64", "ansible_userspace_bits": "64", "ansible_virtualization_role": "guest", "ansible_virtualization_type": "kvm", "gather_subset": ["all"], "module_setup": true}, "changed": false} META: ran handlers TASK [include_role : storage] ****************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/tests_filesystem_one_disk.yml:8 TASK [storage : define an empty list of pools to be used in testing] *************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main.yml:2 ok: [/home/till/lsr-test-harness-files/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/tmpshcwqol8/tasks/main.yml:6 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : include the appropriate backend tasks] ***************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main.yml:10 included: /tmp/tmpshcwqol8/tasks/main-blivet.yml for /home/till/lsr-test-harness-files/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/tmpshcwqol8/tasks/main-blivet.yml:2 skipping: [/home/till/lsr-test-harness-files/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/tmpshcwqol8/tasks/main-blivet.yml:7 changed: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: python3-blivet", "Installed: libblockdev-kbd-2.21-3.fc30.x86_64", "Installed: lvm2-2.02.183-3.fc30.x86_64", "Installed: libblockdev-loop-2.21-3.fc30.x86_64", "Installed: libblockdev-lvm-2.21-3.fc30.x86_64", "Installed: lvm2-libs-2.02.183-3.fc30.x86_64", "Installed: gdisk-1.0.4-4.fc30.x86_64", "Installed: lzo-2.08-15.fc30.x86_64", "Installed: python3-blivet-1:3.1.3-3.fc30.noarch", "Installed: libblockdev-mdraid-2.21-3.fc30.x86_64", "Installed: libblockdev-mpath-2.21-3.fc30.x86_64", "Installed: daxctl-libs-65-1.fc30.x86_64", "Installed: gobject-introspection-1.60.1-2.fc30.x86_64", "Installed: libblockdev-nvdimm-2.21-3.fc30.x86_64", "Installed: libblockdev-part-2.21-3.fc30.x86_64", "Installed: python3-blockdev-2.21-3.fc30.x86_64", "Installed: sgpio-1.2.0.10-23.fc30.x86_64", "Installed: libblockdev-swap-2.21-3.fc30.x86_64", "Installed: lsof-4.91-3.fc30.x86_64", "Installed: device-mapper-event-1.02.154-3.fc30.x86_64", "Installed: python3-bytesize-2.0-1.fc30.x86_64", "Installed: libblockdev-utils-2.21-3.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: device-mapper-multipath-libs-0.7.9-6.git2df6110.fc30.x86_64", "Installed: nss-3.44.0-2.fc30.x86_64", "Installed: device-mapper-persistent-data-0.7.6-4.fc30.x86_64", "Installed: libbytesize-2.0-1.fc30.x86_64", "Installed: nss-softokn-3.44.0-2.fc30.x86_64", "Installed: nss-softokn-freebl-3.44.0-2.fc30.x86_64", "Installed: volume_key-libs-0.3.12-3.fc30.x86_64", "Installed: nss-sysinit-3.44.0-2.fc30.x86_64", "Installed: bcache-tools-1.0.8-15.fc30.x86_64", "Installed: nss-util-3.44.0-2.fc30.x86_64", "Installed: btrfs-progs-4.20.2-1.fc30.x86_64", "Installed: nspr-4.21.0-1.fc30.x86_64", "Installed: python3-pyudev-0.21.0-10.fc30.noarch", "Installed: mdadm-4.1-rc2.0.3.fc30.x86_64", "Installed: blivet-data-1:3.1.3-3.fc30.noarch", "Installed: python3-gobject-base-3.32.1-1.fc30.x86_64", "Installed: python3-pyparted-1:3.11.2-1.fc30.x86_64", "Installed: libblockdev-2.21-3.fc30.x86_64", "Installed: libaio-0.3.111-4.fc30.x86_64", "Installed: libblockdev-btrfs-2.21-3.fc30.x86_64", "Installed: libblockdev-crypto-2.21-3.fc30.x86_64", "Installed: userspace-rcu-0.10.1-5.fc30.x86_64", "Installed: ndctl-65-1.fc30.x86_64", "Installed: libblockdev-dm-2.21-3.fc30.x86_64", "Installed: dmraid-1.0.0.rc16-41.fc30.x86_64", "Installed: ndctl-libs-65-1.fc30.x86_64", "Installed: dmraid-events-1.0.0.rc16-41.fc30.x86_64", "Installed: libblockdev-fs-2.21-3.fc30.x86_64"]} TASK [storage : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:15 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"all_vols": [], "pools": [], "vol_pools": [], "vols": [], "vols_by_pool": [], "volumes": []}, "changed": false} TASK [storage : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:23 TASK [storage : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:30 TASK [storage : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:37 skipping: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [storage : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:44 TASK [storage : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:49 TASK [storage : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:57 TASK [storage : set the list of pools for test verification] *********************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:72 ok: [/home/till/lsr-test-harness-files/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/tmpshcwqol8/tasks/main-blivet.yml:76 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:80 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "pools": [] } TASK [storage : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:83 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "volumes": [] } TASK [storage : manage the pools] ************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:86 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": [], "mounts": [], "removed_mounts": []} TASK [storage : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:92 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "blivet_output": { "actions": [], "changed": false, "failed": false, "leaves": [], "mounts": [], "removed_mounts": [] } } TASK [storage : remove obsolete mounts] ******************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:103 TASK [storage : add new mounts] **************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:111 TASK [storage : tell systemd to refresh its view of /etc/fstab] ******************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:122 skipping: [/home/till/lsr-test-harness-files/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/tmpshcwqol8/tasks/main-blivet.yml:131 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] TASK [include_tasks] *************************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/tests_filesystem_one_disk.yml:11 included: /tmp/tmpshcwqol8/tests/get_unused_disk.yml for /home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [Find unused disks in the system] ********************************************************************************************************************************************************************* task path: /tmp/tmpshcwqol8/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: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "disks": ["vdb"]} TASK [set_fact] ******************************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/get_unused_disk.yml:8 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"unused_disks": ["vdb"]}, "changed": false} TASK [Exit playbook when there's no unused disks in the system] ******************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/get_unused_disk.yml:13 skipping: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {} META: TASK [Print unused disks] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/get_unused_disk.yml:19 ok: [/home/till/lsr-test-harness-files/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/tmpshcwqol8/tests/tests_filesystem_one_disk.yml:15 TASK [storage : define an empty list of pools to be used in testing] *************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main.yml:2 ok: [/home/till/lsr-test-harness-files/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/tmpshcwqol8/tasks/main.yml:6 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : include the appropriate backend tasks] ***************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main.yml:10 included: /tmp/tmpshcwqol8/tasks/main-blivet.yml for /home/till/lsr-test-harness-files/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/tmpshcwqol8/tasks/main-blivet.yml:2 skipping: [/home/till/lsr-test-harness-files/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/tmpshcwqol8/tasks/main-blivet.yml:7 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: python3-blivet"]} TASK [storage : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:15 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"all_vols": [], "pools": [], "vol_pools": [], "vols": [], "vols_by_pool": [], "volumes": []}, "changed": false} TASK [storage : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:23 TASK [storage : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:30 TASK [storage : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:37 skipping: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [storage : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:44 TASK [storage : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:49 TASK [storage : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:57 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'name': 'test1', 'type': 'disk', 'mount_point': '/opt/test1', 'disks': ['vdb']}) => {"ansible_facts": {"volumes": [{"disks": ["vdb"], "fs_create_options": "", "fs_destroy_options": "-af", "fs_label": "", "fs_overwrite_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 : set the list of pools for test verification] *********************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:72 ok: [/home/till/lsr-test-harness-files/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/tmpshcwqol8/tasks/main-blivet.yml:76 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": [{"disks": ["vdb"], "fs_create_options": "", "fs_destroy_options": "-af", "fs_label": "", "fs_overwrite_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 : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:80 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "pools": [] } TASK [storage : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:83 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "volumes": [ { "disks": [ "vdb" ], "fs_create_options": "", "fs_destroy_options": "-af", "fs_label": "", "fs_overwrite_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 : manage the pools] ************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:86 changed: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": ["create format xfs on /dev/vdb"], "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"}], "removed_mounts": []} TASK [storage : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:92 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "blivet_output": { "actions": [ "create format xfs on /dev/vdb" ], "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" } ], "removed_mounts": [] } } TASK [storage : remove obsolete mounts] ******************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:103 TASK [storage : add new mounts] **************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:111 changed: [/home/till/lsr-test-harness-files/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/tmpshcwqol8/tasks/main-blivet.yml:122 changed: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["systemctl", "daemon-reload"], "delta": "0:00:00.238193", "end": "2019-05-25 13:51:26.420168", "rc": 0, "start": "2019-05-25 13:51:26.181975", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [storage : Update facts] ****************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:131 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] TASK [include_tasks] *************************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/tests_filesystem_one_disk.yml:25 included: /tmp/tmpshcwqol8/tests/verify-role-results.yml for /home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [set_fact] ******************************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/verify-role-results.yml:1 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_tests_list": ["verify-volumes"]}, "changed": false} TASK [Print out pool information] ************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/verify-role-results.yml:4 skipping: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {} TASK [Print out volume information] ************************************************************************************************************************************************************************ task path: /tmp/tmpshcwqol8/tests/verify-role-results.yml:9 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_volumes_list": [ { "disks": [ "vdb" ], "fs_create_options": "", "fs_destroy_options": "-af", "fs_label": "", "fs_overwrite_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 [Ensure the specified devices in the role were correctly configured in the user's system] ************************************************************************************************************* task path: /tmp/tmpshcwqol8/tests/verify-role-results.yml:14 included: /tmp/tmpshcwqol8/tests/test-verify-volumes.yml for /home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [Read the /etc/fstab file for volume existence] ******************************************************************************************************************************************************* task path: /tmp/tmpshcwqol8/tests/test-verify-volumes.yml:2 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/fstab"], "delta": "0:00:00.002328", "end": "2019-05-25 13:51:27.804664", "rc": 0, "start": "2019-05-25 13:51:27.802336", "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/tmpshcwqol8/tests/test-verify-volumes.yml:7 TASK [resolve_blockdev] ************************************************************************************************************************************************************************************ task path: /tmp/tmpshcwqol8/tests/test-verify-volumes.yml:14 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/dev/vdb) => {"ansible_loop_var": "dev_id", "changed": false, "dev_id": "/dev/vdb", "device": "/dev/vdb"} TASK [resolve_blockdev] ************************************************************************************************************************************************************************************ task path: /tmp/tmpshcwqol8/tests/test-verify-volumes.yml:21 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/dev/vda1) => {"ansible_loop_var": "dev_id", "changed": false, "dev_id": "/dev/vda1", "device": "/dev/vda1"} ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/dev/vdb) => {"ansible_loop_var": "dev_id", "changed": false, "dev_id": "/dev/vdb", "device": "/dev/vdb"} TASK [set_fact] ******************************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/test-verify-volumes.yml:28 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"ansible_mount_devs": ["/dev/vda1", "/dev/vdb"], "blivet_mount_devs": ["/dev/vdb"], "removed_volumes": []}, "changed": false} TASK [set_fact] ******************************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/test-verify-volumes.yml:33 TASK [Verify the volumes with no pool were correctly managed] ********************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/test-verify-volumes.yml:40 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'disk', 'size': 0, 'fs_type': 'xfs', 'fs_label': '', 'fs_create_options': '', 'fs_destroy_options': '-af', 'fs_overwrite_existing': True, 'mount_point': '/opt/test1', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid', 'name': 'test1', 'disks': ['vdb']}) => { "ansible_loop_var": "current_volume", "changed": false, "current_volume": { "disks": [ "vdb" ], "fs_create_options": "", "fs_destroy_options": "-af", "fs_label": "", "fs_overwrite_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" }, "msg": "All assertions passed" } TASK [Verify the present volumes with no pool were correctly managed] ************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/test-verify-volumes.yml:52 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'disk', 'size': 0, 'fs_type': 'xfs', 'fs_label': '', 'fs_create_options': '', 'fs_destroy_options': '-af', 'fs_overwrite_existing': True, 'mount_point': '/opt/test1', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid', 'name': 'test1', 'disks': ['vdb']}) => { "ansible_loop_var": "current_volume", "changed": false, "current_volume": { "disks": [ "vdb" ], "fs_create_options": "", "fs_destroy_options": "-af", "fs_label": "", "fs_overwrite_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" }, "idx": 0, "msg": "All assertions passed" } TASK [Verify the absent volumes with no pool are not in ansible_mounts] ************************************************************************************************************************************ task path: /tmp/tmpshcwqol8/tests/test-verify-volumes.yml:65 META: ran handlers META: ran handlers PLAY RECAP ************************************************************************************************************************************************************************************************* /home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 : ok=43 changed=4 unreachable=0 failed=0 skipped=23 rescued=0 ignored=0 + cd /tmp/tmpshcwqol8/tests; TEST_SUBJECTS=/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_storage-25-db52957-fedora-30-cqpxlans/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmpshcwqol8/_setup.yml /tmp/tmpshcwqol8/tests/tests_lvm_multiple_disks_multiple_volumes.yml ansible-playbook 2.8.0 config file = /home/till/.ansible.cfg configured module search path = ['/home/till/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.7/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 3.7.3 (default, May 11 2019, 00:38:04) [GCC 9.1.1 20190503 (Red Hat 9.1.1-1)] Using /home/till/.ansible.cfg as config file PLAYBOOK: _setup.yml *************************************************************************************************************************************************************************************** 1 plays in /tmp/tmpshcwqol8/_setup.yml PLAY [Fail when only localhost is available] *************************************************************************************************************************************************************** META: ran handlers TASK [debug] *********************************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/_setup.yml:5 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "groups": { "all": [ "/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2" ], "localhost": [ "/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2" ], "subjects": [ "/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2" ], "ungrouped": [] } } TASK [fail] ************************************************************************************************************************************************************************************************ task path: /tmp/tmpshcwqol8/_setup.yml:7 skipping: [/home/till/lsr-test-harness-files/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 ************************************************************************************************************************************************************************************************* /home/till/lsr-test-harness-files/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/tmpshcwqol8/tests/tests_lvm_multiple_disks_multiple_volumes.yml PLAY [all] ************************************************************************************************************************************************************************************************* TASK [Gathering Facts] ************************************************************************************************************************************************************************************* task path: /tmp/tmpshcwqol8/tests/tests_lvm_multiple_disks_multiple_volumes.yml:2 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"ansible_all_ipv4_addresses": ["10.0.2.15"], "ansible_all_ipv6_addresses": ["fec0::5054:ff:fe12:3456", "fe80::5054:ff:fe12:3456"], "ansible_apparmor": {"status": "disabled"}, "ansible_architecture": "x86_64", "ansible_bios_date": "04/01/2014", "ansible_bios_version": "1.12.0-2.fc30", "ansible_cmdline": {"BOOT_IMAGE": "(hd0,msdos1)/boot/vmlinuz-5.0.9-301.fc30.x86_64", "console": "ttyS0,115200n8", "net.ifnames": "0", "no_timer_check": true, "ro": true, "root": "UUID=ea711a29-e460-4879-9d70-9da99ae021f9"}, "ansible_date_time": {"date": "2019-05-25", "day": "25", "epoch": "1558792305", "hour": "13", "iso8601": "2019-05-25T13:51:45Z", "iso8601_basic": "20190525T135145273073", "iso8601_basic_short": "20190525T135145", "iso8601_micro": "2019-05-25T13:51:45.273179Z", "minute": "51", "month": "05", "second": "45", "time": "13:51:45", "tz": "UTC", "tz_offset": "+0000", "weekday": "Saturday", "weekday_number": "6", "weeknumber": "20", "year": "2019"}, "ansible_default_ipv4": {"address": "10.0.2.15", "alias": "eth0", "broadcast": "10.0.2.255", "gateway": "10.0.2.2", "interface": "eth0", "macaddress": "52:54:00:12:34:56", "mtu": 1500, "netmask": "255.255.255.0", "network": "10.0.2.0", "type": "ether"}, "ansible_default_ipv6": {"address": "fec0::5054:ff:fe12:3456", "gateway": "fe80::2", "interface": "eth0", "macaddress": "52:54:00:12:34:56", "mtu": 1500, "prefix": "64", "scope": "site", "type": "ether"}, "ansible_device_links": {"ids": {"sr0": ["ata-QEMU_DVD-ROM_QM00003"]}, "labels": {"sr0": ["cidata"]}, "masters": {}, "uuids": {"sr0": ["2019-05-25-15-51-29-00"], "vda1": ["ea711a29-e460-4879-9d70-9da99ae021f9"]}}, "ansible_devices": {"sr0": {"holders": [], "host": "", "links": {"ids": ["ata-QEMU_DVD-ROM_QM00003"], "labels": ["cidata"], "masters": [], "uuids": ["2019-05-25-15-51-29-00"]}, "model": "QEMU DVD-ROM", "partitions": {}, "removable": "1", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "mq-deadline", "sectors": "728", "sectorsize": "2048", "size": "364.00 KB", "support_discard": "0", "vendor": "QEMU", "virtual": 1}, "vda": {"holders": [], "host": "", "links": {"ids": [], "labels": [], "masters": [], "uuids": []}, "model": null, "partitions": {"vda1": {"holders": [], "links": {"ids": [], "labels": [], "masters": [], "uuids": ["ea711a29-e460-4879-9d70-9da99ae021f9"]}, "sectors": "8386560", "sectorsize": 512, "size": "4.00 GB", "start": "2048", "uuid": "ea711a29-e460-4879-9d70-9da99ae021f9"}}, "removable": "0", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "mq-deadline", "sectors": "8388608", "sectorsize": "512", "size": "4.00 GB", "support_discard": "0", "vendor": "0x1af4", "virtual": 1}, "vdb": {"holders": [], "host": "", "links": {"ids": [], "labels": [], "masters": [], "uuids": []}, "model": null, "partitions": {}, "removable": "0", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "mq-deadline", "sectors": "20971520", "sectorsize": "512", "size": "10.00 GB", "support_discard": "0", "vendor": "0x1af4", "virtual": 1}, "vdc": {"holders": [], "host": "", "links": {"ids": [], "labels": [], "masters": [], "uuids": []}, "model": null, "partitions": {}, "removable": "0", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "mq-deadline", "sectors": "20971520", "sectorsize": "512", "size": "10.00 GB", "support_discard": "0", "vendor": "0x1af4", "virtual": 1}}, "ansible_distribution": "Fedora", "ansible_distribution_file_parsed": true, "ansible_distribution_file_path": "/etc/redhat-release", "ansible_distribution_file_variety": "RedHat", "ansible_distribution_major_version": "30", "ansible_distribution_release": "", "ansible_distribution_version": "30", "ansible_dns": {"nameservers": ["10.0.2.3"]}, "ansible_domain": "", "ansible_effective_group_id": 0, "ansible_effective_user_id": 0, "ansible_env": {"DBUS_SESSION_BUS_ADDRESS": "unix:path=/run/user/0/bus", "HOME": "/root", "LANG": "en_US.UTF-8", "LESSOPEN": "||/usr/bin/lesspipe.sh %s", "LOGNAME": "root", "LS_COLORS": "rs=0:di=38;5;33:ln=38;5;51:mh=00:pi=40;38;5;11:so=38;5;13:do=38;5;5:bd=48;5;232;38;5;11:cd=48;5;232;38;5;3:or=48;5;232;38;5;9:mi=01;05;37;41:su=48;5;196;38;5;15:sg=48;5;11;38;5;16:ca=48;5;196;38;5;226:tw=48;5;10;38;5;16:ow=48;5;10;38;5;21:st=48;5;21;38;5;15:ex=38;5;40:*.tar=38;5;9:*.tgz=38;5;9:*.arc=38;5;9:*.arj=38;5;9:*.taz=38;5;9:*.lha=38;5;9:*.lz4=38;5;9:*.lzh=38;5;9:*.lzma=38;5;9:*.tlz=38;5;9:*.txz=38;5;9:*.tzo=38;5;9:*.t7z=38;5;9:*.zip=38;5;9:*.z=38;5;9:*.dz=38;5;9:*.gz=38;5;9:*.lrz=38;5;9:*.lz=38;5;9:*.lzo=38;5;9:*.xz=38;5;9:*.zst=38;5;9:*.tzst=38;5;9:*.bz2=38;5;9:*.bz=38;5;9:*.tbz=38;5;9:*.tbz2=38;5;9:*.tz=38;5;9:*.deb=38;5;9:*.rpm=38;5;9:*.jar=38;5;9:*.war=38;5;9:*.ear=38;5;9:*.sar=38;5;9:*.rar=38;5;9:*.alz=38;5;9:*.ace=38;5;9:*.zoo=38;5;9:*.cpio=38;5;9:*.7z=38;5;9:*.rz=38;5;9:*.cab=38;5;9:*.wim=38;5;9:*.swm=38;5;9:*.dwm=38;5;9:*.esd=38;5;9:*.jpg=38;5;13:*.jpeg=38;5;13:*.mjpg=38;5;13:*.mjpeg=38;5;13:*.gif=38;5;13:*.bmp=38;5;13:*.pbm=38;5;13:*.pgm=38;5;13:*.ppm=38;5;13:*.tga=38;5;13:*.xbm=38;5;13:*.xpm=38;5;13:*.tif=38;5;13:*.tiff=38;5;13:*.png=38;5;13:*.svg=38;5;13:*.svgz=38;5;13:*.mng=38;5;13:*.pcx=38;5;13:*.mov=38;5;13:*.mpg=38;5;13:*.mpeg=38;5;13:*.m2v=38;5;13:*.mkv=38;5;13:*.webm=38;5;13:*.ogm=38;5;13:*.mp4=38;5;13:*.m4v=38;5;13:*.mp4v=38;5;13:*.vob=38;5;13:*.qt=38;5;13:*.nuv=38;5;13:*.wmv=38;5;13:*.asf=38;5;13:*.rm=38;5;13:*.rmvb=38;5;13:*.flc=38;5;13:*.avi=38;5;13:*.fli=38;5;13:*.flv=38;5;13:*.gl=38;5;13:*.dl=38;5;13:*.xcf=38;5;13:*.xwd=38;5;13:*.yuv=38;5;13:*.cgm=38;5;13:*.emf=38;5;13:*.ogv=38;5;13:*.ogx=38;5;13:*.aac=38;5;45:*.au=38;5;45:*.flac=38;5;45:*.m4a=38;5;45:*.mid=38;5;45:*.midi=38;5;45:*.mka=38;5;45:*.mp3=38;5;45:*.mpc=38;5;45:*.ogg=38;5;45:*.ra=38;5;45:*.wav=38;5;45:*.oga=38;5;45:*.opus=38;5;45:*.spx=38;5;45:*.xspf=38;5;45:", "MAIL": "/var/mail/root", "PATH": "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin", "PWD": "/root", "SELINUX_LEVEL_REQUESTED": "", "SELINUX_ROLE_REQUESTED": "", "SELINUX_USE_CURRENT_RANGE": "", "SHELL": "/bin/bash", "SHLVL": "1", "SSH_CLIENT": "10.0.2.2 50662 22", "SSH_CONNECTION": "10.0.2.2 50662 10.0.2.15 22", "SSH_TTY": "/dev/pts/0", "TERM": "xterm-256color", "USER": "root", "XDG_RUNTIME_DIR": "/run/user/0", "XDG_SESSION_CLASS": "user", "XDG_SESSION_ID": "1", "XDG_SESSION_TYPE": "tty", "_": "/usr/bin/python3"}, "ansible_eth0": {"active": true, "device": "eth0", "ipv4": {"address": "10.0.2.15", "broadcast": "10.0.2.255", "netmask": "255.255.255.0", "network": "10.0.2.0"}, "ipv6": [{"address": "fec0::5054:ff:fe12:3456", "prefix": "64", "scope": "site"}, {"address": "fe80::5054:ff:fe12:3456", "prefix": "64", "scope": "link"}], "macaddress": "52:54:00:12:34:56", "module": "virtio_net", "mtu": 1500, "pciid": "virtio0", "promisc": false, "speed": -1, "type": "ether"}, "ansible_fibre_channel_wwn": [], "ansible_fips": false, "ansible_form_factor": "Other", "ansible_fqdn": "ibm-p8-kvm-03-guest-02", "ansible_hostname": "ibm-p8-kvm-03-guest-02", "ansible_hostnqn": "", "ansible_interfaces": ["lo", "eth0"], "ansible_is_chroot": false, "ansible_iscsi_iqn": "", "ansible_kernel": "5.0.9-301.fc30.x86_64", "ansible_lo": {"active": true, "device": "lo", "ipv4": {"address": "127.0.0.1", "broadcast": "host", "netmask": "255.0.0.0", "network": "127.0.0.0"}, "ipv6": [{"address": "::1", "prefix": "128", "scope": "host"}], "mtu": 65536, "promisc": false, "type": "loopback"}, "ansible_local": {}, "ansible_lsb": {}, "ansible_machine": "x86_64", "ansible_machine_id": "4b83c06b0b8442ea8fc99901a5a8cae4", "ansible_memfree_mb": 646, "ansible_memory_mb": {"nocache": {"free": 839, "used": 143}, "real": {"free": 646, "total": 982, "used": 336}, "swap": {"cached": 0, "free": 0, "total": 0, "used": 0}}, "ansible_memtotal_mb": 982, "ansible_mounts": [{"block_available": 731959, "block_size": 4096, "block_total": 1015472, "block_used": 283513, "device": "/dev/vda1", "fstype": "ext4", "inode_available": 233659, "inode_total": 262144, "inode_used": 28485, "mount": "/", "options": "rw,seclabel,relatime", "size_available": 2998104064, "size_total": 4159373312, "uuid": "ea711a29-e460-4879-9d70-9da99ae021f9"}], "ansible_nodename": "ibm-p8-kvm-03-guest-02", "ansible_os_family": "RedHat", "ansible_pkg_mgr": "dnf", "ansible_proc_cmdline": {"BOOT_IMAGE": "(hd0,msdos1)/boot/vmlinuz-5.0.9-301.fc30.x86_64", "console": ["tty1", "ttyS0,115200n8"], "net.ifnames": "0", "no_timer_check": true, "ro": true, "root": "UUID=ea711a29-e460-4879-9d70-9da99ae021f9"}, "ansible_processor": ["0", "GenuineIntel", "Intel(R) Core(TM) i7-7600U CPU @ 2.80GHz", "1", "GenuineIntel", "Intel(R) Core(TM) i7-7600U CPU @ 2.80GHz", "2", "GenuineIntel", "Intel(R) Core(TM) i7-7600U CPU @ 2.80GHz"], "ansible_processor_cores": 1, "ansible_processor_count": 3, "ansible_processor_threads_per_core": 1, "ansible_processor_vcpus": 3, "ansible_product_name": "Standard PC (i440FX + PIIX, 1996)", "ansible_product_serial": "NA", "ansible_product_uuid": "NA", "ansible_product_version": "pc-i440fx-3.1", "ansible_python": {"executable": "/usr/bin/python3", "has_sslcontext": true, "type": "cpython", "version": {"major": 3, "micro": 3, "minor": 7, "releaselevel": "final", "serial": 0}, "version_info": [3, 7, 3, "final", 0]}, "ansible_python_version": "3.7.3", "ansible_real_group_id": 0, "ansible_real_user_id": 0, "ansible_selinux": {"config_mode": "enforcing", "mode": "enforcing", "policyvers": 31, "status": "enabled", "type": "targeted"}, "ansible_selinux_python_present": true, "ansible_service_mgr": "systemd", "ansible_ssh_host_key_ecdsa_public": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBJJdO0+/yBwwoV+wLJr6dnTcYBmzhjWmnk6voSNeBvI9Sy2qHEVOtfIOCG1f+2GyrZg1ZxawkFVKCaSWTQzzMQo=", "ansible_ssh_host_key_ed25519_public": "AAAAC3NzaC1lZDI1NTE5AAAAIOn0wss7N4Fm+lF5D90qnqc3h7Pmcf7gwx3hRXwgSLP0", "ansible_ssh_host_key_rsa_public": "AAAAB3NzaC1yc2EAAAADAQABAAABAQDKNn/pM4kiclRjstoxb6swYm9ixOmh6J7zLjIpzctBVkmiuxqIT2bxyZp527U+UyG0FnbYR3XloRsFEZDWYIYG6gJ1wGlEzVQOldTmJTuHCQ0lg7BzwDGHLnnxl0Pmfcu2kdCfm28hR7UyJEEgdszcr1tAjusljw6/uEFisQHX+tcYzqxNDN7vVDSphmcVHz7otJ0gQxP0qcS4MWI8t73R4dj62m7VU/GM76aCdNoWhTXLUACF6DoWX8YO6DUAoHQ22MtbMQltBmcxai95CY6kFyZ8PHZp1JiOqMTk591zI4aRs4Tm+SRKGOK0/Lb93uOWg/2D+dwVwdXSzJP7LD0p", "ansible_swapfree_mb": 0, "ansible_swaptotal_mb": 0, "ansible_system": "Linux", "ansible_system_capabilities": ["cap_chown", "cap_dac_override", "cap_dac_read_search", "cap_fowner", "cap_fsetid", "cap_kill", "cap_setgid", "cap_setuid", "cap_setpcap", "cap_linux_immutable", "cap_net_bind_service", "cap_net_broadcast", "cap_net_admin", "cap_net_raw", "cap_ipc_lock", "cap_ipc_owner", "cap_sys_module", "cap_sys_rawio", "cap_sys_chroot", "cap_sys_ptrace", "cap_sys_pacct", "cap_sys_admin", "cap_sys_boot", "cap_sys_nice", "cap_sys_resource", "cap_sys_time", "cap_sys_tty_config", "cap_mknod", "cap_lease", "cap_audit_write", "cap_audit_control", "cap_setfcap", "cap_mac_override", "cap_mac_admin", "cap_syslog", "cap_wake_alarm", "cap_block_suspend", "cap_audit_read+ep"], "ansible_system_capabilities_enforced": "True", "ansible_system_vendor": "QEMU", "ansible_uptime_seconds": 12, "ansible_user_dir": "/root", "ansible_user_gecos": "root", "ansible_user_gid": 0, "ansible_user_id": "root", "ansible_user_shell": "/bin/bash", "ansible_user_uid": 0, "ansible_userspace_architecture": "x86_64", "ansible_userspace_bits": "64", "ansible_virtualization_role": "guest", "ansible_virtualization_type": "kvm", "gather_subset": ["all"], "module_setup": true}, "changed": false} META: ran handlers TASK [include_role : storage] ****************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/tests_lvm_multiple_disks_multiple_volumes.yml:11 TASK [storage : define an empty list of pools to be used in testing] *************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main.yml:2 ok: [/home/till/lsr-test-harness-files/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/tmpshcwqol8/tasks/main.yml:6 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : include the appropriate backend tasks] ***************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main.yml:10 included: /tmp/tmpshcwqol8/tasks/main-blivet.yml for /home/till/lsr-test-harness-files/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/tmpshcwqol8/tasks/main-blivet.yml:2 skipping: [/home/till/lsr-test-harness-files/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/tmpshcwqol8/tasks/main-blivet.yml:7 changed: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: python3-blivet", "Installed: libblockdev-kbd-2.21-3.fc30.x86_64", "Installed: lvm2-2.02.183-3.fc30.x86_64", "Installed: libblockdev-loop-2.21-3.fc30.x86_64", "Installed: libblockdev-lvm-2.21-3.fc30.x86_64", "Installed: lvm2-libs-2.02.183-3.fc30.x86_64", "Installed: gdisk-1.0.4-4.fc30.x86_64", "Installed: lzo-2.08-15.fc30.x86_64", "Installed: python3-blivet-1:3.1.3-3.fc30.noarch", "Installed: libblockdev-mdraid-2.21-3.fc30.x86_64", "Installed: libblockdev-mpath-2.21-3.fc30.x86_64", "Installed: daxctl-libs-65-1.fc30.x86_64", "Installed: gobject-introspection-1.60.1-2.fc30.x86_64", "Installed: libblockdev-nvdimm-2.21-3.fc30.x86_64", "Installed: libblockdev-part-2.21-3.fc30.x86_64", "Installed: python3-blockdev-2.21-3.fc30.x86_64", "Installed: sgpio-1.2.0.10-23.fc30.x86_64", "Installed: libblockdev-swap-2.21-3.fc30.x86_64", "Installed: lsof-4.91-3.fc30.x86_64", "Installed: device-mapper-event-1.02.154-3.fc30.x86_64", "Installed: python3-bytesize-2.0-1.fc30.x86_64", "Installed: libblockdev-utils-2.21-3.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: device-mapper-multipath-libs-0.7.9-6.git2df6110.fc30.x86_64", "Installed: nss-3.44.0-2.fc30.x86_64", "Installed: device-mapper-persistent-data-0.7.6-4.fc30.x86_64", "Installed: libbytesize-2.0-1.fc30.x86_64", "Installed: nss-softokn-3.44.0-2.fc30.x86_64", "Installed: nss-softokn-freebl-3.44.0-2.fc30.x86_64", "Installed: volume_key-libs-0.3.12-3.fc30.x86_64", "Installed: nss-sysinit-3.44.0-2.fc30.x86_64", "Installed: bcache-tools-1.0.8-15.fc30.x86_64", "Installed: nss-util-3.44.0-2.fc30.x86_64", "Installed: btrfs-progs-4.20.2-1.fc30.x86_64", "Installed: nspr-4.21.0-1.fc30.x86_64", "Installed: python3-pyudev-0.21.0-10.fc30.noarch", "Installed: mdadm-4.1-rc2.0.3.fc30.x86_64", "Installed: blivet-data-1:3.1.3-3.fc30.noarch", "Installed: python3-gobject-base-3.32.1-1.fc30.x86_64", "Installed: python3-pyparted-1:3.11.2-1.fc30.x86_64", "Installed: libblockdev-2.21-3.fc30.x86_64", "Installed: libaio-0.3.111-4.fc30.x86_64", "Installed: libblockdev-btrfs-2.21-3.fc30.x86_64", "Installed: libblockdev-crypto-2.21-3.fc30.x86_64", "Installed: userspace-rcu-0.10.1-5.fc30.x86_64", "Installed: ndctl-65-1.fc30.x86_64", "Installed: libblockdev-dm-2.21-3.fc30.x86_64", "Installed: dmraid-1.0.0.rc16-41.fc30.x86_64", "Installed: ndctl-libs-65-1.fc30.x86_64", "Installed: dmraid-events-1.0.0.rc16-41.fc30.x86_64", "Installed: libblockdev-fs-2.21-3.fc30.x86_64"]} TASK [storage : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:15 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"all_vols": [], "pools": [], "vol_pools": [], "vols": [], "vols_by_pool": [], "volumes": []}, "changed": false} TASK [storage : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:23 TASK [storage : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:30 TASK [storage : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:37 skipping: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [storage : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:44 TASK [storage : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:49 TASK [storage : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:57 TASK [storage : set the list of pools for test verification] *********************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:72 ok: [/home/till/lsr-test-harness-files/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/tmpshcwqol8/tasks/main-blivet.yml:76 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:80 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "pools": [] } TASK [storage : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:83 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "volumes": [] } TASK [storage : manage the pools] ************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:86 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": [], "mounts": [], "removed_mounts": []} TASK [storage : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:92 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "blivet_output": { "actions": [], "changed": false, "failed": false, "leaves": [], "mounts": [], "removed_mounts": [] } } TASK [storage : remove obsolete mounts] ******************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:103 TASK [storage : add new mounts] **************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:111 TASK [storage : tell systemd to refresh its view of /etc/fstab] ******************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:122 skipping: [/home/till/lsr-test-harness-files/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/tmpshcwqol8/tasks/main-blivet.yml:131 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] TASK [include_tasks] *************************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/tests_lvm_multiple_disks_multiple_volumes.yml:14 included: /tmp/tmpshcwqol8/tests/get_unused_disk.yml for /home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [Find unused disks in the system] ********************************************************************************************************************************************************************* task path: /tmp/tmpshcwqol8/tests/get_unused_disk.yml:2 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "disks": ["vdb", "vdc"]} TASK [set_fact] ******************************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/get_unused_disk.yml:8 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"unused_disks": ["vdb", "vdc"]}, "changed": false} TASK [Exit playbook when there's no unused disks in the system] ******************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/get_unused_disk.yml:13 skipping: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {} META: TASK [Print unused disks] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/get_unused_disk.yml:19 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "unused_disks": [ "vdb", "vdc" ] } TASK [debug] *********************************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/tests_lvm_multiple_disks_multiple_volumes.yml:20 skipping: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {} META: TASK [Create a logical volume spanning two physical volumes that changes its mount location] *************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/tests_lvm_multiple_disks_multiple_volumes.yml:26 TASK [storage : define an empty list of pools to be used in testing] *************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main.yml:2 ok: [/home/till/lsr-test-harness-files/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/tmpshcwqol8/tasks/main.yml:6 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : include the appropriate backend tasks] ***************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main.yml:10 included: /tmp/tmpshcwqol8/tasks/main-blivet.yml for /home/till/lsr-test-harness-files/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/tmpshcwqol8/tasks/main-blivet.yml:2 skipping: [/home/till/lsr-test-harness-files/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/tmpshcwqol8/tasks/main-blivet.yml:7 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: python3-blivet"]} TASK [storage : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:15 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"all_vols": [], "pools": [], "vol_pools": [], "vols": [], "vols_by_pool": [], "volumes": []}, "changed": false} TASK [storage : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:23 ok: [/home/till/lsr-test-harness-files/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": {"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 : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:30 ok: [/home/till/lsr-test-harness-files/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": {"vol_defaults": [{"fs_create_options": "", "fs_destroy_options": "-af", "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"}], "vol_pools": ["phi"], "vols": [{"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: [/home/till/lsr-test-harness-files/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": {"vol_defaults": [{"fs_create_options": "", "fs_destroy_options": "-af", "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_destroy_options": "-af", "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"}], "vol_pools": ["phi", "phi"], "vols": [{"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 : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:37 ok: [/home/till/lsr-test-harness-files/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_destroy_options': '-af', 'fs_overwrite_existing': True, 'mount_point': '', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid'}]) => {"ansible_facts": {"all_vols": [{"fs_create_options": "", "fs_destroy_options": "-af", "fs_label": "", "fs_overwrite_existing": 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_loop_var": "item", "changed": false, "idx": 0, "item": [{"mount_point": "/opt/test1", "name": "test1", "size": "4g"}, {"fs_create_options": "", "fs_destroy_options": "-af", "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: [/home/till/lsr-test-harness-files/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_destroy_options': '-af', 'fs_overwrite_existing': True, 'mount_point': '', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid'}]) => {"ansible_facts": {"all_vols": [{"fs_create_options": "", "fs_destroy_options": "-af", "fs_label": "", "fs_overwrite_existing": 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_destroy_options": "-af", "fs_label": "", "fs_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, "idx": 1, "item": [{"mount_point": "/opt/test2", "name": "test2", "size": "4g"}, {"fs_create_options": "", "fs_destroy_options": "-af", "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 : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:44 ok: [/home/till/lsr-test-harness-files/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": {"vols_by_pool": {"phi": [{"fs_create_options": "", "fs_destroy_options": "-af", "fs_label": "", "fs_overwrite_existing": 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_destroy_options": "-af", "fs_label": "", "fs_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 : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:49 ok: [/home/till/lsr-test-harness-files/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": {"pools": [{"disks": ["vdb", "vdc"], "name": "phi", "state": "present", "type": "lvm", "volumes": [{"fs_create_options": "", "fs_destroy_options": "-af", "fs_label": "", "fs_overwrite_existing": 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_destroy_options": "-af", "fs_label": "", "fs_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": "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 : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:57 TASK [storage : set the list of pools for test verification] *********************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:72 ok: [/home/till/lsr-test-harness-files/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": [{"fs_create_options": "", "fs_destroy_options": "-af", "fs_label": "", "fs_overwrite_existing": 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_destroy_options": "-af", "fs_label": "", "fs_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/tmpshcwqol8/tasks/main-blivet.yml:76 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:80 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "pools": [ { "disks": [ "vdb", "vdc" ], "name": "phi", "state": "present", "type": "lvm", "volumes": [ { "fs_create_options": "", "fs_destroy_options": "-af", "fs_label": "", "fs_overwrite_existing": 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_destroy_options": "-af", "fs_label": "", "fs_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/tmpshcwqol8/tasks/main-blivet.yml:83 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "volumes": [] } TASK [storage : manage the pools] ************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:86 changed: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": ["create format lvmpv on /dev/vdc", "create format lvmpv on /dev/vdb", "create device /dev/phi", "create device /dev/mapper/phi-test2", "create format xfs on /dev/mapper/phi-test2", "create device /dev/mapper/phi-test1", "create format xfs on /dev/mapper/phi-test1"], "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"}], "removed_mounts": []} TASK [storage : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:92 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "blivet_output": { "actions": [ "create format lvmpv on /dev/vdc", "create format lvmpv on /dev/vdb", "create device /dev/phi", "create device /dev/mapper/phi-test2", "create format xfs on /dev/mapper/phi-test2", "create device /dev/mapper/phi-test1", "create format xfs on /dev/mapper/phi-test1" ], "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" } ], "removed_mounts": [] } } TASK [storage : remove obsolete mounts] ******************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:103 TASK [storage : add new mounts] **************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:111 changed: [/home/till/lsr-test-harness-files/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: [/home/till/lsr-test-harness-files/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/tmpshcwqol8/tasks/main-blivet.yml:122 changed: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["systemctl", "daemon-reload"], "delta": "0:00:00.179555", "end": "2019-05-25 13:53:04.006194", "rc": 0, "start": "2019-05-25 13:53:03.826639", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [storage : Update facts] ****************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:131 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] TASK [include_tasks] *************************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/tests_lvm_multiple_disks_multiple_volumes.yml:41 included: /tmp/tmpshcwqol8/tests/verify-role-results.yml for /home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [set_fact] ******************************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/verify-role-results.yml:1 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_tests_list": ["verify-volumes"]}, "changed": false} TASK [Print out pool information] ************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/verify-role-results.yml:4 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools_list": [ { "disks": [ "vdb", "vdc" ], "name": "phi", "state": "present", "type": "lvm", "volumes": [ { "fs_create_options": "", "fs_destroy_options": "-af", "fs_label": "", "fs_overwrite_existing": 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_destroy_options": "-af", "fs_label": "", "fs_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/tmpshcwqol8/tests/verify-role-results.yml:9 skipping: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {} TASK [Ensure the specified devices in the role were correctly configured in the user's system] ************************************************************************************************************* task path: /tmp/tmpshcwqol8/tests/verify-role-results.yml:14 included: /tmp/tmpshcwqol8/tests/test-verify-volumes.yml for /home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [Read the /etc/fstab file for volume existence] ******************************************************************************************************************************************************* task path: /tmp/tmpshcwqol8/tests/test-verify-volumes.yml:2 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/fstab"], "delta": "0:00:00.002828", "end": "2019-05-25 13:53:06.329190", "rc": 0, "start": "2019-05-25 13:53:06.326362", "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/tmpshcwqol8/tests/test-verify-volumes.yml:7 included: /tmp/tmpshcwqol8/tests/test-volumes-present-helper.yml for /home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [set_fact] ******************************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/test-volumes-present-helper.yml:2 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"mount_entries": []}, "changed": false} TASK [gather mounts related to each volume in the pool] **************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/test-volumes-present-helper.yml:5 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'size': '4g', 'fs_type': 'xfs', 'fs_label': '', 'fs_create_options': '', 'fs_destroy_options': '-af', 'fs_overwrite_existing': True, 'mount_point': '/opt/test1', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid', 'name': 'test1', 'pool': 'phi'}) => {"ansible_facts": {"mount_entries": [[{"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": "5cbc979f-e7d0-49b1-a61b-19aa24c8d323"}]]}, "ansible_loop_var": "current_volume", "changed": false, "current_volume": {"fs_create_options": "", "fs_destroy_options": "-af", "fs_label": "", "fs_overwrite_existing": 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"}} ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'size': '4g', 'fs_type': 'xfs', 'fs_label': '', 'fs_create_options': '', 'fs_destroy_options': '-af', 'fs_overwrite_existing': True, 'mount_point': '/opt/test2', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid', 'name': 'test2', 'pool': 'phi'}) => {"ansible_facts": {"mount_entries": [[{"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": "5cbc979f-e7d0-49b1-a61b-19aa24c8d323"}], [{"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": "fc031089-18bc-4de3-b601-75619ac47128"}]]}, "ansible_loop_var": "current_volume", "changed": false, "current_volume": {"fs_create_options": "", "fs_destroy_options": "-af", "fs_label": "", "fs_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 [Ensure all lvm volumes were correctly managed in /etc/fstab and ansible_mounts.] ********************************************************************************************************************* task path: /tmp/tmpshcwqol8/tests/test-volumes-present-helper.yml:12 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'size': '4g', 'fs_type': 'xfs', 'fs_label': '', 'fs_create_options': '', 'fs_destroy_options': '-af', 'fs_overwrite_existing': True, 'mount_point': '/opt/test1', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid', 'name': 'test1', 'pool': 'phi'}) => { "ansible_loop_var": "current_volume", "changed": false, "current_volume": { "fs_create_options": "", "fs_destroy_options": "-af", "fs_label": "", "fs_overwrite_existing": 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" }, "idx": 0, "msg": "All assertions passed" } ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'size': '4g', 'fs_type': 'xfs', 'fs_label': '', 'fs_create_options': '', 'fs_destroy_options': '-af', 'fs_overwrite_existing': True, 'mount_point': '/opt/test2', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid', 'name': 'test2', 'pool': 'phi'}) => { "ansible_loop_var": "current_volume", "changed": false, "current_volume": { "fs_create_options": "", "fs_destroy_options": "-af", "fs_label": "", "fs_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" }, "idx": 1, "msg": "All assertions passed" } TASK [Ensure all lvm volumes were correctly managed in /etc/fstab and ansible_mounts.] ********************************************************************************************************************* task path: /tmp/tmpshcwqol8/tests/test-volumes-present-helper.yml:25 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'size': '4g', 'fs_type': 'xfs', 'fs_label': '', 'fs_create_options': '', 'fs_destroy_options': '-af', 'fs_overwrite_existing': True, 'mount_point': '/opt/test1', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid', 'name': 'test1', 'pool': 'phi'}) => { "ansible_loop_var": "current_volume", "changed": false, "current_volume": { "fs_create_options": "", "fs_destroy_options": "-af", "fs_label": "", "fs_overwrite_existing": 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" }, "idx": 0, "msg": "All assertions passed" } ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'size': '4g', 'fs_type': 'xfs', 'fs_label': '', 'fs_create_options': '', 'fs_destroy_options': '-af', 'fs_overwrite_existing': True, 'mount_point': '/opt/test2', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid', 'name': 'test2', 'pool': 'phi'}) => { "ansible_loop_var": "current_volume", "changed": false, "current_volume": { "fs_create_options": "", "fs_destroy_options": "-af", "fs_label": "", "fs_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" }, "idx": 1, "msg": "All assertions passed" } TASK [Ensure all lvm volumes were correctly managed in /etc/fstab.] **************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/test-volumes-present-helper.yml:38 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'size': '4g', 'fs_type': 'xfs', 'fs_label': '', 'fs_create_options': '', 'fs_destroy_options': '-af', 'fs_overwrite_existing': True, 'mount_point': '/opt/test1', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid', 'name': 'test1', 'pool': 'phi'}) => { "ansible_loop_var": "current_volume", "changed": false, "current_volume": { "fs_create_options": "", "fs_destroy_options": "-af", "fs_label": "", "fs_overwrite_existing": 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" }, "msg": "All assertions passed" } ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'size': '4g', 'fs_type': 'xfs', 'fs_label': '', 'fs_create_options': '', 'fs_destroy_options': '-af', 'fs_overwrite_existing': True, 'mount_point': '/opt/test2', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid', 'name': 'test2', 'pool': 'phi'}) => { "ansible_loop_var": "current_volume", "changed": false, "current_volume": { "fs_create_options": "", "fs_destroy_options": "-af", "fs_label": "", "fs_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" }, "msg": "All assertions passed" } TASK [resolve_blockdev] ************************************************************************************************************************************************************************************ task path: /tmp/tmpshcwqol8/tests/test-verify-volumes.yml:14 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/dev/mapper/phi-test1) => {"ansible_loop_var": "dev_id", "changed": false, "dev_id": "/dev/mapper/phi-test1", "device": "/dev/mapper/phi-test1"} ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/dev/mapper/phi-test2) => {"ansible_loop_var": "dev_id", "changed": false, "dev_id": "/dev/mapper/phi-test2", "device": "/dev/mapper/phi-test2"} TASK [resolve_blockdev] ************************************************************************************************************************************************************************************ task path: /tmp/tmpshcwqol8/tests/test-verify-volumes.yml:21 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/dev/vda1) => {"ansible_loop_var": "dev_id", "changed": false, "dev_id": "/dev/vda1", "device": "/dev/vda1"} ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/dev/mapper/phi-test1) => {"ansible_loop_var": "dev_id", "changed": false, "dev_id": "/dev/mapper/phi-test1", "device": "/dev/mapper/phi-test1"} ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/dev/mapper/phi-test2) => {"ansible_loop_var": "dev_id", "changed": false, "dev_id": "/dev/mapper/phi-test2", "device": "/dev/mapper/phi-test2"} TASK [set_fact] ******************************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/test-verify-volumes.yml:28 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"ansible_mount_devs": ["/dev/vda1", "/dev/mapper/phi-test1", "/dev/mapper/phi-test2"], "blivet_mount_devs": ["/dev/mapper/phi-test1", "/dev/mapper/phi-test2"], "removed_volumes": []}, "changed": false} TASK [set_fact] ******************************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/test-verify-volumes.yml:33 TASK [Verify the volumes with no pool were correctly managed] ********************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/test-verify-volumes.yml:40 TASK [Verify the present volumes with no pool were correctly managed] ************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/test-verify-volumes.yml:52 TASK [Verify the absent volumes with no pool are not in ansible_mounts] ************************************************************************************************************************************ task path: /tmp/tmpshcwqol8/tests/test-verify-volumes.yml:65 META: ran handlers META: ran handlers PLAY RECAP ************************************************************************************************************************************************************************************************* /home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 : ok=51 changed=4 unreachable=0 failed=0 skipped=21 rescued=0 ignored=0 + cd /tmp/tmpshcwqol8/tests; TEST_SUBJECTS=/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_storage-25-db52957-fedora-30-cqpxlans/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmpshcwqol8/_setup.yml /tmp/tmpshcwqol8/tests/tests_lvm_one_disk_multiple_volumes.yml ansible-playbook 2.8.0 config file = /home/till/.ansible.cfg configured module search path = ['/home/till/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.7/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 3.7.3 (default, May 11 2019, 00:38:04) [GCC 9.1.1 20190503 (Red Hat 9.1.1-1)] Using /home/till/.ansible.cfg as config file PLAYBOOK: _setup.yml *************************************************************************************************************************************************************************************** 1 plays in /tmp/tmpshcwqol8/_setup.yml PLAY [Fail when only localhost is available] *************************************************************************************************************************************************************** META: ran handlers TASK [debug] *********************************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/_setup.yml:5 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "groups": { "all": [ "/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2" ], "localhost": [ "/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2" ], "subjects": [ "/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2" ], "ungrouped": [] } } TASK [fail] ************************************************************************************************************************************************************************************************ task path: /tmp/tmpshcwqol8/_setup.yml:7 skipping: [/home/till/lsr-test-harness-files/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 ************************************************************************************************************************************************************************************************* /home/till/lsr-test-harness-files/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/tmpshcwqol8/tests/tests_lvm_one_disk_multiple_volumes.yml PLAY [all] ************************************************************************************************************************************************************************************************* TASK [Gathering Facts] ************************************************************************************************************************************************************************************* task path: /tmp/tmpshcwqol8/tests/tests_lvm_one_disk_multiple_volumes.yml:2 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"ansible_all_ipv4_addresses": ["10.0.2.15"], "ansible_all_ipv6_addresses": ["fec0::5054:ff:fe12:3456", "fe80::5054:ff:fe12:3456"], "ansible_apparmor": {"status": "disabled"}, "ansible_architecture": "x86_64", "ansible_bios_date": "04/01/2014", "ansible_bios_version": "1.12.0-2.fc30", "ansible_cmdline": {"BOOT_IMAGE": "(hd0,msdos1)/boot/vmlinuz-5.0.9-301.fc30.x86_64", "console": "ttyS0,115200n8", "net.ifnames": "0", "no_timer_check": true, "ro": true, "root": "UUID=ea711a29-e460-4879-9d70-9da99ae021f9"}, "ansible_date_time": {"date": "2019-05-25", "day": "25", "epoch": "1558792406", "hour": "13", "iso8601": "2019-05-25T13:53:26Z", "iso8601_basic": "20190525T135326966767", "iso8601_basic_short": "20190525T135326", "iso8601_micro": "2019-05-25T13:53:26.966838Z", "minute": "53", "month": "05", "second": "26", "time": "13:53:26", "tz": "UTC", "tz_offset": "+0000", "weekday": "Saturday", "weekday_number": "6", "weeknumber": "20", "year": "2019"}, "ansible_default_ipv4": {"address": "10.0.2.15", "alias": "eth0", "broadcast": "10.0.2.255", "gateway": "10.0.2.2", "interface": "eth0", "macaddress": "52:54:00:12:34:56", "mtu": 1500, "netmask": "255.255.255.0", "network": "10.0.2.0", "type": "ether"}, "ansible_default_ipv6": {"address": "fec0::5054:ff:fe12:3456", "gateway": "fe80::2", "interface": "eth0", "macaddress": "52:54:00:12:34:56", "mtu": 1500, "prefix": "64", "scope": "site", "type": "ether"}, "ansible_device_links": {"ids": {"sr0": ["ata-QEMU_DVD-ROM_QM00003"]}, "labels": {"sr0": ["cidata"]}, "masters": {}, "uuids": {"sr0": ["2019-05-25-15-53-09-00"], "vda1": ["ea711a29-e460-4879-9d70-9da99ae021f9"]}}, "ansible_devices": {"sr0": {"holders": [], "host": "", "links": {"ids": ["ata-QEMU_DVD-ROM_QM00003"], "labels": ["cidata"], "masters": [], "uuids": ["2019-05-25-15-53-09-00"]}, "model": "QEMU DVD-ROM", "partitions": {}, "removable": "1", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "mq-deadline", "sectors": "728", "sectorsize": "2048", "size": "364.00 KB", "support_discard": "0", "vendor": "QEMU", "virtual": 1}, "vda": {"holders": [], "host": "", "links": {"ids": [], "labels": [], "masters": [], "uuids": []}, "model": null, "partitions": {"vda1": {"holders": [], "links": {"ids": [], "labels": [], "masters": [], "uuids": ["ea711a29-e460-4879-9d70-9da99ae021f9"]}, "sectors": "8386560", "sectorsize": 512, "size": "4.00 GB", "start": "2048", "uuid": "ea711a29-e460-4879-9d70-9da99ae021f9"}}, "removable": "0", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "mq-deadline", "sectors": "8388608", "sectorsize": "512", "size": "4.00 GB", "support_discard": "0", "vendor": "0x1af4", "virtual": 1}, "vdb": {"holders": [], "host": "", "links": {"ids": [], "labels": [], "masters": [], "uuids": []}, "model": null, "partitions": {}, "removable": "0", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "mq-deadline", "sectors": "20971520", "sectorsize": "512", "size": "10.00 GB", "support_discard": "0", "vendor": "0x1af4", "virtual": 1}, "vdc": {"holders": [], "host": "", "links": {"ids": [], "labels": [], "masters": [], "uuids": []}, "model": null, "partitions": {}, "removable": "0", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "mq-deadline", "sectors": "20971520", "sectorsize": "512", "size": "10.00 GB", "support_discard": "0", "vendor": "0x1af4", "virtual": 1}}, "ansible_distribution": "Fedora", "ansible_distribution_file_parsed": true, "ansible_distribution_file_path": "/etc/redhat-release", "ansible_distribution_file_variety": "RedHat", "ansible_distribution_major_version": "30", "ansible_distribution_release": "", "ansible_distribution_version": "30", "ansible_dns": {"nameservers": ["10.0.2.3"]}, "ansible_domain": "", "ansible_effective_group_id": 0, "ansible_effective_user_id": 0, "ansible_env": {"DBUS_SESSION_BUS_ADDRESS": "unix:path=/run/user/0/bus", "HOME": "/root", "LANG": "en_US.UTF-8", "LESSOPEN": "||/usr/bin/lesspipe.sh %s", "LOGNAME": "root", "LS_COLORS": "rs=0:di=38;5;33:ln=38;5;51:mh=00:pi=40;38;5;11:so=38;5;13:do=38;5;5:bd=48;5;232;38;5;11:cd=48;5;232;38;5;3:or=48;5;232;38;5;9:mi=01;05;37;41:su=48;5;196;38;5;15:sg=48;5;11;38;5;16:ca=48;5;196;38;5;226:tw=48;5;10;38;5;16:ow=48;5;10;38;5;21:st=48;5;21;38;5;15:ex=38;5;40:*.tar=38;5;9:*.tgz=38;5;9:*.arc=38;5;9:*.arj=38;5;9:*.taz=38;5;9:*.lha=38;5;9:*.lz4=38;5;9:*.lzh=38;5;9:*.lzma=38;5;9:*.tlz=38;5;9:*.txz=38;5;9:*.tzo=38;5;9:*.t7z=38;5;9:*.zip=38;5;9:*.z=38;5;9:*.dz=38;5;9:*.gz=38;5;9:*.lrz=38;5;9:*.lz=38;5;9:*.lzo=38;5;9:*.xz=38;5;9:*.zst=38;5;9:*.tzst=38;5;9:*.bz2=38;5;9:*.bz=38;5;9:*.tbz=38;5;9:*.tbz2=38;5;9:*.tz=38;5;9:*.deb=38;5;9:*.rpm=38;5;9:*.jar=38;5;9:*.war=38;5;9:*.ear=38;5;9:*.sar=38;5;9:*.rar=38;5;9:*.alz=38;5;9:*.ace=38;5;9:*.zoo=38;5;9:*.cpio=38;5;9:*.7z=38;5;9:*.rz=38;5;9:*.cab=38;5;9:*.wim=38;5;9:*.swm=38;5;9:*.dwm=38;5;9:*.esd=38;5;9:*.jpg=38;5;13:*.jpeg=38;5;13:*.mjpg=38;5;13:*.mjpeg=38;5;13:*.gif=38;5;13:*.bmp=38;5;13:*.pbm=38;5;13:*.pgm=38;5;13:*.ppm=38;5;13:*.tga=38;5;13:*.xbm=38;5;13:*.xpm=38;5;13:*.tif=38;5;13:*.tiff=38;5;13:*.png=38;5;13:*.svg=38;5;13:*.svgz=38;5;13:*.mng=38;5;13:*.pcx=38;5;13:*.mov=38;5;13:*.mpg=38;5;13:*.mpeg=38;5;13:*.m2v=38;5;13:*.mkv=38;5;13:*.webm=38;5;13:*.ogm=38;5;13:*.mp4=38;5;13:*.m4v=38;5;13:*.mp4v=38;5;13:*.vob=38;5;13:*.qt=38;5;13:*.nuv=38;5;13:*.wmv=38;5;13:*.asf=38;5;13:*.rm=38;5;13:*.rmvb=38;5;13:*.flc=38;5;13:*.avi=38;5;13:*.fli=38;5;13:*.flv=38;5;13:*.gl=38;5;13:*.dl=38;5;13:*.xcf=38;5;13:*.xwd=38;5;13:*.yuv=38;5;13:*.cgm=38;5;13:*.emf=38;5;13:*.ogv=38;5;13:*.ogx=38;5;13:*.aac=38;5;45:*.au=38;5;45:*.flac=38;5;45:*.m4a=38;5;45:*.mid=38;5;45:*.midi=38;5;45:*.mka=38;5;45:*.mp3=38;5;45:*.mpc=38;5;45:*.ogg=38;5;45:*.ra=38;5;45:*.wav=38;5;45:*.oga=38;5;45:*.opus=38;5;45:*.spx=38;5;45:*.xspf=38;5;45:", "MAIL": "/var/mail/root", "PATH": "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin", "PWD": "/root", "SELINUX_LEVEL_REQUESTED": "", "SELINUX_ROLE_REQUESTED": "", "SELINUX_USE_CURRENT_RANGE": "", "SHELL": "/bin/bash", "SHLVL": "1", "SSH_CLIENT": "10.0.2.2 58038 22", "SSH_CONNECTION": "10.0.2.2 58038 10.0.2.15 22", "SSH_TTY": "/dev/pts/0", "TERM": "xterm-256color", "USER": "root", "XDG_RUNTIME_DIR": "/run/user/0", "XDG_SESSION_CLASS": "user", "XDG_SESSION_ID": "1", "XDG_SESSION_TYPE": "tty", "_": "/usr/bin/python3"}, "ansible_eth0": {"active": true, "device": "eth0", "ipv4": {"address": "10.0.2.15", "broadcast": "10.0.2.255", "netmask": "255.255.255.0", "network": "10.0.2.0"}, "ipv6": [{"address": "fec0::5054:ff:fe12:3456", "prefix": "64", "scope": "site"}, {"address": "fe80::5054:ff:fe12:3456", "prefix": "64", "scope": "link"}], "macaddress": "52:54:00:12:34:56", "module": "virtio_net", "mtu": 1500, "pciid": "virtio0", "promisc": false, "speed": -1, "type": "ether"}, "ansible_fibre_channel_wwn": [], "ansible_fips": false, "ansible_form_factor": "Other", "ansible_fqdn": "ibm-p8-kvm-03-guest-02", "ansible_hostname": "ibm-p8-kvm-03-guest-02", "ansible_hostnqn": "", "ansible_interfaces": ["eth0", "lo"], "ansible_is_chroot": false, "ansible_iscsi_iqn": "", "ansible_kernel": "5.0.9-301.fc30.x86_64", "ansible_lo": {"active": true, "device": "lo", "ipv4": {"address": "127.0.0.1", "broadcast": "host", "netmask": "255.0.0.0", "network": "127.0.0.0"}, "ipv6": [{"address": "::1", "prefix": "128", "scope": "host"}], "mtu": 65536, "promisc": false, "type": "loopback"}, "ansible_local": {}, "ansible_lsb": {}, "ansible_machine": "x86_64", "ansible_machine_id": "4be77a3c6d814cf0921e01b7140cdb37", "ansible_memfree_mb": 648, "ansible_memory_mb": {"nocache": {"free": 841, "used": 141}, "real": {"free": 648, "total": 982, "used": 334}, "swap": {"cached": 0, "free": 0, "total": 0, "used": 0}}, "ansible_memtotal_mb": 982, "ansible_mounts": [{"block_available": 731960, "block_size": 4096, "block_total": 1015472, "block_used": 283512, "device": "/dev/vda1", "fstype": "ext4", "inode_available": 233659, "inode_total": 262144, "inode_used": 28485, "mount": "/", "options": "rw,seclabel,relatime", "size_available": 2998108160, "size_total": 4159373312, "uuid": "ea711a29-e460-4879-9d70-9da99ae021f9"}], "ansible_nodename": "ibm-p8-kvm-03-guest-02", "ansible_os_family": "RedHat", "ansible_pkg_mgr": "dnf", "ansible_proc_cmdline": {"BOOT_IMAGE": "(hd0,msdos1)/boot/vmlinuz-5.0.9-301.fc30.x86_64", "console": ["tty1", "ttyS0,115200n8"], "net.ifnames": "0", "no_timer_check": true, "ro": true, "root": "UUID=ea711a29-e460-4879-9d70-9da99ae021f9"}, "ansible_processor": ["0", "GenuineIntel", "Intel(R) Core(TM) i7-7600U CPU @ 2.80GHz", "1", "GenuineIntel", "Intel(R) Core(TM) i7-7600U CPU @ 2.80GHz", "2", "GenuineIntel", "Intel(R) Core(TM) i7-7600U CPU @ 2.80GHz"], "ansible_processor_cores": 1, "ansible_processor_count": 3, "ansible_processor_threads_per_core": 1, "ansible_processor_vcpus": 3, "ansible_product_name": "Standard PC (i440FX + PIIX, 1996)", "ansible_product_serial": "NA", "ansible_product_uuid": "NA", "ansible_product_version": "pc-i440fx-3.1", "ansible_python": {"executable": "/usr/bin/python3", "has_sslcontext": true, "type": "cpython", "version": {"major": 3, "micro": 3, "minor": 7, "releaselevel": "final", "serial": 0}, "version_info": [3, 7, 3, "final", 0]}, "ansible_python_version": "3.7.3", "ansible_real_group_id": 0, "ansible_real_user_id": 0, "ansible_selinux": {"config_mode": "enforcing", "mode": "enforcing", "policyvers": 31, "status": "enabled", "type": "targeted"}, "ansible_selinux_python_present": true, "ansible_service_mgr": "systemd", "ansible_ssh_host_key_ecdsa_public": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBGVgzB2RrGuPR47MAsraLk8NL/xQjC1F5cKYZ3A0MbboG3Y/saC1hkPtWYhMCf5miSYOTYoCP0uYb1U0/raRWHI=", "ansible_ssh_host_key_ed25519_public": "AAAAC3NzaC1lZDI1NTE5AAAAIBshOIC2DXDAoOPW9E57ZbTprwDEiJeCSGspkFaFJt80", "ansible_ssh_host_key_rsa_public": "AAAAB3NzaC1yc2EAAAADAQABAAABAQDciZngVkJjIVR1EPPzgYtmvZv2f45s9lLEWtpWfAvTfA27Rw8WfMkNgV8v8F0XjRYUHzQ7UkIyu3rb/DqrASD6LoJyrvcK+0sn6ESsqxDVgfLbDgxOtAaVUpMGfCZcVfZj0Yzm8zZXod0gjABTFGWU70fopzndaWfn4Jx1oAF6eic1WYrb1Npr6NAuweII9oOhlhzBkXMGF1V1DFLt6iuuIM7ggz+OIzAqSm2gH2qurcidY3LWWd4WjRYdOQg19ue2woqa0/KOyTjENUhUUc7H3CsakIQKIifcu4T80Z/HYiTXWhLoimB/fcuV7L9drRETnL55jRzItufvWYeVKv3t", "ansible_swapfree_mb": 0, "ansible_swaptotal_mb": 0, "ansible_system": "Linux", "ansible_system_capabilities": ["cap_chown", "cap_dac_override", "cap_dac_read_search", "cap_fowner", "cap_fsetid", "cap_kill", "cap_setgid", "cap_setuid", "cap_setpcap", "cap_linux_immutable", "cap_net_bind_service", "cap_net_broadcast", "cap_net_admin", "cap_net_raw", "cap_ipc_lock", "cap_ipc_owner", "cap_sys_module", "cap_sys_rawio", "cap_sys_chroot", "cap_sys_ptrace", "cap_sys_pacct", "cap_sys_admin", "cap_sys_boot", "cap_sys_nice", "cap_sys_resource", "cap_sys_time", "cap_sys_tty_config", "cap_mknod", "cap_lease", "cap_audit_write", "cap_audit_control", "cap_setfcap", "cap_mac_override", "cap_mac_admin", "cap_syslog", "cap_wake_alarm", "cap_block_suspend", "cap_audit_read+ep"], "ansible_system_capabilities_enforced": "True", "ansible_system_vendor": "QEMU", "ansible_uptime_seconds": 15, "ansible_user_dir": "/root", "ansible_user_gecos": "root", "ansible_user_gid": 0, "ansible_user_id": "root", "ansible_user_shell": "/bin/bash", "ansible_user_uid": 0, "ansible_userspace_architecture": "x86_64", "ansible_userspace_bits": "64", "ansible_virtualization_role": "guest", "ansible_virtualization_type": "kvm", "gather_subset": ["all"], "module_setup": true}, "changed": false} META: ran handlers TASK [include_role : storage] ****************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/tests_lvm_one_disk_multiple_volumes.yml:9 TASK [storage : define an empty list of pools to be used in testing] *************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main.yml:2 ok: [/home/till/lsr-test-harness-files/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/tmpshcwqol8/tasks/main.yml:6 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : include the appropriate backend tasks] ***************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main.yml:10 included: /tmp/tmpshcwqol8/tasks/main-blivet.yml for /home/till/lsr-test-harness-files/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/tmpshcwqol8/tasks/main-blivet.yml:2 skipping: [/home/till/lsr-test-harness-files/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/tmpshcwqol8/tasks/main-blivet.yml:7 changed: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: python3-blivet", "Installed: libblockdev-kbd-2.21-3.fc30.x86_64", "Installed: lvm2-2.02.183-3.fc30.x86_64", "Installed: libblockdev-loop-2.21-3.fc30.x86_64", "Installed: libblockdev-lvm-2.21-3.fc30.x86_64", "Installed: lvm2-libs-2.02.183-3.fc30.x86_64", "Installed: gdisk-1.0.4-4.fc30.x86_64", "Installed: lzo-2.08-15.fc30.x86_64", "Installed: python3-blivet-1:3.1.3-3.fc30.noarch", "Installed: libblockdev-mdraid-2.21-3.fc30.x86_64", "Installed: libblockdev-mpath-2.21-3.fc30.x86_64", "Installed: daxctl-libs-65-1.fc30.x86_64", "Installed: gobject-introspection-1.60.1-2.fc30.x86_64", "Installed: libblockdev-nvdimm-2.21-3.fc30.x86_64", "Installed: libblockdev-part-2.21-3.fc30.x86_64", "Installed: python3-blockdev-2.21-3.fc30.x86_64", "Installed: sgpio-1.2.0.10-23.fc30.x86_64", "Installed: libblockdev-swap-2.21-3.fc30.x86_64", "Installed: lsof-4.91-3.fc30.x86_64", "Installed: device-mapper-event-1.02.154-3.fc30.x86_64", "Installed: python3-bytesize-2.0-1.fc30.x86_64", "Installed: libblockdev-utils-2.21-3.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: device-mapper-multipath-libs-0.7.9-6.git2df6110.fc30.x86_64", "Installed: nss-3.44.0-2.fc30.x86_64", "Installed: device-mapper-persistent-data-0.7.6-4.fc30.x86_64", "Installed: libbytesize-2.0-1.fc30.x86_64", "Installed: nss-softokn-3.44.0-2.fc30.x86_64", "Installed: nss-softokn-freebl-3.44.0-2.fc30.x86_64", "Installed: volume_key-libs-0.3.12-3.fc30.x86_64", "Installed: nss-sysinit-3.44.0-2.fc30.x86_64", "Installed: bcache-tools-1.0.8-15.fc30.x86_64", "Installed: nss-util-3.44.0-2.fc30.x86_64", "Installed: btrfs-progs-4.20.2-1.fc30.x86_64", "Installed: nspr-4.21.0-1.fc30.x86_64", "Installed: python3-pyudev-0.21.0-10.fc30.noarch", "Installed: mdadm-4.1-rc2.0.3.fc30.x86_64", "Installed: blivet-data-1:3.1.3-3.fc30.noarch", "Installed: python3-gobject-base-3.32.1-1.fc30.x86_64", "Installed: python3-pyparted-1:3.11.2-1.fc30.x86_64", "Installed: libblockdev-2.21-3.fc30.x86_64", "Installed: libaio-0.3.111-4.fc30.x86_64", "Installed: libblockdev-btrfs-2.21-3.fc30.x86_64", "Installed: libblockdev-crypto-2.21-3.fc30.x86_64", "Installed: userspace-rcu-0.10.1-5.fc30.x86_64", "Installed: ndctl-65-1.fc30.x86_64", "Installed: libblockdev-dm-2.21-3.fc30.x86_64", "Installed: dmraid-1.0.0.rc16-41.fc30.x86_64", "Installed: ndctl-libs-65-1.fc30.x86_64", "Installed: dmraid-events-1.0.0.rc16-41.fc30.x86_64", "Installed: libblockdev-fs-2.21-3.fc30.x86_64"]} TASK [storage : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:15 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"all_vols": [], "pools": [], "vol_pools": [], "vols": [], "vols_by_pool": [], "volumes": []}, "changed": false} TASK [storage : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:23 TASK [storage : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:30 TASK [storage : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:37 skipping: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [storage : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:44 TASK [storage : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:49 TASK [storage : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:57 TASK [storage : set the list of pools for test verification] *********************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:72 ok: [/home/till/lsr-test-harness-files/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/tmpshcwqol8/tasks/main-blivet.yml:76 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:80 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "pools": [] } TASK [storage : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:83 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "volumes": [] } TASK [storage : manage the pools] ************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:86 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": [], "mounts": [], "removed_mounts": []} TASK [storage : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:92 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "blivet_output": { "actions": [], "changed": false, "failed": false, "leaves": [], "mounts": [], "removed_mounts": [] } } TASK [storage : remove obsolete mounts] ******************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:103 TASK [storage : add new mounts] **************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:111 TASK [storage : tell systemd to refresh its view of /etc/fstab] ******************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:122 skipping: [/home/till/lsr-test-harness-files/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/tmpshcwqol8/tasks/main-blivet.yml:131 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] TASK [include_tasks] *************************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/tests_lvm_one_disk_multiple_volumes.yml:12 included: /tmp/tmpshcwqol8/tests/get_unused_disk.yml for /home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [Find unused disks in the system] ********************************************************************************************************************************************************************* task path: /tmp/tmpshcwqol8/tests/get_unused_disk.yml:2 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "disks": ["vdb"]} TASK [set_fact] ******************************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/get_unused_disk.yml:8 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"unused_disks": ["vdb"]}, "changed": false} TASK [Exit playbook when there's no unused disks in the system] ******************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/get_unused_disk.yml:13 skipping: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {} META: TASK [Print unused disks] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/get_unused_disk.yml:19 ok: [/home/till/lsr-test-harness-files/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/tmpshcwqol8/tests/tests_lvm_one_disk_multiple_volumes.yml:17 TASK [storage : define an empty list of pools to be used in testing] *************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main.yml:2 ok: [/home/till/lsr-test-harness-files/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/tmpshcwqol8/tasks/main.yml:6 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : include the appropriate backend tasks] ***************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main.yml:10 included: /tmp/tmpshcwqol8/tasks/main-blivet.yml for /home/till/lsr-test-harness-files/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/tmpshcwqol8/tasks/main-blivet.yml:2 skipping: [/home/till/lsr-test-harness-files/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/tmpshcwqol8/tasks/main-blivet.yml:7 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: python3-blivet"]} TASK [storage : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:15 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"all_vols": [], "pools": [], "vol_pools": [], "vols": [], "vols_by_pool": [], "volumes": []}, "changed": false} TASK [storage : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:23 ok: [/home/till/lsr-test-harness-files/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": {"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 : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:30 ok: [/home/till/lsr-test-harness-files/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": {"vol_defaults": [{"fs_create_options": "", "fs_destroy_options": "-af", "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"}], "vol_pools": ["foo"], "vols": [{"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: [/home/till/lsr-test-harness-files/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": {"vol_defaults": [{"fs_create_options": "", "fs_destroy_options": "-af", "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_destroy_options": "-af", "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"}], "vol_pools": ["foo", "foo"], "vols": [{"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: [/home/till/lsr-test-harness-files/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": {"vol_defaults": [{"fs_create_options": "", "fs_destroy_options": "-af", "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_destroy_options": "-af", "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_destroy_options": "-af", "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"}], "vol_pools": ["foo", "foo", "foo"], "vols": [{"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 : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:37 ok: [/home/till/lsr-test-harness-files/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_destroy_options': '-af', 'fs_overwrite_existing': True, 'mount_point': '', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid'}]) => {"ansible_facts": {"all_vols": [{"fs_create_options": "", "fs_destroy_options": "-af", "fs_label": "", "fs_overwrite_existing": true, "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, "idx": 0, "item": [{"mount_point": "/opt/test1", "name": "test1", "size": "3g"}, {"fs_create_options": "", "fs_destroy_options": "-af", "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: [/home/till/lsr-test-harness-files/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_destroy_options': '-af', 'fs_overwrite_existing': True, 'mount_point': '', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid'}]) => {"ansible_facts": {"all_vols": [{"fs_create_options": "", "fs_destroy_options": "-af", "fs_label": "", "fs_overwrite_existing": true, "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_destroy_options": "-af", "fs_label": "", "fs_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_loop_var": "item", "changed": false, "idx": 1, "item": [{"mount_point": "/opt/test2", "name": "test2", "size": "3g"}, {"fs_create_options": "", "fs_destroy_options": "-af", "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: [/home/till/lsr-test-harness-files/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_destroy_options': '-af', 'fs_overwrite_existing': True, 'mount_point': '', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid'}]) => {"ansible_facts": {"all_vols": [{"fs_create_options": "", "fs_destroy_options": "-af", "fs_label": "", "fs_overwrite_existing": true, "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_destroy_options": "-af", "fs_label": "", "fs_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_destroy_options": "-af", "fs_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, "idx": 2, "item": [{"mount_point": "/opt/test3", "name": "test3", "size": "3g"}, {"fs_create_options": "", "fs_destroy_options": "-af", "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 : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:44 ok: [/home/till/lsr-test-harness-files/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": {"vols_by_pool": {"foo": [{"fs_create_options": "", "fs_destroy_options": "-af", "fs_label": "", "fs_overwrite_existing": true, "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_destroy_options": "-af", "fs_label": "", "fs_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_destroy_options": "-af", "fs_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 : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:49 ok: [/home/till/lsr-test-harness-files/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": {"pools": [{"disks": ["vdb"], "name": "foo", "state": "present", "type": "lvm", "volumes": [{"fs_create_options": "", "fs_destroy_options": "-af", "fs_label": "", "fs_overwrite_existing": true, "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_destroy_options": "-af", "fs_label": "", "fs_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_destroy_options": "-af", "fs_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": "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 : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:57 TASK [storage : set the list of pools for test verification] *********************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:72 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": [{"disks": ["vdb"], "name": "foo", "state": "present", "type": "lvm", "volumes": [{"fs_create_options": "", "fs_destroy_options": "-af", "fs_label": "", "fs_overwrite_existing": true, "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_destroy_options": "-af", "fs_label": "", "fs_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_destroy_options": "-af", "fs_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/tmpshcwqol8/tasks/main-blivet.yml:76 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:80 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "pools": [ { "disks": [ "vdb" ], "name": "foo", "state": "present", "type": "lvm", "volumes": [ { "fs_create_options": "", "fs_destroy_options": "-af", "fs_label": "", "fs_overwrite_existing": true, "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_destroy_options": "-af", "fs_label": "", "fs_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_destroy_options": "-af", "fs_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/tmpshcwqol8/tasks/main-blivet.yml:83 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "volumes": [] } TASK [storage : manage the pools] ************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:86 changed: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": ["create format lvmpv on /dev/vdb", "create device /dev/foo", "create device /dev/mapper/foo-test3", "create format xfs on /dev/mapper/foo-test3", "create device /dev/mapper/foo-test2", "create format xfs on /dev/mapper/foo-test2", "create device /dev/mapper/foo-test1", "create format xfs on /dev/mapper/foo-test1"], "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"}], "removed_mounts": []} TASK [storage : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:92 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "blivet_output": { "actions": [ "create format lvmpv on /dev/vdb", "create device /dev/foo", "create device /dev/mapper/foo-test3", "create format xfs on /dev/mapper/foo-test3", "create device /dev/mapper/foo-test2", "create format xfs on /dev/mapper/foo-test2", "create device /dev/mapper/foo-test1", "create format xfs on /dev/mapper/foo-test1" ], "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" } ], "removed_mounts": [] } } TASK [storage : remove obsolete mounts] ******************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:103 TASK [storage : add new mounts] **************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:111 changed: [/home/till/lsr-test-harness-files/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: [/home/till/lsr-test-harness-files/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: [/home/till/lsr-test-harness-files/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/tmpshcwqol8/tasks/main-blivet.yml:122 changed: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["systemctl", "daemon-reload"], "delta": "0:00:00.162483", "end": "2019-05-25 13:54:29.442029", "rc": 0, "start": "2019-05-25 13:54:29.279546", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [storage : Update facts] ****************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:131 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] TASK [include_tasks] *************************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/tests_lvm_one_disk_multiple_volumes.yml:35 included: /tmp/tmpshcwqol8/tests/verify-role-results.yml for /home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [set_fact] ******************************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/verify-role-results.yml:1 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_tests_list": ["verify-volumes"]}, "changed": false} TASK [Print out pool information] ************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/verify-role-results.yml:4 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools_list": [ { "disks": [ "vdb" ], "name": "foo", "state": "present", "type": "lvm", "volumes": [ { "fs_create_options": "", "fs_destroy_options": "-af", "fs_label": "", "fs_overwrite_existing": true, "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_destroy_options": "-af", "fs_label": "", "fs_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_destroy_options": "-af", "fs_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/tmpshcwqol8/tests/verify-role-results.yml:9 skipping: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {} TASK [Ensure the specified devices in the role were correctly configured in the user's system] ************************************************************************************************************* task path: /tmp/tmpshcwqol8/tests/verify-role-results.yml:14 included: /tmp/tmpshcwqol8/tests/test-verify-volumes.yml for /home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [Read the /etc/fstab file for volume existence] ******************************************************************************************************************************************************* task path: /tmp/tmpshcwqol8/tests/test-verify-volumes.yml:2 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/fstab"], "delta": "0:00:00.002212", "end": "2019-05-25 13:54:30.825947", "rc": 0, "start": "2019-05-25 13:54:30.823735", "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/tmpshcwqol8/tests/test-verify-volumes.yml:7 included: /tmp/tmpshcwqol8/tests/test-volumes-present-helper.yml for /home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [set_fact] ******************************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/test-volumes-present-helper.yml:2 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"mount_entries": []}, "changed": false} TASK [gather mounts related to each volume in the pool] **************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/test-volumes-present-helper.yml:5 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'size': '3g', 'fs_type': 'xfs', 'fs_label': '', 'fs_create_options': '', 'fs_destroy_options': '-af', 'fs_overwrite_existing': True, 'mount_point': '/opt/test1', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid', 'name': 'test1', 'pool': 'foo'}) => {"ansible_facts": {"mount_entries": [[{"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": "d78cd6fd-157a-4acb-9398-7760bc9163fa"}]]}, "ansible_loop_var": "current_volume", "changed": false, "current_volume": {"fs_create_options": "", "fs_destroy_options": "-af", "fs_label": "", "fs_overwrite_existing": true, "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"}} ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'size': '3g', 'fs_type': 'xfs', 'fs_label': '', 'fs_create_options': '', 'fs_destroy_options': '-af', 'fs_overwrite_existing': True, 'mount_point': '/opt/test2', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid', 'name': 'test2', 'pool': 'foo'}) => {"ansible_facts": {"mount_entries": [[{"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": "d78cd6fd-157a-4acb-9398-7760bc9163fa"}], [{"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": "f676a7ab-5b79-4922-b28f-0473d7fa874e"}]]}, "ansible_loop_var": "current_volume", "changed": false, "current_volume": {"fs_create_options": "", "fs_destroy_options": "-af", "fs_label": "", "fs_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"}} ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'size': '3g', 'fs_type': 'xfs', 'fs_label': '', 'fs_create_options': '', 'fs_destroy_options': '-af', 'fs_overwrite_existing': True, 'mount_point': '/opt/test3', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid', 'name': 'test3', 'pool': 'foo'}) => {"ansible_facts": {"mount_entries": [[{"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": "d78cd6fd-157a-4acb-9398-7760bc9163fa"}], [{"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": "f676a7ab-5b79-4922-b28f-0473d7fa874e"}], [{"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": "504ae662-4485-4949-8ece-50713ed19806"}]]}, "ansible_loop_var": "current_volume", "changed": false, "current_volume": {"fs_create_options": "", "fs_destroy_options": "-af", "fs_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 [Ensure all lvm volumes were correctly managed in /etc/fstab and ansible_mounts.] ********************************************************************************************************************* task path: /tmp/tmpshcwqol8/tests/test-volumes-present-helper.yml:12 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'size': '3g', 'fs_type': 'xfs', 'fs_label': '', 'fs_create_options': '', 'fs_destroy_options': '-af', 'fs_overwrite_existing': True, 'mount_point': '/opt/test1', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid', 'name': 'test1', 'pool': 'foo'}) => { "ansible_loop_var": "current_volume", "changed": false, "current_volume": { "fs_create_options": "", "fs_destroy_options": "-af", "fs_label": "", "fs_overwrite_existing": true, "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" }, "idx": 0, "msg": "All assertions passed" } ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'size': '3g', 'fs_type': 'xfs', 'fs_label': '', 'fs_create_options': '', 'fs_destroy_options': '-af', 'fs_overwrite_existing': True, 'mount_point': '/opt/test2', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid', 'name': 'test2', 'pool': 'foo'}) => { "ansible_loop_var": "current_volume", "changed": false, "current_volume": { "fs_create_options": "", "fs_destroy_options": "-af", "fs_label": "", "fs_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" }, "idx": 1, "msg": "All assertions passed" } ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'size': '3g', 'fs_type': 'xfs', 'fs_label': '', 'fs_create_options': '', 'fs_destroy_options': '-af', 'fs_overwrite_existing': True, 'mount_point': '/opt/test3', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid', 'name': 'test3', 'pool': 'foo'}) => { "ansible_loop_var": "current_volume", "changed": false, "current_volume": { "fs_create_options": "", "fs_destroy_options": "-af", "fs_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" }, "idx": 2, "msg": "All assertions passed" } TASK [Ensure all lvm volumes were correctly managed in /etc/fstab and ansible_mounts.] ********************************************************************************************************************* task path: /tmp/tmpshcwqol8/tests/test-volumes-present-helper.yml:25 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'size': '3g', 'fs_type': 'xfs', 'fs_label': '', 'fs_create_options': '', 'fs_destroy_options': '-af', 'fs_overwrite_existing': True, 'mount_point': '/opt/test1', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid', 'name': 'test1', 'pool': 'foo'}) => { "ansible_loop_var": "current_volume", "changed": false, "current_volume": { "fs_create_options": "", "fs_destroy_options": "-af", "fs_label": "", "fs_overwrite_existing": true, "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" }, "idx": 0, "msg": "All assertions passed" } ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'size': '3g', 'fs_type': 'xfs', 'fs_label': '', 'fs_create_options': '', 'fs_destroy_options': '-af', 'fs_overwrite_existing': True, 'mount_point': '/opt/test2', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid', 'name': 'test2', 'pool': 'foo'}) => { "ansible_loop_var": "current_volume", "changed": false, "current_volume": { "fs_create_options": "", "fs_destroy_options": "-af", "fs_label": "", "fs_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" }, "idx": 1, "msg": "All assertions passed" } ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'size': '3g', 'fs_type': 'xfs', 'fs_label': '', 'fs_create_options': '', 'fs_destroy_options': '-af', 'fs_overwrite_existing': True, 'mount_point': '/opt/test3', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid', 'name': 'test3', 'pool': 'foo'}) => { "ansible_loop_var": "current_volume", "changed": false, "current_volume": { "fs_create_options": "", "fs_destroy_options": "-af", "fs_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" }, "idx": 2, "msg": "All assertions passed" } TASK [Ensure all lvm volumes were correctly managed in /etc/fstab.] **************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/test-volumes-present-helper.yml:38 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'size': '3g', 'fs_type': 'xfs', 'fs_label': '', 'fs_create_options': '', 'fs_destroy_options': '-af', 'fs_overwrite_existing': True, 'mount_point': '/opt/test1', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid', 'name': 'test1', 'pool': 'foo'}) => { "ansible_loop_var": "current_volume", "changed": false, "current_volume": { "fs_create_options": "", "fs_destroy_options": "-af", "fs_label": "", "fs_overwrite_existing": true, "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" }, "msg": "All assertions passed" } ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'size': '3g', 'fs_type': 'xfs', 'fs_label': '', 'fs_create_options': '', 'fs_destroy_options': '-af', 'fs_overwrite_existing': True, 'mount_point': '/opt/test2', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid', 'name': 'test2', 'pool': 'foo'}) => { "ansible_loop_var": "current_volume", "changed": false, "current_volume": { "fs_create_options": "", "fs_destroy_options": "-af", "fs_label": "", "fs_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" }, "msg": "All assertions passed" } ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'size': '3g', 'fs_type': 'xfs', 'fs_label': '', 'fs_create_options': '', 'fs_destroy_options': '-af', 'fs_overwrite_existing': True, 'mount_point': '/opt/test3', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid', 'name': 'test3', 'pool': 'foo'}) => { "ansible_loop_var": "current_volume", "changed": false, "current_volume": { "fs_create_options": "", "fs_destroy_options": "-af", "fs_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" }, "msg": "All assertions passed" } TASK [resolve_blockdev] ************************************************************************************************************************************************************************************ task path: /tmp/tmpshcwqol8/tests/test-verify-volumes.yml:14 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/dev/mapper/foo-test1) => {"ansible_loop_var": "dev_id", "changed": false, "dev_id": "/dev/mapper/foo-test1", "device": "/dev/mapper/foo-test1"} ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/dev/mapper/foo-test2) => {"ansible_loop_var": "dev_id", "changed": false, "dev_id": "/dev/mapper/foo-test2", "device": "/dev/mapper/foo-test2"} ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/dev/mapper/foo-test3) => {"ansible_loop_var": "dev_id", "changed": false, "dev_id": "/dev/mapper/foo-test3", "device": "/dev/mapper/foo-test3"} TASK [resolve_blockdev] ************************************************************************************************************************************************************************************ task path: /tmp/tmpshcwqol8/tests/test-verify-volumes.yml:21 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/dev/vda1) => {"ansible_loop_var": "dev_id", "changed": false, "dev_id": "/dev/vda1", "device": "/dev/vda1"} ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/dev/mapper/foo-test1) => {"ansible_loop_var": "dev_id", "changed": false, "dev_id": "/dev/mapper/foo-test1", "device": "/dev/mapper/foo-test1"} ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/dev/mapper/foo-test2) => {"ansible_loop_var": "dev_id", "changed": false, "dev_id": "/dev/mapper/foo-test2", "device": "/dev/mapper/foo-test2"} ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/dev/mapper/foo-test3) => {"ansible_loop_var": "dev_id", "changed": false, "dev_id": "/dev/mapper/foo-test3", "device": "/dev/mapper/foo-test3"} TASK [set_fact] ******************************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/test-verify-volumes.yml:28 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"ansible_mount_devs": ["/dev/vda1", "/dev/mapper/foo-test1", "/dev/mapper/foo-test2", "/dev/mapper/foo-test3"], "blivet_mount_devs": ["/dev/mapper/foo-test1", "/dev/mapper/foo-test2", "/dev/mapper/foo-test3"], "removed_volumes": []}, "changed": false} TASK [set_fact] ******************************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/test-verify-volumes.yml:33 TASK [Verify the volumes with no pool were correctly managed] ********************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/test-verify-volumes.yml:40 TASK [Verify the present volumes with no pool were correctly managed] ************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/test-verify-volumes.yml:52 TASK [Verify the absent volumes with no pool are not in ansible_mounts] ************************************************************************************************************************************ task path: /tmp/tmpshcwqol8/tests/test-verify-volumes.yml:65 META: ran handlers META: ran handlers PLAY RECAP ************************************************************************************************************************************************************************************************* /home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 : ok=51 changed=4 unreachable=0 failed=0 skipped=20 rescued=0 ignored=0 + cd /tmp/tmpshcwqol8/tests; TEST_SUBJECTS=/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_storage-25-db52957-fedora-30-cqpxlans/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmpshcwqol8/_setup.yml /tmp/tmpshcwqol8/tests/tests_lvm_one_disk_one_volume.yml ansible-playbook 2.8.0 config file = /home/till/.ansible.cfg configured module search path = ['/home/till/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.7/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 3.7.3 (default, May 11 2019, 00:38:04) [GCC 9.1.1 20190503 (Red Hat 9.1.1-1)] Using /home/till/.ansible.cfg as config file PLAYBOOK: _setup.yml *************************************************************************************************************************************************************************************** 1 plays in /tmp/tmpshcwqol8/_setup.yml PLAY [Fail when only localhost is available] *************************************************************************************************************************************************************** META: ran handlers TASK [debug] *********************************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/_setup.yml:5 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "groups": { "all": [ "/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2" ], "localhost": [ "/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2" ], "subjects": [ "/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2" ], "ungrouped": [] } } TASK [fail] ************************************************************************************************************************************************************************************************ task path: /tmp/tmpshcwqol8/_setup.yml:7 skipping: [/home/till/lsr-test-harness-files/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 ************************************************************************************************************************************************************************************************* /home/till/lsr-test-harness-files/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/tmpshcwqol8/tests/tests_lvm_one_disk_one_volume.yml PLAY [all] ************************************************************************************************************************************************************************************************* TASK [Gathering Facts] ************************************************************************************************************************************************************************************* task path: /tmp/tmpshcwqol8/tests/tests_lvm_one_disk_one_volume.yml:2 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"ansible_all_ipv4_addresses": ["10.0.2.15"], "ansible_all_ipv6_addresses": ["fec0::5054:ff:fe12:3456", "fe80::5054:ff:fe12:3456"], "ansible_apparmor": {"status": "disabled"}, "ansible_architecture": "x86_64", "ansible_bios_date": "04/01/2014", "ansible_bios_version": "1.12.0-2.fc30", "ansible_cmdline": {"BOOT_IMAGE": "(hd0,msdos1)/boot/vmlinuz-5.0.9-301.fc30.x86_64", "console": "ttyS0,115200n8", "net.ifnames": "0", "no_timer_check": true, "ro": true, "root": "UUID=ea711a29-e460-4879-9d70-9da99ae021f9"}, "ansible_date_time": {"date": "2019-05-25", "day": "25", "epoch": "1558792488", "hour": "13", "iso8601": "2019-05-25T13:54:48Z", "iso8601_basic": "20190525T135448588678", "iso8601_basic_short": "20190525T135448", "iso8601_micro": "2019-05-25T13:54:48.588771Z", "minute": "54", "month": "05", "second": "48", "time": "13:54:48", "tz": "UTC", "tz_offset": "+0000", "weekday": "Saturday", "weekday_number": "6", "weeknumber": "20", "year": "2019"}, "ansible_default_ipv4": {"address": "10.0.2.15", "alias": "eth0", "broadcast": "10.0.2.255", "gateway": "10.0.2.2", "interface": "eth0", "macaddress": "52:54:00:12:34:56", "mtu": 1500, "netmask": "255.255.255.0", "network": "10.0.2.0", "type": "ether"}, "ansible_default_ipv6": {"address": "fec0::5054:ff:fe12:3456", "gateway": "fe80::2", "interface": "eth0", "macaddress": "52:54:00:12:34:56", "mtu": 1500, "prefix": "64", "scope": "site", "type": "ether"}, "ansible_device_links": {"ids": {"sr0": ["ata-QEMU_DVD-ROM_QM00003"]}, "labels": {"sr0": ["cidata"]}, "masters": {}, "uuids": {"sr0": ["2019-05-25-15-54-34-00"], "vda1": ["ea711a29-e460-4879-9d70-9da99ae021f9"]}}, "ansible_devices": {"sr0": {"holders": [], "host": "", "links": {"ids": ["ata-QEMU_DVD-ROM_QM00003"], "labels": ["cidata"], "masters": [], "uuids": ["2019-05-25-15-54-34-00"]}, "model": "QEMU DVD-ROM", "partitions": {}, "removable": "1", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "mq-deadline", "sectors": "728", "sectorsize": "2048", "size": "364.00 KB", "support_discard": "0", "vendor": "QEMU", "virtual": 1}, "vda": {"holders": [], "host": "", "links": {"ids": [], "labels": [], "masters": [], "uuids": []}, "model": null, "partitions": {"vda1": {"holders": [], "links": {"ids": [], "labels": [], "masters": [], "uuids": ["ea711a29-e460-4879-9d70-9da99ae021f9"]}, "sectors": "8386560", "sectorsize": 512, "size": "4.00 GB", "start": "2048", "uuid": "ea711a29-e460-4879-9d70-9da99ae021f9"}}, "removable": "0", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "mq-deadline", "sectors": "8388608", "sectorsize": "512", "size": "4.00 GB", "support_discard": "0", "vendor": "0x1af4", "virtual": 1}, "vdb": {"holders": [], "host": "", "links": {"ids": [], "labels": [], "masters": [], "uuids": []}, "model": null, "partitions": {}, "removable": "0", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "mq-deadline", "sectors": "20971520", "sectorsize": "512", "size": "10.00 GB", "support_discard": "0", "vendor": "0x1af4", "virtual": 1}, "vdc": {"holders": [], "host": "", "links": {"ids": [], "labels": [], "masters": [], "uuids": []}, "model": null, "partitions": {}, "removable": "0", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "mq-deadline", "sectors": "20971520", "sectorsize": "512", "size": "10.00 GB", "support_discard": "0", "vendor": "0x1af4", "virtual": 1}}, "ansible_distribution": "Fedora", "ansible_distribution_file_parsed": true, "ansible_distribution_file_path": "/etc/redhat-release", "ansible_distribution_file_variety": "RedHat", "ansible_distribution_major_version": "30", "ansible_distribution_release": "", "ansible_distribution_version": "30", "ansible_dns": {"nameservers": ["10.0.2.3"]}, "ansible_domain": "", "ansible_effective_group_id": 0, "ansible_effective_user_id": 0, "ansible_env": {"DBUS_SESSION_BUS_ADDRESS": "unix:path=/run/user/0/bus", "HOME": "/root", "LANG": "en_US.UTF-8", "LESSOPEN": "||/usr/bin/lesspipe.sh %s", "LOGNAME": "root", "LS_COLORS": "rs=0:di=38;5;33:ln=38;5;51:mh=00:pi=40;38;5;11:so=38;5;13:do=38;5;5:bd=48;5;232;38;5;11:cd=48;5;232;38;5;3:or=48;5;232;38;5;9:mi=01;05;37;41:su=48;5;196;38;5;15:sg=48;5;11;38;5;16:ca=48;5;196;38;5;226:tw=48;5;10;38;5;16:ow=48;5;10;38;5;21:st=48;5;21;38;5;15:ex=38;5;40:*.tar=38;5;9:*.tgz=38;5;9:*.arc=38;5;9:*.arj=38;5;9:*.taz=38;5;9:*.lha=38;5;9:*.lz4=38;5;9:*.lzh=38;5;9:*.lzma=38;5;9:*.tlz=38;5;9:*.txz=38;5;9:*.tzo=38;5;9:*.t7z=38;5;9:*.zip=38;5;9:*.z=38;5;9:*.dz=38;5;9:*.gz=38;5;9:*.lrz=38;5;9:*.lz=38;5;9:*.lzo=38;5;9:*.xz=38;5;9:*.zst=38;5;9:*.tzst=38;5;9:*.bz2=38;5;9:*.bz=38;5;9:*.tbz=38;5;9:*.tbz2=38;5;9:*.tz=38;5;9:*.deb=38;5;9:*.rpm=38;5;9:*.jar=38;5;9:*.war=38;5;9:*.ear=38;5;9:*.sar=38;5;9:*.rar=38;5;9:*.alz=38;5;9:*.ace=38;5;9:*.zoo=38;5;9:*.cpio=38;5;9:*.7z=38;5;9:*.rz=38;5;9:*.cab=38;5;9:*.wim=38;5;9:*.swm=38;5;9:*.dwm=38;5;9:*.esd=38;5;9:*.jpg=38;5;13:*.jpeg=38;5;13:*.mjpg=38;5;13:*.mjpeg=38;5;13:*.gif=38;5;13:*.bmp=38;5;13:*.pbm=38;5;13:*.pgm=38;5;13:*.ppm=38;5;13:*.tga=38;5;13:*.xbm=38;5;13:*.xpm=38;5;13:*.tif=38;5;13:*.tiff=38;5;13:*.png=38;5;13:*.svg=38;5;13:*.svgz=38;5;13:*.mng=38;5;13:*.pcx=38;5;13:*.mov=38;5;13:*.mpg=38;5;13:*.mpeg=38;5;13:*.m2v=38;5;13:*.mkv=38;5;13:*.webm=38;5;13:*.ogm=38;5;13:*.mp4=38;5;13:*.m4v=38;5;13:*.mp4v=38;5;13:*.vob=38;5;13:*.qt=38;5;13:*.nuv=38;5;13:*.wmv=38;5;13:*.asf=38;5;13:*.rm=38;5;13:*.rmvb=38;5;13:*.flc=38;5;13:*.avi=38;5;13:*.fli=38;5;13:*.flv=38;5;13:*.gl=38;5;13:*.dl=38;5;13:*.xcf=38;5;13:*.xwd=38;5;13:*.yuv=38;5;13:*.cgm=38;5;13:*.emf=38;5;13:*.ogv=38;5;13:*.ogx=38;5;13:*.aac=38;5;45:*.au=38;5;45:*.flac=38;5;45:*.m4a=38;5;45:*.mid=38;5;45:*.midi=38;5;45:*.mka=38;5;45:*.mp3=38;5;45:*.mpc=38;5;45:*.ogg=38;5;45:*.ra=38;5;45:*.wav=38;5;45:*.oga=38;5;45:*.opus=38;5;45:*.spx=38;5;45:*.xspf=38;5;45:", "MAIL": "/var/mail/root", "PATH": "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin", "PWD": "/root", "SELINUX_LEVEL_REQUESTED": "", "SELINUX_ROLE_REQUESTED": "", "SELINUX_USE_CURRENT_RANGE": "", "SHELL": "/bin/bash", "SHLVL": "1", "SSH_CLIENT": "10.0.2.2 36820 22", "SSH_CONNECTION": "10.0.2.2 36820 10.0.2.15 22", "SSH_TTY": "/dev/pts/0", "TERM": "xterm-256color", "USER": "root", "XDG_RUNTIME_DIR": "/run/user/0", "XDG_SESSION_CLASS": "user", "XDG_SESSION_ID": "1", "XDG_SESSION_TYPE": "tty", "_": "/usr/bin/python3"}, "ansible_eth0": {"active": true, "device": "eth0", "ipv4": {"address": "10.0.2.15", "broadcast": "10.0.2.255", "netmask": "255.255.255.0", "network": "10.0.2.0"}, "ipv6": [{"address": "fec0::5054:ff:fe12:3456", "prefix": "64", "scope": "site"}, {"address": "fe80::5054:ff:fe12:3456", "prefix": "64", "scope": "link"}], "macaddress": "52:54:00:12:34:56", "module": "virtio_net", "mtu": 1500, "pciid": "virtio0", "promisc": false, "speed": -1, "type": "ether"}, "ansible_fibre_channel_wwn": [], "ansible_fips": false, "ansible_form_factor": "Other", "ansible_fqdn": "ibm-p8-kvm-03-guest-02", "ansible_hostname": "ibm-p8-kvm-03-guest-02", "ansible_hostnqn": "", "ansible_interfaces": ["lo", "eth0"], "ansible_is_chroot": false, "ansible_iscsi_iqn": "", "ansible_kernel": "5.0.9-301.fc30.x86_64", "ansible_lo": {"active": true, "device": "lo", "ipv4": {"address": "127.0.0.1", "broadcast": "host", "netmask": "255.0.0.0", "network": "127.0.0.0"}, "ipv6": [{"address": "::1", "prefix": "128", "scope": "host"}], "mtu": 65536, "promisc": false, "type": "loopback"}, "ansible_local": {}, "ansible_lsb": {}, "ansible_machine": "x86_64", "ansible_machine_id": "006573b99e4f4c28ac05200f9de979fb", "ansible_memfree_mb": 647, "ansible_memory_mb": {"nocache": {"free": 840, "used": 142}, "real": {"free": 647, "total": 982, "used": 335}, "swap": {"cached": 0, "free": 0, "total": 0, "used": 0}}, "ansible_memtotal_mb": 982, "ansible_mounts": [{"block_available": 731960, "block_size": 4096, "block_total": 1015472, "block_used": 283512, "device": "/dev/vda1", "fstype": "ext4", "inode_available": 233659, "inode_total": 262144, "inode_used": 28485, "mount": "/", "options": "rw,seclabel,relatime", "size_available": 2998108160, "size_total": 4159373312, "uuid": "ea711a29-e460-4879-9d70-9da99ae021f9"}], "ansible_nodename": "ibm-p8-kvm-03-guest-02", "ansible_os_family": "RedHat", "ansible_pkg_mgr": "dnf", "ansible_proc_cmdline": {"BOOT_IMAGE": "(hd0,msdos1)/boot/vmlinuz-5.0.9-301.fc30.x86_64", "console": ["tty1", "ttyS0,115200n8"], "net.ifnames": "0", "no_timer_check": true, "ro": true, "root": "UUID=ea711a29-e460-4879-9d70-9da99ae021f9"}, "ansible_processor": ["0", "GenuineIntel", "Intel(R) Core(TM) i7-7600U CPU @ 2.80GHz", "1", "GenuineIntel", "Intel(R) Core(TM) i7-7600U CPU @ 2.80GHz", "2", "GenuineIntel", "Intel(R) Core(TM) i7-7600U CPU @ 2.80GHz"], "ansible_processor_cores": 1, "ansible_processor_count": 3, "ansible_processor_threads_per_core": 1, "ansible_processor_vcpus": 3, "ansible_product_name": "Standard PC (i440FX + PIIX, 1996)", "ansible_product_serial": "NA", "ansible_product_uuid": "NA", "ansible_product_version": "pc-i440fx-3.1", "ansible_python": {"executable": "/usr/bin/python3", "has_sslcontext": true, "type": "cpython", "version": {"major": 3, "micro": 3, "minor": 7, "releaselevel": "final", "serial": 0}, "version_info": [3, 7, 3, "final", 0]}, "ansible_python_version": "3.7.3", "ansible_real_group_id": 0, "ansible_real_user_id": 0, "ansible_selinux": {"config_mode": "enforcing", "mode": "enforcing", "policyvers": 31, "status": "enabled", "type": "targeted"}, "ansible_selinux_python_present": true, "ansible_service_mgr": "systemd", "ansible_ssh_host_key_ecdsa_public": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBHl1zAbUbD7QJcr7VSTQxpq+4VbM0rKVSTQkPeJ7A3b96z4VbFsckyWIfiQnBCJtD8NVnx0+0WNW8no/urQz4vc=", "ansible_ssh_host_key_ed25519_public": "AAAAC3NzaC1lZDI1NTE5AAAAILPKrWidg2WNEHx5LFhpUeZDBN03+VsnTRZFMHO0TH0O", "ansible_ssh_host_key_rsa_public": "AAAAB3NzaC1yc2EAAAADAQABAAABAQC58oq5PhH44vVsgDFQQtcpVMzaycMnGXUpg5DMrQrc8nE2n0AdQio2htIPNWhqToDIyelHJLE9f5vSAzKY5O1zBZjgHZOCWhgebz5+1LnA8ENvoWD5FLQSE7Qt/jqgJUESqQ9FOYkguqqme3hSAMbqF5slTVWftdrX0fQYi7OJ1xvwfwQUceDNJHPCf+vNZIr1Y1fUFG8NJQhwKRg84kOEH3OedJJe4pXeicU/fSF17EXHasXh74rch2Fq2Vsivvmbf/rJ++opmnCXnjredK8slzA0JGZdK6//bopRh6F23b555Slcj3MlKQKOcxSDpLmybHEv/VtHHKLJYjXrSjKR", "ansible_swapfree_mb": 0, "ansible_swaptotal_mb": 0, "ansible_system": "Linux", "ansible_system_capabilities": ["cap_chown", "cap_dac_override", "cap_dac_read_search", "cap_fowner", "cap_fsetid", "cap_kill", "cap_setgid", "cap_setuid", "cap_setpcap", "cap_linux_immutable", "cap_net_bind_service", "cap_net_broadcast", "cap_net_admin", "cap_net_raw", "cap_ipc_lock", "cap_ipc_owner", "cap_sys_module", "cap_sys_rawio", "cap_sys_chroot", "cap_sys_ptrace", "cap_sys_pacct", "cap_sys_admin", "cap_sys_boot", "cap_sys_nice", "cap_sys_resource", "cap_sys_time", "cap_sys_tty_config", "cap_mknod", "cap_lease", "cap_audit_write", "cap_audit_control", "cap_setfcap", "cap_mac_override", "cap_mac_admin", "cap_syslog", "cap_wake_alarm", "cap_block_suspend", "cap_audit_read+ep"], "ansible_system_capabilities_enforced": "True", "ansible_system_vendor": "QEMU", "ansible_uptime_seconds": 11, "ansible_user_dir": "/root", "ansible_user_gecos": "root", "ansible_user_gid": 0, "ansible_user_id": "root", "ansible_user_shell": "/bin/bash", "ansible_user_uid": 0, "ansible_userspace_architecture": "x86_64", "ansible_userspace_bits": "64", "ansible_virtualization_role": "guest", "ansible_virtualization_type": "kvm", "gather_subset": ["all"], "module_setup": true}, "changed": false} META: ran handlers TASK [include_role : storage] ****************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/tests_lvm_one_disk_one_volume.yml:10 TASK [storage : define an empty list of pools to be used in testing] *************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main.yml:2 ok: [/home/till/lsr-test-harness-files/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/tmpshcwqol8/tasks/main.yml:6 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : include the appropriate backend tasks] ***************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main.yml:10 included: /tmp/tmpshcwqol8/tasks/main-blivet.yml for /home/till/lsr-test-harness-files/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/tmpshcwqol8/tasks/main-blivet.yml:2 skipping: [/home/till/lsr-test-harness-files/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/tmpshcwqol8/tasks/main-blivet.yml:7 changed: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: python3-blivet", "Installed: libblockdev-kbd-2.21-3.fc30.x86_64", "Installed: lvm2-2.02.183-3.fc30.x86_64", "Installed: libblockdev-loop-2.21-3.fc30.x86_64", "Installed: libblockdev-lvm-2.21-3.fc30.x86_64", "Installed: lvm2-libs-2.02.183-3.fc30.x86_64", "Installed: gdisk-1.0.4-4.fc30.x86_64", "Installed: lzo-2.08-15.fc30.x86_64", "Installed: python3-blivet-1:3.1.3-3.fc30.noarch", "Installed: libblockdev-mdraid-2.21-3.fc30.x86_64", "Installed: libblockdev-mpath-2.21-3.fc30.x86_64", "Installed: daxctl-libs-65-1.fc30.x86_64", "Installed: gobject-introspection-1.60.1-2.fc30.x86_64", "Installed: libblockdev-nvdimm-2.21-3.fc30.x86_64", "Installed: libblockdev-part-2.21-3.fc30.x86_64", "Installed: python3-blockdev-2.21-3.fc30.x86_64", "Installed: sgpio-1.2.0.10-23.fc30.x86_64", "Installed: libblockdev-swap-2.21-3.fc30.x86_64", "Installed: lsof-4.91-3.fc30.x86_64", "Installed: device-mapper-event-1.02.154-3.fc30.x86_64", "Installed: python3-bytesize-2.0-1.fc30.x86_64", "Installed: libblockdev-utils-2.21-3.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: device-mapper-multipath-libs-0.7.9-6.git2df6110.fc30.x86_64", "Installed: nss-3.44.0-2.fc30.x86_64", "Installed: device-mapper-persistent-data-0.7.6-4.fc30.x86_64", "Installed: libbytesize-2.0-1.fc30.x86_64", "Installed: nss-softokn-3.44.0-2.fc30.x86_64", "Installed: nss-softokn-freebl-3.44.0-2.fc30.x86_64", "Installed: volume_key-libs-0.3.12-3.fc30.x86_64", "Installed: nss-sysinit-3.44.0-2.fc30.x86_64", "Installed: bcache-tools-1.0.8-15.fc30.x86_64", "Installed: nss-util-3.44.0-2.fc30.x86_64", "Installed: btrfs-progs-4.20.2-1.fc30.x86_64", "Installed: nspr-4.21.0-1.fc30.x86_64", "Installed: python3-pyudev-0.21.0-10.fc30.noarch", "Installed: mdadm-4.1-rc2.0.3.fc30.x86_64", "Installed: blivet-data-1:3.1.3-3.fc30.noarch", "Installed: python3-gobject-base-3.32.1-1.fc30.x86_64", "Installed: python3-pyparted-1:3.11.2-1.fc30.x86_64", "Installed: libblockdev-2.21-3.fc30.x86_64", "Installed: libaio-0.3.111-4.fc30.x86_64", "Installed: libblockdev-btrfs-2.21-3.fc30.x86_64", "Installed: libblockdev-crypto-2.21-3.fc30.x86_64", "Installed: userspace-rcu-0.10.1-5.fc30.x86_64", "Installed: ndctl-65-1.fc30.x86_64", "Installed: libblockdev-dm-2.21-3.fc30.x86_64", "Installed: dmraid-1.0.0.rc16-41.fc30.x86_64", "Installed: ndctl-libs-65-1.fc30.x86_64", "Installed: dmraid-events-1.0.0.rc16-41.fc30.x86_64", "Installed: libblockdev-fs-2.21-3.fc30.x86_64"]} TASK [storage : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:15 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"all_vols": [], "pools": [], "vol_pools": [], "vols": [], "vols_by_pool": [], "volumes": []}, "changed": false} TASK [storage : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:23 TASK [storage : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:30 TASK [storage : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:37 skipping: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [storage : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:44 TASK [storage : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:49 TASK [storage : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:57 TASK [storage : set the list of pools for test verification] *********************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:72 ok: [/home/till/lsr-test-harness-files/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/tmpshcwqol8/tasks/main-blivet.yml:76 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:80 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "pools": [] } TASK [storage : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:83 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "volumes": [] } TASK [storage : manage the pools] ************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:86 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": [], "changed": false, "leaves": [], "mounts": [], "removed_mounts": []} TASK [storage : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:92 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "blivet_output": { "actions": [], "changed": false, "failed": false, "leaves": [], "mounts": [], "removed_mounts": [] } } TASK [storage : remove obsolete mounts] ******************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:103 TASK [storage : add new mounts] **************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:111 TASK [storage : tell systemd to refresh its view of /etc/fstab] ******************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:122 skipping: [/home/till/lsr-test-harness-files/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/tmpshcwqol8/tasks/main-blivet.yml:131 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] TASK [include_tasks] *************************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/tests_lvm_one_disk_one_volume.yml:13 included: /tmp/tmpshcwqol8/tests/get_unused_disk.yml for /home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [Find unused disks in the system] ********************************************************************************************************************************************************************* task path: /tmp/tmpshcwqol8/tests/get_unused_disk.yml:2 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "disks": ["vdb"]} TASK [set_fact] ******************************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/get_unused_disk.yml:8 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"unused_disks": ["vdb"]}, "changed": false} TASK [Exit playbook when there's no unused disks in the system] ******************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/get_unused_disk.yml:13 skipping: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {} META: TASK [Print unused disks] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/get_unused_disk.yml:19 ok: [/home/till/lsr-test-harness-files/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/tmpshcwqol8/tests/tests_lvm_one_disk_one_volume.yml:18 TASK [storage : define an empty list of pools to be used in testing] *************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main.yml:2 ok: [/home/till/lsr-test-harness-files/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/tmpshcwqol8/tasks/main.yml:6 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : include the appropriate backend tasks] ***************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main.yml:10 included: /tmp/tmpshcwqol8/tasks/main-blivet.yml for /home/till/lsr-test-harness-files/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/tmpshcwqol8/tasks/main-blivet.yml:2 skipping: [/home/till/lsr-test-harness-files/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/tmpshcwqol8/tasks/main-blivet.yml:7 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: python3-blivet"]} TASK [storage : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:15 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"all_vols": [], "pools": [], "vol_pools": [], "vols": [], "vols_by_pool": [], "volumes": []}, "changed": false} TASK [storage : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:23 ok: [/home/till/lsr-test-harness-files/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": {"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 : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:30 ok: [/home/till/lsr-test-harness-files/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": {"vol_defaults": [{"fs_create_options": "", "fs_destroy_options": "-af", "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"}], "vol_pools": ["foo"], "vols": [{"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 : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:37 ok: [/home/till/lsr-test-harness-files/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_destroy_options': '-af', 'fs_overwrite_existing': True, 'mount_point': '', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid'}]) => {"ansible_facts": {"all_vols": [{"fs_create_options": "", "fs_destroy_options": "-af", "fs_label": "", "fs_overwrite_existing": true, "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, "idx": 0, "item": [{"mount_point": "/opt/test1", "name": "test1", "size": "4g"}, {"fs_create_options": "", "fs_destroy_options": "-af", "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 : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:44 ok: [/home/till/lsr-test-harness-files/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": {"vols_by_pool": {"foo": [{"fs_create_options": "", "fs_destroy_options": "-af", "fs_label": "", "fs_overwrite_existing": true, "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 : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:49 ok: [/home/till/lsr-test-harness-files/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": {"pools": [{"disks": ["vdb"], "name": "foo", "state": "present", "type": "lvm", "volumes": [{"fs_create_options": "", "fs_destroy_options": "-af", "fs_label": "", "fs_overwrite_existing": true, "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": "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 : set_fact] ********************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:57 TASK [storage : set the list of pools for test verification] *********************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:72 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_pools_list": [{"disks": ["vdb"], "name": "foo", "state": "present", "type": "lvm", "volumes": [{"fs_create_options": "", "fs_destroy_options": "-af", "fs_label": "", "fs_overwrite_existing": true, "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/tmpshcwqol8/tasks/main-blivet.yml:76 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"_storage_volumes_list": []}, "changed": false} TASK [storage : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:80 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "pools": [ { "disks": [ "vdb" ], "name": "foo", "state": "present", "type": "lvm", "volumes": [ { "fs_create_options": "", "fs_destroy_options": "-af", "fs_label": "", "fs_overwrite_existing": true, "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/tmpshcwqol8/tasks/main-blivet.yml:83 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "volumes": [] } TASK [storage : manage the pools] ************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:86 changed: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"actions": ["create format lvmpv on /dev/vdb", "create device /dev/foo", "create device /dev/mapper/foo-test1", "create format xfs on /dev/mapper/foo-test1"], "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"}], "removed_mounts": []} TASK [storage : debug] ************************************************************************************************************************************************************************************* task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:92 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "blivet_output": { "actions": [ "create format lvmpv on /dev/vdb", "create device /dev/foo", "create device /dev/mapper/foo-test1", "create format xfs on /dev/mapper/foo-test1" ], "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" } ], "removed_mounts": [] } } TASK [storage : remove obsolete mounts] ******************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:103 TASK [storage : add new mounts] **************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:111 changed: [/home/till/lsr-test-harness-files/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/tmpshcwqol8/tasks/main-blivet.yml:122 changed: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["systemctl", "daemon-reload"], "delta": "0:00:00.209119", "end": "2019-05-25 13:55:57.138529", "rc": 0, "start": "2019-05-25 13:55:56.929410", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [storage : Update facts] ****************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tasks/main-blivet.yml:131 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] TASK [include_tasks] *************************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/tests_lvm_one_disk_one_volume.yml:30 included: /tmp/tmpshcwqol8/tests/verify-role-results.yml for /home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [set_fact] ******************************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/verify-role-results.yml:1 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"storage_tests_list": ["verify-volumes"]}, "changed": false} TASK [Print out pool information] ************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/verify-role-results.yml:4 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "_storage_pools_list": [ { "disks": [ "vdb" ], "name": "foo", "state": "present", "type": "lvm", "volumes": [ { "fs_create_options": "", "fs_destroy_options": "-af", "fs_label": "", "fs_overwrite_existing": true, "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/tmpshcwqol8/tests/verify-role-results.yml:9 skipping: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {} TASK [Ensure the specified devices in the role were correctly configured in the user's system] ************************************************************************************************************* task path: /tmp/tmpshcwqol8/tests/verify-role-results.yml:14 included: /tmp/tmpshcwqol8/tests/test-verify-volumes.yml for /home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [Read the /etc/fstab file for volume existence] ******************************************************************************************************************************************************* task path: /tmp/tmpshcwqol8/tests/test-verify-volumes.yml:2 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "cmd": ["cat", "/etc/fstab"], "delta": "0:00:00.002442", "end": "2019-05-25 13:55:58.488119", "rc": 0, "start": "2019-05-25 13:55:58.485677", "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/tmpshcwqol8/tests/test-verify-volumes.yml:7 included: /tmp/tmpshcwqol8/tests/test-volumes-present-helper.yml for /home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [set_fact] ******************************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/test-volumes-present-helper.yml:2 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"mount_entries": []}, "changed": false} TASK [gather mounts related to each volume in the pool] **************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/test-volumes-present-helper.yml:5 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'size': '4g', 'fs_type': 'xfs', 'fs_label': '', 'fs_create_options': '', 'fs_destroy_options': '-af', 'fs_overwrite_existing': True, 'mount_point': '/opt/test1', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid', 'name': 'test1', 'pool': 'foo'}) => {"ansible_facts": {"mount_entries": [[{"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": "da478d05-0a35-4842-a763-3ee30a0b6617"}]]}, "ansible_loop_var": "current_volume", "changed": false, "current_volume": {"fs_create_options": "", "fs_destroy_options": "-af", "fs_label": "", "fs_overwrite_existing": true, "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 [Ensure all lvm volumes were correctly managed in /etc/fstab and ansible_mounts.] ********************************************************************************************************************* task path: /tmp/tmpshcwqol8/tests/test-volumes-present-helper.yml:12 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'size': '4g', 'fs_type': 'xfs', 'fs_label': '', 'fs_create_options': '', 'fs_destroy_options': '-af', 'fs_overwrite_existing': True, 'mount_point': '/opt/test1', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid', 'name': 'test1', 'pool': 'foo'}) => { "ansible_loop_var": "current_volume", "changed": false, "current_volume": { "fs_create_options": "", "fs_destroy_options": "-af", "fs_label": "", "fs_overwrite_existing": true, "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" }, "idx": 0, "msg": "All assertions passed" } TASK [Ensure all lvm volumes were correctly managed in /etc/fstab and ansible_mounts.] ********************************************************************************************************************* task path: /tmp/tmpshcwqol8/tests/test-volumes-present-helper.yml:25 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'size': '4g', 'fs_type': 'xfs', 'fs_label': '', 'fs_create_options': '', 'fs_destroy_options': '-af', 'fs_overwrite_existing': True, 'mount_point': '/opt/test1', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid', 'name': 'test1', 'pool': 'foo'}) => { "ansible_loop_var": "current_volume", "changed": false, "current_volume": { "fs_create_options": "", "fs_destroy_options": "-af", "fs_label": "", "fs_overwrite_existing": true, "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" }, "idx": 0, "msg": "All assertions passed" } TASK [Ensure all lvm volumes were correctly managed in /etc/fstab.] **************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/test-volumes-present-helper.yml:38 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item={'state': 'present', 'type': 'lvm', 'size': '4g', 'fs_type': 'xfs', 'fs_label': '', 'fs_create_options': '', 'fs_destroy_options': '-af', 'fs_overwrite_existing': True, 'mount_point': '/opt/test1', 'mount_options': 'defaults', 'mount_check': 0, 'mount_passno': 0, 'mount_device_identifier': 'uuid', 'name': 'test1', 'pool': 'foo'}) => { "ansible_loop_var": "current_volume", "changed": false, "current_volume": { "fs_create_options": "", "fs_destroy_options": "-af", "fs_label": "", "fs_overwrite_existing": true, "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" }, "msg": "All assertions passed" } TASK [resolve_blockdev] ************************************************************************************************************************************************************************************ task path: /tmp/tmpshcwqol8/tests/test-verify-volumes.yml:14 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/dev/mapper/foo-test1) => {"ansible_loop_var": "dev_id", "changed": false, "dev_id": "/dev/mapper/foo-test1", "device": "/dev/mapper/foo-test1"} TASK [resolve_blockdev] ************************************************************************************************************************************************************************************ task path: /tmp/tmpshcwqol8/tests/test-verify-volumes.yml:21 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/dev/vda1) => {"ansible_loop_var": "dev_id", "changed": false, "dev_id": "/dev/vda1", "device": "/dev/vda1"} ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/dev/mapper/foo-test1) => {"ansible_loop_var": "dev_id", "changed": false, "dev_id": "/dev/mapper/foo-test1", "device": "/dev/mapper/foo-test1"} TASK [set_fact] ******************************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/test-verify-volumes.yml:28 ok: [/home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"ansible_mount_devs": ["/dev/vda1", "/dev/mapper/foo-test1"], "blivet_mount_devs": ["/dev/mapper/foo-test1"], "removed_volumes": []}, "changed": false} TASK [set_fact] ******************************************************************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/test-verify-volumes.yml:33 TASK [Verify the volumes with no pool were correctly managed] ********************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/test-verify-volumes.yml:40 TASK [Verify the present volumes with no pool were correctly managed] ************************************************************************************************************************************** task path: /tmp/tmpshcwqol8/tests/test-verify-volumes.yml:52 TASK [Verify the absent volumes with no pool are not in ansible_mounts] ************************************************************************************************************************************ task path: /tmp/tmpshcwqol8/tests/test-verify-volumes.yml:65 META: ran handlers META: ran handlers PLAY RECAP ************************************************************************************************************************************************************************************************* /home/till/lsr-test-harness-files/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 : ok=51 changed=4 unreachable=0 failed=0 skipped=20 rescued=0 ignored=0