# STDOUT: ---v---v---v---v---v--- Using /etc/ansible/ansible.cfg as config file PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* Tuesday 19 July 2022 15:58:21 +0000 (0:00:00.029) 0:00:00.029 ********** ok: [sut] TASK [create var file in caller that can override the one in called role] ****** Tuesday 19 July 2022 15:58:22 +0000 (0:00:00.872) 0:00:00.902 ********** changed: [sut -> localhost] => (item=RedHat-8.7) => { "ansible_loop_var": "item", "changed": true, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "dest": "/WORKDIR/dist-git-nbde_client-master-PaRNfn/tests/roles/caller/vars/RedHat-8.7.yml", "gid": 1001, "group": "jenkins", "item": "RedHat-8.7", "md5sum": "5a57da448a1d752b982858b38aab344d", "mode": "0600", "owner": "jenkins", "size": 23, "src": "/home/jenkins/.ansible/tmp/ansible-tmp-1658246302.5960524-4553-191656504245075/source", "state": "file", "uid": 1000090000 } changed: [sut -> localhost] => (item=RedHat-8) => { "ansible_loop_var": "item", "changed": true, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "dest": "/WORKDIR/dist-git-nbde_client-master-PaRNfn/tests/roles/caller/vars/RedHat-8.yml", "gid": 1001, "group": "jenkins", "item": "RedHat-8", "md5sum": "5a57da448a1d752b982858b38aab344d", "mode": "0600", "owner": "jenkins", "size": 23, "src": "/home/jenkins/.ansible/tmp/ansible-tmp-1658246303.3816288-4553-95439038468/source", "state": "file", "uid": 1000090000 } changed: [sut -> localhost] => (item=RedHat_8.7) => { "ansible_loop_var": "item", "changed": true, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "dest": "/WORKDIR/dist-git-nbde_client-master-PaRNfn/tests/roles/caller/vars/RedHat_8.7.yml", "gid": 1001, "group": "jenkins", "item": "RedHat_8.7", "md5sum": "5a57da448a1d752b982858b38aab344d", "mode": "0600", "owner": "jenkins", "size": 23, "src": "/home/jenkins/.ansible/tmp/ansible-tmp-1658246304.0120533-4553-177856952826761/source", "state": "file", "uid": 1000090000 } changed: [sut -> localhost] => (item=RedHat_8) => { "ansible_loop_var": "item", "changed": true, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "dest": "/WORKDIR/dist-git-nbde_client-master-PaRNfn/tests/roles/caller/vars/RedHat_8.yml", "gid": 1001, "group": "jenkins", "item": "RedHat_8", "md5sum": "5a57da448a1d752b982858b38aab344d", "mode": "0600", "owner": "jenkins", "size": 23, "src": "/home/jenkins/.ansible/tmp/ansible-tmp-1658246304.5358899-4553-182143801651315/source", "state": "file", "uid": 1000090000 } changed: [sut -> localhost] => (item=RedHat) => { "ansible_loop_var": "item", "changed": true, "checksum": "870b2314d3f4184a363b31373f07abb444f26444", "dest": "/WORKDIR/dist-git-nbde_client-master-PaRNfn/tests/roles/caller/vars/RedHat.yml", "gid": 1001, "group": "jenkins", "item": "RedHat", "md5sum": "5a57da448a1d752b982858b38aab344d", "mode": "0600", "owner": "jenkins", "size": 23, "src": "/home/jenkins/.ansible/tmp/ansible-tmp-1658246305.0759888-4553-255169234884368/source", "state": "file", "uid": 1000090000 } TASK [include_role : {{ roletoinclude }}] ************************************** Tuesday 19 July 2022 15:58:25 +0000 (0:00:03.078) 0:00:03.980 ********** TASK [linux-system-roles.nbde_client : Set version specific variables] ********* Tuesday 19 July 2022 15:58:25 +0000 (0:00:00.055) 0:00:04.036 ********** included: /WORKDIR/dist-git-nbde_client-master-PaRNfn/tests/roles/linux-system-roles.nbde_client/tasks/set_vars.yml for sut TASK [linux-system-roles.nbde_client : Ensure ansible_facts used by role] ****** Tuesday 19 July 2022 15:58:25 +0000 (0:00:00.076) 0:00:04.113 ********** ok: [sut] TASK [linux-system-roles.nbde_client : Set platform/version specific variables] *** Tuesday 19 July 2022 15:58:26 +0000 (0:00:00.395) 0:00:04.508 ********** ok: [sut] => { "ansible_facts": { "__nbde_client_dracut_settings": [ "kernel_cmdline+=\" rd.neednet=1 \"", "omit_dracutmodules+=\" ifcfg \"" ], "__nbde_client_initramfs_update_cmd": "dracut -fv --regenerate-all\n", "__nbde_client_packages": [ "clevis", "clevis-dracut", "clevis-luks", "clevis-systemd", "iproute", "NetworkManager" ] }, "ansible_included_var_files": [ "/WORKDIR/dist-git-nbde_client-master-PaRNfn/tests/roles/linux-system-roles.nbde_client/vars/RedHat_8.yml" ], "changed": false } TASK [linux-system-roles.nbde_client : Include the appropriate provider tasks] *** Tuesday 19 July 2022 15:58:26 +0000 (0:00:00.053) 0:00:04.562 ********** included: /WORKDIR/dist-git-nbde_client-master-PaRNfn/tests/roles/linux-system-roles.nbde_client/tasks/main-clevis.yml for sut TASK [linux-system-roles.nbde_client : Ensure required packages are installed] *** Tuesday 19 July 2022 15:58:26 +0000 (0:00:00.055) 0:00:04.617 ********** changed: [sut] => { "changed": true, "rc": 0, "results": [ "Installed: tpm2-tools-4.1.1-5.el8.x86_64", "Installed: libjose-10-2.el8.x86_64", "Installed: luksmeta-9-4.el8.x86_64", "Installed: jose-10-2.el8.x86_64", "Installed: jq-1.6-3.el8.x86_64", "Installed: clevis-15-8.el8.x86_64", "Installed: clevis-dracut-15-8.el8.x86_64", "Installed: clevis-luks-15-8.el8.x86_64", "Installed: clevis-systemd-15-8.el8.x86_64", "Installed: cryptsetup-2.3.7-2.el8.x86_64", "Installed: oniguruma-6.8.2-2.el8.x86_64", "Installed: libluksmeta-9-4.el8.x86_64" ] } TASK [linux-system-roles.nbde_client : Enable clevis askpass unit] ************* Tuesday 19 July 2022 15:58:33 +0000 (0:00:07.217) 0:00:11.834 ********** changed: [sut] => { "changed": true, "enabled": true, "name": "clevis-luks-askpass.path", "status": { "ActiveEnterTimestampMonotonic": "0", "ActiveExitTimestampMonotonic": "0", "ActiveState": "inactive", "After": "-.mount", "AllowIsolate": "no", "AssertResult": "no", "AssertTimestampMonotonic": "0", "Before": "clevis-luks-askpass.service cryptsetup-pre.target", "CanFreeze": "no", "CanIsolate": "no", "CanReload": "no", "CanStart": "yes", "CanStop": "yes", "CollectMode": "inactive", "ConditionResult": "no", "ConditionTimestampMonotonic": "0", "DefaultDependencies": "no", "Description": "Forward Password Requests to Clevis Directory Watch", "DirectoryMode": "0755", "Documentation": "man:clevis-luks-unlockers(7)", "FailureAction": "none", "FragmentPath": "/usr/lib/systemd/system/clevis-luks-askpass.path", "FreezerState": "running", "Id": "clevis-luks-askpass.path", "IgnoreOnIsolate": "no", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestampMonotonic": "0", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "LoadState": "loaded", "MakeDirectory": "yes", "Names": "clevis-luks-askpass.path", "NeedDaemonReload": "no", "OnFailureJobMode": "replace", "Paths": "/run/systemd/ask-password (DirectoryNotEmpty)", "Perpetual": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "Requires": "-.mount", "RequiresMountsFor": "/run/systemd/ask-password", "Result": "success", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StateChangeTimestampMonotonic": "0", "StopWhenUnneeded": "no", "SubState": "dead", "SuccessAction": "none", "Transient": "no", "Triggers": "clevis-luks-askpass.service", "Unit": "clevis-luks-askpass.service", "UnitFilePreset": "disabled", "UnitFileState": "disabled", "Wants": "cryptsetup-pre.target" } } TASK [linux-system-roles.nbde_client : Generate nbde_client dracut config] ***** Tuesday 19 July 2022 15:58:34 +0000 (0:00:00.942) 0:00:12.776 ********** changed: [sut] => { "changed": true, "checksum": "baf43726e7fec14c1cf60a5127853f5988def29a", "dest": "/etc/dracut.conf.d/nbde_client.conf", "gid": 0, "group": "root", "md5sum": "8ac814b21125f3c41430b13965169aff", "mode": "0444", "owner": "root", "secontext": "system_u:object_r:etc_t:s0", "size": 91, "src": "/root/.ansible/tmp/ansible-tmp-1658246314.4727583-4698-74974595268975/source", "state": "file", "uid": 0 } TASK [linux-system-roles.nbde_client : Check whether devices are at the desired state] *** Tuesday 19 July 2022 15:58:35 +0000 (0:00:00.673) 0:00:13.450 ********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.nbde_client : Create temporary directory to hold key files] *** Tuesday 19 July 2022 15:58:35 +0000 (0:00:00.030) 0:00:13.481 ********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.nbde_client : Ensure we transfer key files] *********** Tuesday 19 July 2022 15:58:35 +0000 (0:00:00.031) 0:00:13.512 ********** TASK [linux-system-roles.nbde_client : Perform clevis operations] ************** Tuesday 19 July 2022 15:58:35 +0000 (0:00:00.025) 0:00:13.537 ********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.nbde_client : Remove temporary directory used to hold key files] *** Tuesday 19 July 2022 15:58:35 +0000 (0:00:00.030) 0:00:13.568 ********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.nbde_client : Deploy network flushing script] ********* Tuesday 19 July 2022 15:58:35 +0000 (0:00:00.031) 0:00:13.599 ********** changed: [sut] => { "changed": true, "checksum": "4543d4e7d1e66294cac47801a6b6675dcbceaa6c", "dest": "/usr/bin/nbde_client-network-flush", "gid": 0, "group": "root", "md5sum": "7947aade05c625cd8173078c3da0c37b", "mode": "0755", "owner": "root", "secontext": "system_u:object_r:bin_t:s0", "size": 1109, "src": "/root/.ansible/tmp/ansible-tmp-1658246315.294401-4719-24776302220108/source", "state": "file", "uid": 0 } TASK [linux-system-roles.nbde_client : Deploy network flushing service] ******** Tuesday 19 July 2022 15:58:35 +0000 (0:00:00.654) 0:00:14.254 ********** changed: [sut] => { "changed": true, "checksum": "dab1b7cd151ef2cd24efe8108020d2071b473cbe", "dest": "/etc/systemd/system/nbde_client-network-flush.service", "gid": 0, "group": "root", "md5sum": "e3a3412ce904074cd7d0dce03ae5d40c", "mode": "0644", "owner": "root", "secontext": "system_u:object_r:systemd_unit_file_t:s0", "size": 218, "src": "/root/.ansible/tmp/ansible-tmp-1658246315.953817-4729-130852409225817/source", "state": "file", "uid": 0 } TASK [linux-system-roles.nbde_client : Deploy nbde_client dracut network flushing module] *** Tuesday 19 July 2022 15:58:36 +0000 (0:00:00.666) 0:00:14.921 ********** changed: [sut] => { "changed": true, "dest": "/usr/lib/dracut/modules.d/60nbde_client/", "src": "/WORKDIR/dist-git-nbde_client-master-PaRNfn/tests/roles/linux-system-roles.nbde_client/files/nbde_client/" } TASK [linux-system-roles.nbde_client : Prepare for network flushing - reset autoconnect-priority] *** Tuesday 19 July 2022 15:58:37 +0000 (0:00:01.152) 0:00:16.073 ********** ok: [sut] => { "changed": false, "cmd": [ "/usr/bin/nbde_client-network-flush", "reset-autoconn-prio" ], "delta": "0:00:00.142014", "end": "2022-07-19 15:58:38.202629", "rc": 0, "start": "2022-07-19 15:58:38.060615" } TASK [linux-system-roles.nbde_client : Reload systemd config] ****************** Tuesday 19 July 2022 15:58:38 +0000 (0:00:00.526) 0:00:16.600 ********** ok: [sut] => { "changed": false, "name": null, "status": {} } TASK [linux-system-roles.nbde_client : Enable network flushing service] ******** Tuesday 19 July 2022 15:58:38 +0000 (0:00:00.541) 0:00:17.141 ********** changed: [sut] => { "changed": true, "enabled": true, "name": "nbde_client-network-flush.service", "status": { "ActiveEnterTimestampMonotonic": "0", "ActiveExitTimestampMonotonic": "0", "ActiveState": "inactive", "After": "basic.target system.slice sysinit.target systemd-journald.socket", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "no", "AssertTimestampMonotonic": "0", "Before": "network-pre.target shutdown.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "CPUAccounting": "no", "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": "yes", "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", "Delegate": "no", "Description": "Network flush service for nbde_client Ansible role", "DevicePolicy": "auto", "DynamicUser": "no", "EffectiveCPUs": "", "EffectiveMemoryNodes": "", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "0", "ExecMainStartTimestampMonotonic": "0", "ExecMainStatus": "0", "ExecStart": "{ path=/usr/bin/nbde_client-network-flush ; argv[]=/usr/bin/nbde_client-network-flush flush ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FragmentPath": "/etc/systemd/system/nbde_client-network-flush.service", "FreezerState": "running", "GID": "[not set]", "GuessMainPID": "yes", "IOAccounting": "no", "IOSchedulingClass": "0", "IOSchedulingPriority": "0", "IOWeight": "[not set]", "IPAccounting": "no", "IPEgressBytes": "18446744073709551615", "IPEgressPackets": "18446744073709551615", "IPIngressBytes": "18446744073709551615", "IPIngressPackets": "18446744073709551615", "Id": "nbde_client-network-flush.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestampMonotonic": "0", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "control-group", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "0", "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": "262144", "LimitNOFILESoft": "1024", "LimitNPROC": "14143", "LimitNPROCSoft": "14143", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "14143", "LimitSIGPENDINGSoft": "14143", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "0", "MemoryAccounting": "yes", "MemoryCurrent": "[not set]", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "MountFlags": "", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAMask": "", "NUMAPolicy": "n/a", "Names": "nbde_client-network-flush.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PermissionsStartOnly": "no", "Perpetual": "no", "PrivateDevices": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "sysinit.target system.slice", "Restart": "no", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "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", "StatusErrno": "0", "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": "22628", "TimeoutStartUSec": "1min 30s", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "simple", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "disabled", "UnitFileState": "disabled", "UtmpMode": "init", "Wants": "network-pre.target", "WatchdogTimestampMonotonic": "0", "WatchdogUSec": "0" } } TASK [caller : assert] ********************************************************* Tuesday 19 July 2022 15:58:39 +0000 (0:00:00.574) 0:00:17.716 ********** ok: [sut] => { "changed": false } MSG: All assertions passed PLAY RECAP ********************************************************************* sut : ok=16 changed=8 unreachable=0 failed=0 skipped=5 rescued=0 ignored=0 Tuesday 19 July 2022 15:58:39 +0000 (0:00:00.027) 0:00:17.744 ********** =============================================================================== linux-system-roles.nbde_client : Ensure required packages are installed --- 7.22s create var file in caller that can override the one in called role ------ 3.08s linux-system-roles.nbde_client : Deploy nbde_client dracut network flushing module --- 1.15s linux-system-roles.nbde_client : Enable clevis askpass unit ------------- 0.94s Gathering Facts --------------------------------------------------------- 0.87s linux-system-roles.nbde_client : Generate nbde_client dracut config ----- 0.67s linux-system-roles.nbde_client : Deploy network flushing service -------- 0.67s linux-system-roles.nbde_client : Deploy network flushing script --------- 0.65s linux-system-roles.nbde_client : Enable network flushing service -------- 0.57s linux-system-roles.nbde_client : Reload systemd config ------------------ 0.54s linux-system-roles.nbde_client : Prepare for network flushing - reset autoconnect-priority --- 0.53s linux-system-roles.nbde_client : Ensure ansible_facts used by role ------ 0.40s linux-system-roles.nbde_client : Set version specific variables --------- 0.08s include_role : {{ roletoinclude }} -------------------------------------- 0.06s linux-system-roles.nbde_client : Include the appropriate provider tasks --- 0.06s linux-system-roles.nbde_client : Set platform/version specific variables --- 0.05s linux-system-roles.nbde_client : Remove temporary directory used to hold key files --- 0.03s linux-system-roles.nbde_client : Create temporary directory to hold key files --- 0.03s linux-system-roles.nbde_client : Perform clevis operations -------------- 0.03s linux-system-roles.nbde_client : Check whether devices are at the desired state --- 0.03s ---^---^---^---^---^--- # STDERR: ---v---v---v---v---v--- /opt/ansible-2.9/lib/python3.6/site-packages/ansible/parsing/vault/__init__.py:44: CryptographyDeprecationWarning: Python 3.6 is no longer supported by the Python core team. Therefore, support for it is deprecated in cryptography and will be removed in a future release. from cryptography.exceptions import InvalidSignature ---^---^---^---^---^---