+ cd /tmp/tmpy_esuh65/tests; TEST_SUBJECTS=/cache/Fedora-Cloud-Base-31-20201030.0.x86_64.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_nbde_client-24-e8d29a6-fedora-31-ovy8zajd/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmpy_esuh65/_setup.yml /tmp/tmpy_esuh65/tests/tests_bind_high_availability.yml ansible-playbook 2.8.16 config file = /etc/ansible/ansible.cfg configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python2.7/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 2.7.5 (default, Apr 2 2020, 13:16:51) [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)] Using /etc/ansible/ansible.cfg as config file PLAYBOOK: _setup.yml *********************************************************** 1 plays in /tmp/tmpy_esuh65/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmpy_esuh65/_setup.yml:5 ok: [/cache/Fedora-Cloud-Base-31-20201030.0.x86_64.qcow2] => { "groups": { "all": [ "/cache/Fedora-Cloud-Base-31-20201030.0.x86_64.qcow2" ], "localhost": [ "/cache/Fedora-Cloud-Base-31-20201030.0.x86_64.qcow2" ], "subjects": [ "/cache/Fedora-Cloud-Base-31-20201030.0.x86_64.qcow2" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmpy_esuh65/_setup.yml:6 skipping: [/cache/Fedora-Cloud-Base-31-20201030.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/Fedora-Cloud-Base-31-20201030.0.x86_64.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/tmpy_esuh65/tests/tests_bind_high_availability.yml PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpy_esuh65/tests/tests_bind_high_availability.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201030.0.x86_64.qcow2] META: ran handlers TASK [Set up test environment] ************************************************* task path: /tmp/tmpy_esuh65/tests/tests_bind_high_availability.yml:13 included: /tmp/tmpy_esuh65/tests/tasks/setup_test.yml for /cache/Fedora-Cloud-Base-31-20201030.0.x86_64.qcow2 TASK [Include general tests variables] ***************************************** task path: /tmp/tmpy_esuh65/tests/tasks/setup_test.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201030.0.x86_64.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/tmpy_esuh65/tests/vars/main.yml"], "changed": false} TASK [Set version specific variables] ****************************************** task path: /tmp/tmpy_esuh65/tests/tasks/setup_test.yml:5 ok: [/cache/Fedora-Cloud-Base-31-20201030.0.x86_64.qcow2] => {"ansible_facts": {"nbde_client_test_packages": ["cryptsetup"]}, "ansible_included_var_files": ["/tmp/tmpy_esuh65/tests/vars/Fedora.yml"], "changed": false} TASK [Install required packages for nbde_client tests] ************************* task path: /tmp/tmpy_esuh65/tests/tasks/setup_test.yml:20 changed: [/cache/Fedora-Cloud-Base-31-20201030.0.x86_64.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: cryptsetup", "Installed: cryptsetup-2.3.4-1.fc31.x86_64"]} TASK [Clone nbde_server role for the tests] ************************************ task path: /tmp/tmpy_esuh65/tests/tasks/setup_test.yml:24 ok: [/cache/Fedora-Cloud-Base-31-20201030.0.x86_64.qcow2 -> localhost] => {"after": "a244a3c15f3e4471fe6b09da2576826909224c6a", "before": "a244a3c15f3e4471fe6b09da2576826909224c6a", "changed": false, "remote_url_changed": false} TASK [Deploy NBDE server for testing] ****************************************** task path: /tmp/tmpy_esuh65/tests/tasks/setup_test.yml:31 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:5 ok: [/cache/Fedora-Cloud-Base-31-20201030.0.x86_64.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:18 included: /tmp/.nbde_client_dev_roles/linux-system-roles.nbde_server/tasks/main-tang.yml for /cache/Fedora-Cloud-Base-31-20201030.0.x86_64.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-Cloud-Base-31-20201030.0.x86_64.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: tang", "Installed: jose-10-5.fc31.x86_64", "Installed: tang-7-4.fc31.x86_64", "Installed: libjose-10-5.fc31.x86_64", "Installed: http-parser-2.9.3-1.fc31.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-Cloud-Base-31-20201030.0.x86_64.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-Cloud-Base-31-20201030.0.x86_64.qcow2] => {"arguments": {"cachedir": "/var/cache/tang", "force": false, "keydir": "/var/db/tang", "keygen": "/usr/libexec/tangd-keygen", "keys_to_deploy_dir": null, "name": 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-Cloud-Base-31-20201030.0.x86_64.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-Cloud-Base-31-20201030.0.x86_64.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": "tangd-keygen.service sysinit.target system.slice tangd-update.service", "AllowIsolate": "no", "AmbientCapabilities": "", "AssertResult": "no", "AssertTimestampMonotonic": "0", "Backlog": "128", "Before": "sockets.target shutdown.target", "BindIPv6Only": "default", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "Broadcast": "no", "CPUAccounting": "yes", "CPUAffinity": "", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "[not set]", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanIsolate": "no", "CanReload": "no", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend cap_audit_read cap_perfmon cap_bpf", "CollectMode": "inactive", "ConditionResult": "no", "ConditionTimestampMonotonic": "0", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target", "ControlPID": "0", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "DeferAcceptUSec": "0", "Delegate": "no", "Description": "Tang Server socket", "DevicePolicy": "auto", "DirectoryMode": "0755", "DynamicUser": "no", "FailureAction": "none", "FileDescriptorName": "tangd.socket", "FinalKillSignal": "9", "FragmentPath": "/usr/lib/systemd/system/tangd.socket", "FreeBind": "no", "GID": "[not set]", "IOAccounting": "no", "IOReadBytes": "18446744073709551615", "IOReadOperations": "18446744073709551615", "IOSchedulingClass": "0", "IOSchedulingPriority": "0", "IOWeight": "[not set]", "IOWriteBytes": "18446744073709551615", "IOWriteOperations": "18446744073709551615", "IPAccounting": "no", "IPEgressBytes": "[no data]", "IPEgressPackets": "[no data]", "IPIngressBytes": "[no data]", "IPIngressPackets": "[no data]", "IPTOS": "-1", "IPTTL": "-1", "Id": "tangd.socket", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestampMonotonic": "0", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeepAlive": "no", "KeepAliveIntervalUSec": "0", "KeepAliveProbes": "0", "KeepAliveTimeUSec": "0", "KeyringMode": "shared", "KillMode": "control-group", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "infinity", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "65536", "LimitMEMLOCKSoft": "65536", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "524288", "LimitNOFILESoft": "1024", "LimitNPROC": "3727", "LimitNPROCSoft": "3727", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "3727", "LimitSIGPENDINGSoft": "3727", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "Listen": "[::]:80 (Stream)", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "Mark": "-1", "MaxConnections": "64", "MaxConnectionsPerSource": "0", "MemoryAccounting": "yes", "MemoryCurrent": "[not set]", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MessageQueueMaxMessages": "0", "MessageQueueMessageSize": "0", "MountAPIVFS": "no", "MountFlags": "", "NAccepted": "0", "NConnections": "0", "NRefused": "0", "NUMAMask": "", "NUMAPolicy": "n/a", "Names": "tangd.socket", "NeedDaemonReload": "no", "Nice": "0", "NoDelay": "no", "NoNewPrivileges": "no", "NonBlocking": "no", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PassCredentials": "no", "PassSecurity": "no", "Perpetual": "no", "PipeSize": "0", "Priority": "-1", "PrivateDevices": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectHostname": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectSystem": "no", "ReceiveBuffer": "0", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemoveIPC": "no", "RemoveOnStop": "no", "Requires": "tangd-update.path tangd-keygen.service sysinit.target system.slice tangd-update.service", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "ReusePort": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "SameProcessGroup": "no", "SecureBits": "0", "SendBuffer": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "SocketMode": "0666", "SocketProtocol": "0", "StandardError": "inherit", "StandardInput": "null", "StandardInputData": "", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestampMonotonic": "0", "StateDirectoryMode": "0755", "StopWhenUnneeded": "no", "SubState": "dead", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "[not set]", "TasksMax": "1118", "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/tmpy_esuh65/tests/tasks/setup_test.yml:35 changed: [/cache/Fedora-Cloud-Base-31-20201030.0.x86_64.qcow2] => {"changed": true, "cmd": ["fallocate", "-l64m", "/tmp/.nbde_client_dev_test"], "delta": "0:00:00.025531", "end": "2020-10-31 01:51:56.714171", "rc": 0, "start": "2020-10-31 01:51:56.688640", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Format test device as LUKS] ********************************************** task path: /tmp/tmpy_esuh65/tests/tasks/setup_test.yml:38 changed: [/cache/Fedora-Cloud-Base-31-20201030.0.x86_64.qcow2] => {"changed": true, "cmd": "echo -n test-password-here | cryptsetup luksFormat --pbkdf pbkdf2 --pbkdf-force-iterations 1000 --batch-mode --force-password /tmp/.nbde_client_dev_test\n", "delta": "0:00:00.325881", "end": "2020-10-31 01:51:57.372187", "rc": 0, "start": "2020-10-31 01:51:57.046306", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Create key file for test device] ***************************************** task path: /tmp/tmpy_esuh65/tests/tasks/setup_test.yml:44 changed: [/cache/Fedora-Cloud-Base-31-20201030.0.x86_64.qcow2 -> localhost] => {"changed": true, "cmd": "echo -n test-password-here > /tmp/.nbde_client_dev_encryption_key\n", "delta": "0:00:00.637749", "end": "2020-10-31 01:51:59.198122", "rc": 0, "start": "2020-10-31 01:51:58.560373", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Use nbde_client role] **************************************************** task path: /tmp/tmpy_esuh65/tests/tests_bind_high_availability.yml:18 TASK [linux-system-roles.nbde_client : Set version specific variables] ********* task path: /tmp/tmpy_esuh65/tasks/main.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201030.0.x86_64.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/tmpy_esuh65/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.nbde_client : Include the appropriate provider tasks] *** task path: /tmp/tmpy_esuh65/tasks/main.yml:17 included: /tmp/tmpy_esuh65/tasks/main-clevis.yml for /cache/Fedora-Cloud-Base-31-20201030.0.x86_64.qcow2 TASK [linux-system-roles.nbde_client : Ensure required packages are installed] *** task path: /tmp/tmpy_esuh65/tasks/main-clevis.yml:2 changed: [/cache/Fedora-Cloud-Base-31-20201030.0.x86_64.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: clevis", "Installed: clevis-dracut", "Installed: clevis-luks", "Installed: clevis-systemd", "Installed: nmap-ncat-2:7.80-2.fc31.x86_64", "Installed: tpm2-tss-2.3.1-1.fc31.x86_64", "Installed: luksmeta-9-6.fc31.x86_64", "Installed: clevis-13-1.fc31.x86_64", "Installed: clevis-dracut-13-1.fc31.x86_64", "Installed: clevis-luks-13-1.fc31.x86_64", "Installed: clevis-systemd-13-1.fc31.x86_64", "Installed: dracut-network-050-61.git20200529.fc31.x86_64", "Installed: libluksmeta-9-6.fc31.x86_64", "Installed: tpm2-tools-4.0.1-1.fc31.x86_64"]} TASK [linux-system-roles.nbde_client : Check whether devices are at the desired state] *** task path: /tmp/tmpy_esuh65/tasks/main-clevis.yml:7 changed: [/cache/Fedora-Cloud-Base-31-20201030.0.x86_64.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/tmpy_esuh65/tasks/main-clevis.yml:17 changed: [/cache/Fedora-Cloud-Base-31-20201030.0.x86_64.qcow2] => {"changed": true, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/tmp/ansible.flrguominbde_client_encryption_keys", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 4096, "state": "directory", "uid": 0} TASK [linux-system-roles.nbde_client : Ensure we transfer key files] *********** task path: /tmp/tmpy_esuh65/tasks/main-clevis.yml:25 skipping: [/cache/Fedora-Cloud-Base-31-20201030.0.x86_64.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/tmpy_esuh65/tasks/main-clevis.yml:37 NOTIFIED HANDLER linux-system-roles.nbde_client : nbde_client update initramfs for /cache/Fedora-Cloud-Base-31-20201030.0.x86_64.qcow2 changed: [/cache/Fedora-Cloud-Base-31-20201030.0.x86_64.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/tmpy_esuh65/tasks/main-clevis.yml:47 changed: [/cache/Fedora-Cloud-Base-31-20201030.0.x86_64.qcow2] => {"changed": true, "path": "/tmp/ansible.flrguominbde_client_encryption_keys", "state": "absent"} TASK [Attempt to unlock device] ************************************************ task path: /tmp/tmpy_esuh65/tests/tests_bind_high_availability.yml:22 included: /tmp/tmpy_esuh65/tests/tasks/verify_unlock_device.yml for /cache/Fedora-Cloud-Base-31-20201030.0.x86_64.qcow2 TASK [Verify we can unlock the device] ***************************************** task path: /tmp/tmpy_esuh65/tests/tasks/verify_unlock_device.yml:2 changed: [/cache/Fedora-Cloud-Base-31-20201030.0.x86_64.qcow2] => {"changed": true, "cmd": ["clevis", "luks", "unlock", "-d", "/tmp/.nbde_client_dev_test", "-n", "nbde_client_unlocked"], "delta": "0:00:02.463510", "end": "2020-10-31 01:52:20.061881", "rc": 0, "start": "2020-10-31 01:52:17.598371", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Close unlocked device] *************************************************** task path: /tmp/tmpy_esuh65/tests/tasks/verify_unlock_device.yml:9 changed: [/cache/Fedora-Cloud-Base-31-20201030.0.x86_64.qcow2] => {"changed": true, "cmd": ["cryptsetup", "close", "nbde_client_unlocked"], "delta": "0:00:00.029361", "end": "2020-10-31 01:52:20.442905", "rc": 0, "start": "2020-10-31 01:52:20.413544", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [Make sure the attempt to unlock succeeded] ******************************* task path: /tmp/tmpy_esuh65/tests/tests_bind_high_availability.yml:25 ok: [/cache/Fedora-Cloud-Base-31-20201030.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Assert idempotency] ****************************************************** task path: /tmp/tmpy_esuh65/tests/tests_bind_high_availability.yml:31 included: /tmp/tmpy_esuh65/tests/tasks/verify_idempotency.yml for /cache/Fedora-Cloud-Base-31-20201030.0.x86_64.qcow2 TASK [Use nbde_client role - idempotency check] ******************************** task path: /tmp/tmpy_esuh65/tests/tasks/verify_idempotency.yml:2 TASK [linux-system-roles.nbde_client : Set version specific variables] ********* task path: /tmp/tmpy_esuh65/tasks/main.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201030.0.x86_64.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/tmpy_esuh65/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.nbde_client : Include the appropriate provider tasks] *** task path: /tmp/tmpy_esuh65/tasks/main.yml:17 included: /tmp/tmpy_esuh65/tasks/main-clevis.yml for /cache/Fedora-Cloud-Base-31-20201030.0.x86_64.qcow2 TASK [linux-system-roles.nbde_client : Ensure required packages are installed] *** task path: /tmp/tmpy_esuh65/tasks/main-clevis.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201030.0.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": ["Installed: clevis", "Installed: clevis-dracut", "Installed: clevis-luks", "Installed: clevis-systemd"]} TASK [linux-system-roles.nbde_client : Check whether devices are at the desired state] *** task path: /tmp/tmpy_esuh65/tasks/main-clevis.yml:7 ok: [/cache/Fedora-Cloud-Base-31-20201030.0.x86_64.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/tmpy_esuh65/tasks/main-clevis.yml:17 skipping: [/cache/Fedora-Cloud-Base-31-20201030.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.nbde_client : Ensure we transfer key files] *********** task path: /tmp/tmpy_esuh65/tasks/main-clevis.yml:25 skipping: [/cache/Fedora-Cloud-Base-31-20201030.0.x86_64.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/tmpy_esuh65/tasks/main-clevis.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201030.0.x86_64.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/tmpy_esuh65/tasks/main-clevis.yml:47 skipping: [/cache/Fedora-Cloud-Base-31-20201030.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify idempotency of clevis operations] ********************************* task path: /tmp/tmpy_esuh65/tests/tasks/verify_idempotency.yml:6 ok: [/cache/Fedora-Cloud-Base-31-20201030.0.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Clean up test environment] *********************************************** task path: /tmp/tmpy_esuh65/tests/tests_bind_high_availability.yml:35 included: /tmp/tmpy_esuh65/tests/tasks/cleanup_test.yml for /cache/Fedora-Cloud-Base-31-20201030.0.x86_64.qcow2 TASK [Clean up dummy testing device] ******************************************* task path: /tmp/tmpy_esuh65/tests/tasks/cleanup_test.yml:2 changed: [/cache/Fedora-Cloud-Base-31-20201030.0.x86_64.qcow2] => {"changed": true, "path": "/tmp/.nbde_client_dev_test", "state": "absent"} TASK [Clean up dummy key file] ************************************************* task path: /tmp/tmpy_esuh65/tests/tasks/cleanup_test.yml:7 changed: [/cache/Fedora-Cloud-Base-31-20201030.0.x86_64.qcow2 -> localhost] => {"changed": true, "path": "/tmp/.nbde_client_dev_encryption_key", "state": "absent"} TASK [Clean up dummy key file on managed host] ********************************* task path: /tmp/tmpy_esuh65/tests/tasks/cleanup_test.yml:13 ok: [/cache/Fedora-Cloud-Base-31-20201030.0.x86_64.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/tmpy_esuh65/handlers/main.yml:4 changed: [/cache/Fedora-Cloud-Base-31-20201030.0.x86_64.qcow2] => {"changed": true, "cmd": ["dracut", "-f"], "delta": "0:00:16.884461", "end": "2020-10-31 01:52:49.276862", "rc": 0, "start": "2020-10-31 01:52:32.392401", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/Fedora-Cloud-Base-31-20201030.0.x86_64.qcow2 : ok=37 changed=17 unreachable=0 failed=0 skipped=8 rescued=0 ignored=0 + cd /tmp/tmpy_esuh65/tests; TEST_SUBJECTS=/cache/Fedora-Cloud-Base-31-20201030.0.x86_64.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_nbde_client-24-e8d29a6-fedora-31-ovy8zajd/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmpy_esuh65/_setup.yml /tmp/tmpy_esuh65/tests/tests_default.yml ansible-playbook 2.8.16 config file = /etc/ansible/ansible.cfg configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python2.7/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 2.7.5 (default, Apr 2 2020, 13:16:51) [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)] Using /etc/ansible/ansible.cfg as config file PLAYBOOK: _setup.yml *********************************************************** 1 plays in /tmp/tmpy_esuh65/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmpy_esuh65/_setup.yml:5 ok: [/cache/Fedora-Cloud-Base-31-20201030.0.x86_64.qcow2] => { "groups": { "all": [ "/cache/Fedora-Cloud-Base-31-20201030.0.x86_64.qcow2" ], "localhost": [ "/cache/Fedora-Cloud-Base-31-20201030.0.x86_64.qcow2" ], "subjects": [ "/cache/Fedora-Cloud-Base-31-20201030.0.x86_64.qcow2" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmpy_esuh65/_setup.yml:6 skipping: [/cache/Fedora-Cloud-Base-31-20201030.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/Fedora-Cloud-Base-31-20201030.0.x86_64.qcow2 : ok=1 changed=0 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 PLAYBOOK: tests_default.yml **************************************************** 1 plays in /tmp/tmpy_esuh65/tests/tests_default.yml PLAY [Ensure that the role runs with default parameters] *********************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpy_esuh65/tests/tests_default.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201030.0.x86_64.qcow2] META: ran handlers TASK [linux-system-roles.nbde_client : Set version specific variables] ********* task path: /tmp/tmpy_esuh65/tasks/main.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201030.0.x86_64.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/tmpy_esuh65/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.nbde_client : Include the appropriate provider tasks] *** task path: /tmp/tmpy_esuh65/tasks/main.yml:17 included: /tmp/tmpy_esuh65/tasks/main-clevis.yml for /cache/Fedora-Cloud-Base-31-20201030.0.x86_64.qcow2 TASK [linux-system-roles.nbde_client : Ensure required packages are installed] *** task path: /tmp/tmpy_esuh65/tasks/main-clevis.yml:2 changed: [/cache/Fedora-Cloud-Base-31-20201030.0.x86_64.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: clevis", "Installed: clevis-dracut", "Installed: clevis-luks", "Installed: clevis-systemd", "Installed: luksmeta-9-6.fc31.x86_64", "Installed: libjose-10-5.fc31.x86_64", "Installed: clevis-13-1.fc31.x86_64", "Installed: clevis-dracut-13-1.fc31.x86_64", "Installed: clevis-luks-13-1.fc31.x86_64", "Installed: clevis-systemd-13-1.fc31.x86_64", "Installed: cryptsetup-2.3.4-1.fc31.x86_64", "Installed: dracut-network-050-61.git20200529.fc31.x86_64", "Installed: libluksmeta-9-6.fc31.x86_64", "Installed: tpm2-tss-2.3.1-1.fc31.x86_64", "Installed: tpm2-tools-4.0.1-1.fc31.x86_64", "Installed: nmap-ncat-2:7.80-2.fc31.x86_64", "Installed: jose-10-5.fc31.x86_64"]} TASK [linux-system-roles.nbde_client : Check whether devices are at the desired state] *** task path: /tmp/tmpy_esuh65/tasks/main-clevis.yml:7 skipping: [/cache/Fedora-Cloud-Base-31-20201030.0.x86_64.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/tmpy_esuh65/tasks/main-clevis.yml:17 skipping: [/cache/Fedora-Cloud-Base-31-20201030.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.nbde_client : Ensure we transfer key files] *********** task path: /tmp/tmpy_esuh65/tasks/main-clevis.yml:25 TASK [linux-system-roles.nbde_client : Perform clevis operations] ************** task path: /tmp/tmpy_esuh65/tasks/main-clevis.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201030.0.x86_64.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/tmpy_esuh65/tasks/main-clevis.yml:47 skipping: [/cache/Fedora-Cloud-Base-31-20201030.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/Fedora-Cloud-Base-31-20201030.0.x86_64.qcow2 : ok=5 changed=1 unreachable=0 failed=0 skipped=6 rescued=0 ignored=0 + cd /tmp/tmpy_esuh65/tests; TEST_SUBJECTS=/cache/Fedora-Cloud-Base-31-20201030.0.x86_64.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_nbde_client-24-e8d29a6-fedora-31-ovy8zajd/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmpy_esuh65/_setup.yml /tmp/tmpy_esuh65/tests/tests_default_vars.yml ansible-playbook 2.8.16 config file = /etc/ansible/ansible.cfg configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python2.7/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 2.7.5 (default, Apr 2 2020, 13:16:51) [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)] Using /etc/ansible/ansible.cfg as config file PLAYBOOK: _setup.yml *********************************************************** 1 plays in /tmp/tmpy_esuh65/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmpy_esuh65/_setup.yml:5 ok: [/cache/Fedora-Cloud-Base-31-20201030.0.x86_64.qcow2] => { "groups": { "all": [ "/cache/Fedora-Cloud-Base-31-20201030.0.x86_64.qcow2" ], "localhost": [ "/cache/Fedora-Cloud-Base-31-20201030.0.x86_64.qcow2" ], "subjects": [ "/cache/Fedora-Cloud-Base-31-20201030.0.x86_64.qcow2" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmpy_esuh65/_setup.yml:6 skipping: [/cache/Fedora-Cloud-Base-31-20201030.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/Fedora-Cloud-Base-31-20201030.0.x86_64.qcow2 : ok=1 changed=0 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 PLAYBOOK: tests_default_vars.yml *********************************************** 1 plays in /tmp/tmpy_esuh65/tests/tests_default_vars.yml PLAY [Ensure that the role declares all parameters in defaults] **************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpy_esuh65/tests/tests_default_vars.yml:2 ok: [/cache/Fedora-Cloud-Base-31-20201030.0.x86_64.qcow2] META: ran handlers TASK [linux-system-roles.nbde_client : Set version specific variables] ********* task path: /tmp/tmpy_esuh65/tasks/main.yml:4 ok: [/cache/Fedora-Cloud-Base-31-20201030.0.x86_64.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/tmpy_esuh65/vars/Fedora.yml"], "changed": false} TASK [linux-system-roles.nbde_client : Include the appropriate provider tasks] *** task path: /tmp/tmpy_esuh65/tasks/main.yml:17 included: /tmp/tmpy_esuh65/tasks/main-clevis.yml for /cache/Fedora-Cloud-Base-31-20201030.0.x86_64.qcow2 TASK [linux-system-roles.nbde_client : Ensure required packages are installed] *** task path: /tmp/tmpy_esuh65/tasks/main-clevis.yml:2 changed: [/cache/Fedora-Cloud-Base-31-20201030.0.x86_64.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: clevis", "Installed: clevis-dracut", "Installed: clevis-luks", "Installed: clevis-systemd", "Installed: luksmeta-9-6.fc31.x86_64", "Installed: libjose-10-5.fc31.x86_64", "Installed: clevis-13-1.fc31.x86_64", "Installed: clevis-dracut-13-1.fc31.x86_64", "Installed: clevis-luks-13-1.fc31.x86_64", "Installed: clevis-systemd-13-1.fc31.x86_64", "Installed: cryptsetup-2.3.4-1.fc31.x86_64", "Installed: dracut-network-050-61.git20200529.fc31.x86_64", "Installed: libluksmeta-9-6.fc31.x86_64", "Installed: tpm2-tss-2.3.1-1.fc31.x86_64", "Installed: tpm2-tools-4.0.1-1.fc31.x86_64", "Installed: nmap-ncat-2:7.80-2.fc31.x86_64", "Installed: jose-10-5.fc31.x86_64"]} TASK [linux-system-roles.nbde_client : Check whether devices are at the desired state] *** task path: /tmp/tmpy_esuh65/tasks/main-clevis.yml:7 skipping: [/cache/Fedora-Cloud-Base-31-20201030.0.x86_64.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/tmpy_esuh65/tasks/main-clevis.yml:17 skipping: [/cache/Fedora-Cloud-Base-31-20201030.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.nbde_client : Ensure we transfer key files] *********** task path: /tmp/tmpy_esuh65/tasks/main-clevis.yml:25 TASK [linux-system-roles.nbde_client : Perform clevis operations] ************** task path: /tmp/tmpy_esuh65/tasks/main-clevis.yml:37 skipping: [/cache/Fedora-Cloud-Base-31-20201030.0.x86_64.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/tmpy_esuh65/tasks/main-clevis.yml:47 skipping: [/cache/Fedora-Cloud-Base-31-20201030.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [assert] ****************************************************************** task path: /tmp/tmpy_esuh65/tests/tests_default_vars.yml:9 ok: [/cache/Fedora-Cloud-Base-31-20201030.0.x86_64.qcow2] => (item=nbde_client_provider) => { "ansible_loop_var": "item", "changed": false, "item": "nbde_client_provider", "msg": "All assertions passed" } ok: [/cache/Fedora-Cloud-Base-31-20201030.0.x86_64.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-Cloud-Base-31-20201030.0.x86_64.qcow2 : ok=6 changed=1 unreachable=0 failed=0 skipped=6 rescued=0 ignored=0 + cd /tmp/tmpy_esuh65/tests; TEST_SUBJECTS=/cache/Fedora-Cloud-Base-31-20201030.0.x86_64.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_nbde_client-24-e8d29a6-fedora-31-ovy8zajd/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmpy_esuh65/_setup.yml /tmp/tmpy_esuh65/tests/tests_include_vars_from_parent.yml ansible-playbook 2.8.16 config file = /etc/ansible/ansible.cfg configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python2.7/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 2.7.5 (default, Apr 2 2020, 13:16:51) [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)] Using /etc/ansible/ansible.cfg as config file PLAYBOOK: _setup.yml *********************************************************** 1 plays in /tmp/tmpy_esuh65/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmpy_esuh65/_setup.yml:5 ok: [/cache/Fedora-Cloud-Base-31-20201030.0.x86_64.qcow2] => { "groups": { "all": [ "/cache/Fedora-Cloud-Base-31-20201030.0.x86_64.qcow2" ], "localhost": [ "/cache/Fedora-Cloud-Base-31-20201030.0.x86_64.qcow2" ], "subjects": [ "/cache/Fedora-Cloud-Base-31-20201030.0.x86_64.qcow2" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmpy_esuh65/_setup.yml:6 skipping: [/cache/Fedora-Cloud-Base-31-20201030.0.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/Fedora-Cloud-Base-31-20201030.0.x86_64.qcow2 : ok=1 changed=0 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 PLAYBOOK: tests_include_vars_from_parent.yml *********************************** 1 plays in /tmp/tmpy_esuh65/tests/tests_include_vars_from_parent.yml PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpy_esuh65/tests/tests_include_vars_from_parent.yml:1 ok: [/cache/Fedora-Cloud-Base-31-20201030.0.x86_64.qcow2] META: ran handlers TASK [create var file in caller that can override the one in called role] ****** task path: /tmp/tmpy_esuh65/tests/tests_include_vars_from_parent.yml:3 fatal: [/cache/Fedora-Cloud-Base-31-20201030.0.x86_64.qcow2]: FAILED! => {"msg": "Ansible's unique filter does not support case_sensitive nor attribute parameters, you need a newer version of Jinja2 that provides their version of the filter."} PLAY RECAP ********************************************************************* /cache/Fedora-Cloud-Base-31-20201030.0.x86_64.qcow2 : ok=2 changed=0 unreachable=0 failed=1 skipped=1 rescued=0 ignored=0