# STDOUT: ---v---v---v---v---v--- ansible-playbook [core 2.14.4] config file = /etc/ansible/ansible.cfg configured module search path = ['/home/jenkins/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /opt/ansible-2.14/lib/python3.9/site-packages/ansible ansible collection location = /WORKDIR/git-weekly-ciy7e8zumi/.collection executable location = /opt/ansible-2.14/bin/ansible-playbook python version = 3.9.16 (main, Jan 17 2023, 18:53:15) [GCC 8.5.0 20210514 (Red Hat 8.5.0-18)] (/opt/ansible-2.14/bin/python3.9) jinja version = 3.1.2 libyaml = True Using /etc/ansible/ansible.cfg as config file Skipping callback 'debug', as we already have a stdout callback. Skipping callback 'default', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. PLAYBOOK: tests_default.yml **************************************************** 1 plays in /WORKDIR/git-weekly-ciy7e8zumi/tests/tests_default.yml PLAY [Ensure that the rule runs with default parameters] *********************** TASK [Run the role. If reboot is not required - the play succeeds.] ************ task path: /WORKDIR/git-weekly-ciy7e8zumi/tests/tests_default.yml:10 Saturday 27 May 2023 07:48:49 +0000 (0:00:00.024) 0:00:00.024 ********** TASK [fedora.linux_system_roles.kdump : Ensure ansible_facts used by role] ***** task path: /WORKDIR/git-weekly-ciy7e8zumi/.collection/ansible_collections/fedora/linux_system_roles/roles/kdump/tasks/main.yml:2 Saturday 27 May 2023 07:48:49 +0000 (0:00:00.041) 0:00:00.065 ********** included: /WORKDIR/git-weekly-ciy7e8zumi/.collection/ansible_collections/fedora/linux_system_roles/roles/kdump/tasks/set_vars.yml for sut TASK [fedora.linux_system_roles.kdump : Ensure ansible_facts used by role] ***** task path: /WORKDIR/git-weekly-ciy7e8zumi/.collection/ansible_collections/fedora/linux_system_roles/roles/kdump/tasks/set_vars.yml:2 Saturday 27 May 2023 07:48:49 +0000 (0:00:00.023) 0:00:00.089 ********** ok: [sut] TASK [fedora.linux_system_roles.kdump : Install required packages] ************* task path: /WORKDIR/git-weekly-ciy7e8zumi/.collection/ansible_collections/fedora/linux_system_roles/roles/kdump/tasks/main.yml:5 Saturday 27 May 2023 07:48:49 +0000 (0:00:00.658) 0:00:00.747 ********** changed: [sut] => { "changed": true, "rc": 0, "results": [ "Installed: zstd-1.5.5-1.fc36.x86_64", "Installed: dracut-network-057-3.fc36.x86_64", "Installed: dracut-squash-057-3.fc36.x86_64", "Installed: squashfs-tools-4.5.1-1.fc36.x86_64", "Installed: kexec-tools-2.0.25-1.fc36.x86_64", "Installed: ethtool-2:6.2-1.fc36.x86_64", "Installed: lzo-2.10-6.fc36.x86_64", "Installed: snappy-1.1.9-4.fc36.x86_64" ] } TASK [fedora.linux_system_roles.kdump : Ensure that kdump is enabled] ********** task path: /WORKDIR/git-weekly-ciy7e8zumi/.collection/ansible_collections/fedora/linux_system_roles/roles/kdump/tasks/main.yml:10 Saturday 27 May 2023 07:48:56 +0000 (0:00:06.104) 0:00:06.851 ********** changed: [sut] => { "changed": true, "enabled": true, "name": "kdump", "status": { "ActiveEnterTimestampMonotonic": "0", "ActiveExitTimestampMonotonic": "0", "ActiveState": "inactive", "After": "network-online.target remote-fs.target systemd-journald.socket network.target basic.target system.slice", "AllowIsolate": "no", "AssertResult": "no", "AssertTimestampMonotonic": "0", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "CPUAccounting": "yes", "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": "yes", "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", "CleanResult": "success", "CollectMode": "inactive", "ConditionResult": "no", "ConditionTimestampMonotonic": "0", "ConfigurationDirectoryMode": "0755", "ControlPID": "0", "CoredumpFilter": "0x33", "DefaultDependencies": "no", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "Crash recovery kernel arming", "DevicePolicy": "auto", "DynamicUser": "no", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "0", "ExecMainStartTimestampMonotonic": "0", "ExecMainStatus": "0", "ExecReload": "{ path=/usr/bin/kdumpctl ; argv[]=/usr/bin/kdumpctl reload ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecReloadEx": "{ path=/usr/bin/kdumpctl ; argv[]=/usr/bin/kdumpctl reload ; flags= ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecStart": "{ path=/usr/bin/kdumpctl ; argv[]=/usr/bin/kdumpctl start ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecStartEx": "{ path=/usr/bin/kdumpctl ; argv[]=/usr/bin/kdumpctl start ; flags= ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecStop": "{ path=/usr/bin/kdumpctl ; argv[]=/usr/bin/kdumpctl stop ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecStopEx": "{ path=/usr/bin/kdumpctl ; argv[]=/usr/bin/kdumpctl stop ; flags= ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExitType": "main", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FinalKillSignal": "9", "FragmentPath": "/usr/lib/systemd/system/kdump.service", "FreezerState": "running", "GID": "[not set]", "GuessMainPID": "yes", "IOAccounting": "no", "IOReadBytes": "18446744073709551615", "IOReadOperations": "18446744073709551615", "IOSchedulingClass": "2", "IOSchedulingPriority": "4", "IOWeight": "[not set]", "IOWriteBytes": "18446744073709551615", "IOWriteOperations": "18446744073709551615", "IPAccounting": "no", "IPEgressBytes": "[no data]", "IPEgressPackets": "[no data]", "IPIngressBytes": "[no data]", "IPIngressPackets": "[no data]", "Id": "kdump.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": "infinity", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "8388608", "LimitMEMLOCKSoft": "8388608", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "524288", "LimitNOFILESoft": "1024", "LimitNPROC": "14741", "LimitNPROCSoft": "14741", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "14741", "LimitSIGPENDINGSoft": "14741", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "0", "ManagedOOMMemoryPressure": "auto", "ManagedOOMMemoryPressureLimit": "0", "ManagedOOMPreference": "none", "ManagedOOMSwap": "auto", "MemoryAccounting": "yes", "MemoryAvailable": "infinity", "MemoryCurrent": "[not set]", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAPolicy": "n/a", "Names": "kdump.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMPolicy": "stop", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "OnSuccessJobMode": "fail", "Perpetual": "no", "PrivateDevices": "no", "PrivateIPC": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProcSubset": "all", "ProtectClock": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectHostname": "no", "ProtectKernelLogs": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectProc": "default", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "ReloadResult": "success", "RemainAfterExit": "yes", "RemoveIPC": "no", "Requires": "system.slice", "Restart": "no", "RestartKillSignal": "15", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "RuntimeRandomizedExtraUSec": "0", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "0", "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": "2147483646", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "[not set]", "TasksMax": "4422", "TimeoutAbortUSec": "1min 30s", "TimeoutCleanUSec": "infinity", "TimeoutStartFailureMode": "terminate", "TimeoutStartUSec": "infinity", "TimeoutStopFailureMode": "terminate", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "oneshot", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "disabled", "UnitFileState": "disabled", "UtmpMode": "init", "WatchdogSignal": "6", "WatchdogTimestampMonotonic": "0", "WatchdogUSec": "infinity" } } TASK [fedora.linux_system_roles.kdump : Include SSH tasks] ********************* task path: /WORKDIR/git-weekly-ciy7e8zumi/.collection/ansible_collections/fedora/linux_system_roles/roles/kdump/tasks/main.yml:15 Saturday 27 May 2023 07:48:56 +0000 (0:00:00.872) 0:00:07.724 ********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.kdump : Get mode of /etc/kdump.conf if it exists] *** task path: /WORKDIR/git-weekly-ciy7e8zumi/.collection/ansible_collections/fedora/linux_system_roles/roles/kdump/tasks/main.yml:20 Saturday 27 May 2023 07:48:56 +0000 (0:00:00.032) 0:00:07.757 ********** ok: [sut] => { "changed": false, "stat": { "atime": 1685173734.0239408, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 24, "charset": "us-ascii", "checksum": "e4ff0eeac884812a2d43912c462efdf210c9e303", "ctime": 1685173733.9689407, "dev": 51714, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 195869, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0644", "mtime": 1685173733.9689407, "nlink": 1, "path": "/etc/kdump.conf", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 8892, "uid": 0, "version": "3684978971", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [fedora.linux_system_roles.kdump : Generate /etc/kdump.conf] ************** task path: /WORKDIR/git-weekly-ciy7e8zumi/.collection/ansible_collections/fedora/linux_system_roles/roles/kdump/tasks/main.yml:25 Saturday 27 May 2023 07:48:57 +0000 (0:00:00.330) 0:00:08.087 ********** NOTIFIED HANDLER fedora.linux_system_roles.kdump : Restart kdump for sut changed: [sut] => { "backup_file": "/etc/kdump.conf.6345.2023-05-27@07:48:58~", "changed": true, "checksum": "49753a78e0b0081b823c76ab8e5fa749be064f0b", "dest": "/etc/kdump.conf", "gid": 0, "group": "root", "md5sum": "5a5cbe0e401b4aff1028a6aa75b9d7b7", "mode": "0644", "owner": "root", "secontext": "system_u:object_r:kdump_etc_t:s0", "size": 77, "src": "/root/.ansible/tmp/ansible-tmp-1685173737.3638115-2459-58422688393418/source", "state": "file", "uid": 0 } TASK [fedora.linux_system_roles.kdump : Find out reserved memory for the crash kernel] *** task path: /WORKDIR/git-weekly-ciy7e8zumi/.collection/ansible_collections/fedora/linux_system_roles/roles/kdump/tasks/main.yml:33 Saturday 27 May 2023 07:48:58 +0000 (0:00:00.767) 0:00:08.855 ********** ok: [sut] => { "changed": false, "content": "MAo=", "encoding": "base64", "source": "/sys/kernel/kexec_crash_size" } TASK [fedora.linux_system_roles.kdump : Set the kdump_reboot_required fact] **** task path: /WORKDIR/git-weekly-ciy7e8zumi/.collection/ansible_collections/fedora/linux_system_roles/roles/kdump/tasks/main.yml:38 Saturday 27 May 2023 07:48:58 +0000 (0:00:00.317) 0:00:09.173 ********** ok: [sut] => { "ansible_facts": { "kdump_reboot_required": true }, "changed": false } TASK [fedora.linux_system_roles.kdump : Use kdumpctl reset-crashkernel if needed] *** task path: /WORKDIR/git-weekly-ciy7e8zumi/.collection/ansible_collections/fedora/linux_system_roles/roles/kdump/tasks/main.yml:42 Saturday 27 May 2023 07:48:58 +0000 (0:00:00.041) 0:00:09.214 ********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.kdump : Use grubby to update crashkernel=auto if needed] *** task path: /WORKDIR/git-weekly-ciy7e8zumi/.collection/ansible_collections/fedora/linux_system_roles/roles/kdump/tasks/main.yml:53 Saturday 27 May 2023 07:48:58 +0000 (0:00:00.026) 0:00:09.240 ********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.kdump : Fail if reboot is required and kdump_reboot_ok is false] *** task path: /WORKDIR/git-weekly-ciy7e8zumi/.collection/ansible_collections/fedora/linux_system_roles/roles/kdump/tasks/main.yml:64 Saturday 27 May 2023 07:48:58 +0000 (0:00:00.025) 0:00:09.266 ********** fatal: [sut]: FAILED! => { "changed": false } MSG: "Reboot is required to apply changes. Re-execute the role after boot to ensure that kdump is working." TASK [If reboot is required - assert the expected fail message] **************** task path: /WORKDIR/git-weekly-ciy7e8zumi/tests/tests_default.yml:14 Saturday 27 May 2023 07:48:58 +0000 (0:00:00.029) 0:00:09.295 ********** ok: [sut] => { "changed": false } MSG: All assertions passed RUNNING HANDLER [fedora.linux_system_roles.kdump : Restart kdump] ************** task path: /WORKDIR/git-weekly-ciy7e8zumi/.collection/ansible_collections/fedora/linux_system_roles/roles/kdump/handlers/main.yml:2 Saturday 27 May 2023 07:48:58 +0000 (0:00:00.036) 0:00:09.332 ********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } PLAY RECAP ********************************************************************* sut : ok=9 changed=3 unreachable=0 failed=0 skipped=4 rescued=1 ignored=0 Saturday 27 May 2023 07:48:58 +0000 (0:00:00.034) 0:00:09.366 ********** =============================================================================== fedora.linux_system_roles.kdump : Install required packages ------------- 6.10s /WORKDIR/git-weekly-ciy7e8zumi/.collection/ansible_collections/fedora/linux_system_roles/roles/kdump/tasks/main.yml:5 fedora.linux_system_roles.kdump : Ensure that kdump is enabled ---------- 0.87s /WORKDIR/git-weekly-ciy7e8zumi/.collection/ansible_collections/fedora/linux_system_roles/roles/kdump/tasks/main.yml:10 fedora.linux_system_roles.kdump : Generate /etc/kdump.conf -------------- 0.77s /WORKDIR/git-weekly-ciy7e8zumi/.collection/ansible_collections/fedora/linux_system_roles/roles/kdump/tasks/main.yml:25 fedora.linux_system_roles.kdump : Ensure ansible_facts used by role ----- 0.66s /WORKDIR/git-weekly-ciy7e8zumi/.collection/ansible_collections/fedora/linux_system_roles/roles/kdump/tasks/set_vars.yml:2 fedora.linux_system_roles.kdump : Get mode of /etc/kdump.conf if it exists --- 0.33s /WORKDIR/git-weekly-ciy7e8zumi/.collection/ansible_collections/fedora/linux_system_roles/roles/kdump/tasks/main.yml:20 fedora.linux_system_roles.kdump : Find out reserved memory for the crash kernel --- 0.32s /WORKDIR/git-weekly-ciy7e8zumi/.collection/ansible_collections/fedora/linux_system_roles/roles/kdump/tasks/main.yml:33 Run the role. If reboot is not required - the play succeeds. ------------ 0.04s /WORKDIR/git-weekly-ciy7e8zumi/tests/tests_default.yml:10 --------------------- fedora.linux_system_roles.kdump : Set the kdump_reboot_required fact ---- 0.04s /WORKDIR/git-weekly-ciy7e8zumi/.collection/ansible_collections/fedora/linux_system_roles/roles/kdump/tasks/main.yml:38 If reboot is required - assert the expected fail message ---------------- 0.04s /WORKDIR/git-weekly-ciy7e8zumi/tests/tests_default.yml:14 --------------------- fedora.linux_system_roles.kdump : Restart kdump ------------------------- 0.03s /WORKDIR/git-weekly-ciy7e8zumi/.collection/ansible_collections/fedora/linux_system_roles/roles/kdump/handlers/main.yml:2 fedora.linux_system_roles.kdump : Include SSH tasks --------------------- 0.03s /WORKDIR/git-weekly-ciy7e8zumi/.collection/ansible_collections/fedora/linux_system_roles/roles/kdump/tasks/main.yml:15 fedora.linux_system_roles.kdump : Fail if reboot is required and kdump_reboot_ok is false --- 0.03s /WORKDIR/git-weekly-ciy7e8zumi/.collection/ansible_collections/fedora/linux_system_roles/roles/kdump/tasks/main.yml:64 fedora.linux_system_roles.kdump : Use kdumpctl reset-crashkernel if needed --- 0.03s /WORKDIR/git-weekly-ciy7e8zumi/.collection/ansible_collections/fedora/linux_system_roles/roles/kdump/tasks/main.yml:42 fedora.linux_system_roles.kdump : Use grubby to update crashkernel=auto if needed --- 0.03s /WORKDIR/git-weekly-ciy7e8zumi/.collection/ansible_collections/fedora/linux_system_roles/roles/kdump/tasks/main.yml:53 fedora.linux_system_roles.kdump : Ensure ansible_facts used by role ----- 0.02s /WORKDIR/git-weekly-ciy7e8zumi/.collection/ansible_collections/fedora/linux_system_roles/roles/kdump/tasks/main.yml:2 ---^---^---^---^---^--- # STDERR: ---v---v---v---v---v--- ---^---^---^---^---^---