# STDOUT: ---v---v---v---v---v--- ansible-playbook 2.9.27 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.9/lib/python3.9/site-packages/ansible executable location = /opt/ansible-2.9/bin/ansible-playbook python version = 3.9.18 (main, Sep 7 2023, 00:00:00) [GCC 11.4.1 20230605 (Red Hat 11.4.1-2)] 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: tests_default_reboot.yml ********************************************* 1 plays in /WORKDIR/git-test-kdump-path-cleanup6hee1ozx/tests/tests_default_reboot.yml PLAY [Ensure that the rule runs with default parameters] *********************** TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-test-kdump-path-cleanup6hee1ozx/tests/tests_default_reboot.yml:2 Thursday 30 November 2023 18:54:56 +0000 (0:00:00.016) 0:00:00.016 ***** ok: [sut] META: ran handlers TASK [Run the role and reboot if necessary] ************************************ task path: /WORKDIR/git-test-kdump-path-cleanup6hee1ozx/tests/tests_default_reboot.yml:11 Thursday 30 November 2023 18:54:57 +0000 (0:00:00.958) 0:00:00.974 ***** TASK [linux-system-roles.kdump : Ensure ansible_facts used by role] ************ task path: /WORKDIR/git-test-kdump-path-cleanup6hee1ozx/tests/roles/linux-system-roles.kdump/tasks/main.yml:2 Thursday 30 November 2023 18:54:57 +0000 (0:00:00.064) 0:00:01.039 ***** included: /WORKDIR/git-test-kdump-path-cleanup6hee1ozx/tests/roles/linux-system-roles.kdump/tasks/set_vars.yml for sut TASK [linux-system-roles.kdump : Ensure ansible_facts used by role] ************ task path: /WORKDIR/git-test-kdump-path-cleanup6hee1ozx/tests/roles/linux-system-roles.kdump/tasks/set_vars.yml:2 Thursday 30 November 2023 18:54:57 +0000 (0:00:00.021) 0:00:01.060 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.kdump : Check if system is ostree] ******************** task path: /WORKDIR/git-test-kdump-path-cleanup6hee1ozx/tests/roles/linux-system-roles.kdump/tasks/set_vars.yml:11 Thursday 30 November 2023 18:54:57 +0000 (0:00:00.021) 0:00:01.082 ***** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [linux-system-roles.kdump : Set flag to indicate system is ostree] ******** task path: /WORKDIR/git-test-kdump-path-cleanup6hee1ozx/tests/roles/linux-system-roles.kdump/tasks/set_vars.yml:16 Thursday 30 November 2023 18:54:57 +0000 (0:00:00.213) 0:00:01.296 ***** ok: [sut] => { "ansible_facts": { "__kdump_is_ostree": false }, "changed": false } TASK [linux-system-roles.kdump : Install required packages] ******************** task path: /WORKDIR/git-test-kdump-path-cleanup6hee1ozx/tests/roles/linux-system-roles.kdump/tasks/main.yml:5 Thursday 30 November 2023 18:54:57 +0000 (0:00:00.032) 0:00:01.328 ***** ok: [sut] => { "changed": false, "rc": 0, "results": [ "grubby-8.28-26.el7.x86_64 providing grubby is already installed", "iproute-4.11.0-30.el7.x86_64 providing iproute is already installed", "kexec-tools-2.0.15-51.el7_9.3.x86_64 providing kexec-tools is already installed", "openssh-clients-7.4p1-23.el7_9.x86_64 providing openssh-clients is already installed" ] } TASK [linux-system-roles.kdump : Ensure that kdump is enabled] ***************** task path: /WORKDIR/git-test-kdump-path-cleanup6hee1ozx/tests/roles/linux-system-roles.kdump/tasks/main.yml:12 Thursday 30 November 2023 18:54:58 +0000 (0:00:01.217) 0:00:02.545 ***** ok: [sut] => { "changed": false, "enabled": true, "name": "kdump", "status": { "ActiveEnterTimestamp": "Thu 2023-11-30 18:35:40 UTC", "ActiveEnterTimestampMonotonic": "38027226", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "network-online.target basic.target systemd-journald.socket network.target remote-fs.target system.slice", "AllowIsolate": "no", "AmbientCapabilities": "0", "AssertResult": "yes", "AssertTimestamp": "Thu 2023-11-30 18:35:20 UTC", "AssertTimestampMonotonic": "17466098", "BlockIOAccounting": "no", "BlockIOWeight": "18446744073709551615", "CPUAccounting": "no", "CPUQuotaPerSecUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "18446744073709551615", "CanIsolate": "no", "CanReload": "yes", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "18446744073709551615", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Thu 2023-11-30 18:35:20 UTC", "ConditionTimestampMonotonic": "17466095", "ControlGroup": "/system.slice/kdump.service", "ControlPID": "0", "DefaultDependencies": "no", "Delegate": "no", "Description": "Crash recovery kernel arming", "DevicePolicy": "auto", "ExecMainCode": "1", "ExecMainExitTimestamp": "Thu 2023-11-30 18:35:40 UTC", "ExecMainExitTimestampMonotonic": "38026714", "ExecMainPID": "1212", "ExecMainStartTimestamp": "Thu 2023-11-30 18:35:20 UTC", "ExecMainStartTimestampMonotonic": "17466851", "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 }", "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 }", "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 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FragmentPath": "/usr/lib/systemd/system/kdump.service", "GuessMainPID": "yes", "IOScheduling": "0", "Id": "kdump.service", "IgnoreOnIsolate": "no", "IgnoreOnSnapshot": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestamp": "Thu 2023-11-30 18:35:20 UTC", "InactiveExitTimestampMonotonic": "17466905", "JobTimeoutAction": "none", "JobTimeoutUSec": "0", "KillMode": "control-group", "KillSignal": "15", "LimitAS": "18446744073709551615", "LimitCORE": "18446744073709551615", "LimitCPU": "18446744073709551615", "LimitDATA": "18446744073709551615", "LimitFSIZE": "18446744073709551615", "LimitLOCKS": "18446744073709551615", "LimitMEMLOCK": "65536", "LimitMSGQUEUE": "819200", "LimitNICE": "0", "LimitNOFILE": "4096", "LimitNPROC": "14311", "LimitRSS": "18446744073709551615", "LimitRTPRIO": "0", "LimitRTTIME": "18446744073709551615", "LimitSIGPENDING": "14311", "LimitSTACK": "18446744073709551615", "LoadState": "loaded", "MainPID": "0", "MemoryAccounting": "no", "MemoryCurrent": "18446744073709551615", "MemoryLimit": "18446744073709551615", "MountFlags": "0", "Names": "kdump.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PermissionsStartOnly": "no", "PrivateDevices": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "ProtectHome": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "yes", "Requires": "system.slice", "Restart": "no", "RestartUSec": "100ms", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitInterval": "0", "StartupBlockIOWeight": "18446744073709551615", "StartupCPUShares": "18446744073709551615", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "exited", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "no", "TasksCurrent": "18446744073709551615", "TasksMax": "18446744073709551615", "TimeoutStartUSec": "0", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "oneshot", "UMask": "0022", "UnitFilePreset": "enabled", "UnitFileState": "enabled", "WantedBy": "multi-user.target", "WatchdogTimestampMonotonic": "0", "WatchdogUSec": "0" } } TASK [linux-system-roles.kdump : Include SSH tasks] **************************** task path: /WORKDIR/git-test-kdump-path-cleanup6hee1ozx/tests/roles/linux-system-roles.kdump/tasks/main.yml:17 Thursday 30 November 2023 18:54:59 +0000 (0:00:00.469) 0:00:03.014 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.kdump : Get mode of /etc/kdump.conf if it exists] ***** task path: /WORKDIR/git-test-kdump-path-cleanup6hee1ozx/tests/roles/linux-system-roles.kdump/tasks/main.yml:22 Thursday 30 November 2023 18:54:59 +0000 (0:00:00.022) 0:00:03.037 ***** ok: [sut] => { "changed": false, "stat": { "atime": 1701369320.5554426, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 16, "charset": "us-ascii", "checksum": "adb37a9eb1d010f11b1cbc1f109bc9a591f8117b", "ctime": 1701274789.7019045, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 147672, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0644", "mtime": 1701274789.7019045, "nlink": 1, "path": "/etc/kdump.conf", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 7274, "uid": 0, "version": "1406433254", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [linux-system-roles.kdump : Generate /etc/kdump.conf] ********************* task path: /WORKDIR/git-test-kdump-path-cleanup6hee1ozx/tests/roles/linux-system-roles.kdump/tasks/main.yml:27 Thursday 30 November 2023 18:54:59 +0000 (0:00:00.147) 0:00:03.185 ***** NOTIFIED HANDLER linux-system-roles.kdump : Restart kdump for sut changed: [sut] => { "backup_file": "/etc/kdump.conf.11541.2023-11-30@18:54:59~", "changed": true, "checksum": "ae6083a5f19c1bef9a17e295142418f557273a6b", "dest": "/etc/kdump.conf", "gid": 0, "group": "root", "md5sum": "38bb08a7a48dd26ce0c781335c0a87db", "mode": "0644", "owner": "root", "secontext": "system_u:object_r:kdump_etc_t:s0", "size": 112, "src": "/root/.ansible/tmp/ansible-tmp-1701370499.4784684-2541-109551370193421/source", "state": "file", "uid": 0 } TASK [linux-system-roles.kdump : Find out reserved memory for the crash kernel] *** task path: /WORKDIR/git-test-kdump-path-cleanup6hee1ozx/tests/roles/linux-system-roles.kdump/tasks/main.yml:35 Thursday 30 November 2023 18:54:59 +0000 (0:00:00.551) 0:00:03.736 ***** ok: [sut] => { "attempts": 1, "changed": false, "content": "MTY4ODIwNzM2Cg==", "encoding": "base64", "source": "/sys/kernel/kexec_crash_size" } TASK [linux-system-roles.kdump : Set the kdump_reboot_required fact] *********** task path: /WORKDIR/git-test-kdump-path-cleanup6hee1ozx/tests/roles/linux-system-roles.kdump/tasks/main.yml:41 Thursday 30 November 2023 18:55:00 +0000 (0:00:00.213) 0:00:03.949 ***** ok: [sut] => { "ansible_facts": { "kdump_reboot_required": false }, "changed": false } TASK [linux-system-roles.kdump : Use kdumpctl reset-crashkernel if needed] ***** task path: /WORKDIR/git-test-kdump-path-cleanup6hee1ozx/tests/roles/linux-system-roles.kdump/tasks/main.yml:51 Thursday 30 November 2023 18:55:00 +0000 (0:00:00.023) 0:00:03.973 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.kdump : Use grubby to update crashkernel=auto if needed] *** task path: /WORKDIR/git-test-kdump-path-cleanup6hee1ozx/tests/roles/linux-system-roles.kdump/tasks/main.yml:56 Thursday 30 November 2023 18:55:00 +0000 (0:00:00.021) 0:00:03.994 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.kdump : Fail if reboot is required and kdump_reboot_ok is false] *** task path: /WORKDIR/git-test-kdump-path-cleanup6hee1ozx/tests/roles/linux-system-roles.kdump/tasks/main.yml:61 Thursday 30 November 2023 18:55:00 +0000 (0:00:00.022) 0:00:04.016 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.kdump : Reboot the managed node] ********************** task path: /WORKDIR/git-test-kdump-path-cleanup6hee1ozx/tests/roles/linux-system-roles.kdump/tasks/main.yml:70 Thursday 30 November 2023 18:55:00 +0000 (0:00:00.022) 0:00:04.039 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.kdump : Clear the kdump_reboot_required flag] ********* task path: /WORKDIR/git-test-kdump-path-cleanup6hee1ozx/tests/roles/linux-system-roles.kdump/tasks/main.yml:76 Thursday 30 November 2023 18:55:00 +0000 (0:00:00.022) 0:00:04.062 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.kdump : Ensure that kdump is started] ***************** task path: /WORKDIR/git-test-kdump-path-cleanup6hee1ozx/tests/roles/linux-system-roles.kdump/tasks/main.yml:86 Thursday 30 November 2023 18:55:00 +0000 (0:00:00.022) 0:00:04.084 ***** ok: [sut] => { "changed": false, "name": "kdump", "state": "started", "status": { "ActiveEnterTimestamp": "Thu 2023-11-30 18:35:40 UTC", "ActiveEnterTimestampMonotonic": "38027226", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "network-online.target basic.target systemd-journald.socket network.target remote-fs.target system.slice", "AllowIsolate": "no", "AmbientCapabilities": "0", "AssertResult": "yes", "AssertTimestamp": "Thu 2023-11-30 18:35:20 UTC", "AssertTimestampMonotonic": "17466098", "BlockIOAccounting": "no", "BlockIOWeight": "18446744073709551615", "CPUAccounting": "no", "CPUQuotaPerSecUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "18446744073709551615", "CanIsolate": "no", "CanReload": "yes", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "18446744073709551615", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Thu 2023-11-30 18:35:20 UTC", "ConditionTimestampMonotonic": "17466095", "ControlGroup": "/system.slice/kdump.service", "ControlPID": "0", "DefaultDependencies": "no", "Delegate": "no", "Description": "Crash recovery kernel arming", "DevicePolicy": "auto", "ExecMainCode": "1", "ExecMainExitTimestamp": "Thu 2023-11-30 18:35:40 UTC", "ExecMainExitTimestampMonotonic": "38026714", "ExecMainPID": "1212", "ExecMainStartTimestamp": "Thu 2023-11-30 18:35:20 UTC", "ExecMainStartTimestampMonotonic": "17466851", "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 }", "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 }", "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 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FragmentPath": "/usr/lib/systemd/system/kdump.service", "GuessMainPID": "yes", "IOScheduling": "0", "Id": "kdump.service", "IgnoreOnIsolate": "no", "IgnoreOnSnapshot": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestamp": "Thu 2023-11-30 18:35:20 UTC", "InactiveExitTimestampMonotonic": "17466905", "JobTimeoutAction": "none", "JobTimeoutUSec": "0", "KillMode": "control-group", "KillSignal": "15", "LimitAS": "18446744073709551615", "LimitCORE": "18446744073709551615", "LimitCPU": "18446744073709551615", "LimitDATA": "18446744073709551615", "LimitFSIZE": "18446744073709551615", "LimitLOCKS": "18446744073709551615", "LimitMEMLOCK": "65536", "LimitMSGQUEUE": "819200", "LimitNICE": "0", "LimitNOFILE": "4096", "LimitNPROC": "14311", "LimitRSS": "18446744073709551615", "LimitRTPRIO": "0", "LimitRTTIME": "18446744073709551615", "LimitSIGPENDING": "14311", "LimitSTACK": "18446744073709551615", "LoadState": "loaded", "MainPID": "0", "MemoryAccounting": "no", "MemoryCurrent": "18446744073709551615", "MemoryLimit": "18446744073709551615", "MountFlags": "0", "Names": "kdump.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PermissionsStartOnly": "no", "PrivateDevices": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "ProtectHome": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "yes", "Requires": "system.slice", "Restart": "no", "RestartUSec": "100ms", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitInterval": "0", "StartupBlockIOWeight": "18446744073709551615", "StartupCPUShares": "18446744073709551615", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "exited", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "no", "TasksCurrent": "18446744073709551615", "TasksMax": "18446744073709551615", "TimeoutStartUSec": "0", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "oneshot", "UMask": "0022", "UnitFilePreset": "enabled", "UnitFileState": "enabled", "WantedBy": "multi-user.target", "WatchdogTimestampMonotonic": "0", "WatchdogUSec": "0" } } RUNNING HANDLER [linux-system-roles.kdump : Restart kdump] ********************* task path: /WORKDIR/git-test-kdump-path-cleanup6hee1ozx/tests/roles/linux-system-roles.kdump/handlers/main.yml:2 Thursday 30 November 2023 18:55:00 +0000 (0:00:00.202) 0:00:04.287 ***** changed: [sut] => { "changed": true, "name": "kdump", "state": "started", "status": { "ActiveEnterTimestamp": "Thu 2023-11-30 18:35:40 UTC", "ActiveEnterTimestampMonotonic": "38027226", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "network-online.target basic.target systemd-journald.socket network.target remote-fs.target system.slice", "AllowIsolate": "no", "AmbientCapabilities": "0", "AssertResult": "yes", "AssertTimestamp": "Thu 2023-11-30 18:35:20 UTC", "AssertTimestampMonotonic": "17466098", "BlockIOAccounting": "no", "BlockIOWeight": "18446744073709551615", "CPUAccounting": "no", "CPUQuotaPerSecUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "18446744073709551615", "CanIsolate": "no", "CanReload": "yes", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "18446744073709551615", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Thu 2023-11-30 18:35:20 UTC", "ConditionTimestampMonotonic": "17466095", "ControlGroup": "/system.slice/kdump.service", "ControlPID": "0", "DefaultDependencies": "no", "Delegate": "no", "Description": "Crash recovery kernel arming", "DevicePolicy": "auto", "ExecMainCode": "1", "ExecMainExitTimestamp": "Thu 2023-11-30 18:35:40 UTC", "ExecMainExitTimestampMonotonic": "38026714", "ExecMainPID": "1212", "ExecMainStartTimestamp": "Thu 2023-11-30 18:35:20 UTC", "ExecMainStartTimestampMonotonic": "17466851", "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 }", "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 }", "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 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FragmentPath": "/usr/lib/systemd/system/kdump.service", "GuessMainPID": "yes", "IOScheduling": "0", "Id": "kdump.service", "IgnoreOnIsolate": "no", "IgnoreOnSnapshot": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestamp": "Thu 2023-11-30 18:35:20 UTC", "InactiveExitTimestampMonotonic": "17466905", "JobTimeoutAction": "none", "JobTimeoutUSec": "0", "KillMode": "control-group", "KillSignal": "15", "LimitAS": "18446744073709551615", "LimitCORE": "18446744073709551615", "LimitCPU": "18446744073709551615", "LimitDATA": "18446744073709551615", "LimitFSIZE": "18446744073709551615", "LimitLOCKS": "18446744073709551615", "LimitMEMLOCK": "65536", "LimitMSGQUEUE": "819200", "LimitNICE": "0", "LimitNOFILE": "4096", "LimitNPROC": "14311", "LimitRSS": "18446744073709551615", "LimitRTPRIO": "0", "LimitRTTIME": "18446744073709551615", "LimitSIGPENDING": "14311", "LimitSTACK": "18446744073709551615", "LoadState": "loaded", "MainPID": "0", "MemoryAccounting": "no", "MemoryCurrent": "18446744073709551615", "MemoryLimit": "18446744073709551615", "MountFlags": "0", "Names": "kdump.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PermissionsStartOnly": "no", "PrivateDevices": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "ProtectHome": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "yes", "Requires": "system.slice", "Restart": "no", "RestartUSec": "100ms", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitInterval": "0", "StartupBlockIOWeight": "18446744073709551615", "StartupCPUShares": "18446744073709551615", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "exited", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "no", "TasksCurrent": "18446744073709551615", "TasksMax": "18446744073709551615", "TimeoutStartUSec": "0", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "oneshot", "UMask": "0022", "UnitFilePreset": "enabled", "UnitFileState": "enabled", "WantedBy": "multi-user.target", "WatchdogTimestampMonotonic": "0", "WatchdogUSec": "0" } } META: ran handlers TASK [Check generated files for ansible_managed, fingerprint] ****************** task path: /WORKDIR/git-test-kdump-path-cleanup6hee1ozx/tests/tests_default_reboot.yml:19 Thursday 30 November 2023 18:55:22 +0000 (0:00:22.432) 0:00:26.720 ***** included: /WORKDIR/git-test-kdump-path-cleanup6hee1ozx/tests/tasks/check_header.yml for sut TASK [Get file] **************************************************************** task path: /WORKDIR/git-test-kdump-path-cleanup6hee1ozx/tests/tasks/check_header.yml:3 Thursday 30 November 2023 18:55:22 +0000 (0:00:00.015) 0:00:26.736 ***** ok: [sut] => { "changed": false, "content": "IwojIEFuc2libGUgbWFuYWdlZAojCiMgc3lzdGVtX3JvbGU6a2R1bXAKCgoKcGF0aCAvdmFyL2NyYXNoCgpkZWZhdWx0IHJlYm9vdApkcmFjdXRfYXJncyAtLWtlcm5lbC1jbWRsaW5lIG5vcHRpCg==", "encoding": "base64", "source": "/etc/kdump.conf" } TASK [Check for presence of ansible managed header, fingerprint] *************** task path: /WORKDIR/git-test-kdump-path-cleanup6hee1ozx/tests/tasks/check_header.yml:9 Thursday 30 November 2023 18:55:23 +0000 (0:00:00.133) 0:00:26.869 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [See if el9 or later, or el7 or el8] ************************************** task path: /WORKDIR/git-test-kdump-path-cleanup6hee1ozx/tests/tests_default_reboot.yml:25 Thursday 30 November 2023 18:55:23 +0000 (0:00:00.034) 0:00:26.904 ***** ok: [sut] => { "ansible_facts": { "is_el7_or_el8": true, "is_el9": false }, "changed": false } TASK [Check parameters in conf file] ******************************************* task path: /WORKDIR/git-test-kdump-path-cleanup6hee1ozx/tests/tests_default_reboot.yml:37 Thursday 30 November 2023 18:55:23 +0000 (0:00:00.023) 0:00:26.927 ***** ok: [sut] => (item={'param': 'dracut_args', 'value': '--kernel-cmdline nopti'}) => { "ansible_loop_var": "item", "changed": false, "cmd": [ "grep", "^dracut_args --kernel-cmdline nopti$", "/etc/kdump.conf" ], "delta": "0:00:00.004175", "end": "2023-11-30 18:55:23.382123", "item": { "param": "dracut_args", "value": "--kernel-cmdline nopti" }, "rc": 0, "start": "2023-11-30 18:55:23.377948" } STDOUT: dracut_args --kernel-cmdline nopti ok: [sut] => (item={'param': 'default', 'value': 'reboot'}) => { "ansible_loop_var": "item", "changed": false, "cmd": [ "grep", "^default reboot$", "/etc/kdump.conf" ], "delta": "0:00:00.004142", "end": "2023-11-30 18:55:23.506313", "item": { "param": "default", "value": "reboot" }, "rc": 0, "start": "2023-11-30 18:55:23.502171" } STDOUT: default reboot TASK [Get crashkernel setting EL 9 and later] ********************************** task path: /WORKDIR/git-test-kdump-path-cleanup6hee1ozx/tests/tests_default_reboot.yml:55 Thursday 30 November 2023 18:55:23 +0000 (0:00:00.347) 0:00:27.275 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get crashkernel setting EL 8 and earlier] ******************************** task path: /WORKDIR/git-test-kdump-path-cleanup6hee1ozx/tests/tests_default_reboot.yml:61 Thursday 30 November 2023 18:55:23 +0000 (0:00:00.022) 0:00:27.297 ***** ok: [sut] => { "ansible_facts": { "__crashkernel": { "stdout": "auto" } }, "changed": false } TASK [Check for crashkernel setting] ******************************************* task path: /WORKDIR/git-test-kdump-path-cleanup6hee1ozx/tests/tests_default_reboot.yml:67 Thursday 30 November 2023 18:55:23 +0000 (0:00:00.023) 0:00:27.320 ***** ok: [sut] => { "changed": false, "cmd": "set -euo pipefail; grubby --info=ALL | grep -E '^args=.* crashkernel=auto( |\"|$)'\n", "delta": "0:00:00.136652", "end": "2023-11-30 18:55:23.828080", "rc": 0, "start": "2023-11-30 18:55:23.691428" } STDOUT: args="ro crashkernel=auto net.ifnames=0 rhgb quiet LANG=en_US.UTF-8" args="ro crashkernel=auto net.ifnames=0 rhgb quiet LANG=en_US.UTF-8" args="ro crashkernel=auto net.ifnames=0 rhgb quiet" TASK [Change parameters and run the role again] ******************************** task path: /WORKDIR/git-test-kdump-path-cleanup6hee1ozx/tests/tests_default_reboot.yml:75 Thursday 30 November 2023 18:55:23 +0000 (0:00:00.273) 0:00:27.594 ***** ok: [sut] => { "ansible_facts": { "kdump_auto_reset_crashkernel": false, "kdump_dracut_args": "--print-cmdline" }, "changed": false } TASK [Run the role again with new parameters] ********************************** task path: /WORKDIR/git-test-kdump-path-cleanup6hee1ozx/tests/tests_default_reboot.yml:80 Thursday 30 November 2023 18:55:23 +0000 (0:00:00.009) 0:00:27.603 ***** TASK [linux-system-roles.kdump : Ensure ansible_facts used by role] ************ task path: /WORKDIR/git-test-kdump-path-cleanup6hee1ozx/tests/roles/linux-system-roles.kdump/tasks/main.yml:2 Thursday 30 November 2023 18:55:23 +0000 (0:00:00.015) 0:00:27.619 ***** included: /WORKDIR/git-test-kdump-path-cleanup6hee1ozx/tests/roles/linux-system-roles.kdump/tasks/set_vars.yml for sut TASK [linux-system-roles.kdump : Ensure ansible_facts used by role] ************ task path: /WORKDIR/git-test-kdump-path-cleanup6hee1ozx/tests/roles/linux-system-roles.kdump/tasks/set_vars.yml:2 Thursday 30 November 2023 18:55:23 +0000 (0:00:00.014) 0:00:27.633 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.kdump : Check if system is ostree] ******************** task path: /WORKDIR/git-test-kdump-path-cleanup6hee1ozx/tests/roles/linux-system-roles.kdump/tasks/set_vars.yml:11 Thursday 30 November 2023 18:55:23 +0000 (0:00:00.021) 0:00:27.655 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.kdump : Set flag to indicate system is ostree] ******** task path: /WORKDIR/git-test-kdump-path-cleanup6hee1ozx/tests/roles/linux-system-roles.kdump/tasks/set_vars.yml:16 Thursday 30 November 2023 18:55:23 +0000 (0:00:00.020) 0:00:27.676 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.kdump : Install required packages] ******************** task path: /WORKDIR/git-test-kdump-path-cleanup6hee1ozx/tests/roles/linux-system-roles.kdump/tasks/main.yml:5 Thursday 30 November 2023 18:55:23 +0000 (0:00:00.019) 0:00:27.695 ***** ok: [sut] => { "changed": false, "rc": 0, "results": [ "grubby-8.28-26.el7.x86_64 providing grubby is already installed", "iproute-4.11.0-30.el7.x86_64 providing iproute is already installed", "kexec-tools-2.0.15-51.el7_9.3.x86_64 providing kexec-tools is already installed", "openssh-clients-7.4p1-23.el7_9.x86_64 providing openssh-clients is already installed" ] } TASK [linux-system-roles.kdump : Ensure that kdump is enabled] ***************** task path: /WORKDIR/git-test-kdump-path-cleanup6hee1ozx/tests/roles/linux-system-roles.kdump/tasks/main.yml:12 Thursday 30 November 2023 18:55:24 +0000 (0:00:00.374) 0:00:28.069 ***** ok: [sut] => { "changed": false, "enabled": true, "name": "kdump", "status": { "ActiveEnterTimestamp": "Thu 2023-11-30 18:55:22 UTC", "ActiveEnterTimestampMonotonic": "1219979588", "ActiveExitTimestamp": "Thu 2023-11-30 18:55:00 UTC", "ActiveExitTimestampMonotonic": "1197777657", "ActiveState": "active", "After": "network-online.target basic.target systemd-journald.socket network.target remote-fs.target system.slice", "AllowIsolate": "no", "AmbientCapabilities": "0", "AssertResult": "yes", "AssertTimestamp": "Thu 2023-11-30 18:55:00 UTC", "AssertTimestampMonotonic": "1197837676", "BlockIOAccounting": "no", "BlockIOWeight": "18446744073709551615", "CPUAccounting": "no", "CPUQuotaPerSecUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "18446744073709551615", "CanIsolate": "no", "CanReload": "yes", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "18446744073709551615", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Thu 2023-11-30 18:55:00 UTC", "ConditionTimestampMonotonic": "1197837674", "ControlPID": "0", "DefaultDependencies": "no", "Delegate": "no", "Description": "Crash recovery kernel arming", "DevicePolicy": "auto", "ExecMainCode": "1", "ExecMainExitTimestamp": "Thu 2023-11-30 18:55:22 UTC", "ExecMainExitTimestampMonotonic": "1219978980", "ExecMainPID": "11596", "ExecMainStartTimestamp": "Thu 2023-11-30 18:55:00 UTC", "ExecMainStartTimestampMonotonic": "1197838458", "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 }", "ExecStart": "{ path=/usr/bin/kdumpctl ; argv[]=/usr/bin/kdumpctl start ; ignore_errors=no ; start_time=[Thu 2023-11-30 18:55:00 UTC] ; stop_time=[Thu 2023-11-30 18:55:22 UTC] ; pid=11596 ; code=exited ; status=0 }", "ExecStop": "{ path=/usr/bin/kdumpctl ; argv[]=/usr/bin/kdumpctl stop ; ignore_errors=no ; start_time=[Thu 2023-11-30 18:55:00 UTC] ; stop_time=[Thu 2023-11-30 18:55:00 UTC] ; pid=11587 ; code=exited ; status=0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FragmentPath": "/usr/lib/systemd/system/kdump.service", "GuessMainPID": "yes", "IOScheduling": "0", "Id": "kdump.service", "IgnoreOnIsolate": "no", "IgnoreOnSnapshot": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestamp": "Thu 2023-11-30 18:55:00 UTC", "InactiveEnterTimestampMonotonic": "1197836309", "InactiveExitTimestamp": "Thu 2023-11-30 18:55:00 UTC", "InactiveExitTimestampMonotonic": "1197838503", "JobTimeoutAction": "none", "JobTimeoutUSec": "0", "KillMode": "control-group", "KillSignal": "15", "LimitAS": "18446744073709551615", "LimitCORE": "18446744073709551615", "LimitCPU": "18446744073709551615", "LimitDATA": "18446744073709551615", "LimitFSIZE": "18446744073709551615", "LimitLOCKS": "18446744073709551615", "LimitMEMLOCK": "65536", "LimitMSGQUEUE": "819200", "LimitNICE": "0", "LimitNOFILE": "4096", "LimitNPROC": "14311", "LimitRSS": "18446744073709551615", "LimitRTPRIO": "0", "LimitRTTIME": "18446744073709551615", "LimitSIGPENDING": "14311", "LimitSTACK": "18446744073709551615", "LoadState": "loaded", "MainPID": "0", "MemoryAccounting": "no", "MemoryCurrent": "18446744073709551615", "MemoryLimit": "18446744073709551615", "MountFlags": "0", "Names": "kdump.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PermissionsStartOnly": "no", "PrivateDevices": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "ProtectHome": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "yes", "Requires": "system.slice", "Restart": "no", "RestartUSec": "100ms", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitInterval": "0", "StartupBlockIOWeight": "18446744073709551615", "StartupCPUShares": "18446744073709551615", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "exited", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "no", "TasksCurrent": "18446744073709551615", "TasksMax": "18446744073709551615", "TimeoutStartUSec": "0", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "oneshot", "UMask": "0022", "UnitFilePreset": "enabled", "UnitFileState": "enabled", "WantedBy": "multi-user.target", "WatchdogTimestampMonotonic": "0", "WatchdogUSec": "0" } } TASK [linux-system-roles.kdump : Include SSH tasks] **************************** task path: /WORKDIR/git-test-kdump-path-cleanup6hee1ozx/tests/roles/linux-system-roles.kdump/tasks/main.yml:17 Thursday 30 November 2023 18:55:24 +0000 (0:00:00.216) 0:00:28.286 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.kdump : Get mode of /etc/kdump.conf if it exists] ***** task path: /WORKDIR/git-test-kdump-path-cleanup6hee1ozx/tests/roles/linux-system-roles.kdump/tasks/main.yml:22 Thursday 30 November 2023 18:55:24 +0000 (0:00:00.022) 0:00:28.308 ***** ok: [sut] => { "changed": false, "stat": { "atime": 1701370500.8211849, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "ae6083a5f19c1bef9a17e295142418f557273a6b", "ctime": 1701370499.9352067, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 262515, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0644", "mtime": 1701370499.6852126, "nlink": 1, "path": "/etc/kdump.conf", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 112, "uid": 0, "version": "682373423", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [linux-system-roles.kdump : Generate /etc/kdump.conf] ********************* task path: /WORKDIR/git-test-kdump-path-cleanup6hee1ozx/tests/roles/linux-system-roles.kdump/tasks/main.yml:27 Thursday 30 November 2023 18:55:24 +0000 (0:00:00.136) 0:00:28.445 ***** NOTIFIED HANDLER linux-system-roles.kdump : Restart kdump for sut changed: [sut] => { "backup_file": "/etc/kdump.conf.18177.2023-11-30@18:55:25~", "changed": true, "checksum": "b2355bddae523e4f353a3f66aaf7da513642b0b0", "dest": "/etc/kdump.conf", "gid": 0, "group": "root", "md5sum": "3f43f0efe01022d1ae9e743e9dada2dd", "mode": "0644", "owner": "root", "secontext": "system_u:object_r:kdump_etc_t:s0", "size": 105, "src": "/root/.ansible/tmp/ansible-tmp-1701370524.7367344-2924-50547945813162/source", "state": "file", "uid": 0 } TASK [linux-system-roles.kdump : Find out reserved memory for the crash kernel] *** task path: /WORKDIR/git-test-kdump-path-cleanup6hee1ozx/tests/roles/linux-system-roles.kdump/tasks/main.yml:35 Thursday 30 November 2023 18:55:25 +0000 (0:00:00.418) 0:00:28.863 ***** ok: [sut] => { "attempts": 1, "changed": false, "content": "MTY4ODIwNzM2Cg==", "encoding": "base64", "source": "/sys/kernel/kexec_crash_size" } TASK [linux-system-roles.kdump : Set the kdump_reboot_required fact] *********** task path: /WORKDIR/git-test-kdump-path-cleanup6hee1ozx/tests/roles/linux-system-roles.kdump/tasks/main.yml:41 Thursday 30 November 2023 18:55:25 +0000 (0:00:00.134) 0:00:28.998 ***** ok: [sut] => { "ansible_facts": { "kdump_reboot_required": false }, "changed": false } TASK [linux-system-roles.kdump : Use kdumpctl reset-crashkernel if needed] ***** task path: /WORKDIR/git-test-kdump-path-cleanup6hee1ozx/tests/roles/linux-system-roles.kdump/tasks/main.yml:51 Thursday 30 November 2023 18:55:25 +0000 (0:00:00.022) 0:00:29.021 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.kdump : Use grubby to update crashkernel=auto if needed] *** task path: /WORKDIR/git-test-kdump-path-cleanup6hee1ozx/tests/roles/linux-system-roles.kdump/tasks/main.yml:56 Thursday 30 November 2023 18:55:25 +0000 (0:00:00.020) 0:00:29.042 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.kdump : Fail if reboot is required and kdump_reboot_ok is false] *** task path: /WORKDIR/git-test-kdump-path-cleanup6hee1ozx/tests/roles/linux-system-roles.kdump/tasks/main.yml:61 Thursday 30 November 2023 18:55:25 +0000 (0:00:00.019) 0:00:29.061 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.kdump : Reboot the managed node] ********************** task path: /WORKDIR/git-test-kdump-path-cleanup6hee1ozx/tests/roles/linux-system-roles.kdump/tasks/main.yml:70 Thursday 30 November 2023 18:55:25 +0000 (0:00:00.020) 0:00:29.082 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.kdump : Clear the kdump_reboot_required flag] ********* task path: /WORKDIR/git-test-kdump-path-cleanup6hee1ozx/tests/roles/linux-system-roles.kdump/tasks/main.yml:76 Thursday 30 November 2023 18:55:25 +0000 (0:00:00.020) 0:00:29.103 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.kdump : Ensure that kdump is started] ***************** task path: /WORKDIR/git-test-kdump-path-cleanup6hee1ozx/tests/roles/linux-system-roles.kdump/tasks/main.yml:86 Thursday 30 November 2023 18:55:25 +0000 (0:00:00.020) 0:00:29.123 ***** ok: [sut] => { "changed": false, "name": "kdump", "state": "started", "status": { "ActiveEnterTimestamp": "Thu 2023-11-30 18:55:22 UTC", "ActiveEnterTimestampMonotonic": "1219979588", "ActiveExitTimestamp": "Thu 2023-11-30 18:55:00 UTC", "ActiveExitTimestampMonotonic": "1197777657", "ActiveState": "active", "After": "network-online.target basic.target systemd-journald.socket network.target remote-fs.target system.slice", "AllowIsolate": "no", "AmbientCapabilities": "0", "AssertResult": "yes", "AssertTimestamp": "Thu 2023-11-30 18:55:00 UTC", "AssertTimestampMonotonic": "1197837676", "BlockIOAccounting": "no", "BlockIOWeight": "18446744073709551615", "CPUAccounting": "no", "CPUQuotaPerSecUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "18446744073709551615", "CanIsolate": "no", "CanReload": "yes", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "18446744073709551615", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Thu 2023-11-30 18:55:00 UTC", "ConditionTimestampMonotonic": "1197837674", "ControlPID": "0", "DefaultDependencies": "no", "Delegate": "no", "Description": "Crash recovery kernel arming", "DevicePolicy": "auto", "ExecMainCode": "1", "ExecMainExitTimestamp": "Thu 2023-11-30 18:55:22 UTC", "ExecMainExitTimestampMonotonic": "1219978980", "ExecMainPID": "11596", "ExecMainStartTimestamp": "Thu 2023-11-30 18:55:00 UTC", "ExecMainStartTimestampMonotonic": "1197838458", "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 }", "ExecStart": "{ path=/usr/bin/kdumpctl ; argv[]=/usr/bin/kdumpctl start ; ignore_errors=no ; start_time=[Thu 2023-11-30 18:55:00 UTC] ; stop_time=[Thu 2023-11-30 18:55:22 UTC] ; pid=11596 ; code=exited ; status=0 }", "ExecStop": "{ path=/usr/bin/kdumpctl ; argv[]=/usr/bin/kdumpctl stop ; ignore_errors=no ; start_time=[Thu 2023-11-30 18:55:00 UTC] ; stop_time=[Thu 2023-11-30 18:55:00 UTC] ; pid=11587 ; code=exited ; status=0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FragmentPath": "/usr/lib/systemd/system/kdump.service", "GuessMainPID": "yes", "IOScheduling": "0", "Id": "kdump.service", "IgnoreOnIsolate": "no", "IgnoreOnSnapshot": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestamp": "Thu 2023-11-30 18:55:00 UTC", "InactiveEnterTimestampMonotonic": "1197836309", "InactiveExitTimestamp": "Thu 2023-11-30 18:55:00 UTC", "InactiveExitTimestampMonotonic": "1197838503", "JobTimeoutAction": "none", "JobTimeoutUSec": "0", "KillMode": "control-group", "KillSignal": "15", "LimitAS": "18446744073709551615", "LimitCORE": "18446744073709551615", "LimitCPU": "18446744073709551615", "LimitDATA": "18446744073709551615", "LimitFSIZE": "18446744073709551615", "LimitLOCKS": "18446744073709551615", "LimitMEMLOCK": "65536", "LimitMSGQUEUE": "819200", "LimitNICE": "0", "LimitNOFILE": "4096", "LimitNPROC": "14311", "LimitRSS": "18446744073709551615", "LimitRTPRIO": "0", "LimitRTTIME": "18446744073709551615", "LimitSIGPENDING": "14311", "LimitSTACK": "18446744073709551615", "LoadState": "loaded", "MainPID": "0", "MemoryAccounting": "no", "MemoryCurrent": "18446744073709551615", "MemoryLimit": "18446744073709551615", "MountFlags": "0", "Names": "kdump.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PermissionsStartOnly": "no", "PrivateDevices": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "ProtectHome": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "yes", "Requires": "system.slice", "Restart": "no", "RestartUSec": "100ms", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitInterval": "0", "StartupBlockIOWeight": "18446744073709551615", "StartupCPUShares": "18446744073709551615", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "exited", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "no", "TasksCurrent": "18446744073709551615", "TasksMax": "18446744073709551615", "TimeoutStartUSec": "0", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "oneshot", "UMask": "0022", "UnitFilePreset": "enabled", "UnitFileState": "enabled", "WantedBy": "multi-user.target", "WatchdogTimestampMonotonic": "0", "WatchdogUSec": "0" } } TASK [Check parameters in conf file] ******************************************* task path: /WORKDIR/git-test-kdump-path-cleanup6hee1ozx/tests/tests_default_reboot.yml:87 Thursday 30 November 2023 18:55:25 +0000 (0:00:00.207) 0:00:29.330 ***** ok: [sut] => (item={'param': 'dracut_args', 'value': '--print-cmdline'}) => { "ansible_loop_var": "item", "changed": false, "cmd": [ "grep", "^dracut_args --print-cmdline$", "/etc/kdump.conf" ], "delta": "0:00:00.004164", "end": "2023-11-30 18:55:25.711510", "item": { "param": "dracut_args", "value": "--print-cmdline" }, "rc": 0, "start": "2023-11-30 18:55:25.707346" } STDOUT: dracut_args --print-cmdline TASK [Get crashkernel setting EL 9 and later] ********************************** task path: /WORKDIR/git-test-kdump-path-cleanup6hee1ozx/tests/tests_default_reboot.yml:100 Thursday 30 November 2023 18:55:25 +0000 (0:00:00.148) 0:00:29.479 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Get crashkernel setting EL 8 and earlier] ******************************** task path: /WORKDIR/git-test-kdump-path-cleanup6hee1ozx/tests/tests_default_reboot.yml:106 Thursday 30 November 2023 18:55:25 +0000 (0:00:00.021) 0:00:29.500 ***** ok: [sut] => { "ansible_facts": { "__crashkernel": { "stdout": "auto" } }, "changed": false } TASK [Check for crashkernel setting] ******************************************* task path: /WORKDIR/git-test-kdump-path-cleanup6hee1ozx/tests/tests_default_reboot.yml:112 Thursday 30 November 2023 18:55:25 +0000 (0:00:00.023) 0:00:29.524 ***** ok: [sut] => { "changed": false, "cmd": "set -euo pipefail; grubby --info=ALL | grep -E '^args=.* crashkernel=auto( |\"|$)'\n", "delta": "0:00:00.010159", "end": "2023-11-30 18:55:25.905650", "rc": 0, "start": "2023-11-30 18:55:25.895491" } STDOUT: args="ro crashkernel=auto net.ifnames=0 rhgb quiet LANG=en_US.UTF-8" args="ro crashkernel=auto net.ifnames=0 rhgb quiet LANG=en_US.UTF-8" args="ro crashkernel=auto net.ifnames=0 rhgb quiet" RUNNING HANDLER [linux-system-roles.kdump : Restart kdump] ********************* task path: /WORKDIR/git-test-kdump-path-cleanup6hee1ozx/tests/roles/linux-system-roles.kdump/handlers/main.yml:2 Thursday 30 November 2023 18:55:25 +0000 (0:00:00.144) 0:00:29.669 ***** changed: [sut] => { "changed": true, "name": "kdump", "state": "started", "status": { "ActiveEnterTimestamp": "Thu 2023-11-30 18:55:22 UTC", "ActiveEnterTimestampMonotonic": "1219979588", "ActiveExitTimestamp": "Thu 2023-11-30 18:55:00 UTC", "ActiveExitTimestampMonotonic": "1197777657", "ActiveState": "active", "After": "network-online.target basic.target systemd-journald.socket network.target remote-fs.target system.slice", "AllowIsolate": "no", "AmbientCapabilities": "0", "AssertResult": "yes", "AssertTimestamp": "Thu 2023-11-30 18:55:00 UTC", "AssertTimestampMonotonic": "1197837676", "BlockIOAccounting": "no", "BlockIOWeight": "18446744073709551615", "CPUAccounting": "no", "CPUQuotaPerSecUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "18446744073709551615", "CanIsolate": "no", "CanReload": "yes", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "18446744073709551615", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Thu 2023-11-30 18:55:00 UTC", "ConditionTimestampMonotonic": "1197837674", "ControlPID": "0", "DefaultDependencies": "no", "Delegate": "no", "Description": "Crash recovery kernel arming", "DevicePolicy": "auto", "ExecMainCode": "1", "ExecMainExitTimestamp": "Thu 2023-11-30 18:55:22 UTC", "ExecMainExitTimestampMonotonic": "1219978980", "ExecMainPID": "11596", "ExecMainStartTimestamp": "Thu 2023-11-30 18:55:00 UTC", "ExecMainStartTimestampMonotonic": "1197838458", "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 }", "ExecStart": "{ path=/usr/bin/kdumpctl ; argv[]=/usr/bin/kdumpctl start ; ignore_errors=no ; start_time=[Thu 2023-11-30 18:55:00 UTC] ; stop_time=[Thu 2023-11-30 18:55:22 UTC] ; pid=11596 ; code=exited ; status=0 }", "ExecStop": "{ path=/usr/bin/kdumpctl ; argv[]=/usr/bin/kdumpctl stop ; ignore_errors=no ; start_time=[Thu 2023-11-30 18:55:00 UTC] ; stop_time=[Thu 2023-11-30 18:55:00 UTC] ; pid=11587 ; code=exited ; status=0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FragmentPath": "/usr/lib/systemd/system/kdump.service", "GuessMainPID": "yes", "IOScheduling": "0", "Id": "kdump.service", "IgnoreOnIsolate": "no", "IgnoreOnSnapshot": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestamp": "Thu 2023-11-30 18:55:00 UTC", "InactiveEnterTimestampMonotonic": "1197836309", "InactiveExitTimestamp": "Thu 2023-11-30 18:55:00 UTC", "InactiveExitTimestampMonotonic": "1197838503", "JobTimeoutAction": "none", "JobTimeoutUSec": "0", "KillMode": "control-group", "KillSignal": "15", "LimitAS": "18446744073709551615", "LimitCORE": "18446744073709551615", "LimitCPU": "18446744073709551615", "LimitDATA": "18446744073709551615", "LimitFSIZE": "18446744073709551615", "LimitLOCKS": "18446744073709551615", "LimitMEMLOCK": "65536", "LimitMSGQUEUE": "819200", "LimitNICE": "0", "LimitNOFILE": "4096", "LimitNPROC": "14311", "LimitRSS": "18446744073709551615", "LimitRTPRIO": "0", "LimitRTTIME": "18446744073709551615", "LimitSIGPENDING": "14311", "LimitSTACK": "18446744073709551615", "LoadState": "loaded", "MainPID": "0", "MemoryAccounting": "no", "MemoryCurrent": "18446744073709551615", "MemoryLimit": "18446744073709551615", "MountFlags": "0", "Names": "kdump.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PermissionsStartOnly": "no", "PrivateDevices": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "ProtectHome": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "yes", "Requires": "system.slice", "Restart": "no", "RestartUSec": "100ms", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitInterval": "0", "StartupBlockIOWeight": "18446744073709551615", "StartupCPUShares": "18446744073709551615", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "exited", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "no", "TasksCurrent": "18446744073709551615", "TasksMax": "18446744073709551615", "TimeoutStartUSec": "0", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "oneshot", "UMask": "0022", "UnitFilePreset": "enabled", "UnitFileState": "enabled", "WantedBy": "multi-user.target", "WatchdogTimestampMonotonic": "0", "WatchdogUSec": "0" } } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* sut : ok=32 changed=4 unreachable=0 failed=0 skipped=18 rescued=0 ignored=0 Thursday 30 November 2023 18:55:27 +0000 (0:00:01.763) 0:00:31.432 ***** =============================================================================== linux-system-roles.kdump : Restart kdump ------------------------------- 24.20s /WORKDIR/git-test-kdump-path-cleanup6hee1ozx/tests/roles/linux-system-roles.kdump/handlers/main.yml:2 linux-system-roles.kdump : Install required packages -------------------- 1.59s /WORKDIR/git-test-kdump-path-cleanup6hee1ozx/tests/roles/linux-system-roles.kdump/tasks/main.yml:5 linux-system-roles.kdump : Generate /etc/kdump.conf --------------------- 0.97s /WORKDIR/git-test-kdump-path-cleanup6hee1ozx/tests/roles/linux-system-roles.kdump/tasks/main.yml:27 Gathering Facts --------------------------------------------------------- 0.96s /WORKDIR/git-test-kdump-path-cleanup6hee1ozx/tests/tests_default_reboot.yml:2 - linux-system-roles.kdump : Ensure that kdump is enabled ----------------- 0.69s /WORKDIR/git-test-kdump-path-cleanup6hee1ozx/tests/roles/linux-system-roles.kdump/tasks/main.yml:12 linux-system-roles.kdump : Ensure that kdump is started ----------------- 0.41s /WORKDIR/git-test-kdump-path-cleanup6hee1ozx/tests/roles/linux-system-roles.kdump/tasks/main.yml:86 linux-system-roles.kdump : Find out reserved memory for the crash kernel --- 0.35s /WORKDIR/git-test-kdump-path-cleanup6hee1ozx/tests/roles/linux-system-roles.kdump/tasks/main.yml:35 Check parameters in conf file ------------------------------------------- 0.35s /WORKDIR/git-test-kdump-path-cleanup6hee1ozx/tests/tests_default_reboot.yml:37 linux-system-roles.kdump : Get mode of /etc/kdump.conf if it exists ----- 0.28s /WORKDIR/git-test-kdump-path-cleanup6hee1ozx/tests/roles/linux-system-roles.kdump/tasks/main.yml:22 Check for crashkernel setting ------------------------------------------- 0.27s /WORKDIR/git-test-kdump-path-cleanup6hee1ozx/tests/tests_default_reboot.yml:67 linux-system-roles.kdump : Check if system is ostree -------------------- 0.21s /WORKDIR/git-test-kdump-path-cleanup6hee1ozx/tests/roles/linux-system-roles.kdump/tasks/set_vars.yml:11 Check parameters in conf file ------------------------------------------- 0.15s /WORKDIR/git-test-kdump-path-cleanup6hee1ozx/tests/tests_default_reboot.yml:87 Check for crashkernel setting ------------------------------------------- 0.14s /WORKDIR/git-test-kdump-path-cleanup6hee1ozx/tests/tests_default_reboot.yml:112 Get file ---------------------------------------------------------------- 0.13s /WORKDIR/git-test-kdump-path-cleanup6hee1ozx/tests/tasks/check_header.yml:3 --- Run the role and reboot if necessary ------------------------------------ 0.06s /WORKDIR/git-test-kdump-path-cleanup6hee1ozx/tests/tests_default_reboot.yml:11 linux-system-roles.kdump : Set the kdump_reboot_required fact ----------- 0.05s /WORKDIR/git-test-kdump-path-cleanup6hee1ozx/tests/roles/linux-system-roles.kdump/tasks/main.yml:41 linux-system-roles.kdump : Include SSH tasks ---------------------------- 0.04s /WORKDIR/git-test-kdump-path-cleanup6hee1ozx/tests/roles/linux-system-roles.kdump/tasks/main.yml:17 linux-system-roles.kdump : Reboot the managed node ---------------------- 0.04s /WORKDIR/git-test-kdump-path-cleanup6hee1ozx/tests/roles/linux-system-roles.kdump/tasks/main.yml:70 linux-system-roles.kdump : Fail if reboot is required and kdump_reboot_ok is false --- 0.04s /WORKDIR/git-test-kdump-path-cleanup6hee1ozx/tests/roles/linux-system-roles.kdump/tasks/main.yml:61 linux-system-roles.kdump : Clear the kdump_reboot_required flag --------- 0.04s /WORKDIR/git-test-kdump-path-cleanup6hee1ozx/tests/roles/linux-system-roles.kdump/tasks/main.yml:76 ---^---^---^---^---^--- # STDERR: ---v---v---v---v---v--- ---^---^---^---^---^---