+ cd /tmp/tmpc84bdd0k/tests; TEST_SUBJECTS=/cache/fedora-33.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_nbde_client-51-d478b30-fedora-33-m983wtuy/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmpc84bdd0k/_setup.yml /tmp/tmpc84bdd0k/tests/tests_bind_high_availability.yml ansible-playbook 2.9.23 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.9/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 3.9.6 (default, Jun 29 2021, 00:00:00) [GCC 11.1.1 20210531 (Red Hat 11.1.1-3)] 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/tmpc84bdd0k/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmpc84bdd0k/_setup.yml:5 ok: [/cache/fedora-33.qcow2] => { "groups": { "all": [ "/cache/fedora-33.qcow2" ], "localhost": [ "/cache/fedora-33.qcow2" ], "subjects": [ "/cache/fedora-33.qcow2" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmpc84bdd0k/_setup.yml:7 skipping: [/cache/fedora-33.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/fedora-33.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/tmpc84bdd0k/tests/tests_bind_high_availability.yml PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpc84bdd0k/tests/tests_bind_high_availability.yml:2 ok: [/cache/fedora-33.qcow2] META: ran handlers TASK [Set up test environment] ************************************************* task path: /tmp/tmpc84bdd0k/tests/tests_bind_high_availability.yml:13 included: /tmp/tmpc84bdd0k/tests/tasks/setup_test.yml for /cache/fedora-33.qcow2 TASK [Include general tests variables] ***************************************** task path: /tmp/tmpc84bdd0k/tests/tasks/setup_test.yml:2 ok: [/cache/fedora-33.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/tmpc84bdd0k/tests/vars/main.yml"], "changed": false} TASK [Set version specific variables] ****************************************** task path: /tmp/tmpc84bdd0k/tests/tasks/setup_test.yml:5 ok: [/cache/fedora-33.qcow2] => {"ansible_facts": {"nbde_client_test_packages": ["cryptsetup"]}, "ansible_included_var_files": ["/tmp/tmpc84bdd0k/tests/vars/Fedora.yml"], "changed": false} TASK [Print all available facts] *********************************************** task path: /tmp/tmpc84bdd0k/tests/tasks/setup_test.yml:20 ok: [/cache/fedora-33.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.14.0-3.fc34", "cmdline": { "BOOT_IMAGE": "(hd0,msdos1)/boot/vmlinuz-5.13.6-100.fc33.x86_64", "console": "ttyS0,115200n8", "net.ifnames": "0", "no_timer_check": true, "ro": true, "root": "UUID=b2201488-ac7a-4269-b92f-a722977a99a3" }, "date_time": { "date": "2021-08-06", "day": "06", "epoch": "1628251698", "hour": "12", "iso8601": "2021-08-06T12:08:18Z", "iso8601_basic": "20210806T120818515656", "iso8601_basic_short": "20210806T120818", "iso8601_micro": "2021-08-06T12:08:18.515656Z", "minute": "08", "month": "08", "second": "18", "time": "12:08:18", "tz": "UTC", "tz_offset": "+0000", "weekday": "Friday", "weekday_number": "5", "weeknumber": "31", "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-08-06-12-08-05-00" ], "vda1": [ "b2201488-ac7a-4269-b92f-a722977a99a3" ] } }, "devices": { "sr0": { "holders": [], "host": "IDE interface: Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II]", "links": { "ids": [ "ata-QEMU_DVD-ROM_QM00003" ], "labels": [ "cidata" ], "masters": [], "uuids": [ "2021-08-06-12-08-05-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": "SCSI storage controller: Red Hat, Inc. Virtio block device", "links": { "ids": [], "labels": [], "masters": [], "uuids": [] }, "model": null, "partitions": { "vda1": { "holders": [], "links": { "ids": [], "labels": [], "masters": [], "uuids": [ "b2201488-ac7a-4269-b92f-a722977a99a3" ] }, "sectors": "8386560", "sectorsize": 512, "size": "4.00 GB", "start": "2048", "uuid": "b2201488-ac7a-4269-b92f-a722977a99a3" } }, "removable": "0", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "none", "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": "33", "distribution_release": "", "distribution_version": "33", "dns": { "nameservers": [ "127.0.0.53" ], "options": { "edns0": true, "trust-ad": true } }, "domain": "localdomain", "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 44832 22", "SSH_CONNECTION": "10.0.2.2 44832 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": "localhost.localdomain", "gather_subset": [ "all" ], "hostname": "localhost", "hostnqn": "", "interfaces": [ "lo", "eth0" ], "is_chroot": false, "iscsi_iqn": "", "kernel": "5.13.6-100.fc33.x86_64", "kernel_version": "#1 SMP Wed Jul 28 15:30:10 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": "b13ae05b189447088c8ba0af59629db1", "memfree_mb": 1659, "memory_mb": { "nocache": { "free": 1813, "used": 152 }, "real": { "free": 1659, "total": 1965, "used": 306 }, "swap": { "cached": 0, "free": 0, "total": 0, "used": 0 } }, "memtotal_mb": 1965, "module_setup": true, "mounts": [ { "block_available": 797164, "block_size": 4096, "block_total": 1015472, "block_used": 218308, "device": "/dev/vda1", "fstype": "ext4", "inode_available": 236024, "inode_total": 262144, "inode_used": 26120, "mount": "/", "options": "rw,seclabel,relatime", "size_available": 3265183744, "size_total": 4159373312, "uuid": "b2201488-ac7a-4269-b92f-a722977a99a3" } ], "nodename": "localhost", "os_family": "RedHat", "pkg_mgr": "dnf", "proc_cmdline": { "BOOT_IMAGE": "(hd0,msdos1)/boot/vmlinuz-5.13.6-100.fc33.x86_64", "console": [ "tty1", "ttyS0,115200n8" ], "net.ifnames": "0", "no_timer_check": true, "ro": true, "root": "UUID=b2201488-ac7a-4269-b92f-a722977a99a3" }, "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-5.2", "python": { "executable": "/usr/bin/python3", "has_sslcontext": true, "type": "cpython", "version": { "major": 3, "micro": 6, "minor": 9, "releaselevel": "final", "serial": 0 }, "version_info": [ 3, 9, 6, "final", 0 ] }, "python_version": "3.9.6", "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": "AAAAB3NzaC1kc3MAAACBALYA67QjofLO/II9mSXY0X5Tc6rS305FVnYoxb6Zo0MYYXZ9wURUL6pUNXWLJ+nWvCgzexo1Nm5XJ/txDIn0afJvQB1wVg4Ug8lC2waEgMUFa5BaS2HpMsyKSKCIf5VodRA/f6N/KFgmRGVgn38CVOpW23fShXnWMNFQA7G3/xv9AAAAFQCvyaTZe/1/ELTVajADt2/HQvDYuwAAAIAK2/5VQj2atkfGLwjHZkIaETGFX1zX2QMX/vA4Q5Q5uqeQMUUlZKTCYTrKS8jLFP4MFmY2hrZs2sTAGQ6yxphIz8vUwLM1xv0/rYrlXJrWVXY4jdB6W+FJeuS9sw30dnube3fh+2Xk82Pi80z9OJl6yUh3I70QDcvyO5BOpN2xoQAAAIBJi+aKKEouI1S9bn4w2wNZlqjZp0jBO7gMAutwYmCw9NT4iOPrwVmWftxRpOWrzUAooKro7I0FFcCs1oFGKj5GC9TjOXE0yPREb22Ep4CHaj+bhVTR4pi7b+5ruc9YZvH7hQZMMFwqJaEJ7ElZKxayHFBhiEBgD/uqWbtNyXFGzw==", "ssh_host_key_ecdsa_public": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBKJ3Nv+o6lBSzlyu9POM6/OmT8FF939Q/Kyu2rj1Ojv/+RhsM5GAbQeh9h7ui8rM/KLBPqPxa6awPccZNaOpyco=", "ssh_host_key_ed25519_public": "AAAAC3NzaC1lZDI1NTE5AAAAIFbQb75i1vUwHEIj3Klim6iX/yMQTQ34X0KT9WXAZNft", "ssh_host_key_rsa_public": "AAAAB3NzaC1yc2EAAAADAQABAAABgQC8MN8mJZNZdo46VLud/r6BW39XRxU7KOUw9iKctw39oRBAXYhXO0SzKvjuDKmIgOR37O2u7lYi1xCivknN7Kqrc55os6vqh2wvF+7dd+KmEvfc5M85dgDattwx44isPE5RSyWOTMTQypd87QiRX/VPk9cWy3fvW74dPO7rxL/5QjROQtHv6Dh91hE79nF/Xb6QKdHw9HFnXXkv6Ck0qAqx4Hm1cUAd06zePaeVuNnTdzmbXBSfRnBbClWsfafspmdjZ4IzhfDlVayBcI32ZhmcwMseTZq4c2t+tWccJ2iObkU855SHaQpGIg86Uh+shBSDh5LXxpEmdoM8zaFTYWwTXioGJg7vvJWvLIktHj8EWZkD5u49TyEyntS7WTfyHNyVgfxuMzEPT1+TiGp0aDOYC+PKAZYZpVNLugiM3QbKT0LBzqQtS0Rpj1wyouGCgwcQT6fFuN/qY0WNd6dFOerH4BhKWZVullMXuMzUd2i/Xe/58LzmC/UEcEmh8tRQK3s=", "swapfree_mb": 0, "swaptotal_mb": 0, "system": "Linux", "system_capabilities": [], "system_capabilities_enforced": "False", "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/tmpc84bdd0k/tests/tasks/setup_test.yml:24 changed: [/cache/fedora-33.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: cryptsetup-2.3.6-1.fc33.x86_64"]} TASK [Clone nbde_server role for the tests] ************************************ task path: /tmp/tmpc84bdd0k/tests/tasks/setup_test.yml:28 ok: [/cache/fedora-33.qcow2] => {"after": "c57d0b1f3384c525738fa26ba4bdca485e162567", "before": "c57d0b1f3384c525738fa26ba4bdca485e162567", "changed": false, "remote_url_changed": false} TASK [Deploy NBDE server for testing] ****************************************** task path: /tmp/tmpc84bdd0k/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-33.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-33.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-33.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: jose-11-1.fc33.x86_64", "Installed: libjose-11-1.fc33.x86_64", "Installed: http-parser-2.9.4-3.fc33.x86_64", "Installed: tang-10-2.fc33.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-33.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-33.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-33.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-33.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", "CanFreeze": "no", "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", "CoredumpFilter": "0x33", "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", "FreezerState": "running", "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": "7731", "LimitNPROCSoft": "7731", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "7731", "LimitSIGPENDINGSoft": "7731", "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", "PassPacketInfo": "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", "RootHashSignature": "", "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": "2319", "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/tmpc84bdd0k/tests/tasks/setup_test.yml:39 ok: [/cache/fedora-33.qcow2] => {"changed": false, "cmd": ["fallocate", "-l64m", "/tmp/.nbde_client_dev_test"], "delta": "0:00:00.011852", "end": "2021-08-06 12:09:04.367523", "rc": 0, "start": "2021-08-06 12:09:04.355671", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Format test device as LUKS] ********************************************** task path: /tmp/tmpc84bdd0k/tests/tasks/setup_test.yml:43 ok: [/cache/fedora-33.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.129681", "end": "2021-08-06 12:09:04.855103", "rc": 0, "start": "2021-08-06 12:09:04.725422", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Create key file for test device] ***************************************** task path: /tmp/tmpc84bdd0k/tests/tasks/setup_test.yml:51 ok: [/cache/fedora-33.qcow2] => {"changed": false, "cmd": "echo -n test-password-here > /tmp/.nbde_client_dev_encryption_key\n", "delta": "0:00:00.004002", "end": "2021-08-06 12:09:05.736559", "rc": 0, "start": "2021-08-06 12:09:05.732557", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Use nbde_client role] **************************************************** task path: /tmp/tmpc84bdd0k/tests/tests_bind_high_availability.yml:18 TASK [linux-system-roles.nbde_client : Set version specific variables] ********* task path: /tmp/tmpc84bdd0k/tasks/main.yml:4 ok: [/cache/fedora-33.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/tmpc84bdd0k/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.nbde_client : Include the appropriate provider tasks] *** task path: /tmp/tmpc84bdd0k/tasks/main.yml:17 included: /tmp/tmpc84bdd0k/tasks/main-clevis.yml for /cache/fedora-33.qcow2 TASK [linux-system-roles.nbde_client : Ensure required packages are installed] *** task path: /tmp/tmpc84bdd0k/tasks/main-clevis.yml:2 changed: [/cache/fedora-33.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: oniguruma-6.9.6-1.fc33.x86_64", "Installed: jq-1.6-5.fc33.x86_64", "Installed: luksmeta-9-9.fc33.x86_64", "Installed: dracut-network-055-3.fc33.x86_64", "Installed: tpm2-tools-4.3.2-1.fc33.x86_64", "Installed: libluksmeta-9-9.fc33.x86_64", "Installed: clevis-18-1.fc33.x86_64", "Installed: clevis-dracut-18-1.fc33.x86_64", "Installed: clevis-luks-18-1.fc33.x86_64", "Installed: clevis-pin-tpm2-0.2.0-1.fc33.x86_64", "Installed: clevis-systemd-18-1.fc33.x86_64"]} TASK [linux-system-roles.nbde_client : Check whether devices are at the desired state] *** task path: /tmp/tmpc84bdd0k/tasks/main-clevis.yml:7 changed: [/cache/fedora-33.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/tmpc84bdd0k/tasks/main-clevis.yml:17 changed: [/cache/fedora-33.qcow2] => {"changed": true, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/tmp/ansible.qc5oebfmnbde_client_encryption_keys", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 40, "state": "directory", "uid": 0} TASK [linux-system-roles.nbde_client : Ensure we transfer key files] *********** task path: /tmp/tmpc84bdd0k/tasks/main-clevis.yml:25 skipping: [/cache/fedora-33.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/tmpc84bdd0k/tasks/main-clevis.yml:37 NOTIFIED HANDLER linux-system-roles.nbde_client : nbde_client update initramfs for /cache/fedora-33.qcow2 changed: [/cache/fedora-33.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/tmpc84bdd0k/tasks/main-clevis.yml:47 changed: [/cache/fedora-33.qcow2] => {"changed": true, "path": "/tmp/ansible.qc5oebfmnbde_client_encryption_keys", "state": "absent"} TASK [Attempt to unlock device] ************************************************ task path: /tmp/tmpc84bdd0k/tests/tests_bind_high_availability.yml:22 included: /tmp/tmpc84bdd0k/tests/tasks/verify_unlock_device.yml for /cache/fedora-33.qcow2 TASK [Verify we can unlock the device] ***************************************** task path: /tmp/tmpc84bdd0k/tests/tasks/verify_unlock_device.yml:2 ok: [/cache/fedora-33.qcow2] => {"changed": false, "cmd": ["clevis", "luks", "unlock", "-d", "/tmp/.nbde_client_dev_test", "-n", "nbde_client_unlocked"], "delta": "0:00:04.181191", "end": "2021-08-06 12:09:24.513839", "rc": 0, "start": "2021-08-06 12:09:20.332648", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Close unlocked device] *************************************************** task path: /tmp/tmpc84bdd0k/tests/tasks/verify_unlock_device.yml:10 ok: [/cache/fedora-33.qcow2] => {"changed": false, "cmd": ["cryptsetup", "close", "nbde_client_unlocked"], "delta": "0:00:00.024084", "end": "2021-08-06 12:09:24.938179", "rc": 0, "start": "2021-08-06 12:09:24.914095", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Make sure the attempt to unlock succeeded] ******************************* task path: /tmp/tmpc84bdd0k/tests/tests_bind_high_availability.yml:25 ok: [/cache/fedora-33.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Assert idempotency] ****************************************************** task path: /tmp/tmpc84bdd0k/tests/tests_bind_high_availability.yml:31 included: /tmp/tmpc84bdd0k/tests/tasks/verify_idempotency.yml for /cache/fedora-33.qcow2 TASK [Use nbde_client role - idempotency check] ******************************** task path: /tmp/tmpc84bdd0k/tests/tasks/verify_idempotency.yml:2 TASK [linux-system-roles.nbde_client : Set version specific variables] ********* task path: /tmp/tmpc84bdd0k/tasks/main.yml:4 ok: [/cache/fedora-33.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/tmpc84bdd0k/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.nbde_client : Include the appropriate provider tasks] *** task path: /tmp/tmpc84bdd0k/tasks/main.yml:17 included: /tmp/tmpc84bdd0k/tasks/main-clevis.yml for /cache/fedora-33.qcow2 TASK [linux-system-roles.nbde_client : Ensure required packages are installed] *** task path: /tmp/tmpc84bdd0k/tasks/main-clevis.yml:2 ok: [/cache/fedora-33.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/tmpc84bdd0k/tasks/main-clevis.yml:7 ok: [/cache/fedora-33.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/tmpc84bdd0k/tasks/main-clevis.yml:17 skipping: [/cache/fedora-33.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.nbde_client : Ensure we transfer key files] *********** task path: /tmp/tmpc84bdd0k/tasks/main-clevis.yml:25 skipping: [/cache/fedora-33.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/tmpc84bdd0k/tasks/main-clevis.yml:37 skipping: [/cache/fedora-33.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/tmpc84bdd0k/tasks/main-clevis.yml:47 skipping: [/cache/fedora-33.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify idempotency of clevis operations] ********************************* task path: /tmp/tmpc84bdd0k/tests/tasks/verify_idempotency.yml:6 ok: [/cache/fedora-33.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up test environment] *********************************************** task path: /tmp/tmpc84bdd0k/tests/tests_bind_high_availability.yml:35 included: /tmp/tmpc84bdd0k/tests/tasks/cleanup_test.yml for /cache/fedora-33.qcow2 TASK [Clean up dummy testing device] ******************************************* task path: /tmp/tmpc84bdd0k/tests/tasks/cleanup_test.yml:2 changed: [/cache/fedora-33.qcow2] => {"changed": true, "path": "/tmp/.nbde_client_dev_test", "state": "absent"} TASK [Clean up dummy key file] ************************************************* task path: /tmp/tmpc84bdd0k/tests/tasks/cleanup_test.yml:7 changed: [/cache/fedora-33.qcow2] => {"changed": true, "path": "/tmp/.nbde_client_dev_encryption_key", "state": "absent"} TASK [Clean up dummy key file on managed host] ********************************* task path: /tmp/tmpc84bdd0k/tests/tasks/cleanup_test.yml:13 ok: [/cache/fedora-33.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/tmpc84bdd0k/handlers/main.yml:4 changed: [/cache/fedora-33.qcow2] => {"changed": true, "cmd": ["dracut", "-f"], "delta": "0:00:20.751185", "end": "2021-08-06 12:09:52.027253", "rc": 0, "start": "2021-08-06 12:09:31.276068", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/fedora-33.qcow2 : ok=38 changed=12 unreachable=0 failed=0 skipped=8 rescued=0 ignored=0 + cd /tmp/tmpc84bdd0k/tests; TEST_SUBJECTS=/cache/fedora-33.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_nbde_client-51-d478b30-fedora-33-m983wtuy/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmpc84bdd0k/_setup.yml /tmp/tmpc84bdd0k/tests/tests_default.yml ansible-playbook 2.9.23 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.9/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 3.9.6 (default, Jun 29 2021, 00:00:00) [GCC 11.1.1 20210531 (Red Hat 11.1.1-3)] 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/tmpc84bdd0k/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmpc84bdd0k/_setup.yml:5 ok: [/cache/fedora-33.qcow2] => { "groups": { "all": [ "/cache/fedora-33.qcow2" ], "localhost": [ "/cache/fedora-33.qcow2" ], "subjects": [ "/cache/fedora-33.qcow2" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmpc84bdd0k/_setup.yml:7 skipping: [/cache/fedora-33.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/fedora-33.qcow2 : ok=1 changed=0 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 PLAYBOOK: tests_default.yml **************************************************** 1 plays in /tmp/tmpc84bdd0k/tests/tests_default.yml PLAY [Ensure that the role runs with default parameters] *********************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpc84bdd0k/tests/tests_default.yml:2 ok: [/cache/fedora-33.qcow2] META: ran handlers TASK [linux-system-roles.nbde_client : Set version specific variables] ********* task path: /tmp/tmpc84bdd0k/tasks/main.yml:4 ok: [/cache/fedora-33.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/tmpc84bdd0k/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.nbde_client : Include the appropriate provider tasks] *** task path: /tmp/tmpc84bdd0k/tasks/main.yml:17 included: /tmp/tmpc84bdd0k/tasks/main-clevis.yml for /cache/fedora-33.qcow2 TASK [linux-system-roles.nbde_client : Ensure required packages are installed] *** task path: /tmp/tmpc84bdd0k/tasks/main-clevis.yml:2 changed: [/cache/fedora-33.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: jq-1.6-5.fc33.x86_64", "Installed: jose-11-1.fc33.x86_64", "Installed: libjose-11-1.fc33.x86_64", "Installed: dracut-network-055-3.fc33.x86_64", "Installed: cryptsetup-2.3.6-1.fc33.x86_64", "Installed: tpm2-tools-4.3.2-1.fc33.x86_64", "Installed: libluksmeta-9-9.fc33.x86_64", "Installed: clevis-18-1.fc33.x86_64", "Installed: clevis-dracut-18-1.fc33.x86_64", "Installed: clevis-luks-18-1.fc33.x86_64", "Installed: clevis-pin-tpm2-0.2.0-1.fc33.x86_64", "Installed: clevis-systemd-18-1.fc33.x86_64", "Installed: luksmeta-9-9.fc33.x86_64", "Installed: oniguruma-6.9.6-1.fc33.x86_64"]} TASK [linux-system-roles.nbde_client : Check whether devices are at the desired state] *** task path: /tmp/tmpc84bdd0k/tasks/main-clevis.yml:7 skipping: [/cache/fedora-33.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/tmpc84bdd0k/tasks/main-clevis.yml:17 skipping: [/cache/fedora-33.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.nbde_client : Ensure we transfer key files] *********** task path: /tmp/tmpc84bdd0k/tasks/main-clevis.yml:25 TASK [linux-system-roles.nbde_client : Perform clevis operations] ************** task path: /tmp/tmpc84bdd0k/tasks/main-clevis.yml:37 skipping: [/cache/fedora-33.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/tmpc84bdd0k/tasks/main-clevis.yml:47 skipping: [/cache/fedora-33.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/fedora-33.qcow2 : ok=5 changed=1 unreachable=0 failed=0 skipped=6 rescued=0 ignored=0 + cd /tmp/tmpc84bdd0k/tests; TEST_SUBJECTS=/cache/fedora-33.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_nbde_client-51-d478b30-fedora-33-m983wtuy/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmpc84bdd0k/_setup.yml /tmp/tmpc84bdd0k/tests/tests_default_vars.yml ansible-playbook 2.9.23 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.9/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 3.9.6 (default, Jun 29 2021, 00:00:00) [GCC 11.1.1 20210531 (Red Hat 11.1.1-3)] 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/tmpc84bdd0k/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmpc84bdd0k/_setup.yml:5 ok: [/cache/fedora-33.qcow2] => { "groups": { "all": [ "/cache/fedora-33.qcow2" ], "localhost": [ "/cache/fedora-33.qcow2" ], "subjects": [ "/cache/fedora-33.qcow2" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmpc84bdd0k/_setup.yml:7 skipping: [/cache/fedora-33.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/fedora-33.qcow2 : ok=1 changed=0 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 PLAYBOOK: tests_default_vars.yml *********************************************** 1 plays in /tmp/tmpc84bdd0k/tests/tests_default_vars.yml PLAY [Ensure that the role declares all parameters in defaults] **************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpc84bdd0k/tests/tests_default_vars.yml:2 ok: [/cache/fedora-33.qcow2] META: ran handlers TASK [linux-system-roles.nbde_client : Set version specific variables] ********* task path: /tmp/tmpc84bdd0k/tasks/main.yml:4 ok: [/cache/fedora-33.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/tmpc84bdd0k/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.nbde_client : Include the appropriate provider tasks] *** task path: /tmp/tmpc84bdd0k/tasks/main.yml:17 included: /tmp/tmpc84bdd0k/tasks/main-clevis.yml for /cache/fedora-33.qcow2 TASK [linux-system-roles.nbde_client : Ensure required packages are installed] *** task path: /tmp/tmpc84bdd0k/tasks/main-clevis.yml:2 changed: [/cache/fedora-33.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: jq-1.6-5.fc33.x86_64", "Installed: jose-11-1.fc33.x86_64", "Installed: libjose-11-1.fc33.x86_64", "Installed: dracut-network-055-3.fc33.x86_64", "Installed: cryptsetup-2.3.6-1.fc33.x86_64", "Installed: tpm2-tools-4.3.2-1.fc33.x86_64", "Installed: libluksmeta-9-9.fc33.x86_64", "Installed: clevis-18-1.fc33.x86_64", "Installed: clevis-dracut-18-1.fc33.x86_64", "Installed: clevis-luks-18-1.fc33.x86_64", "Installed: clevis-pin-tpm2-0.2.0-1.fc33.x86_64", "Installed: clevis-systemd-18-1.fc33.x86_64", "Installed: luksmeta-9-9.fc33.x86_64", "Installed: oniguruma-6.9.6-1.fc33.x86_64"]} TASK [linux-system-roles.nbde_client : Check whether devices are at the desired state] *** task path: /tmp/tmpc84bdd0k/tasks/main-clevis.yml:7 skipping: [/cache/fedora-33.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/tmpc84bdd0k/tasks/main-clevis.yml:17 skipping: [/cache/fedora-33.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.nbde_client : Ensure we transfer key files] *********** task path: /tmp/tmpc84bdd0k/tasks/main-clevis.yml:25 TASK [linux-system-roles.nbde_client : Perform clevis operations] ************** task path: /tmp/tmpc84bdd0k/tasks/main-clevis.yml:37 skipping: [/cache/fedora-33.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/tmpc84bdd0k/tasks/main-clevis.yml:47 skipping: [/cache/fedora-33.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Assert that the role declares all parameters in defaults] **************** task path: /tmp/tmpc84bdd0k/tests/tests_default_vars.yml:9 ok: [/cache/fedora-33.qcow2] => (item=nbde_client_provider) => { "ansible_loop_var": "item", "changed": false, "item": "nbde_client_provider", "msg": "All assertions passed" } ok: [/cache/fedora-33.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-33.qcow2 : ok=6 changed=1 unreachable=0 failed=0 skipped=6 rescued=0 ignored=0 + cd /tmp/tmpc84bdd0k/tests; TEST_SUBJECTS=/cache/fedora-33.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_nbde_client-51-d478b30-fedora-33-m983wtuy/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmpc84bdd0k/_setup.yml /tmp/tmpc84bdd0k/tests/tests_include_vars_from_parent.yml ansible-playbook 2.9.23 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.9/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 3.9.6 (default, Jun 29 2021, 00:00:00) [GCC 11.1.1 20210531 (Red Hat 11.1.1-3)] 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/tmpc84bdd0k/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmpc84bdd0k/_setup.yml:5 ok: [/cache/fedora-33.qcow2] => { "groups": { "all": [ "/cache/fedora-33.qcow2" ], "localhost": [ "/cache/fedora-33.qcow2" ], "subjects": [ "/cache/fedora-33.qcow2" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmpc84bdd0k/_setup.yml:7 skipping: [/cache/fedora-33.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/fedora-33.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/tmpc84bdd0k/tests/tests_include_vars_from_parent.yml PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpc84bdd0k/tests/tests_include_vars_from_parent.yml:1 ok: [/cache/fedora-33.qcow2] META: ran handlers TASK [create var file in caller that can override the one in called role] ****** task path: /tmp/tmpc84bdd0k/tests/tests_include_vars_from_parent.yml:3 changed: [/cache/fedora-33.qcow2] => (item=Fedora-33) => {"ansible_loop_var": "item", "changed": true, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "dest": "/tmp/tmpc84bdd0k/tests/roles/caller/vars/Fedora-33.yml", "gid": 0, "group": "root", "item": "Fedora-33", "md5sum": "5a57da448a1d752b982858b38aab344d", "mode": "0600", "owner": "root", "size": 23, "src": "/root/.ansible/tmp/ansible-tmp-1628251943.0880764-120812-209762106023299/source", "state": "file", "uid": 0} changed: [/cache/fedora-33.qcow2] => (item=Fedora_33) => {"ansible_loop_var": "item", "changed": true, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "dest": "/tmp/tmpc84bdd0k/tests/roles/caller/vars/Fedora_33.yml", "gid": 0, "group": "root", "item": "Fedora_33", "md5sum": "5a57da448a1d752b982858b38aab344d", "mode": "0600", "owner": "root", "size": 23, "src": "/root/.ansible/tmp/ansible-tmp-1628251943.6295183-120812-211155792456368/source", "state": "file", "uid": 0} changed: [/cache/fedora-33.qcow2] => (item=Fedora) => {"ansible_loop_var": "item", "changed": true, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "dest": "/tmp/tmpc84bdd0k/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-1628251943.9622037-120812-199875919481618/source", "state": "file", "uid": 0} changed: [/cache/fedora-33.qcow2] => (item=RedHat) => {"ansible_loop_var": "item", "changed": true, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "dest": "/tmp/tmpc84bdd0k/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-1628251944.299583-120812-174926460480307/source", "state": "file", "uid": 0} TASK [include_role : {{ roletoinclude }}] ************************************** task path: /tmp/tmpc84bdd0k/tests/roles/caller/tasks/main.yml:4 TASK [linux-system-roles.nbde_client : Set version specific variables] ********* task path: /tmp/tmpc84bdd0k/tasks/main.yml:4 ok: [/cache/fedora-33.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/tmpc84bdd0k/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.nbde_client : Include the appropriate provider tasks] *** task path: /tmp/tmpc84bdd0k/tasks/main.yml:17 included: /tmp/tmpc84bdd0k/tasks/main-clevis.yml for /cache/fedora-33.qcow2 TASK [linux-system-roles.nbde_client : Ensure required packages are installed] *** task path: /tmp/tmpc84bdd0k/tasks/main-clevis.yml:2 changed: [/cache/fedora-33.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: jq-1.6-5.fc33.x86_64", "Installed: jose-11-1.fc33.x86_64", "Installed: libjose-11-1.fc33.x86_64", "Installed: dracut-network-055-3.fc33.x86_64", "Installed: cryptsetup-2.3.6-1.fc33.x86_64", "Installed: tpm2-tools-4.3.2-1.fc33.x86_64", "Installed: libluksmeta-9-9.fc33.x86_64", "Installed: clevis-18-1.fc33.x86_64", "Installed: clevis-dracut-18-1.fc33.x86_64", "Installed: clevis-luks-18-1.fc33.x86_64", "Installed: clevis-pin-tpm2-0.2.0-1.fc33.x86_64", "Installed: clevis-systemd-18-1.fc33.x86_64", "Installed: luksmeta-9-9.fc33.x86_64", "Installed: oniguruma-6.9.6-1.fc33.x86_64"]} TASK [linux-system-roles.nbde_client : Check whether devices are at the desired state] *** task path: /tmp/tmpc84bdd0k/tasks/main-clevis.yml:7 skipping: [/cache/fedora-33.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/tmpc84bdd0k/tasks/main-clevis.yml:17 skipping: [/cache/fedora-33.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.nbde_client : Ensure we transfer key files] *********** task path: /tmp/tmpc84bdd0k/tasks/main-clevis.yml:25 TASK [linux-system-roles.nbde_client : Perform clevis operations] ************** task path: /tmp/tmpc84bdd0k/tasks/main-clevis.yml:37 skipping: [/cache/fedora-33.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/tmpc84bdd0k/tasks/main-clevis.yml:47 skipping: [/cache/fedora-33.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [caller : assert] ********************************************************* task path: /tmp/tmpc84bdd0k/tests/roles/caller/tasks/main.yml:7 ok: [/cache/fedora-33.qcow2] => { "changed": false, "msg": "All assertions passed" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/fedora-33.qcow2 : ok=7 changed=2 unreachable=0 failed=0 skipped=6 rescued=0 ignored=0 + cd /tmp/tmpc84bdd0k/tests; TEST_SUBJECTS=/cache/fedora-33.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_nbde_client-51-d478b30-fedora-33-m983wtuy/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmpc84bdd0k/_setup.yml /tmp/tmpc84bdd0k/tests/tests_key_rotation.yml ansible-playbook 2.9.23 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.9/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 3.9.6 (default, Jun 29 2021, 00:00:00) [GCC 11.1.1 20210531 (Red Hat 11.1.1-3)] 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/tmpc84bdd0k/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmpc84bdd0k/_setup.yml:5 ok: [/cache/fedora-33.qcow2] => { "groups": { "all": [ "/cache/fedora-33.qcow2" ], "localhost": [ "/cache/fedora-33.qcow2" ], "subjects": [ "/cache/fedora-33.qcow2" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmpc84bdd0k/_setup.yml:7 skipping: [/cache/fedora-33.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/fedora-33.qcow2 : ok=1 changed=0 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 PLAYBOOK: tests_key_rotation.yml *********************************************** 1 plays in /tmp/tmpc84bdd0k/tests/tests_key_rotation.yml PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpc84bdd0k/tests/tests_key_rotation.yml:2 ok: [/cache/fedora-33.qcow2] META: ran handlers TASK [Set up test environment] ************************************************* task path: /tmp/tmpc84bdd0k/tests/tests_key_rotation.yml:12 included: /tmp/tmpc84bdd0k/tests/tasks/setup_test.yml for /cache/fedora-33.qcow2 TASK [Include general tests variables] ***************************************** task path: /tmp/tmpc84bdd0k/tests/tasks/setup_test.yml:2 ok: [/cache/fedora-33.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/tmpc84bdd0k/tests/vars/main.yml"], "changed": false} TASK [Set version specific variables] ****************************************** task path: /tmp/tmpc84bdd0k/tests/tasks/setup_test.yml:5 ok: [/cache/fedora-33.qcow2] => {"ansible_facts": {"nbde_client_test_packages": ["cryptsetup"]}, "ansible_included_var_files": ["/tmp/tmpc84bdd0k/tests/vars/Fedora.yml"], "changed": false} TASK [Print all available facts] *********************************************** task path: /tmp/tmpc84bdd0k/tests/tasks/setup_test.yml:20 ok: [/cache/fedora-33.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.14.0-3.fc34", "cmdline": { "BOOT_IMAGE": "(hd0,msdos1)/boot/vmlinuz-5.13.6-100.fc33.x86_64", "console": "ttyS0,115200n8", "net.ifnames": "0", "no_timer_check": true, "ro": true, "root": "UUID=b2201488-ac7a-4269-b92f-a722977a99a3" }, "date_time": { "date": "2021-08-06", "day": "06", "epoch": "1628252001", "hour": "12", "iso8601": "2021-08-06T12:13:21Z", "iso8601_basic": "20210806T121321873329", "iso8601_basic_short": "20210806T121321", "iso8601_micro": "2021-08-06T12:13:21.873329Z", "minute": "13", "month": "08", "second": "21", "time": "12:13:21", "tz": "UTC", "tz_offset": "+0000", "weekday": "Friday", "weekday_number": "5", "weeknumber": "31", "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-08-06-12-13-08-00" ], "vda1": [ "b2201488-ac7a-4269-b92f-a722977a99a3" ] } }, "devices": { "sr0": { "holders": [], "host": "IDE interface: Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II]", "links": { "ids": [ "ata-QEMU_DVD-ROM_QM00003" ], "labels": [ "cidata" ], "masters": [], "uuids": [ "2021-08-06-12-13-08-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": "SCSI storage controller: Red Hat, Inc. Virtio block device", "links": { "ids": [], "labels": [], "masters": [], "uuids": [] }, "model": null, "partitions": { "vda1": { "holders": [], "links": { "ids": [], "labels": [], "masters": [], "uuids": [ "b2201488-ac7a-4269-b92f-a722977a99a3" ] }, "sectors": "8386560", "sectorsize": 512, "size": "4.00 GB", "start": "2048", "uuid": "b2201488-ac7a-4269-b92f-a722977a99a3" } }, "removable": "0", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "none", "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": "33", "distribution_release": "", "distribution_version": "33", "dns": { "nameservers": [ "127.0.0.53" ], "options": { "edns0": true, "trust-ad": true } }, "domain": "localdomain", "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 60434 22", "SSH_CONNECTION": "10.0.2.2 60434 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": "localhost.localdomain", "gather_subset": [ "all" ], "hostname": "localhost", "hostnqn": "", "interfaces": [ "lo", "eth0" ], "is_chroot": false, "iscsi_iqn": "", "kernel": "5.13.6-100.fc33.x86_64", "kernel_version": "#1 SMP Wed Jul 28 15:30:10 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": "75e013bfa0654cf28a17092d124403e6", "memfree_mb": 1659, "memory_mb": { "nocache": { "free": 1813, "used": 152 }, "real": { "free": 1659, "total": 1965, "used": 306 }, "swap": { "cached": 0, "free": 0, "total": 0, "used": 0 } }, "memtotal_mb": 1965, "module_setup": true, "mounts": [ { "block_available": 797163, "block_size": 4096, "block_total": 1015472, "block_used": 218309, "device": "/dev/vda1", "fstype": "ext4", "inode_available": 236024, "inode_total": 262144, "inode_used": 26120, "mount": "/", "options": "rw,seclabel,relatime", "size_available": 3265179648, "size_total": 4159373312, "uuid": "b2201488-ac7a-4269-b92f-a722977a99a3" } ], "nodename": "localhost", "os_family": "RedHat", "pkg_mgr": "dnf", "proc_cmdline": { "BOOT_IMAGE": "(hd0,msdos1)/boot/vmlinuz-5.13.6-100.fc33.x86_64", "console": [ "tty1", "ttyS0,115200n8" ], "net.ifnames": "0", "no_timer_check": true, "ro": true, "root": "UUID=b2201488-ac7a-4269-b92f-a722977a99a3" }, "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-5.2", "python": { "executable": "/usr/bin/python3", "has_sslcontext": true, "type": "cpython", "version": { "major": 3, "micro": 6, "minor": 9, "releaselevel": "final", "serial": 0 }, "version_info": [ 3, 9, 6, "final", 0 ] }, "python_version": "3.9.6", "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": "AAAAB3NzaC1kc3MAAACBAIoB4o+22+XvomG+vETyYaF/UE6XsNBmhHUkuWcunDaaMsXUKUKw5yJerIeMkSwR6EuKosKv45qmLCvtsrleSl9C/BL2deCQnIqQiD8a/6ir4sTinpD52Wh6AQINvX1EUt2waP76YoEXWNzMU27AKKn5IUYOPHolHweM4YDHMV3hAAAAFQDC+eB2CbMCduspSrJFsixZX0PnhQAAAIAkKSXDW3qEZjBZBE6tOcRKBPo+fNWdz/9A5kGmBm0ELzjb0oUyRV0xxwZsOLPefWJ+m+5HCZe850iOMVh6yjLhEcD9rOH9LmYXMB7quKxOnaUOgyl5TDHZ8uygNhuoncwk5NmgMF6aF2IHGztI7FgjUT+q+cwoC0JaAJUT5JgQDwAAAIAMdbMqmy5wZYfT0d1HeEBYwBImW7driheHrlZflbjmXlU2Pe6d6QLwhjPOB11ziDy+zBHbfzCLn7F13Phpxqg0h659TtlD+WvE6/RY+JDccju8X2X8sGER1qGp6ym3A1KWaL+Ms4fwuYuspv8CFNe3TDbN/bWAb0PCk3r3+yxOxw==", "ssh_host_key_ecdsa_public": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBHeAcbMVz4wgpmuoUAfJ92R/qBJ4kj1MjqJ1zrAByH/M8L3wQvvsMqu4HMOO8fdH8f+sxoEetk14VkaEgoc6r5k=", "ssh_host_key_ed25519_public": "AAAAC3NzaC1lZDI1NTE5AAAAIKQIWHXNrsjsbRF90l+uwNosUvzCuI4/Q5E4fGaEDNGk", "ssh_host_key_rsa_public": "AAAAB3NzaC1yc2EAAAADAQABAAABgQDt9TxbTbIsemy5h2lfIq9QSY8eO/BGNKk541P26eNC4+Xka1eUz9beIUSsF95IgPDB44s/kfXnZIqcNkPhV5kWJIfjOeMYIoYeRfyB8t+uIW7BL8VNPVNb6S6rYHH/JtaaYC72s3LbUys+7C+CfqdDJ1TbFbQHguqp7m6PII/aiihEcYJwQJns1cermXhE4ONb6dQ/pRDFGro3wuk8WdPwGrkyXsFxCExmeufoMxS3v+LHUN9aqFjOc42UYXb0dixzX/KcThngd6HlQqh4nTKX3GJcrvOpDr//J6zUx3B3wcjivKEj8NpQsnWxhG//3MSe0lgBE2GxerpL0uNZDszVovieFwNLqEwl41dqDMsVhBqlAsyMoZ2tJRZoSysLiaWhfxS7hkmBEwd4f0jjhkF26SrsuBD9KnSb3vqstm3AOSJX0AyHvkILkP1/IxSpqcxrL7q/RUliQD/mGkn2ctgQHGZzId8DHagpn5/aTP9lyU40tTkMnht+tjGm7cK7p20=", "swapfree_mb": 0, "swaptotal_mb": 0, "system": "Linux", "system_capabilities": [], "system_capabilities_enforced": "False", "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/tmpc84bdd0k/tests/tasks/setup_test.yml:24 changed: [/cache/fedora-33.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: cryptsetup-2.3.6-1.fc33.x86_64"]} TASK [Clone nbde_server role for the tests] ************************************ task path: /tmp/tmpc84bdd0k/tests/tasks/setup_test.yml:28 ok: [/cache/fedora-33.qcow2] => {"after": "c57d0b1f3384c525738fa26ba4bdca485e162567", "before": "c57d0b1f3384c525738fa26ba4bdca485e162567", "changed": false, "remote_url_changed": false} TASK [Deploy NBDE server for testing] ****************************************** task path: /tmp/tmpc84bdd0k/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-33.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-33.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-33.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: jose-11-1.fc33.x86_64", "Installed: libjose-11-1.fc33.x86_64", "Installed: http-parser-2.9.4-3.fc33.x86_64", "Installed: tang-10-2.fc33.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-33.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-33.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-33.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-33.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", "CanFreeze": "no", "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", "CoredumpFilter": "0x33", "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", "FreezerState": "running", "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": "7731", "LimitNPROCSoft": "7731", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "7731", "LimitSIGPENDINGSoft": "7731", "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", "PassPacketInfo": "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", "RootHashSignature": "", "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": "2319", "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/tmpc84bdd0k/tests/tasks/setup_test.yml:39 ok: [/cache/fedora-33.qcow2] => {"changed": false, "cmd": ["fallocate", "-l64m", "/tmp/.nbde_client_dev_test"], "delta": "0:00:00.012378", "end": "2021-08-06 12:14:44.647436", "rc": 0, "start": "2021-08-06 12:14:44.635058", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Format test device as LUKS] ********************************************** task path: /tmp/tmpc84bdd0k/tests/tasks/setup_test.yml:43 ok: [/cache/fedora-33.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.143955", "end": "2021-08-06 12:14:45.145004", "rc": 0, "start": "2021-08-06 12:14:45.001049", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Create key file for test device] ***************************************** task path: /tmp/tmpc84bdd0k/tests/tasks/setup_test.yml:51 ok: [/cache/fedora-33.qcow2] => {"changed": false, "cmd": "echo -n test-password-here > /tmp/.nbde_client_dev_encryption_key\n", "delta": "0:00:00.003925", "end": "2021-08-06 12:14:46.100574", "rc": 0, "start": "2021-08-06 12:14:46.096649", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Use nbde_client role] **************************************************** task path: /tmp/tmpc84bdd0k/tests/tests_key_rotation.yml:17 TASK [linux-system-roles.nbde_client : Set version specific variables] ********* task path: /tmp/tmpc84bdd0k/tasks/main.yml:4 ok: [/cache/fedora-33.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/tmpc84bdd0k/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.nbde_client : Include the appropriate provider tasks] *** task path: /tmp/tmpc84bdd0k/tasks/main.yml:17 included: /tmp/tmpc84bdd0k/tasks/main-clevis.yml for /cache/fedora-33.qcow2 TASK [linux-system-roles.nbde_client : Ensure required packages are installed] *** task path: /tmp/tmpc84bdd0k/tasks/main-clevis.yml:2 changed: [/cache/fedora-33.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: oniguruma-6.9.6-1.fc33.x86_64", "Installed: jq-1.6-5.fc33.x86_64", "Installed: luksmeta-9-9.fc33.x86_64", "Installed: dracut-network-055-3.fc33.x86_64", "Installed: tpm2-tools-4.3.2-1.fc33.x86_64", "Installed: libluksmeta-9-9.fc33.x86_64", "Installed: clevis-18-1.fc33.x86_64", "Installed: clevis-dracut-18-1.fc33.x86_64", "Installed: clevis-luks-18-1.fc33.x86_64", "Installed: clevis-pin-tpm2-0.2.0-1.fc33.x86_64", "Installed: clevis-systemd-18-1.fc33.x86_64"]} TASK [linux-system-roles.nbde_client : Check whether devices are at the desired state] *** task path: /tmp/tmpc84bdd0k/tasks/main-clevis.yml:7 changed: [/cache/fedora-33.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/tmpc84bdd0k/tasks/main-clevis.yml:17 changed: [/cache/fedora-33.qcow2] => {"changed": true, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/tmp/ansible.yfu4cupgnbde_client_encryption_keys", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 40, "state": "directory", "uid": 0} TASK [linux-system-roles.nbde_client : Ensure we transfer key files] *********** task path: /tmp/tmpc84bdd0k/tasks/main-clevis.yml:25 skipping: [/cache/fedora-33.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/tmpc84bdd0k/tasks/main-clevis.yml:37 NOTIFIED HANDLER linux-system-roles.nbde_client : nbde_client update initramfs for /cache/fedora-33.qcow2 changed: [/cache/fedora-33.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/tmpc84bdd0k/tasks/main-clevis.yml:47 changed: [/cache/fedora-33.qcow2] => {"changed": true, "path": "/tmp/ansible.yfu4cupgnbde_client_encryption_keys", "state": "absent"} TASK [Attempt to unlock device] ************************************************ task path: /tmp/tmpc84bdd0k/tests/tests_key_rotation.yml:21 included: /tmp/tmpc84bdd0k/tests/tasks/verify_unlock_device.yml for /cache/fedora-33.qcow2 TASK [Verify we can unlock the device] ***************************************** task path: /tmp/tmpc84bdd0k/tests/tasks/verify_unlock_device.yml:2 ok: [/cache/fedora-33.qcow2] => {"changed": false, "cmd": ["clevis", "luks", "unlock", "-d", "/tmp/.nbde_client_dev_test", "-n", "nbde_client_unlocked"], "delta": "0:00:03.705437", "end": "2021-08-06 12:15:00.212936", "rc": 0, "start": "2021-08-06 12:14:56.507499", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Close unlocked device] *************************************************** task path: /tmp/tmpc84bdd0k/tests/tasks/verify_unlock_device.yml:10 ok: [/cache/fedora-33.qcow2] => {"changed": false, "cmd": ["cryptsetup", "close", "nbde_client_unlocked"], "delta": "0:00:00.024069", "end": "2021-08-06 12:15:00.580706", "rc": 0, "start": "2021-08-06 12:15:00.556637", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Make sure the attempt to unlock succeeded] ******************************* task path: /tmp/tmpc84bdd0k/tests/tests_key_rotation.yml:24 ok: [/cache/fedora-33.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Assert idempotency] ****************************************************** task path: /tmp/tmpc84bdd0k/tests/tests_key_rotation.yml:30 included: /tmp/tmpc84bdd0k/tests/tasks/verify_idempotency.yml for /cache/fedora-33.qcow2 TASK [Use nbde_client role - idempotency check] ******************************** task path: /tmp/tmpc84bdd0k/tests/tasks/verify_idempotency.yml:2 TASK [linux-system-roles.nbde_client : Set version specific variables] ********* task path: /tmp/tmpc84bdd0k/tasks/main.yml:4 ok: [/cache/fedora-33.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/tmpc84bdd0k/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.nbde_client : Include the appropriate provider tasks] *** task path: /tmp/tmpc84bdd0k/tasks/main.yml:17 included: /tmp/tmpc84bdd0k/tasks/main-clevis.yml for /cache/fedora-33.qcow2 TASK [linux-system-roles.nbde_client : Ensure required packages are installed] *** task path: /tmp/tmpc84bdd0k/tasks/main-clevis.yml:2 ok: [/cache/fedora-33.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/tmpc84bdd0k/tasks/main-clevis.yml:7 ok: [/cache/fedora-33.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/tmpc84bdd0k/tasks/main-clevis.yml:17 skipping: [/cache/fedora-33.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.nbde_client : Ensure we transfer key files] *********** task path: /tmp/tmpc84bdd0k/tasks/main-clevis.yml:25 skipping: [/cache/fedora-33.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/tmpc84bdd0k/tasks/main-clevis.yml:37 skipping: [/cache/fedora-33.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/tmpc84bdd0k/tasks/main-clevis.yml:47 skipping: [/cache/fedora-33.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify idempotency of clevis operations] ********************************* task path: /tmp/tmpc84bdd0k/tests/tasks/verify_idempotency.yml:6 ok: [/cache/fedora-33.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Rotate keys] ************************************************************* task path: /tmp/tmpc84bdd0k/tests/tests_key_rotation.yml:33 included: /tmp/tmpc84bdd0k/tests/tasks/rotate_keys.yml for /cache/fedora-33.qcow2 TASK [Rotate NBDE keys for testing] ******************************************** task path: /tmp/tmpc84bdd0k/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-33.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-33.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-33.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-33.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-33.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-33.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-33.qcow2] => (item=tangd.socket) => {"ansible_loop_var": "item", "changed": false, "enabled": true, "item": "tangd.socket", "name": "tangd.socket", "state": "started", "status": {"Accept": "yes", "ActiveEnterTimestamp": "Fri 2021-08-06 12:14:44 UTC", "ActiveEnterTimestampMonotonic": "93363548", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "system.slice sysinit.target", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "yes", "AssertTimestamp": "Fri 2021-08-06 12:14:44 UTC", "AssertTimestampMonotonic": "93361335", "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": "5092000", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanFreeze": "no", "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": "Fri 2021-08-06 12:14:44 UTC", "ConditionTimestampMonotonic": "93361333", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target", "ControlGroup": "/system.slice/tangd.socket", "ControlPID": "0", "CoredumpFilter": "0x33", "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", "FreezerState": "running", "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": "Fri 2021-08-06 12:14:44 UTC", "InactiveExitTimestampMonotonic": "93363548", "InvocationID": "6e66a89dd3684e4abce45960d2984f4a", "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": "7731", "LimitNPROCSoft": "7731", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "7731", "LimitSIGPENDINGSoft": "7731", "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", "PassPacketInfo": "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", "RootHashSignature": "", "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": "Fri 2021-08-06 12:14:44 UTC", "StateChangeTimestampMonotonic": "93363548", "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": "2319", "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/tmpc84bdd0k/tests/tests_key_rotation.yml:36 TASK [linux-system-roles.nbde_client : Set version specific variables] ********* task path: /tmp/tmpc84bdd0k/tasks/main.yml:4 ok: [/cache/fedora-33.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/tmpc84bdd0k/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.nbde_client : Include the appropriate provider tasks] *** task path: /tmp/tmpc84bdd0k/tasks/main.yml:17 included: /tmp/tmpc84bdd0k/tasks/main-clevis.yml for /cache/fedora-33.qcow2 TASK [linux-system-roles.nbde_client : Ensure required packages are installed] *** task path: /tmp/tmpc84bdd0k/tasks/main-clevis.yml:2 ok: [/cache/fedora-33.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/tmpc84bdd0k/tasks/main-clevis.yml:7 changed: [/cache/fedora-33.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/tmpc84bdd0k/tasks/main-clevis.yml:17 changed: [/cache/fedora-33.qcow2] => {"changed": true, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/tmp/ansible.dikowabxnbde_client_encryption_keys", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 40, "state": "directory", "uid": 0} TASK [linux-system-roles.nbde_client : Ensure we transfer key files] *********** task path: /tmp/tmpc84bdd0k/tasks/main-clevis.yml:25 skipping: [/cache/fedora-33.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/tmpc84bdd0k/tasks/main-clevis.yml:37 changed: [/cache/fedora-33.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/tmpc84bdd0k/tasks/main-clevis.yml:47 changed: [/cache/fedora-33.qcow2] => {"changed": true, "path": "/tmp/ansible.dikowabxnbde_client_encryption_keys", "state": "absent"} TASK [Assert change happened after key rotation] ******************************* task path: /tmp/tmpc84bdd0k/tests/tests_key_rotation.yml:40 ok: [/cache/fedora-33.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Assert idempotency again - change not expected] ************************** task path: /tmp/tmpc84bdd0k/tests/tests_key_rotation.yml:45 included: /tmp/tmpc84bdd0k/tests/tasks/verify_idempotency.yml for /cache/fedora-33.qcow2 TASK [Use nbde_client role - idempotency check] ******************************** task path: /tmp/tmpc84bdd0k/tests/tasks/verify_idempotency.yml:2 TASK [linux-system-roles.nbde_client : Set version specific variables] ********* task path: /tmp/tmpc84bdd0k/tasks/main.yml:4 ok: [/cache/fedora-33.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/tmpc84bdd0k/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.nbde_client : Include the appropriate provider tasks] *** task path: /tmp/tmpc84bdd0k/tasks/main.yml:17 included: /tmp/tmpc84bdd0k/tasks/main-clevis.yml for /cache/fedora-33.qcow2 TASK [linux-system-roles.nbde_client : Ensure required packages are installed] *** task path: /tmp/tmpc84bdd0k/tasks/main-clevis.yml:2 ok: [/cache/fedora-33.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/tmpc84bdd0k/tasks/main-clevis.yml:7 ok: [/cache/fedora-33.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/tmpc84bdd0k/tasks/main-clevis.yml:17 skipping: [/cache/fedora-33.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.nbde_client : Ensure we transfer key files] *********** task path: /tmp/tmpc84bdd0k/tasks/main-clevis.yml:25 skipping: [/cache/fedora-33.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/tmpc84bdd0k/tasks/main-clevis.yml:37 skipping: [/cache/fedora-33.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/tmpc84bdd0k/tasks/main-clevis.yml:47 skipping: [/cache/fedora-33.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify idempotency of clevis operations] ********************************* task path: /tmp/tmpc84bdd0k/tests/tasks/verify_idempotency.yml:6 ok: [/cache/fedora-33.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up test environment] *********************************************** task path: /tmp/tmpc84bdd0k/tests/tests_key_rotation.yml:49 included: /tmp/tmpc84bdd0k/tests/tasks/cleanup_test.yml for /cache/fedora-33.qcow2 TASK [Clean up dummy testing device] ******************************************* task path: /tmp/tmpc84bdd0k/tests/tasks/cleanup_test.yml:2 changed: [/cache/fedora-33.qcow2] => {"changed": true, "path": "/tmp/.nbde_client_dev_test", "state": "absent"} TASK [Clean up dummy key file] ************************************************* task path: /tmp/tmpc84bdd0k/tests/tasks/cleanup_test.yml:7 changed: [/cache/fedora-33.qcow2] => {"changed": true, "path": "/tmp/.nbde_client_dev_encryption_key", "state": "absent"} TASK [Clean up dummy key file on managed host] ********************************* task path: /tmp/tmpc84bdd0k/tests/tasks/cleanup_test.yml:13 ok: [/cache/fedora-33.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/tmpc84bdd0k/handlers/main.yml:4 changed: [/cache/fedora-33.qcow2] => {"changed": true, "cmd": ["dracut", "-f"], "delta": "0:00:21.011624", "end": "2021-08-06 12:15:49.805917", "rc": 0, "start": "2021-08-06 12:15:28.794293", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/fedora-33.qcow2 : ok=58 changed=17 unreachable=0 failed=0 skipped=15 rescued=0 ignored=0 + cd /tmp/tmpc84bdd0k/tests; TEST_SUBJECTS=/cache/fedora-33.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_nbde_client-51-d478b30-fedora-33-m983wtuy/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmpc84bdd0k/_setup.yml /tmp/tmpc84bdd0k/tests/tests_passphrase_temporary.yml ansible-playbook 2.9.23 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.9/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 3.9.6 (default, Jun 29 2021, 00:00:00) [GCC 11.1.1 20210531 (Red Hat 11.1.1-3)] 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/tmpc84bdd0k/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmpc84bdd0k/_setup.yml:5 ok: [/cache/fedora-33.qcow2] => { "groups": { "all": [ "/cache/fedora-33.qcow2" ], "localhost": [ "/cache/fedora-33.qcow2" ], "subjects": [ "/cache/fedora-33.qcow2" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmpc84bdd0k/_setup.yml:7 skipping: [/cache/fedora-33.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/fedora-33.qcow2 : ok=1 changed=0 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 PLAYBOOK: tests_passphrase_temporary.yml *************************************** 1 plays in /tmp/tmpc84bdd0k/tests/tests_passphrase_temporary.yml PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpc84bdd0k/tests/tests_passphrase_temporary.yml:2 ok: [/cache/fedora-33.qcow2] META: ran handlers TASK [Set up test environment] ************************************************* task path: /tmp/tmpc84bdd0k/tests/tests_passphrase_temporary.yml:16 included: /tmp/tmpc84bdd0k/tests/tasks/setup_test.yml for /cache/fedora-33.qcow2 TASK [Include general tests variables] ***************************************** task path: /tmp/tmpc84bdd0k/tests/tasks/setup_test.yml:2 ok: [/cache/fedora-33.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/tmpc84bdd0k/tests/vars/main.yml"], "changed": false} TASK [Set version specific variables] ****************************************** task path: /tmp/tmpc84bdd0k/tests/tasks/setup_test.yml:5 ok: [/cache/fedora-33.qcow2] => {"ansible_facts": {"nbde_client_test_packages": ["cryptsetup"]}, "ansible_included_var_files": ["/tmp/tmpc84bdd0k/tests/vars/Fedora.yml"], "changed": false} TASK [Print all available facts] *********************************************** task path: /tmp/tmpc84bdd0k/tests/tasks/setup_test.yml:20 ok: [/cache/fedora-33.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.14.0-3.fc34", "cmdline": { "BOOT_IMAGE": "(hd0,msdos1)/boot/vmlinuz-5.13.6-100.fc33.x86_64", "console": "ttyS0,115200n8", "net.ifnames": "0", "no_timer_check": true, "ro": true, "root": "UUID=b2201488-ac7a-4269-b92f-a722977a99a3" }, "date_time": { "date": "2021-08-06", "day": "06", "epoch": "1628252164", "hour": "12", "iso8601": "2021-08-06T12:16:04Z", "iso8601_basic": "20210806T121604999016", "iso8601_basic_short": "20210806T121604", "iso8601_micro": "2021-08-06T12:16:04.999016Z", "minute": "16", "month": "08", "second": "04", "time": "12:16:04", "tz": "UTC", "tz_offset": "+0000", "weekday": "Friday", "weekday_number": "5", "weeknumber": "31", "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-08-06-12-15-51-00" ], "vda1": [ "b2201488-ac7a-4269-b92f-a722977a99a3" ] } }, "devices": { "sr0": { "holders": [], "host": "IDE interface: Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II]", "links": { "ids": [ "ata-QEMU_DVD-ROM_QM00003" ], "labels": [ "cidata" ], "masters": [], "uuids": [ "2021-08-06-12-15-51-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": "SCSI storage controller: Red Hat, Inc. Virtio block device", "links": { "ids": [], "labels": [], "masters": [], "uuids": [] }, "model": null, "partitions": { "vda1": { "holders": [], "links": { "ids": [], "labels": [], "masters": [], "uuids": [ "b2201488-ac7a-4269-b92f-a722977a99a3" ] }, "sectors": "8386560", "sectorsize": 512, "size": "4.00 GB", "start": "2048", "uuid": "b2201488-ac7a-4269-b92f-a722977a99a3" } }, "removable": "0", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "none", "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": "33", "distribution_release": "", "distribution_version": "33", "dns": { "nameservers": [ "127.0.0.53" ], "options": { "edns0": true, "trust-ad": true } }, "domain": "localdomain", "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 57734 22", "SSH_CONNECTION": "10.0.2.2 57734 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": "localhost.localdomain", "gather_subset": [ "all" ], "hostname": "localhost", "hostnqn": "", "interfaces": [ "eth0", "lo" ], "is_chroot": false, "iscsi_iqn": "", "kernel": "5.13.6-100.fc33.x86_64", "kernel_version": "#1 SMP Wed Jul 28 15:30:10 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": "d7f98a803b0948e0a42851cb539484f5", "memfree_mb": 1659, "memory_mb": { "nocache": { "free": 1813, "used": 152 }, "real": { "free": 1659, "total": 1965, "used": 306 }, "swap": { "cached": 0, "free": 0, "total": 0, "used": 0 } }, "memtotal_mb": 1965, "module_setup": true, "mounts": [ { "block_available": 797164, "block_size": 4096, "block_total": 1015472, "block_used": 218308, "device": "/dev/vda1", "fstype": "ext4", "inode_available": 236024, "inode_total": 262144, "inode_used": 26120, "mount": "/", "options": "rw,seclabel,relatime", "size_available": 3265183744, "size_total": 4159373312, "uuid": "b2201488-ac7a-4269-b92f-a722977a99a3" } ], "nodename": "localhost", "os_family": "RedHat", "pkg_mgr": "dnf", "proc_cmdline": { "BOOT_IMAGE": "(hd0,msdos1)/boot/vmlinuz-5.13.6-100.fc33.x86_64", "console": [ "tty1", "ttyS0,115200n8" ], "net.ifnames": "0", "no_timer_check": true, "ro": true, "root": "UUID=b2201488-ac7a-4269-b92f-a722977a99a3" }, "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-5.2", "python": { "executable": "/usr/bin/python3", "has_sslcontext": true, "type": "cpython", "version": { "major": 3, "micro": 6, "minor": 9, "releaselevel": "final", "serial": 0 }, "version_info": [ 3, 9, 6, "final", 0 ] }, "python_version": "3.9.6", "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": "AAAAB3NzaC1kc3MAAACBANJJxUHSprity9oRKBOOBOs1Q2+eCqQC3sZWwJB6sEP2FVRRA1x7/dwspouBEDyoUswPZnbOwT3w3NNJetf8Ld7oe8gJ8bwNaetdkGcgOGduROYeaqAGqWlSLW0gWUFQ3QrtZSR/cu8hKHtYMNY2KdeRJ0o0J0CUB7csOtFKBjinAAAAFQCC5IRCL72sH8TksGGwhe/7a9QdXQAAAIEAjBg5ui2GdYy9DEbPM632qAEGsV6Qtg8c+S2gzZlSyW6+uYyIW5XGuTwjT/WEA8hkscpzb/Jr6nwlKlIe//WkDyugRRTJmO0nbNblZW68EEiwh5S/CC43rk4yHFK+mu5faEqhMFhFIXuzxryBx3FpT1fRjU5MuLQoAQeRuXlMGb4AAACAMnNrGQkMeCVywqINWCOjJFOsuNWUUQKG4BAaoZp+IGSP4zx5AGcyHfraZ0wf6ii+w0eW7jKDNTsxrCypCtEjCdU2EjVoawP3S985wEJDh9qO+zmVi0swuxsSvHsZLslxVGCw/fIhCo1J1/mt2g03llxx9VqnnEFKMp+Bp9rSJFs=", "ssh_host_key_ecdsa_public": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBJ5cJcFmZs7WlPdq1X4B9ANXxYJMpIlSrYq5uOA+4PwFTUXHa51g5vIpT6SO/XqzY48eJVa3EI64ElKaoejiiFY=", "ssh_host_key_ed25519_public": "AAAAC3NzaC1lZDI1NTE5AAAAIIt/gPunNhsEsaxM6aPqeBe6RqAZ31Oy1urJvJSeLEaz", "ssh_host_key_rsa_public": "AAAAB3NzaC1yc2EAAAADAQABAAABgQCoz9kSCNUS6+Ue4cU+g+K1OoxumNAPqjQ7OxpxUbvrrBD7MK40slo0pxT8F8p5h9Xy2TOE8p04A9TXRxD5HwQ4rZ7Mk72rvRLKJtZV6NBs39a7M+mAlOfszVQjygv2dQ3EnAgW9jMn/eXpyCrMEvnQh8k8cIWmL5mjtYtOnAeoyVVhmLHBf4CffdNDxtM43RLpuclh2A822ter7KDENQmwR8trzvEY/In1G3RdpUtbgCKfw5c/y7zOY+LQ7gthV2uX4Crxgd0ihoSWvIK+MBYnkUiImRIOcfgcVRg8zn04l74SJTeg4fSt/8NPEzyNDLZAmPqjHLEzRRdJqEv3zRqPOt+AMOeKvBki2ipvbNIGkZOlHIriDe1SgzUbw7JgScz7lNYkyi5sBCaDEtEOM+LamqrrWpxZAh16Lm9sZvV1KpRU0mXU1CcawoSDg7HCKRPFGsydm9TuvYhGTZO5Yuc2fVD2XqNWBzShQ5ZfFecvQgfHQslPKqAJ2A0N2nifxVk=", "swapfree_mb": 0, "swaptotal_mb": 0, "system": "Linux", "system_capabilities": [], "system_capabilities_enforced": "False", "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/tmpc84bdd0k/tests/tasks/setup_test.yml:24 changed: [/cache/fedora-33.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: cryptsetup-2.3.6-1.fc33.x86_64"]} TASK [Clone nbde_server role for the tests] ************************************ task path: /tmp/tmpc84bdd0k/tests/tasks/setup_test.yml:28 ok: [/cache/fedora-33.qcow2] => {"after": "c57d0b1f3384c525738fa26ba4bdca485e162567", "before": "c57d0b1f3384c525738fa26ba4bdca485e162567", "changed": false, "remote_url_changed": false} TASK [Deploy NBDE server for testing] ****************************************** task path: /tmp/tmpc84bdd0k/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-33.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-33.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-33.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: jose-11-1.fc33.x86_64", "Installed: libjose-11-1.fc33.x86_64", "Installed: http-parser-2.9.4-3.fc33.x86_64", "Installed: tang-10-2.fc33.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-33.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-33.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-33.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-33.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", "CanFreeze": "no", "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", "CoredumpFilter": "0x33", "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", "FreezerState": "running", "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": "7731", "LimitNPROCSoft": "7731", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "7731", "LimitSIGPENDINGSoft": "7731", "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", "PassPacketInfo": "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", "RootHashSignature": "", "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": "2319", "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/tmpc84bdd0k/tests/tasks/setup_test.yml:39 ok: [/cache/fedora-33.qcow2] => {"changed": false, "cmd": ["fallocate", "-l64m", "/tmp/.nbde_client_dev_test"], "delta": "0:00:00.012298", "end": "2021-08-06 12:17:13.096991", "rc": 0, "start": "2021-08-06 12:17:13.084693", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Format test device as LUKS] ********************************************** task path: /tmp/tmpc84bdd0k/tests/tasks/setup_test.yml:43 ok: [/cache/fedora-33.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.126665", "end": "2021-08-06 12:17:13.575715", "rc": 0, "start": "2021-08-06 12:17:13.449050", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Create key file for test device] ***************************************** task path: /tmp/tmpc84bdd0k/tests/tasks/setup_test.yml:51 ok: [/cache/fedora-33.qcow2] => {"changed": false, "cmd": "echo -n test-password-here > /tmp/.nbde_client_dev_encryption_key\n", "delta": "0:00:00.004351", "end": "2021-08-06 12:17:13.988841", "rc": 0, "start": "2021-08-06 12:17:13.984490", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Use nbde_client role] **************************************************** task path: /tmp/tmpc84bdd0k/tests/tests_passphrase_temporary.yml:21 TASK [linux-system-roles.nbde_client : Set version specific variables] ********* task path: /tmp/tmpc84bdd0k/tasks/main.yml:4 ok: [/cache/fedora-33.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/tmpc84bdd0k/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.nbde_client : Include the appropriate provider tasks] *** task path: /tmp/tmpc84bdd0k/tasks/main.yml:17 included: /tmp/tmpc84bdd0k/tasks/main-clevis.yml for /cache/fedora-33.qcow2 TASK [linux-system-roles.nbde_client : Ensure required packages are installed] *** task path: /tmp/tmpc84bdd0k/tasks/main-clevis.yml:2 changed: [/cache/fedora-33.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: oniguruma-6.9.6-1.fc33.x86_64", "Installed: jq-1.6-5.fc33.x86_64", "Installed: luksmeta-9-9.fc33.x86_64", "Installed: dracut-network-055-3.fc33.x86_64", "Installed: tpm2-tools-4.3.2-1.fc33.x86_64", "Installed: libluksmeta-9-9.fc33.x86_64", "Installed: clevis-18-1.fc33.x86_64", "Installed: clevis-dracut-18-1.fc33.x86_64", "Installed: clevis-luks-18-1.fc33.x86_64", "Installed: clevis-pin-tpm2-0.2.0-1.fc33.x86_64", "Installed: clevis-systemd-18-1.fc33.x86_64"]} TASK [linux-system-roles.nbde_client : Check whether devices are at the desired state] *** task path: /tmp/tmpc84bdd0k/tasks/main-clevis.yml:7 changed: [/cache/fedora-33.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/tmpc84bdd0k/tasks/main-clevis.yml:17 changed: [/cache/fedora-33.qcow2] => {"changed": true, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/tmp/ansible._ae1og4nnbde_client_encryption_keys", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 40, "state": "directory", "uid": 0} TASK [linux-system-roles.nbde_client : Ensure we transfer key files] *********** task path: /tmp/tmpc84bdd0k/tasks/main-clevis.yml:25 skipping: [/cache/fedora-33.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-33.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/tmpc84bdd0k/tasks/main-clevis.yml:37 NOTIFIED HANDLER linux-system-roles.nbde_client : nbde_client update initramfs for /cache/fedora-33.qcow2 changed: [/cache/fedora-33.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/tmpc84bdd0k/tasks/main-clevis.yml:47 changed: [/cache/fedora-33.qcow2] => {"changed": true, "path": "/tmp/ansible._ae1og4nnbde_client_encryption_keys", "state": "absent"} TASK [Attempt to unlock device] ************************************************ task path: /tmp/tmpc84bdd0k/tests/tests_passphrase_temporary.yml:25 included: /tmp/tmpc84bdd0k/tests/tasks/verify_unlock_device.yml for /cache/fedora-33.qcow2 TASK [Verify we can unlock the device] ***************************************** task path: /tmp/tmpc84bdd0k/tests/tasks/verify_unlock_device.yml:2 ok: [/cache/fedora-33.qcow2] => {"changed": false, "cmd": ["clevis", "luks", "unlock", "-d", "/tmp/.nbde_client_dev_test", "-n", "nbde_client_unlocked"], "delta": "0:00:04.211909", "end": "2021-08-06 12:17:35.873653", "rc": 0, "start": "2021-08-06 12:17:31.661744", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Close unlocked device] *************************************************** task path: /tmp/tmpc84bdd0k/tests/tasks/verify_unlock_device.yml:10 ok: [/cache/fedora-33.qcow2] => {"changed": false, "cmd": ["cryptsetup", "close", "nbde_client_unlocked"], "delta": "0:00:00.029344", "end": "2021-08-06 12:17:36.224834", "rc": 0, "start": "2021-08-06 12:17:36.195490", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Make sure the attempt to unlock succeeded] ******************************* task path: /tmp/tmpc84bdd0k/tests/tests_passphrase_temporary.yml:28 ok: [/cache/fedora-33.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Attempt to check whether default passphrase works] *********************** task path: /tmp/tmpc84bdd0k/tests/tests_passphrase_temporary.yml:34 included: /tmp/tmpc84bdd0k/tests/tasks/verify_default_passphrase.yml for /cache/fedora-33.qcow2 TASK [Verify the default passphrase works] ************************************* task path: /tmp/tmpc84bdd0k/tests/tasks/verify_default_passphrase.yml:2 fatal: [/cache/fedora-33.qcow2]: FAILED! => {"changed": false, "cmd": "echo -n \"test-password-here\" | cryptsetup open --test-passphrase \"/tmp/.nbde_client_dev_test\"\n", "delta": "0:00:01.922227", "end": "2021-08-06 12:17:38.527907", "msg": "non-zero return code", "rc": 2, "start": "2021-08-06 12:17:36.605680", "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/tmpc84bdd0k/tests/tests_passphrase_temporary.yml:37 ok: [/cache/fedora-33.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Assert idempotency] ****************************************************** task path: /tmp/tmpc84bdd0k/tests/tests_passphrase_temporary.yml:42 included: /tmp/tmpc84bdd0k/tests/tasks/verify_idempotency.yml for /cache/fedora-33.qcow2 TASK [Use nbde_client role - idempotency check] ******************************** task path: /tmp/tmpc84bdd0k/tests/tasks/verify_idempotency.yml:2 TASK [linux-system-roles.nbde_client : Set version specific variables] ********* task path: /tmp/tmpc84bdd0k/tasks/main.yml:4 ok: [/cache/fedora-33.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/tmpc84bdd0k/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.nbde_client : Include the appropriate provider tasks] *** task path: /tmp/tmpc84bdd0k/tasks/main.yml:17 included: /tmp/tmpc84bdd0k/tasks/main-clevis.yml for /cache/fedora-33.qcow2 TASK [linux-system-roles.nbde_client : Ensure required packages are installed] *** task path: /tmp/tmpc84bdd0k/tasks/main-clevis.yml:2 ok: [/cache/fedora-33.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/tmpc84bdd0k/tasks/main-clevis.yml:7 ok: [/cache/fedora-33.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/tmpc84bdd0k/tasks/main-clevis.yml:17 skipping: [/cache/fedora-33.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.nbde_client : Ensure we transfer key files] *********** task path: /tmp/tmpc84bdd0k/tasks/main-clevis.yml:25 skipping: [/cache/fedora-33.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-33.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/tmpc84bdd0k/tasks/main-clevis.yml:37 skipping: [/cache/fedora-33.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/tmpc84bdd0k/tasks/main-clevis.yml:47 skipping: [/cache/fedora-33.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify idempotency of clevis operations] ********************************* task path: /tmp/tmpc84bdd0k/tests/tasks/verify_idempotency.yml:6 ok: [/cache/fedora-33.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up test environment] *********************************************** task path: /tmp/tmpc84bdd0k/tests/tests_passphrase_temporary.yml:46 included: /tmp/tmpc84bdd0k/tests/tasks/cleanup_test.yml for /cache/fedora-33.qcow2 TASK [Clean up dummy testing device] ******************************************* task path: /tmp/tmpc84bdd0k/tests/tasks/cleanup_test.yml:2 changed: [/cache/fedora-33.qcow2] => {"changed": true, "path": "/tmp/.nbde_client_dev_test", "state": "absent"} TASK [Clean up dummy key file] ************************************************* task path: /tmp/tmpc84bdd0k/tests/tasks/cleanup_test.yml:7 changed: [/cache/fedora-33.qcow2] => {"changed": true, "path": "/tmp/.nbde_client_dev_encryption_key", "state": "absent"} TASK [Clean up dummy key file on managed host] ********************************* task path: /tmp/tmpc84bdd0k/tests/tasks/cleanup_test.yml:13 ok: [/cache/fedora-33.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/tmpc84bdd0k/handlers/main.yml:4 changed: [/cache/fedora-33.qcow2] => {"changed": true, "cmd": ["dracut", "-f"], "delta": "0:00:20.753057", "end": "2021-08-06 12:18:07.194200", "rc": 0, "start": "2021-08-06 12:17:46.441143", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/fedora-33.qcow2 : ok=41 changed=12 unreachable=0 failed=0 skipped=8 rescued=0 ignored=1 + cd /tmp/tmpc84bdd0k/tests; TEST_SUBJECTS=/cache/fedora-33.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_nbde_client-51-d478b30-fedora-33-m983wtuy/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmpc84bdd0k/_setup.yml /tmp/tmpc84bdd0k/tests/tests_passphrase_temporary_keyfile.yml ansible-playbook 2.9.23 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.9/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 3.9.6 (default, Jun 29 2021, 00:00:00) [GCC 11.1.1 20210531 (Red Hat 11.1.1-3)] 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/tmpc84bdd0k/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmpc84bdd0k/_setup.yml:5 ok: [/cache/fedora-33.qcow2] => { "groups": { "all": [ "/cache/fedora-33.qcow2" ], "localhost": [ "/cache/fedora-33.qcow2" ], "subjects": [ "/cache/fedora-33.qcow2" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmpc84bdd0k/_setup.yml:7 skipping: [/cache/fedora-33.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/fedora-33.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/tmpc84bdd0k/tests/tests_passphrase_temporary_keyfile.yml PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpc84bdd0k/tests/tests_passphrase_temporary_keyfile.yml:2 ok: [/cache/fedora-33.qcow2] META: ran handlers TASK [Set up test environment] ************************************************* task path: /tmp/tmpc84bdd0k/tests/tests_passphrase_temporary_keyfile.yml:16 included: /tmp/tmpc84bdd0k/tests/tasks/setup_test.yml for /cache/fedora-33.qcow2 TASK [Include general tests variables] ***************************************** task path: /tmp/tmpc84bdd0k/tests/tasks/setup_test.yml:2 ok: [/cache/fedora-33.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/tmpc84bdd0k/tests/vars/main.yml"], "changed": false} TASK [Set version specific variables] ****************************************** task path: /tmp/tmpc84bdd0k/tests/tasks/setup_test.yml:5 ok: [/cache/fedora-33.qcow2] => {"ansible_facts": {"nbde_client_test_packages": ["cryptsetup"]}, "ansible_included_var_files": ["/tmp/tmpc84bdd0k/tests/vars/Fedora.yml"], "changed": false} TASK [Print all available facts] *********************************************** task path: /tmp/tmpc84bdd0k/tests/tasks/setup_test.yml:20 ok: [/cache/fedora-33.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.14.0-3.fc34", "cmdline": { "BOOT_IMAGE": "(hd0,msdos1)/boot/vmlinuz-5.13.6-100.fc33.x86_64", "console": "ttyS0,115200n8", "net.ifnames": "0", "no_timer_check": true, "ro": true, "root": "UUID=b2201488-ac7a-4269-b92f-a722977a99a3" }, "date_time": { "date": "2021-08-06", "day": "06", "epoch": "1628252300", "hour": "12", "iso8601": "2021-08-06T12:18:20Z", "iso8601_basic": "20210806T121820868302", "iso8601_basic_short": "20210806T121820", "iso8601_micro": "2021-08-06T12:18:20.868302Z", "minute": "18", "month": "08", "second": "20", "time": "12:18:20", "tz": "UTC", "tz_offset": "+0000", "weekday": "Friday", "weekday_number": "5", "weeknumber": "31", "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-08-06-12-18-07-00" ], "vda1": [ "b2201488-ac7a-4269-b92f-a722977a99a3" ] } }, "devices": { "sr0": { "holders": [], "host": "IDE interface: Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II]", "links": { "ids": [ "ata-QEMU_DVD-ROM_QM00003" ], "labels": [ "cidata" ], "masters": [], "uuids": [ "2021-08-06-12-18-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": "SCSI storage controller: Red Hat, Inc. Virtio block device", "links": { "ids": [], "labels": [], "masters": [], "uuids": [] }, "model": null, "partitions": { "vda1": { "holders": [], "links": { "ids": [], "labels": [], "masters": [], "uuids": [ "b2201488-ac7a-4269-b92f-a722977a99a3" ] }, "sectors": "8386560", "sectorsize": 512, "size": "4.00 GB", "start": "2048", "uuid": "b2201488-ac7a-4269-b92f-a722977a99a3" } }, "removable": "0", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "none", "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": "33", "distribution_release": "", "distribution_version": "33", "dns": { "nameservers": [ "127.0.0.53" ], "options": { "edns0": true, "trust-ad": true } }, "domain": "localdomain", "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 51022 22", "SSH_CONNECTION": "10.0.2.2 51022 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": "localhost.localdomain", "gather_subset": [ "all" ], "hostname": "localhost", "hostnqn": "", "interfaces": [ "lo", "eth0" ], "is_chroot": false, "iscsi_iqn": "", "kernel": "5.13.6-100.fc33.x86_64", "kernel_version": "#1 SMP Wed Jul 28 15:30:10 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": "2e971f1880a743fda9caa4d49cf1773e", "memfree_mb": 1658, "memory_mb": { "nocache": { "free": 1812, "used": 153 }, "real": { "free": 1658, "total": 1965, "used": 307 }, "swap": { "cached": 0, "free": 0, "total": 0, "used": 0 } }, "memtotal_mb": 1965, "module_setup": true, "mounts": [ { "block_available": 797164, "block_size": 4096, "block_total": 1015472, "block_used": 218308, "device": "/dev/vda1", "fstype": "ext4", "inode_available": 236024, "inode_total": 262144, "inode_used": 26120, "mount": "/", "options": "rw,seclabel,relatime", "size_available": 3265183744, "size_total": 4159373312, "uuid": "b2201488-ac7a-4269-b92f-a722977a99a3" } ], "nodename": "localhost", "os_family": "RedHat", "pkg_mgr": "dnf", "proc_cmdline": { "BOOT_IMAGE": "(hd0,msdos1)/boot/vmlinuz-5.13.6-100.fc33.x86_64", "console": [ "tty1", "ttyS0,115200n8" ], "net.ifnames": "0", "no_timer_check": true, "ro": true, "root": "UUID=b2201488-ac7a-4269-b92f-a722977a99a3" }, "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-5.2", "python": { "executable": "/usr/bin/python3", "has_sslcontext": true, "type": "cpython", "version": { "major": 3, "micro": 6, "minor": 9, "releaselevel": "final", "serial": 0 }, "version_info": [ 3, 9, 6, "final", 0 ] }, "python_version": "3.9.6", "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": "AAAAB3NzaC1kc3MAAACBAJAwhrxgTfH1p7Nu0Q20STgB9VKjBXcd17nrM+T+LY+UfuNjngYv1KHVSe3JIqc7P4iTe2FqfA52M7oEFgAD01899XiZUugWQs/TNa9mcf7oVLs7o1Hu96gos2rOeZaaj5tbTd/WsQurNNL85m9ywN/1CbL6BJTg91NKpPG3Y4pPAAAAFQDICcuqtkFAuY00RzpdkVSLvQk0UQAAAIBET/uaatQ9GJlP0EBVi3LM1Ng8XpHlX7tIy07Jmkm4BGnJIpk8Xdyt+jeM1vAQms85vY49pNtSen7bP0mQP2y+vKV+a8HZJ1Qn7KKe+UlS04vULmlq6HLoIbNtTA+Ov0P8zBI3I7w8WqdSp1EMTTyjkcoPUWXedOPNiFaSB02U5wAAAIA+tqdCvdtx3x4UqVgMFDoDcNo5yRA/7mf73W6akqTJTSt8MQ5oZa6OsQxjagugljZaUqJdvOugHOE3MVHcdAP9vBcuOUQXytz8nF1DcMikxn4MBCEumrBOwQSZPbdj8oax/+4bL2fTozuCPQsBFg2GR2wL/3hYidhgllSmAdAEcQ==", "ssh_host_key_ecdsa_public": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBLhqwKAr2UMBEU275k6L/9xgklLY/8CTEC+Nvd6e160kbcFh0qsEA1Ej6lhQx/bGEZp+aWDgZX0T9GbRyIAwvUU=", "ssh_host_key_ed25519_public": "AAAAC3NzaC1lZDI1NTE5AAAAIK50GYpzEDzgIbER3llDGSu5ZQjma4wD4qBjIFGrbzws", "ssh_host_key_rsa_public": "AAAAB3NzaC1yc2EAAAADAQABAAABgQDPT6ttZQETUyZ7y57rxOWDrTKbaX37xhQFixROziLcWdHNz7ca4Te0Y9uGe69yJ3NULwf+M3xzZ0A/dPITMoCQVs+sBgT0DV5HClLIwKuV39UAkUiMy5vEwXFP+Y7jtfkBDDR10u5QDAJggWwcdNrFPcEiLeoAgbAi5bN0Yi9UWFvhnWyo2XvOtQFqOAzPorMBY0yy8JLcMfVo/KDEH+/3UiK9C4Kp1MWs36UYQEo9sF+Gc/PKfZniDQaGTB8lNwN/H9KuC3jLRPKh/otGgwbib2AIhb2ISAvp9N3Q0sIJLPYnLChUe1WKd8mLkpeY+VtGaWWcVtJ/smPAMqtH0R9pPvtZyksnxBeDjSQjEoeq9nbFldGbxN3ffiiZ65Hm0f5aPrjNVG2PHOeV7uNzKSvT/BZjbZPDVHQh8TDOd7fu7lm8XFJVh/wzngTl09ZPQao26wA3ionWupxniCeGjvHYPfI03nAa84ukd9RQhz9YzQ8ljqMhthAU9+1UUY4+3dU=", "swapfree_mb": 0, "swaptotal_mb": 0, "system": "Linux", "system_capabilities": [], "system_capabilities_enforced": "False", "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/tmpc84bdd0k/tests/tasks/setup_test.yml:24 changed: [/cache/fedora-33.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: cryptsetup-2.3.6-1.fc33.x86_64"]} TASK [Clone nbde_server role for the tests] ************************************ task path: /tmp/tmpc84bdd0k/tests/tasks/setup_test.yml:28 ok: [/cache/fedora-33.qcow2] => {"after": "c57d0b1f3384c525738fa26ba4bdca485e162567", "before": "c57d0b1f3384c525738fa26ba4bdca485e162567", "changed": false, "remote_url_changed": false} TASK [Deploy NBDE server for testing] ****************************************** task path: /tmp/tmpc84bdd0k/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-33.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-33.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-33.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: jose-11-1.fc33.x86_64", "Installed: libjose-11-1.fc33.x86_64", "Installed: http-parser-2.9.4-3.fc33.x86_64", "Installed: tang-10-2.fc33.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-33.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-33.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-33.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-33.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", "CanFreeze": "no", "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", "CoredumpFilter": "0x33", "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", "FreezerState": "running", "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": "7731", "LimitNPROCSoft": "7731", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "7731", "LimitSIGPENDINGSoft": "7731", "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", "PassPacketInfo": "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", "RootHashSignature": "", "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": "2319", "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/tmpc84bdd0k/tests/tasks/setup_test.yml:39 ok: [/cache/fedora-33.qcow2] => {"changed": false, "cmd": ["fallocate", "-l64m", "/tmp/.nbde_client_dev_test"], "delta": "0:00:00.011344", "end": "2021-08-06 12:19:08.226546", "rc": 0, "start": "2021-08-06 12:19:08.215202", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Format test device as LUKS] ********************************************** task path: /tmp/tmpc84bdd0k/tests/tasks/setup_test.yml:43 ok: [/cache/fedora-33.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.123234", "end": "2021-08-06 12:19:08.675968", "rc": 0, "start": "2021-08-06 12:19:08.552734", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Create key file for test device] ***************************************** task path: /tmp/tmpc84bdd0k/tests/tasks/setup_test.yml:51 ok: [/cache/fedora-33.qcow2] => {"changed": false, "cmd": "echo -n test-password-here > /tmp/.nbde_client_dev_encryption_key\n", "delta": "0:00:00.004429", "end": "2021-08-06 12:19:09.783280", "rc": 0, "start": "2021-08-06 12:19:09.778851", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Use nbde_client role] **************************************************** task path: /tmp/tmpc84bdd0k/tests/tests_passphrase_temporary_keyfile.yml:21 TASK [linux-system-roles.nbde_client : Set version specific variables] ********* task path: /tmp/tmpc84bdd0k/tasks/main.yml:4 ok: [/cache/fedora-33.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/tmpc84bdd0k/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.nbde_client : Include the appropriate provider tasks] *** task path: /tmp/tmpc84bdd0k/tasks/main.yml:17 included: /tmp/tmpc84bdd0k/tasks/main-clevis.yml for /cache/fedora-33.qcow2 TASK [linux-system-roles.nbde_client : Ensure required packages are installed] *** task path: /tmp/tmpc84bdd0k/tasks/main-clevis.yml:2 changed: [/cache/fedora-33.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: oniguruma-6.9.6-1.fc33.x86_64", "Installed: jq-1.6-5.fc33.x86_64", "Installed: luksmeta-9-9.fc33.x86_64", "Installed: dracut-network-055-3.fc33.x86_64", "Installed: tpm2-tools-4.3.2-1.fc33.x86_64", "Installed: libluksmeta-9-9.fc33.x86_64", "Installed: clevis-18-1.fc33.x86_64", "Installed: clevis-dracut-18-1.fc33.x86_64", "Installed: clevis-luks-18-1.fc33.x86_64", "Installed: clevis-pin-tpm2-0.2.0-1.fc33.x86_64", "Installed: clevis-systemd-18-1.fc33.x86_64"]} TASK [linux-system-roles.nbde_client : Check whether devices are at the desired state] *** task path: /tmp/tmpc84bdd0k/tasks/main-clevis.yml:7 changed: [/cache/fedora-33.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/tmpc84bdd0k/tasks/main-clevis.yml:17 changed: [/cache/fedora-33.qcow2] => {"changed": true, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/tmp/ansible.n557s15enbde_client_encryption_keys", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 40, "state": "directory", "uid": 0} TASK [linux-system-roles.nbde_client : Ensure we transfer key files] *********** task path: /tmp/tmpc84bdd0k/tasks/main-clevis.yml:25 changed: [/cache/fedora-33.qcow2] => (item=/tmp/.nbde_client_dev_encryption_key) => {"ansible_loop_var": "item", "changed": true, "checksum": "ddcbbd80371add8b55e5288b1278a7ead06c422e", "dest": "/tmp/ansible.n557s15enbde_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-1628252355.5102136-122681-268044695941749/source", "state": "file", "uid": 0} skipping: [/cache/fedora-33.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/tmpc84bdd0k/tasks/main-clevis.yml:37 NOTIFIED HANDLER linux-system-roles.nbde_client : nbde_client update initramfs for /cache/fedora-33.qcow2 changed: [/cache/fedora-33.qcow2] => {"changed": true, "original_bindings": [{"device": "/tmp/.nbde_client_dev_test", "encryption_key": "/tmp/ansible.n557s15enbde_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/tmpc84bdd0k/tasks/main-clevis.yml:47 changed: [/cache/fedora-33.qcow2] => {"changed": true, "path": "/tmp/ansible.n557s15enbde_client_encryption_keys", "state": "absent"} TASK [Attempt to unlock device] ************************************************ task path: /tmp/tmpc84bdd0k/tests/tests_passphrase_temporary_keyfile.yml:25 included: /tmp/tmpc84bdd0k/tests/tasks/verify_unlock_device.yml for /cache/fedora-33.qcow2 TASK [Verify we can unlock the device] ***************************************** task path: /tmp/tmpc84bdd0k/tests/tasks/verify_unlock_device.yml:2 ok: [/cache/fedora-33.qcow2] => {"changed": false, "cmd": ["clevis", "luks", "unlock", "-d", "/tmp/.nbde_client_dev_test", "-n", "nbde_client_unlocked"], "delta": "0:00:03.873618", "end": "2021-08-06 12:19:27.952493", "rc": 0, "start": "2021-08-06 12:19:24.078875", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Close unlocked device] *************************************************** task path: /tmp/tmpc84bdd0k/tests/tasks/verify_unlock_device.yml:10 ok: [/cache/fedora-33.qcow2] => {"changed": false, "cmd": ["cryptsetup", "close", "nbde_client_unlocked"], "delta": "0:00:00.027214", "end": "2021-08-06 12:19:28.319055", "rc": 0, "start": "2021-08-06 12:19:28.291841", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Make sure the attempt to unlock succeeded] ******************************* task path: /tmp/tmpc84bdd0k/tests/tests_passphrase_temporary_keyfile.yml:28 ok: [/cache/fedora-33.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [copy the key file to the managed host] *********************************** task path: /tmp/tmpc84bdd0k/tests/tests_passphrase_temporary_keyfile.yml:34 changed: [/cache/fedora-33.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-1628252369.3201647-122777-126013472504998/source", "state": "file", "uid": 0} TASK [Attempt to check whether default key file works] ************************* task path: /tmp/tmpc84bdd0k/tests/tests_passphrase_temporary_keyfile.yml:40 included: /tmp/tmpc84bdd0k/tests/tasks/verify_default_key_file.yml for /cache/fedora-33.qcow2 TASK [Verify the default key file works] *************************************** task path: /tmp/tmpc84bdd0k/tests/tasks/verify_default_key_file.yml:2 fatal: [/cache/fedora-33.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:01.855071", "end": "2021-08-06 12:19:31.186370", "msg": "non-zero return code", "rc": 2, "start": "2021-08-06 12:19:29.331299", "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/tmpc84bdd0k/tests/tests_passphrase_temporary_keyfile.yml:43 ok: [/cache/fedora-33.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Assert idempotency] ****************************************************** task path: /tmp/tmpc84bdd0k/tests/tests_passphrase_temporary_keyfile.yml:50 included: /tmp/tmpc84bdd0k/tests/tasks/verify_idempotency.yml for /cache/fedora-33.qcow2 TASK [Use nbde_client role - idempotency check] ******************************** task path: /tmp/tmpc84bdd0k/tests/tasks/verify_idempotency.yml:2 TASK [linux-system-roles.nbde_client : Set version specific variables] ********* task path: /tmp/tmpc84bdd0k/tasks/main.yml:4 ok: [/cache/fedora-33.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/tmpc84bdd0k/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.nbde_client : Include the appropriate provider tasks] *** task path: /tmp/tmpc84bdd0k/tasks/main.yml:17 included: /tmp/tmpc84bdd0k/tasks/main-clevis.yml for /cache/fedora-33.qcow2 TASK [linux-system-roles.nbde_client : Ensure required packages are installed] *** task path: /tmp/tmpc84bdd0k/tasks/main-clevis.yml:2 ok: [/cache/fedora-33.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/tmpc84bdd0k/tasks/main-clevis.yml:7 ok: [/cache/fedora-33.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/tmpc84bdd0k/tasks/main-clevis.yml:17 skipping: [/cache/fedora-33.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.nbde_client : Ensure we transfer key files] *********** task path: /tmp/tmpc84bdd0k/tasks/main-clevis.yml:25 skipping: [/cache/fedora-33.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-33.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/tmpc84bdd0k/tasks/main-clevis.yml:37 skipping: [/cache/fedora-33.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/tmpc84bdd0k/tasks/main-clevis.yml:47 skipping: [/cache/fedora-33.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify idempotency of clevis operations] ********************************* task path: /tmp/tmpc84bdd0k/tests/tasks/verify_idempotency.yml:6 ok: [/cache/fedora-33.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up test environment] *********************************************** task path: /tmp/tmpc84bdd0k/tests/tests_passphrase_temporary_keyfile.yml:54 included: /tmp/tmpc84bdd0k/tests/tasks/cleanup_test.yml for /cache/fedora-33.qcow2 TASK [Clean up dummy testing device] ******************************************* task path: /tmp/tmpc84bdd0k/tests/tasks/cleanup_test.yml:2 changed: [/cache/fedora-33.qcow2] => {"changed": true, "path": "/tmp/.nbde_client_dev_test", "state": "absent"} TASK [Clean up dummy key file] ************************************************* task path: /tmp/tmpc84bdd0k/tests/tasks/cleanup_test.yml:7 changed: [/cache/fedora-33.qcow2] => {"changed": true, "path": "/tmp/.nbde_client_dev_encryption_key", "state": "absent"} TASK [Clean up dummy key file on managed host] ********************************* task path: /tmp/tmpc84bdd0k/tests/tasks/cleanup_test.yml:13 changed: [/cache/fedora-33.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/tmpc84bdd0k/handlers/main.yml:4 changed: [/cache/fedora-33.qcow2] => {"changed": true, "cmd": ["dracut", "-f"], "delta": "0:00:20.738539", "end": "2021-08-06 12:19:59.555890", "rc": 0, "start": "2021-08-06 12:19:38.817351", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/fedora-33.qcow2 : ok=43 changed=15 unreachable=0 failed=0 skipped=7 rescued=0 ignored=1 + cd /tmp/tmpc84bdd0k/tests; TEST_SUBJECTS=/cache/fedora-33.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_nbde_client-51-d478b30-fedora-33-m983wtuy/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmpc84bdd0k/_setup.yml /tmp/tmpc84bdd0k/tests/tests_simple_bind.yml ansible-playbook 2.9.23 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.9/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 3.9.6 (default, Jun 29 2021, 00:00:00) [GCC 11.1.1 20210531 (Red Hat 11.1.1-3)] 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/tmpc84bdd0k/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmpc84bdd0k/_setup.yml:5 ok: [/cache/fedora-33.qcow2] => { "groups": { "all": [ "/cache/fedora-33.qcow2" ], "localhost": [ "/cache/fedora-33.qcow2" ], "subjects": [ "/cache/fedora-33.qcow2" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmpc84bdd0k/_setup.yml:7 skipping: [/cache/fedora-33.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/fedora-33.qcow2 : ok=1 changed=0 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 PLAYBOOK: tests_simple_bind.yml ************************************************ 1 plays in /tmp/tmpc84bdd0k/tests/tests_simple_bind.yml PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpc84bdd0k/tests/tests_simple_bind.yml:2 ok: [/cache/fedora-33.qcow2] META: ran handlers TASK [Set up test environment] ************************************************* task path: /tmp/tmpc84bdd0k/tests/tests_simple_bind.yml:12 included: /tmp/tmpc84bdd0k/tests/tasks/setup_test.yml for /cache/fedora-33.qcow2 TASK [Include general tests variables] ***************************************** task path: /tmp/tmpc84bdd0k/tests/tasks/setup_test.yml:2 ok: [/cache/fedora-33.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/tmpc84bdd0k/tests/vars/main.yml"], "changed": false} TASK [Set version specific variables] ****************************************** task path: /tmp/tmpc84bdd0k/tests/tasks/setup_test.yml:5 ok: [/cache/fedora-33.qcow2] => {"ansible_facts": {"nbde_client_test_packages": ["cryptsetup"]}, "ansible_included_var_files": ["/tmp/tmpc84bdd0k/tests/vars/Fedora.yml"], "changed": false} TASK [Print all available facts] *********************************************** task path: /tmp/tmpc84bdd0k/tests/tasks/setup_test.yml:20 ok: [/cache/fedora-33.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.14.0-3.fc34", "cmdline": { "BOOT_IMAGE": "(hd0,msdos1)/boot/vmlinuz-5.13.6-100.fc33.x86_64", "console": "ttyS0,115200n8", "net.ifnames": "0", "no_timer_check": true, "ro": true, "root": "UUID=b2201488-ac7a-4269-b92f-a722977a99a3" }, "date_time": { "date": "2021-08-06", "day": "06", "epoch": "1628252413", "hour": "12", "iso8601": "2021-08-06T12:20:13Z", "iso8601_basic": "20210806T122013958586", "iso8601_basic_short": "20210806T122013", "iso8601_micro": "2021-08-06T12:20:13.958586Z", "minute": "20", "month": "08", "second": "13", "time": "12:20:13", "tz": "UTC", "tz_offset": "+0000", "weekday": "Friday", "weekday_number": "5", "weeknumber": "31", "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-08-06-12-20-00-00" ], "vda1": [ "b2201488-ac7a-4269-b92f-a722977a99a3" ] } }, "devices": { "sr0": { "holders": [], "host": "IDE interface: Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II]", "links": { "ids": [ "ata-QEMU_DVD-ROM_QM00003" ], "labels": [ "cidata" ], "masters": [], "uuids": [ "2021-08-06-12-20-00-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": "SCSI storage controller: Red Hat, Inc. Virtio block device", "links": { "ids": [], "labels": [], "masters": [], "uuids": [] }, "model": null, "partitions": { "vda1": { "holders": [], "links": { "ids": [], "labels": [], "masters": [], "uuids": [ "b2201488-ac7a-4269-b92f-a722977a99a3" ] }, "sectors": "8386560", "sectorsize": 512, "size": "4.00 GB", "start": "2048", "uuid": "b2201488-ac7a-4269-b92f-a722977a99a3" } }, "removable": "0", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "none", "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": "33", "distribution_release": "", "distribution_version": "33", "dns": { "nameservers": [ "127.0.0.53" ], "options": { "edns0": true, "trust-ad": true } }, "domain": "localdomain", "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 38558 22", "SSH_CONNECTION": "10.0.2.2 38558 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": "localhost.localdomain", "gather_subset": [ "all" ], "hostname": "localhost", "hostnqn": "", "interfaces": [ "eth0", "lo" ], "is_chroot": false, "iscsi_iqn": "", "kernel": "5.13.6-100.fc33.x86_64", "kernel_version": "#1 SMP Wed Jul 28 15:30:10 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": "c96a738a1f274626811e4a4a3631e82b", "memfree_mb": 1659, "memory_mb": { "nocache": { "free": 1813, "used": 152 }, "real": { "free": 1659, "total": 1965, "used": 306 }, "swap": { "cached": 0, "free": 0, "total": 0, "used": 0 } }, "memtotal_mb": 1965, "module_setup": true, "mounts": [ { "block_available": 797165, "block_size": 4096, "block_total": 1015472, "block_used": 218307, "device": "/dev/vda1", "fstype": "ext4", "inode_available": 236024, "inode_total": 262144, "inode_used": 26120, "mount": "/", "options": "rw,seclabel,relatime", "size_available": 3265187840, "size_total": 4159373312, "uuid": "b2201488-ac7a-4269-b92f-a722977a99a3" } ], "nodename": "localhost", "os_family": "RedHat", "pkg_mgr": "dnf", "proc_cmdline": { "BOOT_IMAGE": "(hd0,msdos1)/boot/vmlinuz-5.13.6-100.fc33.x86_64", "console": [ "tty1", "ttyS0,115200n8" ], "net.ifnames": "0", "no_timer_check": true, "ro": true, "root": "UUID=b2201488-ac7a-4269-b92f-a722977a99a3" }, "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-5.2", "python": { "executable": "/usr/bin/python3", "has_sslcontext": true, "type": "cpython", "version": { "major": 3, "micro": 6, "minor": 9, "releaselevel": "final", "serial": 0 }, "version_info": [ 3, 9, 6, "final", 0 ] }, "python_version": "3.9.6", "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": "AAAAB3NzaC1kc3MAAACBAKIluB26ANrKndpE2hMaBt0F7/jrvq0eT1QJbuQQxkccSqGkq3IC51xu9b/veCPEsjurJnTtHctQf37/WxvYCvpd2t+7Lki7W+QoB1xy/nGiHG95fmFUVx88y6qbqiSJTsxkpxdsR8Fmti20EP4hWpyNlesq00CvnwGd/L02vPgvAAAAFQCA/NNNW6t+3vAMhDOf0yblC/tdiQAAAIANrA9qLLQuoafJLvqMAFR6KEo3CDuqe2U1PDHcD8n3k5XT3OKHgguID68qqedH+zL0vX1sEQ3n9bVdblghURK40evUDB75DhGBMGqKbtX2w5yD5M8lNNZKibVi+VB+CVYfp0PWwmenPaf/73s7U7el7W/txLUDcMnu3IoMC4FzkwAAAIAs3LKFypO0dHIkI++1Mhalv7h+OmPY0onMgpOiyPC5JtQcsKkZ8iwHe9bfLcg84SNiqV/dxzMC1URNoako94/YXDexYV6IaOHpHbDeBzvEBP++/Q1to0nfQsOOZtxS557be3P/yOGeB5wecamFbgP23Tf7A+9GchfM/ULEhZOdfg==", "ssh_host_key_ecdsa_public": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEKQJADYk+VluVvCVGiLEWBNzTvvqo3x09VwdvubYJCBbo/PBISs4yhRbEkx38BFTIynUnsapW4v1Qr5phRX6MA=", "ssh_host_key_ed25519_public": "AAAAC3NzaC1lZDI1NTE5AAAAILpAznXYawsrSpuspyi7Cw4eU1xw1pQkJDS06dD1YgT4", "ssh_host_key_rsa_public": "AAAAB3NzaC1yc2EAAAADAQABAAABgQC9sttSGoAQPudolSIRsnkkmTQizsZETYIPBNY/7aVb/V7JWltqW4XEdBJwcvWBpmhQ04k62CcBBg4x7OfL6itkYuOKxECKQCbcMnX5Y5SCofQtrn6kM/BapGgeLQFQUvE9LmHfgztdOGr53AKOfH6XSZ2jALG/IWqh09s4DEJw4gsOwGWsxpoyMYvJxTjA4EAIpiPR3H0pGQXlvI79SLJ4kbF0m00NFJnZUUcuYDr9f/Su/sIrZAhukhs7aBHO1j0geI+DNIhZe5klfw8x8V787V1+0+V4Q/MvPN4oLcFX9vhCy39p+0/Qe5J9oz2PQ2GwD0Bc8P3g7pEdlmNMRn4pBK+RLpicYPaeYqDhHcoe9bEz66CmSz5ZFvuAIOUQN6gvyIJsE1APBnCNdwRm53JS3OZUPEyUWFt5gOUnfp+qDpH5suvinqF5NM9YuA2iPtzpMNVGWqDSHOSOCzXL+4/EPIYyW0SsXhIudSGIls6DyLjybUmEHy4m54Wu1utCX2E=", "swapfree_mb": 0, "swaptotal_mb": 0, "system": "Linux", "system_capabilities": [], "system_capabilities_enforced": "False", "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/tmpc84bdd0k/tests/tasks/setup_test.yml:24 changed: [/cache/fedora-33.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: cryptsetup-2.3.6-1.fc33.x86_64"]} TASK [Clone nbde_server role for the tests] ************************************ task path: /tmp/tmpc84bdd0k/tests/tasks/setup_test.yml:28 ok: [/cache/fedora-33.qcow2] => {"after": "c57d0b1f3384c525738fa26ba4bdca485e162567", "before": "c57d0b1f3384c525738fa26ba4bdca485e162567", "changed": false, "remote_url_changed": false} TASK [Deploy NBDE server for testing] ****************************************** task path: /tmp/tmpc84bdd0k/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-33.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-33.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-33.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: jose-11-1.fc33.x86_64", "Installed: libjose-11-1.fc33.x86_64", "Installed: http-parser-2.9.4-3.fc33.x86_64", "Installed: tang-10-2.fc33.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-33.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-33.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-33.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-33.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", "CanFreeze": "no", "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", "CoredumpFilter": "0x33", "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", "FreezerState": "running", "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": "7731", "LimitNPROCSoft": "7731", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "7731", "LimitSIGPENDINGSoft": "7731", "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", "PassPacketInfo": "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", "RootHashSignature": "", "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": "2319", "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/tmpc84bdd0k/tests/tasks/setup_test.yml:39 ok: [/cache/fedora-33.qcow2] => {"changed": false, "cmd": ["fallocate", "-l64m", "/tmp/.nbde_client_dev_test"], "delta": "0:00:00.013129", "end": "2021-08-06 12:21:28.587140", "rc": 0, "start": "2021-08-06 12:21:28.574011", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Format test device as LUKS] ********************************************** task path: /tmp/tmpc84bdd0k/tests/tasks/setup_test.yml:43 ok: [/cache/fedora-33.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.129517", "end": "2021-08-06 12:21:29.057429", "rc": 0, "start": "2021-08-06 12:21:28.927912", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Create key file for test device] ***************************************** task path: /tmp/tmpc84bdd0k/tests/tasks/setup_test.yml:51 ok: [/cache/fedora-33.qcow2] => {"changed": false, "cmd": "echo -n test-password-here > /tmp/.nbde_client_dev_encryption_key\n", "delta": "0:00:00.004234", "end": "2021-08-06 12:21:29.465964", "rc": 0, "start": "2021-08-06 12:21:29.461730", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Use nbde_client role] **************************************************** task path: /tmp/tmpc84bdd0k/tests/tests_simple_bind.yml:17 TASK [linux-system-roles.nbde_client : Set version specific variables] ********* task path: /tmp/tmpc84bdd0k/tasks/main.yml:4 ok: [/cache/fedora-33.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/tmpc84bdd0k/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.nbde_client : Include the appropriate provider tasks] *** task path: /tmp/tmpc84bdd0k/tasks/main.yml:17 included: /tmp/tmpc84bdd0k/tasks/main-clevis.yml for /cache/fedora-33.qcow2 TASK [linux-system-roles.nbde_client : Ensure required packages are installed] *** task path: /tmp/tmpc84bdd0k/tasks/main-clevis.yml:2 changed: [/cache/fedora-33.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: oniguruma-6.9.6-1.fc33.x86_64", "Installed: jq-1.6-5.fc33.x86_64", "Installed: luksmeta-9-9.fc33.x86_64", "Installed: dracut-network-055-3.fc33.x86_64", "Installed: tpm2-tools-4.3.2-1.fc33.x86_64", "Installed: libluksmeta-9-9.fc33.x86_64", "Installed: clevis-18-1.fc33.x86_64", "Installed: clevis-dracut-18-1.fc33.x86_64", "Installed: clevis-luks-18-1.fc33.x86_64", "Installed: clevis-pin-tpm2-0.2.0-1.fc33.x86_64", "Installed: clevis-systemd-18-1.fc33.x86_64"]} TASK [linux-system-roles.nbde_client : Check whether devices are at the desired state] *** task path: /tmp/tmpc84bdd0k/tasks/main-clevis.yml:7 changed: [/cache/fedora-33.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/tmpc84bdd0k/tasks/main-clevis.yml:17 changed: [/cache/fedora-33.qcow2] => {"changed": true, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/tmp/ansible.9_n204adnbde_client_encryption_keys", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 40, "state": "directory", "uid": 0} TASK [linux-system-roles.nbde_client : Ensure we transfer key files] *********** task path: /tmp/tmpc84bdd0k/tasks/main-clevis.yml:25 skipping: [/cache/fedora-33.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/tmpc84bdd0k/tasks/main-clevis.yml:37 NOTIFIED HANDLER linux-system-roles.nbde_client : nbde_client update initramfs for /cache/fedora-33.qcow2 changed: [/cache/fedora-33.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/tmpc84bdd0k/tasks/main-clevis.yml:47 changed: [/cache/fedora-33.qcow2] => {"changed": true, "path": "/tmp/ansible.9_n204adnbde_client_encryption_keys", "state": "absent"} TASK [Attempt to unlock device] ************************************************ task path: /tmp/tmpc84bdd0k/tests/tests_simple_bind.yml:21 included: /tmp/tmpc84bdd0k/tests/tasks/verify_unlock_device.yml for /cache/fedora-33.qcow2 TASK [Verify we can unlock the device] ***************************************** task path: /tmp/tmpc84bdd0k/tests/tasks/verify_unlock_device.yml:2 ok: [/cache/fedora-33.qcow2] => {"changed": false, "cmd": ["clevis", "luks", "unlock", "-d", "/tmp/.nbde_client_dev_test", "-n", "nbde_client_unlocked"], "delta": "0:00:04.053870", "end": "2021-08-06 12:21:45.542323", "rc": 0, "start": "2021-08-06 12:21:41.488453", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Close unlocked device] *************************************************** task path: /tmp/tmpc84bdd0k/tests/tasks/verify_unlock_device.yml:10 ok: [/cache/fedora-33.qcow2] => {"changed": false, "cmd": ["cryptsetup", "close", "nbde_client_unlocked"], "delta": "0:00:00.022507", "end": "2021-08-06 12:21:45.902786", "rc": 0, "start": "2021-08-06 12:21:45.880279", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Make sure the attempt to unlock succeeded] ******************************* task path: /tmp/tmpc84bdd0k/tests/tests_simple_bind.yml:24 ok: [/cache/fedora-33.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Assert idempotency] ****************************************************** task path: /tmp/tmpc84bdd0k/tests/tests_simple_bind.yml:30 included: /tmp/tmpc84bdd0k/tests/tasks/verify_idempotency.yml for /cache/fedora-33.qcow2 TASK [Use nbde_client role - idempotency check] ******************************** task path: /tmp/tmpc84bdd0k/tests/tasks/verify_idempotency.yml:2 TASK [linux-system-roles.nbde_client : Set version specific variables] ********* task path: /tmp/tmpc84bdd0k/tasks/main.yml:4 ok: [/cache/fedora-33.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/tmpc84bdd0k/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.nbde_client : Include the appropriate provider tasks] *** task path: /tmp/tmpc84bdd0k/tasks/main.yml:17 included: /tmp/tmpc84bdd0k/tasks/main-clevis.yml for /cache/fedora-33.qcow2 TASK [linux-system-roles.nbde_client : Ensure required packages are installed] *** task path: /tmp/tmpc84bdd0k/tasks/main-clevis.yml:2 ok: [/cache/fedora-33.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/tmpc84bdd0k/tasks/main-clevis.yml:7 ok: [/cache/fedora-33.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/tmpc84bdd0k/tasks/main-clevis.yml:17 skipping: [/cache/fedora-33.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.nbde_client : Ensure we transfer key files] *********** task path: /tmp/tmpc84bdd0k/tasks/main-clevis.yml:25 skipping: [/cache/fedora-33.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/tmpc84bdd0k/tasks/main-clevis.yml:37 skipping: [/cache/fedora-33.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/tmpc84bdd0k/tasks/main-clevis.yml:47 skipping: [/cache/fedora-33.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify idempotency of clevis operations] ********************************* task path: /tmp/tmpc84bdd0k/tests/tasks/verify_idempotency.yml:6 ok: [/cache/fedora-33.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up test environment] *********************************************** task path: /tmp/tmpc84bdd0k/tests/tests_simple_bind.yml:34 included: /tmp/tmpc84bdd0k/tests/tasks/cleanup_test.yml for /cache/fedora-33.qcow2 TASK [Clean up dummy testing device] ******************************************* task path: /tmp/tmpc84bdd0k/tests/tasks/cleanup_test.yml:2 changed: [/cache/fedora-33.qcow2] => {"changed": true, "path": "/tmp/.nbde_client_dev_test", "state": "absent"} TASK [Clean up dummy key file] ************************************************* task path: /tmp/tmpc84bdd0k/tests/tasks/cleanup_test.yml:7 changed: [/cache/fedora-33.qcow2] => {"changed": true, "path": "/tmp/.nbde_client_dev_encryption_key", "state": "absent"} TASK [Clean up dummy key file on managed host] ********************************* task path: /tmp/tmpc84bdd0k/tests/tasks/cleanup_test.yml:13 ok: [/cache/fedora-33.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/tmpc84bdd0k/handlers/main.yml:4 changed: [/cache/fedora-33.qcow2] => {"changed": true, "cmd": ["dracut", "-f"], "delta": "0:00:21.259165", "end": "2021-08-06 12:22:12.794494", "rc": 0, "start": "2021-08-06 12:21:51.535329", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/fedora-33.qcow2 : ok=38 changed=12 unreachable=0 failed=0 skipped=8 rescued=0 ignored=0 + cd /tmp/tmpc84bdd0k/tests; TEST_SUBJECTS=/cache/fedora-33.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_nbde_client-51-d478b30-fedora-33-m983wtuy/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmpc84bdd0k/_setup.yml /tmp/tmpc84bdd0k/tests/tests_simple_bind_keyfile.yml ansible-playbook 2.9.23 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.9/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 3.9.6 (default, Jun 29 2021, 00:00:00) [GCC 11.1.1 20210531 (Red Hat 11.1.1-3)] 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/tmpc84bdd0k/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmpc84bdd0k/_setup.yml:5 ok: [/cache/fedora-33.qcow2] => { "groups": { "all": [ "/cache/fedora-33.qcow2" ], "localhost": [ "/cache/fedora-33.qcow2" ], "subjects": [ "/cache/fedora-33.qcow2" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmpc84bdd0k/_setup.yml:7 skipping: [/cache/fedora-33.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/fedora-33.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/tmpc84bdd0k/tests/tests_simple_bind_keyfile.yml PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpc84bdd0k/tests/tests_simple_bind_keyfile.yml:2 ok: [/cache/fedora-33.qcow2] META: ran handlers TASK [Set up test environment] ************************************************* task path: /tmp/tmpc84bdd0k/tests/tests_simple_bind_keyfile.yml:12 included: /tmp/tmpc84bdd0k/tests/tasks/setup_test.yml for /cache/fedora-33.qcow2 TASK [Include general tests variables] ***************************************** task path: /tmp/tmpc84bdd0k/tests/tasks/setup_test.yml:2 ok: [/cache/fedora-33.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/tmpc84bdd0k/tests/vars/main.yml"], "changed": false} TASK [Set version specific variables] ****************************************** task path: /tmp/tmpc84bdd0k/tests/tasks/setup_test.yml:5 ok: [/cache/fedora-33.qcow2] => {"ansible_facts": {"nbde_client_test_packages": ["cryptsetup"]}, "ansible_included_var_files": ["/tmp/tmpc84bdd0k/tests/vars/Fedora.yml"], "changed": false} TASK [Print all available facts] *********************************************** task path: /tmp/tmpc84bdd0k/tests/tasks/setup_test.yml:20 ok: [/cache/fedora-33.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.14.0-3.fc34", "cmdline": { "BOOT_IMAGE": "(hd0,msdos1)/boot/vmlinuz-5.13.6-100.fc33.x86_64", "console": "ttyS0,115200n8", "net.ifnames": "0", "no_timer_check": true, "ro": true, "root": "UUID=b2201488-ac7a-4269-b92f-a722977a99a3" }, "date_time": { "date": "2021-08-06", "day": "06", "epoch": "1628252546", "hour": "12", "iso8601": "2021-08-06T12:22:26Z", "iso8601_basic": "20210806T122226446879", "iso8601_basic_short": "20210806T122226", "iso8601_micro": "2021-08-06T12:22:26.446879Z", "minute": "22", "month": "08", "second": "26", "time": "12:22:26", "tz": "UTC", "tz_offset": "+0000", "weekday": "Friday", "weekday_number": "5", "weeknumber": "31", "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-08-06-12-22-13-00" ], "vda1": [ "b2201488-ac7a-4269-b92f-a722977a99a3" ] } }, "devices": { "sr0": { "holders": [], "host": "IDE interface: Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II]", "links": { "ids": [ "ata-QEMU_DVD-ROM_QM00003" ], "labels": [ "cidata" ], "masters": [], "uuids": [ "2021-08-06-12-22-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": "SCSI storage controller: Red Hat, Inc. Virtio block device", "links": { "ids": [], "labels": [], "masters": [], "uuids": [] }, "model": null, "partitions": { "vda1": { "holders": [], "links": { "ids": [], "labels": [], "masters": [], "uuids": [ "b2201488-ac7a-4269-b92f-a722977a99a3" ] }, "sectors": "8386560", "sectorsize": 512, "size": "4.00 GB", "start": "2048", "uuid": "b2201488-ac7a-4269-b92f-a722977a99a3" } }, "removable": "0", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "none", "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": "33", "distribution_release": "", "distribution_version": "33", "dns": { "nameservers": [ "127.0.0.53" ], "options": { "edns0": true, "trust-ad": true } }, "domain": "localdomain", "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 40596 22", "SSH_CONNECTION": "10.0.2.2 40596 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": "localhost.localdomain", "gather_subset": [ "all" ], "hostname": "localhost", "hostnqn": "", "interfaces": [ "eth0", "lo" ], "is_chroot": false, "iscsi_iqn": "", "kernel": "5.13.6-100.fc33.x86_64", "kernel_version": "#1 SMP Wed Jul 28 15:30:10 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": "848ca8a4a922474e852fa92798208b0a", "memfree_mb": 1657, "memory_mb": { "nocache": { "free": 1811, "used": 154 }, "real": { "free": 1657, "total": 1965, "used": 308 }, "swap": { "cached": 0, "free": 0, "total": 0, "used": 0 } }, "memtotal_mb": 1965, "module_setup": true, "mounts": [ { "block_available": 797164, "block_size": 4096, "block_total": 1015472, "block_used": 218308, "device": "/dev/vda1", "fstype": "ext4", "inode_available": 236024, "inode_total": 262144, "inode_used": 26120, "mount": "/", "options": "rw,seclabel,relatime", "size_available": 3265183744, "size_total": 4159373312, "uuid": "b2201488-ac7a-4269-b92f-a722977a99a3" } ], "nodename": "localhost", "os_family": "RedHat", "pkg_mgr": "dnf", "proc_cmdline": { "BOOT_IMAGE": "(hd0,msdos1)/boot/vmlinuz-5.13.6-100.fc33.x86_64", "console": [ "tty1", "ttyS0,115200n8" ], "net.ifnames": "0", "no_timer_check": true, "ro": true, "root": "UUID=b2201488-ac7a-4269-b92f-a722977a99a3" }, "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-5.2", "python": { "executable": "/usr/bin/python3", "has_sslcontext": true, "type": "cpython", "version": { "major": 3, "micro": 6, "minor": 9, "releaselevel": "final", "serial": 0 }, "version_info": [ 3, 9, 6, "final", 0 ] }, "python_version": "3.9.6", "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": "AAAAB3NzaC1kc3MAAACBAJObhxLKxaocCnW6A3aaC8dpSXYw3SPgyT6KsfqfetlBEZVn5fwCIvgLgtSiVvrMDzCJHByAr5wcv1f586TYJtZXOv8Rf5lsKOFDZeDI7JRI7G//6FYFMda2oGgyIPTutxTzY+O973ActDxbkq4eHGUv5pYySfOfXKCyb+UpGqiLAAAAFQDgpXy6PDwptsi/laZkAp/cGhI2yQAAAIAjZ++Oba4xm6kdG3xZrl5ROmGSMIuNbyje7sQRk2oHxQkagBMCGgUr+ayoTI4iw/38ZrIgD+nAWjCjY6HLrdZueSGrrrCpuZOsh2E4G7y1R0h77YSJ6gN/rXAWtCpYAS1J6hBDNFsPL7WqopJRd7XkPdndwWhDo7WJPKIOBDi/fgAAAIEAgFJhYD3BuRly3Xi8agkneagOFxG339oP66WRmayzmTM/O7A3+RvwSP0Y2UsR84pXgEZz0hhgGeL/IDJDsL+CHp61+p8hF+9Cj+VLAvxk+kJWidHCiAeOZuBcbBKZZgg2j/cnuQvq5VX/HPtL2v1EiNJjz+4JsZl98KXUiBu42Ak=", "ssh_host_key_ecdsa_public": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBM4MQCMuSiA+EmB+BCXWzDxBbPgFd8CJKISbXG0/EuyX9GtytZx+Am1qs0aLFrchG5ri/FzqIDyenaU8fw/K5/8=", "ssh_host_key_ed25519_public": "AAAAC3NzaC1lZDI1NTE5AAAAIO1KZfDmq+S42+xTGyyHyrv1jp1y5EiDD+RmLiHy1qSx", "ssh_host_key_rsa_public": "AAAAB3NzaC1yc2EAAAADAQABAAABgQDabz77emKQ2xV2dQn6RH9lx0PF/Lbya4tXyi+cyRu3S5rdMMmdJU/oO0BvG++mj+7JphDayrnVCSQRpiE7w9fMpvw2nx3dN7aRT5eSLIhh9Sibx+ebxBN0bA61CzpI8eje5WTwkxaF8eYHz2lVDjVeFVLmXICB7qlq5lZtiSEk+rUulPaHlZ3H2XBSp/zsx3jMle3dBjjMn2xVRICZSTVBLvHm0Vhd8SBOs45OmFAAVxI9hWKs+s6v/h5wOkI1/QU63UMHZnRf/Gg/0c6jl9vtF3ONheT0GBTLw4gMxyiAhKFTjOwuBh2Y2OJGVIDJvtb4T7//etpFby8V3xz5UqYtgcZLXTZrcISss9lRMDVmGU1Y2IadufVQnlO7fNqqSsMBhFScN0H8r6xlI8VsB2KWXmWzdkj+645Gmc0lOVMksAq1uOzPvNw1Q4JchZiz0DhBUaqX6bLYXsIgryZwl27UjdnWEufvU5D526laEJZ2msYGZWceqM93WtbpnSo0DkM=", "swapfree_mb": 0, "swaptotal_mb": 0, "system": "Linux", "system_capabilities": [], "system_capabilities_enforced": "False", "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/tmpc84bdd0k/tests/tasks/setup_test.yml:24 changed: [/cache/fedora-33.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: cryptsetup-2.3.6-1.fc33.x86_64"]} TASK [Clone nbde_server role for the tests] ************************************ task path: /tmp/tmpc84bdd0k/tests/tasks/setup_test.yml:28 ok: [/cache/fedora-33.qcow2] => {"after": "c57d0b1f3384c525738fa26ba4bdca485e162567", "before": "c57d0b1f3384c525738fa26ba4bdca485e162567", "changed": false, "remote_url_changed": false} TASK [Deploy NBDE server for testing] ****************************************** task path: /tmp/tmpc84bdd0k/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-33.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-33.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-33.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: jose-11-1.fc33.x86_64", "Installed: libjose-11-1.fc33.x86_64", "Installed: http-parser-2.9.4-3.fc33.x86_64", "Installed: tang-10-2.fc33.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-33.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-33.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-33.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-33.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", "CanFreeze": "no", "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", "CoredumpFilter": "0x33", "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", "FreezerState": "running", "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": "7731", "LimitNPROCSoft": "7731", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "7731", "LimitSIGPENDINGSoft": "7731", "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", "PassPacketInfo": "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", "RootHashSignature": "", "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": "2319", "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/tmpc84bdd0k/tests/tasks/setup_test.yml:39 ok: [/cache/fedora-33.qcow2] => {"changed": false, "cmd": ["fallocate", "-l64m", "/tmp/.nbde_client_dev_test"], "delta": "0:00:00.012684", "end": "2021-08-06 12:23:42.542883", "rc": 0, "start": "2021-08-06 12:23:42.530199", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Format test device as LUKS] ********************************************** task path: /tmp/tmpc84bdd0k/tests/tasks/setup_test.yml:43 ok: [/cache/fedora-33.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.130218", "end": "2021-08-06 12:23:43.022255", "rc": 0, "start": "2021-08-06 12:23:42.892037", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Create key file for test device] ***************************************** task path: /tmp/tmpc84bdd0k/tests/tasks/setup_test.yml:51 ok: [/cache/fedora-33.qcow2] => {"changed": false, "cmd": "echo -n test-password-here > /tmp/.nbde_client_dev_encryption_key\n", "delta": "0:00:00.003793", "end": "2021-08-06 12:23:43.771612", "rc": 0, "start": "2021-08-06 12:23:43.767819", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Use nbde_client role] **************************************************** task path: /tmp/tmpc84bdd0k/tests/tests_simple_bind_keyfile.yml:17 TASK [linux-system-roles.nbde_client : Set version specific variables] ********* task path: /tmp/tmpc84bdd0k/tasks/main.yml:4 ok: [/cache/fedora-33.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/tmpc84bdd0k/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.nbde_client : Include the appropriate provider tasks] *** task path: /tmp/tmpc84bdd0k/tasks/main.yml:17 included: /tmp/tmpc84bdd0k/tasks/main-clevis.yml for /cache/fedora-33.qcow2 TASK [linux-system-roles.nbde_client : Ensure required packages are installed] *** task path: /tmp/tmpc84bdd0k/tasks/main-clevis.yml:2 changed: [/cache/fedora-33.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: oniguruma-6.9.6-1.fc33.x86_64", "Installed: jq-1.6-5.fc33.x86_64", "Installed: luksmeta-9-9.fc33.x86_64", "Installed: dracut-network-055-3.fc33.x86_64", "Installed: tpm2-tools-4.3.2-1.fc33.x86_64", "Installed: libluksmeta-9-9.fc33.x86_64", "Installed: clevis-18-1.fc33.x86_64", "Installed: clevis-dracut-18-1.fc33.x86_64", "Installed: clevis-luks-18-1.fc33.x86_64", "Installed: clevis-pin-tpm2-0.2.0-1.fc33.x86_64", "Installed: clevis-systemd-18-1.fc33.x86_64"]} TASK [linux-system-roles.nbde_client : Check whether devices are at the desired state] *** task path: /tmp/tmpc84bdd0k/tasks/main-clevis.yml:7 changed: [/cache/fedora-33.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/tmpc84bdd0k/tasks/main-clevis.yml:17 changed: [/cache/fedora-33.qcow2] => {"changed": true, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/tmp/ansible.glqshp5vnbde_client_encryption_keys", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 40, "state": "directory", "uid": 0} TASK [linux-system-roles.nbde_client : Ensure we transfer key files] *********** task path: /tmp/tmpc84bdd0k/tasks/main-clevis.yml:25 changed: [/cache/fedora-33.qcow2] => (item=/tmp/.nbde_client_dev_encryption_key) => {"ansible_loop_var": "item", "changed": true, "checksum": "ddcbbd80371add8b55e5288b1278a7ead06c422e", "dest": "/tmp/ansible.glqshp5vnbde_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-1628252632.0633514-123825-54771972633804/source", "state": "file", "uid": 0} TASK [linux-system-roles.nbde_client : Perform clevis operations] ************** task path: /tmp/tmpc84bdd0k/tasks/main-clevis.yml:37 NOTIFIED HANDLER linux-system-roles.nbde_client : nbde_client update initramfs for /cache/fedora-33.qcow2 changed: [/cache/fedora-33.qcow2] => {"changed": true, "original_bindings": [{"device": "/tmp/.nbde_client_dev_test", "encryption_key": "/tmp/ansible.glqshp5vnbde_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/tmpc84bdd0k/tasks/main-clevis.yml:47 changed: [/cache/fedora-33.qcow2] => {"changed": true, "path": "/tmp/ansible.glqshp5vnbde_client_encryption_keys", "state": "absent"} TASK [Attempt to unlock device] ************************************************ task path: /tmp/tmpc84bdd0k/tests/tests_simple_bind_keyfile.yml:21 included: /tmp/tmpc84bdd0k/tests/tasks/verify_unlock_device.yml for /cache/fedora-33.qcow2 TASK [Verify we can unlock the device] ***************************************** task path: /tmp/tmpc84bdd0k/tests/tasks/verify_unlock_device.yml:2 ok: [/cache/fedora-33.qcow2] => {"changed": false, "cmd": ["clevis", "luks", "unlock", "-d", "/tmp/.nbde_client_dev_test", "-n", "nbde_client_unlocked"], "delta": "0:00:04.365364", "end": "2021-08-06 12:24:05.834972", "rc": 0, "start": "2021-08-06 12:24:01.469608", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Close unlocked device] *************************************************** task path: /tmp/tmpc84bdd0k/tests/tasks/verify_unlock_device.yml:10 ok: [/cache/fedora-33.qcow2] => {"changed": false, "cmd": ["cryptsetup", "close", "nbde_client_unlocked"], "delta": "0:00:00.025371", "end": "2021-08-06 12:24:06.221664", "rc": 0, "start": "2021-08-06 12:24:06.196293", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Make sure the attempt to unlock succeeded] ******************************* task path: /tmp/tmpc84bdd0k/tests/tests_simple_bind_keyfile.yml:24 ok: [/cache/fedora-33.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Assert idempotency] ****************************************************** task path: /tmp/tmpc84bdd0k/tests/tests_simple_bind_keyfile.yml:30 included: /tmp/tmpc84bdd0k/tests/tasks/verify_idempotency.yml for /cache/fedora-33.qcow2 TASK [Use nbde_client role - idempotency check] ******************************** task path: /tmp/tmpc84bdd0k/tests/tasks/verify_idempotency.yml:2 TASK [linux-system-roles.nbde_client : Set version specific variables] ********* task path: /tmp/tmpc84bdd0k/tasks/main.yml:4 ok: [/cache/fedora-33.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/tmpc84bdd0k/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.nbde_client : Include the appropriate provider tasks] *** task path: /tmp/tmpc84bdd0k/tasks/main.yml:17 included: /tmp/tmpc84bdd0k/tasks/main-clevis.yml for /cache/fedora-33.qcow2 TASK [linux-system-roles.nbde_client : Ensure required packages are installed] *** task path: /tmp/tmpc84bdd0k/tasks/main-clevis.yml:2 ok: [/cache/fedora-33.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/tmpc84bdd0k/tasks/main-clevis.yml:7 ok: [/cache/fedora-33.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/tmpc84bdd0k/tasks/main-clevis.yml:17 skipping: [/cache/fedora-33.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.nbde_client : Ensure we transfer key files] *********** task path: /tmp/tmpc84bdd0k/tasks/main-clevis.yml:25 skipping: [/cache/fedora-33.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/tmpc84bdd0k/tasks/main-clevis.yml:37 skipping: [/cache/fedora-33.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/tmpc84bdd0k/tasks/main-clevis.yml:47 skipping: [/cache/fedora-33.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify idempotency of clevis operations] ********************************* task path: /tmp/tmpc84bdd0k/tests/tasks/verify_idempotency.yml:6 ok: [/cache/fedora-33.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up test environment] *********************************************** task path: /tmp/tmpc84bdd0k/tests/tests_simple_bind_keyfile.yml:34 included: /tmp/tmpc84bdd0k/tests/tasks/cleanup_test.yml for /cache/fedora-33.qcow2 TASK [Clean up dummy testing device] ******************************************* task path: /tmp/tmpc84bdd0k/tests/tasks/cleanup_test.yml:2 changed: [/cache/fedora-33.qcow2] => {"changed": true, "path": "/tmp/.nbde_client_dev_test", "state": "absent"} TASK [Clean up dummy key file] ************************************************* task path: /tmp/tmpc84bdd0k/tests/tasks/cleanup_test.yml:7 changed: [/cache/fedora-33.qcow2] => {"changed": true, "path": "/tmp/.nbde_client_dev_encryption_key", "state": "absent"} TASK [Clean up dummy key file on managed host] ********************************* task path: /tmp/tmpc84bdd0k/tests/tasks/cleanup_test.yml:13 ok: [/cache/fedora-33.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/tmpc84bdd0k/handlers/main.yml:4 changed: [/cache/fedora-33.qcow2] => {"changed": true, "cmd": ["dracut", "-f"], "delta": "0:00:21.038934", "end": "2021-08-06 12:24:33.699422", "rc": 0, "start": "2021-08-06 12:24:12.660488", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/fedora-33.qcow2 : ok=39 changed=13 unreachable=0 failed=0 skipped=7 rescued=0 ignored=0 + cd /tmp/tmpc84bdd0k/tests; TEST_SUBJECTS=/cache/fedora-33.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_nbde_client-51-d478b30-fedora-33-m983wtuy/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmpc84bdd0k/_setup.yml /tmp/tmpc84bdd0k/tests/tests_simple_bind_unbind.yml ansible-playbook 2.9.23 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.9/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 3.9.6 (default, Jun 29 2021, 00:00:00) [GCC 11.1.1 20210531 (Red Hat 11.1.1-3)] 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/tmpc84bdd0k/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmpc84bdd0k/_setup.yml:5 ok: [/cache/fedora-33.qcow2] => { "groups": { "all": [ "/cache/fedora-33.qcow2" ], "localhost": [ "/cache/fedora-33.qcow2" ], "subjects": [ "/cache/fedora-33.qcow2" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmpc84bdd0k/_setup.yml:7 skipping: [/cache/fedora-33.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/fedora-33.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/tmpc84bdd0k/tests/tests_simple_bind_unbind.yml PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpc84bdd0k/tests/tests_simple_bind_unbind.yml:2 ok: [/cache/fedora-33.qcow2] META: ran handlers TASK [Set up test environment] ************************************************* task path: /tmp/tmpc84bdd0k/tests/tests_simple_bind_unbind.yml:15 included: /tmp/tmpc84bdd0k/tests/tasks/setup_test.yml for /cache/fedora-33.qcow2 TASK [Include general tests variables] ***************************************** task path: /tmp/tmpc84bdd0k/tests/tasks/setup_test.yml:2 ok: [/cache/fedora-33.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/tmpc84bdd0k/tests/vars/main.yml"], "changed": false} TASK [Set version specific variables] ****************************************** task path: /tmp/tmpc84bdd0k/tests/tasks/setup_test.yml:5 ok: [/cache/fedora-33.qcow2] => {"ansible_facts": {"nbde_client_test_packages": ["cryptsetup"]}, "ansible_included_var_files": ["/tmp/tmpc84bdd0k/tests/vars/Fedora.yml"], "changed": false} TASK [Print all available facts] *********************************************** task path: /tmp/tmpc84bdd0k/tests/tasks/setup_test.yml:20 ok: [/cache/fedora-33.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.14.0-3.fc34", "cmdline": { "BOOT_IMAGE": "(hd0,msdos1)/boot/vmlinuz-5.13.6-100.fc33.x86_64", "console": "ttyS0,115200n8", "net.ifnames": "0", "no_timer_check": true, "ro": true, "root": "UUID=b2201488-ac7a-4269-b92f-a722977a99a3" }, "date_time": { "date": "2021-08-06", "day": "06", "epoch": "1628252687", "hour": "12", "iso8601": "2021-08-06T12:24:47Z", "iso8601_basic": "20210806T122447902740", "iso8601_basic_short": "20210806T122447", "iso8601_micro": "2021-08-06T12:24:47.902740Z", "minute": "24", "month": "08", "second": "47", "time": "12:24:47", "tz": "UTC", "tz_offset": "+0000", "weekday": "Friday", "weekday_number": "5", "weeknumber": "31", "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-08-06-12-24-34-00" ], "vda1": [ "b2201488-ac7a-4269-b92f-a722977a99a3" ] } }, "devices": { "sr0": { "holders": [], "host": "IDE interface: Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II]", "links": { "ids": [ "ata-QEMU_DVD-ROM_QM00003" ], "labels": [ "cidata" ], "masters": [], "uuids": [ "2021-08-06-12-24-34-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": "SCSI storage controller: Red Hat, Inc. Virtio block device", "links": { "ids": [], "labels": [], "masters": [], "uuids": [] }, "model": null, "partitions": { "vda1": { "holders": [], "links": { "ids": [], "labels": [], "masters": [], "uuids": [ "b2201488-ac7a-4269-b92f-a722977a99a3" ] }, "sectors": "8386560", "sectorsize": 512, "size": "4.00 GB", "start": "2048", "uuid": "b2201488-ac7a-4269-b92f-a722977a99a3" } }, "removable": "0", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "none", "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": "33", "distribution_release": "", "distribution_version": "33", "dns": { "nameservers": [ "127.0.0.53" ], "options": { "edns0": true, "trust-ad": true } }, "domain": "localdomain", "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 37098 22", "SSH_CONNECTION": "10.0.2.2 37098 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": "localhost.localdomain", "gather_subset": [ "all" ], "hostname": "localhost", "hostnqn": "", "interfaces": [ "eth0", "lo" ], "is_chroot": false, "iscsi_iqn": "", "kernel": "5.13.6-100.fc33.x86_64", "kernel_version": "#1 SMP Wed Jul 28 15:30:10 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": "823e3908c2954a5493c438024a143644", "memfree_mb": 1659, "memory_mb": { "nocache": { "free": 1813, "used": 152 }, "real": { "free": 1659, "total": 1965, "used": 306 }, "swap": { "cached": 0, "free": 0, "total": 0, "used": 0 } }, "memtotal_mb": 1965, "module_setup": true, "mounts": [ { "block_available": 797164, "block_size": 4096, "block_total": 1015472, "block_used": 218308, "device": "/dev/vda1", "fstype": "ext4", "inode_available": 236024, "inode_total": 262144, "inode_used": 26120, "mount": "/", "options": "rw,seclabel,relatime", "size_available": 3265183744, "size_total": 4159373312, "uuid": "b2201488-ac7a-4269-b92f-a722977a99a3" } ], "nodename": "localhost", "os_family": "RedHat", "pkg_mgr": "dnf", "proc_cmdline": { "BOOT_IMAGE": "(hd0,msdos1)/boot/vmlinuz-5.13.6-100.fc33.x86_64", "console": [ "tty1", "ttyS0,115200n8" ], "net.ifnames": "0", "no_timer_check": true, "ro": true, "root": "UUID=b2201488-ac7a-4269-b92f-a722977a99a3" }, "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-5.2", "python": { "executable": "/usr/bin/python3", "has_sslcontext": true, "type": "cpython", "version": { "major": 3, "micro": 6, "minor": 9, "releaselevel": "final", "serial": 0 }, "version_info": [ 3, 9, 6, "final", 0 ] }, "python_version": "3.9.6", "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": "AAAAB3NzaC1kc3MAAACBAOUNjYjxPHAMzOZF1h62Uofv1mKQueRloentxN3dNIJdT7NsjFa7oLKxKhnEmpyEFvZMsZy9ssqb2gjPTrNERPo9x849IysSJzpOiNTq0CPrsEKUOxIB//UcxDX4negtMkHR9rZS68WDQrnK9KdbUdyqOhqqDyzSzV3o9ELgXZV1AAAAFQCkqLupxduwodt4qqs5lkvb2ARDYwAAAIBnlqxL+YyBB/5ht/tLoIdTufOw0k+wzz+t6PpVd8aRUWD81tyBQMQ9U+Kn8ajc3C3Gx6OD4jnxV8ZvS+ad27tqVLR5aMMMXGYwrEfV8lC3tpL9KxN6Jzh8yX6q+tiy36Os1XIoIAzUM2y2BU8hBlCdWSJfkamGbgW/iWRPxJWbMAAAAIBLTjL0xeg0wULaD5WYGQMucR5+QNCKWIKfLMQNpU2GYEfANXDRNw43uEfVjSB0ntqaucGOap0wOcOukvIoLta7i0TTC0PNlgX94A44dUhCf6zkVwVF/Vf7VzAr+busrCy7S185Kcz97q8effdL4XKtqobMvcn/e9fyM8tyFgKBdA==", "ssh_host_key_ecdsa_public": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBPdniGYD9Pt8UUmqhmQidCkcXwCHzTZdVkNGBidzNHjExFEuLzJLLs++390BXWDKDLGJrO0X+m8XkPBE3rTSFvI=", "ssh_host_key_ed25519_public": "AAAAC3NzaC1lZDI1NTE5AAAAIDZsHP16it08dCEVf8ixL/g7ghjc0fd64aP+P11ThVKV", "ssh_host_key_rsa_public": "AAAAB3NzaC1yc2EAAAADAQABAAABgQC+qekpRP5AGi28o+NflQ9Z7vKE3ugVDmwpy3EA58RexkuVamEpIZFAK7o+QppHuQHlN78MFcHP3TAN9/6sEcN9T5yqiR2P3KQrxSxKF0l/jH+xT0z2ISj6mILypK3y0foztKXx3LSV88xAV8UnT/YGfCP0c2LySfD42diGuDZEI8L9yTQWMcb/8VtSiekhARw2fxMfMVRN/khYhQlF+rUNCnNoA31K3B4MNZDYPsnm9cPcJbHY+9kQJTMyceBC2m04krbleSzPQ2elfB0kfT42383AMzaTDUNJ75vrDE5maTj85WVbpDg2KZ1WYW86BCAq9/X4qArySzGGIDRLkKipuRWHWMW/bd0ePUuMByEQ7ZXGkfS5JAcs4JCGbZaUtJA/UWRc9ey8qCub98OvrIMGbjDw8q85mKCJyqwWSHuhvRkcIOR17Qr43jKRro37FwHOmmcT5n0sQHaBGwrvQk6kGwdDUyEQ2bQlSvmGCUPRfA6ojXeLoO4SitdjbGjkG9U=", "swapfree_mb": 0, "swaptotal_mb": 0, "system": "Linux", "system_capabilities": [], "system_capabilities_enforced": "False", "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/tmpc84bdd0k/tests/tasks/setup_test.yml:24 changed: [/cache/fedora-33.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: cryptsetup-2.3.6-1.fc33.x86_64"]} TASK [Clone nbde_server role for the tests] ************************************ task path: /tmp/tmpc84bdd0k/tests/tasks/setup_test.yml:28 ok: [/cache/fedora-33.qcow2] => {"after": "c57d0b1f3384c525738fa26ba4bdca485e162567", "before": "c57d0b1f3384c525738fa26ba4bdca485e162567", "changed": false, "remote_url_changed": false} TASK [Deploy NBDE server for testing] ****************************************** task path: /tmp/tmpc84bdd0k/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-33.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-33.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-33.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: jose-11-1.fc33.x86_64", "Installed: libjose-11-1.fc33.x86_64", "Installed: http-parser-2.9.4-3.fc33.x86_64", "Installed: tang-10-2.fc33.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-33.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-33.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-33.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-33.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", "CanFreeze": "no", "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", "CoredumpFilter": "0x33", "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", "FreezerState": "running", "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": "7731", "LimitNPROCSoft": "7731", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "7731", "LimitSIGPENDINGSoft": "7731", "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", "PassPacketInfo": "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", "RootHashSignature": "", "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": "2319", "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/tmpc84bdd0k/tests/tasks/setup_test.yml:39 ok: [/cache/fedora-33.qcow2] => {"changed": false, "cmd": ["fallocate", "-l64m", "/tmp/.nbde_client_dev_test"], "delta": "0:00:00.011719", "end": "2021-08-06 12:25:36.473853", "rc": 0, "start": "2021-08-06 12:25:36.462134", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Format test device as LUKS] ********************************************** task path: /tmp/tmpc84bdd0k/tests/tasks/setup_test.yml:43 ok: [/cache/fedora-33.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.126688", "end": "2021-08-06 12:25:36.947388", "rc": 0, "start": "2021-08-06 12:25:36.820700", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Create key file for test device] ***************************************** task path: /tmp/tmpc84bdd0k/tests/tasks/setup_test.yml:51 ok: [/cache/fedora-33.qcow2] => {"changed": false, "cmd": "echo -n test-password-here > /tmp/.nbde_client_dev_encryption_key\n", "delta": "0:00:00.004384", "end": "2021-08-06 12:25:38.028897", "rc": 0, "start": "2021-08-06 12:25:38.024513", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Use nbde_client role] **************************************************** task path: /tmp/tmpc84bdd0k/tests/tests_simple_bind_unbind.yml:20 TASK [linux-system-roles.nbde_client : Set version specific variables] ********* task path: /tmp/tmpc84bdd0k/tasks/main.yml:4 ok: [/cache/fedora-33.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/tmpc84bdd0k/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.nbde_client : Include the appropriate provider tasks] *** task path: /tmp/tmpc84bdd0k/tasks/main.yml:17 included: /tmp/tmpc84bdd0k/tasks/main-clevis.yml for /cache/fedora-33.qcow2 TASK [linux-system-roles.nbde_client : Ensure required packages are installed] *** task path: /tmp/tmpc84bdd0k/tasks/main-clevis.yml:2 changed: [/cache/fedora-33.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: oniguruma-6.9.6-1.fc33.x86_64", "Installed: jq-1.6-5.fc33.x86_64", "Installed: luksmeta-9-9.fc33.x86_64", "Installed: dracut-network-055-3.fc33.x86_64", "Installed: tpm2-tools-4.3.2-1.fc33.x86_64", "Installed: libluksmeta-9-9.fc33.x86_64", "Installed: clevis-18-1.fc33.x86_64", "Installed: clevis-dracut-18-1.fc33.x86_64", "Installed: clevis-luks-18-1.fc33.x86_64", "Installed: clevis-pin-tpm2-0.2.0-1.fc33.x86_64", "Installed: clevis-systemd-18-1.fc33.x86_64"]} TASK [linux-system-roles.nbde_client : Check whether devices are at the desired state] *** task path: /tmp/tmpc84bdd0k/tasks/main-clevis.yml:7 changed: [/cache/fedora-33.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/tmpc84bdd0k/tasks/main-clevis.yml:17 changed: [/cache/fedora-33.qcow2] => {"changed": true, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/tmp/ansible.57wzeutqnbde_client_encryption_keys", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 40, "state": "directory", "uid": 0} TASK [linux-system-roles.nbde_client : Ensure we transfer key files] *********** task path: /tmp/tmpc84bdd0k/tasks/main-clevis.yml:25 skipping: [/cache/fedora-33.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-33.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/tmpc84bdd0k/tasks/main-clevis.yml:37 NOTIFIED HANDLER linux-system-roles.nbde_client : nbde_client update initramfs for /cache/fedora-33.qcow2 changed: [/cache/fedora-33.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/tmpc84bdd0k/tasks/main-clevis.yml:47 changed: [/cache/fedora-33.qcow2] => {"changed": true, "path": "/tmp/ansible.57wzeutqnbde_client_encryption_keys", "state": "absent"} TASK [Attempt to unlock device] ************************************************ task path: /tmp/tmpc84bdd0k/tests/tests_simple_bind_unbind.yml:24 included: /tmp/tmpc84bdd0k/tests/tasks/verify_unlock_device.yml for /cache/fedora-33.qcow2 TASK [Verify we can unlock the device] ***************************************** task path: /tmp/tmpc84bdd0k/tests/tasks/verify_unlock_device.yml:2 fatal: [/cache/fedora-33.qcow2]: FAILED! => {"changed": false, "cmd": ["clevis", "luks", "unlock", "-d", "/tmp/.nbde_client_dev_test", "-n", "nbde_client_unlocked"], "delta": "0:00:00.046303", "end": "2021-08-06 12:25:52.903690", "msg": "non-zero return code", "rc": 1, "start": "2021-08-06 12:25:52.857387", "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/tmpc84bdd0k/tests/tasks/verify_unlock_device.yml:10 fatal: [/cache/fedora-33.qcow2]: FAILED! => {"changed": false, "cmd": ["cryptsetup", "close", "nbde_client_unlocked"], "delta": "0:00:00.009086", "end": "2021-08-06 12:25:53.256373", "msg": "non-zero return code", "rc": 4, "start": "2021-08-06 12:25:53.247287", "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/tmpc84bdd0k/tests/tests_simple_bind_unbind.yml:27 ok: [/cache/fedora-33.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Assert idempotency when trying to only unbind] *************************** task path: /tmp/tmpc84bdd0k/tests/tests_simple_bind_unbind.yml:33 included: /tmp/tmpc84bdd0k/tests/tasks/verify_idempotency.yml for /cache/fedora-33.qcow2 TASK [Use nbde_client role - idempotency check] ******************************** task path: /tmp/tmpc84bdd0k/tests/tasks/verify_idempotency.yml:2 TASK [linux-system-roles.nbde_client : Set version specific variables] ********* task path: /tmp/tmpc84bdd0k/tasks/main.yml:4 ok: [/cache/fedora-33.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/tmpc84bdd0k/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.nbde_client : Include the appropriate provider tasks] *** task path: /tmp/tmpc84bdd0k/tasks/main.yml:17 included: /tmp/tmpc84bdd0k/tasks/main-clevis.yml for /cache/fedora-33.qcow2 TASK [linux-system-roles.nbde_client : Ensure required packages are installed] *** task path: /tmp/tmpc84bdd0k/tasks/main-clevis.yml:2 ok: [/cache/fedora-33.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/tmpc84bdd0k/tasks/main-clevis.yml:7 ok: [/cache/fedora-33.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/tmpc84bdd0k/tasks/main-clevis.yml:17 skipping: [/cache/fedora-33.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.nbde_client : Ensure we transfer key files] *********** task path: /tmp/tmpc84bdd0k/tasks/main-clevis.yml:25 skipping: [/cache/fedora-33.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/tmpc84bdd0k/tasks/main-clevis.yml:37 skipping: [/cache/fedora-33.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/tmpc84bdd0k/tasks/main-clevis.yml:47 skipping: [/cache/fedora-33.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify idempotency of clevis operations] ********************************* task path: /tmp/tmpc84bdd0k/tests/tasks/verify_idempotency.yml:6 ok: [/cache/fedora-33.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up test environment] *********************************************** task path: /tmp/tmpc84bdd0k/tests/tests_simple_bind_unbind.yml:42 included: /tmp/tmpc84bdd0k/tests/tasks/cleanup_test.yml for /cache/fedora-33.qcow2 TASK [Clean up dummy testing device] ******************************************* task path: /tmp/tmpc84bdd0k/tests/tasks/cleanup_test.yml:2 changed: [/cache/fedora-33.qcow2] => {"changed": true, "path": "/tmp/.nbde_client_dev_test", "state": "absent"} TASK [Clean up dummy key file] ************************************************* task path: /tmp/tmpc84bdd0k/tests/tasks/cleanup_test.yml:7 changed: [/cache/fedora-33.qcow2] => {"changed": true, "path": "/tmp/.nbde_client_dev_encryption_key", "state": "absent"} TASK [Clean up dummy key file on managed host] ********************************* task path: /tmp/tmpc84bdd0k/tests/tasks/cleanup_test.yml:13 ok: [/cache/fedora-33.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/tmpc84bdd0k/handlers/main.yml:4 changed: [/cache/fedora-33.qcow2] => {"changed": true, "cmd": ["dracut", "-f"], "delta": "0:00:20.924257", "end": "2021-08-06 12:26:18.069414", "rc": 0, "start": "2021-08-06 12:25:57.145157", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/fedora-33.qcow2 : ok=38 changed=12 unreachable=0 failed=0 skipped=8 rescued=0 ignored=2 + cd /tmp/tmpc84bdd0k/tests; TEST_SUBJECTS=/cache/fedora-33.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_nbde_client-51-d478b30-fedora-33-m983wtuy/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmpc84bdd0k/_setup.yml /tmp/tmpc84bdd0k/tests/tests_simple_bind_unbind_keyfile.yml ansible-playbook 2.9.23 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.9/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 3.9.6 (default, Jun 29 2021, 00:00:00) [GCC 11.1.1 20210531 (Red Hat 11.1.1-3)] 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/tmpc84bdd0k/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmpc84bdd0k/_setup.yml:5 ok: [/cache/fedora-33.qcow2] => { "groups": { "all": [ "/cache/fedora-33.qcow2" ], "localhost": [ "/cache/fedora-33.qcow2" ], "subjects": [ "/cache/fedora-33.qcow2" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmpc84bdd0k/_setup.yml:7 skipping: [/cache/fedora-33.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/fedora-33.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/tmpc84bdd0k/tests/tests_simple_bind_unbind_keyfile.yml PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpc84bdd0k/tests/tests_simple_bind_unbind_keyfile.yml:2 ok: [/cache/fedora-33.qcow2] META: ran handlers TASK [Set up test environment] ************************************************* task path: /tmp/tmpc84bdd0k/tests/tests_simple_bind_unbind_keyfile.yml:15 included: /tmp/tmpc84bdd0k/tests/tasks/setup_test.yml for /cache/fedora-33.qcow2 TASK [Include general tests variables] ***************************************** task path: /tmp/tmpc84bdd0k/tests/tasks/setup_test.yml:2 ok: [/cache/fedora-33.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/tmpc84bdd0k/tests/vars/main.yml"], "changed": false} TASK [Set version specific variables] ****************************************** task path: /tmp/tmpc84bdd0k/tests/tasks/setup_test.yml:5 ok: [/cache/fedora-33.qcow2] => {"ansible_facts": {"nbde_client_test_packages": ["cryptsetup"]}, "ansible_included_var_files": ["/tmp/tmpc84bdd0k/tests/vars/Fedora.yml"], "changed": false} TASK [Print all available facts] *********************************************** task path: /tmp/tmpc84bdd0k/tests/tasks/setup_test.yml:20 ok: [/cache/fedora-33.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.14.0-3.fc34", "cmdline": { "BOOT_IMAGE": "(hd0,msdos1)/boot/vmlinuz-5.13.6-100.fc33.x86_64", "console": "ttyS0,115200n8", "net.ifnames": "0", "no_timer_check": true, "ro": true, "root": "UUID=b2201488-ac7a-4269-b92f-a722977a99a3" }, "date_time": { "date": "2021-08-06", "day": "06", "epoch": "1628252792", "hour": "12", "iso8601": "2021-08-06T12:26:32Z", "iso8601_basic": "20210806T122632116638", "iso8601_basic_short": "20210806T122632", "iso8601_micro": "2021-08-06T12:26:32.116638Z", "minute": "26", "month": "08", "second": "32", "time": "12:26:32", "tz": "UTC", "tz_offset": "+0000", "weekday": "Friday", "weekday_number": "5", "weeknumber": "31", "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-08-06-12-26-19-00" ], "vda1": [ "b2201488-ac7a-4269-b92f-a722977a99a3" ] } }, "devices": { "sr0": { "holders": [], "host": "IDE interface: Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II]", "links": { "ids": [ "ata-QEMU_DVD-ROM_QM00003" ], "labels": [ "cidata" ], "masters": [], "uuids": [ "2021-08-06-12-26-19-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": "SCSI storage controller: Red Hat, Inc. Virtio block device", "links": { "ids": [], "labels": [], "masters": [], "uuids": [] }, "model": null, "partitions": { "vda1": { "holders": [], "links": { "ids": [], "labels": [], "masters": [], "uuids": [ "b2201488-ac7a-4269-b92f-a722977a99a3" ] }, "sectors": "8386560", "sectorsize": 512, "size": "4.00 GB", "start": "2048", "uuid": "b2201488-ac7a-4269-b92f-a722977a99a3" } }, "removable": "0", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "none", "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": "33", "distribution_release": "", "distribution_version": "33", "dns": { "nameservers": [ "127.0.0.53" ], "options": { "edns0": true, "trust-ad": true } }, "domain": "localdomain", "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 55296 22", "SSH_CONNECTION": "10.0.2.2 55296 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": "localhost.localdomain", "gather_subset": [ "all" ], "hostname": "localhost", "hostnqn": "", "interfaces": [ "eth0", "lo" ], "is_chroot": false, "iscsi_iqn": "", "kernel": "5.13.6-100.fc33.x86_64", "kernel_version": "#1 SMP Wed Jul 28 15:30:10 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": "1a9a5f8a4e1940ffa32ef35a29a5f61b", "memfree_mb": 1659, "memory_mb": { "nocache": { "free": 1813, "used": 152 }, "real": { "free": 1659, "total": 1965, "used": 306 }, "swap": { "cached": 0, "free": 0, "total": 0, "used": 0 } }, "memtotal_mb": 1965, "module_setup": true, "mounts": [ { "block_available": 797164, "block_size": 4096, "block_total": 1015472, "block_used": 218308, "device": "/dev/vda1", "fstype": "ext4", "inode_available": 236024, "inode_total": 262144, "inode_used": 26120, "mount": "/", "options": "rw,seclabel,relatime", "size_available": 3265183744, "size_total": 4159373312, "uuid": "b2201488-ac7a-4269-b92f-a722977a99a3" } ], "nodename": "localhost", "os_family": "RedHat", "pkg_mgr": "dnf", "proc_cmdline": { "BOOT_IMAGE": "(hd0,msdos1)/boot/vmlinuz-5.13.6-100.fc33.x86_64", "console": [ "tty1", "ttyS0,115200n8" ], "net.ifnames": "0", "no_timer_check": true, "ro": true, "root": "UUID=b2201488-ac7a-4269-b92f-a722977a99a3" }, "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-5.2", "python": { "executable": "/usr/bin/python3", "has_sslcontext": true, "type": "cpython", "version": { "major": 3, "micro": 6, "minor": 9, "releaselevel": "final", "serial": 0 }, "version_info": [ 3, 9, 6, "final", 0 ] }, "python_version": "3.9.6", "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": "AAAAB3NzaC1kc3MAAACBALXGITfTJRVG2M1aALNDXB6q8A1OGEzTxi/85OFOyRy4jrOKUFo5yOnRwuH5eiYTL2lRcOT167xoxLcYH7PeO3W/d+dTP2HGclC0LLxXe1MgsueRGtF/rMhxIivhLhvPpITdER73HHNs/QSWcgyVn2I6sj5uSNM2clkXa6NPsWWlAAAAFQCjYqiSAJaQa5/fu9zaaqWMKfC3vQAAAIBCFH20TzgjpVmk96McGftUOl48q7EipdCuse8AZYKHr8T8kAIcHEXTi8rfnqlBXd5e/RosD8TIjo827LaSl/rhOthUC5RRdYlEPNl/AoA8X13TDDBIJEOMrAaHJzRZ3DqQIP2tvCopOHWQABR1ffYQCIA4MAA/e5xc7pCw+loAYAAAAIEAr81lCg7V/LIbDAeKDRsRNuLIEeTSldYLXvnSFHTSpzZ2qLbNYj3b7tsxLvZ8NMbFtr20XMvzPpqfVI+O543bRrrtel7XVW00AhodIISmQ253N9fmq1sgwOycfx6tL6TJvhqmKjkfU1XpDVOscVEV4mrqqV5Q5UoSquyInS/KntM=", "ssh_host_key_ecdsa_public": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBPV359ocKz8mJ361PVLy56VVIM8DRm5RB/62Go6A8wZDLqA61C/fR1ZEyfuZ8ffhjHtSp9Tf8REWp+dViLMZNRE=", "ssh_host_key_ed25519_public": "AAAAC3NzaC1lZDI1NTE5AAAAICKKFYbFNAuobs6CbXJvSZK7q2uMxbxoGkLQVSll9FU+", "ssh_host_key_rsa_public": "AAAAB3NzaC1yc2EAAAADAQABAAABgQDe2YqdlHJbOY9nAYPYHm79HN/JGlsnrCOzCnb8GOJQAbGrypnP0xl1la3i4ncb+cwHNC+KoMR3xPpInvenpzvIdz44ud8xJj9VgthkXyJLK374Wb9OnVVNDjEDU9Y5zScwuTv8H+DmolLzIJMH14yCvRAfq7YoylwME+MKioLLKjehk2WLUFSBgJ14Jv+y+7h0SGzzIT98U37WQypbMs4jQI+gBtJW+EYksTPp+Yj13vX+yRk5XBz+d7QNJD+CHIRmd/UAVtBzlX8AJrS2kb+i9UZIOM+QH+fdOPLXJH1VJVPJTwLfVpw10Ak+xk4BFNgnWtswdgb43pPXGvwYCiiQqeDFBVaAsaKy6dEWhdkl9RnKWJ4kAzhhCRTOLthsGPuN32AqYrlTpqvuILcwDAO3WHhlX2KkTmOe5A+F6Act+cjTgIKAMDh2h+KBYItggu4TOyzr7Ihf8lbE9SDBQF58th7qqqnXFsvLYRdduZFrRYb6tZmO5HJV3XboNyFy2RM=", "swapfree_mb": 0, "swaptotal_mb": 0, "system": "Linux", "system_capabilities": [], "system_capabilities_enforced": "False", "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/tmpc84bdd0k/tests/tasks/setup_test.yml:24 changed: [/cache/fedora-33.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: cryptsetup-2.3.6-1.fc33.x86_64"]} TASK [Clone nbde_server role for the tests] ************************************ task path: /tmp/tmpc84bdd0k/tests/tasks/setup_test.yml:28 ok: [/cache/fedora-33.qcow2] => {"after": "c57d0b1f3384c525738fa26ba4bdca485e162567", "before": "c57d0b1f3384c525738fa26ba4bdca485e162567", "changed": false, "remote_url_changed": false} TASK [Deploy NBDE server for testing] ****************************************** task path: /tmp/tmpc84bdd0k/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-33.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-33.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-33.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: jose-11-1.fc33.x86_64", "Installed: libjose-11-1.fc33.x86_64", "Installed: http-parser-2.9.4-3.fc33.x86_64", "Installed: tang-10-2.fc33.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-33.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-33.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-33.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-33.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", "CanFreeze": "no", "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", "CoredumpFilter": "0x33", "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", "FreezerState": "running", "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": "7731", "LimitNPROCSoft": "7731", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "7731", "LimitSIGPENDINGSoft": "7731", "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", "PassPacketInfo": "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", "RootHashSignature": "", "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": "2319", "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/tmpc84bdd0k/tests/tasks/setup_test.yml:39 ok: [/cache/fedora-33.qcow2] => {"changed": false, "cmd": ["fallocate", "-l64m", "/tmp/.nbde_client_dev_test"], "delta": "0:00:00.011641", "end": "2021-08-06 12:27:18.024647", "rc": 0, "start": "2021-08-06 12:27:18.013006", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Format test device as LUKS] ********************************************** task path: /tmp/tmpc84bdd0k/tests/tasks/setup_test.yml:43 ok: [/cache/fedora-33.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.125725", "end": "2021-08-06 12:27:18.485718", "rc": 0, "start": "2021-08-06 12:27:18.359993", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Create key file for test device] ***************************************** task path: /tmp/tmpc84bdd0k/tests/tasks/setup_test.yml:51 ok: [/cache/fedora-33.qcow2] => {"changed": false, "cmd": "echo -n test-password-here > /tmp/.nbde_client_dev_encryption_key\n", "delta": "0:00:00.004115", "end": "2021-08-06 12:27:19.259072", "rc": 0, "start": "2021-08-06 12:27:19.254957", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Use nbde_client role] **************************************************** task path: /tmp/tmpc84bdd0k/tests/tests_simple_bind_unbind_keyfile.yml:20 TASK [linux-system-roles.nbde_client : Set version specific variables] ********* task path: /tmp/tmpc84bdd0k/tasks/main.yml:4 ok: [/cache/fedora-33.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/tmpc84bdd0k/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.nbde_client : Include the appropriate provider tasks] *** task path: /tmp/tmpc84bdd0k/tasks/main.yml:17 included: /tmp/tmpc84bdd0k/tasks/main-clevis.yml for /cache/fedora-33.qcow2 TASK [linux-system-roles.nbde_client : Ensure required packages are installed] *** task path: /tmp/tmpc84bdd0k/tasks/main-clevis.yml:2 changed: [/cache/fedora-33.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: oniguruma-6.9.6-1.fc33.x86_64", "Installed: jq-1.6-5.fc33.x86_64", "Installed: luksmeta-9-9.fc33.x86_64", "Installed: dracut-network-055-3.fc33.x86_64", "Installed: tpm2-tools-4.3.2-1.fc33.x86_64", "Installed: libluksmeta-9-9.fc33.x86_64", "Installed: clevis-18-1.fc33.x86_64", "Installed: clevis-dracut-18-1.fc33.x86_64", "Installed: clevis-luks-18-1.fc33.x86_64", "Installed: clevis-pin-tpm2-0.2.0-1.fc33.x86_64", "Installed: clevis-systemd-18-1.fc33.x86_64"]} TASK [linux-system-roles.nbde_client : Check whether devices are at the desired state] *** task path: /tmp/tmpc84bdd0k/tasks/main-clevis.yml:7 changed: [/cache/fedora-33.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/tmpc84bdd0k/tasks/main-clevis.yml:17 changed: [/cache/fedora-33.qcow2] => {"changed": true, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/tmp/ansible.rpksp59dnbde_client_encryption_keys", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 40, "state": "directory", "uid": 0} TASK [linux-system-roles.nbde_client : Ensure we transfer key files] *********** task path: /tmp/tmpc84bdd0k/tasks/main-clevis.yml:25 changed: [/cache/fedora-33.qcow2] => (item=/tmp/.nbde_client_dev_encryption_key) => {"ansible_loop_var": "item", "changed": true, "checksum": "ddcbbd80371add8b55e5288b1278a7ead06c422e", "dest": "/tmp/ansible.rpksp59dnbde_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-1628252844.630546-124911-23626231288590/source", "state": "file", "uid": 0} ok: [/cache/fedora-33.qcow2] => (item=/tmp/.nbde_client_dev_encryption_key) => {"ansible_loop_var": "item", "changed": false, "checksum": "ddcbbd80371add8b55e5288b1278a7ead06c422e", "dest": "/tmp/ansible.rpksp59dnbde_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.rpksp59dnbde_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/tmpc84bdd0k/tasks/main-clevis.yml:37 NOTIFIED HANDLER linux-system-roles.nbde_client : nbde_client update initramfs for /cache/fedora-33.qcow2 changed: [/cache/fedora-33.qcow2] => {"changed": true, "original_bindings": [{"device": "/tmp/.nbde_client_dev_test", "encryption_key": "/tmp/ansible.rpksp59dnbde_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.rpksp59dnbde_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/tmpc84bdd0k/tasks/main-clevis.yml:47 changed: [/cache/fedora-33.qcow2] => {"changed": true, "path": "/tmp/ansible.rpksp59dnbde_client_encryption_keys", "state": "absent"} TASK [Attempt to unlock device] ************************************************ task path: /tmp/tmpc84bdd0k/tests/tests_simple_bind_unbind_keyfile.yml:24 included: /tmp/tmpc84bdd0k/tests/tasks/verify_unlock_device.yml for /cache/fedora-33.qcow2 TASK [Verify we can unlock the device] ***************************************** task path: /tmp/tmpc84bdd0k/tests/tasks/verify_unlock_device.yml:2 fatal: [/cache/fedora-33.qcow2]: FAILED! => {"changed": false, "cmd": ["clevis", "luks", "unlock", "-d", "/tmp/.nbde_client_dev_test", "-n", "nbde_client_unlocked"], "delta": "0:00:00.043963", "end": "2021-08-06 12:27:35.853419", "msg": "non-zero return code", "rc": 1, "start": "2021-08-06 12:27:35.809456", "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/tmpc84bdd0k/tests/tasks/verify_unlock_device.yml:10 fatal: [/cache/fedora-33.qcow2]: FAILED! => {"changed": false, "cmd": ["cryptsetup", "close", "nbde_client_unlocked"], "delta": "0:00:00.009422", "end": "2021-08-06 12:27:36.206844", "msg": "non-zero return code", "rc": 4, "start": "2021-08-06 12:27:36.197422", "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/tmpc84bdd0k/tests/tests_simple_bind_unbind_keyfile.yml:27 ok: [/cache/fedora-33.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Assert idempotency when trying to only unbind] *************************** task path: /tmp/tmpc84bdd0k/tests/tests_simple_bind_unbind_keyfile.yml:33 included: /tmp/tmpc84bdd0k/tests/tasks/verify_idempotency.yml for /cache/fedora-33.qcow2 TASK [Use nbde_client role - idempotency check] ******************************** task path: /tmp/tmpc84bdd0k/tests/tasks/verify_idempotency.yml:2 TASK [linux-system-roles.nbde_client : Set version specific variables] ********* task path: /tmp/tmpc84bdd0k/tasks/main.yml:4 ok: [/cache/fedora-33.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/tmpc84bdd0k/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.nbde_client : Include the appropriate provider tasks] *** task path: /tmp/tmpc84bdd0k/tasks/main.yml:17 included: /tmp/tmpc84bdd0k/tasks/main-clevis.yml for /cache/fedora-33.qcow2 TASK [linux-system-roles.nbde_client : Ensure required packages are installed] *** task path: /tmp/tmpc84bdd0k/tasks/main-clevis.yml:2 ok: [/cache/fedora-33.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/tmpc84bdd0k/tasks/main-clevis.yml:7 ok: [/cache/fedora-33.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/tmpc84bdd0k/tasks/main-clevis.yml:17 skipping: [/cache/fedora-33.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.nbde_client : Ensure we transfer key files] *********** task path: /tmp/tmpc84bdd0k/tasks/main-clevis.yml:25 skipping: [/cache/fedora-33.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/tmpc84bdd0k/tasks/main-clevis.yml:37 skipping: [/cache/fedora-33.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/tmpc84bdd0k/tasks/main-clevis.yml:47 skipping: [/cache/fedora-33.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify idempotency of clevis operations] ********************************* task path: /tmp/tmpc84bdd0k/tests/tasks/verify_idempotency.yml:6 ok: [/cache/fedora-33.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up test environment] *********************************************** task path: /tmp/tmpc84bdd0k/tests/tests_simple_bind_unbind_keyfile.yml:42 included: /tmp/tmpc84bdd0k/tests/tasks/cleanup_test.yml for /cache/fedora-33.qcow2 TASK [Clean up dummy testing device] ******************************************* task path: /tmp/tmpc84bdd0k/tests/tasks/cleanup_test.yml:2 changed: [/cache/fedora-33.qcow2] => {"changed": true, "path": "/tmp/.nbde_client_dev_test", "state": "absent"} TASK [Clean up dummy key file] ************************************************* task path: /tmp/tmpc84bdd0k/tests/tasks/cleanup_test.yml:7 changed: [/cache/fedora-33.qcow2] => {"changed": true, "path": "/tmp/.nbde_client_dev_encryption_key", "state": "absent"} TASK [Clean up dummy key file on managed host] ********************************* task path: /tmp/tmpc84bdd0k/tests/tasks/cleanup_test.yml:13 ok: [/cache/fedora-33.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/tmpc84bdd0k/handlers/main.yml:4 changed: [/cache/fedora-33.qcow2] => {"changed": true, "cmd": ["dracut", "-f"], "delta": "0:00:20.902912", "end": "2021-08-06 12:28:01.081403", "rc": 0, "start": "2021-08-06 12:27:40.178491", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/fedora-33.qcow2 : ok=39 changed=13 unreachable=0 failed=0 skipped=7 rescued=0 ignored=2 + cd /tmp/tmpc84bdd0k/tests; TEST_SUBJECTS=/cache/fedora-33.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_nbde_client-51-d478b30-fedora-33-m983wtuy/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmpc84bdd0k/_setup.yml /tmp/tmpc84bdd0k/tests/tests_use_existing_binding.yml ansible-playbook 2.9.23 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.9/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 3.9.6 (default, Jun 29 2021, 00:00:00) [GCC 11.1.1 20210531 (Red Hat 11.1.1-3)] 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/tmpc84bdd0k/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmpc84bdd0k/_setup.yml:5 ok: [/cache/fedora-33.qcow2] => { "groups": { "all": [ "/cache/fedora-33.qcow2" ], "localhost": [ "/cache/fedora-33.qcow2" ], "subjects": [ "/cache/fedora-33.qcow2" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmpc84bdd0k/_setup.yml:7 skipping: [/cache/fedora-33.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/fedora-33.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/tmpc84bdd0k/tests/tests_use_existing_binding.yml PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpc84bdd0k/tests/tests_use_existing_binding.yml:2 ok: [/cache/fedora-33.qcow2] META: ran handlers TASK [Set up test environment] ************************************************* task path: /tmp/tmpc84bdd0k/tests/tests_use_existing_binding.yml:7 included: /tmp/tmpc84bdd0k/tests/tasks/setup_test.yml for /cache/fedora-33.qcow2 TASK [Include general tests variables] ***************************************** task path: /tmp/tmpc84bdd0k/tests/tasks/setup_test.yml:2 ok: [/cache/fedora-33.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/tmpc84bdd0k/tests/vars/main.yml"], "changed": false} TASK [Set version specific variables] ****************************************** task path: /tmp/tmpc84bdd0k/tests/tasks/setup_test.yml:5 ok: [/cache/fedora-33.qcow2] => {"ansible_facts": {"nbde_client_test_packages": ["cryptsetup"]}, "ansible_included_var_files": ["/tmp/tmpc84bdd0k/tests/vars/Fedora.yml"], "changed": false} TASK [Print all available facts] *********************************************** task path: /tmp/tmpc84bdd0k/tests/tasks/setup_test.yml:20 ok: [/cache/fedora-33.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.14.0-3.fc34", "cmdline": { "BOOT_IMAGE": "(hd0,msdos1)/boot/vmlinuz-5.13.6-100.fc33.x86_64", "console": "ttyS0,115200n8", "net.ifnames": "0", "no_timer_check": true, "ro": true, "root": "UUID=b2201488-ac7a-4269-b92f-a722977a99a3" }, "date_time": { "date": "2021-08-06", "day": "06", "epoch": "1628252895", "hour": "12", "iso8601": "2021-08-06T12:28:15Z", "iso8601_basic": "20210806T122815933194", "iso8601_basic_short": "20210806T122815", "iso8601_micro": "2021-08-06T12:28:15.933194Z", "minute": "28", "month": "08", "second": "15", "time": "12:28:15", "tz": "UTC", "tz_offset": "+0000", "weekday": "Friday", "weekday_number": "5", "weeknumber": "31", "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-08-06-12-28-02-00" ], "vda1": [ "b2201488-ac7a-4269-b92f-a722977a99a3" ] } }, "devices": { "sr0": { "holders": [], "host": "IDE interface: Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II]", "links": { "ids": [ "ata-QEMU_DVD-ROM_QM00003" ], "labels": [ "cidata" ], "masters": [], "uuids": [ "2021-08-06-12-28-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": "SCSI storage controller: Red Hat, Inc. Virtio block device", "links": { "ids": [], "labels": [], "masters": [], "uuids": [] }, "model": null, "partitions": { "vda1": { "holders": [], "links": { "ids": [], "labels": [], "masters": [], "uuids": [ "b2201488-ac7a-4269-b92f-a722977a99a3" ] }, "sectors": "8386560", "sectorsize": 512, "size": "4.00 GB", "start": "2048", "uuid": "b2201488-ac7a-4269-b92f-a722977a99a3" } }, "removable": "0", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "none", "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": "33", "distribution_release": "", "distribution_version": "33", "dns": { "nameservers": [ "127.0.0.53" ], "options": { "edns0": true, "trust-ad": true } }, "domain": "localdomain", "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 60804 22", "SSH_CONNECTION": "10.0.2.2 60804 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": "localhost.localdomain", "gather_subset": [ "all" ], "hostname": "localhost", "hostnqn": "", "interfaces": [ "eth0", "lo" ], "is_chroot": false, "iscsi_iqn": "", "kernel": "5.13.6-100.fc33.x86_64", "kernel_version": "#1 SMP Wed Jul 28 15:30:10 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": "31386767a6a34a5bbe52882314a4eab8", "memfree_mb": 1658, "memory_mb": { "nocache": { "free": 1812, "used": 153 }, "real": { "free": 1658, "total": 1965, "used": 307 }, "swap": { "cached": 0, "free": 0, "total": 0, "used": 0 } }, "memtotal_mb": 1965, "module_setup": true, "mounts": [ { "block_available": 797163, "block_size": 4096, "block_total": 1015472, "block_used": 218309, "device": "/dev/vda1", "fstype": "ext4", "inode_available": 236024, "inode_total": 262144, "inode_used": 26120, "mount": "/", "options": "rw,seclabel,relatime", "size_available": 3265179648, "size_total": 4159373312, "uuid": "b2201488-ac7a-4269-b92f-a722977a99a3" } ], "nodename": "localhost", "os_family": "RedHat", "pkg_mgr": "dnf", "proc_cmdline": { "BOOT_IMAGE": "(hd0,msdos1)/boot/vmlinuz-5.13.6-100.fc33.x86_64", "console": [ "tty1", "ttyS0,115200n8" ], "net.ifnames": "0", "no_timer_check": true, "ro": true, "root": "UUID=b2201488-ac7a-4269-b92f-a722977a99a3" }, "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-5.2", "python": { "executable": "/usr/bin/python3", "has_sslcontext": true, "type": "cpython", "version": { "major": 3, "micro": 6, "minor": 9, "releaselevel": "final", "serial": 0 }, "version_info": [ 3, 9, 6, "final", 0 ] }, "python_version": "3.9.6", "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": "AAAAB3NzaC1kc3MAAACBANvnEZajBB7crfrri7r9d7T7WQu4gaEbQTTgdfncoB2dq9UXCMFJ6ZeUdP5YVvnV7wy+gROXJbSjavGSAbKnyEc6dPKlkjB+tDifNN/1EGr3+LUnI48oRRfXim0jQWsXZF+OlLW4/Oa7IG+HvzHSul14xzqVFc2hHzKR1VOmb9F7AAAAFQCNwiY8vOoQFtARQ6j0jmX5BzKM3QAAAIBwbeVvBTgwBRwnwpYc6IZIRWKalYS2fe/n+Ij+rd1zDTLjyusO+V8TaYrg67Gfcy00dN9BqcYX1O9ggzc8+KjfNthMCWAERwFm0i/GDCDyJbSYPvGoqq2PeqOtwQ1VhBjJDvVNWzPU8M9s612PG8yOma4iQT5NDRrQrHI3bMhRSQAAAIEAy5EMSD38CafbqeEYoSkJmCFZV3KzstLKVK7NH09anRUcCvYLy8Y1ynVNTERSS48x/fKLP+6UeDb/6Mj5OkhXHG15xl8moN7GjGj2TMOwsJzCNln8n33g0b7+rBGW2SQfPSkJGf9GSQpAKYguxmzvqegk5NYebwAUKWs9Y7/fKLs=", "ssh_host_key_ecdsa_public": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBOohgcocDCpBn+s4zUrFOQlixIx4OozmL6sp9o0CZs27joNnvnrkcBSalu2IVrx7/gKWC9fAtY7k6VfZeos/XYw=", "ssh_host_key_ed25519_public": "AAAAC3NzaC1lZDI1NTE5AAAAILwMJZhsfr1q+zOg6u3dC73c6CWao9ts2jMo7L9nacIy", "ssh_host_key_rsa_public": "AAAAB3NzaC1yc2EAAAADAQABAAABgQD0VSLpFKjwxdYXYPaxGreng0/KPY8T06jto3kxknHOrGu1xDHBs5UtFD+i72RE18yCPCfNmcW/ge+COVN2UlwpKep1bmClSrDgcYl1kfUGQErmgT0CmfftXKoe2jvJbdOXG/Y+H+6w0M2SDXf109IHzHV22odPT0X4bbY360nDP1Q+PHMh1SplAa8kVCQS9oT/YmvzUz5yRQlX/5nVYJnhsRyDKXxe7HxZ3iMWo6YlxZ2l+aGJjzfEL3NaUfc9U3U0i2JsRn+5/mAJh5T1BnsyoAAKAHq5OCvnLtoIopQhPL2YRPXGJy/Gx8Glj/oIcfWFZjip5uTgPQl7qZqfiNyHyU2z12JW3ePx1Tf0QfEAoszhROSsom/dn9gKD9oQMP7TLo8WVaIU9HPiU1/0PIb8GSa/qBYflNJuqDb3NGU0/Zy4c+p7vaCHbeBTQse8y0ePU18HCKKCw5DAs4ZhVQi7x5SARwdhdvGj59+T71ZtQAipjHVBBoLzF81O0zoO6Wc=", "swapfree_mb": 0, "swaptotal_mb": 0, "system": "Linux", "system_capabilities": [], "system_capabilities_enforced": "False", "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/tmpc84bdd0k/tests/tasks/setup_test.yml:24 changed: [/cache/fedora-33.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: cryptsetup-2.3.6-1.fc33.x86_64"]} TASK [Clone nbde_server role for the tests] ************************************ task path: /tmp/tmpc84bdd0k/tests/tasks/setup_test.yml:28 ok: [/cache/fedora-33.qcow2] => {"after": "c57d0b1f3384c525738fa26ba4bdca485e162567", "before": "c57d0b1f3384c525738fa26ba4bdca485e162567", "changed": false, "remote_url_changed": false} TASK [Deploy NBDE server for testing] ****************************************** task path: /tmp/tmpc84bdd0k/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-33.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-33.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-33.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: jose-11-1.fc33.x86_64", "Installed: libjose-11-1.fc33.x86_64", "Installed: http-parser-2.9.4-3.fc33.x86_64", "Installed: tang-10-2.fc33.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-33.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-33.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-33.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-33.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", "CanFreeze": "no", "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", "CoredumpFilter": "0x33", "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", "FreezerState": "running", "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": "7731", "LimitNPROCSoft": "7731", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "7731", "LimitSIGPENDINGSoft": "7731", "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", "PassPacketInfo": "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", "RootHashSignature": "", "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": "2319", "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/tmpc84bdd0k/tests/tasks/setup_test.yml:39 ok: [/cache/fedora-33.qcow2] => {"changed": false, "cmd": ["fallocate", "-l64m", "/tmp/.nbde_client_dev_test"], "delta": "0:00:00.012253", "end": "2021-08-06 12:29:00.983871", "rc": 0, "start": "2021-08-06 12:29:00.971618", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Format test device as LUKS] ********************************************** task path: /tmp/tmpc84bdd0k/tests/tasks/setup_test.yml:43 ok: [/cache/fedora-33.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.128012", "end": "2021-08-06 12:29:01.444795", "rc": 0, "start": "2021-08-06 12:29:01.316783", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Create key file for test device] ***************************************** task path: /tmp/tmpc84bdd0k/tests/tasks/setup_test.yml:51 ok: [/cache/fedora-33.qcow2] => {"changed": false, "cmd": "echo -n test-password-here > /tmp/.nbde_client_dev_encryption_key\n", "delta": "0:00:00.004144", "end": "2021-08-06 12:29:01.882636", "rc": 0, "start": "2021-08-06 12:29:01.878492", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Add binding to slot 1] *************************************************** task path: /tmp/tmpc84bdd0k/tests/tests_use_existing_binding.yml:10 TASK [linux-system-roles.nbde_client : Set version specific variables] ********* task path: /tmp/tmpc84bdd0k/tasks/main.yml:4 ok: [/cache/fedora-33.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/tmpc84bdd0k/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.nbde_client : Include the appropriate provider tasks] *** task path: /tmp/tmpc84bdd0k/tasks/main.yml:17 included: /tmp/tmpc84bdd0k/tasks/main-clevis.yml for /cache/fedora-33.qcow2 TASK [linux-system-roles.nbde_client : Ensure required packages are installed] *** task path: /tmp/tmpc84bdd0k/tasks/main-clevis.yml:2 changed: [/cache/fedora-33.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: oniguruma-6.9.6-1.fc33.x86_64", "Installed: jq-1.6-5.fc33.x86_64", "Installed: luksmeta-9-9.fc33.x86_64", "Installed: dracut-network-055-3.fc33.x86_64", "Installed: tpm2-tools-4.3.2-1.fc33.x86_64", "Installed: libluksmeta-9-9.fc33.x86_64", "Installed: clevis-18-1.fc33.x86_64", "Installed: clevis-dracut-18-1.fc33.x86_64", "Installed: clevis-luks-18-1.fc33.x86_64", "Installed: clevis-pin-tpm2-0.2.0-1.fc33.x86_64", "Installed: clevis-systemd-18-1.fc33.x86_64"]} TASK [linux-system-roles.nbde_client : Check whether devices are at the desired state] *** task path: /tmp/tmpc84bdd0k/tasks/main-clevis.yml:7 changed: [/cache/fedora-33.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/tmpc84bdd0k/tasks/main-clevis.yml:17 changed: [/cache/fedora-33.qcow2] => {"changed": true, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/tmp/ansible.pf9qdcvcnbde_client_encryption_keys", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 40, "state": "directory", "uid": 0} TASK [linux-system-roles.nbde_client : Ensure we transfer key files] *********** task path: /tmp/tmpc84bdd0k/tasks/main-clevis.yml:25 skipping: [/cache/fedora-33.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/tmpc84bdd0k/tasks/main-clevis.yml:37 NOTIFIED HANDLER linux-system-roles.nbde_client : nbde_client update initramfs for /cache/fedora-33.qcow2 changed: [/cache/fedora-33.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/tmpc84bdd0k/tasks/main-clevis.yml:47 changed: [/cache/fedora-33.qcow2] => {"changed": true, "path": "/tmp/ansible.pf9qdcvcnbde_client_encryption_keys", "state": "absent"} TASK [Add binding to slot 2 without providing encryption_password] ************* task path: /tmp/tmpc84bdd0k/tests/tests_use_existing_binding.yml:21 TASK [linux-system-roles.nbde_client : Set version specific variables] ********* task path: /tmp/tmpc84bdd0k/tasks/main.yml:4 ok: [/cache/fedora-33.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/tmpc84bdd0k/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.nbde_client : Include the appropriate provider tasks] *** task path: /tmp/tmpc84bdd0k/tasks/main.yml:17 included: /tmp/tmpc84bdd0k/tasks/main-clevis.yml for /cache/fedora-33.qcow2 TASK [linux-system-roles.nbde_client : Ensure required packages are installed] *** task path: /tmp/tmpc84bdd0k/tasks/main-clevis.yml:2 ok: [/cache/fedora-33.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/tmpc84bdd0k/tasks/main-clevis.yml:7 changed: [/cache/fedora-33.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/tmpc84bdd0k/tasks/main-clevis.yml:17 changed: [/cache/fedora-33.qcow2] => {"changed": true, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/tmp/ansible.lrx49qg4nbde_client_encryption_keys", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 40, "state": "directory", "uid": 0} TASK [linux-system-roles.nbde_client : Ensure we transfer key files] *********** task path: /tmp/tmpc84bdd0k/tasks/main-clevis.yml:25 skipping: [/cache/fedora-33.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/tmpc84bdd0k/tasks/main-clevis.yml:37 NOTIFIED HANDLER linux-system-roles.nbde_client : nbde_client update initramfs for /cache/fedora-33.qcow2 changed: [/cache/fedora-33.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/tmpc84bdd0k/tasks/main-clevis.yml:47 changed: [/cache/fedora-33.qcow2] => {"changed": true, "path": "/tmp/ansible.lrx49qg4nbde_client_encryption_keys", "state": "absent"} TASK [Remove binding from slot 1] ********************************************** task path: /tmp/tmpc84bdd0k/tests/tests_use_existing_binding.yml:31 TASK [linux-system-roles.nbde_client : Set version specific variables] ********* task path: /tmp/tmpc84bdd0k/tasks/main.yml:4 ok: [/cache/fedora-33.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/tmpc84bdd0k/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.nbde_client : Include the appropriate provider tasks] *** task path: /tmp/tmpc84bdd0k/tasks/main.yml:17 included: /tmp/tmpc84bdd0k/tasks/main-clevis.yml for /cache/fedora-33.qcow2 TASK [linux-system-roles.nbde_client : Ensure required packages are installed] *** task path: /tmp/tmpc84bdd0k/tasks/main-clevis.yml:2 ok: [/cache/fedora-33.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/tmpc84bdd0k/tasks/main-clevis.yml:7 changed: [/cache/fedora-33.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/tmpc84bdd0k/tasks/main-clevis.yml:17 changed: [/cache/fedora-33.qcow2] => {"changed": true, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/tmp/ansible.pkk03vbgnbde_client_encryption_keys", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 40, "state": "directory", "uid": 0} TASK [linux-system-roles.nbde_client : Ensure we transfer key files] *********** task path: /tmp/tmpc84bdd0k/tasks/main-clevis.yml:25 skipping: [/cache/fedora-33.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/tmpc84bdd0k/tasks/main-clevis.yml:37 NOTIFIED HANDLER linux-system-roles.nbde_client : nbde_client update initramfs for /cache/fedora-33.qcow2 changed: [/cache/fedora-33.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/tmpc84bdd0k/tasks/main-clevis.yml:47 changed: [/cache/fedora-33.qcow2] => {"changed": true, "path": "/tmp/ansible.pkk03vbgnbde_client_encryption_keys", "state": "absent"} TASK [Attempt to unlock device] ************************************************ task path: /tmp/tmpc84bdd0k/tests/tests_use_existing_binding.yml:40 included: /tmp/tmpc84bdd0k/tests/tasks/verify_unlock_device.yml for /cache/fedora-33.qcow2 TASK [Verify we can unlock the device] ***************************************** task path: /tmp/tmpc84bdd0k/tests/tasks/verify_unlock_device.yml:2 ok: [/cache/fedora-33.qcow2] => {"changed": false, "cmd": ["clevis", "luks", "unlock", "-d", "/tmp/.nbde_client_dev_test", "-n", "nbde_client_unlocked"], "delta": "0:00:03.900278", "end": "2021-08-06 12:29:33.568597", "rc": 0, "start": "2021-08-06 12:29:29.668319", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Close unlocked device] *************************************************** task path: /tmp/tmpc84bdd0k/tests/tasks/verify_unlock_device.yml:10 ok: [/cache/fedora-33.qcow2] => {"changed": false, "cmd": ["cryptsetup", "close", "nbde_client_unlocked"], "delta": "0:00:00.023161", "end": "2021-08-06 12:29:33.936450", "rc": 0, "start": "2021-08-06 12:29:33.913289", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Make sure the attempt to unlock succeeded] ******************************* task path: /tmp/tmpc84bdd0k/tests/tests_use_existing_binding.yml:43 ok: [/cache/fedora-33.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up test environment] *********************************************** task path: /tmp/tmpc84bdd0k/tests/tests_use_existing_binding.yml:50 included: /tmp/tmpc84bdd0k/tests/tasks/cleanup_test.yml for /cache/fedora-33.qcow2 TASK [Clean up dummy testing device] ******************************************* task path: /tmp/tmpc84bdd0k/tests/tasks/cleanup_test.yml:2 changed: [/cache/fedora-33.qcow2] => {"changed": true, "path": "/tmp/.nbde_client_dev_test", "state": "absent"} TASK [Clean up dummy key file] ************************************************* task path: /tmp/tmpc84bdd0k/tests/tasks/cleanup_test.yml:7 changed: [/cache/fedora-33.qcow2] => {"changed": true, "path": "/tmp/.nbde_client_dev_encryption_key", "state": "absent"} TASK [Clean up dummy key file on managed host] ********************************* task path: /tmp/tmpc84bdd0k/tests/tasks/cleanup_test.yml:13 ok: [/cache/fedora-33.qcow2] => {"changed": false, "path": "/tmp/.nbde_client_dev_encryption_key", "state": "absent"} TASK [Set up test environment] ************************************************* task path: /tmp/tmpc84bdd0k/tests/tests_use_existing_binding.yml:55 included: /tmp/tmpc84bdd0k/tests/tasks/setup_test.yml for /cache/fedora-33.qcow2 TASK [Include general tests variables] ***************************************** task path: /tmp/tmpc84bdd0k/tests/tasks/setup_test.yml:2 ok: [/cache/fedora-33.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/tmpc84bdd0k/tests/vars/main.yml"], "changed": false} TASK [Set version specific variables] ****************************************** task path: /tmp/tmpc84bdd0k/tests/tasks/setup_test.yml:5 ok: [/cache/fedora-33.qcow2] => {"ansible_facts": {"nbde_client_test_packages": ["cryptsetup"]}, "ansible_included_var_files": ["/tmp/tmpc84bdd0k/tests/vars/Fedora.yml"], "changed": false} TASK [Print all available facts] *********************************************** task path: /tmp/tmpc84bdd0k/tests/tasks/setup_test.yml:20 ok: [/cache/fedora-33.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.14.0-3.fc34", "cmdline": { "BOOT_IMAGE": "(hd0,msdos1)/boot/vmlinuz-5.13.6-100.fc33.x86_64", "console": "ttyS0,115200n8", "net.ifnames": "0", "no_timer_check": true, "ro": true, "root": "UUID=b2201488-ac7a-4269-b92f-a722977a99a3" }, "date_time": { "date": "2021-08-06", "day": "06", "epoch": "1628252895", "hour": "12", "iso8601": "2021-08-06T12:28:15Z", "iso8601_basic": "20210806T122815933194", "iso8601_basic_short": "20210806T122815", "iso8601_micro": "2021-08-06T12:28:15.933194Z", "minute": "28", "month": "08", "second": "15", "time": "12:28:15", "tz": "UTC", "tz_offset": "+0000", "weekday": "Friday", "weekday_number": "5", "weeknumber": "31", "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-08-06-12-28-02-00" ], "vda1": [ "b2201488-ac7a-4269-b92f-a722977a99a3" ] } }, "devices": { "sr0": { "holders": [], "host": "IDE interface: Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II]", "links": { "ids": [ "ata-QEMU_DVD-ROM_QM00003" ], "labels": [ "cidata" ], "masters": [], "uuids": [ "2021-08-06-12-28-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": "SCSI storage controller: Red Hat, Inc. Virtio block device", "links": { "ids": [], "labels": [], "masters": [], "uuids": [] }, "model": null, "partitions": { "vda1": { "holders": [], "links": { "ids": [], "labels": [], "masters": [], "uuids": [ "b2201488-ac7a-4269-b92f-a722977a99a3" ] }, "sectors": "8386560", "sectorsize": 512, "size": "4.00 GB", "start": "2048", "uuid": "b2201488-ac7a-4269-b92f-a722977a99a3" } }, "removable": "0", "rotational": "1", "sas_address": null, "sas_device_handle": null, "scheduler_mode": "none", "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": "33", "distribution_release": "", "distribution_version": "33", "dns": { "nameservers": [ "127.0.0.53" ], "options": { "edns0": true, "trust-ad": true } }, "domain": "localdomain", "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 60804 22", "SSH_CONNECTION": "10.0.2.2 60804 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": "localhost.localdomain", "gather_subset": [ "all" ], "hostname": "localhost", "hostnqn": "", "interfaces": [ "eth0", "lo" ], "is_chroot": false, "iscsi_iqn": "", "kernel": "5.13.6-100.fc33.x86_64", "kernel_version": "#1 SMP Wed Jul 28 15:30:10 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": "31386767a6a34a5bbe52882314a4eab8", "memfree_mb": 1658, "memory_mb": { "nocache": { "free": 1812, "used": 153 }, "real": { "free": 1658, "total": 1965, "used": 307 }, "swap": { "cached": 0, "free": 0, "total": 0, "used": 0 } }, "memtotal_mb": 1965, "module_setup": true, "mounts": [ { "block_available": 797163, "block_size": 4096, "block_total": 1015472, "block_used": 218309, "device": "/dev/vda1", "fstype": "ext4", "inode_available": 236024, "inode_total": 262144, "inode_used": 26120, "mount": "/", "options": "rw,seclabel,relatime", "size_available": 3265179648, "size_total": 4159373312, "uuid": "b2201488-ac7a-4269-b92f-a722977a99a3" } ], "nodename": "localhost", "os_family": "RedHat", "pkg_mgr": "dnf", "proc_cmdline": { "BOOT_IMAGE": "(hd0,msdos1)/boot/vmlinuz-5.13.6-100.fc33.x86_64", "console": [ "tty1", "ttyS0,115200n8" ], "net.ifnames": "0", "no_timer_check": true, "ro": true, "root": "UUID=b2201488-ac7a-4269-b92f-a722977a99a3" }, "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-5.2", "python": { "executable": "/usr/bin/python3", "has_sslcontext": true, "type": "cpython", "version": { "major": 3, "micro": 6, "minor": 9, "releaselevel": "final", "serial": 0 }, "version_info": [ 3, 9, 6, "final", 0 ] }, "python_version": "3.9.6", "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": "AAAAB3NzaC1kc3MAAACBANvnEZajBB7crfrri7r9d7T7WQu4gaEbQTTgdfncoB2dq9UXCMFJ6ZeUdP5YVvnV7wy+gROXJbSjavGSAbKnyEc6dPKlkjB+tDifNN/1EGr3+LUnI48oRRfXim0jQWsXZF+OlLW4/Oa7IG+HvzHSul14xzqVFc2hHzKR1VOmb9F7AAAAFQCNwiY8vOoQFtARQ6j0jmX5BzKM3QAAAIBwbeVvBTgwBRwnwpYc6IZIRWKalYS2fe/n+Ij+rd1zDTLjyusO+V8TaYrg67Gfcy00dN9BqcYX1O9ggzc8+KjfNthMCWAERwFm0i/GDCDyJbSYPvGoqq2PeqOtwQ1VhBjJDvVNWzPU8M9s612PG8yOma4iQT5NDRrQrHI3bMhRSQAAAIEAy5EMSD38CafbqeEYoSkJmCFZV3KzstLKVK7NH09anRUcCvYLy8Y1ynVNTERSS48x/fKLP+6UeDb/6Mj5OkhXHG15xl8moN7GjGj2TMOwsJzCNln8n33g0b7+rBGW2SQfPSkJGf9GSQpAKYguxmzvqegk5NYebwAUKWs9Y7/fKLs=", "ssh_host_key_ecdsa_public": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBOohgcocDCpBn+s4zUrFOQlixIx4OozmL6sp9o0CZs27joNnvnrkcBSalu2IVrx7/gKWC9fAtY7k6VfZeos/XYw=", "ssh_host_key_ed25519_public": "AAAAC3NzaC1lZDI1NTE5AAAAILwMJZhsfr1q+zOg6u3dC73c6CWao9ts2jMo7L9nacIy", "ssh_host_key_rsa_public": "AAAAB3NzaC1yc2EAAAADAQABAAABgQD0VSLpFKjwxdYXYPaxGreng0/KPY8T06jto3kxknHOrGu1xDHBs5UtFD+i72RE18yCPCfNmcW/ge+COVN2UlwpKep1bmClSrDgcYl1kfUGQErmgT0CmfftXKoe2jvJbdOXG/Y+H+6w0M2SDXf109IHzHV22odPT0X4bbY360nDP1Q+PHMh1SplAa8kVCQS9oT/YmvzUz5yRQlX/5nVYJnhsRyDKXxe7HxZ3iMWo6YlxZ2l+aGJjzfEL3NaUfc9U3U0i2JsRn+5/mAJh5T1BnsyoAAKAHq5OCvnLtoIopQhPL2YRPXGJy/Gx8Glj/oIcfWFZjip5uTgPQl7qZqfiNyHyU2z12JW3ePx1Tf0QfEAoszhROSsom/dn9gKD9oQMP7TLo8WVaIU9HPiU1/0PIb8GSa/qBYflNJuqDb3NGU0/Zy4c+p7vaCHbeBTQse8y0ePU18HCKKCw5DAs4ZhVQi7x5SARwdhdvGj59+T71ZtQAipjHVBBoLzF81O0zoO6Wc=", "swapfree_mb": 0, "swaptotal_mb": 0, "system": "Linux", "system_capabilities": [], "system_capabilities_enforced": "False", "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/tmpc84bdd0k/tests/tasks/setup_test.yml:24 ok: [/cache/fedora-33.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [Clone nbde_server role for the tests] ************************************ task path: /tmp/tmpc84bdd0k/tests/tasks/setup_test.yml:28 ok: [/cache/fedora-33.qcow2] => {"after": "c57d0b1f3384c525738fa26ba4bdca485e162567", "before": "c57d0b1f3384c525738fa26ba4bdca485e162567", "changed": false, "remote_url_changed": false} TASK [Deploy NBDE server for testing] ****************************************** task path: /tmp/tmpc84bdd0k/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-33.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-33.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-33.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-33.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-33.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-33.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-33.qcow2] => (item=tangd.socket) => {"ansible_loop_var": "item", "changed": false, "enabled": true, "item": "tangd.socket", "name": "tangd.socket", "state": "started", "status": {"Accept": "yes", "ActiveEnterTimestamp": "Fri 2021-08-06 12:29:00 UTC", "ActiveEnterTimestampMonotonic": "55697482", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "sysinit.target system.slice", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "yes", "AssertTimestamp": "Fri 2021-08-06 12:29:00 UTC", "AssertTimestampMonotonic": "55695123", "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": "6622000", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanFreeze": "no", "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": "Fri 2021-08-06 12:29:00 UTC", "ConditionTimestampMonotonic": "55695121", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target", "ControlGroup": "/system.slice/tangd.socket", "ControlPID": "0", "CoredumpFilter": "0x33", "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", "FreezerState": "running", "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": "Fri 2021-08-06 12:29:00 UTC", "InactiveExitTimestampMonotonic": "55697482", "InvocationID": "a3a877f1022a4733b2ae01f1323eb65e", "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": "7731", "LimitNPROCSoft": "7731", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "7731", "LimitSIGPENDINGSoft": "7731", "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", "PassPacketInfo": "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", "RootHashSignature": "", "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": "Fri 2021-08-06 12:29:00 UTC", "StateChangeTimestampMonotonic": "55697482", "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": "2319", "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/tmpc84bdd0k/tests/tasks/setup_test.yml:39 ok: [/cache/fedora-33.qcow2] => {"changed": false, "cmd": ["fallocate", "-l64m", "/tmp/.nbde_client_dev_test"], "delta": "0:00:00.011399", "end": "2021-08-06 12:29:40.828888", "rc": 0, "start": "2021-08-06 12:29:40.817489", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Format test device as LUKS] ********************************************** task path: /tmp/tmpc84bdd0k/tests/tasks/setup_test.yml:43 ok: [/cache/fedora-33.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.119734", "end": "2021-08-06 12:29:41.290188", "rc": 0, "start": "2021-08-06 12:29:41.170454", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Create key file for test device] ***************************************** task path: /tmp/tmpc84bdd0k/tests/tasks/setup_test.yml:51 ok: [/cache/fedora-33.qcow2] => {"changed": false, "cmd": "echo -n test-password-here > /tmp/.nbde_client_dev_encryption_key\n", "delta": "0:00:00.004400", "end": "2021-08-06 12:29:41.728385", "rc": 0, "start": "2021-08-06 12:29:41.723985", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Create temp file for the advertisement] ********************************** task path: /tmp/tmpc84bdd0k/tests/tests_use_existing_binding.yml:58 changed: [/cache/fedora-33.qcow2] => {"changed": true, "gid": 0, "group": "root", "mode": "0600", "owner": "root", "path": "/tmp/ansible.55nzp0tzadv", "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/tmpc84bdd0k/tests/tests_use_existing_binding.yml:63 skipping: [/cache/fedora-33.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Download advertisement] ************************************************** task path: /tmp/tmpc84bdd0k/tests/tests_use_existing_binding.yml:68 changed: [/cache/fedora-33.qcow2] => {"changed": true, "checksum_dest": "da39a3ee5e6b4b0d3255bfef95601890afd80709", "checksum_src": "bd9993d24410f2dac8f0eceecd1473ed443dd0b9", "dest": "/tmp/ansible.55nzp0tzadv", "elapsed": 0, "gid": 0, "group": "root", "md5sum": "30969f00411756ba513a39ab49c4af8f", "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-1628252982.1536703-125952-84640108320998/tmp1z2mw2o3", "state": "file", "status_code": 200, "uid": 0, "url": "http://localhost/adv"} TASK [Add binding to slot 1] *************************************************** task path: /tmp/tmpc84bdd0k/tests/tests_use_existing_binding.yml:74 changed: [/cache/fedora-33.qcow2] => {"changed": true, "cmd": "clevis luks bind -f -d /tmp/.nbde_client_dev_test tang '{\"url\": \"http://localhost\", \"adv\": \"/tmp/ansible.55nzp0tzadv\"}' <<< test-password-here\n", "delta": "0:00:03.159676", "end": "2021-08-06 12:29:45.970833", "rc": 0, "start": "2021-08-06 12:29:42.811157", "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/tmpc84bdd0k/tests/tests_use_existing_binding.yml:81 changed: [/cache/fedora-33.qcow2] => {"changed": true, "path": "/tmp/ansible.55nzp0tzadv", "state": "absent"} TASK [Add binding to slot 2 without providing encryption_password] ************* task path: /tmp/tmpc84bdd0k/tests/tests_use_existing_binding.yml:86 TASK [linux-system-roles.nbde_client : Set version specific variables] ********* task path: /tmp/tmpc84bdd0k/tasks/main.yml:4 ok: [/cache/fedora-33.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/tmpc84bdd0k/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.nbde_client : Include the appropriate provider tasks] *** task path: /tmp/tmpc84bdd0k/tasks/main.yml:17 included: /tmp/tmpc84bdd0k/tasks/main-clevis.yml for /cache/fedora-33.qcow2 TASK [linux-system-roles.nbde_client : Ensure required packages are installed] *** task path: /tmp/tmpc84bdd0k/tasks/main-clevis.yml:2 ok: [/cache/fedora-33.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/tmpc84bdd0k/tasks/main-clevis.yml:7 changed: [/cache/fedora-33.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/tmpc84bdd0k/tasks/main-clevis.yml:17 changed: [/cache/fedora-33.qcow2] => {"changed": true, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/tmp/ansible.s_l93g2tnbde_client_encryption_keys", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 40, "state": "directory", "uid": 0} TASK [linux-system-roles.nbde_client : Ensure we transfer key files] *********** task path: /tmp/tmpc84bdd0k/tasks/main-clevis.yml:25 skipping: [/cache/fedora-33.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/tmpc84bdd0k/tasks/main-clevis.yml:37 changed: [/cache/fedora-33.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/tmpc84bdd0k/tasks/main-clevis.yml:47 changed: [/cache/fedora-33.qcow2] => {"changed": true, "path": "/tmp/ansible.s_l93g2tnbde_client_encryption_keys", "state": "absent"} TASK [Remove binding from slot 1] ********************************************** task path: /tmp/tmpc84bdd0k/tests/tests_use_existing_binding.yml:96 TASK [linux-system-roles.nbde_client : Set version specific variables] ********* task path: /tmp/tmpc84bdd0k/tasks/main.yml:4 ok: [/cache/fedora-33.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/tmpc84bdd0k/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.nbde_client : Include the appropriate provider tasks] *** task path: /tmp/tmpc84bdd0k/tasks/main.yml:17 included: /tmp/tmpc84bdd0k/tasks/main-clevis.yml for /cache/fedora-33.qcow2 TASK [linux-system-roles.nbde_client : Ensure required packages are installed] *** task path: /tmp/tmpc84bdd0k/tasks/main-clevis.yml:2 ok: [/cache/fedora-33.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/tmpc84bdd0k/tasks/main-clevis.yml:7 changed: [/cache/fedora-33.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/tmpc84bdd0k/tasks/main-clevis.yml:17 changed: [/cache/fedora-33.qcow2] => {"changed": true, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/tmp/ansible._es5yb52nbde_client_encryption_keys", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 40, "state": "directory", "uid": 0} TASK [linux-system-roles.nbde_client : Ensure we transfer key files] *********** task path: /tmp/tmpc84bdd0k/tasks/main-clevis.yml:25 skipping: [/cache/fedora-33.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/tmpc84bdd0k/tasks/main-clevis.yml:37 changed: [/cache/fedora-33.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/tmpc84bdd0k/tasks/main-clevis.yml:47 changed: [/cache/fedora-33.qcow2] => {"changed": true, "path": "/tmp/ansible._es5yb52nbde_client_encryption_keys", "state": "absent"} TASK [Attempt to unlock device] ************************************************ task path: /tmp/tmpc84bdd0k/tests/tests_use_existing_binding.yml:105 included: /tmp/tmpc84bdd0k/tests/tasks/verify_unlock_device.yml for /cache/fedora-33.qcow2 TASK [Verify we can unlock the device] ***************************************** task path: /tmp/tmpc84bdd0k/tests/tasks/verify_unlock_device.yml:2 ok: [/cache/fedora-33.qcow2] => {"changed": false, "cmd": ["clevis", "luks", "unlock", "-d", "/tmp/.nbde_client_dev_test", "-n", "nbde_client_unlocked"], "delta": "0:00:03.546365", "end": "2021-08-06 12:30:08.421741", "rc": 0, "start": "2021-08-06 12:30:04.875376", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Close unlocked device] *************************************************** task path: /tmp/tmpc84bdd0k/tests/tasks/verify_unlock_device.yml:10 ok: [/cache/fedora-33.qcow2] => {"changed": false, "cmd": ["cryptsetup", "close", "nbde_client_unlocked"], "delta": "0:00:00.024658", "end": "2021-08-06 12:30:08.800726", "rc": 0, "start": "2021-08-06 12:30:08.776068", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Make sure the attempt to unlock succeeded] ******************************* task path: /tmp/tmpc84bdd0k/tests/tests_use_existing_binding.yml:108 ok: [/cache/fedora-33.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up test environment] *********************************************** task path: /tmp/tmpc84bdd0k/tests/tests_use_existing_binding.yml:115 included: /tmp/tmpc84bdd0k/tests/tasks/cleanup_test.yml for /cache/fedora-33.qcow2 TASK [Clean up dummy testing device] ******************************************* task path: /tmp/tmpc84bdd0k/tests/tasks/cleanup_test.yml:2 changed: [/cache/fedora-33.qcow2] => {"changed": true, "path": "/tmp/.nbde_client_dev_test", "state": "absent"} TASK [Clean up dummy key file] ************************************************* task path: /tmp/tmpc84bdd0k/tests/tasks/cleanup_test.yml:7 changed: [/cache/fedora-33.qcow2] => {"changed": true, "path": "/tmp/.nbde_client_dev_encryption_key", "state": "absent"} TASK [Clean up dummy key file on managed host] ********************************* task path: /tmp/tmpc84bdd0k/tests/tasks/cleanup_test.yml:13 ok: [/cache/fedora-33.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/tmpc84bdd0k/handlers/main.yml:4 changed: [/cache/fedora-33.qcow2] => {"changed": true, "cmd": ["dracut", "-f"], "delta": "0:00:21.058859", "end": "2021-08-06 12:30:31.143064", "rc": 0, "start": "2021-08-06 12:30:10.084205", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} RUNNING HANDLER [linux-system-roles.nbde_client : nbde_client update initramfs] *** task path: /tmp/tmpc84bdd0k/handlers/main.yml:4 changed: [/cache/fedora-33.qcow2] => {"changed": true, "cmd": ["dracut", "-f"], "delta": "0:00:19.701365", "end": "2021-08-06 12:30:51.197014", "rc": 0, "start": "2021-08-06 12:30:31.495649", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} RUNNING HANDLER [linux-system-roles.nbde_client : nbde_client update initramfs] *** task path: /tmp/tmpc84bdd0k/handlers/main.yml:4 changed: [/cache/fedora-33.qcow2] => {"changed": true, "cmd": ["dracut", "-f"], "delta": "0:00:19.763202", "end": "2021-08-06 12:31:11.325462", "rc": 0, "start": "2021-08-06 12:30:51.562260", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/fedora-33.qcow2 : ok=88 changed=36 unreachable=0 failed=0 skipped=11 rescued=0 ignored=0