+ cd /tmp/tmpagnzt5h5/tests; TEST_SUBJECTS=/cache/fedora-32.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_nbde_client-50-792f563-fedora-32-dxfcttx2/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmpagnzt5h5/_setup.yml /tmp/tmpagnzt5h5/tests/tests_bind_high_availability.yml ansible-playbook 2.9.21 config file = /etc/ansible/ansible.cfg configured module search path = ['/home/tester/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.8/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 3.8.10 (default, May 4 2021, 00:00:00) [GCC 10.2.1 20201125 (Red Hat 10.2.1-9)] Using /etc/ansible/ansible.cfg as config file Skipping callback 'actionable', as we already have a stdout callback. Skipping callback 'counter_enabled', as we already have a stdout callback. Skipping callback 'debug', as we already have a stdout callback. Skipping callback 'dense', as we already have a stdout callback. Skipping callback 'dense', as we already have a stdout callback. Skipping callback 'full_skip', as we already have a stdout callback. Skipping callback 'json', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'null', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. Skipping callback 'selective', as we already have a stdout callback. Skipping callback 'skippy', as we already have a stdout callback. Skipping callback 'stderr', as we already have a stdout callback. Skipping callback 'unixy', as we already have a stdout callback. Skipping callback 'yaml', as we already have a stdout callback. PLAYBOOK: _setup.yml *********************************************************** 1 plays in /tmp/tmpagnzt5h5/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmpagnzt5h5/_setup.yml:5 ok: [/cache/fedora-32.qcow2] => { "groups": { "all": [ "/cache/fedora-32.qcow2" ], "localhost": [ "/cache/fedora-32.qcow2" ], "subjects": [ "/cache/fedora-32.qcow2" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmpagnzt5h5/_setup.yml:7 skipping: [/cache/fedora-32.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/fedora-32.qcow2 : ok=1 changed=0 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 PLAYBOOK: tests_bind_high_availability.yml ************************************* 1 plays in /tmp/tmpagnzt5h5/tests/tests_bind_high_availability.yml PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpagnzt5h5/tests/tests_bind_high_availability.yml:2 ok: [/cache/fedora-32.qcow2] META: ran handlers TASK [Set up test environment] ************************************************* task path: /tmp/tmpagnzt5h5/tests/tests_bind_high_availability.yml:13 included: /tmp/tmpagnzt5h5/tests/tasks/setup_test.yml for /cache/fedora-32.qcow2 TASK [Include general tests variables] ***************************************** task path: /tmp/tmpagnzt5h5/tests/tasks/setup_test.yml:2 ok: [/cache/fedora-32.qcow2] => {"ansible_facts": {"nbde_client_test_device": "/tmp/.nbde_client_dev_test", "nbde_client_test_encryption_key_src": "/tmp/.nbde_client_dev_encryption_key", "nbde_client_test_pass": "test-password-here", "nbde_client_test_roles_dir": "/tmp/.nbde_client_dev_roles"}, "ansible_included_var_files": ["/tmp/tmpagnzt5h5/tests/vars/main.yml"], "changed": false} TASK [Set version specific variables] ****************************************** task path: /tmp/tmpagnzt5h5/tests/tasks/setup_test.yml:5 ok: [/cache/fedora-32.qcow2] => {"ansible_facts": {"nbde_client_test_packages": ["cryptsetup"]}, "ansible_included_var_files": ["/tmp/tmpagnzt5h5/tests/vars/Fedora.yml"], "changed": false} TASK [Print all available facts] *********************************************** task path: /tmp/tmpagnzt5h5/tests/tasks/setup_test.yml:20 ok: [/cache/fedora-32.qcow2] => { "ansible_facts": { "all_ipv4_addresses": [ "10.0.2.15" ], "all_ipv6_addresses": [ "fec0::5054:ff:fe12:3456", "fe80::5054:ff:fe12:3456" ], "ansible_local": {}, "apparmor": { "status": "disabled" }, "architecture": "x86_64", "bios_date": "04/01/2014", "bios_version": "1.13.0-2.fc32", "cmdline": { "BOOT_IMAGE": "(hd0,msdos1)/boot/vmlinuz-5.11.22-100.fc32.x86_64", "console": "ttyS0,115200n8", "net.ifnames": "0", "no_timer_check": true, "ro": true, "root": "UUID=450c38b7-9e89-4257-8d2f-915e2c3ab50d" }, "date_time": { "date": "2021-06-08", "day": "08", "epoch": "1623168475", "hour": "16", "iso8601": "2021-06-08T16:07:55Z", "iso8601_basic": "20210608T160755652552", "iso8601_basic_short": "20210608T160755", "iso8601_micro": "2021-06-08T16:07:55.652552Z", "minute": "07", "month": "06", "second": "55", "time": "16:07:55", "tz": "UTC", "tz_offset": "+0000", "weekday": "Tuesday", "weekday_number": "2", "weeknumber": "23", "year": "2021" }, "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" }, "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" }, "device_links": { "ids": { "sr0": [ "ata-QEMU_DVD-ROM_QM00003" ] }, "labels": { "sr0": [ "cidata" ] }, "masters": {}, "uuids": { "sr0": [ "2021-06-08-16-07-41-00" ], "vda1": [ "450c38b7-9e89-4257-8d2f-915e2c3ab50d" ] } }, "devices": { "sr0": { "holders": [], "host": "", "links": { "ids": [ "ata-QEMU_DVD-ROM_QM00003" ], "labels": [ "cidata" ], "masters": [], "uuids": [ "2021-06-08-16-07-41-00" ] }, "model": "QEMU DVD-ROM", "partitions": {}, "removable": "1", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "bfq", "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": [ "450c38b7-9e89-4257-8d2f-915e2c3ab50d" ] }, "sectors": "8386560", "sectorsize": 512, "size": "4.00 GB", "start": "2048", "uuid": "450c38b7-9e89-4257-8d2f-915e2c3ab50d" } }, "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": "512", "vendor": "0x1af4", "virtual": 1 } }, "distribution": "Fedora", "distribution_file_parsed": true, "distribution_file_path": "/etc/redhat-release", "distribution_file_variety": "RedHat", "distribution_major_version": "32", "distribution_release": "", "distribution_version": "32", "dns": { "nameservers": [ "10.0.2.3" ], "search": [ "virt.pnr.lab.eng.rdu2.redhat.com" ] }, "domain": "virt.pnr.lab.eng.rdu2.redhat.com", "effective_group_id": 0, "effective_user_id": 0, "env": { "DBUS_SESSION_BUS_ADDRESS": "unix:path=/run/user/0/bus", "HOME": "/root", "LANG": "en_US.UTF-8", "LC_CTYPE": "C.UTF-8", "LESSOPEN": "||/usr/bin/lesspipe.sh %s", "LOGNAME": "root", "LS_COLORS": "", "MOTD_SHOWN": "pam", "PATH": "/root/.local/bin:/root/bin:/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 50476 22", "SSH_CONNECTION": "10.0.2.2 50476 10.0.2.15 22", "SSH_TTY": "/dev/pts/0", "USER": "root", "XDG_RUNTIME_DIR": "/run/user/0", "XDG_SESSION_CLASS": "user", "XDG_SESSION_ID": "1", "XDG_SESSION_TYPE": "tty", "_": "/usr/bin/python3" }, "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" }, "fibre_channel_wwn": [], "fips": false, "form_factor": "Other", "fqdn": "ibm-p8-kvm-03-guest-02.virt.pnr.lab.eng.rdu2.redhat.com", "gather_subset": [ "all" ], "hostname": "ibm-p8-kvm-03-guest-02", "hostnqn": "", "interfaces": [ "lo", "eth0" ], "is_chroot": false, "iscsi_iqn": "", "kernel": "5.11.22-100.fc32.x86_64", "kernel_version": "#1 SMP Wed May 19 18:58:25 UTC 2021", "lo": { "active": true, "device": "lo", "ipv4": { "address": "127.0.0.1", "broadcast": "", "netmask": "255.0.0.0", "network": "127.0.0.0" }, "ipv6": [ { "address": "::1", "prefix": "128", "scope": "host" } ], "mtu": 65536, "promisc": false, "type": "loopback" }, "lsb": {}, "machine": "x86_64", "machine_id": "7782c2650afb4edcb66dc21c4954bf06", "memfree_mb": 1693, "memory_mb": { "nocache": { "free": 1851, "used": 125 }, "real": { "free": 1693, "total": 1976, "used": 283 }, "swap": { "cached": 0, "free": 0, "total": 0, "used": 0 } }, "memtotal_mb": 1976, "module_setup": true, "mounts": [ { "block_available": 775845, "block_size": 4096, "block_total": 1015472, "block_used": 239627, "device": "/dev/vda1", "fstype": "ext4", "inode_available": 235263, "inode_total": 262144, "inode_used": 26881, "mount": "/", "options": "rw,seclabel,relatime", "size_available": 3177861120, "size_total": 4159373312, "uuid": "450c38b7-9e89-4257-8d2f-915e2c3ab50d" } ], "nodename": "ibm-p8-kvm-03-guest-02.virt.pnr.lab.eng.rdu2.redhat.com", "os_family": "RedHat", "pkg_mgr": "dnf", "proc_cmdline": { "BOOT_IMAGE": "(hd0,msdos1)/boot/vmlinuz-5.11.22-100.fc32.x86_64", "console": [ "tty1", "ttyS0,115200n8" ], "net.ifnames": "0", "no_timer_check": true, "ro": true, "root": "UUID=450c38b7-9e89-4257-8d2f-915e2c3ab50d" }, "processor": [ "0", "GenuineIntel", "Intel(R) Xeon(R) Platinum 8168 CPU @ 2.70GHz", "1", "GenuineIntel", "Intel(R) Xeon(R) Platinum 8168 CPU @ 2.70GHz", "2", "GenuineIntel", "Intel(R) Xeon(R) Platinum 8168 CPU @ 2.70GHz", "3", "GenuineIntel", "Intel(R) Xeon(R) Platinum 8168 CPU @ 2.70GHz" ], "processor_cores": 1, "processor_count": 4, "processor_threads_per_core": 1, "processor_vcpus": 4, "product_name": "Standard PC (i440FX + PIIX, 1996)", "product_serial": "NA", "product_uuid": "NA", "product_version": "pc-i440fx-4.2", "python": { "executable": "/usr/bin/python3", "has_sslcontext": true, "type": "cpython", "version": { "major": 3, "micro": 10, "minor": 8, "releaselevel": "final", "serial": 0 }, "version_info": [ 3, 8, 10, "final", 0 ] }, "python_version": "3.8.10", "real_group_id": 0, "real_user_id": 0, "selinux": { "config_mode": "enforcing", "mode": "enforcing", "policyvers": 33, "status": "enabled", "type": "targeted" }, "selinux_python_present": true, "service_mgr": "systemd", "ssh_host_key_dsa_public": "AAAAB3NzaC1kc3MAAACBAMiXKJ9LTEH3Bc3DJ7afn5dXGKzQMGk908lJsVbYve9i3cSul/c9c6wtG5gA8oqz8hyaI6A781/GUKSPHFSPuSSLK2qVoFYKcfCyQpfRN412PAD1jRAJLfanPLJNphfgiX4wtH2bZ4Glq5MH4jJLphc215VBBgw8q0b/qfkIJIgJAAAAFQDdf6N4MC8Eu3PMiGrt7Kk72jg2ZQAAAIBoWwUGJSMo8MeiC7HfriDRNMFwqCaqISuGVtw0E/jQ28hfZGzBCUbRqI7sX/BiG2pKFmcSTAmjDl5ThLDi93PYdY/KJDyxIcjZec9b0w96+29ZBfggYpwE2yYR9gedkD08UltprvnNPyg8ZCmMNYDRqXH6AmGvqxUuxtTKTVFbZgAAAIAJsj4vywfufMIu1hUAmhRBB4di+23YasrCcwYzgEk7Lyb4Lf5h5BbvDv7raevAy/xQV+zpGxpdWA1TqaKfEL1vIsLB0uzoFeLGzdLJ7dmrBJPXCPFdMlSiLfRDYe7znonjatX3eTggbOPWYFDcOUVtwKAKwdH18UKAUVmHaxN64Q==", "ssh_host_key_ecdsa_public": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBA2d1MSU/UrajNEQJHS76wen6oIXMTQod17xqGfDJ3zSgVwhhg1Ypl7SlxCsc3ZP2JjpPV4xwsROBvkbBTcGtLM=", "ssh_host_key_ed25519_public": "AAAAC3NzaC1lZDI1NTE5AAAAIDLIHDtdAapwLF/NCUSmTiYb+703JvNAt2YTnwVrSY5X", "ssh_host_key_rsa_public": "AAAAB3NzaC1yc2EAAAADAQABAAABgQCj9Ve2mO1KICsyxw9BfX8W+KDgUV5M5QKdEl/ZJ0mSkWOosqN/PsedSXtPhI3ONrLYhANp1hQqamTFI+MpllxxLF3wtJcvLw0rg+kP6FbD+JBFWHz+mrsbBzWpKi/umb2FyjUmfXYzBwA4//Dv74Fo1vNk/L13S81xDuMooUuD3Lx68G0Vw4m+VXSFgolX/Bbz0hNEitT2WDWFSMpRFEekKsfCj+n+jaxwfZwn7iMCXL0aZf99vlJ+aensLEEiEG3mgWX6puSQ6bL5XCl7At35gTbmeo2T8fsg2jSRmpCk7GcvnW8PqzTMzTrsaXEa4XEmvX+X5Zs+WczSv+Qc42kyptw1D4c2jOZHU4kwUvWnDzKR2UzVTeyJyRUlVUw6+qlF+D86106UGk3PCebKLSLJLp0xF5mL/8QCZYa6PnURK1QaFlE4S8Mr7UTq0b9RkH8AUywah1efMtcfxiZnrxrXuGlEYNqaT/FPf2qHs/JYkgcK2CRbv15z4Wa721L4/B8=", "swapfree_mb": 0, "swaptotal_mb": 0, "system": "Linux", "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", "38", "39", "40+ep" ], "system_capabilities_enforced": "True", "system_vendor": "QEMU", "uptime_seconds": 10, "user_dir": "/root", "user_gecos": "root", "user_gid": 0, "user_id": "root", "user_shell": "/bin/bash", "user_uid": 0, "userspace_architecture": "x86_64", "userspace_bits": "64", "virtualization_role": "guest", "virtualization_type": "kvm" } } TASK [Install required packages for nbde_client tests] ************************* task path: /tmp/tmpagnzt5h5/tests/tasks/setup_test.yml:24 changed: [/cache/fedora-32.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: cryptsetup-2.3.5-2.fc32.x86_64"]} TASK [Clone nbde_server role for the tests] ************************************ task path: /tmp/tmpagnzt5h5/tests/tasks/setup_test.yml:28 ok: [/cache/fedora-32.qcow2] => {"after": "c57d0b1f3384c525738fa26ba4bdca485e162567", "before": "c57d0b1f3384c525738fa26ba4bdca485e162567", "changed": false, "remote_url_changed": false} TASK [Deploy NBDE server for testing] ****************************************** task path: /tmp/tmpagnzt5h5/tests/tasks/setup_test.yml:35 TASK [/tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server : Set version specific variables] *** task path: /tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server/tasks/main.yml:6 ok: [/cache/fedora-32.qcow2] => {"ansible_facts": {"__nbde_server_cachedir": "/var/cache/tang", "__nbde_server_group": "tang", "__nbde_server_keydir": "/var/db/tang", "__nbde_server_keygen": "/usr/libexec/tangd-keygen", "__nbde_server_packages": ["tang"], "__nbde_server_services": ["tangd.socket"], "__nbde_server_update": "/usr/libexec/tangd-update", "__nbde_server_user": "tang"}, "ansible_included_var_files": ["/tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server/vars/default.yml"], "changed": false} TASK [/tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server : Include the appropriate provider tasks] *** task path: /tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server/tasks/main.yml:20 included: /tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server/tasks/main-tang.yml for /cache/fedora-32.qcow2 TASK [/tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server : Ensure tang is installed] *** task path: /tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server/tasks/main-tang.yml:2 changed: [/cache/fedora-32.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: tang-10-1.fc32.x86_64", "Installed: libjose-11-1.fc32.x86_64", "Installed: http-parser-2.9.3-2.fc32.x86_64", "Installed: jose-11-1.fc32.x86_64"]} TASK [/tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server : Ensure keys are rotated] *** task path: /tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server/tasks/main-tang.yml:7 skipping: [/cache/fedora-32.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [/tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server : Ensure we have keys] *** task path: /tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server/tasks/main-tang.yml:16 changed: [/cache/fedora-32.qcow2] => {"arguments": {"cachedir": "/var/cache/tang", "force": false, "keydir": "/var/db/tang", "keygen": "/usr/libexec/tangd-keygen", "keys_to_deploy_dir": null, "state": "keys-created", "update": "/usr/libexec/tangd-update"}, "changed": true, "state": "keys-created"} TASK [/tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server : Perform key management (fetch/deploy) tasks] *** task path: /tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server/tasks/main-tang.yml:25 skipping: [/cache/fedora-32.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [/tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server : Ensure required services are enabled and at the right state] *** task path: /tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server/tasks/main-tang.yml:29 changed: [/cache/fedora-32.qcow2] => (item=tangd.socket) => {"ansible_loop_var": "item", "changed": true, "enabled": true, "item": "tangd.socket", "name": "tangd.socket", "state": "started", "status": {"Accept": "yes", "ActiveEnterTimestampMonotonic": "0", "ActiveExitTimestampMonotonic": "0", "ActiveState": "inactive", "After": "system.slice sysinit.target", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "no", "AssertTimestampMonotonic": "0", "Backlog": "4096", "Before": "sockets.target shutdown.target", "BindIPv6Only": "default", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "Broadcast": "no", "CPUAccounting": "yes", "CPUAffinity": "", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "[not set]", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanIsolate": "no", "CanReload": "no", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "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 cap_perfmon cap_bpf cap_checkpoint_restore", "CollectMode": "inactive", "ConditionResult": "no", "ConditionTimestampMonotonic": "0", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target", "ControlPID": "0", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "DeferAcceptUSec": "0", "Delegate": "no", "Description": "Tang Server socket", "DevicePolicy": "auto", "DirectoryMode": "0755", "DynamicUser": "no", "EffectiveCPUs": "", "EffectiveMemoryNodes": "", "FailureAction": "none", "FileDescriptorName": "tangd.socket", "FinalKillSignal": "9", "FragmentPath": "/usr/lib/systemd/system/tangd.socket", "FreeBind": "no", "GID": "[not set]", "IOAccounting": "no", "IOReadBytes": "18446744073709551615", "IOReadOperations": "18446744073709551615", "IOSchedulingClass": "0", "IOSchedulingPriority": "0", "IOWeight": "[not set]", "IOWriteBytes": "18446744073709551615", "IOWriteOperations": "18446744073709551615", "IPAccounting": "no", "IPEgressBytes": "[no data]", "IPEgressPackets": "[no data]", "IPIngressBytes": "[no data]", "IPIngressPackets": "[no data]", "IPTOS": "-1", "IPTTL": "-1", "Id": "tangd.socket", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestampMonotonic": "0", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeepAlive": "no", "KeepAliveIntervalUSec": "0", "KeepAliveProbes": "0", "KeepAliveTimeUSec": "0", "KeyringMode": "shared", "KillMode": "control-group", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "infinity", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "65536", "LimitMEMLOCKSoft": "65536", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "524288", "LimitNOFILESoft": "1024", "LimitNPROC": "7782", "LimitNPROCSoft": "7782", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "7782", "LimitSIGPENDINGSoft": "7782", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "Listen": "[::]:80 (Stream)", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "Mark": "-1", "MaxConnections": "64", "MaxConnectionsPerSource": "0", "MemoryAccounting": "yes", "MemoryCurrent": "[not set]", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MessageQueueMaxMessages": "0", "MessageQueueMessageSize": "0", "MountAPIVFS": "no", "MountFlags": "", "NAccepted": "0", "NConnections": "0", "NRefused": "0", "NUMAMask": "", "NUMAPolicy": "n/a", "Names": "tangd.socket", "NeedDaemonReload": "no", "Nice": "0", "NoDelay": "no", "NoNewPrivileges": "no", "NonBlocking": "no", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PassCredentials": "no", "PassSecurity": "no", "Perpetual": "no", "PipeSize": "0", "Priority": "-1", "PrivateDevices": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProtectClock": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectHostname": "no", "ProtectKernelLogs": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectSystem": "no", "ReceiveBuffer": "0", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemoveIPC": "no", "RemoveOnStop": "no", "Requires": "system.slice sysinit.target", "RestartKillSignal": "15", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "ReusePort": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "SameProcessGroup": "no", "SecureBits": "0", "SendBuffer": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "SocketMode": "0666", "SocketProtocol": "0", "StandardError": "inherit", "StandardInput": "null", "StandardInputData": "", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestampMonotonic": "0", "StateDirectoryMode": "0755", "StopWhenUnneeded": "no", "SubState": "dead", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "[not set]", "TasksMax": "2334", "TimeoutCleanUSec": "infinity", "TimeoutUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Transparent": "no", "TriggerLimitBurst": "200", "TriggerLimitIntervalUSec": "2s", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "disabled", "UnitFileState": "disabled", "UtmpMode": "init", "WatchdogSignal": "6", "Writable": "no"}} TASK [Create device for testing] *********************************************** task path: /tmp/tmpagnzt5h5/tests/tasks/setup_test.yml:39 ok: [/cache/fedora-32.qcow2] => {"changed": false, "cmd": ["fallocate", "-l64m", "/tmp/.nbde_client_dev_test"], "delta": "0:00:00.006633", "end": "2021-06-08 16:09:01.659018", "rc": 0, "start": "2021-06-08 16:09:01.652385", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Format test device as LUKS] ********************************************** task path: /tmp/tmpagnzt5h5/tests/tasks/setup_test.yml:43 ok: [/cache/fedora-32.qcow2] => {"changed": false, "cmd": "set -euo pipefail; echo -n test-password-here | cryptsetup luksFormat --pbkdf pbkdf2 --pbkdf-force-iterations 1000 --batch-mode --force-password /tmp/.nbde_client_dev_test", "delta": "0:00:00.149049", "end": "2021-06-08 16:09:02.127374", "rc": 0, "start": "2021-06-08 16:09:01.978325", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Create key file for test device] ***************************************** task path: /tmp/tmpagnzt5h5/tests/tasks/setup_test.yml:51 ok: [/cache/fedora-32.qcow2] => {"changed": false, "cmd": "echo -n test-password-here > /tmp/.nbde_client_dev_encryption_key\n", "delta": "0:00:00.004309", "end": "2021-06-08 16:09:02.563529", "rc": 0, "start": "2021-06-08 16:09:02.559220", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Use nbde_client role] **************************************************** task path: /tmp/tmpagnzt5h5/tests/tests_bind_high_availability.yml:18 TASK [linux-system-roles.nbde_client : Set version specific variables] ********* task path: /tmp/tmpagnzt5h5/tasks/main.yml:4 ok: [/cache/fedora-32.qcow2] => {"ansible_facts": {"__nbde_client_initramfs_update_cmd": "dracut -f", "__nbde_client_packages": ["clevis", "clevis-dracut", "clevis-luks", "clevis-systemd"]}, "ansible_included_var_files": ["/tmp/tmpagnzt5h5/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.nbde_client : Include the appropriate provider tasks] *** task path: /tmp/tmpagnzt5h5/tasks/main.yml:17 included: /tmp/tmpagnzt5h5/tasks/main-clevis.yml for /cache/fedora-32.qcow2 TASK [linux-system-roles.nbde_client : Ensure required packages are installed] *** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:2 changed: [/cache/fedora-32.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: oniguruma-6.9.5-4.rev1.fc32.x86_64", "Installed: tpm2-tools-4.1.3-1.fc32.x86_64", "Installed: tpm2-tss-2.4.4-1.fc32.x86_64", "Installed: clevis-18-1.fc32.x86_64", "Installed: clevis-dracut-18-1.fc32.x86_64", "Installed: clevis-luks-18-1.fc32.x86_64", "Installed: clevis-systemd-18-1.fc32.x86_64", "Installed: dracut-network-050-61.git20200529.fc32.x86_64", "Installed: libluksmeta-9-8.fc32.x86_64", "Installed: jq-1.6-4.fc32.x86_64", "Installed: luksmeta-9-8.fc32.x86_64"]} TASK [linux-system-roles.nbde_client : Check whether devices are at the desired state] *** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:7 changed: [/cache/fedora-32.qcow2] => {"changed": true, "original_bindings": [{"device": "/tmp/.nbde_client_dev_test", "encryption_password": "test-password-here", "password_temporary": false, "servers": ["http://localhost", "http://localhost"], "slot": 1, "state": "present", "threshold": 1}]} TASK [linux-system-roles.nbde_client : Create temporary directory to hold key files] *** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:17 changed: [/cache/fedora-32.qcow2] => {"changed": true, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/tmp/ansible.mihpvj9nnbde_client_encryption_keys", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 4096, "state": "directory", "uid": 0} TASK [linux-system-roles.nbde_client : Ensure we transfer key files] *********** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:25 skipping: [/cache/fedora-32.qcow2] => (item=) => {"ansible_loop_var": "item", "changed": false, "item": {"device": "/tmp/.nbde_client_dev_test", "encryption_password": "test-password-here", "servers": ["http://localhost", "http://localhost"]}, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.nbde_client : Perform clevis operations] ************** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:37 NOTIFIED HANDLER linux-system-roles.nbde_client : nbde_client update initramfs for /cache/fedora-32.qcow2 changed: [/cache/fedora-32.qcow2] => {"changed": true, "original_bindings": [{"device": "/tmp/.nbde_client_dev_test", "encryption_password": "test-password-here", "password_temporary": false, "servers": ["http://localhost", "http://localhost"], "slot": 1, "state": "present", "threshold": 1}]} TASK [linux-system-roles.nbde_client : Remove temporary directory used to hold key files] *** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:47 changed: [/cache/fedora-32.qcow2] => {"changed": true, "path": "/tmp/ansible.mihpvj9nnbde_client_encryption_keys", "state": "absent"} TASK [Attempt to unlock device] ************************************************ task path: /tmp/tmpagnzt5h5/tests/tests_bind_high_availability.yml:22 included: /tmp/tmpagnzt5h5/tests/tasks/verify_unlock_device.yml for /cache/fedora-32.qcow2 TASK [Verify we can unlock the device] ***************************************** task path: /tmp/tmpagnzt5h5/tests/tasks/verify_unlock_device.yml:2 ok: [/cache/fedora-32.qcow2] => {"changed": false, "cmd": ["clevis", "luks", "unlock", "-d", "/tmp/.nbde_client_dev_test", "-n", "nbde_client_unlocked"], "delta": "0:00:03.396818", "end": "2021-06-08 16:09:21.007554", "rc": 0, "start": "2021-06-08 16:09:17.610736", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Close unlocked device] *************************************************** task path: /tmp/tmpagnzt5h5/tests/tasks/verify_unlock_device.yml:10 ok: [/cache/fedora-32.qcow2] => {"changed": false, "cmd": ["cryptsetup", "close", "nbde_client_unlocked"], "delta": "0:00:00.025440", "end": "2021-06-08 16:09:21.374746", "rc": 0, "start": "2021-06-08 16:09:21.349306", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Make sure the attempt to unlock succeeded] ******************************* task path: /tmp/tmpagnzt5h5/tests/tests_bind_high_availability.yml:25 ok: [/cache/fedora-32.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Assert idempotency] ****************************************************** task path: /tmp/tmpagnzt5h5/tests/tests_bind_high_availability.yml:31 included: /tmp/tmpagnzt5h5/tests/tasks/verify_idempotency.yml for /cache/fedora-32.qcow2 TASK [Use nbde_client role - idempotency check] ******************************** task path: /tmp/tmpagnzt5h5/tests/tasks/verify_idempotency.yml:2 TASK [linux-system-roles.nbde_client : Set version specific variables] ********* task path: /tmp/tmpagnzt5h5/tasks/main.yml:4 ok: [/cache/fedora-32.qcow2] => {"ansible_facts": {"__nbde_client_initramfs_update_cmd": "dracut -f", "__nbde_client_packages": ["clevis", "clevis-dracut", "clevis-luks", "clevis-systemd"]}, "ansible_included_var_files": ["/tmp/tmpagnzt5h5/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.nbde_client : Include the appropriate provider tasks] *** task path: /tmp/tmpagnzt5h5/tasks/main.yml:17 included: /tmp/tmpagnzt5h5/tasks/main-clevis.yml for /cache/fedora-32.qcow2 TASK [linux-system-roles.nbde_client : Ensure required packages are installed] *** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:2 ok: [/cache/fedora-32.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [linux-system-roles.nbde_client : Check whether devices are at the desired state] *** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:7 ok: [/cache/fedora-32.qcow2] => {"changed": false, "original_bindings": [{"device": "/tmp/.nbde_client_dev_test", "encryption_password": "test-password-here", "password_temporary": false, "servers": ["http://localhost", "http://localhost"], "slot": 1, "state": "present", "threshold": 1}]} TASK [linux-system-roles.nbde_client : Create temporary directory to hold key files] *** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:17 skipping: [/cache/fedora-32.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.nbde_client : Ensure we transfer key files] *********** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:25 skipping: [/cache/fedora-32.qcow2] => (item=) => {"ansible_loop_var": "item", "changed": false, "item": {"device": "/tmp/.nbde_client_dev_test", "encryption_password": "test-password-here", "servers": ["http://localhost", "http://localhost"]}, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.nbde_client : Perform clevis operations] ************** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:37 skipping: [/cache/fedora-32.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.nbde_client : Remove temporary directory used to hold key files] *** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:47 skipping: [/cache/fedora-32.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify idempotency of clevis operations] ********************************* task path: /tmp/tmpagnzt5h5/tests/tasks/verify_idempotency.yml:6 ok: [/cache/fedora-32.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up test environment] *********************************************** task path: /tmp/tmpagnzt5h5/tests/tests_bind_high_availability.yml:35 included: /tmp/tmpagnzt5h5/tests/tasks/cleanup_test.yml for /cache/fedora-32.qcow2 TASK [Clean up dummy testing device] ******************************************* task path: /tmp/tmpagnzt5h5/tests/tasks/cleanup_test.yml:2 changed: [/cache/fedora-32.qcow2] => {"changed": true, "path": "/tmp/.nbde_client_dev_test", "state": "absent"} TASK [Clean up dummy key file] ************************************************* task path: /tmp/tmpagnzt5h5/tests/tasks/cleanup_test.yml:7 changed: [/cache/fedora-32.qcow2] => {"changed": true, "path": "/tmp/.nbde_client_dev_encryption_key", "state": "absent"} TASK [Clean up dummy key file on managed host] ********************************* task path: /tmp/tmpagnzt5h5/tests/tasks/cleanup_test.yml:13 ok: [/cache/fedora-32.qcow2] => {"changed": false, "path": "/tmp/.nbde_client_dev_encryption_key", "state": "absent"} RUNNING HANDLER [linux-system-roles.nbde_client : nbde_client update initramfs] *** task path: /tmp/tmpagnzt5h5/handlers/main.yml:4 changed: [/cache/fedora-32.qcow2] => {"changed": true, "cmd": ["dracut", "-f"], "delta": "0:00:18.732212", "end": "2021-06-08 16:09:46.643286", "rc": 0, "start": "2021-06-08 16:09:27.911074", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/fedora-32.qcow2 : ok=38 changed=12 unreachable=0 failed=0 skipped=8 rescued=0 ignored=0 + cd /tmp/tmpagnzt5h5/tests; TEST_SUBJECTS=/cache/fedora-32.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_nbde_client-50-792f563-fedora-32-dxfcttx2/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmpagnzt5h5/_setup.yml /tmp/tmpagnzt5h5/tests/tests_default.yml ansible-playbook 2.9.21 config file = /etc/ansible/ansible.cfg configured module search path = ['/home/tester/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.8/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 3.8.10 (default, May 4 2021, 00:00:00) [GCC 10.2.1 20201125 (Red Hat 10.2.1-9)] Using /etc/ansible/ansible.cfg as config file Skipping callback 'actionable', as we already have a stdout callback. Skipping callback 'counter_enabled', as we already have a stdout callback. Skipping callback 'debug', as we already have a stdout callback. Skipping callback 'dense', as we already have a stdout callback. Skipping callback 'dense', as we already have a stdout callback. Skipping callback 'full_skip', as we already have a stdout callback. Skipping callback 'json', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'null', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. Skipping callback 'selective', as we already have a stdout callback. Skipping callback 'skippy', as we already have a stdout callback. Skipping callback 'stderr', as we already have a stdout callback. Skipping callback 'unixy', as we already have a stdout callback. Skipping callback 'yaml', as we already have a stdout callback. PLAYBOOK: _setup.yml *********************************************************** 1 plays in /tmp/tmpagnzt5h5/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmpagnzt5h5/_setup.yml:5 ok: [/cache/fedora-32.qcow2] => { "groups": { "all": [ "/cache/fedora-32.qcow2" ], "localhost": [ "/cache/fedora-32.qcow2" ], "subjects": [ "/cache/fedora-32.qcow2" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmpagnzt5h5/_setup.yml:7 skipping: [/cache/fedora-32.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/fedora-32.qcow2 : ok=1 changed=0 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 PLAYBOOK: tests_default.yml **************************************************** 1 plays in /tmp/tmpagnzt5h5/tests/tests_default.yml PLAY [Ensure that the role runs with default parameters] *********************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpagnzt5h5/tests/tests_default.yml:2 ok: [/cache/fedora-32.qcow2] META: ran handlers TASK [linux-system-roles.nbde_client : Set version specific variables] ********* task path: /tmp/tmpagnzt5h5/tasks/main.yml:4 ok: [/cache/fedora-32.qcow2] => {"ansible_facts": {"__nbde_client_initramfs_update_cmd": "dracut -f", "__nbde_client_packages": ["clevis", "clevis-dracut", "clevis-luks", "clevis-systemd"]}, "ansible_included_var_files": ["/tmp/tmpagnzt5h5/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.nbde_client : Include the appropriate provider tasks] *** task path: /tmp/tmpagnzt5h5/tasks/main.yml:17 included: /tmp/tmpagnzt5h5/tasks/main-clevis.yml for /cache/fedora-32.qcow2 TASK [linux-system-roles.nbde_client : Ensure required packages are installed] *** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:2 changed: [/cache/fedora-32.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: libjose-11-1.fc32.x86_64", "Installed: tpm2-tools-4.1.3-1.fc32.x86_64", "Installed: tpm2-tss-2.4.4-1.fc32.x86_64", "Installed: clevis-18-1.fc32.x86_64", "Installed: clevis-dracut-18-1.fc32.x86_64", "Installed: clevis-luks-18-1.fc32.x86_64", "Installed: clevis-systemd-18-1.fc32.x86_64", "Installed: dracut-network-050-61.git20200529.fc32.x86_64", "Installed: jose-11-1.fc32.x86_64", "Installed: libluksmeta-9-8.fc32.x86_64", "Installed: jq-1.6-4.fc32.x86_64", "Installed: luksmeta-9-8.fc32.x86_64", "Installed: cryptsetup-2.3.5-2.fc32.x86_64", "Installed: oniguruma-6.9.5-4.rev1.fc32.x86_64"]} TASK [linux-system-roles.nbde_client : Check whether devices are at the desired state] *** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:7 skipping: [/cache/fedora-32.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.nbde_client : Create temporary directory to hold key files] *** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:17 skipping: [/cache/fedora-32.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.nbde_client : Ensure we transfer key files] *********** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:25 TASK [linux-system-roles.nbde_client : Perform clevis operations] ************** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:37 skipping: [/cache/fedora-32.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.nbde_client : Remove temporary directory used to hold key files] *** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:47 skipping: [/cache/fedora-32.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/fedora-32.qcow2 : ok=5 changed=1 unreachable=0 failed=0 skipped=6 rescued=0 ignored=0 + cd /tmp/tmpagnzt5h5/tests; TEST_SUBJECTS=/cache/fedora-32.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_nbde_client-50-792f563-fedora-32-dxfcttx2/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmpagnzt5h5/_setup.yml /tmp/tmpagnzt5h5/tests/tests_default_vars.yml ansible-playbook 2.9.21 config file = /etc/ansible/ansible.cfg configured module search path = ['/home/tester/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.8/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 3.8.10 (default, May 4 2021, 00:00:00) [GCC 10.2.1 20201125 (Red Hat 10.2.1-9)] Using /etc/ansible/ansible.cfg as config file Skipping callback 'actionable', as we already have a stdout callback. Skipping callback 'counter_enabled', as we already have a stdout callback. Skipping callback 'debug', as we already have a stdout callback. Skipping callback 'dense', as we already have a stdout callback. Skipping callback 'dense', as we already have a stdout callback. Skipping callback 'full_skip', as we already have a stdout callback. Skipping callback 'json', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'null', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. Skipping callback 'selective', as we already have a stdout callback. Skipping callback 'skippy', as we already have a stdout callback. Skipping callback 'stderr', as we already have a stdout callback. Skipping callback 'unixy', as we already have a stdout callback. Skipping callback 'yaml', as we already have a stdout callback. PLAYBOOK: _setup.yml *********************************************************** 1 plays in /tmp/tmpagnzt5h5/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmpagnzt5h5/_setup.yml:5 ok: [/cache/fedora-32.qcow2] => { "groups": { "all": [ "/cache/fedora-32.qcow2" ], "localhost": [ "/cache/fedora-32.qcow2" ], "subjects": [ "/cache/fedora-32.qcow2" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmpagnzt5h5/_setup.yml:7 skipping: [/cache/fedora-32.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/fedora-32.qcow2 : ok=1 changed=0 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 PLAYBOOK: tests_default_vars.yml *********************************************** 1 plays in /tmp/tmpagnzt5h5/tests/tests_default_vars.yml PLAY [Ensure that the role declares all parameters in defaults] **************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpagnzt5h5/tests/tests_default_vars.yml:2 ok: [/cache/fedora-32.qcow2] META: ran handlers TASK [linux-system-roles.nbde_client : Set version specific variables] ********* task path: /tmp/tmpagnzt5h5/tasks/main.yml:4 ok: [/cache/fedora-32.qcow2] => {"ansible_facts": {"__nbde_client_initramfs_update_cmd": "dracut -f", "__nbde_client_packages": ["clevis", "clevis-dracut", "clevis-luks", "clevis-systemd"]}, "ansible_included_var_files": ["/tmp/tmpagnzt5h5/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.nbde_client : Include the appropriate provider tasks] *** task path: /tmp/tmpagnzt5h5/tasks/main.yml:17 included: /tmp/tmpagnzt5h5/tasks/main-clevis.yml for /cache/fedora-32.qcow2 TASK [linux-system-roles.nbde_client : Ensure required packages are installed] *** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:2 changed: [/cache/fedora-32.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: libjose-11-1.fc32.x86_64", "Installed: tpm2-tools-4.1.3-1.fc32.x86_64", "Installed: tpm2-tss-2.4.4-1.fc32.x86_64", "Installed: clevis-18-1.fc32.x86_64", "Installed: clevis-dracut-18-1.fc32.x86_64", "Installed: clevis-luks-18-1.fc32.x86_64", "Installed: clevis-systemd-18-1.fc32.x86_64", "Installed: dracut-network-050-61.git20200529.fc32.x86_64", "Installed: jose-11-1.fc32.x86_64", "Installed: libluksmeta-9-8.fc32.x86_64", "Installed: jq-1.6-4.fc32.x86_64", "Installed: luksmeta-9-8.fc32.x86_64", "Installed: cryptsetup-2.3.5-2.fc32.x86_64", "Installed: oniguruma-6.9.5-4.rev1.fc32.x86_64"]} TASK [linux-system-roles.nbde_client : Check whether devices are at the desired state] *** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:7 skipping: [/cache/fedora-32.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.nbde_client : Create temporary directory to hold key files] *** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:17 skipping: [/cache/fedora-32.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.nbde_client : Ensure we transfer key files] *********** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:25 TASK [linux-system-roles.nbde_client : Perform clevis operations] ************** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:37 skipping: [/cache/fedora-32.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.nbde_client : Remove temporary directory used to hold key files] *** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:47 skipping: [/cache/fedora-32.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Assert that the role declares all parameters in defaults] **************** task path: /tmp/tmpagnzt5h5/tests/tests_default_vars.yml:9 ok: [/cache/fedora-32.qcow2] => (item=nbde_client_provider) => { "ansible_loop_var": "item", "changed": false, "item": "nbde_client_provider", "msg": "All assertions passed" } ok: [/cache/fedora-32.qcow2] => (item=nbde_client_bindings) => { "ansible_loop_var": "item", "changed": false, "item": "nbde_client_bindings", "msg": "All assertions passed" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/fedora-32.qcow2 : ok=6 changed=1 unreachable=0 failed=0 skipped=6 rescued=0 ignored=0 + cd /tmp/tmpagnzt5h5/tests; TEST_SUBJECTS=/cache/fedora-32.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_nbde_client-50-792f563-fedora-32-dxfcttx2/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmpagnzt5h5/_setup.yml /tmp/tmpagnzt5h5/tests/tests_include_vars_from_parent.yml ansible-playbook 2.9.21 config file = /etc/ansible/ansible.cfg configured module search path = ['/home/tester/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.8/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 3.8.10 (default, May 4 2021, 00:00:00) [GCC 10.2.1 20201125 (Red Hat 10.2.1-9)] Using /etc/ansible/ansible.cfg as config file Skipping callback 'actionable', as we already have a stdout callback. Skipping callback 'counter_enabled', as we already have a stdout callback. Skipping callback 'debug', as we already have a stdout callback. Skipping callback 'dense', as we already have a stdout callback. Skipping callback 'dense', as we already have a stdout callback. Skipping callback 'full_skip', as we already have a stdout callback. Skipping callback 'json', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'null', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. Skipping callback 'selective', as we already have a stdout callback. Skipping callback 'skippy', as we already have a stdout callback. Skipping callback 'stderr', as we already have a stdout callback. Skipping callback 'unixy', as we already have a stdout callback. Skipping callback 'yaml', as we already have a stdout callback. PLAYBOOK: _setup.yml *********************************************************** 1 plays in /tmp/tmpagnzt5h5/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmpagnzt5h5/_setup.yml:5 ok: [/cache/fedora-32.qcow2] => { "groups": { "all": [ "/cache/fedora-32.qcow2" ], "localhost": [ "/cache/fedora-32.qcow2" ], "subjects": [ "/cache/fedora-32.qcow2" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmpagnzt5h5/_setup.yml:7 skipping: [/cache/fedora-32.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/fedora-32.qcow2 : ok=1 changed=0 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 PLAYBOOK: tests_include_vars_from_parent.yml *********************************** 1 plays in /tmp/tmpagnzt5h5/tests/tests_include_vars_from_parent.yml PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpagnzt5h5/tests/tests_include_vars_from_parent.yml:1 ok: [/cache/fedora-32.qcow2] META: ran handlers TASK [create var file in caller that can override the one in called role] ****** task path: /tmp/tmpagnzt5h5/tests/tests_include_vars_from_parent.yml:3 changed: [/cache/fedora-32.qcow2] => (item=Fedora-32) => {"ansible_loop_var": "item", "changed": true, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "dest": "/tmp/tmpagnzt5h5/tests/roles/caller/vars/Fedora-32.yml", "gid": 0, "group": "root", "item": "Fedora-32", "md5sum": "5a57da448a1d752b982858b38aab344d", "mode": "0600", "owner": "root", "size": 23, "src": "/root/.ansible/tmp/ansible-tmp-1623168715.390665-206708-144399165310699/source", "state": "file", "uid": 0} changed: [/cache/fedora-32.qcow2] => (item=Fedora_32) => {"ansible_loop_var": "item", "changed": true, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "dest": "/tmp/tmpagnzt5h5/tests/roles/caller/vars/Fedora_32.yml", "gid": 0, "group": "root", "item": "Fedora_32", "md5sum": "5a57da448a1d752b982858b38aab344d", "mode": "0600", "owner": "root", "size": 23, "src": "/root/.ansible/tmp/ansible-tmp-1623168715.9293354-206708-219113127788199/source", "state": "file", "uid": 0} changed: [/cache/fedora-32.qcow2] => (item=Fedora) => {"ansible_loop_var": "item", "changed": true, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "dest": "/tmp/tmpagnzt5h5/tests/roles/caller/vars/Fedora.yml", "gid": 0, "group": "root", "item": "Fedora", "md5sum": "5a57da448a1d752b982858b38aab344d", "mode": "0600", "owner": "root", "size": 23, "src": "/root/.ansible/tmp/ansible-tmp-1623168716.2710385-206708-187108860018921/source", "state": "file", "uid": 0} changed: [/cache/fedora-32.qcow2] => (item=RedHat) => {"ansible_loop_var": "item", "changed": true, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "dest": "/tmp/tmpagnzt5h5/tests/roles/caller/vars/RedHat.yml", "gid": 0, "group": "root", "item": "RedHat", "md5sum": "5a57da448a1d752b982858b38aab344d", "mode": "0600", "owner": "root", "size": 23, "src": "/root/.ansible/tmp/ansible-tmp-1623168716.6072826-206708-76341232928459/source", "state": "file", "uid": 0} TASK [include_role : {{ roletoinclude }}] ************************************** task path: /tmp/tmpagnzt5h5/tests/roles/caller/tasks/main.yml:4 TASK [linux-system-roles.nbde_client : Set version specific variables] ********* task path: /tmp/tmpagnzt5h5/tasks/main.yml:4 ok: [/cache/fedora-32.qcow2] => {"ansible_facts": {"__nbde_client_initramfs_update_cmd": "dracut -f", "__nbde_client_packages": ["clevis", "clevis-dracut", "clevis-luks", "clevis-systemd"]}, "ansible_included_var_files": ["/tmp/tmpagnzt5h5/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.nbde_client : Include the appropriate provider tasks] *** task path: /tmp/tmpagnzt5h5/tasks/main.yml:17 included: /tmp/tmpagnzt5h5/tasks/main-clevis.yml for /cache/fedora-32.qcow2 TASK [linux-system-roles.nbde_client : Ensure required packages are installed] *** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:2 changed: [/cache/fedora-32.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: libjose-11-1.fc32.x86_64", "Installed: tpm2-tools-4.1.3-1.fc32.x86_64", "Installed: tpm2-tss-2.4.4-1.fc32.x86_64", "Installed: clevis-18-1.fc32.x86_64", "Installed: clevis-dracut-18-1.fc32.x86_64", "Installed: clevis-luks-18-1.fc32.x86_64", "Installed: clevis-systemd-18-1.fc32.x86_64", "Installed: dracut-network-050-61.git20200529.fc32.x86_64", "Installed: jose-11-1.fc32.x86_64", "Installed: libluksmeta-9-8.fc32.x86_64", "Installed: jq-1.6-4.fc32.x86_64", "Installed: luksmeta-9-8.fc32.x86_64", "Installed: cryptsetup-2.3.5-2.fc32.x86_64", "Installed: oniguruma-6.9.5-4.rev1.fc32.x86_64"]} TASK [linux-system-roles.nbde_client : Check whether devices are at the desired state] *** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:7 skipping: [/cache/fedora-32.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.nbde_client : Create temporary directory to hold key files] *** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:17 skipping: [/cache/fedora-32.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.nbde_client : Ensure we transfer key files] *********** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:25 TASK [linux-system-roles.nbde_client : Perform clevis operations] ************** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:37 skipping: [/cache/fedora-32.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.nbde_client : Remove temporary directory used to hold key files] *** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:47 skipping: [/cache/fedora-32.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [caller : assert] ********************************************************* task path: /tmp/tmpagnzt5h5/tests/roles/caller/tasks/main.yml:7 ok: [/cache/fedora-32.qcow2] => { "changed": false, "msg": "All assertions passed" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/fedora-32.qcow2 : ok=7 changed=2 unreachable=0 failed=0 skipped=6 rescued=0 ignored=0 + cd /tmp/tmpagnzt5h5/tests; TEST_SUBJECTS=/cache/fedora-32.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_nbde_client-50-792f563-fedora-32-dxfcttx2/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmpagnzt5h5/_setup.yml /tmp/tmpagnzt5h5/tests/tests_key_rotation.yml ansible-playbook 2.9.21 config file = /etc/ansible/ansible.cfg configured module search path = ['/home/tester/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.8/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 3.8.10 (default, May 4 2021, 00:00:00) [GCC 10.2.1 20201125 (Red Hat 10.2.1-9)] Using /etc/ansible/ansible.cfg as config file Skipping callback 'actionable', as we already have a stdout callback. Skipping callback 'counter_enabled', as we already have a stdout callback. Skipping callback 'debug', as we already have a stdout callback. Skipping callback 'dense', as we already have a stdout callback. Skipping callback 'dense', as we already have a stdout callback. Skipping callback 'full_skip', as we already have a stdout callback. Skipping callback 'json', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'null', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. Skipping callback 'selective', as we already have a stdout callback. Skipping callback 'skippy', as we already have a stdout callback. Skipping callback 'stderr', as we already have a stdout callback. Skipping callback 'unixy', as we already have a stdout callback. Skipping callback 'yaml', as we already have a stdout callback. PLAYBOOK: _setup.yml *********************************************************** 1 plays in /tmp/tmpagnzt5h5/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmpagnzt5h5/_setup.yml:5 ok: [/cache/fedora-32.qcow2] => { "groups": { "all": [ "/cache/fedora-32.qcow2" ], "localhost": [ "/cache/fedora-32.qcow2" ], "subjects": [ "/cache/fedora-32.qcow2" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmpagnzt5h5/_setup.yml:7 skipping: [/cache/fedora-32.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/fedora-32.qcow2 : ok=1 changed=0 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 PLAYBOOK: tests_key_rotation.yml *********************************************** 1 plays in /tmp/tmpagnzt5h5/tests/tests_key_rotation.yml PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpagnzt5h5/tests/tests_key_rotation.yml:2 ok: [/cache/fedora-32.qcow2] META: ran handlers TASK [Set up test environment] ************************************************* task path: /tmp/tmpagnzt5h5/tests/tests_key_rotation.yml:12 included: /tmp/tmpagnzt5h5/tests/tasks/setup_test.yml for /cache/fedora-32.qcow2 TASK [Include general tests variables] ***************************************** task path: /tmp/tmpagnzt5h5/tests/tasks/setup_test.yml:2 ok: [/cache/fedora-32.qcow2] => {"ansible_facts": {"nbde_client_test_device": "/tmp/.nbde_client_dev_test", "nbde_client_test_encryption_key_src": "/tmp/.nbde_client_dev_encryption_key", "nbde_client_test_pass": "test-password-here", "nbde_client_test_roles_dir": "/tmp/.nbde_client_dev_roles"}, "ansible_included_var_files": ["/tmp/tmpagnzt5h5/tests/vars/main.yml"], "changed": false} TASK [Set version specific variables] ****************************************** task path: /tmp/tmpagnzt5h5/tests/tasks/setup_test.yml:5 ok: [/cache/fedora-32.qcow2] => {"ansible_facts": {"nbde_client_test_packages": ["cryptsetup"]}, "ansible_included_var_files": ["/tmp/tmpagnzt5h5/tests/vars/Fedora.yml"], "changed": false} TASK [Print all available facts] *********************************************** task path: /tmp/tmpagnzt5h5/tests/tasks/setup_test.yml:20 ok: [/cache/fedora-32.qcow2] => { "ansible_facts": { "all_ipv4_addresses": [ "10.0.2.15" ], "all_ipv6_addresses": [ "fec0::5054:ff:fe12:3456", "fe80::5054:ff:fe12:3456" ], "ansible_local": {}, "apparmor": { "status": "disabled" }, "architecture": "x86_64", "bios_date": "04/01/2014", "bios_version": "1.13.0-2.fc32", "cmdline": { "BOOT_IMAGE": "(hd0,msdos1)/boot/vmlinuz-5.11.22-100.fc32.x86_64", "console": "ttyS0,115200n8", "net.ifnames": "0", "no_timer_check": true, "ro": true, "root": "UUID=450c38b7-9e89-4257-8d2f-915e2c3ab50d" }, "date_time": { "date": "2021-06-08", "day": "08", "epoch": "1623168774", "hour": "16", "iso8601": "2021-06-08T16:12:54Z", "iso8601_basic": "20210608T161254827735", "iso8601_basic_short": "20210608T161254", "iso8601_micro": "2021-06-08T16:12:54.827735Z", "minute": "12", "month": "06", "second": "54", "time": "16:12:54", "tz": "UTC", "tz_offset": "+0000", "weekday": "Tuesday", "weekday_number": "2", "weeknumber": "23", "year": "2021" }, "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" }, "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" }, "device_links": { "ids": { "sr0": [ "ata-QEMU_DVD-ROM_QM00003" ] }, "labels": { "sr0": [ "cidata" ] }, "masters": {}, "uuids": { "sr0": [ "2021-06-08-16-12-41-00" ], "vda1": [ "450c38b7-9e89-4257-8d2f-915e2c3ab50d" ] } }, "devices": { "sr0": { "holders": [], "host": "", "links": { "ids": [ "ata-QEMU_DVD-ROM_QM00003" ], "labels": [ "cidata" ], "masters": [], "uuids": [ "2021-06-08-16-12-41-00" ] }, "model": "QEMU DVD-ROM", "partitions": {}, "removable": "1", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "bfq", "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": [ "450c38b7-9e89-4257-8d2f-915e2c3ab50d" ] }, "sectors": "8386560", "sectorsize": 512, "size": "4.00 GB", "start": "2048", "uuid": "450c38b7-9e89-4257-8d2f-915e2c3ab50d" } }, "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": "512", "vendor": "0x1af4", "virtual": 1 } }, "distribution": "Fedora", "distribution_file_parsed": true, "distribution_file_path": "/etc/redhat-release", "distribution_file_variety": "RedHat", "distribution_major_version": "32", "distribution_release": "", "distribution_version": "32", "dns": { "nameservers": [ "10.0.2.3" ], "search": [ "virt.pnr.lab.eng.rdu2.redhat.com" ] }, "domain": "virt.pnr.lab.eng.rdu2.redhat.com", "effective_group_id": 0, "effective_user_id": 0, "env": { "DBUS_SESSION_BUS_ADDRESS": "unix:path=/run/user/0/bus", "HOME": "/root", "LANG": "en_US.UTF-8", "LC_CTYPE": "C.UTF-8", "LESSOPEN": "||/usr/bin/lesspipe.sh %s", "LOGNAME": "root", "LS_COLORS": "", "MOTD_SHOWN": "pam", "PATH": "/root/.local/bin:/root/bin:/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 45962 22", "SSH_CONNECTION": "10.0.2.2 45962 10.0.2.15 22", "SSH_TTY": "/dev/pts/0", "USER": "root", "XDG_RUNTIME_DIR": "/run/user/0", "XDG_SESSION_CLASS": "user", "XDG_SESSION_ID": "1", "XDG_SESSION_TYPE": "tty", "_": "/usr/bin/python3" }, "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" }, "fibre_channel_wwn": [], "fips": false, "form_factor": "Other", "fqdn": "ibm-p8-kvm-03-guest-02.virt.pnr.lab.eng.rdu2.redhat.com", "gather_subset": [ "all" ], "hostname": "ibm-p8-kvm-03-guest-02", "hostnqn": "", "interfaces": [ "eth0", "lo" ], "is_chroot": false, "iscsi_iqn": "", "kernel": "5.11.22-100.fc32.x86_64", "kernel_version": "#1 SMP Wed May 19 18:58:25 UTC 2021", "lo": { "active": true, "device": "lo", "ipv4": { "address": "127.0.0.1", "broadcast": "", "netmask": "255.0.0.0", "network": "127.0.0.0" }, "ipv6": [ { "address": "::1", "prefix": "128", "scope": "host" } ], "mtu": 65536, "promisc": false, "type": "loopback" }, "lsb": {}, "machine": "x86_64", "machine_id": "9106731724674ea4a4472059b66a41eb", "memfree_mb": 1692, "memory_mb": { "nocache": { "free": 1850, "used": 126 }, "real": { "free": 1692, "total": 1976, "used": 284 }, "swap": { "cached": 0, "free": 0, "total": 0, "used": 0 } }, "memtotal_mb": 1976, "module_setup": true, "mounts": [ { "block_available": 775844, "block_size": 4096, "block_total": 1015472, "block_used": 239628, "device": "/dev/vda1", "fstype": "ext4", "inode_available": 235263, "inode_total": 262144, "inode_used": 26881, "mount": "/", "options": "rw,seclabel,relatime", "size_available": 3177857024, "size_total": 4159373312, "uuid": "450c38b7-9e89-4257-8d2f-915e2c3ab50d" } ], "nodename": "ibm-p8-kvm-03-guest-02.virt.pnr.lab.eng.rdu2.redhat.com", "os_family": "RedHat", "pkg_mgr": "dnf", "proc_cmdline": { "BOOT_IMAGE": "(hd0,msdos1)/boot/vmlinuz-5.11.22-100.fc32.x86_64", "console": [ "tty1", "ttyS0,115200n8" ], "net.ifnames": "0", "no_timer_check": true, "ro": true, "root": "UUID=450c38b7-9e89-4257-8d2f-915e2c3ab50d" }, "processor": [ "0", "GenuineIntel", "Intel(R) Xeon(R) Platinum 8168 CPU @ 2.70GHz", "1", "GenuineIntel", "Intel(R) Xeon(R) Platinum 8168 CPU @ 2.70GHz", "2", "GenuineIntel", "Intel(R) Xeon(R) Platinum 8168 CPU @ 2.70GHz", "3", "GenuineIntel", "Intel(R) Xeon(R) Platinum 8168 CPU @ 2.70GHz" ], "processor_cores": 1, "processor_count": 4, "processor_threads_per_core": 1, "processor_vcpus": 4, "product_name": "Standard PC (i440FX + PIIX, 1996)", "product_serial": "NA", "product_uuid": "NA", "product_version": "pc-i440fx-4.2", "python": { "executable": "/usr/bin/python3", "has_sslcontext": true, "type": "cpython", "version": { "major": 3, "micro": 10, "minor": 8, "releaselevel": "final", "serial": 0 }, "version_info": [ 3, 8, 10, "final", 0 ] }, "python_version": "3.8.10", "real_group_id": 0, "real_user_id": 0, "selinux": { "config_mode": "enforcing", "mode": "enforcing", "policyvers": 33, "status": "enabled", "type": "targeted" }, "selinux_python_present": true, "service_mgr": "systemd", "ssh_host_key_dsa_public": "AAAAB3NzaC1kc3MAAACBAKHYCa0R4HD0vGq8ZJ50C1I7PD6pJzeDhAw3jaQBm6eXyJU48dJsYq/8+ew1UqRd7pKUpmKYFeUlcAgD0bIn0KHWULkx0xHZ2Aemuz3JlNUZ18DekR0zu219B+VbK5+dio4KT9m7reiJv0q3EX43QtJ2pP9GxGuap4Odg9B3xaBbAAAAFQCEIXE77AodFAkuH53UbdQUedc+9QAAAIAxmBQamfkQNBFfLHpGbKssetj38EBmmkVtvrImEckMSKrp66hJoj8vHswjgkHeWEqLunHBZVmsriJKmgSaM4aYV7FaVJEOoKMy4Vjh3x5IxVf7GHrntdBapXG9sPYWpykb+c0eRGkRjbSi6BGbkzN4BSg6m8UO7AxspimEIErVzgAAAIBvZxIZg3tiCDRdinTVQQ2FmSLkQPH1xNY6oGx+UlTneVahx9bz8ErIxAszCwPQphaHkMq/Uo/J/biCmXecm4DkvnCjvFwnYW0WCcuZJytUmsXNYoU0cSgDve78lk0PTcRB3syKZJolZQD2bkHFD+MNdSp49EkENx8WxUPsJFVqVQ==", "ssh_host_key_ecdsa_public": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEO05pRFfL8xz97LbQONvNiwOSha8zjJeOvGQHYaF3jb+iLJToAHC9w0dJiX0HESIv0kyG3W2pQs1BG0Sm7MksM=", "ssh_host_key_ed25519_public": "AAAAC3NzaC1lZDI1NTE5AAAAIHPvZF1viLgd6R68Lx+6xGWS6tnWpWdImYfKbYHa5N23", "ssh_host_key_rsa_public": "AAAAB3NzaC1yc2EAAAADAQABAAABgQDhfMWHm6fzymCVZF+8y5U89NnOKeAT8lugu7LUqOafeEkOB3Q64RgaEJtCnggelNfTKoFHBlbvg5hA6IU3/G6pIBBlYlx8EKDG4NsYbKVOgmBh+rsewsf+/76BKOx41cbqMXHT/T1FvyTBxtTBkOjjXEHmZAAxzs3S9dP1Rc8NerN1vFADK2ITvEFSyj2yKNYPpHb9tuqm1M1Dxg7NXrKNcVO1CwWPxAiEr6km0zcIt6nEipLC8KWGUG7WH3GbkW3m8umOkbLF9iG7bUDOLtkWBv10kQwO/9huhlV3HtGQujV0abiBgqEcyC/bwukmEcwJo+XeGFUYqWcspTU1pHxK9KCOpe9XMPDh9o5hjFd6QrByM9htasvicGJyRbh49o/qIeDXumpAOVTLXyVuqspd6GbDSmwNtA4emtgSD93Mg0Tmjv3rbFQ6K/uEXYVs7ZdqrdGEbnc5NfzdIzEb0xv8WddkEVyLa9PZV9p+QZosluyZ0Q2Kgj+xXIDIS7t14xE=", "swapfree_mb": 0, "swaptotal_mb": 0, "system": "Linux", "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", "38", "39", "40+ep" ], "system_capabilities_enforced": "True", "system_vendor": "QEMU", "uptime_seconds": 11, "user_dir": "/root", "user_gecos": "root", "user_gid": 0, "user_id": "root", "user_shell": "/bin/bash", "user_uid": 0, "userspace_architecture": "x86_64", "userspace_bits": "64", "virtualization_role": "guest", "virtualization_type": "kvm" } } TASK [Install required packages for nbde_client tests] ************************* task path: /tmp/tmpagnzt5h5/tests/tasks/setup_test.yml:24 changed: [/cache/fedora-32.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: cryptsetup-2.3.5-2.fc32.x86_64"]} TASK [Clone nbde_server role for the tests] ************************************ task path: /tmp/tmpagnzt5h5/tests/tasks/setup_test.yml:28 ok: [/cache/fedora-32.qcow2] => {"after": "c57d0b1f3384c525738fa26ba4bdca485e162567", "before": "c57d0b1f3384c525738fa26ba4bdca485e162567", "changed": false, "remote_url_changed": false} TASK [Deploy NBDE server for testing] ****************************************** task path: /tmp/tmpagnzt5h5/tests/tasks/setup_test.yml:35 TASK [/tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server : Set version specific variables] *** task path: /tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server/tasks/main.yml:6 ok: [/cache/fedora-32.qcow2] => {"ansible_facts": {"__nbde_server_cachedir": "/var/cache/tang", "__nbde_server_group": "tang", "__nbde_server_keydir": "/var/db/tang", "__nbde_server_keygen": "/usr/libexec/tangd-keygen", "__nbde_server_packages": ["tang"], "__nbde_server_services": ["tangd.socket"], "__nbde_server_update": "/usr/libexec/tangd-update", "__nbde_server_user": "tang"}, "ansible_included_var_files": ["/tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server/vars/default.yml"], "changed": false} TASK [/tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server : Include the appropriate provider tasks] *** task path: /tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server/tasks/main.yml:20 included: /tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server/tasks/main-tang.yml for /cache/fedora-32.qcow2 TASK [/tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server : Ensure tang is installed] *** task path: /tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server/tasks/main-tang.yml:2 changed: [/cache/fedora-32.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: tang-10-1.fc32.x86_64", "Installed: libjose-11-1.fc32.x86_64", "Installed: http-parser-2.9.3-2.fc32.x86_64", "Installed: jose-11-1.fc32.x86_64"]} TASK [/tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server : Ensure keys are rotated] *** task path: /tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server/tasks/main-tang.yml:7 skipping: [/cache/fedora-32.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [/tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server : Ensure we have keys] *** task path: /tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server/tasks/main-tang.yml:16 changed: [/cache/fedora-32.qcow2] => {"arguments": {"cachedir": "/var/cache/tang", "force": false, "keydir": "/var/db/tang", "keygen": "/usr/libexec/tangd-keygen", "keys_to_deploy_dir": null, "state": "keys-created", "update": "/usr/libexec/tangd-update"}, "changed": true, "state": "keys-created"} TASK [/tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server : Perform key management (fetch/deploy) tasks] *** task path: /tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server/tasks/main-tang.yml:25 skipping: [/cache/fedora-32.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [/tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server : Ensure required services are enabled and at the right state] *** task path: /tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server/tasks/main-tang.yml:29 changed: [/cache/fedora-32.qcow2] => (item=tangd.socket) => {"ansible_loop_var": "item", "changed": true, "enabled": true, "item": "tangd.socket", "name": "tangd.socket", "state": "started", "status": {"Accept": "yes", "ActiveEnterTimestampMonotonic": "0", "ActiveExitTimestampMonotonic": "0", "ActiveState": "inactive", "After": "sysinit.target system.slice", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "no", "AssertTimestampMonotonic": "0", "Backlog": "4096", "Before": "sockets.target shutdown.target", "BindIPv6Only": "default", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "Broadcast": "no", "CPUAccounting": "yes", "CPUAffinity": "", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "[not set]", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanIsolate": "no", "CanReload": "no", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "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 cap_perfmon cap_bpf cap_checkpoint_restore", "CollectMode": "inactive", "ConditionResult": "no", "ConditionTimestampMonotonic": "0", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target", "ControlPID": "0", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "DeferAcceptUSec": "0", "Delegate": "no", "Description": "Tang Server socket", "DevicePolicy": "auto", "DirectoryMode": "0755", "DynamicUser": "no", "EffectiveCPUs": "", "EffectiveMemoryNodes": "", "FailureAction": "none", "FileDescriptorName": "tangd.socket", "FinalKillSignal": "9", "FragmentPath": "/usr/lib/systemd/system/tangd.socket", "FreeBind": "no", "GID": "[not set]", "IOAccounting": "no", "IOReadBytes": "18446744073709551615", "IOReadOperations": "18446744073709551615", "IOSchedulingClass": "0", "IOSchedulingPriority": "0", "IOWeight": "[not set]", "IOWriteBytes": "18446744073709551615", "IOWriteOperations": "18446744073709551615", "IPAccounting": "no", "IPEgressBytes": "[no data]", "IPEgressPackets": "[no data]", "IPIngressBytes": "[no data]", "IPIngressPackets": "[no data]", "IPTOS": "-1", "IPTTL": "-1", "Id": "tangd.socket", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestampMonotonic": "0", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeepAlive": "no", "KeepAliveIntervalUSec": "0", "KeepAliveProbes": "0", "KeepAliveTimeUSec": "0", "KeyringMode": "shared", "KillMode": "control-group", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "infinity", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "65536", "LimitMEMLOCKSoft": "65536", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "524288", "LimitNOFILESoft": "1024", "LimitNPROC": "7782", "LimitNPROCSoft": "7782", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "7782", "LimitSIGPENDINGSoft": "7782", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "Listen": "[::]:80 (Stream)", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "Mark": "-1", "MaxConnections": "64", "MaxConnectionsPerSource": "0", "MemoryAccounting": "yes", "MemoryCurrent": "[not set]", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MessageQueueMaxMessages": "0", "MessageQueueMessageSize": "0", "MountAPIVFS": "no", "MountFlags": "", "NAccepted": "0", "NConnections": "0", "NRefused": "0", "NUMAMask": "", "NUMAPolicy": "n/a", "Names": "tangd.socket", "NeedDaemonReload": "no", "Nice": "0", "NoDelay": "no", "NoNewPrivileges": "no", "NonBlocking": "no", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PassCredentials": "no", "PassSecurity": "no", "Perpetual": "no", "PipeSize": "0", "Priority": "-1", "PrivateDevices": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProtectClock": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectHostname": "no", "ProtectKernelLogs": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectSystem": "no", "ReceiveBuffer": "0", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemoveIPC": "no", "RemoveOnStop": "no", "Requires": "sysinit.target system.slice", "RestartKillSignal": "15", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "ReusePort": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "SameProcessGroup": "no", "SecureBits": "0", "SendBuffer": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "SocketMode": "0666", "SocketProtocol": "0", "StandardError": "inherit", "StandardInput": "null", "StandardInputData": "", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestampMonotonic": "0", "StateDirectoryMode": "0755", "StopWhenUnneeded": "no", "SubState": "dead", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "[not set]", "TasksMax": "2334", "TimeoutCleanUSec": "infinity", "TimeoutUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Transparent": "no", "TriggerLimitBurst": "200", "TriggerLimitIntervalUSec": "2s", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "disabled", "UnitFileState": "disabled", "UtmpMode": "init", "WatchdogSignal": "6", "Writable": "no"}} TASK [Create device for testing] *********************************************** task path: /tmp/tmpagnzt5h5/tests/tasks/setup_test.yml:39 ok: [/cache/fedora-32.qcow2] => {"changed": false, "cmd": ["fallocate", "-l64m", "/tmp/.nbde_client_dev_test"], "delta": "0:00:00.006514", "end": "2021-06-08 16:13:51.604715", "rc": 0, "start": "2021-06-08 16:13:51.598201", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Format test device as LUKS] ********************************************** task path: /tmp/tmpagnzt5h5/tests/tasks/setup_test.yml:43 ok: [/cache/fedora-32.qcow2] => {"changed": false, "cmd": "set -euo pipefail; echo -n test-password-here | cryptsetup luksFormat --pbkdf pbkdf2 --pbkdf-force-iterations 1000 --batch-mode --force-password /tmp/.nbde_client_dev_test", "delta": "0:00:00.147534", "end": "2021-06-08 16:13:52.114813", "rc": 0, "start": "2021-06-08 16:13:51.967279", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Create key file for test device] ***************************************** task path: /tmp/tmpagnzt5h5/tests/tasks/setup_test.yml:51 ok: [/cache/fedora-32.qcow2] => {"changed": false, "cmd": "echo -n test-password-here > /tmp/.nbde_client_dev_encryption_key\n", "delta": "0:00:00.004008", "end": "2021-06-08 16:13:53.195455", "rc": 0, "start": "2021-06-08 16:13:53.191447", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Use nbde_client role] **************************************************** task path: /tmp/tmpagnzt5h5/tests/tests_key_rotation.yml:17 TASK [linux-system-roles.nbde_client : Set version specific variables] ********* task path: /tmp/tmpagnzt5h5/tasks/main.yml:4 ok: [/cache/fedora-32.qcow2] => {"ansible_facts": {"__nbde_client_initramfs_update_cmd": "dracut -f", "__nbde_client_packages": ["clevis", "clevis-dracut", "clevis-luks", "clevis-systemd"]}, "ansible_included_var_files": ["/tmp/tmpagnzt5h5/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.nbde_client : Include the appropriate provider tasks] *** task path: /tmp/tmpagnzt5h5/tasks/main.yml:17 included: /tmp/tmpagnzt5h5/tasks/main-clevis.yml for /cache/fedora-32.qcow2 TASK [linux-system-roles.nbde_client : Ensure required packages are installed] *** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:2 changed: [/cache/fedora-32.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: oniguruma-6.9.5-4.rev1.fc32.x86_64", "Installed: tpm2-tools-4.1.3-1.fc32.x86_64", "Installed: tpm2-tss-2.4.4-1.fc32.x86_64", "Installed: clevis-18-1.fc32.x86_64", "Installed: clevis-dracut-18-1.fc32.x86_64", "Installed: clevis-luks-18-1.fc32.x86_64", "Installed: clevis-systemd-18-1.fc32.x86_64", "Installed: dracut-network-050-61.git20200529.fc32.x86_64", "Installed: libluksmeta-9-8.fc32.x86_64", "Installed: jq-1.6-4.fc32.x86_64", "Installed: luksmeta-9-8.fc32.x86_64"]} TASK [linux-system-roles.nbde_client : Check whether devices are at the desired state] *** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:7 changed: [/cache/fedora-32.qcow2] => {"changed": true, "original_bindings": [{"device": "/tmp/.nbde_client_dev_test", "encryption_password": "test-password-here", "password_temporary": false, "servers": ["http://localhost"], "slot": 1, "state": "present", "threshold": 1}]} TASK [linux-system-roles.nbde_client : Create temporary directory to hold key files] *** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:17 changed: [/cache/fedora-32.qcow2] => {"changed": true, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/tmp/ansible.0nv0zd92nbde_client_encryption_keys", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 4096, "state": "directory", "uid": 0} TASK [linux-system-roles.nbde_client : Ensure we transfer key files] *********** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:25 skipping: [/cache/fedora-32.qcow2] => (item=) => {"ansible_loop_var": "item", "changed": false, "item": {"device": "/tmp/.nbde_client_dev_test", "encryption_password": "test-password-here", "servers": ["http://localhost"]}, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.nbde_client : Perform clevis operations] ************** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:37 NOTIFIED HANDLER linux-system-roles.nbde_client : nbde_client update initramfs for /cache/fedora-32.qcow2 changed: [/cache/fedora-32.qcow2] => {"changed": true, "original_bindings": [{"device": "/tmp/.nbde_client_dev_test", "encryption_password": "test-password-here", "password_temporary": false, "servers": ["http://localhost"], "slot": 1, "state": "present", "threshold": 1}]} TASK [linux-system-roles.nbde_client : Remove temporary directory used to hold key files] *** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:47 changed: [/cache/fedora-32.qcow2] => {"changed": true, "path": "/tmp/ansible.0nv0zd92nbde_client_encryption_keys", "state": "absent"} TASK [Attempt to unlock device] ************************************************ task path: /tmp/tmpagnzt5h5/tests/tests_key_rotation.yml:21 included: /tmp/tmpagnzt5h5/tests/tasks/verify_unlock_device.yml for /cache/fedora-32.qcow2 TASK [Verify we can unlock the device] ***************************************** task path: /tmp/tmpagnzt5h5/tests/tasks/verify_unlock_device.yml:2 ok: [/cache/fedora-32.qcow2] => {"changed": false, "cmd": ["clevis", "luks", "unlock", "-d", "/tmp/.nbde_client_dev_test", "-n", "nbde_client_unlocked"], "delta": "0:00:03.504672", "end": "2021-06-08 16:14:13.694101", "rc": 0, "start": "2021-06-08 16:14:10.189429", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Close unlocked device] *************************************************** task path: /tmp/tmpagnzt5h5/tests/tasks/verify_unlock_device.yml:10 ok: [/cache/fedora-32.qcow2] => {"changed": false, "cmd": ["cryptsetup", "close", "nbde_client_unlocked"], "delta": "0:00:00.025250", "end": "2021-06-08 16:14:14.077329", "rc": 0, "start": "2021-06-08 16:14:14.052079", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Make sure the attempt to unlock succeeded] ******************************* task path: /tmp/tmpagnzt5h5/tests/tests_key_rotation.yml:24 ok: [/cache/fedora-32.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Assert idempotency] ****************************************************** task path: /tmp/tmpagnzt5h5/tests/tests_key_rotation.yml:30 included: /tmp/tmpagnzt5h5/tests/tasks/verify_idempotency.yml for /cache/fedora-32.qcow2 TASK [Use nbde_client role - idempotency check] ******************************** task path: /tmp/tmpagnzt5h5/tests/tasks/verify_idempotency.yml:2 TASK [linux-system-roles.nbde_client : Set version specific variables] ********* task path: /tmp/tmpagnzt5h5/tasks/main.yml:4 ok: [/cache/fedora-32.qcow2] => {"ansible_facts": {"__nbde_client_initramfs_update_cmd": "dracut -f", "__nbde_client_packages": ["clevis", "clevis-dracut", "clevis-luks", "clevis-systemd"]}, "ansible_included_var_files": ["/tmp/tmpagnzt5h5/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.nbde_client : Include the appropriate provider tasks] *** task path: /tmp/tmpagnzt5h5/tasks/main.yml:17 included: /tmp/tmpagnzt5h5/tasks/main-clevis.yml for /cache/fedora-32.qcow2 TASK [linux-system-roles.nbde_client : Ensure required packages are installed] *** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:2 ok: [/cache/fedora-32.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [linux-system-roles.nbde_client : Check whether devices are at the desired state] *** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:7 ok: [/cache/fedora-32.qcow2] => {"changed": false, "original_bindings": [{"device": "/tmp/.nbde_client_dev_test", "encryption_password": "test-password-here", "password_temporary": false, "servers": ["http://localhost"], "slot": 1, "state": "present", "threshold": 1}]} TASK [linux-system-roles.nbde_client : Create temporary directory to hold key files] *** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:17 skipping: [/cache/fedora-32.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.nbde_client : Ensure we transfer key files] *********** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:25 skipping: [/cache/fedora-32.qcow2] => (item=) => {"ansible_loop_var": "item", "changed": false, "item": {"device": "/tmp/.nbde_client_dev_test", "encryption_password": "test-password-here", "servers": ["http://localhost"]}, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.nbde_client : Perform clevis operations] ************** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:37 skipping: [/cache/fedora-32.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.nbde_client : Remove temporary directory used to hold key files] *** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:47 skipping: [/cache/fedora-32.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify idempotency of clevis operations] ********************************* task path: /tmp/tmpagnzt5h5/tests/tasks/verify_idempotency.yml:6 ok: [/cache/fedora-32.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Rotate keys] ************************************************************* task path: /tmp/tmpagnzt5h5/tests/tests_key_rotation.yml:33 included: /tmp/tmpagnzt5h5/tests/tasks/rotate_keys.yml for /cache/fedora-32.qcow2 TASK [Rotate NBDE keys for testing] ******************************************** task path: /tmp/tmpagnzt5h5/tests/tasks/rotate_keys.yml:2 TASK [/tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server : Set version specific variables] *** task path: /tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server/tasks/main.yml:6 ok: [/cache/fedora-32.qcow2] => {"ansible_facts": {"__nbde_server_cachedir": "/var/cache/tang", "__nbde_server_group": "tang", "__nbde_server_keydir": "/var/db/tang", "__nbde_server_keygen": "/usr/libexec/tangd-keygen", "__nbde_server_packages": ["tang"], "__nbde_server_services": ["tangd.socket"], "__nbde_server_update": "/usr/libexec/tangd-update", "__nbde_server_user": "tang"}, "ansible_included_var_files": ["/tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server/vars/default.yml"], "changed": false} TASK [/tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server : Include the appropriate provider tasks] *** task path: /tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server/tasks/main.yml:20 included: /tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server/tasks/main-tang.yml for /cache/fedora-32.qcow2 TASK [/tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server : Ensure tang is installed] *** task path: /tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server/tasks/main-tang.yml:2 ok: [/cache/fedora-32.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [/tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server : Ensure keys are rotated] *** task path: /tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server/tasks/main-tang.yml:7 changed: [/cache/fedora-32.qcow2] => {"arguments": {"cachedir": "/var/cache/tang", "force": false, "keydir": "/var/db/tang", "keygen": "/usr/libexec/tangd-keygen", "keys_to_deploy_dir": null, "state": "keys-rotated", "update": "/usr/libexec/tangd-update"}, "changed": true, "state": "keys-rotated"} TASK [/tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server : Ensure we have keys] *** task path: /tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server/tasks/main-tang.yml:16 skipping: [/cache/fedora-32.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [/tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server : Perform key management (fetch/deploy) tasks] *** task path: /tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server/tasks/main-tang.yml:25 skipping: [/cache/fedora-32.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [/tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server : Ensure required services are enabled and at the right state] *** task path: /tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server/tasks/main-tang.yml:29 ok: [/cache/fedora-32.qcow2] => (item=tangd.socket) => {"ansible_loop_var": "item", "changed": false, "enabled": true, "item": "tangd.socket", "name": "tangd.socket", "state": "started", "status": {"Accept": "yes", "ActiveEnterTimestamp": "Tue 2021-06-08 16:13:51 UTC", "ActiveEnterTimestampMonotonic": "67493828", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "sysinit.target system.slice", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "yes", "AssertTimestamp": "Tue 2021-06-08 16:13:51 UTC", "AssertTimestampMonotonic": "67491283", "Backlog": "4096", "Before": "sockets.target shutdown.target", "BindIPv6Only": "default", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "Broadcast": "no", "CPUAccounting": "yes", "CPUAffinity": "", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "4928000", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanIsolate": "no", "CanReload": "no", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "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 cap_perfmon cap_bpf cap_checkpoint_restore", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Tue 2021-06-08 16:13:51 UTC", "ConditionTimestampMonotonic": "67491283", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target", "ControlGroup": "/system.slice/tangd.socket", "ControlPID": "0", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "DeferAcceptUSec": "0", "Delegate": "no", "Description": "Tang Server socket", "DevicePolicy": "auto", "DirectoryMode": "0755", "DynamicUser": "no", "EffectiveCPUs": "", "EffectiveMemoryNodes": "", "FailureAction": "none", "FileDescriptorName": "tangd.socket", "FinalKillSignal": "9", "FragmentPath": "/usr/lib/systemd/system/tangd.socket", "FreeBind": "no", "GID": "[not set]", "IOAccounting": "no", "IOReadBytes": "18446744073709551615", "IOReadOperations": "18446744073709551615", "IOSchedulingClass": "0", "IOSchedulingPriority": "0", "IOWeight": "[not set]", "IOWriteBytes": "18446744073709551615", "IOWriteOperations": "18446744073709551615", "IPAccounting": "no", "IPEgressBytes": "[no data]", "IPEgressPackets": "[no data]", "IPIngressBytes": "[no data]", "IPIngressPackets": "[no data]", "IPTOS": "-1", "IPTTL": "-1", "Id": "tangd.socket", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestamp": "Tue 2021-06-08 16:13:51 UTC", "InactiveExitTimestampMonotonic": "67493828", "InvocationID": "0458599774c0455ba740ebfdbb2f4811", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeepAlive": "no", "KeepAliveIntervalUSec": "0", "KeepAliveProbes": "0", "KeepAliveTimeUSec": "0", "KeyringMode": "shared", "KillMode": "control-group", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "infinity", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "65536", "LimitMEMLOCKSoft": "65536", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "524288", "LimitNOFILESoft": "1024", "LimitNPROC": "7782", "LimitNPROCSoft": "7782", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "7782", "LimitSIGPENDINGSoft": "7782", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "Listen": "[::]:80 (Stream)", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "Mark": "-1", "MaxConnections": "64", "MaxConnectionsPerSource": "0", "MemoryAccounting": "yes", "MemoryCurrent": "4096", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MessageQueueMaxMessages": "0", "MessageQueueMessageSize": "0", "MountAPIVFS": "no", "MountFlags": "", "NAccepted": "6", "NConnections": "0", "NRefused": "0", "NUMAMask": "", "NUMAPolicy": "n/a", "Names": "tangd.socket", "NeedDaemonReload": "no", "Nice": "0", "NoDelay": "no", "NoNewPrivileges": "no", "NonBlocking": "no", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PassCredentials": "no", "PassSecurity": "no", "Perpetual": "no", "PipeSize": "0", "Priority": "-1", "PrivateDevices": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProtectClock": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectHostname": "no", "ProtectKernelLogs": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectSystem": "no", "ReceiveBuffer": "0", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemoveIPC": "no", "RemoveOnStop": "no", "Requires": "sysinit.target system.slice", "RestartKillSignal": "15", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "ReusePort": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "SameProcessGroup": "no", "SecureBits": "0", "SendBuffer": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "SocketMode": "0666", "SocketProtocol": "0", "StandardError": "inherit", "StandardInput": "null", "StandardInputData": "", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestamp": "Tue 2021-06-08 16:13:51 UTC", "StateChangeTimestampMonotonic": "67493828", "StateDirectoryMode": "0755", "StopWhenUnneeded": "no", "SubState": "listening", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "0", "TasksMax": "2334", "TimeoutCleanUSec": "infinity", "TimeoutUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Transparent": "no", "TriggerLimitBurst": "200", "TriggerLimitIntervalUSec": "2s", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "disabled", "UnitFileState": "enabled", "UtmpMode": "init", "WantedBy": "sockets.target", "WatchdogSignal": "6", "Writable": "no"}} TASK [Use nbde_client role - idempotency check - change expected] ************** task path: /tmp/tmpagnzt5h5/tests/tests_key_rotation.yml:36 TASK [linux-system-roles.nbde_client : Set version specific variables] ********* task path: /tmp/tmpagnzt5h5/tasks/main.yml:4 ok: [/cache/fedora-32.qcow2] => {"ansible_facts": {"__nbde_client_initramfs_update_cmd": "dracut -f", "__nbde_client_packages": ["clevis", "clevis-dracut", "clevis-luks", "clevis-systemd"]}, "ansible_included_var_files": ["/tmp/tmpagnzt5h5/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.nbde_client : Include the appropriate provider tasks] *** task path: /tmp/tmpagnzt5h5/tasks/main.yml:17 included: /tmp/tmpagnzt5h5/tasks/main-clevis.yml for /cache/fedora-32.qcow2 TASK [linux-system-roles.nbde_client : Ensure required packages are installed] *** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:2 ok: [/cache/fedora-32.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [linux-system-roles.nbde_client : Check whether devices are at the desired state] *** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:7 changed: [/cache/fedora-32.qcow2] => {"changed": true, "original_bindings": [{"device": "/tmp/.nbde_client_dev_test", "encryption_password": "test-password-here", "password_temporary": false, "servers": ["http://localhost"], "slot": 1, "state": "present", "threshold": 1}]} TASK [linux-system-roles.nbde_client : Create temporary directory to hold key files] *** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:17 changed: [/cache/fedora-32.qcow2] => {"changed": true, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/tmp/ansible.7hnofl0_nbde_client_encryption_keys", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 4096, "state": "directory", "uid": 0} TASK [linux-system-roles.nbde_client : Ensure we transfer key files] *********** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:25 skipping: [/cache/fedora-32.qcow2] => (item=) => {"ansible_loop_var": "item", "changed": false, "item": {"device": "/tmp/.nbde_client_dev_test", "encryption_password": "test-password-here", "servers": ["http://localhost"]}, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.nbde_client : Perform clevis operations] ************** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:37 changed: [/cache/fedora-32.qcow2] => {"changed": true, "original_bindings": [{"device": "/tmp/.nbde_client_dev_test", "encryption_password": "test-password-here", "password_temporary": false, "servers": ["http://localhost"], "slot": 1, "state": "present", "threshold": 1}]} TASK [linux-system-roles.nbde_client : Remove temporary directory used to hold key files] *** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:47 changed: [/cache/fedora-32.qcow2] => {"changed": true, "path": "/tmp/ansible.7hnofl0_nbde_client_encryption_keys", "state": "absent"} TASK [Assert change happened after key rotation] ******************************* task path: /tmp/tmpagnzt5h5/tests/tests_key_rotation.yml:40 ok: [/cache/fedora-32.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Assert idempotency again - change not expected] ************************** task path: /tmp/tmpagnzt5h5/tests/tests_key_rotation.yml:45 included: /tmp/tmpagnzt5h5/tests/tasks/verify_idempotency.yml for /cache/fedora-32.qcow2 TASK [Use nbde_client role - idempotency check] ******************************** task path: /tmp/tmpagnzt5h5/tests/tasks/verify_idempotency.yml:2 TASK [linux-system-roles.nbde_client : Set version specific variables] ********* task path: /tmp/tmpagnzt5h5/tasks/main.yml:4 ok: [/cache/fedora-32.qcow2] => {"ansible_facts": {"__nbde_client_initramfs_update_cmd": "dracut -f", "__nbde_client_packages": ["clevis", "clevis-dracut", "clevis-luks", "clevis-systemd"]}, "ansible_included_var_files": ["/tmp/tmpagnzt5h5/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.nbde_client : Include the appropriate provider tasks] *** task path: /tmp/tmpagnzt5h5/tasks/main.yml:17 included: /tmp/tmpagnzt5h5/tasks/main-clevis.yml for /cache/fedora-32.qcow2 TASK [linux-system-roles.nbde_client : Ensure required packages are installed] *** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:2 ok: [/cache/fedora-32.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [linux-system-roles.nbde_client : Check whether devices are at the desired state] *** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:7 ok: [/cache/fedora-32.qcow2] => {"changed": false, "original_bindings": [{"device": "/tmp/.nbde_client_dev_test", "encryption_password": "test-password-here", "password_temporary": false, "servers": ["http://localhost"], "slot": 1, "state": "present", "threshold": 1}]} TASK [linux-system-roles.nbde_client : Create temporary directory to hold key files] *** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:17 skipping: [/cache/fedora-32.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.nbde_client : Ensure we transfer key files] *********** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:25 skipping: [/cache/fedora-32.qcow2] => (item=) => {"ansible_loop_var": "item", "changed": false, "item": {"device": "/tmp/.nbde_client_dev_test", "encryption_password": "test-password-here", "servers": ["http://localhost"]}, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.nbde_client : Perform clevis operations] ************** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:37 skipping: [/cache/fedora-32.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.nbde_client : Remove temporary directory used to hold key files] *** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:47 skipping: [/cache/fedora-32.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify idempotency of clevis operations] ********************************* task path: /tmp/tmpagnzt5h5/tests/tasks/verify_idempotency.yml:6 ok: [/cache/fedora-32.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up test environment] *********************************************** task path: /tmp/tmpagnzt5h5/tests/tests_key_rotation.yml:49 included: /tmp/tmpagnzt5h5/tests/tasks/cleanup_test.yml for /cache/fedora-32.qcow2 TASK [Clean up dummy testing device] ******************************************* task path: /tmp/tmpagnzt5h5/tests/tasks/cleanup_test.yml:2 changed: [/cache/fedora-32.qcow2] => {"changed": true, "path": "/tmp/.nbde_client_dev_test", "state": "absent"} TASK [Clean up dummy key file] ************************************************* task path: /tmp/tmpagnzt5h5/tests/tasks/cleanup_test.yml:7 changed: [/cache/fedora-32.qcow2] => {"changed": true, "path": "/tmp/.nbde_client_dev_encryption_key", "state": "absent"} TASK [Clean up dummy key file on managed host] ********************************* task path: /tmp/tmpagnzt5h5/tests/tasks/cleanup_test.yml:13 ok: [/cache/fedora-32.qcow2] => {"changed": false, "path": "/tmp/.nbde_client_dev_encryption_key", "state": "absent"} RUNNING HANDLER [linux-system-roles.nbde_client : nbde_client update initramfs] *** task path: /tmp/tmpagnzt5h5/handlers/main.yml:4 changed: [/cache/fedora-32.qcow2] => {"changed": true, "cmd": ["dracut", "-f"], "delta": "0:00:18.803618", "end": "2021-06-08 16:15:06.171395", "rc": 0, "start": "2021-06-08 16:14:47.367777", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/fedora-32.qcow2 : ok=58 changed=17 unreachable=0 failed=0 skipped=15 rescued=0 ignored=0 + cd /tmp/tmpagnzt5h5/tests; TEST_SUBJECTS=/cache/fedora-32.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_nbde_client-50-792f563-fedora-32-dxfcttx2/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmpagnzt5h5/_setup.yml /tmp/tmpagnzt5h5/tests/tests_passphrase_temporary.yml ansible-playbook 2.9.21 config file = /etc/ansible/ansible.cfg configured module search path = ['/home/tester/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.8/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 3.8.10 (default, May 4 2021, 00:00:00) [GCC 10.2.1 20201125 (Red Hat 10.2.1-9)] Using /etc/ansible/ansible.cfg as config file Skipping callback 'actionable', as we already have a stdout callback. Skipping callback 'counter_enabled', as we already have a stdout callback. Skipping callback 'debug', as we already have a stdout callback. Skipping callback 'dense', as we already have a stdout callback. Skipping callback 'dense', as we already have a stdout callback. Skipping callback 'full_skip', as we already have a stdout callback. Skipping callback 'json', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'null', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. Skipping callback 'selective', as we already have a stdout callback. Skipping callback 'skippy', as we already have a stdout callback. Skipping callback 'stderr', as we already have a stdout callback. Skipping callback 'unixy', as we already have a stdout callback. Skipping callback 'yaml', as we already have a stdout callback. PLAYBOOK: _setup.yml *********************************************************** 1 plays in /tmp/tmpagnzt5h5/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmpagnzt5h5/_setup.yml:5 ok: [/cache/fedora-32.qcow2] => { "groups": { "all": [ "/cache/fedora-32.qcow2" ], "localhost": [ "/cache/fedora-32.qcow2" ], "subjects": [ "/cache/fedora-32.qcow2" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmpagnzt5h5/_setup.yml:7 skipping: [/cache/fedora-32.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/fedora-32.qcow2 : ok=1 changed=0 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 PLAYBOOK: tests_passphrase_temporary.yml *************************************** 1 plays in /tmp/tmpagnzt5h5/tests/tests_passphrase_temporary.yml PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpagnzt5h5/tests/tests_passphrase_temporary.yml:2 ok: [/cache/fedora-32.qcow2] META: ran handlers TASK [Set up test environment] ************************************************* task path: /tmp/tmpagnzt5h5/tests/tests_passphrase_temporary.yml:16 included: /tmp/tmpagnzt5h5/tests/tasks/setup_test.yml for /cache/fedora-32.qcow2 TASK [Include general tests variables] ***************************************** task path: /tmp/tmpagnzt5h5/tests/tasks/setup_test.yml:2 ok: [/cache/fedora-32.qcow2] => {"ansible_facts": {"nbde_client_test_device": "/tmp/.nbde_client_dev_test", "nbde_client_test_encryption_key_src": "/tmp/.nbde_client_dev_encryption_key", "nbde_client_test_pass": "test-password-here", "nbde_client_test_roles_dir": "/tmp/.nbde_client_dev_roles"}, "ansible_included_var_files": ["/tmp/tmpagnzt5h5/tests/vars/main.yml"], "changed": false} TASK [Set version specific variables] ****************************************** task path: /tmp/tmpagnzt5h5/tests/tasks/setup_test.yml:5 ok: [/cache/fedora-32.qcow2] => {"ansible_facts": {"nbde_client_test_packages": ["cryptsetup"]}, "ansible_included_var_files": ["/tmp/tmpagnzt5h5/tests/vars/Fedora.yml"], "changed": false} TASK [Print all available facts] *********************************************** task path: /tmp/tmpagnzt5h5/tests/tasks/setup_test.yml:20 ok: [/cache/fedora-32.qcow2] => { "ansible_facts": { "all_ipv4_addresses": [ "10.0.2.15" ], "all_ipv6_addresses": [ "fec0::5054:ff:fe12:3456", "fe80::5054:ff:fe12:3456" ], "ansible_local": {}, "apparmor": { "status": "disabled" }, "architecture": "x86_64", "bios_date": "04/01/2014", "bios_version": "1.13.0-2.fc32", "cmdline": { "BOOT_IMAGE": "(hd0,msdos1)/boot/vmlinuz-5.11.22-100.fc32.x86_64", "console": "ttyS0,115200n8", "net.ifnames": "0", "no_timer_check": true, "ro": true, "root": "UUID=450c38b7-9e89-4257-8d2f-915e2c3ab50d" }, "date_time": { "date": "2021-06-08", "day": "08", "epoch": "1623168920", "hour": "16", "iso8601": "2021-06-08T16:15:20Z", "iso8601_basic": "20210608T161520710185", "iso8601_basic_short": "20210608T161520", "iso8601_micro": "2021-06-08T16:15:20.710185Z", "minute": "15", "month": "06", "second": "20", "time": "16:15:20", "tz": "UTC", "tz_offset": "+0000", "weekday": "Tuesday", "weekday_number": "2", "weeknumber": "23", "year": "2021" }, "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" }, "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" }, "device_links": { "ids": { "sr0": [ "ata-QEMU_DVD-ROM_QM00003" ] }, "labels": { "sr0": [ "cidata" ] }, "masters": {}, "uuids": { "sr0": [ "2021-06-08-16-15-07-00" ], "vda1": [ "450c38b7-9e89-4257-8d2f-915e2c3ab50d" ] } }, "devices": { "sr0": { "holders": [], "host": "", "links": { "ids": [ "ata-QEMU_DVD-ROM_QM00003" ], "labels": [ "cidata" ], "masters": [], "uuids": [ "2021-06-08-16-15-07-00" ] }, "model": "QEMU DVD-ROM", "partitions": {}, "removable": "1", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "bfq", "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": [ "450c38b7-9e89-4257-8d2f-915e2c3ab50d" ] }, "sectors": "8386560", "sectorsize": 512, "size": "4.00 GB", "start": "2048", "uuid": "450c38b7-9e89-4257-8d2f-915e2c3ab50d" } }, "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": "512", "vendor": "0x1af4", "virtual": 1 } }, "distribution": "Fedora", "distribution_file_parsed": true, "distribution_file_path": "/etc/redhat-release", "distribution_file_variety": "RedHat", "distribution_major_version": "32", "distribution_release": "", "distribution_version": "32", "dns": { "nameservers": [ "10.0.2.3" ], "search": [ "virt.pnr.lab.eng.rdu2.redhat.com" ] }, "domain": "virt.pnr.lab.eng.rdu2.redhat.com", "effective_group_id": 0, "effective_user_id": 0, "env": { "DBUS_SESSION_BUS_ADDRESS": "unix:path=/run/user/0/bus", "HOME": "/root", "LANG": "en_US.UTF-8", "LC_CTYPE": "C.UTF-8", "LESSOPEN": "||/usr/bin/lesspipe.sh %s", "LOGNAME": "root", "LS_COLORS": "", "MOTD_SHOWN": "pam", "PATH": "/root/.local/bin:/root/bin:/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 51826 22", "SSH_CONNECTION": "10.0.2.2 51826 10.0.2.15 22", "SSH_TTY": "/dev/pts/0", "USER": "root", "XDG_RUNTIME_DIR": "/run/user/0", "XDG_SESSION_CLASS": "user", "XDG_SESSION_ID": "1", "XDG_SESSION_TYPE": "tty", "_": "/usr/bin/python3" }, "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" }, "fibre_channel_wwn": [], "fips": false, "form_factor": "Other", "fqdn": "ibm-p8-kvm-03-guest-02.virt.pnr.lab.eng.rdu2.redhat.com", "gather_subset": [ "all" ], "hostname": "ibm-p8-kvm-03-guest-02", "hostnqn": "", "interfaces": [ "lo", "eth0" ], "is_chroot": false, "iscsi_iqn": "", "kernel": "5.11.22-100.fc32.x86_64", "kernel_version": "#1 SMP Wed May 19 18:58:25 UTC 2021", "lo": { "active": true, "device": "lo", "ipv4": { "address": "127.0.0.1", "broadcast": "", "netmask": "255.0.0.0", "network": "127.0.0.0" }, "ipv6": [ { "address": "::1", "prefix": "128", "scope": "host" } ], "mtu": 65536, "promisc": false, "type": "loopback" }, "lsb": {}, "machine": "x86_64", "machine_id": "828d4ee442ad41f590c77cb5fa8aa699", "memfree_mb": 1693, "memory_mb": { "nocache": { "free": 1851, "used": 125 }, "real": { "free": 1693, "total": 1976, "used": 283 }, "swap": { "cached": 0, "free": 0, "total": 0, "used": 0 } }, "memtotal_mb": 1976, "module_setup": true, "mounts": [ { "block_available": 775845, "block_size": 4096, "block_total": 1015472, "block_used": 239627, "device": "/dev/vda1", "fstype": "ext4", "inode_available": 235263, "inode_total": 262144, "inode_used": 26881, "mount": "/", "options": "rw,seclabel,relatime", "size_available": 3177861120, "size_total": 4159373312, "uuid": "450c38b7-9e89-4257-8d2f-915e2c3ab50d" } ], "nodename": "ibm-p8-kvm-03-guest-02.virt.pnr.lab.eng.rdu2.redhat.com", "os_family": "RedHat", "pkg_mgr": "dnf", "proc_cmdline": { "BOOT_IMAGE": "(hd0,msdos1)/boot/vmlinuz-5.11.22-100.fc32.x86_64", "console": [ "tty1", "ttyS0,115200n8" ], "net.ifnames": "0", "no_timer_check": true, "ro": true, "root": "UUID=450c38b7-9e89-4257-8d2f-915e2c3ab50d" }, "processor": [ "0", "GenuineIntel", "Intel(R) Xeon(R) Platinum 8168 CPU @ 2.70GHz", "1", "GenuineIntel", "Intel(R) Xeon(R) Platinum 8168 CPU @ 2.70GHz", "2", "GenuineIntel", "Intel(R) Xeon(R) Platinum 8168 CPU @ 2.70GHz", "3", "GenuineIntel", "Intel(R) Xeon(R) Platinum 8168 CPU @ 2.70GHz" ], "processor_cores": 1, "processor_count": 4, "processor_threads_per_core": 1, "processor_vcpus": 4, "product_name": "Standard PC (i440FX + PIIX, 1996)", "product_serial": "NA", "product_uuid": "NA", "product_version": "pc-i440fx-4.2", "python": { "executable": "/usr/bin/python3", "has_sslcontext": true, "type": "cpython", "version": { "major": 3, "micro": 10, "minor": 8, "releaselevel": "final", "serial": 0 }, "version_info": [ 3, 8, 10, "final", 0 ] }, "python_version": "3.8.10", "real_group_id": 0, "real_user_id": 0, "selinux": { "config_mode": "enforcing", "mode": "enforcing", "policyvers": 33, "status": "enabled", "type": "targeted" }, "selinux_python_present": true, "service_mgr": "systemd", "ssh_host_key_dsa_public": "AAAAB3NzaC1kc3MAAACBALeTkC2uKxlDRxt1iXP11/w1UtlCTsWZ3HhEwDw2Ps1ADA5dinWQziLAncilOVQZOMbhuqf1ruOrgqhkhoL+EhX2+Cxmj1UvvrHxcfmUCwY/Iq3cblYf3nYmrBG734xoXne2IdLfifj60vyBMgsqlC7ZeWxELifRUvxYja6TQl9rAAAAFQDnHuHT4+U3ksFZBzEAR8idhVfVXwAAAIBT9Bdr5RIYKha3+8KI3jvABHN9uvq1RgTQvoK3+imkrDe0rvS6CAQvzWraDD6u9MMnhIQ0gNpEPdNzT9Pp2eOstMbvV5pUgLa8lHYeFfriG7CJ0W0UK+lVRieZE2aE+LgMM/4+egl1hNEweuExG3yuyr6GnQ6KmWYTQYtEZFkpgAAAAIEAlGnnDXhYYHWo9L2JKnDVT6inyAhJjufZ+KAMKm0587Ad4p20JXEAcLjMEhpENXoYfti+i0w5KKhXjsGMNifjEEVHmljZyJ/cbq+Y0dI8lIkwPUPuqWA4z5MY4d3MOq+mYwUeKGxwTge2yFIzx/d99AZfqNgBjbLevD+zL54F0qc=", "ssh_host_key_ecdsa_public": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBB74R18SetlWy1tgkozKaZ8JmLUzdRfePFTaSkaUavx464r4XtGXbmNf1neDWvMXMPF3uh2yKv14MOYC0f1qPsk=", "ssh_host_key_ed25519_public": "AAAAC3NzaC1lZDI1NTE5AAAAIF6SWYPkZJHf85A6XSKrCaYHIQjM8OFhmf/wqkZO9EjU", "ssh_host_key_rsa_public": "AAAAB3NzaC1yc2EAAAADAQABAAABgQDQCiYL2y3dD78VkupCTE0og7/ol42p1/IUbk+25RuhDTcHmh+Zu56q0f630F4clZtLS0ZiPItyGcJnKmkzCyYk7H8UBfQ6Q//Y6ofjlNKCbOWfdkzp4D5Qih6rgtzxpqGP1hDbuvMolQbXUnnDgoowc0J8Te//SZoghKPT07AVJuOj/+36mbXySdoe21xmOA3Ou5KsOSn9SE9Y6m0N7wTwVshNcc2JYhtWu3rB61ZrkSDhXoqQEjQvKKGLobCWyXcOqWH1a4CdhJoWHnb4Vaq0frWXUf3qgiPBFfe2Z0KABRnBqEhmoB1M4Cq8ztxuxIb6Ub6Nr53pACbMOKWosV5xzigDsWDE8H0AMmV7OgEWVeGLiAQtSUfCaVp4da1SV1D3zMphvbrn/Eonf7715473E+sM3FVQ2gbIuz0lqaFkCk2q0yAimMTAG8FtYmDzfRr4Db9rirM3C5b72g56KaRFEAe1blsbXjfRLd7tGaFPHl20mHHjBeRjalRCd7AHIVU=", "swapfree_mb": 0, "swaptotal_mb": 0, "system": "Linux", "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", "38", "39", "40+ep" ], "system_capabilities_enforced": "True", "system_vendor": "QEMU", "uptime_seconds": 10, "user_dir": "/root", "user_gecos": "root", "user_gid": 0, "user_id": "root", "user_shell": "/bin/bash", "user_uid": 0, "userspace_architecture": "x86_64", "userspace_bits": "64", "virtualization_role": "guest", "virtualization_type": "kvm" } } TASK [Install required packages for nbde_client tests] ************************* task path: /tmp/tmpagnzt5h5/tests/tasks/setup_test.yml:24 changed: [/cache/fedora-32.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: cryptsetup-2.3.5-2.fc32.x86_64"]} TASK [Clone nbde_server role for the tests] ************************************ task path: /tmp/tmpagnzt5h5/tests/tasks/setup_test.yml:28 ok: [/cache/fedora-32.qcow2] => {"after": "c57d0b1f3384c525738fa26ba4bdca485e162567", "before": "c57d0b1f3384c525738fa26ba4bdca485e162567", "changed": false, "remote_url_changed": false} TASK [Deploy NBDE server for testing] ****************************************** task path: /tmp/tmpagnzt5h5/tests/tasks/setup_test.yml:35 TASK [/tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server : Set version specific variables] *** task path: /tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server/tasks/main.yml:6 ok: [/cache/fedora-32.qcow2] => {"ansible_facts": {"__nbde_server_cachedir": "/var/cache/tang", "__nbde_server_group": "tang", "__nbde_server_keydir": "/var/db/tang", "__nbde_server_keygen": "/usr/libexec/tangd-keygen", "__nbde_server_packages": ["tang"], "__nbde_server_services": ["tangd.socket"], "__nbde_server_update": "/usr/libexec/tangd-update", "__nbde_server_user": "tang"}, "ansible_included_var_files": ["/tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server/vars/default.yml"], "changed": false} TASK [/tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server : Include the appropriate provider tasks] *** task path: /tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server/tasks/main.yml:20 included: /tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server/tasks/main-tang.yml for /cache/fedora-32.qcow2 TASK [/tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server : Ensure tang is installed] *** task path: /tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server/tasks/main-tang.yml:2 changed: [/cache/fedora-32.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: tang-10-1.fc32.x86_64", "Installed: libjose-11-1.fc32.x86_64", "Installed: http-parser-2.9.3-2.fc32.x86_64", "Installed: jose-11-1.fc32.x86_64"]} TASK [/tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server : Ensure keys are rotated] *** task path: /tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server/tasks/main-tang.yml:7 skipping: [/cache/fedora-32.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [/tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server : Ensure we have keys] *** task path: /tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server/tasks/main-tang.yml:16 changed: [/cache/fedora-32.qcow2] => {"arguments": {"cachedir": "/var/cache/tang", "force": false, "keydir": "/var/db/tang", "keygen": "/usr/libexec/tangd-keygen", "keys_to_deploy_dir": null, "state": "keys-created", "update": "/usr/libexec/tangd-update"}, "changed": true, "state": "keys-created"} TASK [/tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server : Perform key management (fetch/deploy) tasks] *** task path: /tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server/tasks/main-tang.yml:25 skipping: [/cache/fedora-32.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [/tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server : Ensure required services are enabled and at the right state] *** task path: /tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server/tasks/main-tang.yml:29 changed: [/cache/fedora-32.qcow2] => (item=tangd.socket) => {"ansible_loop_var": "item", "changed": true, "enabled": true, "item": "tangd.socket", "name": "tangd.socket", "state": "started", "status": {"Accept": "yes", "ActiveEnterTimestampMonotonic": "0", "ActiveExitTimestampMonotonic": "0", "ActiveState": "inactive", "After": "system.slice sysinit.target", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "no", "AssertTimestampMonotonic": "0", "Backlog": "4096", "Before": "shutdown.target sockets.target", "BindIPv6Only": "default", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "Broadcast": "no", "CPUAccounting": "yes", "CPUAffinity": "", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "[not set]", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanIsolate": "no", "CanReload": "no", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "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 cap_perfmon cap_bpf cap_checkpoint_restore", "CollectMode": "inactive", "ConditionResult": "no", "ConditionTimestampMonotonic": "0", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target", "ControlPID": "0", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "DeferAcceptUSec": "0", "Delegate": "no", "Description": "Tang Server socket", "DevicePolicy": "auto", "DirectoryMode": "0755", "DynamicUser": "no", "EffectiveCPUs": "", "EffectiveMemoryNodes": "", "FailureAction": "none", "FileDescriptorName": "tangd.socket", "FinalKillSignal": "9", "FragmentPath": "/usr/lib/systemd/system/tangd.socket", "FreeBind": "no", "GID": "[not set]", "IOAccounting": "no", "IOReadBytes": "18446744073709551615", "IOReadOperations": "18446744073709551615", "IOSchedulingClass": "0", "IOSchedulingPriority": "0", "IOWeight": "[not set]", "IOWriteBytes": "18446744073709551615", "IOWriteOperations": "18446744073709551615", "IPAccounting": "no", "IPEgressBytes": "[no data]", "IPEgressPackets": "[no data]", "IPIngressBytes": "[no data]", "IPIngressPackets": "[no data]", "IPTOS": "-1", "IPTTL": "-1", "Id": "tangd.socket", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestampMonotonic": "0", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeepAlive": "no", "KeepAliveIntervalUSec": "0", "KeepAliveProbes": "0", "KeepAliveTimeUSec": "0", "KeyringMode": "shared", "KillMode": "control-group", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "infinity", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "65536", "LimitMEMLOCKSoft": "65536", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "524288", "LimitNOFILESoft": "1024", "LimitNPROC": "7782", "LimitNPROCSoft": "7782", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "7782", "LimitSIGPENDINGSoft": "7782", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "Listen": "[::]:80 (Stream)", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "Mark": "-1", "MaxConnections": "64", "MaxConnectionsPerSource": "0", "MemoryAccounting": "yes", "MemoryCurrent": "[not set]", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MessageQueueMaxMessages": "0", "MessageQueueMessageSize": "0", "MountAPIVFS": "no", "MountFlags": "", "NAccepted": "0", "NConnections": "0", "NRefused": "0", "NUMAMask": "", "NUMAPolicy": "n/a", "Names": "tangd.socket", "NeedDaemonReload": "no", "Nice": "0", "NoDelay": "no", "NoNewPrivileges": "no", "NonBlocking": "no", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PassCredentials": "no", "PassSecurity": "no", "Perpetual": "no", "PipeSize": "0", "Priority": "-1", "PrivateDevices": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProtectClock": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectHostname": "no", "ProtectKernelLogs": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectSystem": "no", "ReceiveBuffer": "0", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemoveIPC": "no", "RemoveOnStop": "no", "Requires": "system.slice sysinit.target", "RestartKillSignal": "15", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "ReusePort": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "SameProcessGroup": "no", "SecureBits": "0", "SendBuffer": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "SocketMode": "0666", "SocketProtocol": "0", "StandardError": "inherit", "StandardInput": "null", "StandardInputData": "", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestampMonotonic": "0", "StateDirectoryMode": "0755", "StopWhenUnneeded": "no", "SubState": "dead", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "[not set]", "TasksMax": "2334", "TimeoutCleanUSec": "infinity", "TimeoutUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Transparent": "no", "TriggerLimitBurst": "200", "TriggerLimitIntervalUSec": "2s", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "disabled", "UnitFileState": "disabled", "UtmpMode": "init", "WatchdogSignal": "6", "Writable": "no"}} TASK [Create device for testing] *********************************************** task path: /tmp/tmpagnzt5h5/tests/tasks/setup_test.yml:39 ok: [/cache/fedora-32.qcow2] => {"changed": false, "cmd": ["fallocate", "-l64m", "/tmp/.nbde_client_dev_test"], "delta": "0:00:00.005497", "end": "2021-06-08 16:16:06.313045", "rc": 0, "start": "2021-06-08 16:16:06.307548", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Format test device as LUKS] ********************************************** task path: /tmp/tmpagnzt5h5/tests/tasks/setup_test.yml:43 ok: [/cache/fedora-32.qcow2] => {"changed": false, "cmd": "set -euo pipefail; echo -n test-password-here | cryptsetup luksFormat --pbkdf pbkdf2 --pbkdf-force-iterations 1000 --batch-mode --force-password /tmp/.nbde_client_dev_test", "delta": "0:00:00.141897", "end": "2021-06-08 16:16:06.798555", "rc": 0, "start": "2021-06-08 16:16:06.656658", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Create key file for test device] ***************************************** task path: /tmp/tmpagnzt5h5/tests/tasks/setup_test.yml:51 ok: [/cache/fedora-32.qcow2] => {"changed": false, "cmd": "echo -n test-password-here > /tmp/.nbde_client_dev_encryption_key\n", "delta": "0:00:00.003935", "end": "2021-06-08 16:16:07.635296", "rc": 0, "start": "2021-06-08 16:16:07.631361", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Use nbde_client role] **************************************************** task path: /tmp/tmpagnzt5h5/tests/tests_passphrase_temporary.yml:21 TASK [linux-system-roles.nbde_client : Set version specific variables] ********* task path: /tmp/tmpagnzt5h5/tasks/main.yml:4 ok: [/cache/fedora-32.qcow2] => {"ansible_facts": {"__nbde_client_initramfs_update_cmd": "dracut -f", "__nbde_client_packages": ["clevis", "clevis-dracut", "clevis-luks", "clevis-systemd"]}, "ansible_included_var_files": ["/tmp/tmpagnzt5h5/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.nbde_client : Include the appropriate provider tasks] *** task path: /tmp/tmpagnzt5h5/tasks/main.yml:17 included: /tmp/tmpagnzt5h5/tasks/main-clevis.yml for /cache/fedora-32.qcow2 TASK [linux-system-roles.nbde_client : Ensure required packages are installed] *** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:2 changed: [/cache/fedora-32.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: oniguruma-6.9.5-4.rev1.fc32.x86_64", "Installed: tpm2-tools-4.1.3-1.fc32.x86_64", "Installed: tpm2-tss-2.4.4-1.fc32.x86_64", "Installed: clevis-18-1.fc32.x86_64", "Installed: clevis-dracut-18-1.fc32.x86_64", "Installed: clevis-luks-18-1.fc32.x86_64", "Installed: clevis-systemd-18-1.fc32.x86_64", "Installed: dracut-network-050-61.git20200529.fc32.x86_64", "Installed: libluksmeta-9-8.fc32.x86_64", "Installed: jq-1.6-4.fc32.x86_64", "Installed: luksmeta-9-8.fc32.x86_64"]} TASK [linux-system-roles.nbde_client : Check whether devices are at the desired state] *** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:7 changed: [/cache/fedora-32.qcow2] => {"changed": true, "original_bindings": [{"device": "/tmp/.nbde_client_dev_test", "encryption_password": "test-password-here", "password_temporary": true, "servers": ["http://localhost"], "slot": 1, "state": "present", "threshold": 1}, {"device": "/tmp/.nbde_client_dev_test", "password_temporary": false, "servers": ["http://localhost"], "slot": 1, "state": "present", "threshold": 1}]} TASK [linux-system-roles.nbde_client : Create temporary directory to hold key files] *** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:17 changed: [/cache/fedora-32.qcow2] => {"changed": true, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/tmp/ansible.gsj9g8e9nbde_client_encryption_keys", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 4096, "state": "directory", "uid": 0} TASK [linux-system-roles.nbde_client : Ensure we transfer key files] *********** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:25 skipping: [/cache/fedora-32.qcow2] => (item=) => {"ansible_loop_var": "item", "changed": false, "item": {"device": "/tmp/.nbde_client_dev_test", "encryption_password": "test-password-here", "password_temporary": true, "servers": ["http://localhost"]}, "skip_reason": "Conditional result was False"} skipping: [/cache/fedora-32.qcow2] => (item=) => {"ansible_loop_var": "item", "changed": false, "item": {"device": "/tmp/.nbde_client_dev_test", "servers": ["http://localhost"]}, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.nbde_client : Perform clevis operations] ************** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:37 NOTIFIED HANDLER linux-system-roles.nbde_client : nbde_client update initramfs for /cache/fedora-32.qcow2 changed: [/cache/fedora-32.qcow2] => {"changed": true, "original_bindings": [{"device": "/tmp/.nbde_client_dev_test", "encryption_password": "test-password-here", "password_temporary": true, "servers": ["http://localhost"], "slot": 1, "state": "present", "threshold": 1}, {"device": "/tmp/.nbde_client_dev_test", "password_temporary": false, "servers": ["http://localhost"], "slot": 1, "state": "present", "threshold": 1}]} TASK [linux-system-roles.nbde_client : Remove temporary directory used to hold key files] *** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:47 changed: [/cache/fedora-32.qcow2] => {"changed": true, "path": "/tmp/ansible.gsj9g8e9nbde_client_encryption_keys", "state": "absent"} TASK [Attempt to unlock device] ************************************************ task path: /tmp/tmpagnzt5h5/tests/tests_passphrase_temporary.yml:25 included: /tmp/tmpagnzt5h5/tests/tasks/verify_unlock_device.yml for /cache/fedora-32.qcow2 TASK [Verify we can unlock the device] ***************************************** task path: /tmp/tmpagnzt5h5/tests/tasks/verify_unlock_device.yml:2 ok: [/cache/fedora-32.qcow2] => {"changed": false, "cmd": ["clevis", "luks", "unlock", "-d", "/tmp/.nbde_client_dev_test", "-n", "nbde_client_unlocked"], "delta": "0:00:03.962524", "end": "2021-06-08 16:16:30.542656", "rc": 0, "start": "2021-06-08 16:16:26.580132", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Close unlocked device] *************************************************** task path: /tmp/tmpagnzt5h5/tests/tasks/verify_unlock_device.yml:10 ok: [/cache/fedora-32.qcow2] => {"changed": false, "cmd": ["cryptsetup", "close", "nbde_client_unlocked"], "delta": "0:00:00.036167", "end": "2021-06-08 16:16:30.910388", "rc": 0, "start": "2021-06-08 16:16:30.874221", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Make sure the attempt to unlock succeeded] ******************************* task path: /tmp/tmpagnzt5h5/tests/tests_passphrase_temporary.yml:28 ok: [/cache/fedora-32.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Attempt to check whether default passphrase works] *********************** task path: /tmp/tmpagnzt5h5/tests/tests_passphrase_temporary.yml:34 included: /tmp/tmpagnzt5h5/tests/tasks/verify_default_passphrase.yml for /cache/fedora-32.qcow2 TASK [Verify the default passphrase works] ************************************* task path: /tmp/tmpagnzt5h5/tests/tasks/verify_default_passphrase.yml:2 fatal: [/cache/fedora-32.qcow2]: FAILED! => {"changed": false, "cmd": "echo -n \"test-password-here\" | cryptsetup open --test-passphrase \"/tmp/.nbde_client_dev_test\"\n", "delta": "0:00:01.853165", "end": "2021-06-08 16:16:33.146878", "msg": "non-zero return code", "rc": 2, "start": "2021-06-08 16:16:31.293713", "stderr": "No key available with this passphrase.", "stderr_lines": ["No key available with this passphrase."], "stdout": "", "stdout_lines": []} ...ignoring TASK [Make sure the default passphrase did not work] *************************** task path: /tmp/tmpagnzt5h5/tests/tests_passphrase_temporary.yml:37 ok: [/cache/fedora-32.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Assert idempotency] ****************************************************** task path: /tmp/tmpagnzt5h5/tests/tests_passphrase_temporary.yml:42 included: /tmp/tmpagnzt5h5/tests/tasks/verify_idempotency.yml for /cache/fedora-32.qcow2 TASK [Use nbde_client role - idempotency check] ******************************** task path: /tmp/tmpagnzt5h5/tests/tasks/verify_idempotency.yml:2 TASK [linux-system-roles.nbde_client : Set version specific variables] ********* task path: /tmp/tmpagnzt5h5/tasks/main.yml:4 ok: [/cache/fedora-32.qcow2] => {"ansible_facts": {"__nbde_client_initramfs_update_cmd": "dracut -f", "__nbde_client_packages": ["clevis", "clevis-dracut", "clevis-luks", "clevis-systemd"]}, "ansible_included_var_files": ["/tmp/tmpagnzt5h5/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.nbde_client : Include the appropriate provider tasks] *** task path: /tmp/tmpagnzt5h5/tasks/main.yml:17 included: /tmp/tmpagnzt5h5/tasks/main-clevis.yml for /cache/fedora-32.qcow2 TASK [linux-system-roles.nbde_client : Ensure required packages are installed] *** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:2 ok: [/cache/fedora-32.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [linux-system-roles.nbde_client : Check whether devices are at the desired state] *** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:7 ok: [/cache/fedora-32.qcow2] => {"changed": false, "original_bindings": [{"device": "/tmp/.nbde_client_dev_test", "encryption_password": "test-password-here", "password_temporary": true, "servers": ["http://localhost"], "slot": 1, "state": "present", "threshold": 1}, {"device": "/tmp/.nbde_client_dev_test", "password_temporary": false, "servers": ["http://localhost"], "slot": 1, "state": "present", "threshold": 1}]} TASK [linux-system-roles.nbde_client : Create temporary directory to hold key files] *** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:17 skipping: [/cache/fedora-32.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.nbde_client : Ensure we transfer key files] *********** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:25 skipping: [/cache/fedora-32.qcow2] => (item=) => {"ansible_loop_var": "item", "changed": false, "item": {"device": "/tmp/.nbde_client_dev_test", "encryption_password": "test-password-here", "password_temporary": true, "servers": ["http://localhost"]}, "skip_reason": "Conditional result was False"} skipping: [/cache/fedora-32.qcow2] => (item=) => {"ansible_loop_var": "item", "changed": false, "item": {"device": "/tmp/.nbde_client_dev_test", "servers": ["http://localhost"]}, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.nbde_client : Perform clevis operations] ************** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:37 skipping: [/cache/fedora-32.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.nbde_client : Remove temporary directory used to hold key files] *** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:47 skipping: [/cache/fedora-32.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify idempotency of clevis operations] ********************************* task path: /tmp/tmpagnzt5h5/tests/tasks/verify_idempotency.yml:6 ok: [/cache/fedora-32.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up test environment] *********************************************** task path: /tmp/tmpagnzt5h5/tests/tests_passphrase_temporary.yml:46 included: /tmp/tmpagnzt5h5/tests/tasks/cleanup_test.yml for /cache/fedora-32.qcow2 TASK [Clean up dummy testing device] ******************************************* task path: /tmp/tmpagnzt5h5/tests/tasks/cleanup_test.yml:2 changed: [/cache/fedora-32.qcow2] => {"changed": true, "path": "/tmp/.nbde_client_dev_test", "state": "absent"} TASK [Clean up dummy key file] ************************************************* task path: /tmp/tmpagnzt5h5/tests/tasks/cleanup_test.yml:7 changed: [/cache/fedora-32.qcow2] => {"changed": true, "path": "/tmp/.nbde_client_dev_encryption_key", "state": "absent"} TASK [Clean up dummy key file on managed host] ********************************* task path: /tmp/tmpagnzt5h5/tests/tasks/cleanup_test.yml:13 ok: [/cache/fedora-32.qcow2] => {"changed": false, "path": "/tmp/.nbde_client_dev_encryption_key", "state": "absent"} RUNNING HANDLER [linux-system-roles.nbde_client : nbde_client update initramfs] *** task path: /tmp/tmpagnzt5h5/handlers/main.yml:4 changed: [/cache/fedora-32.qcow2] => {"changed": true, "cmd": ["dracut", "-f"], "delta": "0:00:18.528868", "end": "2021-06-08 16:17:00.887421", "rc": 0, "start": "2021-06-08 16:16:42.358553", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/fedora-32.qcow2 : ok=41 changed=12 unreachable=0 failed=0 skipped=8 rescued=0 ignored=1 + cd /tmp/tmpagnzt5h5/tests; TEST_SUBJECTS=/cache/fedora-32.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_nbde_client-50-792f563-fedora-32-dxfcttx2/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmpagnzt5h5/_setup.yml /tmp/tmpagnzt5h5/tests/tests_passphrase_temporary_keyfile.yml ansible-playbook 2.9.21 config file = /etc/ansible/ansible.cfg configured module search path = ['/home/tester/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.8/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 3.8.10 (default, May 4 2021, 00:00:00) [GCC 10.2.1 20201125 (Red Hat 10.2.1-9)] Using /etc/ansible/ansible.cfg as config file Skipping callback 'actionable', as we already have a stdout callback. Skipping callback 'counter_enabled', as we already have a stdout callback. Skipping callback 'debug', as we already have a stdout callback. Skipping callback 'dense', as we already have a stdout callback. Skipping callback 'dense', as we already have a stdout callback. Skipping callback 'full_skip', as we already have a stdout callback. Skipping callback 'json', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'null', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. Skipping callback 'selective', as we already have a stdout callback. Skipping callback 'skippy', as we already have a stdout callback. Skipping callback 'stderr', as we already have a stdout callback. Skipping callback 'unixy', as we already have a stdout callback. Skipping callback 'yaml', as we already have a stdout callback. PLAYBOOK: _setup.yml *********************************************************** 1 plays in /tmp/tmpagnzt5h5/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmpagnzt5h5/_setup.yml:5 ok: [/cache/fedora-32.qcow2] => { "groups": { "all": [ "/cache/fedora-32.qcow2" ], "localhost": [ "/cache/fedora-32.qcow2" ], "subjects": [ "/cache/fedora-32.qcow2" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmpagnzt5h5/_setup.yml:7 skipping: [/cache/fedora-32.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/fedora-32.qcow2 : ok=1 changed=0 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 PLAYBOOK: tests_passphrase_temporary_keyfile.yml ******************************* 1 plays in /tmp/tmpagnzt5h5/tests/tests_passphrase_temporary_keyfile.yml PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpagnzt5h5/tests/tests_passphrase_temporary_keyfile.yml:2 ok: [/cache/fedora-32.qcow2] META: ran handlers TASK [Set up test environment] ************************************************* task path: /tmp/tmpagnzt5h5/tests/tests_passphrase_temporary_keyfile.yml:16 included: /tmp/tmpagnzt5h5/tests/tasks/setup_test.yml for /cache/fedora-32.qcow2 TASK [Include general tests variables] ***************************************** task path: /tmp/tmpagnzt5h5/tests/tasks/setup_test.yml:2 ok: [/cache/fedora-32.qcow2] => {"ansible_facts": {"nbde_client_test_device": "/tmp/.nbde_client_dev_test", "nbde_client_test_encryption_key_src": "/tmp/.nbde_client_dev_encryption_key", "nbde_client_test_pass": "test-password-here", "nbde_client_test_roles_dir": "/tmp/.nbde_client_dev_roles"}, "ansible_included_var_files": ["/tmp/tmpagnzt5h5/tests/vars/main.yml"], "changed": false} TASK [Set version specific variables] ****************************************** task path: /tmp/tmpagnzt5h5/tests/tasks/setup_test.yml:5 ok: [/cache/fedora-32.qcow2] => {"ansible_facts": {"nbde_client_test_packages": ["cryptsetup"]}, "ansible_included_var_files": ["/tmp/tmpagnzt5h5/tests/vars/Fedora.yml"], "changed": false} TASK [Print all available facts] *********************************************** task path: /tmp/tmpagnzt5h5/tests/tasks/setup_test.yml:20 ok: [/cache/fedora-32.qcow2] => { "ansible_facts": { "all_ipv4_addresses": [ "10.0.2.15" ], "all_ipv6_addresses": [ "fec0::5054:ff:fe12:3456", "fe80::5054:ff:fe12:3456" ], "ansible_local": {}, "apparmor": { "status": "disabled" }, "architecture": "x86_64", "bios_date": "04/01/2014", "bios_version": "1.13.0-2.fc32", "cmdline": { "BOOT_IMAGE": "(hd0,msdos1)/boot/vmlinuz-5.11.22-100.fc32.x86_64", "console": "ttyS0,115200n8", "net.ifnames": "0", "no_timer_check": true, "ro": true, "root": "UUID=450c38b7-9e89-4257-8d2f-915e2c3ab50d" }, "date_time": { "date": "2021-06-08", "day": "08", "epoch": "1623169035", "hour": "16", "iso8601": "2021-06-08T16:17:15Z", "iso8601_basic": "20210608T161715203273", "iso8601_basic_short": "20210608T161715", "iso8601_micro": "2021-06-08T16:17:15.203273Z", "minute": "17", "month": "06", "second": "15", "time": "16:17:15", "tz": "UTC", "tz_offset": "+0000", "weekday": "Tuesday", "weekday_number": "2", "weeknumber": "23", "year": "2021" }, "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" }, "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" }, "device_links": { "ids": { "sr0": [ "ata-QEMU_DVD-ROM_QM00003" ] }, "labels": { "sr0": [ "cidata" ] }, "masters": {}, "uuids": { "sr0": [ "2021-06-08-16-17-02-00" ], "vda1": [ "450c38b7-9e89-4257-8d2f-915e2c3ab50d" ] } }, "devices": { "sr0": { "holders": [], "host": "", "links": { "ids": [ "ata-QEMU_DVD-ROM_QM00003" ], "labels": [ "cidata" ], "masters": [], "uuids": [ "2021-06-08-16-17-02-00" ] }, "model": "QEMU DVD-ROM", "partitions": {}, "removable": "1", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "bfq", "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": [ "450c38b7-9e89-4257-8d2f-915e2c3ab50d" ] }, "sectors": "8386560", "sectorsize": 512, "size": "4.00 GB", "start": "2048", "uuid": "450c38b7-9e89-4257-8d2f-915e2c3ab50d" } }, "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": "512", "vendor": "0x1af4", "virtual": 1 } }, "distribution": "Fedora", "distribution_file_parsed": true, "distribution_file_path": "/etc/redhat-release", "distribution_file_variety": "RedHat", "distribution_major_version": "32", "distribution_release": "", "distribution_version": "32", "dns": { "nameservers": [ "10.0.2.3" ], "search": [ "virt.pnr.lab.eng.rdu2.redhat.com" ] }, "domain": "virt.pnr.lab.eng.rdu2.redhat.com", "effective_group_id": 0, "effective_user_id": 0, "env": { "DBUS_SESSION_BUS_ADDRESS": "unix:path=/run/user/0/bus", "HOME": "/root", "LANG": "en_US.UTF-8", "LC_CTYPE": "C.UTF-8", "LESSOPEN": "||/usr/bin/lesspipe.sh %s", "LOGNAME": "root", "LS_COLORS": "", "MOTD_SHOWN": "pam", "PATH": "/root/.local/bin:/root/bin:/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 56984 22", "SSH_CONNECTION": "10.0.2.2 56984 10.0.2.15 22", "SSH_TTY": "/dev/pts/0", "USER": "root", "XDG_RUNTIME_DIR": "/run/user/0", "XDG_SESSION_CLASS": "user", "XDG_SESSION_ID": "1", "XDG_SESSION_TYPE": "tty", "_": "/usr/bin/python3" }, "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" }, "fibre_channel_wwn": [], "fips": false, "form_factor": "Other", "fqdn": "ibm-p8-kvm-03-guest-02.virt.pnr.lab.eng.rdu2.redhat.com", "gather_subset": [ "all" ], "hostname": "ibm-p8-kvm-03-guest-02", "hostnqn": "", "interfaces": [ "eth0", "lo" ], "is_chroot": false, "iscsi_iqn": "", "kernel": "5.11.22-100.fc32.x86_64", "kernel_version": "#1 SMP Wed May 19 18:58:25 UTC 2021", "lo": { "active": true, "device": "lo", "ipv4": { "address": "127.0.0.1", "broadcast": "", "netmask": "255.0.0.0", "network": "127.0.0.0" }, "ipv6": [ { "address": "::1", "prefix": "128", "scope": "host" } ], "mtu": 65536, "promisc": false, "type": "loopback" }, "lsb": {}, "machine": "x86_64", "machine_id": "324372f63ebc40f49f2678d80a92b837", "memfree_mb": 1692, "memory_mb": { "nocache": { "free": 1850, "used": 126 }, "real": { "free": 1692, "total": 1976, "used": 284 }, "swap": { "cached": 0, "free": 0, "total": 0, "used": 0 } }, "memtotal_mb": 1976, "module_setup": true, "mounts": [ { "block_available": 775845, "block_size": 4096, "block_total": 1015472, "block_used": 239627, "device": "/dev/vda1", "fstype": "ext4", "inode_available": 235263, "inode_total": 262144, "inode_used": 26881, "mount": "/", "options": "rw,seclabel,relatime", "size_available": 3177861120, "size_total": 4159373312, "uuid": "450c38b7-9e89-4257-8d2f-915e2c3ab50d" } ], "nodename": "ibm-p8-kvm-03-guest-02.virt.pnr.lab.eng.rdu2.redhat.com", "os_family": "RedHat", "pkg_mgr": "dnf", "proc_cmdline": { "BOOT_IMAGE": "(hd0,msdos1)/boot/vmlinuz-5.11.22-100.fc32.x86_64", "console": [ "tty1", "ttyS0,115200n8" ], "net.ifnames": "0", "no_timer_check": true, "ro": true, "root": "UUID=450c38b7-9e89-4257-8d2f-915e2c3ab50d" }, "processor": [ "0", "GenuineIntel", "Intel(R) Xeon(R) Platinum 8168 CPU @ 2.70GHz", "1", "GenuineIntel", "Intel(R) Xeon(R) Platinum 8168 CPU @ 2.70GHz", "2", "GenuineIntel", "Intel(R) Xeon(R) Platinum 8168 CPU @ 2.70GHz", "3", "GenuineIntel", "Intel(R) Xeon(R) Platinum 8168 CPU @ 2.70GHz" ], "processor_cores": 1, "processor_count": 4, "processor_threads_per_core": 1, "processor_vcpus": 4, "product_name": "Standard PC (i440FX + PIIX, 1996)", "product_serial": "NA", "product_uuid": "NA", "product_version": "pc-i440fx-4.2", "python": { "executable": "/usr/bin/python3", "has_sslcontext": true, "type": "cpython", "version": { "major": 3, "micro": 10, "minor": 8, "releaselevel": "final", "serial": 0 }, "version_info": [ 3, 8, 10, "final", 0 ] }, "python_version": "3.8.10", "real_group_id": 0, "real_user_id": 0, "selinux": { "config_mode": "enforcing", "mode": "enforcing", "policyvers": 33, "status": "enabled", "type": "targeted" }, "selinux_python_present": true, "service_mgr": "systemd", "ssh_host_key_dsa_public": "AAAAB3NzaC1kc3MAAACBALyWS+RicsPcpOyJ674fp6MCyXk68l9l3UTCAuO0hBR3LnVSEZ4BgzJE8toZAmqw8Nz6mEAlMwnUXj00u9TtZk72b7VejFlyp0OBqhDNpysP9mfux3vyKl/UsDz3bieBph1bn4rDp6xYyoqOxoQlgoFRkJl+yImsCm+ugEcfEfDlAAAAFQCeacKbpJueFDF/jH+n0D7JAsN64QAAAIBD19uL9gVtVgL78/ME7M/nul6Iq7e1+NazOd6XXqM0+07RG9lU0QuBM9N0L3tTzzWyiUTnpZFeSd5EED2HxlUzZZwH/yQxA3GOY3oPoTmzAY7UV2WaB5aix/lmGjdZCi2BaWX9kAvWpxQc/Y/yz3qcQKM4ooJmoB5XcVho3IlRtgAAAIEAhnfwxyXOne32ymHafke7HCrhBAcVCm3YnInSZPFq8/hsVMYHtm0kVceFfFfb9NSXoq9mBN2C/IwZzN4nr24pL9MqprF0+SVi4nUi0n6YPsa/ZwXey/II0H/9yiEBQux6d8Xuwda2UwO8JxaCXEvfaW8bdqk15xb7vZ1UBF+SifM=", "ssh_host_key_ecdsa_public": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBCg4/flJeGcRfTExtqnfaHZcPwyKWMHr/wFRBdVgPFbPkzl9zyE4S3za/D/I7BfZdjXVVFOKR797/sQttssdeqI=", "ssh_host_key_ed25519_public": "AAAAC3NzaC1lZDI1NTE5AAAAIKiOp1+1k/bna1RO2J3bADu52sov7U4pN6TiYVlB2cYQ", "ssh_host_key_rsa_public": "AAAAB3NzaC1yc2EAAAADAQABAAABgQC6ralpOcWn0wWO7lAs8SwF7mjidw50MIjq0Oj+JO4R4JI95ytI7IV5MQsez1fExyj17JxTv93f6/0561VRbZZ/aX238NXHE3eAIIo7GU3sKal7yW4h7mXRwV/QSohsD+f8C+RZa3m7oMV138aEqBFRoZyyfeojOxVpVRtRV4Q6qU14lz30leE+H2l0b5LgJX5I0amOB2otFV2DsCTtHCwzRO2ruyZA2C5Q90EG0yGrTd/fzmNNCTUaJtj/3jz1F8L3VcmPo2Tck2daF2Zt+kCp9NkM8n6/cpwCrQ7BCCgC8BBmsoFvMoX79TySM9nM6NJkbpADNR1GMtfVwd7Wl/6j8eJr563/V4jbK4Xii1gdj6vEIl+oozgdsywGWeus3T6xDUI3Fu2mkF/P7Nq3QgJvUBHyOPbyPX0b8G54VtOqSP8xjSLF25pswl72luJz30ns49slWj1AFpgQfWaFp6MEwAyPDd9OxzvWOmx/GPTdZWa9uR9/f34NK3G6MIWM8NE=", "swapfree_mb": 0, "swaptotal_mb": 0, "system": "Linux", "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", "38", "39", "40+ep" ], "system_capabilities_enforced": "True", "system_vendor": "QEMU", "uptime_seconds": 10, "user_dir": "/root", "user_gecos": "root", "user_gid": 0, "user_id": "root", "user_shell": "/bin/bash", "user_uid": 0, "userspace_architecture": "x86_64", "userspace_bits": "64", "virtualization_role": "guest", "virtualization_type": "kvm" } } TASK [Install required packages for nbde_client tests] ************************* task path: /tmp/tmpagnzt5h5/tests/tasks/setup_test.yml:24 changed: [/cache/fedora-32.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: cryptsetup-2.3.5-2.fc32.x86_64"]} TASK [Clone nbde_server role for the tests] ************************************ task path: /tmp/tmpagnzt5h5/tests/tasks/setup_test.yml:28 ok: [/cache/fedora-32.qcow2] => {"after": "c57d0b1f3384c525738fa26ba4bdca485e162567", "before": "c57d0b1f3384c525738fa26ba4bdca485e162567", "changed": false, "remote_url_changed": false} TASK [Deploy NBDE server for testing] ****************************************** task path: /tmp/tmpagnzt5h5/tests/tasks/setup_test.yml:35 TASK [/tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server : Set version specific variables] *** task path: /tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server/tasks/main.yml:6 ok: [/cache/fedora-32.qcow2] => {"ansible_facts": {"__nbde_server_cachedir": "/var/cache/tang", "__nbde_server_group": "tang", "__nbde_server_keydir": "/var/db/tang", "__nbde_server_keygen": "/usr/libexec/tangd-keygen", "__nbde_server_packages": ["tang"], "__nbde_server_services": ["tangd.socket"], "__nbde_server_update": "/usr/libexec/tangd-update", "__nbde_server_user": "tang"}, "ansible_included_var_files": ["/tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server/vars/default.yml"], "changed": false} TASK [/tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server : Include the appropriate provider tasks] *** task path: /tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server/tasks/main.yml:20 included: /tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server/tasks/main-tang.yml for /cache/fedora-32.qcow2 TASK [/tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server : Ensure tang is installed] *** task path: /tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server/tasks/main-tang.yml:2 changed: [/cache/fedora-32.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: tang-10-1.fc32.x86_64", "Installed: libjose-11-1.fc32.x86_64", "Installed: http-parser-2.9.3-2.fc32.x86_64", "Installed: jose-11-1.fc32.x86_64"]} TASK [/tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server : Ensure keys are rotated] *** task path: /tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server/tasks/main-tang.yml:7 skipping: [/cache/fedora-32.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [/tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server : Ensure we have keys] *** task path: /tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server/tasks/main-tang.yml:16 changed: [/cache/fedora-32.qcow2] => {"arguments": {"cachedir": "/var/cache/tang", "force": false, "keydir": "/var/db/tang", "keygen": "/usr/libexec/tangd-keygen", "keys_to_deploy_dir": null, "state": "keys-created", "update": "/usr/libexec/tangd-update"}, "changed": true, "state": "keys-created"} TASK [/tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server : Perform key management (fetch/deploy) tasks] *** task path: /tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server/tasks/main-tang.yml:25 skipping: [/cache/fedora-32.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [/tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server : Ensure required services are enabled and at the right state] *** task path: /tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server/tasks/main-tang.yml:29 changed: [/cache/fedora-32.qcow2] => (item=tangd.socket) => {"ansible_loop_var": "item", "changed": true, "enabled": true, "item": "tangd.socket", "name": "tangd.socket", "state": "started", "status": {"Accept": "yes", "ActiveEnterTimestampMonotonic": "0", "ActiveExitTimestampMonotonic": "0", "ActiveState": "inactive", "After": "sysinit.target system.slice", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "no", "AssertTimestampMonotonic": "0", "Backlog": "4096", "Before": "sockets.target shutdown.target", "BindIPv6Only": "default", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "Broadcast": "no", "CPUAccounting": "yes", "CPUAffinity": "", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "[not set]", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanIsolate": "no", "CanReload": "no", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "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 cap_perfmon cap_bpf cap_checkpoint_restore", "CollectMode": "inactive", "ConditionResult": "no", "ConditionTimestampMonotonic": "0", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target", "ControlPID": "0", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "DeferAcceptUSec": "0", "Delegate": "no", "Description": "Tang Server socket", "DevicePolicy": "auto", "DirectoryMode": "0755", "DynamicUser": "no", "EffectiveCPUs": "", "EffectiveMemoryNodes": "", "FailureAction": "none", "FileDescriptorName": "tangd.socket", "FinalKillSignal": "9", "FragmentPath": "/usr/lib/systemd/system/tangd.socket", "FreeBind": "no", "GID": "[not set]", "IOAccounting": "no", "IOReadBytes": "18446744073709551615", "IOReadOperations": "18446744073709551615", "IOSchedulingClass": "0", "IOSchedulingPriority": "0", "IOWeight": "[not set]", "IOWriteBytes": "18446744073709551615", "IOWriteOperations": "18446744073709551615", "IPAccounting": "no", "IPEgressBytes": "[no data]", "IPEgressPackets": "[no data]", "IPIngressBytes": "[no data]", "IPIngressPackets": "[no data]", "IPTOS": "-1", "IPTTL": "-1", "Id": "tangd.socket", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestampMonotonic": "0", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeepAlive": "no", "KeepAliveIntervalUSec": "0", "KeepAliveProbes": "0", "KeepAliveTimeUSec": "0", "KeyringMode": "shared", "KillMode": "control-group", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "infinity", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "65536", "LimitMEMLOCKSoft": "65536", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "524288", "LimitNOFILESoft": "1024", "LimitNPROC": "7782", "LimitNPROCSoft": "7782", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "7782", "LimitSIGPENDINGSoft": "7782", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "Listen": "[::]:80 (Stream)", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "Mark": "-1", "MaxConnections": "64", "MaxConnectionsPerSource": "0", "MemoryAccounting": "yes", "MemoryCurrent": "[not set]", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MessageQueueMaxMessages": "0", "MessageQueueMessageSize": "0", "MountAPIVFS": "no", "MountFlags": "", "NAccepted": "0", "NConnections": "0", "NRefused": "0", "NUMAMask": "", "NUMAPolicy": "n/a", "Names": "tangd.socket", "NeedDaemonReload": "no", "Nice": "0", "NoDelay": "no", "NoNewPrivileges": "no", "NonBlocking": "no", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PassCredentials": "no", "PassSecurity": "no", "Perpetual": "no", "PipeSize": "0", "Priority": "-1", "PrivateDevices": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProtectClock": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectHostname": "no", "ProtectKernelLogs": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectSystem": "no", "ReceiveBuffer": "0", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemoveIPC": "no", "RemoveOnStop": "no", "Requires": "sysinit.target system.slice", "RestartKillSignal": "15", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "ReusePort": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "SameProcessGroup": "no", "SecureBits": "0", "SendBuffer": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "SocketMode": "0666", "SocketProtocol": "0", "StandardError": "inherit", "StandardInput": "null", "StandardInputData": "", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestampMonotonic": "0", "StateDirectoryMode": "0755", "StopWhenUnneeded": "no", "SubState": "dead", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "[not set]", "TasksMax": "2334", "TimeoutCleanUSec": "infinity", "TimeoutUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Transparent": "no", "TriggerLimitBurst": "200", "TriggerLimitIntervalUSec": "2s", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "disabled", "UnitFileState": "disabled", "UtmpMode": "init", "WatchdogSignal": "6", "Writable": "no"}} TASK [Create device for testing] *********************************************** task path: /tmp/tmpagnzt5h5/tests/tasks/setup_test.yml:39 ok: [/cache/fedora-32.qcow2] => {"changed": false, "cmd": ["fallocate", "-l64m", "/tmp/.nbde_client_dev_test"], "delta": "0:00:00.005866", "end": "2021-06-08 16:18:02.409878", "rc": 0, "start": "2021-06-08 16:18:02.404012", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Format test device as LUKS] ********************************************** task path: /tmp/tmpagnzt5h5/tests/tasks/setup_test.yml:43 ok: [/cache/fedora-32.qcow2] => {"changed": false, "cmd": "set -euo pipefail; echo -n test-password-here | cryptsetup luksFormat --pbkdf pbkdf2 --pbkdf-force-iterations 1000 --batch-mode --force-password /tmp/.nbde_client_dev_test", "delta": "0:00:00.142818", "end": "2021-06-08 16:18:02.900116", "rc": 0, "start": "2021-06-08 16:18:02.757298", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Create key file for test device] ***************************************** task path: /tmp/tmpagnzt5h5/tests/tasks/setup_test.yml:51 ok: [/cache/fedora-32.qcow2] => {"changed": false, "cmd": "echo -n test-password-here > /tmp/.nbde_client_dev_encryption_key\n", "delta": "0:00:00.004122", "end": "2021-06-08 16:18:03.396640", "rc": 0, "start": "2021-06-08 16:18:03.392518", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Use nbde_client role] **************************************************** task path: /tmp/tmpagnzt5h5/tests/tests_passphrase_temporary_keyfile.yml:21 TASK [linux-system-roles.nbde_client : Set version specific variables] ********* task path: /tmp/tmpagnzt5h5/tasks/main.yml:4 ok: [/cache/fedora-32.qcow2] => {"ansible_facts": {"__nbde_client_initramfs_update_cmd": "dracut -f", "__nbde_client_packages": ["clevis", "clevis-dracut", "clevis-luks", "clevis-systemd"]}, "ansible_included_var_files": ["/tmp/tmpagnzt5h5/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.nbde_client : Include the appropriate provider tasks] *** task path: /tmp/tmpagnzt5h5/tasks/main.yml:17 included: /tmp/tmpagnzt5h5/tasks/main-clevis.yml for /cache/fedora-32.qcow2 TASK [linux-system-roles.nbde_client : Ensure required packages are installed] *** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:2 changed: [/cache/fedora-32.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: oniguruma-6.9.5-4.rev1.fc32.x86_64", "Installed: tpm2-tools-4.1.3-1.fc32.x86_64", "Installed: tpm2-tss-2.4.4-1.fc32.x86_64", "Installed: clevis-18-1.fc32.x86_64", "Installed: clevis-dracut-18-1.fc32.x86_64", "Installed: clevis-luks-18-1.fc32.x86_64", "Installed: clevis-systemd-18-1.fc32.x86_64", "Installed: dracut-network-050-61.git20200529.fc32.x86_64", "Installed: libluksmeta-9-8.fc32.x86_64", "Installed: jq-1.6-4.fc32.x86_64", "Installed: luksmeta-9-8.fc32.x86_64"]} TASK [linux-system-roles.nbde_client : Check whether devices are at the desired state] *** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:7 changed: [/cache/fedora-32.qcow2] => {"changed": true, "original_bindings": [{"device": "/tmp/.nbde_client_dev_test", "encryption_key_src": "/tmp/.nbde_client_dev_encryption_key", "password_temporary": true, "servers": ["http://localhost"], "slot": 1, "state": "present", "threshold": 1}, {"device": "/tmp/.nbde_client_dev_test", "password_temporary": false, "servers": ["http://localhost"], "slot": 1, "state": "present", "threshold": 1}]} TASK [linux-system-roles.nbde_client : Create temporary directory to hold key files] *** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:17 changed: [/cache/fedora-32.qcow2] => {"changed": true, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/tmp/ansible.anbbmbbtnbde_client_encryption_keys", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 4096, "state": "directory", "uid": 0} TASK [linux-system-roles.nbde_client : Ensure we transfer key files] *********** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:25 changed: [/cache/fedora-32.qcow2] => (item=/tmp/.nbde_client_dev_encryption_key) => {"ansible_loop_var": "item", "changed": true, "checksum": "ddcbbd80371add8b55e5288b1278a7ead06c422e", "dest": "/tmp/ansible.anbbmbbtnbde_client_encryption_keys/.nbde_client_dev_encryption_key", "gid": 0, "group": "root", "item": {"device": "/tmp/.nbde_client_dev_test", "encryption_key_src": "/tmp/.nbde_client_dev_encryption_key", "password_temporary": true, "servers": ["http://localhost"]}, "md5sum": "7e9df3be3334c1e2e9aa64d831cdb03d", "mode": "0400", "owner": "root", "secontext": "unconfined_u:object_r:admin_home_t:s0", "size": 18, "src": "/root/.ansible/tmp/ansible-tmp-1623169090.8376477-208567-139399877127212/source", "state": "file", "uid": 0} skipping: [/cache/fedora-32.qcow2] => (item=) => {"ansible_loop_var": "item", "changed": false, "item": {"device": "/tmp/.nbde_client_dev_test", "servers": ["http://localhost"]}, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.nbde_client : Perform clevis operations] ************** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:37 NOTIFIED HANDLER linux-system-roles.nbde_client : nbde_client update initramfs for /cache/fedora-32.qcow2 changed: [/cache/fedora-32.qcow2] => {"changed": true, "original_bindings": [{"device": "/tmp/.nbde_client_dev_test", "encryption_key": "/tmp/ansible.anbbmbbtnbde_client_encryption_keys/.nbde_client_dev_encryption_key", "encryption_key_src": "/tmp/.nbde_client_dev_encryption_key", "password_temporary": true, "servers": ["http://localhost"], "slot": 1, "state": "present", "threshold": 1}, {"device": "/tmp/.nbde_client_dev_test", "password_temporary": false, "servers": ["http://localhost"], "slot": 1, "state": "present", "threshold": 1}]} TASK [linux-system-roles.nbde_client : Remove temporary directory used to hold key files] *** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:47 changed: [/cache/fedora-32.qcow2] => {"changed": true, "path": "/tmp/ansible.anbbmbbtnbde_client_encryption_keys", "state": "absent"} TASK [Attempt to unlock device] ************************************************ task path: /tmp/tmpagnzt5h5/tests/tests_passphrase_temporary_keyfile.yml:25 included: /tmp/tmpagnzt5h5/tests/tasks/verify_unlock_device.yml for /cache/fedora-32.qcow2 TASK [Verify we can unlock the device] ***************************************** task path: /tmp/tmpagnzt5h5/tests/tasks/verify_unlock_device.yml:2 ok: [/cache/fedora-32.qcow2] => {"changed": false, "cmd": ["clevis", "luks", "unlock", "-d", "/tmp/.nbde_client_dev_test", "-n", "nbde_client_unlocked"], "delta": "0:00:03.810041", "end": "2021-06-08 16:18:27.548874", "rc": 0, "start": "2021-06-08 16:18:23.738833", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Close unlocked device] *************************************************** task path: /tmp/tmpagnzt5h5/tests/tasks/verify_unlock_device.yml:10 ok: [/cache/fedora-32.qcow2] => {"changed": false, "cmd": ["cryptsetup", "close", "nbde_client_unlocked"], "delta": "0:00:00.029797", "end": "2021-06-08 16:18:27.926457", "rc": 0, "start": "2021-06-08 16:18:27.896660", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Make sure the attempt to unlock succeeded] ******************************* task path: /tmp/tmpagnzt5h5/tests/tests_passphrase_temporary_keyfile.yml:28 ok: [/cache/fedora-32.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [copy the key file to the managed host] *********************************** task path: /tmp/tmpagnzt5h5/tests/tests_passphrase_temporary_keyfile.yml:34 changed: [/cache/fedora-32.qcow2] => {"changed": true, "checksum": "ddcbbd80371add8b55e5288b1278a7ead06c422e", "dest": "/tmp/.nbde_client_dev_encryption_key", "gid": 0, "group": "root", "md5sum": "7e9df3be3334c1e2e9aa64d831cdb03d", "mode": "0644", "owner": "root", "secontext": "unconfined_u:object_r:admin_home_t:s0", "size": 18, "src": "/root/.ansible/tmp/ansible-tmp-1623169108.3342738-208663-216215166274263/source", "state": "file", "uid": 0} TASK [Attempt to check whether default key file works] ************************* task path: /tmp/tmpagnzt5h5/tests/tests_passphrase_temporary_keyfile.yml:40 included: /tmp/tmpagnzt5h5/tests/tasks/verify_default_key_file.yml for /cache/fedora-32.qcow2 TASK [Verify the default key file works] *************************************** task path: /tmp/tmpagnzt5h5/tests/tasks/verify_default_key_file.yml:2 fatal: [/cache/fedora-32.qcow2]: FAILED! => {"changed": false, "cmd": ["cryptsetup", "open", "--test-passphrase", "/tmp/.nbde_client_dev_test", "--key-file", "/tmp/.nbde_client_dev_encryption_key"], "delta": "0:00:02.218298", "end": "2021-06-08 16:18:31.174119", "msg": "non-zero return code", "rc": 2, "start": "2021-06-08 16:18:28.955821", "stderr": "No key available with this passphrase.", "stderr_lines": ["No key available with this passphrase."], "stdout": "", "stdout_lines": []} ...ignoring TASK [Make sure the default key file did not work] ***************************** task path: /tmp/tmpagnzt5h5/tests/tests_passphrase_temporary_keyfile.yml:43 ok: [/cache/fedora-32.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Assert idempotency] ****************************************************** task path: /tmp/tmpagnzt5h5/tests/tests_passphrase_temporary_keyfile.yml:50 included: /tmp/tmpagnzt5h5/tests/tasks/verify_idempotency.yml for /cache/fedora-32.qcow2 TASK [Use nbde_client role - idempotency check] ******************************** task path: /tmp/tmpagnzt5h5/tests/tasks/verify_idempotency.yml:2 TASK [linux-system-roles.nbde_client : Set version specific variables] ********* task path: /tmp/tmpagnzt5h5/tasks/main.yml:4 ok: [/cache/fedora-32.qcow2] => {"ansible_facts": {"__nbde_client_initramfs_update_cmd": "dracut -f", "__nbde_client_packages": ["clevis", "clevis-dracut", "clevis-luks", "clevis-systemd"]}, "ansible_included_var_files": ["/tmp/tmpagnzt5h5/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.nbde_client : Include the appropriate provider tasks] *** task path: /tmp/tmpagnzt5h5/tasks/main.yml:17 included: /tmp/tmpagnzt5h5/tasks/main-clevis.yml for /cache/fedora-32.qcow2 TASK [linux-system-roles.nbde_client : Ensure required packages are installed] *** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:2 ok: [/cache/fedora-32.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [linux-system-roles.nbde_client : Check whether devices are at the desired state] *** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:7 ok: [/cache/fedora-32.qcow2] => {"changed": false, "original_bindings": [{"device": "/tmp/.nbde_client_dev_test", "encryption_key_src": "/tmp/.nbde_client_dev_encryption_key", "password_temporary": true, "servers": ["http://localhost"], "slot": 1, "state": "present", "threshold": 1}, {"device": "/tmp/.nbde_client_dev_test", "password_temporary": false, "servers": ["http://localhost"], "slot": 1, "state": "present", "threshold": 1}]} TASK [linux-system-roles.nbde_client : Create temporary directory to hold key files] *** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:17 skipping: [/cache/fedora-32.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.nbde_client : Ensure we transfer key files] *********** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:25 skipping: [/cache/fedora-32.qcow2] => (item=/tmp/.nbde_client_dev_encryption_key) => {"ansible_loop_var": "item", "changed": false, "item": {"device": "/tmp/.nbde_client_dev_test", "encryption_key_src": "/tmp/.nbde_client_dev_encryption_key", "password_temporary": true, "servers": ["http://localhost"]}, "skip_reason": "Conditional result was False"} skipping: [/cache/fedora-32.qcow2] => (item=) => {"ansible_loop_var": "item", "changed": false, "item": {"device": "/tmp/.nbde_client_dev_test", "servers": ["http://localhost"]}, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.nbde_client : Perform clevis operations] ************** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:37 skipping: [/cache/fedora-32.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.nbde_client : Remove temporary directory used to hold key files] *** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:47 skipping: [/cache/fedora-32.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify idempotency of clevis operations] ********************************* task path: /tmp/tmpagnzt5h5/tests/tasks/verify_idempotency.yml:6 ok: [/cache/fedora-32.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up test environment] *********************************************** task path: /tmp/tmpagnzt5h5/tests/tests_passphrase_temporary_keyfile.yml:54 included: /tmp/tmpagnzt5h5/tests/tasks/cleanup_test.yml for /cache/fedora-32.qcow2 TASK [Clean up dummy testing device] ******************************************* task path: /tmp/tmpagnzt5h5/tests/tasks/cleanup_test.yml:2 changed: [/cache/fedora-32.qcow2] => {"changed": true, "path": "/tmp/.nbde_client_dev_test", "state": "absent"} TASK [Clean up dummy key file] ************************************************* task path: /tmp/tmpagnzt5h5/tests/tasks/cleanup_test.yml:7 changed: [/cache/fedora-32.qcow2] => {"changed": true, "path": "/tmp/.nbde_client_dev_encryption_key", "state": "absent"} TASK [Clean up dummy key file on managed host] ********************************* task path: /tmp/tmpagnzt5h5/tests/tasks/cleanup_test.yml:13 changed: [/cache/fedora-32.qcow2] => {"changed": true, "path": "/tmp/.nbde_client_dev_encryption_key", "state": "absent"} RUNNING HANDLER [linux-system-roles.nbde_client : nbde_client update initramfs] *** task path: /tmp/tmpagnzt5h5/handlers/main.yml:4 changed: [/cache/fedora-32.qcow2] => {"changed": true, "cmd": ["dracut", "-f"], "delta": "0:00:19.107157", "end": "2021-06-08 16:18:59.063432", "rc": 0, "start": "2021-06-08 16:18:39.956275", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/fedora-32.qcow2 : ok=43 changed=15 unreachable=0 failed=0 skipped=7 rescued=0 ignored=1 + cd /tmp/tmpagnzt5h5/tests; TEST_SUBJECTS=/cache/fedora-32.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_nbde_client-50-792f563-fedora-32-dxfcttx2/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmpagnzt5h5/_setup.yml /tmp/tmpagnzt5h5/tests/tests_simple_bind.yml ansible-playbook 2.9.21 config file = /etc/ansible/ansible.cfg configured module search path = ['/home/tester/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.8/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 3.8.10 (default, May 4 2021, 00:00:00) [GCC 10.2.1 20201125 (Red Hat 10.2.1-9)] Using /etc/ansible/ansible.cfg as config file Skipping callback 'actionable', as we already have a stdout callback. Skipping callback 'counter_enabled', as we already have a stdout callback. Skipping callback 'debug', as we already have a stdout callback. Skipping callback 'dense', as we already have a stdout callback. Skipping callback 'dense', as we already have a stdout callback. Skipping callback 'full_skip', as we already have a stdout callback. Skipping callback 'json', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'null', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. Skipping callback 'selective', as we already have a stdout callback. Skipping callback 'skippy', as we already have a stdout callback. Skipping callback 'stderr', as we already have a stdout callback. Skipping callback 'unixy', as we already have a stdout callback. Skipping callback 'yaml', as we already have a stdout callback. PLAYBOOK: _setup.yml *********************************************************** 1 plays in /tmp/tmpagnzt5h5/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmpagnzt5h5/_setup.yml:5 ok: [/cache/fedora-32.qcow2] => { "groups": { "all": [ "/cache/fedora-32.qcow2" ], "localhost": [ "/cache/fedora-32.qcow2" ], "subjects": [ "/cache/fedora-32.qcow2" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmpagnzt5h5/_setup.yml:7 skipping: [/cache/fedora-32.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/fedora-32.qcow2 : ok=1 changed=0 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 PLAYBOOK: tests_simple_bind.yml ************************************************ 1 plays in /tmp/tmpagnzt5h5/tests/tests_simple_bind.yml PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpagnzt5h5/tests/tests_simple_bind.yml:2 ok: [/cache/fedora-32.qcow2] META: ran handlers TASK [Set up test environment] ************************************************* task path: /tmp/tmpagnzt5h5/tests/tests_simple_bind.yml:12 included: /tmp/tmpagnzt5h5/tests/tasks/setup_test.yml for /cache/fedora-32.qcow2 TASK [Include general tests variables] ***************************************** task path: /tmp/tmpagnzt5h5/tests/tasks/setup_test.yml:2 ok: [/cache/fedora-32.qcow2] => {"ansible_facts": {"nbde_client_test_device": "/tmp/.nbde_client_dev_test", "nbde_client_test_encryption_key_src": "/tmp/.nbde_client_dev_encryption_key", "nbde_client_test_pass": "test-password-here", "nbde_client_test_roles_dir": "/tmp/.nbde_client_dev_roles"}, "ansible_included_var_files": ["/tmp/tmpagnzt5h5/tests/vars/main.yml"], "changed": false} TASK [Set version specific variables] ****************************************** task path: /tmp/tmpagnzt5h5/tests/tasks/setup_test.yml:5 ok: [/cache/fedora-32.qcow2] => {"ansible_facts": {"nbde_client_test_packages": ["cryptsetup"]}, "ansible_included_var_files": ["/tmp/tmpagnzt5h5/tests/vars/Fedora.yml"], "changed": false} TASK [Print all available facts] *********************************************** task path: /tmp/tmpagnzt5h5/tests/tasks/setup_test.yml:20 ok: [/cache/fedora-32.qcow2] => { "ansible_facts": { "all_ipv4_addresses": [ "10.0.2.15" ], "all_ipv6_addresses": [ "fec0::5054:ff:fe12:3456", "fe80::5054:ff:fe12:3456" ], "ansible_local": {}, "apparmor": { "status": "disabled" }, "architecture": "x86_64", "bios_date": "04/01/2014", "bios_version": "1.13.0-2.fc32", "cmdline": { "BOOT_IMAGE": "(hd0,msdos1)/boot/vmlinuz-5.11.22-100.fc32.x86_64", "console": "ttyS0,115200n8", "net.ifnames": "0", "no_timer_check": true, "ro": true, "root": "UUID=450c38b7-9e89-4257-8d2f-915e2c3ab50d" }, "date_time": { "date": "2021-06-08", "day": "08", "epoch": "1623169153", "hour": "16", "iso8601": "2021-06-08T16:19:13Z", "iso8601_basic": "20210608T161913059305", "iso8601_basic_short": "20210608T161913", "iso8601_micro": "2021-06-08T16:19:13.059305Z", "minute": "19", "month": "06", "second": "13", "time": "16:19:13", "tz": "UTC", "tz_offset": "+0000", "weekday": "Tuesday", "weekday_number": "2", "weeknumber": "23", "year": "2021" }, "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" }, "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" }, "device_links": { "ids": { "sr0": [ "ata-QEMU_DVD-ROM_QM00003" ] }, "labels": { "sr0": [ "cidata" ] }, "masters": {}, "uuids": { "sr0": [ "2021-06-08-16-18-59-00" ], "vda1": [ "450c38b7-9e89-4257-8d2f-915e2c3ab50d" ] } }, "devices": { "sr0": { "holders": [], "host": "", "links": { "ids": [ "ata-QEMU_DVD-ROM_QM00003" ], "labels": [ "cidata" ], "masters": [], "uuids": [ "2021-06-08-16-18-59-00" ] }, "model": "QEMU DVD-ROM", "partitions": {}, "removable": "1", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "bfq", "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": [ "450c38b7-9e89-4257-8d2f-915e2c3ab50d" ] }, "sectors": "8386560", "sectorsize": 512, "size": "4.00 GB", "start": "2048", "uuid": "450c38b7-9e89-4257-8d2f-915e2c3ab50d" } }, "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": "512", "vendor": "0x1af4", "virtual": 1 } }, "distribution": "Fedora", "distribution_file_parsed": true, "distribution_file_path": "/etc/redhat-release", "distribution_file_variety": "RedHat", "distribution_major_version": "32", "distribution_release": "", "distribution_version": "32", "dns": { "nameservers": [ "10.0.2.3" ], "search": [ "virt.pnr.lab.eng.rdu2.redhat.com" ] }, "domain": "virt.pnr.lab.eng.rdu2.redhat.com", "effective_group_id": 0, "effective_user_id": 0, "env": { "DBUS_SESSION_BUS_ADDRESS": "unix:path=/run/user/0/bus", "HOME": "/root", "LANG": "en_US.UTF-8", "LC_CTYPE": "C.UTF-8", "LESSOPEN": "||/usr/bin/lesspipe.sh %s", "LOGNAME": "root", "LS_COLORS": "", "MOTD_SHOWN": "pam", "PATH": "/root/.local/bin:/root/bin:/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 47138 22", "SSH_CONNECTION": "10.0.2.2 47138 10.0.2.15 22", "SSH_TTY": "/dev/pts/0", "USER": "root", "XDG_RUNTIME_DIR": "/run/user/0", "XDG_SESSION_CLASS": "user", "XDG_SESSION_ID": "1", "XDG_SESSION_TYPE": "tty", "_": "/usr/bin/python3" }, "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" }, "fibre_channel_wwn": [], "fips": false, "form_factor": "Other", "fqdn": "ibm-p8-kvm-03-guest-02.virt.pnr.lab.eng.rdu2.redhat.com", "gather_subset": [ "all" ], "hostname": "ibm-p8-kvm-03-guest-02", "hostnqn": "", "interfaces": [ "eth0", "lo" ], "is_chroot": false, "iscsi_iqn": "", "kernel": "5.11.22-100.fc32.x86_64", "kernel_version": "#1 SMP Wed May 19 18:58:25 UTC 2021", "lo": { "active": true, "device": "lo", "ipv4": { "address": "127.0.0.1", "broadcast": "", "netmask": "255.0.0.0", "network": "127.0.0.0" }, "ipv6": [ { "address": "::1", "prefix": "128", "scope": "host" } ], "mtu": 65536, "promisc": false, "type": "loopback" }, "lsb": {}, "machine": "x86_64", "machine_id": "e69e83e26cd8407890f627d4da273753", "memfree_mb": 1692, "memory_mb": { "nocache": { "free": 1849, "used": 127 }, "real": { "free": 1692, "total": 1976, "used": 284 }, "swap": { "cached": 0, "free": 0, "total": 0, "used": 0 } }, "memtotal_mb": 1976, "module_setup": true, "mounts": [ { "block_available": 775845, "block_size": 4096, "block_total": 1015472, "block_used": 239627, "device": "/dev/vda1", "fstype": "ext4", "inode_available": 235263, "inode_total": 262144, "inode_used": 26881, "mount": "/", "options": "rw,seclabel,relatime", "size_available": 3177861120, "size_total": 4159373312, "uuid": "450c38b7-9e89-4257-8d2f-915e2c3ab50d" } ], "nodename": "ibm-p8-kvm-03-guest-02.virt.pnr.lab.eng.rdu2.redhat.com", "os_family": "RedHat", "pkg_mgr": "dnf", "proc_cmdline": { "BOOT_IMAGE": "(hd0,msdos1)/boot/vmlinuz-5.11.22-100.fc32.x86_64", "console": [ "tty1", "ttyS0,115200n8" ], "net.ifnames": "0", "no_timer_check": true, "ro": true, "root": "UUID=450c38b7-9e89-4257-8d2f-915e2c3ab50d" }, "processor": [ "0", "GenuineIntel", "Intel(R) Xeon(R) Platinum 8168 CPU @ 2.70GHz", "1", "GenuineIntel", "Intel(R) Xeon(R) Platinum 8168 CPU @ 2.70GHz", "2", "GenuineIntel", "Intel(R) Xeon(R) Platinum 8168 CPU @ 2.70GHz", "3", "GenuineIntel", "Intel(R) Xeon(R) Platinum 8168 CPU @ 2.70GHz" ], "processor_cores": 1, "processor_count": 4, "processor_threads_per_core": 1, "processor_vcpus": 4, "product_name": "Standard PC (i440FX + PIIX, 1996)", "product_serial": "NA", "product_uuid": "NA", "product_version": "pc-i440fx-4.2", "python": { "executable": "/usr/bin/python3", "has_sslcontext": true, "type": "cpython", "version": { "major": 3, "micro": 10, "minor": 8, "releaselevel": "final", "serial": 0 }, "version_info": [ 3, 8, 10, "final", 0 ] }, "python_version": "3.8.10", "real_group_id": 0, "real_user_id": 0, "selinux": { "config_mode": "enforcing", "mode": "enforcing", "policyvers": 33, "status": "enabled", "type": "targeted" }, "selinux_python_present": true, "service_mgr": "systemd", "ssh_host_key_dsa_public": "AAAAB3NzaC1kc3MAAACBAPnUQz+8FxcDubanQ1MO3TrmLYOuFVgJTDPOYS+dpVMcrOgaO4yX92c+ueu5OzCFs42G3FrRZYGMlqVgKErMupph7Ya76mZSmWbI8AVZ74D8hhxVut52hYpEBDe1v82zmY6viB/bKYRiBhL1xLRhYIrmHmkHE7CC1gSns3aohaDnAAAAFQD9wQxOacJN/kInosz1A0kZfSE+qwAAAIAB0GBD4xWu87tnNmUisCu774e0/EOCGzsfGAdE6QaFCYPhTi25e6lXOxMZSWb5hP0mhZkDSOLJhkhjw4pDT1sBdLK/9JvMlnz/G0bA4YJpm2ZBWM1mmHnFCYQTvLOkTOtpoybRnp5YWFfjF49g1W5U0uXvIFf/cS9c027xcnMLLgAAAIEA44+LeOaDbf+xLCkIOnbkp4YT+OZSEDYzPqAeKJI6bspIcXKN2H1cY977/CgHSE5gTponn7qUlnYaf4sNgZqjeE08UALSLOGsjJtqicWhB7LdX9W9U3nG1CBws+CMeS7tyIw4OBSlmeRjS54h1IQV+pN/QtmETT4h+zvC2tSnQEo=", "ssh_host_key_ecdsa_public": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBKqz7KFMdmldDJeSGeQX8s6la+75XN39zO8SALMoefPoAnSJOWESAax0dMbKHlc8W8GSXdcKWvZpFnUCtfzK01g=", "ssh_host_key_ed25519_public": "AAAAC3NzaC1lZDI1NTE5AAAAIN80nY09qL6lV+mMeBYsddiNMmilwStSwbv23HsKLJzy", "ssh_host_key_rsa_public": "AAAAB3NzaC1yc2EAAAADAQABAAABgQChYk7+KU9iN4ai1YjTsCg42l6zpCJSOUmL2Qk9kmMdv91EcwimPzjBlCuBXl2lVGAbqb6NxcO0q9Hszq46HBtFKxVz9GQNOOsB3T6/urvMmEaqxVnQtu/q+sYA8R8s9bT9QxDOXYlkVFI2TW7zPkEZIbcqNlBAxTqBBDOvumGY9XjgWii1aPNoqbMI6cgSauemDHjf+mQYnt6Rc8QsGHWUbvP/AA4mZLGk641gyxvlVM7I9wmNr8ZUryvgUuSdZ7uhc1DhGxch97rwwFOxc8f8dE8ewQN8sprv4RwCc6GNwrcoJTaC/mT4ZpcIJ7aI/ZXP/98OF7zzYX1MXKn2iZZ49S51yi+3aUvI8DjJ6t539qVxY/kDmt9lY1fWJ2592fjvfGomw9IvuFWByvajOok5YxvqWV7YHUkfus3G99qwxBo8ao3AP3U83/tqjFQDxwJ16t3lxOmsUzW/ok8LnJKqeybDvjITIymQyP3hBKfqbgfcizmCuNdh122ZGx9C06E=", "swapfree_mb": 0, "swaptotal_mb": 0, "system": "Linux", "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", "38", "39", "40+ep" ], "system_capabilities_enforced": "True", "system_vendor": "QEMU", "uptime_seconds": 11, "user_dir": "/root", "user_gecos": "root", "user_gid": 0, "user_id": "root", "user_shell": "/bin/bash", "user_uid": 0, "userspace_architecture": "x86_64", "userspace_bits": "64", "virtualization_role": "guest", "virtualization_type": "kvm" } } TASK [Install required packages for nbde_client tests] ************************* task path: /tmp/tmpagnzt5h5/tests/tasks/setup_test.yml:24 changed: [/cache/fedora-32.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: cryptsetup-2.3.5-2.fc32.x86_64"]} TASK [Clone nbde_server role for the tests] ************************************ task path: /tmp/tmpagnzt5h5/tests/tasks/setup_test.yml:28 ok: [/cache/fedora-32.qcow2] => {"after": "c57d0b1f3384c525738fa26ba4bdca485e162567", "before": "c57d0b1f3384c525738fa26ba4bdca485e162567", "changed": false, "remote_url_changed": false} TASK [Deploy NBDE server for testing] ****************************************** task path: /tmp/tmpagnzt5h5/tests/tasks/setup_test.yml:35 TASK [/tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server : Set version specific variables] *** task path: /tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server/tasks/main.yml:6 ok: [/cache/fedora-32.qcow2] => {"ansible_facts": {"__nbde_server_cachedir": "/var/cache/tang", "__nbde_server_group": "tang", "__nbde_server_keydir": "/var/db/tang", "__nbde_server_keygen": "/usr/libexec/tangd-keygen", "__nbde_server_packages": ["tang"], "__nbde_server_services": ["tangd.socket"], "__nbde_server_update": "/usr/libexec/tangd-update", "__nbde_server_user": "tang"}, "ansible_included_var_files": ["/tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server/vars/default.yml"], "changed": false} TASK [/tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server : Include the appropriate provider tasks] *** task path: /tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server/tasks/main.yml:20 included: /tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server/tasks/main-tang.yml for /cache/fedora-32.qcow2 TASK [/tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server : Ensure tang is installed] *** task path: /tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server/tasks/main-tang.yml:2 changed: [/cache/fedora-32.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: tang-10-1.fc32.x86_64", "Installed: libjose-11-1.fc32.x86_64", "Installed: http-parser-2.9.3-2.fc32.x86_64", "Installed: jose-11-1.fc32.x86_64"]} TASK [/tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server : Ensure keys are rotated] *** task path: /tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server/tasks/main-tang.yml:7 skipping: [/cache/fedora-32.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [/tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server : Ensure we have keys] *** task path: /tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server/tasks/main-tang.yml:16 changed: [/cache/fedora-32.qcow2] => {"arguments": {"cachedir": "/var/cache/tang", "force": false, "keydir": "/var/db/tang", "keygen": "/usr/libexec/tangd-keygen", "keys_to_deploy_dir": null, "state": "keys-created", "update": "/usr/libexec/tangd-update"}, "changed": true, "state": "keys-created"} TASK [/tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server : Perform key management (fetch/deploy) tasks] *** task path: /tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server/tasks/main-tang.yml:25 skipping: [/cache/fedora-32.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [/tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server : Ensure required services are enabled and at the right state] *** task path: /tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server/tasks/main-tang.yml:29 changed: [/cache/fedora-32.qcow2] => (item=tangd.socket) => {"ansible_loop_var": "item", "changed": true, "enabled": true, "item": "tangd.socket", "name": "tangd.socket", "state": "started", "status": {"Accept": "yes", "ActiveEnterTimestampMonotonic": "0", "ActiveExitTimestampMonotonic": "0", "ActiveState": "inactive", "After": "system.slice sysinit.target", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "no", "AssertTimestampMonotonic": "0", "Backlog": "4096", "Before": "shutdown.target sockets.target", "BindIPv6Only": "default", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "Broadcast": "no", "CPUAccounting": "yes", "CPUAffinity": "", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "[not set]", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanIsolate": "no", "CanReload": "no", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "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 cap_perfmon cap_bpf cap_checkpoint_restore", "CollectMode": "inactive", "ConditionResult": "no", "ConditionTimestampMonotonic": "0", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target", "ControlPID": "0", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "DeferAcceptUSec": "0", "Delegate": "no", "Description": "Tang Server socket", "DevicePolicy": "auto", "DirectoryMode": "0755", "DynamicUser": "no", "EffectiveCPUs": "", "EffectiveMemoryNodes": "", "FailureAction": "none", "FileDescriptorName": "tangd.socket", "FinalKillSignal": "9", "FragmentPath": "/usr/lib/systemd/system/tangd.socket", "FreeBind": "no", "GID": "[not set]", "IOAccounting": "no", "IOReadBytes": "18446744073709551615", "IOReadOperations": "18446744073709551615", "IOSchedulingClass": "0", "IOSchedulingPriority": "0", "IOWeight": "[not set]", "IOWriteBytes": "18446744073709551615", "IOWriteOperations": "18446744073709551615", "IPAccounting": "no", "IPEgressBytes": "[no data]", "IPEgressPackets": "[no data]", "IPIngressBytes": "[no data]", "IPIngressPackets": "[no data]", "IPTOS": "-1", "IPTTL": "-1", "Id": "tangd.socket", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestampMonotonic": "0", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeepAlive": "no", "KeepAliveIntervalUSec": "0", "KeepAliveProbes": "0", "KeepAliveTimeUSec": "0", "KeyringMode": "shared", "KillMode": "control-group", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "infinity", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "65536", "LimitMEMLOCKSoft": "65536", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "524288", "LimitNOFILESoft": "1024", "LimitNPROC": "7782", "LimitNPROCSoft": "7782", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "7782", "LimitSIGPENDINGSoft": "7782", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "Listen": "[::]:80 (Stream)", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "Mark": "-1", "MaxConnections": "64", "MaxConnectionsPerSource": "0", "MemoryAccounting": "yes", "MemoryCurrent": "[not set]", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MessageQueueMaxMessages": "0", "MessageQueueMessageSize": "0", "MountAPIVFS": "no", "MountFlags": "", "NAccepted": "0", "NConnections": "0", "NRefused": "0", "NUMAMask": "", "NUMAPolicy": "n/a", "Names": "tangd.socket", "NeedDaemonReload": "no", "Nice": "0", "NoDelay": "no", "NoNewPrivileges": "no", "NonBlocking": "no", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PassCredentials": "no", "PassSecurity": "no", "Perpetual": "no", "PipeSize": "0", "Priority": "-1", "PrivateDevices": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProtectClock": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectHostname": "no", "ProtectKernelLogs": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectSystem": "no", "ReceiveBuffer": "0", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemoveIPC": "no", "RemoveOnStop": "no", "Requires": "system.slice sysinit.target", "RestartKillSignal": "15", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "ReusePort": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "SameProcessGroup": "no", "SecureBits": "0", "SendBuffer": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "SocketMode": "0666", "SocketProtocol": "0", "StandardError": "inherit", "StandardInput": "null", "StandardInputData": "", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestampMonotonic": "0", "StateDirectoryMode": "0755", "StopWhenUnneeded": "no", "SubState": "dead", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "[not set]", "TasksMax": "2334", "TimeoutCleanUSec": "infinity", "TimeoutUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Transparent": "no", "TriggerLimitBurst": "200", "TriggerLimitIntervalUSec": "2s", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "disabled", "UnitFileState": "disabled", "UtmpMode": "init", "WatchdogSignal": "6", "Writable": "no"}} TASK [Create device for testing] *********************************************** task path: /tmp/tmpagnzt5h5/tests/tasks/setup_test.yml:39 ok: [/cache/fedora-32.qcow2] => {"changed": false, "cmd": ["fallocate", "-l64m", "/tmp/.nbde_client_dev_test"], "delta": "0:00:00.005013", "end": "2021-06-08 16:20:01.634141", "rc": 0, "start": "2021-06-08 16:20:01.629128", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Format test device as LUKS] ********************************************** task path: /tmp/tmpagnzt5h5/tests/tasks/setup_test.yml:43 ok: [/cache/fedora-32.qcow2] => {"changed": false, "cmd": "set -euo pipefail; echo -n test-password-here | cryptsetup luksFormat --pbkdf pbkdf2 --pbkdf-force-iterations 1000 --batch-mode --force-password /tmp/.nbde_client_dev_test", "delta": "0:00:00.141860", "end": "2021-06-08 16:20:02.107932", "rc": 0, "start": "2021-06-08 16:20:01.966072", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Create key file for test device] ***************************************** task path: /tmp/tmpagnzt5h5/tests/tasks/setup_test.yml:51 ok: [/cache/fedora-32.qcow2] => {"changed": false, "cmd": "echo -n test-password-here > /tmp/.nbde_client_dev_encryption_key\n", "delta": "0:00:00.004008", "end": "2021-06-08 16:20:03.340570", "rc": 0, "start": "2021-06-08 16:20:03.336562", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Use nbde_client role] **************************************************** task path: /tmp/tmpagnzt5h5/tests/tests_simple_bind.yml:17 TASK [linux-system-roles.nbde_client : Set version specific variables] ********* task path: /tmp/tmpagnzt5h5/tasks/main.yml:4 ok: [/cache/fedora-32.qcow2] => {"ansible_facts": {"__nbde_client_initramfs_update_cmd": "dracut -f", "__nbde_client_packages": ["clevis", "clevis-dracut", "clevis-luks", "clevis-systemd"]}, "ansible_included_var_files": ["/tmp/tmpagnzt5h5/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.nbde_client : Include the appropriate provider tasks] *** task path: /tmp/tmpagnzt5h5/tasks/main.yml:17 included: /tmp/tmpagnzt5h5/tasks/main-clevis.yml for /cache/fedora-32.qcow2 TASK [linux-system-roles.nbde_client : Ensure required packages are installed] *** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:2 changed: [/cache/fedora-32.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: oniguruma-6.9.5-4.rev1.fc32.x86_64", "Installed: tpm2-tools-4.1.3-1.fc32.x86_64", "Installed: tpm2-tss-2.4.4-1.fc32.x86_64", "Installed: clevis-18-1.fc32.x86_64", "Installed: clevis-dracut-18-1.fc32.x86_64", "Installed: clevis-luks-18-1.fc32.x86_64", "Installed: clevis-systemd-18-1.fc32.x86_64", "Installed: dracut-network-050-61.git20200529.fc32.x86_64", "Installed: libluksmeta-9-8.fc32.x86_64", "Installed: jq-1.6-4.fc32.x86_64", "Installed: luksmeta-9-8.fc32.x86_64"]} TASK [linux-system-roles.nbde_client : Check whether devices are at the desired state] *** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:7 changed: [/cache/fedora-32.qcow2] => {"changed": true, "original_bindings": [{"device": "/tmp/.nbde_client_dev_test", "encryption_password": "test-password-here", "password_temporary": false, "servers": ["http://localhost"], "slot": 1, "state": "present", "threshold": 1}]} TASK [linux-system-roles.nbde_client : Create temporary directory to hold key files] *** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:17 changed: [/cache/fedora-32.qcow2] => {"changed": true, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/tmp/ansible.z_coqo7inbde_client_encryption_keys", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 4096, "state": "directory", "uid": 0} TASK [linux-system-roles.nbde_client : Ensure we transfer key files] *********** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:25 skipping: [/cache/fedora-32.qcow2] => (item=) => {"ansible_loop_var": "item", "changed": false, "item": {"device": "/tmp/.nbde_client_dev_test", "encryption_password": "test-password-here", "servers": ["http://localhost"]}, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.nbde_client : Perform clevis operations] ************** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:37 NOTIFIED HANDLER linux-system-roles.nbde_client : nbde_client update initramfs for /cache/fedora-32.qcow2 changed: [/cache/fedora-32.qcow2] => {"changed": true, "original_bindings": [{"device": "/tmp/.nbde_client_dev_test", "encryption_password": "test-password-here", "password_temporary": false, "servers": ["http://localhost"], "slot": 1, "state": "present", "threshold": 1}]} TASK [linux-system-roles.nbde_client : Remove temporary directory used to hold key files] *** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:47 changed: [/cache/fedora-32.qcow2] => {"changed": true, "path": "/tmp/ansible.z_coqo7inbde_client_encryption_keys", "state": "absent"} TASK [Attempt to unlock device] ************************************************ task path: /tmp/tmpagnzt5h5/tests/tests_simple_bind.yml:21 included: /tmp/tmpagnzt5h5/tests/tasks/verify_unlock_device.yml for /cache/fedora-32.qcow2 TASK [Verify we can unlock the device] ***************************************** task path: /tmp/tmpagnzt5h5/tests/tasks/verify_unlock_device.yml:2 ok: [/cache/fedora-32.qcow2] => {"changed": false, "cmd": ["clevis", "luks", "unlock", "-d", "/tmp/.nbde_client_dev_test", "-n", "nbde_client_unlocked"], "delta": "0:00:03.433049", "end": "2021-06-08 16:20:20.404001", "rc": 0, "start": "2021-06-08 16:20:16.970952", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Close unlocked device] *************************************************** task path: /tmp/tmpagnzt5h5/tests/tasks/verify_unlock_device.yml:10 ok: [/cache/fedora-32.qcow2] => {"changed": false, "cmd": ["cryptsetup", "close", "nbde_client_unlocked"], "delta": "0:00:00.031698", "end": "2021-06-08 16:20:20.762925", "rc": 0, "start": "2021-06-08 16:20:20.731227", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Make sure the attempt to unlock succeeded] ******************************* task path: /tmp/tmpagnzt5h5/tests/tests_simple_bind.yml:24 ok: [/cache/fedora-32.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Assert idempotency] ****************************************************** task path: /tmp/tmpagnzt5h5/tests/tests_simple_bind.yml:30 included: /tmp/tmpagnzt5h5/tests/tasks/verify_idempotency.yml for /cache/fedora-32.qcow2 TASK [Use nbde_client role - idempotency check] ******************************** task path: /tmp/tmpagnzt5h5/tests/tasks/verify_idempotency.yml:2 TASK [linux-system-roles.nbde_client : Set version specific variables] ********* task path: /tmp/tmpagnzt5h5/tasks/main.yml:4 ok: [/cache/fedora-32.qcow2] => {"ansible_facts": {"__nbde_client_initramfs_update_cmd": "dracut -f", "__nbde_client_packages": ["clevis", "clevis-dracut", "clevis-luks", "clevis-systemd"]}, "ansible_included_var_files": ["/tmp/tmpagnzt5h5/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.nbde_client : Include the appropriate provider tasks] *** task path: /tmp/tmpagnzt5h5/tasks/main.yml:17 included: /tmp/tmpagnzt5h5/tasks/main-clevis.yml for /cache/fedora-32.qcow2 TASK [linux-system-roles.nbde_client : Ensure required packages are installed] *** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:2 ok: [/cache/fedora-32.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [linux-system-roles.nbde_client : Check whether devices are at the desired state] *** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:7 ok: [/cache/fedora-32.qcow2] => {"changed": false, "original_bindings": [{"device": "/tmp/.nbde_client_dev_test", "encryption_password": "test-password-here", "password_temporary": false, "servers": ["http://localhost"], "slot": 1, "state": "present", "threshold": 1}]} TASK [linux-system-roles.nbde_client : Create temporary directory to hold key files] *** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:17 skipping: [/cache/fedora-32.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.nbde_client : Ensure we transfer key files] *********** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:25 skipping: [/cache/fedora-32.qcow2] => (item=) => {"ansible_loop_var": "item", "changed": false, "item": {"device": "/tmp/.nbde_client_dev_test", "encryption_password": "test-password-here", "servers": ["http://localhost"]}, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.nbde_client : Perform clevis operations] ************** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:37 skipping: [/cache/fedora-32.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.nbde_client : Remove temporary directory used to hold key files] *** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:47 skipping: [/cache/fedora-32.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify idempotency of clevis operations] ********************************* task path: /tmp/tmpagnzt5h5/tests/tasks/verify_idempotency.yml:6 ok: [/cache/fedora-32.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up test environment] *********************************************** task path: /tmp/tmpagnzt5h5/tests/tests_simple_bind.yml:34 included: /tmp/tmpagnzt5h5/tests/tasks/cleanup_test.yml for /cache/fedora-32.qcow2 TASK [Clean up dummy testing device] ******************************************* task path: /tmp/tmpagnzt5h5/tests/tasks/cleanup_test.yml:2 changed: [/cache/fedora-32.qcow2] => {"changed": true, "path": "/tmp/.nbde_client_dev_test", "state": "absent"} TASK [Clean up dummy key file] ************************************************* task path: /tmp/tmpagnzt5h5/tests/tasks/cleanup_test.yml:7 changed: [/cache/fedora-32.qcow2] => {"changed": true, "path": "/tmp/.nbde_client_dev_encryption_key", "state": "absent"} TASK [Clean up dummy key file on managed host] ********************************* task path: /tmp/tmpagnzt5h5/tests/tasks/cleanup_test.yml:13 ok: [/cache/fedora-32.qcow2] => {"changed": false, "path": "/tmp/.nbde_client_dev_encryption_key", "state": "absent"} RUNNING HANDLER [linux-system-roles.nbde_client : nbde_client update initramfs] *** task path: /tmp/tmpagnzt5h5/handlers/main.yml:4 changed: [/cache/fedora-32.qcow2] => {"changed": true, "cmd": ["dracut", "-f"], "delta": "0:00:18.803999", "end": "2021-06-08 16:20:46.124012", "rc": 0, "start": "2021-06-08 16:20:27.320013", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/fedora-32.qcow2 : ok=38 changed=12 unreachable=0 failed=0 skipped=8 rescued=0 ignored=0 + cd /tmp/tmpagnzt5h5/tests; TEST_SUBJECTS=/cache/fedora-32.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_nbde_client-50-792f563-fedora-32-dxfcttx2/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmpagnzt5h5/_setup.yml /tmp/tmpagnzt5h5/tests/tests_simple_bind_keyfile.yml ansible-playbook 2.9.21 config file = /etc/ansible/ansible.cfg configured module search path = ['/home/tester/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.8/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 3.8.10 (default, May 4 2021, 00:00:00) [GCC 10.2.1 20201125 (Red Hat 10.2.1-9)] Using /etc/ansible/ansible.cfg as config file Skipping callback 'actionable', as we already have a stdout callback. Skipping callback 'counter_enabled', as we already have a stdout callback. Skipping callback 'debug', as we already have a stdout callback. Skipping callback 'dense', as we already have a stdout callback. Skipping callback 'dense', as we already have a stdout callback. Skipping callback 'full_skip', as we already have a stdout callback. Skipping callback 'json', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'null', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. Skipping callback 'selective', as we already have a stdout callback. Skipping callback 'skippy', as we already have a stdout callback. Skipping callback 'stderr', as we already have a stdout callback. Skipping callback 'unixy', as we already have a stdout callback. Skipping callback 'yaml', as we already have a stdout callback. PLAYBOOK: _setup.yml *********************************************************** 1 plays in /tmp/tmpagnzt5h5/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmpagnzt5h5/_setup.yml:5 ok: [/cache/fedora-32.qcow2] => { "groups": { "all": [ "/cache/fedora-32.qcow2" ], "localhost": [ "/cache/fedora-32.qcow2" ], "subjects": [ "/cache/fedora-32.qcow2" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmpagnzt5h5/_setup.yml:7 skipping: [/cache/fedora-32.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/fedora-32.qcow2 : ok=1 changed=0 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 PLAYBOOK: tests_simple_bind_keyfile.yml **************************************** 1 plays in /tmp/tmpagnzt5h5/tests/tests_simple_bind_keyfile.yml PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpagnzt5h5/tests/tests_simple_bind_keyfile.yml:2 ok: [/cache/fedora-32.qcow2] META: ran handlers TASK [Set up test environment] ************************************************* task path: /tmp/tmpagnzt5h5/tests/tests_simple_bind_keyfile.yml:12 included: /tmp/tmpagnzt5h5/tests/tasks/setup_test.yml for /cache/fedora-32.qcow2 TASK [Include general tests variables] ***************************************** task path: /tmp/tmpagnzt5h5/tests/tasks/setup_test.yml:2 ok: [/cache/fedora-32.qcow2] => {"ansible_facts": {"nbde_client_test_device": "/tmp/.nbde_client_dev_test", "nbde_client_test_encryption_key_src": "/tmp/.nbde_client_dev_encryption_key", "nbde_client_test_pass": "test-password-here", "nbde_client_test_roles_dir": "/tmp/.nbde_client_dev_roles"}, "ansible_included_var_files": ["/tmp/tmpagnzt5h5/tests/vars/main.yml"], "changed": false} TASK [Set version specific variables] ****************************************** task path: /tmp/tmpagnzt5h5/tests/tasks/setup_test.yml:5 ok: [/cache/fedora-32.qcow2] => {"ansible_facts": {"nbde_client_test_packages": ["cryptsetup"]}, "ansible_included_var_files": ["/tmp/tmpagnzt5h5/tests/vars/Fedora.yml"], "changed": false} TASK [Print all available facts] *********************************************** task path: /tmp/tmpagnzt5h5/tests/tasks/setup_test.yml:20 ok: [/cache/fedora-32.qcow2] => { "ansible_facts": { "all_ipv4_addresses": [ "10.0.2.15" ], "all_ipv6_addresses": [ "fec0::5054:ff:fe12:3456", "fe80::5054:ff:fe12:3456" ], "ansible_local": {}, "apparmor": { "status": "disabled" }, "architecture": "x86_64", "bios_date": "04/01/2014", "bios_version": "1.13.0-2.fc32", "cmdline": { "BOOT_IMAGE": "(hd0,msdos1)/boot/vmlinuz-5.11.22-100.fc32.x86_64", "console": "ttyS0,115200n8", "net.ifnames": "0", "no_timer_check": true, "ro": true, "root": "UUID=450c38b7-9e89-4257-8d2f-915e2c3ab50d" }, "date_time": { "date": "2021-06-08", "day": "08", "epoch": "1623169260", "hour": "16", "iso8601": "2021-06-08T16:21:00Z", "iso8601_basic": "20210608T162100731695", "iso8601_basic_short": "20210608T162100", "iso8601_micro": "2021-06-08T16:21:00.731695Z", "minute": "21", "month": "06", "second": "00", "time": "16:21:00", "tz": "UTC", "tz_offset": "+0000", "weekday": "Tuesday", "weekday_number": "2", "weeknumber": "23", "year": "2021" }, "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" }, "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" }, "device_links": { "ids": { "sr0": [ "ata-QEMU_DVD-ROM_QM00003" ] }, "labels": { "sr0": [ "cidata" ] }, "masters": {}, "uuids": { "sr0": [ "2021-06-08-16-20-47-00" ], "vda1": [ "450c38b7-9e89-4257-8d2f-915e2c3ab50d" ] } }, "devices": { "sr0": { "holders": [], "host": "", "links": { "ids": [ "ata-QEMU_DVD-ROM_QM00003" ], "labels": [ "cidata" ], "masters": [], "uuids": [ "2021-06-08-16-20-47-00" ] }, "model": "QEMU DVD-ROM", "partitions": {}, "removable": "1", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "bfq", "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": [ "450c38b7-9e89-4257-8d2f-915e2c3ab50d" ] }, "sectors": "8386560", "sectorsize": 512, "size": "4.00 GB", "start": "2048", "uuid": "450c38b7-9e89-4257-8d2f-915e2c3ab50d" } }, "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": "512", "vendor": "0x1af4", "virtual": 1 } }, "distribution": "Fedora", "distribution_file_parsed": true, "distribution_file_path": "/etc/redhat-release", "distribution_file_variety": "RedHat", "distribution_major_version": "32", "distribution_release": "", "distribution_version": "32", "dns": { "nameservers": [ "10.0.2.3" ], "search": [ "virt.pnr.lab.eng.rdu2.redhat.com" ] }, "domain": "virt.pnr.lab.eng.rdu2.redhat.com", "effective_group_id": 0, "effective_user_id": 0, "env": { "DBUS_SESSION_BUS_ADDRESS": "unix:path=/run/user/0/bus", "HOME": "/root", "LANG": "en_US.UTF-8", "LC_CTYPE": "C.UTF-8", "LESSOPEN": "||/usr/bin/lesspipe.sh %s", "LOGNAME": "root", "LS_COLORS": "", "MOTD_SHOWN": "pam", "PATH": "/root/.local/bin:/root/bin:/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 54746 22", "SSH_CONNECTION": "10.0.2.2 54746 10.0.2.15 22", "SSH_TTY": "/dev/pts/0", "USER": "root", "XDG_RUNTIME_DIR": "/run/user/0", "XDG_SESSION_CLASS": "user", "XDG_SESSION_ID": "1", "XDG_SESSION_TYPE": "tty", "_": "/usr/bin/python3" }, "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" }, "fibre_channel_wwn": [], "fips": false, "form_factor": "Other", "fqdn": "ibm-p8-kvm-03-guest-02.virt.pnr.lab.eng.rdu2.redhat.com", "gather_subset": [ "all" ], "hostname": "ibm-p8-kvm-03-guest-02", "hostnqn": "", "interfaces": [ "eth0", "lo" ], "is_chroot": false, "iscsi_iqn": "", "kernel": "5.11.22-100.fc32.x86_64", "kernel_version": "#1 SMP Wed May 19 18:58:25 UTC 2021", "lo": { "active": true, "device": "lo", "ipv4": { "address": "127.0.0.1", "broadcast": "", "netmask": "255.0.0.0", "network": "127.0.0.0" }, "ipv6": [ { "address": "::1", "prefix": "128", "scope": "host" } ], "mtu": 65536, "promisc": false, "type": "loopback" }, "lsb": {}, "machine": "x86_64", "machine_id": "aef8cc1262e246d5a9891d59d588ae82", "memfree_mb": 1692, "memory_mb": { "nocache": { "free": 1850, "used": 126 }, "real": { "free": 1692, "total": 1976, "used": 284 }, "swap": { "cached": 0, "free": 0, "total": 0, "used": 0 } }, "memtotal_mb": 1976, "module_setup": true, "mounts": [ { "block_available": 775845, "block_size": 4096, "block_total": 1015472, "block_used": 239627, "device": "/dev/vda1", "fstype": "ext4", "inode_available": 235263, "inode_total": 262144, "inode_used": 26881, "mount": "/", "options": "rw,seclabel,relatime", "size_available": 3177861120, "size_total": 4159373312, "uuid": "450c38b7-9e89-4257-8d2f-915e2c3ab50d" } ], "nodename": "ibm-p8-kvm-03-guest-02.virt.pnr.lab.eng.rdu2.redhat.com", "os_family": "RedHat", "pkg_mgr": "dnf", "proc_cmdline": { "BOOT_IMAGE": "(hd0,msdos1)/boot/vmlinuz-5.11.22-100.fc32.x86_64", "console": [ "tty1", "ttyS0,115200n8" ], "net.ifnames": "0", "no_timer_check": true, "ro": true, "root": "UUID=450c38b7-9e89-4257-8d2f-915e2c3ab50d" }, "processor": [ "0", "GenuineIntel", "Intel(R) Xeon(R) Platinum 8168 CPU @ 2.70GHz", "1", "GenuineIntel", "Intel(R) Xeon(R) Platinum 8168 CPU @ 2.70GHz", "2", "GenuineIntel", "Intel(R) Xeon(R) Platinum 8168 CPU @ 2.70GHz", "3", "GenuineIntel", "Intel(R) Xeon(R) Platinum 8168 CPU @ 2.70GHz" ], "processor_cores": 1, "processor_count": 4, "processor_threads_per_core": 1, "processor_vcpus": 4, "product_name": "Standard PC (i440FX + PIIX, 1996)", "product_serial": "NA", "product_uuid": "NA", "product_version": "pc-i440fx-4.2", "python": { "executable": "/usr/bin/python3", "has_sslcontext": true, "type": "cpython", "version": { "major": 3, "micro": 10, "minor": 8, "releaselevel": "final", "serial": 0 }, "version_info": [ 3, 8, 10, "final", 0 ] }, "python_version": "3.8.10", "real_group_id": 0, "real_user_id": 0, "selinux": { "config_mode": "enforcing", "mode": "enforcing", "policyvers": 33, "status": "enabled", "type": "targeted" }, "selinux_python_present": true, "service_mgr": "systemd", "ssh_host_key_dsa_public": "AAAAB3NzaC1kc3MAAACBAPAL4QP3/ksV7Tq6N5xFSz/JhnpufwlMgruK1ZbZ9L97V5aIjN0SUwq0TcDJodiH6ZPrcC+czUF/S2CbPg1Fqo+AYRFVJnl633am8t2/0WYNNGWsXLL3aNoljNspyDAPcO6MH1sbOgvqC2YjxH+oxsF2ve1bTafYu+vm0f8Wt9eZAAAAFQCA8yZdY1JmMfffNNNmJNqOfZWVmQAAAIEAkGJmRhIC2vclOS72kmX2QnJlk6NNKOhNGvw6wZao4yDiuvRa8gkgFdkzsBTKt3T/pX+ES6gCSuwPCaMBsDJOsZ/aNq+m/bSNJ+VlcSDe7IMnbZq6AIA49Q5UlWwHzIZaxYhn1dVrqhxVqXue/YfUk244Xn4tgUpohikoKsmsol4AAACAA7+4aUhMKYO1jQw1ybyYWKrOWdwTH1f3XqBsqVxJ3aDdxP8guV3lqKTTwl2/4O+IqlwwsCaYfWtEoVRq69DY9x8HNShzB/z3jrzvOa3NMmAMjeSI8CEl58cLafXtWfwBL0PjbewfItdBm2aLCgYSCehHTW+9m2FOumeWT7f7kVU=", "ssh_host_key_ecdsa_public": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBPmqwTKyeaSMqcBoLVXgQ5oCoUbqrM2T/mZKS2AWEx9cgt8dXnFi+1S0QAo1eoy6Nr/Px2KkLnE82gzAVqb7184=", "ssh_host_key_ed25519_public": "AAAAC3NzaC1lZDI1NTE5AAAAIKnirqeln50uurDGPeUxOcxkZ1JQGQlKI4B3KRuuhmP7", "ssh_host_key_rsa_public": "AAAAB3NzaC1yc2EAAAADAQABAAABgQDAystMYOV2Za2GbkVgg26bG2m2VHCIouHHLUkD+J1gi+Rpn9DUSS7qt4gDGlHFL2ArPPy+8wHLg7hfjwC4AkMGXpvnIPS2IWhBv+6h+JBzGITQlqppVl4buntZRjh9FNrfmZ8wFEe0e6jT3oLfJK2DOTXVMOGmpFwoPuq4BcgLcfqJekWufqnLEsTK2rq8yY0esgMmIc6xHgnXNb2/+y7yXfubODsrmH390eMj0xrTDZgyuNHJG/LFjwvSJbG1xMfODoNZ9Hal3bEpv1aa7DF3UaYjeW2aqBzv7kb/NqVufQtU9BxzdxOAYMIRYuL+ITb/+wNW13SgE5+4yz+BDx19rCcmkulOAFhd+G4HkxBVzitCXFjNIUK2r+78FcKaijfb3vzJPrHhXUy13+dop2ukgkbT11XIVGFyrK7ILUZvccv3UiMnvQJyRemet5/AtBebzXG7M0nQzmw5Kd74C5iPsuxQCIAsRQT8b0HkYuXmTTcn16nMFxJP4o+5I4vq0xs=", "swapfree_mb": 0, "swaptotal_mb": 0, "system": "Linux", "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", "38", "39", "40+ep" ], "system_capabilities_enforced": "True", "system_vendor": "QEMU", "uptime_seconds": 11, "user_dir": "/root", "user_gecos": "root", "user_gid": 0, "user_id": "root", "user_shell": "/bin/bash", "user_uid": 0, "userspace_architecture": "x86_64", "userspace_bits": "64", "virtualization_role": "guest", "virtualization_type": "kvm" } } TASK [Install required packages for nbde_client tests] ************************* task path: /tmp/tmpagnzt5h5/tests/tasks/setup_test.yml:24 changed: [/cache/fedora-32.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: cryptsetup-2.3.5-2.fc32.x86_64"]} TASK [Clone nbde_server role for the tests] ************************************ task path: /tmp/tmpagnzt5h5/tests/tasks/setup_test.yml:28 ok: [/cache/fedora-32.qcow2] => {"after": "c57d0b1f3384c525738fa26ba4bdca485e162567", "before": "c57d0b1f3384c525738fa26ba4bdca485e162567", "changed": false, "remote_url_changed": false} TASK [Deploy NBDE server for testing] ****************************************** task path: /tmp/tmpagnzt5h5/tests/tasks/setup_test.yml:35 TASK [/tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server : Set version specific variables] *** task path: /tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server/tasks/main.yml:6 ok: [/cache/fedora-32.qcow2] => {"ansible_facts": {"__nbde_server_cachedir": "/var/cache/tang", "__nbde_server_group": "tang", "__nbde_server_keydir": "/var/db/tang", "__nbde_server_keygen": "/usr/libexec/tangd-keygen", "__nbde_server_packages": ["tang"], "__nbde_server_services": ["tangd.socket"], "__nbde_server_update": "/usr/libexec/tangd-update", "__nbde_server_user": "tang"}, "ansible_included_var_files": ["/tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server/vars/default.yml"], "changed": false} TASK [/tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server : Include the appropriate provider tasks] *** task path: /tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server/tasks/main.yml:20 included: /tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server/tasks/main-tang.yml for /cache/fedora-32.qcow2 TASK [/tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server : Ensure tang is installed] *** task path: /tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server/tasks/main-tang.yml:2 changed: [/cache/fedora-32.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: tang-10-1.fc32.x86_64", "Installed: libjose-11-1.fc32.x86_64", "Installed: http-parser-2.9.3-2.fc32.x86_64", "Installed: jose-11-1.fc32.x86_64"]} TASK [/tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server : Ensure keys are rotated] *** task path: /tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server/tasks/main-tang.yml:7 skipping: [/cache/fedora-32.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [/tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server : Ensure we have keys] *** task path: /tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server/tasks/main-tang.yml:16 changed: [/cache/fedora-32.qcow2] => {"arguments": {"cachedir": "/var/cache/tang", "force": false, "keydir": "/var/db/tang", "keygen": "/usr/libexec/tangd-keygen", "keys_to_deploy_dir": null, "state": "keys-created", "update": "/usr/libexec/tangd-update"}, "changed": true, "state": "keys-created"} TASK [/tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server : Perform key management (fetch/deploy) tasks] *** task path: /tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server/tasks/main-tang.yml:25 skipping: [/cache/fedora-32.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [/tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server : Ensure required services are enabled and at the right state] *** task path: /tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server/tasks/main-tang.yml:29 changed: [/cache/fedora-32.qcow2] => (item=tangd.socket) => {"ansible_loop_var": "item", "changed": true, "enabled": true, "item": "tangd.socket", "name": "tangd.socket", "state": "started", "status": {"Accept": "yes", "ActiveEnterTimestampMonotonic": "0", "ActiveExitTimestampMonotonic": "0", "ActiveState": "inactive", "After": "sysinit.target system.slice", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "no", "AssertTimestampMonotonic": "0", "Backlog": "4096", "Before": "sockets.target shutdown.target", "BindIPv6Only": "default", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "Broadcast": "no", "CPUAccounting": "yes", "CPUAffinity": "", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "[not set]", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanIsolate": "no", "CanReload": "no", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "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 cap_perfmon cap_bpf cap_checkpoint_restore", "CollectMode": "inactive", "ConditionResult": "no", "ConditionTimestampMonotonic": "0", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target", "ControlPID": "0", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "DeferAcceptUSec": "0", "Delegate": "no", "Description": "Tang Server socket", "DevicePolicy": "auto", "DirectoryMode": "0755", "DynamicUser": "no", "EffectiveCPUs": "", "EffectiveMemoryNodes": "", "FailureAction": "none", "FileDescriptorName": "tangd.socket", "FinalKillSignal": "9", "FragmentPath": "/usr/lib/systemd/system/tangd.socket", "FreeBind": "no", "GID": "[not set]", "IOAccounting": "no", "IOReadBytes": "18446744073709551615", "IOReadOperations": "18446744073709551615", "IOSchedulingClass": "0", "IOSchedulingPriority": "0", "IOWeight": "[not set]", "IOWriteBytes": "18446744073709551615", "IOWriteOperations": "18446744073709551615", "IPAccounting": "no", "IPEgressBytes": "[no data]", "IPEgressPackets": "[no data]", "IPIngressBytes": "[no data]", "IPIngressPackets": "[no data]", "IPTOS": "-1", "IPTTL": "-1", "Id": "tangd.socket", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestampMonotonic": "0", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeepAlive": "no", "KeepAliveIntervalUSec": "0", "KeepAliveProbes": "0", "KeepAliveTimeUSec": "0", "KeyringMode": "shared", "KillMode": "control-group", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "infinity", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "65536", "LimitMEMLOCKSoft": "65536", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "524288", "LimitNOFILESoft": "1024", "LimitNPROC": "7782", "LimitNPROCSoft": "7782", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "7782", "LimitSIGPENDINGSoft": "7782", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "Listen": "[::]:80 (Stream)", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "Mark": "-1", "MaxConnections": "64", "MaxConnectionsPerSource": "0", "MemoryAccounting": "yes", "MemoryCurrent": "[not set]", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MessageQueueMaxMessages": "0", "MessageQueueMessageSize": "0", "MountAPIVFS": "no", "MountFlags": "", "NAccepted": "0", "NConnections": "0", "NRefused": "0", "NUMAMask": "", "NUMAPolicy": "n/a", "Names": "tangd.socket", "NeedDaemonReload": "no", "Nice": "0", "NoDelay": "no", "NoNewPrivileges": "no", "NonBlocking": "no", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PassCredentials": "no", "PassSecurity": "no", "Perpetual": "no", "PipeSize": "0", "Priority": "-1", "PrivateDevices": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProtectClock": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectHostname": "no", "ProtectKernelLogs": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectSystem": "no", "ReceiveBuffer": "0", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemoveIPC": "no", "RemoveOnStop": "no", "Requires": "sysinit.target system.slice", "RestartKillSignal": "15", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "ReusePort": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "SameProcessGroup": "no", "SecureBits": "0", "SendBuffer": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "SocketMode": "0666", "SocketProtocol": "0", "StandardError": "inherit", "StandardInput": "null", "StandardInputData": "", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestampMonotonic": "0", "StateDirectoryMode": "0755", "StopWhenUnneeded": "no", "SubState": "dead", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "[not set]", "TasksMax": "2334", "TimeoutCleanUSec": "infinity", "TimeoutUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Transparent": "no", "TriggerLimitBurst": "200", "TriggerLimitIntervalUSec": "2s", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "disabled", "UnitFileState": "disabled", "UtmpMode": "init", "WatchdogSignal": "6", "Writable": "no"}} TASK [Create device for testing] *********************************************** task path: /tmp/tmpagnzt5h5/tests/tasks/setup_test.yml:39 ok: [/cache/fedora-32.qcow2] => {"changed": false, "cmd": ["fallocate", "-l64m", "/tmp/.nbde_client_dev_test"], "delta": "0:00:00.004939", "end": "2021-06-08 16:21:47.321093", "rc": 0, "start": "2021-06-08 16:21:47.316154", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Format test device as LUKS] ********************************************** task path: /tmp/tmpagnzt5h5/tests/tasks/setup_test.yml:43 ok: [/cache/fedora-32.qcow2] => {"changed": false, "cmd": "set -euo pipefail; echo -n test-password-here | cryptsetup luksFormat --pbkdf pbkdf2 --pbkdf-force-iterations 1000 --batch-mode --force-password /tmp/.nbde_client_dev_test", "delta": "0:00:00.143428", "end": "2021-06-08 16:21:47.804171", "rc": 0, "start": "2021-06-08 16:21:47.660743", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Create key file for test device] ***************************************** task path: /tmp/tmpagnzt5h5/tests/tasks/setup_test.yml:51 ok: [/cache/fedora-32.qcow2] => {"changed": false, "cmd": "echo -n test-password-here > /tmp/.nbde_client_dev_encryption_key\n", "delta": "0:00:00.004078", "end": "2021-06-08 16:21:48.727901", "rc": 0, "start": "2021-06-08 16:21:48.723823", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Use nbde_client role] **************************************************** task path: /tmp/tmpagnzt5h5/tests/tests_simple_bind_keyfile.yml:17 TASK [linux-system-roles.nbde_client : Set version specific variables] ********* task path: /tmp/tmpagnzt5h5/tasks/main.yml:4 ok: [/cache/fedora-32.qcow2] => {"ansible_facts": {"__nbde_client_initramfs_update_cmd": "dracut -f", "__nbde_client_packages": ["clevis", "clevis-dracut", "clevis-luks", "clevis-systemd"]}, "ansible_included_var_files": ["/tmp/tmpagnzt5h5/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.nbde_client : Include the appropriate provider tasks] *** task path: /tmp/tmpagnzt5h5/tasks/main.yml:17 included: /tmp/tmpagnzt5h5/tasks/main-clevis.yml for /cache/fedora-32.qcow2 TASK [linux-system-roles.nbde_client : Ensure required packages are installed] *** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:2 changed: [/cache/fedora-32.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: oniguruma-6.9.5-4.rev1.fc32.x86_64", "Installed: tpm2-tools-4.1.3-1.fc32.x86_64", "Installed: tpm2-tss-2.4.4-1.fc32.x86_64", "Installed: clevis-18-1.fc32.x86_64", "Installed: clevis-dracut-18-1.fc32.x86_64", "Installed: clevis-luks-18-1.fc32.x86_64", "Installed: clevis-systemd-18-1.fc32.x86_64", "Installed: dracut-network-050-61.git20200529.fc32.x86_64", "Installed: libluksmeta-9-8.fc32.x86_64", "Installed: jq-1.6-4.fc32.x86_64", "Installed: luksmeta-9-8.fc32.x86_64"]} TASK [linux-system-roles.nbde_client : Check whether devices are at the desired state] *** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:7 changed: [/cache/fedora-32.qcow2] => {"changed": true, "original_bindings": [{"device": "/tmp/.nbde_client_dev_test", "encryption_key_src": "/tmp/.nbde_client_dev_encryption_key", "password_temporary": false, "servers": ["http://localhost"], "slot": 1, "state": "present", "threshold": 1}]} TASK [linux-system-roles.nbde_client : Create temporary directory to hold key files] *** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:17 changed: [/cache/fedora-32.qcow2] => {"changed": true, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/tmp/ansible.iy97035gnbde_client_encryption_keys", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 4096, "state": "directory", "uid": 0} TASK [linux-system-roles.nbde_client : Ensure we transfer key files] *********** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:25 changed: [/cache/fedora-32.qcow2] => (item=/tmp/.nbde_client_dev_encryption_key) => {"ansible_loop_var": "item", "changed": true, "checksum": "ddcbbd80371add8b55e5288b1278a7ead06c422e", "dest": "/tmp/ansible.iy97035gnbde_client_encryption_keys/.nbde_client_dev_encryption_key", "gid": 0, "group": "root", "item": {"device": "/tmp/.nbde_client_dev_test", "encryption_key_src": "/tmp/.nbde_client_dev_encryption_key", "servers": ["http://localhost"]}, "md5sum": "7e9df3be3334c1e2e9aa64d831cdb03d", "mode": "0400", "owner": "root", "secontext": "unconfined_u:object_r:admin_home_t:s0", "size": 18, "src": "/root/.ansible/tmp/ansible-tmp-1623169316.8858492-209797-25729629244108/source", "state": "file", "uid": 0} TASK [linux-system-roles.nbde_client : Perform clevis operations] ************** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:37 NOTIFIED HANDLER linux-system-roles.nbde_client : nbde_client update initramfs for /cache/fedora-32.qcow2 changed: [/cache/fedora-32.qcow2] => {"changed": true, "original_bindings": [{"device": "/tmp/.nbde_client_dev_test", "encryption_key": "/tmp/ansible.iy97035gnbde_client_encryption_keys/.nbde_client_dev_encryption_key", "encryption_key_src": "/tmp/.nbde_client_dev_encryption_key", "password_temporary": false, "servers": ["http://localhost"], "slot": 1, "state": "present", "threshold": 1}]} TASK [linux-system-roles.nbde_client : Remove temporary directory used to hold key files] *** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:47 changed: [/cache/fedora-32.qcow2] => {"changed": true, "path": "/tmp/ansible.iy97035gnbde_client_encryption_keys", "state": "absent"} TASK [Attempt to unlock device] ************************************************ task path: /tmp/tmpagnzt5h5/tests/tests_simple_bind_keyfile.yml:21 included: /tmp/tmpagnzt5h5/tests/tasks/verify_unlock_device.yml for /cache/fedora-32.qcow2 TASK [Verify we can unlock the device] ***************************************** task path: /tmp/tmpagnzt5h5/tests/tasks/verify_unlock_device.yml:2 ok: [/cache/fedora-32.qcow2] => {"changed": false, "cmd": ["clevis", "luks", "unlock", "-d", "/tmp/.nbde_client_dev_test", "-n", "nbde_client_unlocked"], "delta": "0:00:03.625485", "end": "2021-06-08 16:22:05.233995", "rc": 0, "start": "2021-06-08 16:22:01.608510", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Close unlocked device] *************************************************** task path: /tmp/tmpagnzt5h5/tests/tasks/verify_unlock_device.yml:10 ok: [/cache/fedora-32.qcow2] => {"changed": false, "cmd": ["cryptsetup", "close", "nbde_client_unlocked"], "delta": "0:00:00.031811", "end": "2021-06-08 16:22:05.651830", "rc": 0, "start": "2021-06-08 16:22:05.620019", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Make sure the attempt to unlock succeeded] ******************************* task path: /tmp/tmpagnzt5h5/tests/tests_simple_bind_keyfile.yml:24 ok: [/cache/fedora-32.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Assert idempotency] ****************************************************** task path: /tmp/tmpagnzt5h5/tests/tests_simple_bind_keyfile.yml:30 included: /tmp/tmpagnzt5h5/tests/tasks/verify_idempotency.yml for /cache/fedora-32.qcow2 TASK [Use nbde_client role - idempotency check] ******************************** task path: /tmp/tmpagnzt5h5/tests/tasks/verify_idempotency.yml:2 TASK [linux-system-roles.nbde_client : Set version specific variables] ********* task path: /tmp/tmpagnzt5h5/tasks/main.yml:4 ok: [/cache/fedora-32.qcow2] => {"ansible_facts": {"__nbde_client_initramfs_update_cmd": "dracut -f", "__nbde_client_packages": ["clevis", "clevis-dracut", "clevis-luks", "clevis-systemd"]}, "ansible_included_var_files": ["/tmp/tmpagnzt5h5/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.nbde_client : Include the appropriate provider tasks] *** task path: /tmp/tmpagnzt5h5/tasks/main.yml:17 included: /tmp/tmpagnzt5h5/tasks/main-clevis.yml for /cache/fedora-32.qcow2 TASK [linux-system-roles.nbde_client : Ensure required packages are installed] *** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:2 ok: [/cache/fedora-32.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [linux-system-roles.nbde_client : Check whether devices are at the desired state] *** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:7 ok: [/cache/fedora-32.qcow2] => {"changed": false, "original_bindings": [{"device": "/tmp/.nbde_client_dev_test", "encryption_key_src": "/tmp/.nbde_client_dev_encryption_key", "password_temporary": false, "servers": ["http://localhost"], "slot": 1, "state": "present", "threshold": 1}]} TASK [linux-system-roles.nbde_client : Create temporary directory to hold key files] *** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:17 skipping: [/cache/fedora-32.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.nbde_client : Ensure we transfer key files] *********** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:25 skipping: [/cache/fedora-32.qcow2] => (item=/tmp/.nbde_client_dev_encryption_key) => {"ansible_loop_var": "item", "changed": false, "item": {"device": "/tmp/.nbde_client_dev_test", "encryption_key_src": "/tmp/.nbde_client_dev_encryption_key", "servers": ["http://localhost"]}, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.nbde_client : Perform clevis operations] ************** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:37 skipping: [/cache/fedora-32.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.nbde_client : Remove temporary directory used to hold key files] *** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:47 skipping: [/cache/fedora-32.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify idempotency of clevis operations] ********************************* task path: /tmp/tmpagnzt5h5/tests/tasks/verify_idempotency.yml:6 ok: [/cache/fedora-32.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up test environment] *********************************************** task path: /tmp/tmpagnzt5h5/tests/tests_simple_bind_keyfile.yml:34 included: /tmp/tmpagnzt5h5/tests/tasks/cleanup_test.yml for /cache/fedora-32.qcow2 TASK [Clean up dummy testing device] ******************************************* task path: /tmp/tmpagnzt5h5/tests/tasks/cleanup_test.yml:2 changed: [/cache/fedora-32.qcow2] => {"changed": true, "path": "/tmp/.nbde_client_dev_test", "state": "absent"} TASK [Clean up dummy key file] ************************************************* task path: /tmp/tmpagnzt5h5/tests/tasks/cleanup_test.yml:7 changed: [/cache/fedora-32.qcow2] => {"changed": true, "path": "/tmp/.nbde_client_dev_encryption_key", "state": "absent"} TASK [Clean up dummy key file on managed host] ********************************* task path: /tmp/tmpagnzt5h5/tests/tasks/cleanup_test.yml:13 ok: [/cache/fedora-32.qcow2] => {"changed": false, "path": "/tmp/.nbde_client_dev_encryption_key", "state": "absent"} RUNNING HANDLER [linux-system-roles.nbde_client : nbde_client update initramfs] *** task path: /tmp/tmpagnzt5h5/handlers/main.yml:4 changed: [/cache/fedora-32.qcow2] => {"changed": true, "cmd": ["dracut", "-f"], "delta": "0:00:18.634111", "end": "2021-06-08 16:22:31.326722", "rc": 0, "start": "2021-06-08 16:22:12.692611", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/fedora-32.qcow2 : ok=39 changed=13 unreachable=0 failed=0 skipped=7 rescued=0 ignored=0 + cd /tmp/tmpagnzt5h5/tests; TEST_SUBJECTS=/cache/fedora-32.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_nbde_client-50-792f563-fedora-32-dxfcttx2/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmpagnzt5h5/_setup.yml /tmp/tmpagnzt5h5/tests/tests_simple_bind_unbind.yml ansible-playbook 2.9.21 config file = /etc/ansible/ansible.cfg configured module search path = ['/home/tester/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.8/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 3.8.10 (default, May 4 2021, 00:00:00) [GCC 10.2.1 20201125 (Red Hat 10.2.1-9)] Using /etc/ansible/ansible.cfg as config file Skipping callback 'actionable', as we already have a stdout callback. Skipping callback 'counter_enabled', as we already have a stdout callback. Skipping callback 'debug', as we already have a stdout callback. Skipping callback 'dense', as we already have a stdout callback. Skipping callback 'dense', as we already have a stdout callback. Skipping callback 'full_skip', as we already have a stdout callback. Skipping callback 'json', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'null', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. Skipping callback 'selective', as we already have a stdout callback. Skipping callback 'skippy', as we already have a stdout callback. Skipping callback 'stderr', as we already have a stdout callback. Skipping callback 'unixy', as we already have a stdout callback. Skipping callback 'yaml', as we already have a stdout callback. PLAYBOOK: _setup.yml *********************************************************** 1 plays in /tmp/tmpagnzt5h5/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmpagnzt5h5/_setup.yml:5 ok: [/cache/fedora-32.qcow2] => { "groups": { "all": [ "/cache/fedora-32.qcow2" ], "localhost": [ "/cache/fedora-32.qcow2" ], "subjects": [ "/cache/fedora-32.qcow2" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmpagnzt5h5/_setup.yml:7 skipping: [/cache/fedora-32.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/fedora-32.qcow2 : ok=1 changed=0 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 PLAYBOOK: tests_simple_bind_unbind.yml ***************************************** 1 plays in /tmp/tmpagnzt5h5/tests/tests_simple_bind_unbind.yml PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpagnzt5h5/tests/tests_simple_bind_unbind.yml:2 ok: [/cache/fedora-32.qcow2] META: ran handlers TASK [Set up test environment] ************************************************* task path: /tmp/tmpagnzt5h5/tests/tests_simple_bind_unbind.yml:15 included: /tmp/tmpagnzt5h5/tests/tasks/setup_test.yml for /cache/fedora-32.qcow2 TASK [Include general tests variables] ***************************************** task path: /tmp/tmpagnzt5h5/tests/tasks/setup_test.yml:2 ok: [/cache/fedora-32.qcow2] => {"ansible_facts": {"nbde_client_test_device": "/tmp/.nbde_client_dev_test", "nbde_client_test_encryption_key_src": "/tmp/.nbde_client_dev_encryption_key", "nbde_client_test_pass": "test-password-here", "nbde_client_test_roles_dir": "/tmp/.nbde_client_dev_roles"}, "ansible_included_var_files": ["/tmp/tmpagnzt5h5/tests/vars/main.yml"], "changed": false} TASK [Set version specific variables] ****************************************** task path: /tmp/tmpagnzt5h5/tests/tasks/setup_test.yml:5 ok: [/cache/fedora-32.qcow2] => {"ansible_facts": {"nbde_client_test_packages": ["cryptsetup"]}, "ansible_included_var_files": ["/tmp/tmpagnzt5h5/tests/vars/Fedora.yml"], "changed": false} TASK [Print all available facts] *********************************************** task path: /tmp/tmpagnzt5h5/tests/tasks/setup_test.yml:20 ok: [/cache/fedora-32.qcow2] => { "ansible_facts": { "all_ipv4_addresses": [ "10.0.2.15" ], "all_ipv6_addresses": [ "fec0::5054:ff:fe12:3456", "fe80::5054:ff:fe12:3456" ], "ansible_local": {}, "apparmor": { "status": "disabled" }, "architecture": "x86_64", "bios_date": "04/01/2014", "bios_version": "1.13.0-2.fc32", "cmdline": { "BOOT_IMAGE": "(hd0,msdos1)/boot/vmlinuz-5.11.22-100.fc32.x86_64", "console": "ttyS0,115200n8", "net.ifnames": "0", "no_timer_check": true, "ro": true, "root": "UUID=450c38b7-9e89-4257-8d2f-915e2c3ab50d" }, "date_time": { "date": "2021-06-08", "day": "08", "epoch": "1623169365", "hour": "16", "iso8601": "2021-06-08T16:22:45Z", "iso8601_basic": "20210608T162245684572", "iso8601_basic_short": "20210608T162245", "iso8601_micro": "2021-06-08T16:22:45.684572Z", "minute": "22", "month": "06", "second": "45", "time": "16:22:45", "tz": "UTC", "tz_offset": "+0000", "weekday": "Tuesday", "weekday_number": "2", "weeknumber": "23", "year": "2021" }, "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" }, "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" }, "device_links": { "ids": { "sr0": [ "ata-QEMU_DVD-ROM_QM00003" ] }, "labels": { "sr0": [ "cidata" ] }, "masters": {}, "uuids": { "sr0": [ "2021-06-08-16-22-32-00" ], "vda1": [ "450c38b7-9e89-4257-8d2f-915e2c3ab50d" ] } }, "devices": { "sr0": { "holders": [], "host": "", "links": { "ids": [ "ata-QEMU_DVD-ROM_QM00003" ], "labels": [ "cidata" ], "masters": [], "uuids": [ "2021-06-08-16-22-32-00" ] }, "model": "QEMU DVD-ROM", "partitions": {}, "removable": "1", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "bfq", "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": [ "450c38b7-9e89-4257-8d2f-915e2c3ab50d" ] }, "sectors": "8386560", "sectorsize": 512, "size": "4.00 GB", "start": "2048", "uuid": "450c38b7-9e89-4257-8d2f-915e2c3ab50d" } }, "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": "512", "vendor": "0x1af4", "virtual": 1 } }, "distribution": "Fedora", "distribution_file_parsed": true, "distribution_file_path": "/etc/redhat-release", "distribution_file_variety": "RedHat", "distribution_major_version": "32", "distribution_release": "", "distribution_version": "32", "dns": { "nameservers": [ "10.0.2.3" ], "search": [ "virt.pnr.lab.eng.rdu2.redhat.com" ] }, "domain": "virt.pnr.lab.eng.rdu2.redhat.com", "effective_group_id": 0, "effective_user_id": 0, "env": { "DBUS_SESSION_BUS_ADDRESS": "unix:path=/run/user/0/bus", "HOME": "/root", "LANG": "en_US.UTF-8", "LC_CTYPE": "C.UTF-8", "LESSOPEN": "||/usr/bin/lesspipe.sh %s", "LOGNAME": "root", "LS_COLORS": "", "MOTD_SHOWN": "pam", "PATH": "/root/.local/bin:/root/bin:/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 60710 22", "SSH_CONNECTION": "10.0.2.2 60710 10.0.2.15 22", "SSH_TTY": "/dev/pts/0", "USER": "root", "XDG_RUNTIME_DIR": "/run/user/0", "XDG_SESSION_CLASS": "user", "XDG_SESSION_ID": "1", "XDG_SESSION_TYPE": "tty", "_": "/usr/bin/python3" }, "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" }, "fibre_channel_wwn": [], "fips": false, "form_factor": "Other", "fqdn": "ibm-p8-kvm-03-guest-02.virt.pnr.lab.eng.rdu2.redhat.com", "gather_subset": [ "all" ], "hostname": "ibm-p8-kvm-03-guest-02", "hostnqn": "", "interfaces": [ "lo", "eth0" ], "is_chroot": false, "iscsi_iqn": "", "kernel": "5.11.22-100.fc32.x86_64", "kernel_version": "#1 SMP Wed May 19 18:58:25 UTC 2021", "lo": { "active": true, "device": "lo", "ipv4": { "address": "127.0.0.1", "broadcast": "", "netmask": "255.0.0.0", "network": "127.0.0.0" }, "ipv6": [ { "address": "::1", "prefix": "128", "scope": "host" } ], "mtu": 65536, "promisc": false, "type": "loopback" }, "lsb": {}, "machine": "x86_64", "machine_id": "9ec2ef1ca3724b159077f626c2c130dc", "memfree_mb": 1692, "memory_mb": { "nocache": { "free": 1850, "used": 126 }, "real": { "free": 1692, "total": 1976, "used": 284 }, "swap": { "cached": 0, "free": 0, "total": 0, "used": 0 } }, "memtotal_mb": 1976, "module_setup": true, "mounts": [ { "block_available": 775845, "block_size": 4096, "block_total": 1015472, "block_used": 239627, "device": "/dev/vda1", "fstype": "ext4", "inode_available": 235263, "inode_total": 262144, "inode_used": 26881, "mount": "/", "options": "rw,seclabel,relatime", "size_available": 3177861120, "size_total": 4159373312, "uuid": "450c38b7-9e89-4257-8d2f-915e2c3ab50d" } ], "nodename": "ibm-p8-kvm-03-guest-02.virt.pnr.lab.eng.rdu2.redhat.com", "os_family": "RedHat", "pkg_mgr": "dnf", "proc_cmdline": { "BOOT_IMAGE": "(hd0,msdos1)/boot/vmlinuz-5.11.22-100.fc32.x86_64", "console": [ "tty1", "ttyS0,115200n8" ], "net.ifnames": "0", "no_timer_check": true, "ro": true, "root": "UUID=450c38b7-9e89-4257-8d2f-915e2c3ab50d" }, "processor": [ "0", "GenuineIntel", "Intel(R) Xeon(R) Platinum 8168 CPU @ 2.70GHz", "1", "GenuineIntel", "Intel(R) Xeon(R) Platinum 8168 CPU @ 2.70GHz", "2", "GenuineIntel", "Intel(R) Xeon(R) Platinum 8168 CPU @ 2.70GHz", "3", "GenuineIntel", "Intel(R) Xeon(R) Platinum 8168 CPU @ 2.70GHz" ], "processor_cores": 1, "processor_count": 4, "processor_threads_per_core": 1, "processor_vcpus": 4, "product_name": "Standard PC (i440FX + PIIX, 1996)", "product_serial": "NA", "product_uuid": "NA", "product_version": "pc-i440fx-4.2", "python": { "executable": "/usr/bin/python3", "has_sslcontext": true, "type": "cpython", "version": { "major": 3, "micro": 10, "minor": 8, "releaselevel": "final", "serial": 0 }, "version_info": [ 3, 8, 10, "final", 0 ] }, "python_version": "3.8.10", "real_group_id": 0, "real_user_id": 0, "selinux": { "config_mode": "enforcing", "mode": "enforcing", "policyvers": 33, "status": "enabled", "type": "targeted" }, "selinux_python_present": true, "service_mgr": "systemd", "ssh_host_key_dsa_public": "AAAAB3NzaC1kc3MAAACBAOZK/vgrgtEN8Zp5t60BV/+p36viqn8CzSRQtRBAbcyeGqfWE+n5CtjwNdIQXPsMuGQqdmbi2Q8UTymyOdv5fgYXpBk2rIVY0IYqTl2yoQrXbCBPDBBseYtf6jVizUggkFkrlunh2gre9l4aV9uxdIzVduBuUNllKiiVT8c1P/LfAAAAFQC6g2XDQXTmxNi5rme3DLGEEvMvewAAAIEArgyZnFR/S5z6z912OatkRegHQoaDmZ1ZqPdBv78tO+GcwHha6LjjlDens8/o6WpzDsEup6nrvwusaQnlsaxrPyblk6VEz+lHPcu0uXMnmLYGDFXJ+bcl3NxFghM+suIcW5zSzbSyuIE7jObIXOa0IfWOs/n7YxyKKiBNi+Hccd0AAACAfI9SM49CBG/zfGVI/LH6mx1Z+ihgc0iHG4NK4fvRaxiFuQ9jWRaW4Eydk5ROq5xNJfXHRQOa8alUGSXX31mUiLDqvLygh9ZiKhe4Rb48cq4CmkppM58+ca+LZhQUFeqw+l2PuDUnPnyBGsNgbJY/H/ZsgkDQSt2HBeMkuZVGKDo=", "ssh_host_key_ecdsa_public": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBFneDNfTm5EUKRrp2qviG44u1zYaCfL0XgNWkQGpdYGrP1exWvjrBBoTRT5FPk13t1yzZ0Lys+2+OgTfIOSR3KU=", "ssh_host_key_ed25519_public": "AAAAC3NzaC1lZDI1NTE5AAAAICSzb+W2c7TPp7ta5vzA6zfjrqVvP6Lxw31PPBhh5exe", "ssh_host_key_rsa_public": "AAAAB3NzaC1yc2EAAAADAQABAAABgQDHgXkdhZY+qiVgXTpjHiuqPC9Dps8aY+z0IxcT9dpTvw8kQd7shRr0UMaEvohir+PDC4uzGgKzJWrqh+Rf+smg09dWrOhGFRyrUlTlysO9SHPWyFWrZtknrPckZ42hGjUL+qw330TdMATUGqRdNjuLXJujN7yaxFwbhoDz05CdANeolgNps4c2BqaelMoH6ID9G6UCNB3SRssTV+JSVckbJJsCCkyWtGfGp4mpmHRzSh6lX7wTDmToYsaDWgZJ0gNpU6uqezZTVXAxIOKFS6gFVMILJv77kMFc3l9UAnb7aR/HJFvviMJgScgwzsseY1UV6IAqKKGCCw29zDr1Q6hYHCX+nnTsousgjGG45n3Gm4JOSYRmO6u8wyeQQhCeqnjFk52DCoLPbbVs6yEuCdzABmFoEu2pl/9EsADrbmpP2l4AH3xDElcv4Yp78nHYA5M9CQyqlRhw0IWKkN2bzCeFGV2SCruebMnRm5ZXuTAoeJ2KJn7GQPqg5cJtoRSi8ZU=", "swapfree_mb": 0, "swaptotal_mb": 0, "system": "Linux", "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", "38", "39", "40+ep" ], "system_capabilities_enforced": "True", "system_vendor": "QEMU", "uptime_seconds": 10, "user_dir": "/root", "user_gecos": "root", "user_gid": 0, "user_id": "root", "user_shell": "/bin/bash", "user_uid": 0, "userspace_architecture": "x86_64", "userspace_bits": "64", "virtualization_role": "guest", "virtualization_type": "kvm" } } TASK [Install required packages for nbde_client tests] ************************* task path: /tmp/tmpagnzt5h5/tests/tasks/setup_test.yml:24 changed: [/cache/fedora-32.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: cryptsetup-2.3.5-2.fc32.x86_64"]} TASK [Clone nbde_server role for the tests] ************************************ task path: /tmp/tmpagnzt5h5/tests/tasks/setup_test.yml:28 ok: [/cache/fedora-32.qcow2] => {"after": "c57d0b1f3384c525738fa26ba4bdca485e162567", "before": "c57d0b1f3384c525738fa26ba4bdca485e162567", "changed": false, "remote_url_changed": false} TASK [Deploy NBDE server for testing] ****************************************** task path: /tmp/tmpagnzt5h5/tests/tasks/setup_test.yml:35 TASK [/tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server : Set version specific variables] *** task path: /tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server/tasks/main.yml:6 ok: [/cache/fedora-32.qcow2] => {"ansible_facts": {"__nbde_server_cachedir": "/var/cache/tang", "__nbde_server_group": "tang", "__nbde_server_keydir": "/var/db/tang", "__nbde_server_keygen": "/usr/libexec/tangd-keygen", "__nbde_server_packages": ["tang"], "__nbde_server_services": ["tangd.socket"], "__nbde_server_update": "/usr/libexec/tangd-update", "__nbde_server_user": "tang"}, "ansible_included_var_files": ["/tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server/vars/default.yml"], "changed": false} TASK [/tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server : Include the appropriate provider tasks] *** task path: /tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server/tasks/main.yml:20 included: /tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server/tasks/main-tang.yml for /cache/fedora-32.qcow2 TASK [/tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server : Ensure tang is installed] *** task path: /tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server/tasks/main-tang.yml:2 changed: [/cache/fedora-32.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: tang-10-1.fc32.x86_64", "Installed: libjose-11-1.fc32.x86_64", "Installed: http-parser-2.9.3-2.fc32.x86_64", "Installed: jose-11-1.fc32.x86_64"]} TASK [/tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server : Ensure keys are rotated] *** task path: /tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server/tasks/main-tang.yml:7 skipping: [/cache/fedora-32.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [/tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server : Ensure we have keys] *** task path: /tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server/tasks/main-tang.yml:16 changed: [/cache/fedora-32.qcow2] => {"arguments": {"cachedir": "/var/cache/tang", "force": false, "keydir": "/var/db/tang", "keygen": "/usr/libexec/tangd-keygen", "keys_to_deploy_dir": null, "state": "keys-created", "update": "/usr/libexec/tangd-update"}, "changed": true, "state": "keys-created"} TASK [/tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server : Perform key management (fetch/deploy) tasks] *** task path: /tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server/tasks/main-tang.yml:25 skipping: [/cache/fedora-32.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [/tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server : Ensure required services are enabled and at the right state] *** task path: /tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server/tasks/main-tang.yml:29 changed: [/cache/fedora-32.qcow2] => (item=tangd.socket) => {"ansible_loop_var": "item", "changed": true, "enabled": true, "item": "tangd.socket", "name": "tangd.socket", "state": "started", "status": {"Accept": "yes", "ActiveEnterTimestampMonotonic": "0", "ActiveExitTimestampMonotonic": "0", "ActiveState": "inactive", "After": "sysinit.target system.slice", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "no", "AssertTimestampMonotonic": "0", "Backlog": "4096", "Before": "shutdown.target sockets.target", "BindIPv6Only": "default", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "Broadcast": "no", "CPUAccounting": "yes", "CPUAffinity": "", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "[not set]", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanIsolate": "no", "CanReload": "no", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "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 cap_perfmon cap_bpf cap_checkpoint_restore", "CollectMode": "inactive", "ConditionResult": "no", "ConditionTimestampMonotonic": "0", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target", "ControlPID": "0", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "DeferAcceptUSec": "0", "Delegate": "no", "Description": "Tang Server socket", "DevicePolicy": "auto", "DirectoryMode": "0755", "DynamicUser": "no", "EffectiveCPUs": "", "EffectiveMemoryNodes": "", "FailureAction": "none", "FileDescriptorName": "tangd.socket", "FinalKillSignal": "9", "FragmentPath": "/usr/lib/systemd/system/tangd.socket", "FreeBind": "no", "GID": "[not set]", "IOAccounting": "no", "IOReadBytes": "18446744073709551615", "IOReadOperations": "18446744073709551615", "IOSchedulingClass": "0", "IOSchedulingPriority": "0", "IOWeight": "[not set]", "IOWriteBytes": "18446744073709551615", "IOWriteOperations": "18446744073709551615", "IPAccounting": "no", "IPEgressBytes": "[no data]", "IPEgressPackets": "[no data]", "IPIngressBytes": "[no data]", "IPIngressPackets": "[no data]", "IPTOS": "-1", "IPTTL": "-1", "Id": "tangd.socket", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestampMonotonic": "0", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeepAlive": "no", "KeepAliveIntervalUSec": "0", "KeepAliveProbes": "0", "KeepAliveTimeUSec": "0", "KeyringMode": "shared", "KillMode": "control-group", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "infinity", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "65536", "LimitMEMLOCKSoft": "65536", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "524288", "LimitNOFILESoft": "1024", "LimitNPROC": "7782", "LimitNPROCSoft": "7782", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "7782", "LimitSIGPENDINGSoft": "7782", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "Listen": "[::]:80 (Stream)", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "Mark": "-1", "MaxConnections": "64", "MaxConnectionsPerSource": "0", "MemoryAccounting": "yes", "MemoryCurrent": "[not set]", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MessageQueueMaxMessages": "0", "MessageQueueMessageSize": "0", "MountAPIVFS": "no", "MountFlags": "", "NAccepted": "0", "NConnections": "0", "NRefused": "0", "NUMAMask": "", "NUMAPolicy": "n/a", "Names": "tangd.socket", "NeedDaemonReload": "no", "Nice": "0", "NoDelay": "no", "NoNewPrivileges": "no", "NonBlocking": "no", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PassCredentials": "no", "PassSecurity": "no", "Perpetual": "no", "PipeSize": "0", "Priority": "-1", "PrivateDevices": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProtectClock": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectHostname": "no", "ProtectKernelLogs": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectSystem": "no", "ReceiveBuffer": "0", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemoveIPC": "no", "RemoveOnStop": "no", "Requires": "sysinit.target system.slice", "RestartKillSignal": "15", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "ReusePort": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "SameProcessGroup": "no", "SecureBits": "0", "SendBuffer": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "SocketMode": "0666", "SocketProtocol": "0", "StandardError": "inherit", "StandardInput": "null", "StandardInputData": "", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestampMonotonic": "0", "StateDirectoryMode": "0755", "StopWhenUnneeded": "no", "SubState": "dead", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "[not set]", "TasksMax": "2334", "TimeoutCleanUSec": "infinity", "TimeoutUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Transparent": "no", "TriggerLimitBurst": "200", "TriggerLimitIntervalUSec": "2s", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "disabled", "UnitFileState": "disabled", "UtmpMode": "init", "WatchdogSignal": "6", "Writable": "no"}} TASK [Create device for testing] *********************************************** task path: /tmp/tmpagnzt5h5/tests/tasks/setup_test.yml:39 ok: [/cache/fedora-32.qcow2] => {"changed": false, "cmd": ["fallocate", "-l64m", "/tmp/.nbde_client_dev_test"], "delta": "0:00:00.005878", "end": "2021-06-08 16:23:33.061979", "rc": 0, "start": "2021-06-08 16:23:33.056101", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Format test device as LUKS] ********************************************** task path: /tmp/tmpagnzt5h5/tests/tasks/setup_test.yml:43 ok: [/cache/fedora-32.qcow2] => {"changed": false, "cmd": "set -euo pipefail; echo -n test-password-here | cryptsetup luksFormat --pbkdf pbkdf2 --pbkdf-force-iterations 1000 --batch-mode --force-password /tmp/.nbde_client_dev_test", "delta": "0:00:00.141505", "end": "2021-06-08 16:23:33.533205", "rc": 0, "start": "2021-06-08 16:23:33.391700", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Create key file for test device] ***************************************** task path: /tmp/tmpagnzt5h5/tests/tasks/setup_test.yml:51 ok: [/cache/fedora-32.qcow2] => {"changed": false, "cmd": "echo -n test-password-here > /tmp/.nbde_client_dev_encryption_key\n", "delta": "0:00:00.004615", "end": "2021-06-08 16:23:34.491995", "rc": 0, "start": "2021-06-08 16:23:34.487380", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Use nbde_client role] **************************************************** task path: /tmp/tmpagnzt5h5/tests/tests_simple_bind_unbind.yml:20 TASK [linux-system-roles.nbde_client : Set version specific variables] ********* task path: /tmp/tmpagnzt5h5/tasks/main.yml:4 ok: [/cache/fedora-32.qcow2] => {"ansible_facts": {"__nbde_client_initramfs_update_cmd": "dracut -f", "__nbde_client_packages": ["clevis", "clevis-dracut", "clevis-luks", "clevis-systemd"]}, "ansible_included_var_files": ["/tmp/tmpagnzt5h5/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.nbde_client : Include the appropriate provider tasks] *** task path: /tmp/tmpagnzt5h5/tasks/main.yml:17 included: /tmp/tmpagnzt5h5/tasks/main-clevis.yml for /cache/fedora-32.qcow2 TASK [linux-system-roles.nbde_client : Ensure required packages are installed] *** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:2 changed: [/cache/fedora-32.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: oniguruma-6.9.5-4.rev1.fc32.x86_64", "Installed: tpm2-tools-4.1.3-1.fc32.x86_64", "Installed: tpm2-tss-2.4.4-1.fc32.x86_64", "Installed: clevis-18-1.fc32.x86_64", "Installed: clevis-dracut-18-1.fc32.x86_64", "Installed: clevis-luks-18-1.fc32.x86_64", "Installed: clevis-systemd-18-1.fc32.x86_64", "Installed: dracut-network-050-61.git20200529.fc32.x86_64", "Installed: libluksmeta-9-8.fc32.x86_64", "Installed: jq-1.6-4.fc32.x86_64", "Installed: luksmeta-9-8.fc32.x86_64"]} TASK [linux-system-roles.nbde_client : Check whether devices are at the desired state] *** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:7 changed: [/cache/fedora-32.qcow2] => {"changed": true, "original_bindings": [{"device": "/tmp/.nbde_client_dev_test", "encryption_password": "test-password-here", "password_temporary": false, "servers": ["http://localhost"], "slot": 1, "state": "present", "threshold": 1}, {"device": "/tmp/.nbde_client_dev_test", "encryption_password": "test-password-here", "password_temporary": false, "servers": [], "slot": 1, "state": "absent", "threshold": 1}]} TASK [linux-system-roles.nbde_client : Create temporary directory to hold key files] *** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:17 changed: [/cache/fedora-32.qcow2] => {"changed": true, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/tmp/ansible.1jxmttsinbde_client_encryption_keys", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 4096, "state": "directory", "uid": 0} TASK [linux-system-roles.nbde_client : Ensure we transfer key files] *********** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:25 skipping: [/cache/fedora-32.qcow2] => (item=) => {"ansible_loop_var": "item", "changed": false, "item": {"device": "/tmp/.nbde_client_dev_test", "encryption_password": "test-password-here", "servers": ["http://localhost"]}, "skip_reason": "Conditional result was False"} skipping: [/cache/fedora-32.qcow2] => (item=) => {"ansible_loop_var": "item", "changed": false, "item": {"device": "/tmp/.nbde_client_dev_test", "encryption_password": "test-password-here", "state": "absent"}, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.nbde_client : Perform clevis operations] ************** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:37 NOTIFIED HANDLER linux-system-roles.nbde_client : nbde_client update initramfs for /cache/fedora-32.qcow2 changed: [/cache/fedora-32.qcow2] => {"changed": true, "original_bindings": [{"device": "/tmp/.nbde_client_dev_test", "encryption_password": "test-password-here", "password_temporary": false, "servers": ["http://localhost"], "slot": 1, "state": "present", "threshold": 1}, {"device": "/tmp/.nbde_client_dev_test", "encryption_password": "test-password-here", "password_temporary": false, "servers": [], "slot": 1, "state": "absent", "threshold": 1}]} TASK [linux-system-roles.nbde_client : Remove temporary directory used to hold key files] *** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:47 changed: [/cache/fedora-32.qcow2] => {"changed": true, "path": "/tmp/ansible.1jxmttsinbde_client_encryption_keys", "state": "absent"} TASK [Attempt to unlock device] ************************************************ task path: /tmp/tmpagnzt5h5/tests/tests_simple_bind_unbind.yml:24 included: /tmp/tmpagnzt5h5/tests/tasks/verify_unlock_device.yml for /cache/fedora-32.qcow2 TASK [Verify we can unlock the device] ***************************************** task path: /tmp/tmpagnzt5h5/tests/tasks/verify_unlock_device.yml:2 fatal: [/cache/fedora-32.qcow2]: FAILED! => {"changed": false, "cmd": ["clevis", "luks", "unlock", "-d", "/tmp/.nbde_client_dev_test", "-n", "nbde_client_unlocked"], "delta": "0:00:00.047257", "end": "2021-06-08 16:23:47.768538", "msg": "non-zero return code", "rc": 1, "start": "2021-06-08 16:23:47.721281", "stderr": "/tmp/.nbde_client_dev_test could not be opened.", "stderr_lines": ["/tmp/.nbde_client_dev_test could not be opened."], "stdout": "", "stdout_lines": []} ...ignoring TASK [Close unlocked device] *************************************************** task path: /tmp/tmpagnzt5h5/tests/tasks/verify_unlock_device.yml:10 fatal: [/cache/fedora-32.qcow2]: FAILED! => {"changed": false, "cmd": ["cryptsetup", "close", "nbde_client_unlocked"], "delta": "0:00:00.009307", "end": "2021-06-08 16:23:48.103487", "msg": "non-zero return code", "rc": 4, "start": "2021-06-08 16:23:48.094180", "stderr": "Device nbde_client_unlocked is not active.", "stderr_lines": ["Device nbde_client_unlocked is not active."], "stdout": "", "stdout_lines": []} ...ignoring TASK [Make sure the attempt to unlock failed] ********************************** task path: /tmp/tmpagnzt5h5/tests/tests_simple_bind_unbind.yml:27 ok: [/cache/fedora-32.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Assert idempotency when trying to only unbind] *************************** task path: /tmp/tmpagnzt5h5/tests/tests_simple_bind_unbind.yml:33 included: /tmp/tmpagnzt5h5/tests/tasks/verify_idempotency.yml for /cache/fedora-32.qcow2 TASK [Use nbde_client role - idempotency check] ******************************** task path: /tmp/tmpagnzt5h5/tests/tasks/verify_idempotency.yml:2 TASK [linux-system-roles.nbde_client : Set version specific variables] ********* task path: /tmp/tmpagnzt5h5/tasks/main.yml:4 ok: [/cache/fedora-32.qcow2] => {"ansible_facts": {"__nbde_client_initramfs_update_cmd": "dracut -f", "__nbde_client_packages": ["clevis", "clevis-dracut", "clevis-luks", "clevis-systemd"]}, "ansible_included_var_files": ["/tmp/tmpagnzt5h5/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.nbde_client : Include the appropriate provider tasks] *** task path: /tmp/tmpagnzt5h5/tasks/main.yml:17 included: /tmp/tmpagnzt5h5/tasks/main-clevis.yml for /cache/fedora-32.qcow2 TASK [linux-system-roles.nbde_client : Ensure required packages are installed] *** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:2 ok: [/cache/fedora-32.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [linux-system-roles.nbde_client : Check whether devices are at the desired state] *** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:7 ok: [/cache/fedora-32.qcow2] => {"changed": false, "original_bindings": [{"device": "/tmp/.nbde_client_dev_test", "encryption_password": "test-password-here", "password_temporary": false, "servers": [], "slot": 1, "state": "absent", "threshold": 1}]} TASK [linux-system-roles.nbde_client : Create temporary directory to hold key files] *** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:17 skipping: [/cache/fedora-32.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.nbde_client : Ensure we transfer key files] *********** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:25 skipping: [/cache/fedora-32.qcow2] => (item=) => {"ansible_loop_var": "item", "changed": false, "item": {"device": "/tmp/.nbde_client_dev_test", "encryption_password": "test-password-here", "state": "absent"}, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.nbde_client : Perform clevis operations] ************** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:37 skipping: [/cache/fedora-32.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.nbde_client : Remove temporary directory used to hold key files] *** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:47 skipping: [/cache/fedora-32.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify idempotency of clevis operations] ********************************* task path: /tmp/tmpagnzt5h5/tests/tasks/verify_idempotency.yml:6 ok: [/cache/fedora-32.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up test environment] *********************************************** task path: /tmp/tmpagnzt5h5/tests/tests_simple_bind_unbind.yml:42 included: /tmp/tmpagnzt5h5/tests/tasks/cleanup_test.yml for /cache/fedora-32.qcow2 TASK [Clean up dummy testing device] ******************************************* task path: /tmp/tmpagnzt5h5/tests/tasks/cleanup_test.yml:2 changed: [/cache/fedora-32.qcow2] => {"changed": true, "path": "/tmp/.nbde_client_dev_test", "state": "absent"} TASK [Clean up dummy key file] ************************************************* task path: /tmp/tmpagnzt5h5/tests/tasks/cleanup_test.yml:7 changed: [/cache/fedora-32.qcow2] => {"changed": true, "path": "/tmp/.nbde_client_dev_encryption_key", "state": "absent"} TASK [Clean up dummy key file on managed host] ********************************* task path: /tmp/tmpagnzt5h5/tests/tasks/cleanup_test.yml:13 ok: [/cache/fedora-32.qcow2] => {"changed": false, "path": "/tmp/.nbde_client_dev_encryption_key", "state": "absent"} RUNNING HANDLER [linux-system-roles.nbde_client : nbde_client update initramfs] *** task path: /tmp/tmpagnzt5h5/handlers/main.yml:4 changed: [/cache/fedora-32.qcow2] => {"changed": true, "cmd": ["dracut", "-f"], "delta": "0:00:19.128628", "end": "2021-06-08 16:24:12.067069", "rc": 0, "start": "2021-06-08 16:23:52.938441", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/fedora-32.qcow2 : ok=38 changed=12 unreachable=0 failed=0 skipped=8 rescued=0 ignored=2 + cd /tmp/tmpagnzt5h5/tests; TEST_SUBJECTS=/cache/fedora-32.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_nbde_client-50-792f563-fedora-32-dxfcttx2/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmpagnzt5h5/_setup.yml /tmp/tmpagnzt5h5/tests/tests_simple_bind_unbind_keyfile.yml ansible-playbook 2.9.21 config file = /etc/ansible/ansible.cfg configured module search path = ['/home/tester/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.8/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 3.8.10 (default, May 4 2021, 00:00:00) [GCC 10.2.1 20201125 (Red Hat 10.2.1-9)] Using /etc/ansible/ansible.cfg as config file Skipping callback 'actionable', as we already have a stdout callback. Skipping callback 'counter_enabled', as we already have a stdout callback. Skipping callback 'debug', as we already have a stdout callback. Skipping callback 'dense', as we already have a stdout callback. Skipping callback 'dense', as we already have a stdout callback. Skipping callback 'full_skip', as we already have a stdout callback. Skipping callback 'json', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'null', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. Skipping callback 'selective', as we already have a stdout callback. Skipping callback 'skippy', as we already have a stdout callback. Skipping callback 'stderr', as we already have a stdout callback. Skipping callback 'unixy', as we already have a stdout callback. Skipping callback 'yaml', as we already have a stdout callback. PLAYBOOK: _setup.yml *********************************************************** 1 plays in /tmp/tmpagnzt5h5/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmpagnzt5h5/_setup.yml:5 ok: [/cache/fedora-32.qcow2] => { "groups": { "all": [ "/cache/fedora-32.qcow2" ], "localhost": [ "/cache/fedora-32.qcow2" ], "subjects": [ "/cache/fedora-32.qcow2" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmpagnzt5h5/_setup.yml:7 skipping: [/cache/fedora-32.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/fedora-32.qcow2 : ok=1 changed=0 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 PLAYBOOK: tests_simple_bind_unbind_keyfile.yml ********************************* 1 plays in /tmp/tmpagnzt5h5/tests/tests_simple_bind_unbind_keyfile.yml PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpagnzt5h5/tests/tests_simple_bind_unbind_keyfile.yml:2 ok: [/cache/fedora-32.qcow2] META: ran handlers TASK [Set up test environment] ************************************************* task path: /tmp/tmpagnzt5h5/tests/tests_simple_bind_unbind_keyfile.yml:15 included: /tmp/tmpagnzt5h5/tests/tasks/setup_test.yml for /cache/fedora-32.qcow2 TASK [Include general tests variables] ***************************************** task path: /tmp/tmpagnzt5h5/tests/tasks/setup_test.yml:2 ok: [/cache/fedora-32.qcow2] => {"ansible_facts": {"nbde_client_test_device": "/tmp/.nbde_client_dev_test", "nbde_client_test_encryption_key_src": "/tmp/.nbde_client_dev_encryption_key", "nbde_client_test_pass": "test-password-here", "nbde_client_test_roles_dir": "/tmp/.nbde_client_dev_roles"}, "ansible_included_var_files": ["/tmp/tmpagnzt5h5/tests/vars/main.yml"], "changed": false} TASK [Set version specific variables] ****************************************** task path: /tmp/tmpagnzt5h5/tests/tasks/setup_test.yml:5 ok: [/cache/fedora-32.qcow2] => {"ansible_facts": {"nbde_client_test_packages": ["cryptsetup"]}, "ansible_included_var_files": ["/tmp/tmpagnzt5h5/tests/vars/Fedora.yml"], "changed": false} TASK [Print all available facts] *********************************************** task path: /tmp/tmpagnzt5h5/tests/tasks/setup_test.yml:20 ok: [/cache/fedora-32.qcow2] => { "ansible_facts": { "all_ipv4_addresses": [ "10.0.2.15" ], "all_ipv6_addresses": [ "fec0::5054:ff:fe12:3456", "fe80::5054:ff:fe12:3456" ], "ansible_local": {}, "apparmor": { "status": "disabled" }, "architecture": "x86_64", "bios_date": "04/01/2014", "bios_version": "1.13.0-2.fc32", "cmdline": { "BOOT_IMAGE": "(hd0,msdos1)/boot/vmlinuz-5.11.22-100.fc32.x86_64", "console": "ttyS0,115200n8", "net.ifnames": "0", "no_timer_check": true, "ro": true, "root": "UUID=450c38b7-9e89-4257-8d2f-915e2c3ab50d" }, "date_time": { "date": "2021-06-08", "day": "08", "epoch": "1623169466", "hour": "16", "iso8601": "2021-06-08T16:24:26Z", "iso8601_basic": "20210608T162426569350", "iso8601_basic_short": "20210608T162426", "iso8601_micro": "2021-06-08T16:24:26.569350Z", "minute": "24", "month": "06", "second": "26", "time": "16:24:26", "tz": "UTC", "tz_offset": "+0000", "weekday": "Tuesday", "weekday_number": "2", "weeknumber": "23", "year": "2021" }, "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" }, "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" }, "device_links": { "ids": { "sr0": [ "ata-QEMU_DVD-ROM_QM00003" ] }, "labels": { "sr0": [ "cidata" ] }, "masters": {}, "uuids": { "sr0": [ "2021-06-08-16-24-13-00" ], "vda1": [ "450c38b7-9e89-4257-8d2f-915e2c3ab50d" ] } }, "devices": { "sr0": { "holders": [], "host": "", "links": { "ids": [ "ata-QEMU_DVD-ROM_QM00003" ], "labels": [ "cidata" ], "masters": [], "uuids": [ "2021-06-08-16-24-13-00" ] }, "model": "QEMU DVD-ROM", "partitions": {}, "removable": "1", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "bfq", "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": [ "450c38b7-9e89-4257-8d2f-915e2c3ab50d" ] }, "sectors": "8386560", "sectorsize": 512, "size": "4.00 GB", "start": "2048", "uuid": "450c38b7-9e89-4257-8d2f-915e2c3ab50d" } }, "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": "512", "vendor": "0x1af4", "virtual": 1 } }, "distribution": "Fedora", "distribution_file_parsed": true, "distribution_file_path": "/etc/redhat-release", "distribution_file_variety": "RedHat", "distribution_major_version": "32", "distribution_release": "", "distribution_version": "32", "dns": { "nameservers": [ "10.0.2.3" ], "search": [ "virt.pnr.lab.eng.rdu2.redhat.com" ] }, "domain": "virt.pnr.lab.eng.rdu2.redhat.com", "effective_group_id": 0, "effective_user_id": 0, "env": { "DBUS_SESSION_BUS_ADDRESS": "unix:path=/run/user/0/bus", "HOME": "/root", "LANG": "en_US.UTF-8", "LC_CTYPE": "C.UTF-8", "LESSOPEN": "||/usr/bin/lesspipe.sh %s", "LOGNAME": "root", "LS_COLORS": "", "MOTD_SHOWN": "pam", "PATH": "/root/.local/bin:/root/bin:/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 36082 22", "SSH_CONNECTION": "10.0.2.2 36082 10.0.2.15 22", "SSH_TTY": "/dev/pts/0", "USER": "root", "XDG_RUNTIME_DIR": "/run/user/0", "XDG_SESSION_CLASS": "user", "XDG_SESSION_ID": "1", "XDG_SESSION_TYPE": "tty", "_": "/usr/bin/python3" }, "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" }, "fibre_channel_wwn": [], "fips": false, "form_factor": "Other", "fqdn": "ibm-p8-kvm-03-guest-02.virt.pnr.lab.eng.rdu2.redhat.com", "gather_subset": [ "all" ], "hostname": "ibm-p8-kvm-03-guest-02", "hostnqn": "", "interfaces": [ "eth0", "lo" ], "is_chroot": false, "iscsi_iqn": "", "kernel": "5.11.22-100.fc32.x86_64", "kernel_version": "#1 SMP Wed May 19 18:58:25 UTC 2021", "lo": { "active": true, "device": "lo", "ipv4": { "address": "127.0.0.1", "broadcast": "", "netmask": "255.0.0.0", "network": "127.0.0.0" }, "ipv6": [ { "address": "::1", "prefix": "128", "scope": "host" } ], "mtu": 65536, "promisc": false, "type": "loopback" }, "lsb": {}, "machine": "x86_64", "machine_id": "fd8e9aa89792475ba1908a32b6688b95", "memfree_mb": 1693, "memory_mb": { "nocache": { "free": 1851, "used": 125 }, "real": { "free": 1693, "total": 1976, "used": 283 }, "swap": { "cached": 0, "free": 0, "total": 0, "used": 0 } }, "memtotal_mb": 1976, "module_setup": true, "mounts": [ { "block_available": 775845, "block_size": 4096, "block_total": 1015472, "block_used": 239627, "device": "/dev/vda1", "fstype": "ext4", "inode_available": 235263, "inode_total": 262144, "inode_used": 26881, "mount": "/", "options": "rw,seclabel,relatime", "size_available": 3177861120, "size_total": 4159373312, "uuid": "450c38b7-9e89-4257-8d2f-915e2c3ab50d" } ], "nodename": "ibm-p8-kvm-03-guest-02.virt.pnr.lab.eng.rdu2.redhat.com", "os_family": "RedHat", "pkg_mgr": "dnf", "proc_cmdline": { "BOOT_IMAGE": "(hd0,msdos1)/boot/vmlinuz-5.11.22-100.fc32.x86_64", "console": [ "tty1", "ttyS0,115200n8" ], "net.ifnames": "0", "no_timer_check": true, "ro": true, "root": "UUID=450c38b7-9e89-4257-8d2f-915e2c3ab50d" }, "processor": [ "0", "GenuineIntel", "Intel(R) Xeon(R) Platinum 8168 CPU @ 2.70GHz", "1", "GenuineIntel", "Intel(R) Xeon(R) Platinum 8168 CPU @ 2.70GHz", "2", "GenuineIntel", "Intel(R) Xeon(R) Platinum 8168 CPU @ 2.70GHz", "3", "GenuineIntel", "Intel(R) Xeon(R) Platinum 8168 CPU @ 2.70GHz" ], "processor_cores": 1, "processor_count": 4, "processor_threads_per_core": 1, "processor_vcpus": 4, "product_name": "Standard PC (i440FX + PIIX, 1996)", "product_serial": "NA", "product_uuid": "NA", "product_version": "pc-i440fx-4.2", "python": { "executable": "/usr/bin/python3", "has_sslcontext": true, "type": "cpython", "version": { "major": 3, "micro": 10, "minor": 8, "releaselevel": "final", "serial": 0 }, "version_info": [ 3, 8, 10, "final", 0 ] }, "python_version": "3.8.10", "real_group_id": 0, "real_user_id": 0, "selinux": { "config_mode": "enforcing", "mode": "enforcing", "policyvers": 33, "status": "enabled", "type": "targeted" }, "selinux_python_present": true, "service_mgr": "systemd", "ssh_host_key_dsa_public": "AAAAB3NzaC1kc3MAAACBAI1zIa7uU1UJhHVRVF18hLVQLlUrGlGOdWasQc0f+w39sH2ZN2On7SHflWW6PAo+tKEyb819FFzAF/ejqwKkDN/MCUKpz/ipiY8WDxLCKAqjjwy3NoCM0U3ZutmnC4NhLm27Tta4onx1erbgyZGNsN/9FUa/WRB4Kb4kTgS5dO4/AAAAFQCWC0QQj77IFv4kQM5qexEdrDoMOQAAAIAtRYptU1Pp0yYkp/Y2fH4tn2IbN/F9VMQz9FyAXN0wPyDmq0mq3vGYQN1yXeKTAgobf8kY61aMmOLJk0YYMMlFAab19KlwsBdijxvzitotxzXnZCgZBoDom4O/RlY2j8eqL+trVH7//j+buwoSbojl+k1LDYD0edhJTTqRgqqL1AAAAIAOzlHs/jWImU3tqOJ9mytyS6q2+c+hDmKfQJ+NijbymWpd2+PTlOJPVz+WOq4UA5VztGZtc3TvsfVkMA8F1NFs0M/P/PNGZF7kEENfe26LpjaqMp+UC29rY+E/6cCc2urBR5ZNdK9MOK1y+sJXkvg+SelZ/SYSkiyMKNpNxJ6ZMA==", "ssh_host_key_ecdsa_public": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBH4LBhG8LNb+Jvc+y28Uf3mxmo1ZNYX3LcHh3Ygg2s1x+NiTw1S9z6vnlFKEy9LesTI3f2BSkhZMfAkyvdyUzKw=", "ssh_host_key_ed25519_public": "AAAAC3NzaC1lZDI1NTE5AAAAICobiQOWI06e4KitBX4IPA2qj/HybjlesEsSvObEUWIj", "ssh_host_key_rsa_public": "AAAAB3NzaC1yc2EAAAADAQABAAABgQC3nLqN4pBG79++w/0mtQzC+9RogZTm7Tpmc8ihmxvhMcnXG83e46HTDj92GsjtGjijWgk3NKDIeW4IrxB3jOz45T5IHbiVwAeWVXwPV2bOi7EmwG5xHFlWqJMs1pqSUFQrdzy90XN48TBRlVxsS/3v7sXw8gUo4vUUc/tAdDRtTXMCKUDKG/MgkHQGUsZ3GHr0qHzRzvY2CuTn1neb0deG9xpI1XAdfWNeqtY+M9fcuhXUdmCuD1/ShgDQaV7X4cwMZKuUMmEbrNWDmdIwlgNDRMhL7nQMA3YiGxr7HiX3xuynFfWglzwQmeFi12g1Kwswm5z8bZ91vj1Mn1Vvfc61Zj9OGtlcvUllFJuofPIuOKn3EBFQkmhFkGZ62EZtSxMIpDaH9tTnvaXsVBaOtaebJoLqYPA0oNm9z2b6Z6Do7GMwPClbx31XV3D88W5nvi4TRN/mXNF6AD3K22bIFfLMjkNdM1s6rze3+YZjSSGNFE04LbN28IN7EWhs7jsrgyM=", "swapfree_mb": 0, "swaptotal_mb": 0, "system": "Linux", "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", "38", "39", "40+ep" ], "system_capabilities_enforced": "True", "system_vendor": "QEMU", "uptime_seconds": 10, "user_dir": "/root", "user_gecos": "root", "user_gid": 0, "user_id": "root", "user_shell": "/bin/bash", "user_uid": 0, "userspace_architecture": "x86_64", "userspace_bits": "64", "virtualization_role": "guest", "virtualization_type": "kvm" } } TASK [Install required packages for nbde_client tests] ************************* task path: /tmp/tmpagnzt5h5/tests/tasks/setup_test.yml:24 changed: [/cache/fedora-32.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: cryptsetup-2.3.5-2.fc32.x86_64"]} TASK [Clone nbde_server role for the tests] ************************************ task path: /tmp/tmpagnzt5h5/tests/tasks/setup_test.yml:28 ok: [/cache/fedora-32.qcow2] => {"after": "c57d0b1f3384c525738fa26ba4bdca485e162567", "before": "c57d0b1f3384c525738fa26ba4bdca485e162567", "changed": false, "remote_url_changed": false} TASK [Deploy NBDE server for testing] ****************************************** task path: /tmp/tmpagnzt5h5/tests/tasks/setup_test.yml:35 TASK [/tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server : Set version specific variables] *** task path: /tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server/tasks/main.yml:6 ok: [/cache/fedora-32.qcow2] => {"ansible_facts": {"__nbde_server_cachedir": "/var/cache/tang", "__nbde_server_group": "tang", "__nbde_server_keydir": "/var/db/tang", "__nbde_server_keygen": "/usr/libexec/tangd-keygen", "__nbde_server_packages": ["tang"], "__nbde_server_services": ["tangd.socket"], "__nbde_server_update": "/usr/libexec/tangd-update", "__nbde_server_user": "tang"}, "ansible_included_var_files": ["/tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server/vars/default.yml"], "changed": false} TASK [/tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server : Include the appropriate provider tasks] *** task path: /tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server/tasks/main.yml:20 included: /tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server/tasks/main-tang.yml for /cache/fedora-32.qcow2 TASK [/tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server : Ensure tang is installed] *** task path: /tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server/tasks/main-tang.yml:2 changed: [/cache/fedora-32.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: tang-10-1.fc32.x86_64", "Installed: libjose-11-1.fc32.x86_64", "Installed: http-parser-2.9.3-2.fc32.x86_64", "Installed: jose-11-1.fc32.x86_64"]} TASK [/tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server : Ensure keys are rotated] *** task path: /tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server/tasks/main-tang.yml:7 skipping: [/cache/fedora-32.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [/tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server : Ensure we have keys] *** task path: /tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server/tasks/main-tang.yml:16 changed: [/cache/fedora-32.qcow2] => {"arguments": {"cachedir": "/var/cache/tang", "force": false, "keydir": "/var/db/tang", "keygen": "/usr/libexec/tangd-keygen", "keys_to_deploy_dir": null, "state": "keys-created", "update": "/usr/libexec/tangd-update"}, "changed": true, "state": "keys-created"} TASK [/tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server : Perform key management (fetch/deploy) tasks] *** task path: /tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server/tasks/main-tang.yml:25 skipping: [/cache/fedora-32.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [/tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server : Ensure required services are enabled and at the right state] *** task path: /tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server/tasks/main-tang.yml:29 changed: [/cache/fedora-32.qcow2] => (item=tangd.socket) => {"ansible_loop_var": "item", "changed": true, "enabled": true, "item": "tangd.socket", "name": "tangd.socket", "state": "started", "status": {"Accept": "yes", "ActiveEnterTimestampMonotonic": "0", "ActiveExitTimestampMonotonic": "0", "ActiveState": "inactive", "After": "sysinit.target system.slice", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "no", "AssertTimestampMonotonic": "0", "Backlog": "4096", "Before": "shutdown.target sockets.target", "BindIPv6Only": "default", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "Broadcast": "no", "CPUAccounting": "yes", "CPUAffinity": "", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "[not set]", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanIsolate": "no", "CanReload": "no", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "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 cap_perfmon cap_bpf cap_checkpoint_restore", "CollectMode": "inactive", "ConditionResult": "no", "ConditionTimestampMonotonic": "0", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target", "ControlPID": "0", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "DeferAcceptUSec": "0", "Delegate": "no", "Description": "Tang Server socket", "DevicePolicy": "auto", "DirectoryMode": "0755", "DynamicUser": "no", "EffectiveCPUs": "", "EffectiveMemoryNodes": "", "FailureAction": "none", "FileDescriptorName": "tangd.socket", "FinalKillSignal": "9", "FragmentPath": "/usr/lib/systemd/system/tangd.socket", "FreeBind": "no", "GID": "[not set]", "IOAccounting": "no", "IOReadBytes": "18446744073709551615", "IOReadOperations": "18446744073709551615", "IOSchedulingClass": "0", "IOSchedulingPriority": "0", "IOWeight": "[not set]", "IOWriteBytes": "18446744073709551615", "IOWriteOperations": "18446744073709551615", "IPAccounting": "no", "IPEgressBytes": "[no data]", "IPEgressPackets": "[no data]", "IPIngressBytes": "[no data]", "IPIngressPackets": "[no data]", "IPTOS": "-1", "IPTTL": "-1", "Id": "tangd.socket", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestampMonotonic": "0", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeepAlive": "no", "KeepAliveIntervalUSec": "0", "KeepAliveProbes": "0", "KeepAliveTimeUSec": "0", "KeyringMode": "shared", "KillMode": "control-group", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "infinity", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "65536", "LimitMEMLOCKSoft": "65536", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "524288", "LimitNOFILESoft": "1024", "LimitNPROC": "7782", "LimitNPROCSoft": "7782", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "7782", "LimitSIGPENDINGSoft": "7782", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "Listen": "[::]:80 (Stream)", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "Mark": "-1", "MaxConnections": "64", "MaxConnectionsPerSource": "0", "MemoryAccounting": "yes", "MemoryCurrent": "[not set]", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MessageQueueMaxMessages": "0", "MessageQueueMessageSize": "0", "MountAPIVFS": "no", "MountFlags": "", "NAccepted": "0", "NConnections": "0", "NRefused": "0", "NUMAMask": "", "NUMAPolicy": "n/a", "Names": "tangd.socket", "NeedDaemonReload": "no", "Nice": "0", "NoDelay": "no", "NoNewPrivileges": "no", "NonBlocking": "no", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PassCredentials": "no", "PassSecurity": "no", "Perpetual": "no", "PipeSize": "0", "Priority": "-1", "PrivateDevices": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProtectClock": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectHostname": "no", "ProtectKernelLogs": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectSystem": "no", "ReceiveBuffer": "0", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemoveIPC": "no", "RemoveOnStop": "no", "Requires": "sysinit.target system.slice", "RestartKillSignal": "15", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "ReusePort": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "SameProcessGroup": "no", "SecureBits": "0", "SendBuffer": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "SocketMode": "0666", "SocketProtocol": "0", "StandardError": "inherit", "StandardInput": "null", "StandardInputData": "", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestampMonotonic": "0", "StateDirectoryMode": "0755", "StopWhenUnneeded": "no", "SubState": "dead", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "[not set]", "TasksMax": "2334", "TimeoutCleanUSec": "infinity", "TimeoutUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Transparent": "no", "TriggerLimitBurst": "200", "TriggerLimitIntervalUSec": "2s", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "disabled", "UnitFileState": "disabled", "UtmpMode": "init", "WatchdogSignal": "6", "Writable": "no"}} TASK [Create device for testing] *********************************************** task path: /tmp/tmpagnzt5h5/tests/tasks/setup_test.yml:39 ok: [/cache/fedora-32.qcow2] => {"changed": false, "cmd": ["fallocate", "-l64m", "/tmp/.nbde_client_dev_test"], "delta": "0:00:00.006090", "end": "2021-06-08 16:25:16.953080", "rc": 0, "start": "2021-06-08 16:25:16.946990", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Format test device as LUKS] ********************************************** task path: /tmp/tmpagnzt5h5/tests/tasks/setup_test.yml:43 ok: [/cache/fedora-32.qcow2] => {"changed": false, "cmd": "set -euo pipefail; echo -n test-password-here | cryptsetup luksFormat --pbkdf pbkdf2 --pbkdf-force-iterations 1000 --batch-mode --force-password /tmp/.nbde_client_dev_test", "delta": "0:00:00.154203", "end": "2021-06-08 16:25:17.472477", "rc": 0, "start": "2021-06-08 16:25:17.318274", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Create key file for test device] ***************************************** task path: /tmp/tmpagnzt5h5/tests/tasks/setup_test.yml:51 ok: [/cache/fedora-32.qcow2] => {"changed": false, "cmd": "echo -n test-password-here > /tmp/.nbde_client_dev_encryption_key\n", "delta": "0:00:00.003762", "end": "2021-06-08 16:25:18.061556", "rc": 0, "start": "2021-06-08 16:25:18.057794", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Use nbde_client role] **************************************************** task path: /tmp/tmpagnzt5h5/tests/tests_simple_bind_unbind_keyfile.yml:20 TASK [linux-system-roles.nbde_client : Set version specific variables] ********* task path: /tmp/tmpagnzt5h5/tasks/main.yml:4 ok: [/cache/fedora-32.qcow2] => {"ansible_facts": {"__nbde_client_initramfs_update_cmd": "dracut -f", "__nbde_client_packages": ["clevis", "clevis-dracut", "clevis-luks", "clevis-systemd"]}, "ansible_included_var_files": ["/tmp/tmpagnzt5h5/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.nbde_client : Include the appropriate provider tasks] *** task path: /tmp/tmpagnzt5h5/tasks/main.yml:17 included: /tmp/tmpagnzt5h5/tasks/main-clevis.yml for /cache/fedora-32.qcow2 TASK [linux-system-roles.nbde_client : Ensure required packages are installed] *** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:2 changed: [/cache/fedora-32.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: oniguruma-6.9.5-4.rev1.fc32.x86_64", "Installed: tpm2-tools-4.1.3-1.fc32.x86_64", "Installed: tpm2-tss-2.4.4-1.fc32.x86_64", "Installed: clevis-18-1.fc32.x86_64", "Installed: clevis-dracut-18-1.fc32.x86_64", "Installed: clevis-luks-18-1.fc32.x86_64", "Installed: clevis-systemd-18-1.fc32.x86_64", "Installed: dracut-network-050-61.git20200529.fc32.x86_64", "Installed: libluksmeta-9-8.fc32.x86_64", "Installed: jq-1.6-4.fc32.x86_64", "Installed: luksmeta-9-8.fc32.x86_64"]} TASK [linux-system-roles.nbde_client : Check whether devices are at the desired state] *** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:7 changed: [/cache/fedora-32.qcow2] => {"changed": true, "original_bindings": [{"device": "/tmp/.nbde_client_dev_test", "encryption_key_src": "/tmp/.nbde_client_dev_encryption_key", "password_temporary": false, "servers": ["http://localhost"], "slot": 1, "state": "present", "threshold": 1}, {"device": "/tmp/.nbde_client_dev_test", "encryption_key_src": "/tmp/.nbde_client_dev_encryption_key", "password_temporary": false, "servers": [], "slot": 1, "state": "absent", "threshold": 1}]} TASK [linux-system-roles.nbde_client : Create temporary directory to hold key files] *** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:17 changed: [/cache/fedora-32.qcow2] => {"changed": true, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/tmp/ansible.xrgl2ugrnbde_client_encryption_keys", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 4096, "state": "directory", "uid": 0} TASK [linux-system-roles.nbde_client : Ensure we transfer key files] *********** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:25 changed: [/cache/fedora-32.qcow2] => (item=/tmp/.nbde_client_dev_encryption_key) => {"ansible_loop_var": "item", "changed": true, "checksum": "ddcbbd80371add8b55e5288b1278a7ead06c422e", "dest": "/tmp/ansible.xrgl2ugrnbde_client_encryption_keys/.nbde_client_dev_encryption_key", "gid": 0, "group": "root", "item": {"device": "/tmp/.nbde_client_dev_test", "encryption_key_src": "/tmp/.nbde_client_dev_encryption_key", "servers": ["http://localhost"]}, "md5sum": "7e9df3be3334c1e2e9aa64d831cdb03d", "mode": "0400", "owner": "root", "secontext": "unconfined_u:object_r:admin_home_t:s0", "size": 18, "src": "/root/.ansible/tmp/ansible-tmp-1623169525.0959058-210992-9375758656026/source", "state": "file", "uid": 0} ok: [/cache/fedora-32.qcow2] => (item=/tmp/.nbde_client_dev_encryption_key) => {"ansible_loop_var": "item", "changed": false, "checksum": "ddcbbd80371add8b55e5288b1278a7ead06c422e", "dest": "/tmp/ansible.xrgl2ugrnbde_client_encryption_keys/.nbde_client_dev_encryption_key", "gid": 0, "group": "root", "item": {"device": "/tmp/.nbde_client_dev_test", "encryption_key_src": "/tmp/.nbde_client_dev_encryption_key", "state": "absent"}, "mode": "0400", "owner": "root", "path": "/tmp/ansible.xrgl2ugrnbde_client_encryption_keys/.nbde_client_dev_encryption_key", "secontext": "unconfined_u:object_r:admin_home_t:s0", "size": 18, "state": "file", "uid": 0} TASK [linux-system-roles.nbde_client : Perform clevis operations] ************** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:37 NOTIFIED HANDLER linux-system-roles.nbde_client : nbde_client update initramfs for /cache/fedora-32.qcow2 changed: [/cache/fedora-32.qcow2] => {"changed": true, "original_bindings": [{"device": "/tmp/.nbde_client_dev_test", "encryption_key": "/tmp/ansible.xrgl2ugrnbde_client_encryption_keys/.nbde_client_dev_encryption_key", "encryption_key_src": "/tmp/.nbde_client_dev_encryption_key", "password_temporary": false, "servers": ["http://localhost"], "slot": 1, "state": "present", "threshold": 1}, {"device": "/tmp/.nbde_client_dev_test", "encryption_key": "/tmp/ansible.xrgl2ugrnbde_client_encryption_keys/.nbde_client_dev_encryption_key", "encryption_key_src": "/tmp/.nbde_client_dev_encryption_key", "password_temporary": false, "servers": [], "slot": 1, "state": "absent", "threshold": 1}]} TASK [linux-system-roles.nbde_client : Remove temporary directory used to hold key files] *** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:47 changed: [/cache/fedora-32.qcow2] => {"changed": true, "path": "/tmp/ansible.xrgl2ugrnbde_client_encryption_keys", "state": "absent"} TASK [Attempt to unlock device] ************************************************ task path: /tmp/tmpagnzt5h5/tests/tests_simple_bind_unbind_keyfile.yml:24 included: /tmp/tmpagnzt5h5/tests/tasks/verify_unlock_device.yml for /cache/fedora-32.qcow2 TASK [Verify we can unlock the device] ***************************************** task path: /tmp/tmpagnzt5h5/tests/tasks/verify_unlock_device.yml:2 fatal: [/cache/fedora-32.qcow2]: FAILED! => {"changed": false, "cmd": ["clevis", "luks", "unlock", "-d", "/tmp/.nbde_client_dev_test", "-n", "nbde_client_unlocked"], "delta": "0:00:00.050678", "end": "2021-06-08 16:25:31.882511", "msg": "non-zero return code", "rc": 1, "start": "2021-06-08 16:25:31.831833", "stderr": "/tmp/.nbde_client_dev_test could not be opened.", "stderr_lines": ["/tmp/.nbde_client_dev_test could not be opened."], "stdout": "", "stdout_lines": []} ...ignoring TASK [Close unlocked device] *************************************************** task path: /tmp/tmpagnzt5h5/tests/tasks/verify_unlock_device.yml:10 fatal: [/cache/fedora-32.qcow2]: FAILED! => {"changed": false, "cmd": ["cryptsetup", "close", "nbde_client_unlocked"], "delta": "0:00:00.008834", "end": "2021-06-08 16:25:32.228005", "msg": "non-zero return code", "rc": 4, "start": "2021-06-08 16:25:32.219171", "stderr": "Device nbde_client_unlocked is not active.", "stderr_lines": ["Device nbde_client_unlocked is not active."], "stdout": "", "stdout_lines": []} ...ignoring TASK [Make sure the attempt to unlock failed] ********************************** task path: /tmp/tmpagnzt5h5/tests/tests_simple_bind_unbind_keyfile.yml:27 ok: [/cache/fedora-32.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Assert idempotency when trying to only unbind] *************************** task path: /tmp/tmpagnzt5h5/tests/tests_simple_bind_unbind_keyfile.yml:33 included: /tmp/tmpagnzt5h5/tests/tasks/verify_idempotency.yml for /cache/fedora-32.qcow2 TASK [Use nbde_client role - idempotency check] ******************************** task path: /tmp/tmpagnzt5h5/tests/tasks/verify_idempotency.yml:2 TASK [linux-system-roles.nbde_client : Set version specific variables] ********* task path: /tmp/tmpagnzt5h5/tasks/main.yml:4 ok: [/cache/fedora-32.qcow2] => {"ansible_facts": {"__nbde_client_initramfs_update_cmd": "dracut -f", "__nbde_client_packages": ["clevis", "clevis-dracut", "clevis-luks", "clevis-systemd"]}, "ansible_included_var_files": ["/tmp/tmpagnzt5h5/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.nbde_client : Include the appropriate provider tasks] *** task path: /tmp/tmpagnzt5h5/tasks/main.yml:17 included: /tmp/tmpagnzt5h5/tasks/main-clevis.yml for /cache/fedora-32.qcow2 TASK [linux-system-roles.nbde_client : Ensure required packages are installed] *** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:2 ok: [/cache/fedora-32.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [linux-system-roles.nbde_client : Check whether devices are at the desired state] *** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:7 ok: [/cache/fedora-32.qcow2] => {"changed": false, "original_bindings": [{"device": "/tmp/.nbde_client_dev_test", "encryption_key_src": "/tmp/.nbde_client_dev_encryption_key", "password_temporary": false, "servers": [], "slot": 1, "state": "absent", "threshold": 1}]} TASK [linux-system-roles.nbde_client : Create temporary directory to hold key files] *** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:17 skipping: [/cache/fedora-32.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.nbde_client : Ensure we transfer key files] *********** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:25 skipping: [/cache/fedora-32.qcow2] => (item=/tmp/.nbde_client_dev_encryption_key) => {"ansible_loop_var": "item", "changed": false, "item": {"device": "/tmp/.nbde_client_dev_test", "encryption_key_src": "/tmp/.nbde_client_dev_encryption_key", "state": "absent"}, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.nbde_client : Perform clevis operations] ************** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:37 skipping: [/cache/fedora-32.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.nbde_client : Remove temporary directory used to hold key files] *** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:47 skipping: [/cache/fedora-32.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify idempotency of clevis operations] ********************************* task path: /tmp/tmpagnzt5h5/tests/tasks/verify_idempotency.yml:6 ok: [/cache/fedora-32.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up test environment] *********************************************** task path: /tmp/tmpagnzt5h5/tests/tests_simple_bind_unbind_keyfile.yml:42 included: /tmp/tmpagnzt5h5/tests/tasks/cleanup_test.yml for /cache/fedora-32.qcow2 TASK [Clean up dummy testing device] ******************************************* task path: /tmp/tmpagnzt5h5/tests/tasks/cleanup_test.yml:2 changed: [/cache/fedora-32.qcow2] => {"changed": true, "path": "/tmp/.nbde_client_dev_test", "state": "absent"} TASK [Clean up dummy key file] ************************************************* task path: /tmp/tmpagnzt5h5/tests/tasks/cleanup_test.yml:7 changed: [/cache/fedora-32.qcow2] => {"changed": true, "path": "/tmp/.nbde_client_dev_encryption_key", "state": "absent"} TASK [Clean up dummy key file on managed host] ********************************* task path: /tmp/tmpagnzt5h5/tests/tasks/cleanup_test.yml:13 ok: [/cache/fedora-32.qcow2] => {"changed": false, "path": "/tmp/.nbde_client_dev_encryption_key", "state": "absent"} RUNNING HANDLER [linux-system-roles.nbde_client : nbde_client update initramfs] *** task path: /tmp/tmpagnzt5h5/handlers/main.yml:4 changed: [/cache/fedora-32.qcow2] => {"changed": true, "cmd": ["dracut", "-f"], "delta": "0:00:18.791266", "end": "2021-06-08 16:25:55.873208", "rc": 0, "start": "2021-06-08 16:25:37.081942", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/fedora-32.qcow2 : ok=39 changed=13 unreachable=0 failed=0 skipped=7 rescued=0 ignored=2 + cd /tmp/tmpagnzt5h5/tests; TEST_SUBJECTS=/cache/fedora-32.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_nbde_client-50-792f563-fedora-32-dxfcttx2/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmpagnzt5h5/_setup.yml /tmp/tmpagnzt5h5/tests/tests_use_existing_binding.yml ansible-playbook 2.9.21 config file = /etc/ansible/ansible.cfg configured module search path = ['/home/tester/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.8/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 3.8.10 (default, May 4 2021, 00:00:00) [GCC 10.2.1 20201125 (Red Hat 10.2.1-9)] Using /etc/ansible/ansible.cfg as config file Skipping callback 'actionable', as we already have a stdout callback. Skipping callback 'counter_enabled', as we already have a stdout callback. Skipping callback 'debug', as we already have a stdout callback. Skipping callback 'dense', as we already have a stdout callback. Skipping callback 'dense', as we already have a stdout callback. Skipping callback 'full_skip', as we already have a stdout callback. Skipping callback 'json', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'null', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. Skipping callback 'selective', as we already have a stdout callback. Skipping callback 'skippy', as we already have a stdout callback. Skipping callback 'stderr', as we already have a stdout callback. Skipping callback 'unixy', as we already have a stdout callback. Skipping callback 'yaml', as we already have a stdout callback. PLAYBOOK: _setup.yml *********************************************************** 1 plays in /tmp/tmpagnzt5h5/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmpagnzt5h5/_setup.yml:5 ok: [/cache/fedora-32.qcow2] => { "groups": { "all": [ "/cache/fedora-32.qcow2" ], "localhost": [ "/cache/fedora-32.qcow2" ], "subjects": [ "/cache/fedora-32.qcow2" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmpagnzt5h5/_setup.yml:7 skipping: [/cache/fedora-32.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/fedora-32.qcow2 : ok=1 changed=0 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 PLAYBOOK: tests_use_existing_binding.yml *************************************** 1 plays in /tmp/tmpagnzt5h5/tests/tests_use_existing_binding.yml PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpagnzt5h5/tests/tests_use_existing_binding.yml:2 ok: [/cache/fedora-32.qcow2] META: ran handlers TASK [Set up test environment] ************************************************* task path: /tmp/tmpagnzt5h5/tests/tests_use_existing_binding.yml:7 included: /tmp/tmpagnzt5h5/tests/tasks/setup_test.yml for /cache/fedora-32.qcow2 TASK [Include general tests variables] ***************************************** task path: /tmp/tmpagnzt5h5/tests/tasks/setup_test.yml:2 ok: [/cache/fedora-32.qcow2] => {"ansible_facts": {"nbde_client_test_device": "/tmp/.nbde_client_dev_test", "nbde_client_test_encryption_key_src": "/tmp/.nbde_client_dev_encryption_key", "nbde_client_test_pass": "test-password-here", "nbde_client_test_roles_dir": "/tmp/.nbde_client_dev_roles"}, "ansible_included_var_files": ["/tmp/tmpagnzt5h5/tests/vars/main.yml"], "changed": false} TASK [Set version specific variables] ****************************************** task path: /tmp/tmpagnzt5h5/tests/tasks/setup_test.yml:5 ok: [/cache/fedora-32.qcow2] => {"ansible_facts": {"nbde_client_test_packages": ["cryptsetup"]}, "ansible_included_var_files": ["/tmp/tmpagnzt5h5/tests/vars/Fedora.yml"], "changed": false} TASK [Print all available facts] *********************************************** task path: /tmp/tmpagnzt5h5/tests/tasks/setup_test.yml:20 ok: [/cache/fedora-32.qcow2] => { "ansible_facts": { "all_ipv4_addresses": [ "10.0.2.15" ], "all_ipv6_addresses": [ "fec0::5054:ff:fe12:3456", "fe80::5054:ff:fe12:3456" ], "ansible_local": {}, "apparmor": { "status": "disabled" }, "architecture": "x86_64", "bios_date": "04/01/2014", "bios_version": "1.13.0-2.fc32", "cmdline": { "BOOT_IMAGE": "(hd0,msdos1)/boot/vmlinuz-5.11.22-100.fc32.x86_64", "console": "ttyS0,115200n8", "net.ifnames": "0", "no_timer_check": true, "ro": true, "root": "UUID=450c38b7-9e89-4257-8d2f-915e2c3ab50d" }, "date_time": { "date": "2021-06-08", "day": "08", "epoch": "1623169570", "hour": "16", "iso8601": "2021-06-08T16:26:10Z", "iso8601_basic": "20210608T162610037402", "iso8601_basic_short": "20210608T162610", "iso8601_micro": "2021-06-08T16:26:10.037402Z", "minute": "26", "month": "06", "second": "10", "time": "16:26:10", "tz": "UTC", "tz_offset": "+0000", "weekday": "Tuesday", "weekday_number": "2", "weeknumber": "23", "year": "2021" }, "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" }, "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" }, "device_links": { "ids": { "sr0": [ "ata-QEMU_DVD-ROM_QM00003" ] }, "labels": { "sr0": [ "cidata" ] }, "masters": {}, "uuids": { "sr0": [ "2021-06-08-16-25-56-00" ], "vda1": [ "450c38b7-9e89-4257-8d2f-915e2c3ab50d" ] } }, "devices": { "sr0": { "holders": [], "host": "", "links": { "ids": [ "ata-QEMU_DVD-ROM_QM00003" ], "labels": [ "cidata" ], "masters": [], "uuids": [ "2021-06-08-16-25-56-00" ] }, "model": "QEMU DVD-ROM", "partitions": {}, "removable": "1", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "bfq", "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": [ "450c38b7-9e89-4257-8d2f-915e2c3ab50d" ] }, "sectors": "8386560", "sectorsize": 512, "size": "4.00 GB", "start": "2048", "uuid": "450c38b7-9e89-4257-8d2f-915e2c3ab50d" } }, "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": "512", "vendor": "0x1af4", "virtual": 1 } }, "distribution": "Fedora", "distribution_file_parsed": true, "distribution_file_path": "/etc/redhat-release", "distribution_file_variety": "RedHat", "distribution_major_version": "32", "distribution_release": "", "distribution_version": "32", "dns": { "nameservers": [ "10.0.2.3" ], "search": [ "virt.pnr.lab.eng.rdu2.redhat.com" ] }, "domain": "virt.pnr.lab.eng.rdu2.redhat.com", "effective_group_id": 0, "effective_user_id": 0, "env": { "DBUS_SESSION_BUS_ADDRESS": "unix:path=/run/user/0/bus", "HOME": "/root", "LANG": "en_US.UTF-8", "LC_CTYPE": "C.UTF-8", "LESSOPEN": "||/usr/bin/lesspipe.sh %s", "LOGNAME": "root", "LS_COLORS": "", "MOTD_SHOWN": "pam", "PATH": "/root/.local/bin:/root/bin:/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 55992 22", "SSH_CONNECTION": "10.0.2.2 55992 10.0.2.15 22", "SSH_TTY": "/dev/pts/0", "USER": "root", "XDG_RUNTIME_DIR": "/run/user/0", "XDG_SESSION_CLASS": "user", "XDG_SESSION_ID": "1", "XDG_SESSION_TYPE": "tty", "_": "/usr/bin/python3" }, "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" }, "fibre_channel_wwn": [], "fips": false, "form_factor": "Other", "fqdn": "ibm-p8-kvm-03-guest-02.virt.pnr.lab.eng.rdu2.redhat.com", "gather_subset": [ "all" ], "hostname": "ibm-p8-kvm-03-guest-02", "hostnqn": "", "interfaces": [ "eth0", "lo" ], "is_chroot": false, "iscsi_iqn": "", "kernel": "5.11.22-100.fc32.x86_64", "kernel_version": "#1 SMP Wed May 19 18:58:25 UTC 2021", "lo": { "active": true, "device": "lo", "ipv4": { "address": "127.0.0.1", "broadcast": "", "netmask": "255.0.0.0", "network": "127.0.0.0" }, "ipv6": [ { "address": "::1", "prefix": "128", "scope": "host" } ], "mtu": 65536, "promisc": false, "type": "loopback" }, "lsb": {}, "machine": "x86_64", "machine_id": "9e7a20bdd6c4455ca12c538d701167af", "memfree_mb": 1692, "memory_mb": { "nocache": { "free": 1850, "used": 126 }, "real": { "free": 1692, "total": 1976, "used": 284 }, "swap": { "cached": 0, "free": 0, "total": 0, "used": 0 } }, "memtotal_mb": 1976, "module_setup": true, "mounts": [ { "block_available": 775844, "block_size": 4096, "block_total": 1015472, "block_used": 239628, "device": "/dev/vda1", "fstype": "ext4", "inode_available": 235263, "inode_total": 262144, "inode_used": 26881, "mount": "/", "options": "rw,seclabel,relatime", "size_available": 3177857024, "size_total": 4159373312, "uuid": "450c38b7-9e89-4257-8d2f-915e2c3ab50d" } ], "nodename": "ibm-p8-kvm-03-guest-02.virt.pnr.lab.eng.rdu2.redhat.com", "os_family": "RedHat", "pkg_mgr": "dnf", "proc_cmdline": { "BOOT_IMAGE": "(hd0,msdos1)/boot/vmlinuz-5.11.22-100.fc32.x86_64", "console": [ "tty1", "ttyS0,115200n8" ], "net.ifnames": "0", "no_timer_check": true, "ro": true, "root": "UUID=450c38b7-9e89-4257-8d2f-915e2c3ab50d" }, "processor": [ "0", "GenuineIntel", "Intel(R) Xeon(R) Platinum 8168 CPU @ 2.70GHz", "1", "GenuineIntel", "Intel(R) Xeon(R) Platinum 8168 CPU @ 2.70GHz", "2", "GenuineIntel", "Intel(R) Xeon(R) Platinum 8168 CPU @ 2.70GHz", "3", "GenuineIntel", "Intel(R) Xeon(R) Platinum 8168 CPU @ 2.70GHz" ], "processor_cores": 1, "processor_count": 4, "processor_threads_per_core": 1, "processor_vcpus": 4, "product_name": "Standard PC (i440FX + PIIX, 1996)", "product_serial": "NA", "product_uuid": "NA", "product_version": "pc-i440fx-4.2", "python": { "executable": "/usr/bin/python3", "has_sslcontext": true, "type": "cpython", "version": { "major": 3, "micro": 10, "minor": 8, "releaselevel": "final", "serial": 0 }, "version_info": [ 3, 8, 10, "final", 0 ] }, "python_version": "3.8.10", "real_group_id": 0, "real_user_id": 0, "selinux": { "config_mode": "enforcing", "mode": "enforcing", "policyvers": 33, "status": "enabled", "type": "targeted" }, "selinux_python_present": true, "service_mgr": "systemd", "ssh_host_key_dsa_public": "AAAAB3NzaC1kc3MAAACBAJo6Jyp+o1NbT64KAiY6pAS41ItScUndDoVqp2394JD1h08/g2TR+J+yIezKC15xRqT4E1ZxuDjq5PubV2avC2/RFQtcF/EuvYEU8mCeRiRVF5ooRDhl0kKxRrodOvbBPEd1OdU2WVCj6McXkm/dXTF9v5MiWm3Vbe0SYVGE0uXbAAAAFQCxWQ1UxjkfZje7d/nU6cRBfsBOzQAAAIBSk9+VG53gPDYsdbgxd3Lnydf2RG1V4XKGVNTmAf3LSNzBXp6Ew9OQk79pjlsuLWsoMduzg6a/VppsMrttaREToDeTCjkTZSyyo0O5nHLM63cUawjII99P2BTZyLYxOweaWOLd42okVnQRVc4TwlLN4KPB9p6TJIKGv65YoQMKQQAAAIAwbYJjsjd5TwhIrdv5VF39foveoZLx0Vj2bCsjbb5GaEzhtoQAZX7LqJ/bNYh6vq1ZMVqToKZtFL5102/wZmUmktujPLe5NIFmq8IZfWpRi4Kl8dohm3+EFZK/dR2Fjd1E+xGCojnvHyc91jccKYxKkul3kMSJjlvWEwH6q+pjQQ==", "ssh_host_key_ecdsa_public": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBJfAij7JCidvsX8ZkHjnwH3G2jNkg0OMZb4Bn0M+j5KhL1wyipkjXTSzVt+hkP5i2CTFP5ASPHJASdC9HleWZDs=", "ssh_host_key_ed25519_public": "AAAAC3NzaC1lZDI1NTE5AAAAIDgwr2W2Y2SmuJQ383L+6XBIxic1kQ8yWsrRSYqDiQim", "ssh_host_key_rsa_public": "AAAAB3NzaC1yc2EAAAADAQABAAABgQC6LC8BEcMjuXm6RdbwvdwBVaRQsVQwvzU8XI49wVMFpke+b2T3bHY23Z4w8SWJlUYzFE8SQM6F8y7Trs+1Qh5bzvcGL/FMboXlA7B1xfeegpxvShH3gmZvPRfrfpXsIpC7FNPaRRAGFNtG1D7xwPU8C/nRmfZ8OtPKRU/qfHdCanuGO0aU+fIY+ieWus1h1ZTkuV1iwi3sZBB7mirA7s13avRc/hWOwk4FcEDaUDq+PMgZng9rUVDgRsZnuw8IWGXx/O6W4V4XrE70trq0pBHJZwtT+RJoR+UuQe+riL2j7hWTYn9pcIAUzfU5n2gzxZewXoAAgtMmDlf/0Y+HPqwvDmI/y0QieRA2JIhEvFQsYkeX8XtDtxXKamlke/fNEN/2z7qUNnjZPAy/1qq0n8hMo7VORLmB4erbGEd7mDc8KUUnS5diEqH0oqbhDbn2v7LtoNjH1SZDEJLJABNoEBS1/TXCG51Lq5bAaSwSAYd8hdtQLoiRt19qEBOJ5YNaqFs=", "swapfree_mb": 0, "swaptotal_mb": 0, "system": "Linux", "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", "38", "39", "40+ep" ], "system_capabilities_enforced": "True", "system_vendor": "QEMU", "uptime_seconds": 11, "user_dir": "/root", "user_gecos": "root", "user_gid": 0, "user_id": "root", "user_shell": "/bin/bash", "user_uid": 0, "userspace_architecture": "x86_64", "userspace_bits": "64", "virtualization_role": "guest", "virtualization_type": "kvm" } } TASK [Install required packages for nbde_client tests] ************************* task path: /tmp/tmpagnzt5h5/tests/tasks/setup_test.yml:24 changed: [/cache/fedora-32.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: cryptsetup-2.3.5-2.fc32.x86_64"]} TASK [Clone nbde_server role for the tests] ************************************ task path: /tmp/tmpagnzt5h5/tests/tasks/setup_test.yml:28 ok: [/cache/fedora-32.qcow2] => {"after": "c57d0b1f3384c525738fa26ba4bdca485e162567", "before": "c57d0b1f3384c525738fa26ba4bdca485e162567", "changed": false, "remote_url_changed": false} TASK [Deploy NBDE server for testing] ****************************************** task path: /tmp/tmpagnzt5h5/tests/tasks/setup_test.yml:35 TASK [/tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server : Set version specific variables] *** task path: /tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server/tasks/main.yml:6 ok: [/cache/fedora-32.qcow2] => {"ansible_facts": {"__nbde_server_cachedir": "/var/cache/tang", "__nbde_server_group": "tang", "__nbde_server_keydir": "/var/db/tang", "__nbde_server_keygen": "/usr/libexec/tangd-keygen", "__nbde_server_packages": ["tang"], "__nbde_server_services": ["tangd.socket"], "__nbde_server_update": "/usr/libexec/tangd-update", "__nbde_server_user": "tang"}, "ansible_included_var_files": ["/tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server/vars/default.yml"], "changed": false} TASK [/tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server : Include the appropriate provider tasks] *** task path: /tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server/tasks/main.yml:20 included: /tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server/tasks/main-tang.yml for /cache/fedora-32.qcow2 TASK [/tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server : Ensure tang is installed] *** task path: /tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server/tasks/main-tang.yml:2 changed: [/cache/fedora-32.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: tang-10-1.fc32.x86_64", "Installed: libjose-11-1.fc32.x86_64", "Installed: http-parser-2.9.3-2.fc32.x86_64", "Installed: jose-11-1.fc32.x86_64"]} TASK [/tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server : Ensure keys are rotated] *** task path: /tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server/tasks/main-tang.yml:7 skipping: [/cache/fedora-32.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [/tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server : Ensure we have keys] *** task path: /tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server/tasks/main-tang.yml:16 changed: [/cache/fedora-32.qcow2] => {"arguments": {"cachedir": "/var/cache/tang", "force": false, "keydir": "/var/db/tang", "keygen": "/usr/libexec/tangd-keygen", "keys_to_deploy_dir": null, "state": "keys-created", "update": "/usr/libexec/tangd-update"}, "changed": true, "state": "keys-created"} TASK [/tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server : Perform key management (fetch/deploy) tasks] *** task path: /tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server/tasks/main-tang.yml:25 skipping: [/cache/fedora-32.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [/tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server : Ensure required services are enabled and at the right state] *** task path: /tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server/tasks/main-tang.yml:29 changed: [/cache/fedora-32.qcow2] => (item=tangd.socket) => {"ansible_loop_var": "item", "changed": true, "enabled": true, "item": "tangd.socket", "name": "tangd.socket", "state": "started", "status": {"Accept": "yes", "ActiveEnterTimestampMonotonic": "0", "ActiveExitTimestampMonotonic": "0", "ActiveState": "inactive", "After": "sysinit.target system.slice", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "no", "AssertTimestampMonotonic": "0", "Backlog": "4096", "Before": "sockets.target shutdown.target", "BindIPv6Only": "default", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "Broadcast": "no", "CPUAccounting": "yes", "CPUAffinity": "", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "[not set]", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanIsolate": "no", "CanReload": "no", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "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 cap_perfmon cap_bpf cap_checkpoint_restore", "CollectMode": "inactive", "ConditionResult": "no", "ConditionTimestampMonotonic": "0", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target", "ControlPID": "0", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "DeferAcceptUSec": "0", "Delegate": "no", "Description": "Tang Server socket", "DevicePolicy": "auto", "DirectoryMode": "0755", "DynamicUser": "no", "EffectiveCPUs": "", "EffectiveMemoryNodes": "", "FailureAction": "none", "FileDescriptorName": "tangd.socket", "FinalKillSignal": "9", "FragmentPath": "/usr/lib/systemd/system/tangd.socket", "FreeBind": "no", "GID": "[not set]", "IOAccounting": "no", "IOReadBytes": "18446744073709551615", "IOReadOperations": "18446744073709551615", "IOSchedulingClass": "0", "IOSchedulingPriority": "0", "IOWeight": "[not set]", "IOWriteBytes": "18446744073709551615", "IOWriteOperations": "18446744073709551615", "IPAccounting": "no", "IPEgressBytes": "[no data]", "IPEgressPackets": "[no data]", "IPIngressBytes": "[no data]", "IPIngressPackets": "[no data]", "IPTOS": "-1", "IPTTL": "-1", "Id": "tangd.socket", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestampMonotonic": "0", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeepAlive": "no", "KeepAliveIntervalUSec": "0", "KeepAliveProbes": "0", "KeepAliveTimeUSec": "0", "KeyringMode": "shared", "KillMode": "control-group", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "infinity", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "65536", "LimitMEMLOCKSoft": "65536", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "524288", "LimitNOFILESoft": "1024", "LimitNPROC": "7782", "LimitNPROCSoft": "7782", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "7782", "LimitSIGPENDINGSoft": "7782", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "Listen": "[::]:80 (Stream)", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "Mark": "-1", "MaxConnections": "64", "MaxConnectionsPerSource": "0", "MemoryAccounting": "yes", "MemoryCurrent": "[not set]", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MessageQueueMaxMessages": "0", "MessageQueueMessageSize": "0", "MountAPIVFS": "no", "MountFlags": "", "NAccepted": "0", "NConnections": "0", "NRefused": "0", "NUMAMask": "", "NUMAPolicy": "n/a", "Names": "tangd.socket", "NeedDaemonReload": "no", "Nice": "0", "NoDelay": "no", "NoNewPrivileges": "no", "NonBlocking": "no", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PassCredentials": "no", "PassSecurity": "no", "Perpetual": "no", "PipeSize": "0", "Priority": "-1", "PrivateDevices": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProtectClock": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectHostname": "no", "ProtectKernelLogs": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectSystem": "no", "ReceiveBuffer": "0", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemoveIPC": "no", "RemoveOnStop": "no", "Requires": "sysinit.target system.slice", "RestartKillSignal": "15", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "ReusePort": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "SameProcessGroup": "no", "SecureBits": "0", "SendBuffer": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "SocketMode": "0666", "SocketProtocol": "0", "StandardError": "inherit", "StandardInput": "null", "StandardInputData": "", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestampMonotonic": "0", "StateDirectoryMode": "0755", "StopWhenUnneeded": "no", "SubState": "dead", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "[not set]", "TasksMax": "2334", "TimeoutCleanUSec": "infinity", "TimeoutUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Transparent": "no", "TriggerLimitBurst": "200", "TriggerLimitIntervalUSec": "2s", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "disabled", "UnitFileState": "disabled", "UtmpMode": "init", "WatchdogSignal": "6", "Writable": "no"}} TASK [Create device for testing] *********************************************** task path: /tmp/tmpagnzt5h5/tests/tasks/setup_test.yml:39 ok: [/cache/fedora-32.qcow2] => {"changed": false, "cmd": ["fallocate", "-l64m", "/tmp/.nbde_client_dev_test"], "delta": "0:00:00.005127", "end": "2021-06-08 16:26:56.987044", "rc": 0, "start": "2021-06-08 16:26:56.981917", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Format test device as LUKS] ********************************************** task path: /tmp/tmpagnzt5h5/tests/tasks/setup_test.yml:43 ok: [/cache/fedora-32.qcow2] => {"changed": false, "cmd": "set -euo pipefail; echo -n test-password-here | cryptsetup luksFormat --pbkdf pbkdf2 --pbkdf-force-iterations 1000 --batch-mode --force-password /tmp/.nbde_client_dev_test", "delta": "0:00:00.144289", "end": "2021-06-08 16:26:57.471372", "rc": 0, "start": "2021-06-08 16:26:57.327083", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Create key file for test device] ***************************************** task path: /tmp/tmpagnzt5h5/tests/tasks/setup_test.yml:51 ok: [/cache/fedora-32.qcow2] => {"changed": false, "cmd": "echo -n test-password-here > /tmp/.nbde_client_dev_encryption_key\n", "delta": "0:00:00.004131", "end": "2021-06-08 16:26:58.558430", "rc": 0, "start": "2021-06-08 16:26:58.554299", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Add binding to slot 1] *************************************************** task path: /tmp/tmpagnzt5h5/tests/tests_use_existing_binding.yml:10 TASK [linux-system-roles.nbde_client : Set version specific variables] ********* task path: /tmp/tmpagnzt5h5/tasks/main.yml:4 ok: [/cache/fedora-32.qcow2] => {"ansible_facts": {"__nbde_client_initramfs_update_cmd": "dracut -f", "__nbde_client_packages": ["clevis", "clevis-dracut", "clevis-luks", "clevis-systemd"]}, "ansible_included_var_files": ["/tmp/tmpagnzt5h5/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.nbde_client : Include the appropriate provider tasks] *** task path: /tmp/tmpagnzt5h5/tasks/main.yml:17 included: /tmp/tmpagnzt5h5/tasks/main-clevis.yml for /cache/fedora-32.qcow2 TASK [linux-system-roles.nbde_client : Ensure required packages are installed] *** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:2 changed: [/cache/fedora-32.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: oniguruma-6.9.5-4.rev1.fc32.x86_64", "Installed: tpm2-tools-4.1.3-1.fc32.x86_64", "Installed: tpm2-tss-2.4.4-1.fc32.x86_64", "Installed: clevis-18-1.fc32.x86_64", "Installed: clevis-dracut-18-1.fc32.x86_64", "Installed: clevis-luks-18-1.fc32.x86_64", "Installed: clevis-systemd-18-1.fc32.x86_64", "Installed: dracut-network-050-61.git20200529.fc32.x86_64", "Installed: libluksmeta-9-8.fc32.x86_64", "Installed: jq-1.6-4.fc32.x86_64", "Installed: luksmeta-9-8.fc32.x86_64"]} TASK [linux-system-roles.nbde_client : Check whether devices are at the desired state] *** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:7 changed: [/cache/fedora-32.qcow2] => {"changed": true, "original_bindings": [{"device": "/tmp/.nbde_client_dev_test", "encryption_password": "test-password-here", "password_temporary": false, "servers": ["http://localhost"], "slot": 1, "state": "present", "threshold": 1}]} TASK [linux-system-roles.nbde_client : Create temporary directory to hold key files] *** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:17 changed: [/cache/fedora-32.qcow2] => {"changed": true, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/tmp/ansible.4v9ijqc1nbde_client_encryption_keys", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 4096, "state": "directory", "uid": 0} TASK [linux-system-roles.nbde_client : Ensure we transfer key files] *********** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:25 skipping: [/cache/fedora-32.qcow2] => (item=) => {"ansible_loop_var": "item", "changed": false, "item": {"device": "/tmp/.nbde_client_dev_test", "encryption_password": "test-password-here", "servers": ["http://localhost"], "slot": 1}, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.nbde_client : Perform clevis operations] ************** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:37 NOTIFIED HANDLER linux-system-roles.nbde_client : nbde_client update initramfs for /cache/fedora-32.qcow2 changed: [/cache/fedora-32.qcow2] => {"changed": true, "original_bindings": [{"device": "/tmp/.nbde_client_dev_test", "encryption_password": "test-password-here", "password_temporary": false, "servers": ["http://localhost"], "slot": 1, "state": "present", "threshold": 1}]} TASK [linux-system-roles.nbde_client : Remove temporary directory used to hold key files] *** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:47 changed: [/cache/fedora-32.qcow2] => {"changed": true, "path": "/tmp/ansible.4v9ijqc1nbde_client_encryption_keys", "state": "absent"} TASK [Add binding to slot 2 without providing encryption_password] ************* task path: /tmp/tmpagnzt5h5/tests/tests_use_existing_binding.yml:21 TASK [linux-system-roles.nbde_client : Set version specific variables] ********* task path: /tmp/tmpagnzt5h5/tasks/main.yml:4 ok: [/cache/fedora-32.qcow2] => {"ansible_facts": {"__nbde_client_initramfs_update_cmd": "dracut -f", "__nbde_client_packages": ["clevis", "clevis-dracut", "clevis-luks", "clevis-systemd"]}, "ansible_included_var_files": ["/tmp/tmpagnzt5h5/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.nbde_client : Include the appropriate provider tasks] *** task path: /tmp/tmpagnzt5h5/tasks/main.yml:17 included: /tmp/tmpagnzt5h5/tasks/main-clevis.yml for /cache/fedora-32.qcow2 TASK [linux-system-roles.nbde_client : Ensure required packages are installed] *** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:2 ok: [/cache/fedora-32.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [linux-system-roles.nbde_client : Check whether devices are at the desired state] *** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:7 changed: [/cache/fedora-32.qcow2] => {"changed": true, "original_bindings": [{"device": "/tmp/.nbde_client_dev_test", "password_temporary": false, "servers": ["http://localhost"], "slot": 2, "state": "present", "threshold": 1}]} TASK [linux-system-roles.nbde_client : Create temporary directory to hold key files] *** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:17 changed: [/cache/fedora-32.qcow2] => {"changed": true, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/tmp/ansible.w0041b0pnbde_client_encryption_keys", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 4096, "state": "directory", "uid": 0} TASK [linux-system-roles.nbde_client : Ensure we transfer key files] *********** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:25 skipping: [/cache/fedora-32.qcow2] => (item=) => {"ansible_loop_var": "item", "changed": false, "item": {"device": "/tmp/.nbde_client_dev_test", "servers": ["http://localhost"], "slot": 2}, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.nbde_client : Perform clevis operations] ************** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:37 NOTIFIED HANDLER linux-system-roles.nbde_client : nbde_client update initramfs for /cache/fedora-32.qcow2 changed: [/cache/fedora-32.qcow2] => {"changed": true, "original_bindings": [{"device": "/tmp/.nbde_client_dev_test", "password_temporary": false, "servers": ["http://localhost"], "slot": 2, "state": "present", "threshold": 1}]} TASK [linux-system-roles.nbde_client : Remove temporary directory used to hold key files] *** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:47 changed: [/cache/fedora-32.qcow2] => {"changed": true, "path": "/tmp/ansible.w0041b0pnbde_client_encryption_keys", "state": "absent"} TASK [Remove binding from slot 1] ********************************************** task path: /tmp/tmpagnzt5h5/tests/tests_use_existing_binding.yml:31 TASK [linux-system-roles.nbde_client : Set version specific variables] ********* task path: /tmp/tmpagnzt5h5/tasks/main.yml:4 ok: [/cache/fedora-32.qcow2] => {"ansible_facts": {"__nbde_client_initramfs_update_cmd": "dracut -f", "__nbde_client_packages": ["clevis", "clevis-dracut", "clevis-luks", "clevis-systemd"]}, "ansible_included_var_files": ["/tmp/tmpagnzt5h5/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.nbde_client : Include the appropriate provider tasks] *** task path: /tmp/tmpagnzt5h5/tasks/main.yml:17 included: /tmp/tmpagnzt5h5/tasks/main-clevis.yml for /cache/fedora-32.qcow2 TASK [linux-system-roles.nbde_client : Ensure required packages are installed] *** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:2 ok: [/cache/fedora-32.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [linux-system-roles.nbde_client : Check whether devices are at the desired state] *** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:7 changed: [/cache/fedora-32.qcow2] => {"changed": true, "original_bindings": [{"device": "/tmp/.nbde_client_dev_test", "password_temporary": false, "servers": [], "slot": 1, "state": "absent", "threshold": 1}]} TASK [linux-system-roles.nbde_client : Create temporary directory to hold key files] *** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:17 changed: [/cache/fedora-32.qcow2] => {"changed": true, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/tmp/ansible.t_53yct8nbde_client_encryption_keys", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 4096, "state": "directory", "uid": 0} TASK [linux-system-roles.nbde_client : Ensure we transfer key files] *********** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:25 skipping: [/cache/fedora-32.qcow2] => (item=) => {"ansible_loop_var": "item", "changed": false, "item": {"device": "/tmp/.nbde_client_dev_test", "slot": 1, "state": "absent"}, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.nbde_client : Perform clevis operations] ************** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:37 NOTIFIED HANDLER linux-system-roles.nbde_client : nbde_client update initramfs for /cache/fedora-32.qcow2 changed: [/cache/fedora-32.qcow2] => {"changed": true, "original_bindings": [{"device": "/tmp/.nbde_client_dev_test", "password_temporary": false, "servers": [], "slot": 1, "state": "absent", "threshold": 1}]} TASK [linux-system-roles.nbde_client : Remove temporary directory used to hold key files] *** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:47 changed: [/cache/fedora-32.qcow2] => {"changed": true, "path": "/tmp/ansible.t_53yct8nbde_client_encryption_keys", "state": "absent"} TASK [Attempt to unlock device] ************************************************ task path: /tmp/tmpagnzt5h5/tests/tests_use_existing_binding.yml:40 included: /tmp/tmpagnzt5h5/tests/tasks/verify_unlock_device.yml for /cache/fedora-32.qcow2 TASK [Verify we can unlock the device] ***************************************** task path: /tmp/tmpagnzt5h5/tests/tasks/verify_unlock_device.yml:2 ok: [/cache/fedora-32.qcow2] => {"changed": false, "cmd": ["clevis", "luks", "unlock", "-d", "/tmp/.nbde_client_dev_test", "-n", "nbde_client_unlocked"], "delta": "0:00:04.000760", "end": "2021-06-08 16:27:34.645606", "rc": 0, "start": "2021-06-08 16:27:30.644846", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Close unlocked device] *************************************************** task path: /tmp/tmpagnzt5h5/tests/tasks/verify_unlock_device.yml:10 ok: [/cache/fedora-32.qcow2] => {"changed": false, "cmd": ["cryptsetup", "close", "nbde_client_unlocked"], "delta": "0:00:00.037176", "end": "2021-06-08 16:27:35.031941", "rc": 0, "start": "2021-06-08 16:27:34.994765", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Make sure the attempt to unlock succeeded] ******************************* task path: /tmp/tmpagnzt5h5/tests/tests_use_existing_binding.yml:43 ok: [/cache/fedora-32.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up test environment] *********************************************** task path: /tmp/tmpagnzt5h5/tests/tests_use_existing_binding.yml:50 included: /tmp/tmpagnzt5h5/tests/tasks/cleanup_test.yml for /cache/fedora-32.qcow2 TASK [Clean up dummy testing device] ******************************************* task path: /tmp/tmpagnzt5h5/tests/tasks/cleanup_test.yml:2 changed: [/cache/fedora-32.qcow2] => {"changed": true, "path": "/tmp/.nbde_client_dev_test", "state": "absent"} TASK [Clean up dummy key file] ************************************************* task path: /tmp/tmpagnzt5h5/tests/tasks/cleanup_test.yml:7 changed: [/cache/fedora-32.qcow2] => {"changed": true, "path": "/tmp/.nbde_client_dev_encryption_key", "state": "absent"} TASK [Clean up dummy key file on managed host] ********************************* task path: /tmp/tmpagnzt5h5/tests/tasks/cleanup_test.yml:13 ok: [/cache/fedora-32.qcow2] => {"changed": false, "path": "/tmp/.nbde_client_dev_encryption_key", "state": "absent"} TASK [Set up test environment] ************************************************* task path: /tmp/tmpagnzt5h5/tests/tests_use_existing_binding.yml:55 included: /tmp/tmpagnzt5h5/tests/tasks/setup_test.yml for /cache/fedora-32.qcow2 TASK [Include general tests variables] ***************************************** task path: /tmp/tmpagnzt5h5/tests/tasks/setup_test.yml:2 ok: [/cache/fedora-32.qcow2] => {"ansible_facts": {"nbde_client_test_device": "/tmp/.nbde_client_dev_test", "nbde_client_test_encryption_key_src": "/tmp/.nbde_client_dev_encryption_key", "nbde_client_test_pass": "test-password-here", "nbde_client_test_roles_dir": "/tmp/.nbde_client_dev_roles"}, "ansible_included_var_files": ["/tmp/tmpagnzt5h5/tests/vars/main.yml"], "changed": false} TASK [Set version specific variables] ****************************************** task path: /tmp/tmpagnzt5h5/tests/tasks/setup_test.yml:5 ok: [/cache/fedora-32.qcow2] => {"ansible_facts": {"nbde_client_test_packages": ["cryptsetup"]}, "ansible_included_var_files": ["/tmp/tmpagnzt5h5/tests/vars/Fedora.yml"], "changed": false} TASK [Print all available facts] *********************************************** task path: /tmp/tmpagnzt5h5/tests/tasks/setup_test.yml:20 ok: [/cache/fedora-32.qcow2] => { "ansible_facts": { "all_ipv4_addresses": [ "10.0.2.15" ], "all_ipv6_addresses": [ "fec0::5054:ff:fe12:3456", "fe80::5054:ff:fe12:3456" ], "ansible_local": {}, "apparmor": { "status": "disabled" }, "architecture": "x86_64", "bios_date": "04/01/2014", "bios_version": "1.13.0-2.fc32", "cmdline": { "BOOT_IMAGE": "(hd0,msdos1)/boot/vmlinuz-5.11.22-100.fc32.x86_64", "console": "ttyS0,115200n8", "net.ifnames": "0", "no_timer_check": true, "ro": true, "root": "UUID=450c38b7-9e89-4257-8d2f-915e2c3ab50d" }, "date_time": { "date": "2021-06-08", "day": "08", "epoch": "1623169570", "hour": "16", "iso8601": "2021-06-08T16:26:10Z", "iso8601_basic": "20210608T162610037402", "iso8601_basic_short": "20210608T162610", "iso8601_micro": "2021-06-08T16:26:10.037402Z", "minute": "26", "month": "06", "second": "10", "time": "16:26:10", "tz": "UTC", "tz_offset": "+0000", "weekday": "Tuesday", "weekday_number": "2", "weeknumber": "23", "year": "2021" }, "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" }, "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" }, "device_links": { "ids": { "sr0": [ "ata-QEMU_DVD-ROM_QM00003" ] }, "labels": { "sr0": [ "cidata" ] }, "masters": {}, "uuids": { "sr0": [ "2021-06-08-16-25-56-00" ], "vda1": [ "450c38b7-9e89-4257-8d2f-915e2c3ab50d" ] } }, "devices": { "sr0": { "holders": [], "host": "", "links": { "ids": [ "ata-QEMU_DVD-ROM_QM00003" ], "labels": [ "cidata" ], "masters": [], "uuids": [ "2021-06-08-16-25-56-00" ] }, "model": "QEMU DVD-ROM", "partitions": {}, "removable": "1", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "bfq", "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": [ "450c38b7-9e89-4257-8d2f-915e2c3ab50d" ] }, "sectors": "8386560", "sectorsize": 512, "size": "4.00 GB", "start": "2048", "uuid": "450c38b7-9e89-4257-8d2f-915e2c3ab50d" } }, "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": "512", "vendor": "0x1af4", "virtual": 1 } }, "distribution": "Fedora", "distribution_file_parsed": true, "distribution_file_path": "/etc/redhat-release", "distribution_file_variety": "RedHat", "distribution_major_version": "32", "distribution_release": "", "distribution_version": "32", "dns": { "nameservers": [ "10.0.2.3" ], "search": [ "virt.pnr.lab.eng.rdu2.redhat.com" ] }, "domain": "virt.pnr.lab.eng.rdu2.redhat.com", "effective_group_id": 0, "effective_user_id": 0, "env": { "DBUS_SESSION_BUS_ADDRESS": "unix:path=/run/user/0/bus", "HOME": "/root", "LANG": "en_US.UTF-8", "LC_CTYPE": "C.UTF-8", "LESSOPEN": "||/usr/bin/lesspipe.sh %s", "LOGNAME": "root", "LS_COLORS": "", "MOTD_SHOWN": "pam", "PATH": "/root/.local/bin:/root/bin:/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 55992 22", "SSH_CONNECTION": "10.0.2.2 55992 10.0.2.15 22", "SSH_TTY": "/dev/pts/0", "USER": "root", "XDG_RUNTIME_DIR": "/run/user/0", "XDG_SESSION_CLASS": "user", "XDG_SESSION_ID": "1", "XDG_SESSION_TYPE": "tty", "_": "/usr/bin/python3" }, "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" }, "fibre_channel_wwn": [], "fips": false, "form_factor": "Other", "fqdn": "ibm-p8-kvm-03-guest-02.virt.pnr.lab.eng.rdu2.redhat.com", "gather_subset": [ "all" ], "hostname": "ibm-p8-kvm-03-guest-02", "hostnqn": "", "interfaces": [ "eth0", "lo" ], "is_chroot": false, "iscsi_iqn": "", "kernel": "5.11.22-100.fc32.x86_64", "kernel_version": "#1 SMP Wed May 19 18:58:25 UTC 2021", "lo": { "active": true, "device": "lo", "ipv4": { "address": "127.0.0.1", "broadcast": "", "netmask": "255.0.0.0", "network": "127.0.0.0" }, "ipv6": [ { "address": "::1", "prefix": "128", "scope": "host" } ], "mtu": 65536, "promisc": false, "type": "loopback" }, "lsb": {}, "machine": "x86_64", "machine_id": "9e7a20bdd6c4455ca12c538d701167af", "memfree_mb": 1692, "memory_mb": { "nocache": { "free": 1850, "used": 126 }, "real": { "free": 1692, "total": 1976, "used": 284 }, "swap": { "cached": 0, "free": 0, "total": 0, "used": 0 } }, "memtotal_mb": 1976, "module_setup": true, "mounts": [ { "block_available": 775844, "block_size": 4096, "block_total": 1015472, "block_used": 239628, "device": "/dev/vda1", "fstype": "ext4", "inode_available": 235263, "inode_total": 262144, "inode_used": 26881, "mount": "/", "options": "rw,seclabel,relatime", "size_available": 3177857024, "size_total": 4159373312, "uuid": "450c38b7-9e89-4257-8d2f-915e2c3ab50d" } ], "nodename": "ibm-p8-kvm-03-guest-02.virt.pnr.lab.eng.rdu2.redhat.com", "os_family": "RedHat", "pkg_mgr": "dnf", "proc_cmdline": { "BOOT_IMAGE": "(hd0,msdos1)/boot/vmlinuz-5.11.22-100.fc32.x86_64", "console": [ "tty1", "ttyS0,115200n8" ], "net.ifnames": "0", "no_timer_check": true, "ro": true, "root": "UUID=450c38b7-9e89-4257-8d2f-915e2c3ab50d" }, "processor": [ "0", "GenuineIntel", "Intel(R) Xeon(R) Platinum 8168 CPU @ 2.70GHz", "1", "GenuineIntel", "Intel(R) Xeon(R) Platinum 8168 CPU @ 2.70GHz", "2", "GenuineIntel", "Intel(R) Xeon(R) Platinum 8168 CPU @ 2.70GHz", "3", "GenuineIntel", "Intel(R) Xeon(R) Platinum 8168 CPU @ 2.70GHz" ], "processor_cores": 1, "processor_count": 4, "processor_threads_per_core": 1, "processor_vcpus": 4, "product_name": "Standard PC (i440FX + PIIX, 1996)", "product_serial": "NA", "product_uuid": "NA", "product_version": "pc-i440fx-4.2", "python": { "executable": "/usr/bin/python3", "has_sslcontext": true, "type": "cpython", "version": { "major": 3, "micro": 10, "minor": 8, "releaselevel": "final", "serial": 0 }, "version_info": [ 3, 8, 10, "final", 0 ] }, "python_version": "3.8.10", "real_group_id": 0, "real_user_id": 0, "selinux": { "config_mode": "enforcing", "mode": "enforcing", "policyvers": 33, "status": "enabled", "type": "targeted" }, "selinux_python_present": true, "service_mgr": "systemd", "ssh_host_key_dsa_public": "AAAAB3NzaC1kc3MAAACBAJo6Jyp+o1NbT64KAiY6pAS41ItScUndDoVqp2394JD1h08/g2TR+J+yIezKC15xRqT4E1ZxuDjq5PubV2avC2/RFQtcF/EuvYEU8mCeRiRVF5ooRDhl0kKxRrodOvbBPEd1OdU2WVCj6McXkm/dXTF9v5MiWm3Vbe0SYVGE0uXbAAAAFQCxWQ1UxjkfZje7d/nU6cRBfsBOzQAAAIBSk9+VG53gPDYsdbgxd3Lnydf2RG1V4XKGVNTmAf3LSNzBXp6Ew9OQk79pjlsuLWsoMduzg6a/VppsMrttaREToDeTCjkTZSyyo0O5nHLM63cUawjII99P2BTZyLYxOweaWOLd42okVnQRVc4TwlLN4KPB9p6TJIKGv65YoQMKQQAAAIAwbYJjsjd5TwhIrdv5VF39foveoZLx0Vj2bCsjbb5GaEzhtoQAZX7LqJ/bNYh6vq1ZMVqToKZtFL5102/wZmUmktujPLe5NIFmq8IZfWpRi4Kl8dohm3+EFZK/dR2Fjd1E+xGCojnvHyc91jccKYxKkul3kMSJjlvWEwH6q+pjQQ==", "ssh_host_key_ecdsa_public": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBJfAij7JCidvsX8ZkHjnwH3G2jNkg0OMZb4Bn0M+j5KhL1wyipkjXTSzVt+hkP5i2CTFP5ASPHJASdC9HleWZDs=", "ssh_host_key_ed25519_public": "AAAAC3NzaC1lZDI1NTE5AAAAIDgwr2W2Y2SmuJQ383L+6XBIxic1kQ8yWsrRSYqDiQim", "ssh_host_key_rsa_public": "AAAAB3NzaC1yc2EAAAADAQABAAABgQC6LC8BEcMjuXm6RdbwvdwBVaRQsVQwvzU8XI49wVMFpke+b2T3bHY23Z4w8SWJlUYzFE8SQM6F8y7Trs+1Qh5bzvcGL/FMboXlA7B1xfeegpxvShH3gmZvPRfrfpXsIpC7FNPaRRAGFNtG1D7xwPU8C/nRmfZ8OtPKRU/qfHdCanuGO0aU+fIY+ieWus1h1ZTkuV1iwi3sZBB7mirA7s13avRc/hWOwk4FcEDaUDq+PMgZng9rUVDgRsZnuw8IWGXx/O6W4V4XrE70trq0pBHJZwtT+RJoR+UuQe+riL2j7hWTYn9pcIAUzfU5n2gzxZewXoAAgtMmDlf/0Y+HPqwvDmI/y0QieRA2JIhEvFQsYkeX8XtDtxXKamlke/fNEN/2z7qUNnjZPAy/1qq0n8hMo7VORLmB4erbGEd7mDc8KUUnS5diEqH0oqbhDbn2v7LtoNjH1SZDEJLJABNoEBS1/TXCG51Lq5bAaSwSAYd8hdtQLoiRt19qEBOJ5YNaqFs=", "swapfree_mb": 0, "swaptotal_mb": 0, "system": "Linux", "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", "38", "39", "40+ep" ], "system_capabilities_enforced": "True", "system_vendor": "QEMU", "uptime_seconds": 11, "user_dir": "/root", "user_gecos": "root", "user_gid": 0, "user_id": "root", "user_shell": "/bin/bash", "user_uid": 0, "userspace_architecture": "x86_64", "userspace_bits": "64", "virtualization_role": "guest", "virtualization_type": "kvm" } } TASK [Install required packages for nbde_client tests] ************************* task path: /tmp/tmpagnzt5h5/tests/tasks/setup_test.yml:24 ok: [/cache/fedora-32.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [Clone nbde_server role for the tests] ************************************ task path: /tmp/tmpagnzt5h5/tests/tasks/setup_test.yml:28 ok: [/cache/fedora-32.qcow2] => {"after": "c57d0b1f3384c525738fa26ba4bdca485e162567", "before": "c57d0b1f3384c525738fa26ba4bdca485e162567", "changed": false, "remote_url_changed": false} TASK [Deploy NBDE server for testing] ****************************************** task path: /tmp/tmpagnzt5h5/tests/tasks/setup_test.yml:35 TASK [/tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server : Set version specific variables] *** task path: /tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server/tasks/main.yml:6 ok: [/cache/fedora-32.qcow2] => {"ansible_facts": {"__nbde_server_cachedir": "/var/cache/tang", "__nbde_server_group": "tang", "__nbde_server_keydir": "/var/db/tang", "__nbde_server_keygen": "/usr/libexec/tangd-keygen", "__nbde_server_packages": ["tang"], "__nbde_server_services": ["tangd.socket"], "__nbde_server_update": "/usr/libexec/tangd-update", "__nbde_server_user": "tang"}, "ansible_included_var_files": ["/tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server/vars/default.yml"], "changed": false} TASK [/tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server : Include the appropriate provider tasks] *** task path: /tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server/tasks/main.yml:20 included: /tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server/tasks/main-tang.yml for /cache/fedora-32.qcow2 TASK [/tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server : Ensure tang is installed] *** task path: /tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server/tasks/main-tang.yml:2 ok: [/cache/fedora-32.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [/tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server : Ensure keys are rotated] *** task path: /tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server/tasks/main-tang.yml:7 skipping: [/cache/fedora-32.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [/tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server : Ensure we have keys] *** task path: /tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server/tasks/main-tang.yml:16 ok: [/cache/fedora-32.qcow2] => {"arguments": {"cachedir": "/var/cache/tang", "force": false, "keydir": "/var/db/tang", "keygen": "/usr/libexec/tangd-keygen", "keys_to_deploy_dir": null, "state": "keys-created", "update": "/usr/libexec/tangd-update"}, "changed": false, "state": "keys-created"} TASK [/tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server : Perform key management (fetch/deploy) tasks] *** task path: /tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server/tasks/main-tang.yml:25 skipping: [/cache/fedora-32.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [/tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server : Ensure required services are enabled and at the right state] *** task path: /tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server/tasks/main-tang.yml:29 ok: [/cache/fedora-32.qcow2] => (item=tangd.socket) => {"ansible_loop_var": "item", "changed": false, "enabled": true, "item": "tangd.socket", "name": "tangd.socket", "state": "started", "status": {"Accept": "yes", "ActiveEnterTimestamp": "Tue 2021-06-08 16:26:56 UTC", "ActiveEnterTimestampMonotonic": "57865866", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "sysinit.target system.slice", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "yes", "AssertTimestamp": "Tue 2021-06-08 16:26:56 UTC", "AssertTimestampMonotonic": "57862998", "Backlog": "4096", "Before": "sockets.target shutdown.target", "BindIPv6Only": "default", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "Broadcast": "no", "CPUAccounting": "yes", "CPUAffinity": "", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "6646000", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanIsolate": "no", "CanReload": "no", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "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 cap_perfmon cap_bpf cap_checkpoint_restore", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Tue 2021-06-08 16:26:56 UTC", "ConditionTimestampMonotonic": "57862998", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target", "ControlGroup": "/system.slice/tangd.socket", "ControlPID": "0", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "DeferAcceptUSec": "0", "Delegate": "no", "Description": "Tang Server socket", "DevicePolicy": "auto", "DirectoryMode": "0755", "DynamicUser": "no", "EffectiveCPUs": "", "EffectiveMemoryNodes": "", "FailureAction": "none", "FileDescriptorName": "tangd.socket", "FinalKillSignal": "9", "FragmentPath": "/usr/lib/systemd/system/tangd.socket", "FreeBind": "no", "GID": "[not set]", "IOAccounting": "no", "IOReadBytes": "18446744073709551615", "IOReadOperations": "18446744073709551615", "IOSchedulingClass": "0", "IOSchedulingPriority": "0", "IOWeight": "[not set]", "IOWriteBytes": "18446744073709551615", "IOWriteOperations": "18446744073709551615", "IPAccounting": "no", "IPEgressBytes": "[no data]", "IPEgressPackets": "[no data]", "IPIngressBytes": "[no data]", "IPIngressPackets": "[no data]", "IPTOS": "-1", "IPTTL": "-1", "Id": "tangd.socket", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestamp": "Tue 2021-06-08 16:26:56 UTC", "InactiveExitTimestampMonotonic": "57865866", "InvocationID": "1fd7f6c2623f4ca0ba8e63492e370b3a", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeepAlive": "no", "KeepAliveIntervalUSec": "0", "KeepAliveProbes": "0", "KeepAliveTimeUSec": "0", "KeyringMode": "shared", "KillMode": "control-group", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "infinity", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "65536", "LimitMEMLOCKSoft": "65536", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "524288", "LimitNOFILESoft": "1024", "LimitNPROC": "7782", "LimitNPROCSoft": "7782", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "7782", "LimitSIGPENDINGSoft": "7782", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "Listen": "[::]:80 (Stream)", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "Mark": "-1", "MaxConnections": "64", "MaxConnectionsPerSource": "0", "MemoryAccounting": "yes", "MemoryCurrent": "4096", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MessageQueueMaxMessages": "0", "MessageQueueMessageSize": "0", "MountAPIVFS": "no", "MountFlags": "", "NAccepted": "8", "NConnections": "0", "NRefused": "0", "NUMAMask": "", "NUMAPolicy": "n/a", "Names": "tangd.socket", "NeedDaemonReload": "no", "Nice": "0", "NoDelay": "no", "NoNewPrivileges": "no", "NonBlocking": "no", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PassCredentials": "no", "PassSecurity": "no", "Perpetual": "no", "PipeSize": "0", "Priority": "-1", "PrivateDevices": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProtectClock": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectHostname": "no", "ProtectKernelLogs": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectSystem": "no", "ReceiveBuffer": "0", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemoveIPC": "no", "RemoveOnStop": "no", "Requires": "sysinit.target system.slice", "RestartKillSignal": "15", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "ReusePort": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "SameProcessGroup": "no", "SecureBits": "0", "SendBuffer": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "SocketMode": "0666", "SocketProtocol": "0", "StandardError": "inherit", "StandardInput": "null", "StandardInputData": "", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestamp": "Tue 2021-06-08 16:26:56 UTC", "StateChangeTimestampMonotonic": "57865866", "StateDirectoryMode": "0755", "StopWhenUnneeded": "no", "SubState": "listening", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "0", "TasksMax": "2334", "TimeoutCleanUSec": "infinity", "TimeoutUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Transparent": "no", "TriggerLimitBurst": "200", "TriggerLimitIntervalUSec": "2s", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "disabled", "UnitFileState": "enabled", "UtmpMode": "init", "WantedBy": "sockets.target", "WatchdogSignal": "6", "Writable": "no"}} TASK [Create device for testing] *********************************************** task path: /tmp/tmpagnzt5h5/tests/tasks/setup_test.yml:39 ok: [/cache/fedora-32.qcow2] => {"changed": false, "cmd": ["fallocate", "-l64m", "/tmp/.nbde_client_dev_test"], "delta": "0:00:00.004677", "end": "2021-06-08 16:27:43.848721", "rc": 0, "start": "2021-06-08 16:27:43.844044", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Format test device as LUKS] ********************************************** task path: /tmp/tmpagnzt5h5/tests/tasks/setup_test.yml:43 ok: [/cache/fedora-32.qcow2] => {"changed": false, "cmd": "set -euo pipefail; echo -n test-password-here | cryptsetup luksFormat --pbkdf pbkdf2 --pbkdf-force-iterations 1000 --batch-mode --force-password /tmp/.nbde_client_dev_test", "delta": "0:00:00.139161", "end": "2021-06-08 16:27:44.342445", "rc": 0, "start": "2021-06-08 16:27:44.203284", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Create key file for test device] ***************************************** task path: /tmp/tmpagnzt5h5/tests/tasks/setup_test.yml:51 ok: [/cache/fedora-32.qcow2] => {"changed": false, "cmd": "echo -n test-password-here > /tmp/.nbde_client_dev_encryption_key\n", "delta": "0:00:00.004021", "end": "2021-06-08 16:27:45.441474", "rc": 0, "start": "2021-06-08 16:27:45.437453", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Create temp file for the advertisement] ********************************** task path: /tmp/tmpagnzt5h5/tests/tests_use_existing_binding.yml:58 changed: [/cache/fedora-32.qcow2] => {"changed": true, "gid": 0, "group": "root", "mode": "0600", "owner": "root", "path": "/tmp/ansible.dijz2kmradv", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 0, "state": "file", "uid": 0} TASK [Make sure temp file was created] ***************************************** task path: /tmp/tmpagnzt5h5/tests/tests_use_existing_binding.yml:63 skipping: [/cache/fedora-32.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Download advertisement] ************************************************** task path: /tmp/tmpagnzt5h5/tests/tests_use_existing_binding.yml:68 changed: [/cache/fedora-32.qcow2] => {"changed": true, "checksum_dest": "da39a3ee5e6b4b0d3255bfef95601890afd80709", "checksum_src": "dbacfe2c170bcd6aef928d18397128cb6f4201a3", "dest": "/tmp/ansible.dijz2kmradv", "elapsed": 0, "gid": 0, "group": "root", "md5sum": "aae44faf782b39c0cf7ff88ac2f4838d", "mode": "0600", "msg": "OK (993 bytes)", "owner": "root", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 993, "src": "/root/.ansible/tmp/ansible-tmp-1623169665.899168-212067-110396356157596/tmpmpk9e8bc", "state": "file", "status_code": 200, "uid": 0, "url": "http://localhost/adv"} TASK [Add binding to slot 1] *************************************************** task path: /tmp/tmpagnzt5h5/tests/tests_use_existing_binding.yml:74 changed: [/cache/fedora-32.qcow2] => {"changed": true, "cmd": "clevis luks bind -f -d /tmp/.nbde_client_dev_test tang '{\"url\": \"http://localhost\", \"adv\": \"/tmp/ansible.dijz2kmradv\"}' <<< test-password-here\n", "delta": "0:00:03.231149", "end": "2021-06-08 16:27:49.173984", "rc": 0, "start": "2021-06-08 16:27:45.942835", "stderr": "\nWarning: Value 512 is outside of the allowed entropy range, adjusting it.", "stderr_lines": ["", "Warning: Value 512 is outside of the allowed entropy range, adjusting it."], "stdout": "", "stdout_lines": []} TASK [Remove temp advertisement file] ****************************************** task path: /tmp/tmpagnzt5h5/tests/tests_use_existing_binding.yml:81 changed: [/cache/fedora-32.qcow2] => {"changed": true, "path": "/tmp/ansible.dijz2kmradv", "state": "absent"} TASK [Add binding to slot 2 without providing encryption_password] ************* task path: /tmp/tmpagnzt5h5/tests/tests_use_existing_binding.yml:86 TASK [linux-system-roles.nbde_client : Set version specific variables] ********* task path: /tmp/tmpagnzt5h5/tasks/main.yml:4 ok: [/cache/fedora-32.qcow2] => {"ansible_facts": {"__nbde_client_initramfs_update_cmd": "dracut -f", "__nbde_client_packages": ["clevis", "clevis-dracut", "clevis-luks", "clevis-systemd"]}, "ansible_included_var_files": ["/tmp/tmpagnzt5h5/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.nbde_client : Include the appropriate provider tasks] *** task path: /tmp/tmpagnzt5h5/tasks/main.yml:17 included: /tmp/tmpagnzt5h5/tasks/main-clevis.yml for /cache/fedora-32.qcow2 TASK [linux-system-roles.nbde_client : Ensure required packages are installed] *** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:2 ok: [/cache/fedora-32.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [linux-system-roles.nbde_client : Check whether devices are at the desired state] *** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:7 changed: [/cache/fedora-32.qcow2] => {"changed": true, "original_bindings": [{"device": "/tmp/.nbde_client_dev_test", "password_temporary": false, "servers": ["http://localhost"], "slot": 2, "state": "present", "threshold": 1}]} TASK [linux-system-roles.nbde_client : Create temporary directory to hold key files] *** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:17 changed: [/cache/fedora-32.qcow2] => {"changed": true, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/tmp/ansible.vspl6aycnbde_client_encryption_keys", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 4096, "state": "directory", "uid": 0} TASK [linux-system-roles.nbde_client : Ensure we transfer key files] *********** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:25 skipping: [/cache/fedora-32.qcow2] => (item=) => {"ansible_loop_var": "item", "changed": false, "item": {"device": "/tmp/.nbde_client_dev_test", "servers": ["http://localhost"], "slot": 2}, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.nbde_client : Perform clevis operations] ************** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:37 changed: [/cache/fedora-32.qcow2] => {"changed": true, "original_bindings": [{"device": "/tmp/.nbde_client_dev_test", "password_temporary": false, "servers": ["http://localhost"], "slot": 2, "state": "present", "threshold": 1}]} TASK [linux-system-roles.nbde_client : Remove temporary directory used to hold key files] *** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:47 changed: [/cache/fedora-32.qcow2] => {"changed": true, "path": "/tmp/ansible.vspl6aycnbde_client_encryption_keys", "state": "absent"} TASK [Remove binding from slot 1] ********************************************** task path: /tmp/tmpagnzt5h5/tests/tests_use_existing_binding.yml:96 TASK [linux-system-roles.nbde_client : Set version specific variables] ********* task path: /tmp/tmpagnzt5h5/tasks/main.yml:4 ok: [/cache/fedora-32.qcow2] => {"ansible_facts": {"__nbde_client_initramfs_update_cmd": "dracut -f", "__nbde_client_packages": ["clevis", "clevis-dracut", "clevis-luks", "clevis-systemd"]}, "ansible_included_var_files": ["/tmp/tmpagnzt5h5/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.nbde_client : Include the appropriate provider tasks] *** task path: /tmp/tmpagnzt5h5/tasks/main.yml:17 included: /tmp/tmpagnzt5h5/tasks/main-clevis.yml for /cache/fedora-32.qcow2 TASK [linux-system-roles.nbde_client : Ensure required packages are installed] *** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:2 ok: [/cache/fedora-32.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [linux-system-roles.nbde_client : Check whether devices are at the desired state] *** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:7 changed: [/cache/fedora-32.qcow2] => {"changed": true, "original_bindings": [{"device": "/tmp/.nbde_client_dev_test", "password_temporary": false, "servers": [], "slot": 1, "state": "absent", "threshold": 1}]} TASK [linux-system-roles.nbde_client : Create temporary directory to hold key files] *** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:17 changed: [/cache/fedora-32.qcow2] => {"changed": true, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/tmp/ansible.237tgl6enbde_client_encryption_keys", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 4096, "state": "directory", "uid": 0} TASK [linux-system-roles.nbde_client : Ensure we transfer key files] *********** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:25 skipping: [/cache/fedora-32.qcow2] => (item=) => {"ansible_loop_var": "item", "changed": false, "item": {"device": "/tmp/.nbde_client_dev_test", "slot": 1, "state": "absent"}, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.nbde_client : Perform clevis operations] ************** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:37 changed: [/cache/fedora-32.qcow2] => {"changed": true, "original_bindings": [{"device": "/tmp/.nbde_client_dev_test", "password_temporary": false, "servers": [], "slot": 1, "state": "absent", "threshold": 1}]} TASK [linux-system-roles.nbde_client : Remove temporary directory used to hold key files] *** task path: /tmp/tmpagnzt5h5/tasks/main-clevis.yml:47 changed: [/cache/fedora-32.qcow2] => {"changed": true, "path": "/tmp/ansible.237tgl6enbde_client_encryption_keys", "state": "absent"} TASK [Attempt to unlock device] ************************************************ task path: /tmp/tmpagnzt5h5/tests/tests_use_existing_binding.yml:105 included: /tmp/tmpagnzt5h5/tests/tasks/verify_unlock_device.yml for /cache/fedora-32.qcow2 TASK [Verify we can unlock the device] ***************************************** task path: /tmp/tmpagnzt5h5/tests/tasks/verify_unlock_device.yml:2 ok: [/cache/fedora-32.qcow2] => {"changed": false, "cmd": ["clevis", "luks", "unlock", "-d", "/tmp/.nbde_client_dev_test", "-n", "nbde_client_unlocked"], "delta": "0:00:03.925110", "end": "2021-06-08 16:28:14.120412", "rc": 0, "start": "2021-06-08 16:28:10.195302", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Close unlocked device] *************************************************** task path: /tmp/tmpagnzt5h5/tests/tasks/verify_unlock_device.yml:10 ok: [/cache/fedora-32.qcow2] => {"changed": false, "cmd": ["cryptsetup", "close", "nbde_client_unlocked"], "delta": "0:00:00.027098", "end": "2021-06-08 16:28:14.507142", "rc": 0, "start": "2021-06-08 16:28:14.480044", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Make sure the attempt to unlock succeeded] ******************************* task path: /tmp/tmpagnzt5h5/tests/tests_use_existing_binding.yml:108 ok: [/cache/fedora-32.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up test environment] *********************************************** task path: /tmp/tmpagnzt5h5/tests/tests_use_existing_binding.yml:115 included: /tmp/tmpagnzt5h5/tests/tasks/cleanup_test.yml for /cache/fedora-32.qcow2 TASK [Clean up dummy testing device] ******************************************* task path: /tmp/tmpagnzt5h5/tests/tasks/cleanup_test.yml:2 changed: [/cache/fedora-32.qcow2] => {"changed": true, "path": "/tmp/.nbde_client_dev_test", "state": "absent"} TASK [Clean up dummy key file] ************************************************* task path: /tmp/tmpagnzt5h5/tests/tasks/cleanup_test.yml:7 changed: [/cache/fedora-32.qcow2] => {"changed": true, "path": "/tmp/.nbde_client_dev_encryption_key", "state": "absent"} TASK [Clean up dummy key file on managed host] ********************************* task path: /tmp/tmpagnzt5h5/tests/tasks/cleanup_test.yml:13 ok: [/cache/fedora-32.qcow2] => {"changed": false, "path": "/tmp/.nbde_client_dev_encryption_key", "state": "absent"} RUNNING HANDLER [linux-system-roles.nbde_client : nbde_client update initramfs] *** task path: /tmp/tmpagnzt5h5/handlers/main.yml:4 changed: [/cache/fedora-32.qcow2] => {"changed": true, "cmd": ["dracut", "-f"], "delta": "0:00:18.880974", "end": "2021-06-08 16:28:34.692310", "rc": 0, "start": "2021-06-08 16:28:15.811336", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} RUNNING HANDLER [linux-system-roles.nbde_client : nbde_client update initramfs] *** task path: /tmp/tmpagnzt5h5/handlers/main.yml:4 changed: [/cache/fedora-32.qcow2] => {"changed": true, "cmd": ["dracut", "-f"], "delta": "0:00:17.584161", "end": "2021-06-08 16:28:52.632073", "rc": 0, "start": "2021-06-08 16:28:35.047912", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} RUNNING HANDLER [linux-system-roles.nbde_client : nbde_client update initramfs] *** task path: /tmp/tmpagnzt5h5/handlers/main.yml:4 changed: [/cache/fedora-32.qcow2] => {"changed": true, "cmd": ["dracut", "-f"], "delta": "0:00:17.310710", "end": "2021-06-08 16:29:10.303488", "rc": 0, "start": "2021-06-08 16:28:52.992778", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/fedora-32.qcow2 : ok=88 changed=36 unreachable=0 failed=0 skipped=11 rescued=0 ignored=0