# 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_ssh.yml ******************************************************** 1 plays in /WORKDIR/git-refactor-ostree2h4hpzhf/tests/tests_ssh.yml PLAY [Ensure that the rule runs with ssh] ************************************** TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-refactor-ostree2h4hpzhf/tests/tests_ssh.yml:2 Wednesday 22 November 2023 18:46:19 +0000 (0:00:00.016) 0:00:00.016 **** ok: [sut] META: ran handlers TASK [Gather facts from sut] *************************************************** task path: /WORKDIR/git-refactor-ostree2h4hpzhf/tests/tests_ssh.yml:59 Wednesday 22 November 2023 18:46:20 +0000 (0:00:00.565) 0:00:00.582 **** ok: [sut -> sut] TASK [Print message that this test is skipped on EL 6] ************************* task path: /WORKDIR/git-refactor-ostree2h4hpzhf/tests/tests_ssh.yml:64 Wednesday 22 November 2023 18:46:20 +0000 (0:00:00.406) 0:00:00.989 **** skipping: [sut] => {} META: end_host conditional evaluated to false, continuing execution for sut TASK [Run the role. If reboot is not required - the play succeeds.] ************ task path: /WORKDIR/git-refactor-ostree2h4hpzhf/tests/tests_ssh.yml:85 Wednesday 22 November 2023 18:46:20 +0000 (0:00:00.017) 0:00:01.007 **** TASK [linux-system-roles.kdump : Ensure ansible_facts used by role] ************ task path: /WORKDIR/git-refactor-ostree2h4hpzhf/tests/roles/linux-system-roles.kdump/tasks/main.yml:2 Wednesday 22 November 2023 18:46:20 +0000 (0:00:00.047) 0:00:01.054 **** included: /WORKDIR/git-refactor-ostree2h4hpzhf/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-refactor-ostree2h4hpzhf/tests/roles/linux-system-roles.kdump/tasks/set_vars.yml:2 Wednesday 22 November 2023 18:46:20 +0000 (0:00:00.016) 0:00:01.071 **** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.kdump : Check if system is ostree] ******************** task path: /WORKDIR/git-refactor-ostree2h4hpzhf/tests/roles/linux-system-roles.kdump/tasks/set_vars.yml:11 Wednesday 22 November 2023 18:46:20 +0000 (0:00:00.012) 0:00:01.083 **** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [linux-system-roles.kdump : Set flag to indicate system is ostree] ******** task path: /WORKDIR/git-refactor-ostree2h4hpzhf/tests/roles/linux-system-roles.kdump/tasks/set_vars.yml:16 Wednesday 22 November 2023 18:46:21 +0000 (0:00:00.202) 0:00:01.285 **** ok: [sut] => { "ansible_facts": { "__kdump_is_ostree": false }, "changed": false } TASK [linux-system-roles.kdump : Install required packages] ******************** task path: /WORKDIR/git-refactor-ostree2h4hpzhf/tests/roles/linux-system-roles.kdump/tasks/main.yml:5 Wednesday 22 November 2023 18:46:21 +0000 (0:00:00.014) 0:00:01.300 **** 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-refactor-ostree2h4hpzhf/tests/roles/linux-system-roles.kdump/tasks/main.yml:12 Wednesday 22 November 2023 18:46:21 +0000 (0:00:00.448) 0:00:01.748 **** ok: [sut] => { "changed": false, "enabled": true, "name": "kdump", "status": { "ActiveEnterTimestamp": "Wed 2023-11-22 18:46:16 UTC", "ActiveEnterTimestampMonotonic": "449953206", "ActiveExitTimestamp": "Wed 2023-11-22 18:46:14 UTC", "ActiveExitTimestampMonotonic": "448412761", "ActiveState": "active", "After": "network.target basic.target network-online.target systemd-journald.socket system.slice remote-fs.target", "AllowIsolate": "no", "AmbientCapabilities": "0", "AssertResult": "yes", "AssertTimestamp": "Wed 2023-11-22 18:46:14 UTC", "AssertTimestampMonotonic": "448440861", "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": "Wed 2023-11-22 18:46:14 UTC", "ConditionTimestampMonotonic": "448440859", "ControlPID": "0", "DefaultDependencies": "no", "Delegate": "no", "Description": "Crash recovery kernel arming", "DevicePolicy": "auto", "ExecMainCode": "1", "ExecMainExitTimestamp": "Wed 2023-11-22 18:46:16 UTC", "ExecMainExitTimestampMonotonic": "449948800", "ExecMainPID": "11412", "ExecMainStartTimestamp": "Wed 2023-11-22 18:46:14 UTC", "ExecMainStartTimestampMonotonic": "448446765", "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=[Wed 2023-11-22 18:46:14 UTC] ; stop_time=[Wed 2023-11-22 18:46:16 UTC] ; pid=11412 ; code=exited ; status=0 }", "ExecStop": "{ path=/usr/bin/kdumpctl ; argv[]=/usr/bin/kdumpctl stop ; ignore_errors=no ; start_time=[Wed 2023-11-22 18:46:14 UTC] ; stop_time=[Wed 2023-11-22 18:46:14 UTC] ; pid=11403 ; 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": "Wed 2023-11-22 18:46:14 UTC", "InactiveEnterTimestampMonotonic": "448431852", "InactiveExitTimestamp": "Wed 2023-11-22 18:46:14 UTC", "InactiveExitTimestampMonotonic": "448446809", "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-refactor-ostree2h4hpzhf/tests/roles/linux-system-roles.kdump/tasks/main.yml:17 Wednesday 22 November 2023 18:46:21 +0000 (0:00:00.357) 0:00:02.105 **** included: /WORKDIR/git-refactor-ostree2h4hpzhf/tests/roles/linux-system-roles.kdump/tasks/ssh.yml for sut TASK [linux-system-roles.kdump : Create key if it does not exist] ************** task path: /WORKDIR/git-refactor-ostree2h4hpzhf/tests/roles/linux-system-roles.kdump/tasks/ssh.yml:2 Wednesday 22 November 2023 18:46:21 +0000 (0:00:00.037) 0:00:02.143 **** changed: [sut] => { "changed": true, "cmd": [ "/usr/bin/ssh-keygen", "-t", "rsa", "-f", "/root/.ssh/kdump_id_rsa", "-N", "" ], "delta": "0:00:00.074949", "end": "2023-11-22 18:46:22.132106", "rc": 0, "start": "2023-11-22 18:46:22.057157" } STDOUT: Generating public/private rsa key pair. Your identification has been saved in /root/.ssh/kdump_id_rsa. Your public key has been saved in /root/.ssh/kdump_id_rsa.pub. The key fingerprint is: SHA256:r0QSbK5z/uqXabYiL0ij4XFh+Kfhq8BfwL7/6p20zgI root@b33fbfd8-90eb-4b5c-9109-d35597eda2b0.testing-farm The key's randomart image is: +---[RSA 2048]----+ | | | . | | . + | | ..o o . | | oo. o S | |o.+E.o o . | |o=++B....o. | |o.oo===.O. | | ..++OX#+. | +----[SHA256]-----+ TASK [linux-system-roles.kdump : Fetch key] ************************************ task path: /WORKDIR/git-refactor-ostree2h4hpzhf/tests/roles/linux-system-roles.kdump/tasks/ssh.yml:7 Wednesday 22 November 2023 18:46:22 +0000 (0:00:00.259) 0:00:02.403 **** ok: [sut] => { "changed": false, "content": "c3NoLXJzYSBBQUFBQjNOemFDMXljMkVBQUFBREFRQUJBQUFCQVFEVkpqRnZzK1NXb1RHd3J4bVBWMHhuTEhtZHdOL2lmUGxWazVoVk9sTFJoUjRUdzVJUmpYdDMxeUFFRHlxOUIrcDNHWFVtZkZqNnUrZU5qVllBbHlidm9JVGs1dndkak1haGRUemgwQnFYUExsNkFiYnE1NzM5KzNDZXI4NGx2NVhDRWZKZFpvYzVlTFpzbnBCTEhzc094MkMzRlhTOVBFTjY4S0RFQ3k3N2Rjbm8xZmxteEZmUTRHRytGODZaZm1CNExQaDdnenJlWW1BdjRGSzY3akt0dWJzTEFtbXBuYUt1VlBQYUlmWjdlbEl3SC9nN2IvV0FhdUhtVy9vYmtZdTJHa3Z5QmoydHdJeFVmcm9SYVRJZlZralRzVHp4TkpteFN3NGt6UGhubTBpa0VpRkttbXF1V1pkT0pBVWllTzhoMDJLZ0pTaTh5SEFvMzVjYVVKc0ogcm9vdEBiMzNmYmZkOC05MGViLTRiNWMtOTEwOS1kMzU1OTdlZGEyYjAudGVzdGluZy1mYXJtCg==", "encoding": "base64", "source": "/root/.ssh/kdump_id_rsa.pub" } TASK [linux-system-roles.kdump : Get userinfo for root] ************************ task path: /WORKDIR/git-refactor-ostree2h4hpzhf/tests/roles/linux-system-roles.kdump/tasks/ssh.yml:20 Wednesday 22 November 2023 18:46:22 +0000 (0:00:00.193) 0:00:02.596 **** ok: [sut -> sut] => { "append": false, "changed": false, "comment": "root", "group": 0, "home": "/root", "move_home": false, "name": "root", "shell": "/bin/bash", "state": "present", "uid": 0 } TASK [linux-system-roles.kdump : Get the ssh directory for the user] *********** task path: /WORKDIR/git-refactor-ostree2h4hpzhf/tests/roles/linux-system-roles.kdump/tasks/ssh.yml:26 Wednesday 22 November 2023 18:46:22 +0000 (0:00:00.274) 0:00:02.871 **** ok: [sut -> sut] => { "changed": false, "stat": { "atime": 1700678339.3453093, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "ctime": 1700678782.1309896, "dev": 51713, "device_type": 0, "executable": true, "exists": true, "gid": 0, "gr_name": "root", "inode": 8940300, "isblk": false, "ischr": false, "isdir": true, "isfifo": false, "isgid": false, "islnk": false, "isreg": false, "issock": false, "isuid": false, "mimetype": "inode/directory", "mode": "0700", "mtime": 1700678782.1309896, "nlink": 2, "path": "/root/.ssh", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 101, "uid": 0, "version": "18446744073298231835", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": true } } TASK [linux-system-roles.kdump : Get the authorized_keys file for the user] **** task path: /WORKDIR/git-refactor-ostree2h4hpzhf/tests/roles/linux-system-roles.kdump/tasks/ssh.yml:31 Wednesday 22 November 2023 18:46:22 +0000 (0:00:00.137) 0:00:03.008 **** ok: [sut -> sut] => { "changed": false, "stat": { "atime": 1700678440.7807698, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "73fa8017a2d86a54aaa3b7cf4504a005b0d33e52", "ctime": 1700678339.3443093, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 4399732, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1700678339.3443093, "nlink": 1, "path": "/root/.ssh/authorized_keys", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 990, "uid": 0, "version": "18446744072279526696", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [linux-system-roles.kdump : Ensure ssh directory for authorized_keys if needed] *** task path: /WORKDIR/git-refactor-ostree2h4hpzhf/tests/roles/linux-system-roles.kdump/tasks/ssh.yml:36 Wednesday 22 November 2023 18:46:22 +0000 (0:00:00.139) 0:00:03.148 **** ok: [sut -> sut] => { "changed": false, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/root/.ssh", "secontext": "system_u:object_r:ssh_home_t:s0", "size": 101, "state": "directory", "uid": 0 } TASK [linux-system-roles.kdump : Write new authorized_keys if needed] ********** task path: /WORKDIR/git-refactor-ostree2h4hpzhf/tests/roles/linux-system-roles.kdump/tasks/ssh.yml:47 Wednesday 22 November 2023 18:46:23 +0000 (0:00:00.238) 0:00:03.386 **** changed: [sut -> sut] => { "backup": "", "changed": true } MSG: line added TASK [linux-system-roles.kdump : Fetch the servers public key] ***************** task path: /WORKDIR/git-refactor-ostree2h4hpzhf/tests/roles/linux-system-roles.kdump/tasks/ssh.yml:60 Wednesday 22 November 2023 18:46:23 +0000 (0:00:00.230) 0:00:03.617 **** ok: [sut -> sut] => { "changed": false, "content": "c3NoLXJzYSBBQUFBQjNOemFDMXljMkVBQUFBREFRQUJBQUFCQVFEQ2ZPRmNLYyt5ZUpmdy93NzVSK3RUakJqYytZRk9raEVJTkdHUDJiOU0wOFhFeXAxWWFSMEpuWmRzdDlJZWpxT1ZIUTJtY3Z6TG5yQ0RqY3hMWnE1blllYURxZEVocmFFeGZ5NW9FOHpXYWRScTd0bnNQbitwcC9BRW8xOW81NnpiVjgvR2lBSG1rN1dvU3UzVzUwUTc1SENaaTlUSTRYRjViSFA4OU1wOTRjWlNlQXhVbnQrR2ZsbElaL3dQSE1ZbnFJZTNPSnVwUW0reEFEeGE2ZDM4V0FodHU3bGRuazBQYXdUN25GSjJwbkNIN0ZjWUZyWndLRnBmK2VNeWZ6Z04vRUh4dGQ3UHRWbURTY2doSHAyc2tmbUN1QVk4Y0dRNE13cGh1V0UrK3F0dWRhWGF0dVZsUGtqa1lnUWNVMDdBUFk4eXVXTFhlL0x5RUNKQ1dvSGogCg==", "encoding": "base64", "source": "/etc/ssh/ssh_host_rsa_key.pub" } TASK [linux-system-roles.kdump : Add the servers public key to known_hosts on managed node] *** task path: /WORKDIR/git-refactor-ostree2h4hpzhf/tests/roles/linux-system-roles.kdump/tasks/ssh.yml:66 Wednesday 22 November 2023 18:46:23 +0000 (0:00:00.120) 0:00:03.737 **** changed: [sut] => { "changed": true, "gid": 0, "group": "root", "hash_host": false, "key": "10.31.41.56 ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDCfOFcKc+yeJfw/w75R+tTjBjc+YFOkhEINGGP2b9M08XEyp1YaR0JnZdst9IejqOVHQ2mcvzLnrCDjcxLZq5nYeaDqdEhraExfy5oE8zWadRq7tnsPn+pp/AEo19o56zbV8/GiAHmk7WoSu3W50Q75HCZi9TI4XF5bHP89Mp94cZSeAxUnt+GfllIZ/wPHMYnqIe3OJupQm+xADxa6d38WAhtu7ldnk0PawT7nFJ2pnCH7FcYFrZwKFpf+eMyfzgN/EHxtd7PtVmDScghHp2skfmCuAY8cGQ4MwphuWE++qtudaXatuVlPkjkYgQcU07APY8yuWLXe/LyECJCWoHj \n", "mode": "0644", "name": "10.31.41.56", "owner": "root", "path": "/etc/ssh/ssh_known_hosts", "secontext": "system_u:object_r:etc_t:s0", "size": 394, "state": "file", "uid": 0 } TASK [linux-system-roles.kdump : Get mode of /etc/kdump.conf if it exists] ***** task path: /WORKDIR/git-refactor-ostree2h4hpzhf/tests/roles/linux-system-roles.kdump/tasks/main.yml:22 Wednesday 22 November 2023 18:46:23 +0000 (0:00:00.255) 0:00:03.992 **** ok: [sut] => { "changed": false, "stat": { "atime": 1700678774.16053, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "b2355bddae523e4f353a3f66aaf7da513642b0b0", "ctime": 1700678773.5025747, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 335544514, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0644", "mtime": 1700678773.3605843, "nlink": 1, "path": "/etc/kdump.conf", "pw_name": "root", "readable": true, "rgrp": true, "roth": true, "rusr": true, "size": 105, "uid": 0, "version": "18446744072809079212", "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-refactor-ostree2h4hpzhf/tests/roles/linux-system-roles.kdump/tasks/main.yml:27 Wednesday 22 November 2023 18:46:23 +0000 (0:00:00.132) 0:00:04.125 **** NOTIFIED HANDLER linux-system-roles.kdump : Restart kdump for sut changed: [sut] => { "backup_file": "/etc/kdump.conf.12566.2023-11-22@18:46:24~", "changed": true, "checksum": "76b7a5b0745f8ee9c541744a6b43c072923a7af8", "dest": "/etc/kdump.conf", "gid": 0, "group": "root", "md5sum": "c98ee413d01e42d4873d1e619c6439a2", "mode": "0644", "owner": "root", "secontext": "system_u:object_r:kdump_etc_t:s0", "size": 98, "src": "/root/.ansible/tmp/ansible-tmp-1700678783.906777-2588-182076937801418/source", "state": "file", "uid": 0 } TASK [linux-system-roles.kdump : Find out reserved memory for the crash kernel] *** task path: /WORKDIR/git-refactor-ostree2h4hpzhf/tests/roles/linux-system-roles.kdump/tasks/main.yml:35 Wednesday 22 November 2023 18:46:24 +0000 (0:00:00.508) 0:00:04.633 **** 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-refactor-ostree2h4hpzhf/tests/roles/linux-system-roles.kdump/tasks/main.yml:41 Wednesday 22 November 2023 18:46:24 +0000 (0:00:00.119) 0:00:04.752 **** 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-refactor-ostree2h4hpzhf/tests/roles/linux-system-roles.kdump/tasks/main.yml:51 Wednesday 22 November 2023 18:46:24 +0000 (0:00:00.015) 0:00:04.767 **** 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-refactor-ostree2h4hpzhf/tests/roles/linux-system-roles.kdump/tasks/main.yml:56 Wednesday 22 November 2023 18:46:24 +0000 (0:00:00.014) 0:00:04.781 **** 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-refactor-ostree2h4hpzhf/tests/roles/linux-system-roles.kdump/tasks/main.yml:61 Wednesday 22 November 2023 18:46:24 +0000 (0:00:00.013) 0:00:04.795 **** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.kdump : Reboot the managed node] ********************** task path: /WORKDIR/git-refactor-ostree2h4hpzhf/tests/roles/linux-system-roles.kdump/tasks/main.yml:70 Wednesday 22 November 2023 18:46:24 +0000 (0:00:00.014) 0:00:04.810 **** 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-refactor-ostree2h4hpzhf/tests/roles/linux-system-roles.kdump/tasks/main.yml:76 Wednesday 22 November 2023 18:46:24 +0000 (0:00:00.012) 0:00:04.822 **** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.kdump : Ensure that kdump is started] ***************** task path: /WORKDIR/git-refactor-ostree2h4hpzhf/tests/roles/linux-system-roles.kdump/tasks/main.yml:86 Wednesday 22 November 2023 18:46:24 +0000 (0:00:00.011) 0:00:04.834 **** ok: [sut] => { "changed": false, "name": "kdump", "state": "started", "status": { "ActiveEnterTimestamp": "Wed 2023-11-22 18:46:16 UTC", "ActiveEnterTimestampMonotonic": "449953206", "ActiveExitTimestamp": "Wed 2023-11-22 18:46:14 UTC", "ActiveExitTimestampMonotonic": "448412761", "ActiveState": "active", "After": "network.target basic.target network-online.target systemd-journald.socket system.slice remote-fs.target", "AllowIsolate": "no", "AmbientCapabilities": "0", "AssertResult": "yes", "AssertTimestamp": "Wed 2023-11-22 18:46:14 UTC", "AssertTimestampMonotonic": "448440861", "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": "Wed 2023-11-22 18:46:14 UTC", "ConditionTimestampMonotonic": "448440859", "ControlPID": "0", "DefaultDependencies": "no", "Delegate": "no", "Description": "Crash recovery kernel arming", "DevicePolicy": "auto", "ExecMainCode": "1", "ExecMainExitTimestamp": "Wed 2023-11-22 18:46:16 UTC", "ExecMainExitTimestampMonotonic": "449948800", "ExecMainPID": "11412", "ExecMainStartTimestamp": "Wed 2023-11-22 18:46:14 UTC", "ExecMainStartTimestampMonotonic": "448446765", "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=[Wed 2023-11-22 18:46:14 UTC] ; stop_time=[Wed 2023-11-22 18:46:16 UTC] ; pid=11412 ; code=exited ; status=0 }", "ExecStop": "{ path=/usr/bin/kdumpctl ; argv[]=/usr/bin/kdumpctl stop ; ignore_errors=no ; start_time=[Wed 2023-11-22 18:46:14 UTC] ; stop_time=[Wed 2023-11-22 18:46:14 UTC] ; pid=11403 ; 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": "Wed 2023-11-22 18:46:14 UTC", "InactiveEnterTimestampMonotonic": "448431852", "InactiveExitTimestamp": "Wed 2023-11-22 18:46:14 UTC", "InactiveExitTimestampMonotonic": "448446809", "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-refactor-ostree2h4hpzhf/tests/roles/linux-system-roles.kdump/handlers/main.yml:2 Wednesday 22 November 2023 18:46:24 +0000 (0:00:00.187) 0:00:05.021 **** changed: [sut] => { "changed": true, "name": "kdump", "state": "started", "status": { "ActiveEnterTimestamp": "Wed 2023-11-22 18:46:16 UTC", "ActiveEnterTimestampMonotonic": "449953206", "ActiveExitTimestamp": "Wed 2023-11-22 18:46:14 UTC", "ActiveExitTimestampMonotonic": "448412761", "ActiveState": "active", "After": "network.target basic.target network-online.target systemd-journald.socket system.slice remote-fs.target", "AllowIsolate": "no", "AmbientCapabilities": "0", "AssertResult": "yes", "AssertTimestamp": "Wed 2023-11-22 18:46:14 UTC", "AssertTimestampMonotonic": "448440861", "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": "Wed 2023-11-22 18:46:14 UTC", "ConditionTimestampMonotonic": "448440859", "ControlPID": "0", "DefaultDependencies": "no", "Delegate": "no", "Description": "Crash recovery kernel arming", "DevicePolicy": "auto", "ExecMainCode": "1", "ExecMainExitTimestamp": "Wed 2023-11-22 18:46:16 UTC", "ExecMainExitTimestampMonotonic": "449948800", "ExecMainPID": "11412", "ExecMainStartTimestamp": "Wed 2023-11-22 18:46:14 UTC", "ExecMainStartTimestampMonotonic": "448446765", "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=[Wed 2023-11-22 18:46:14 UTC] ; stop_time=[Wed 2023-11-22 18:46:16 UTC] ; pid=11412 ; code=exited ; status=0 }", "ExecStop": "{ path=/usr/bin/kdumpctl ; argv[]=/usr/bin/kdumpctl stop ; ignore_errors=no ; start_time=[Wed 2023-11-22 18:46:14 UTC] ; stop_time=[Wed 2023-11-22 18:46:14 UTC] ; pid=11403 ; 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": "Wed 2023-11-22 18:46:14 UTC", "InactiveEnterTimestampMonotonic": "448431852", "InactiveExitTimestamp": "Wed 2023-11-22 18:46:14 UTC", "InactiveExitTimestampMonotonic": "448446809", "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=23 changed=5 unreachable=0 failed=0 skipped=7 rescued=0 ignored=0 Wednesday 22 November 2023 18:46:46 +0000 (0:00:21.566) 0:00:26.588 **** =============================================================================== linux-system-roles.kdump : Restart kdump ------------------------------- 21.57s /WORKDIR/git-refactor-ostree2h4hpzhf/tests/roles/linux-system-roles.kdump/handlers/main.yml:2 Gathering Facts --------------------------------------------------------- 0.57s /WORKDIR/git-refactor-ostree2h4hpzhf/tests/tests_ssh.yml:2 -------------------- linux-system-roles.kdump : Generate /etc/kdump.conf --------------------- 0.51s /WORKDIR/git-refactor-ostree2h4hpzhf/tests/roles/linux-system-roles.kdump/tasks/main.yml:27 linux-system-roles.kdump : Install required packages -------------------- 0.45s /WORKDIR/git-refactor-ostree2h4hpzhf/tests/roles/linux-system-roles.kdump/tasks/main.yml:5 Gather facts from sut --------------------------------------------------- 0.41s /WORKDIR/git-refactor-ostree2h4hpzhf/tests/tests_ssh.yml:59 ------------------- linux-system-roles.kdump : Ensure that kdump is enabled ----------------- 0.36s /WORKDIR/git-refactor-ostree2h4hpzhf/tests/roles/linux-system-roles.kdump/tasks/main.yml:12 linux-system-roles.kdump : Get userinfo for root ------------------------ 0.27s /WORKDIR/git-refactor-ostree2h4hpzhf/tests/roles/linux-system-roles.kdump/tasks/ssh.yml:20 linux-system-roles.kdump : Create key if it does not exist -------------- 0.26s /WORKDIR/git-refactor-ostree2h4hpzhf/tests/roles/linux-system-roles.kdump/tasks/ssh.yml:2 linux-system-roles.kdump : Add the servers public key to known_hosts on managed node --- 0.26s /WORKDIR/git-refactor-ostree2h4hpzhf/tests/roles/linux-system-roles.kdump/tasks/ssh.yml:66 linux-system-roles.kdump : Ensure ssh directory for authorized_keys if needed --- 0.24s /WORKDIR/git-refactor-ostree2h4hpzhf/tests/roles/linux-system-roles.kdump/tasks/ssh.yml:36 linux-system-roles.kdump : Write new authorized_keys if needed ---------- 0.23s /WORKDIR/git-refactor-ostree2h4hpzhf/tests/roles/linux-system-roles.kdump/tasks/ssh.yml:47 linux-system-roles.kdump : Check if system is ostree -------------------- 0.20s /WORKDIR/git-refactor-ostree2h4hpzhf/tests/roles/linux-system-roles.kdump/tasks/set_vars.yml:11 linux-system-roles.kdump : Fetch key ------------------------------------ 0.19s /WORKDIR/git-refactor-ostree2h4hpzhf/tests/roles/linux-system-roles.kdump/tasks/ssh.yml:7 linux-system-roles.kdump : Ensure that kdump is started ----------------- 0.19s /WORKDIR/git-refactor-ostree2h4hpzhf/tests/roles/linux-system-roles.kdump/tasks/main.yml:86 linux-system-roles.kdump : Get the authorized_keys file for the user ---- 0.14s /WORKDIR/git-refactor-ostree2h4hpzhf/tests/roles/linux-system-roles.kdump/tasks/ssh.yml:31 linux-system-roles.kdump : Get the ssh directory for the user ----------- 0.14s /WORKDIR/git-refactor-ostree2h4hpzhf/tests/roles/linux-system-roles.kdump/tasks/ssh.yml:26 linux-system-roles.kdump : Get mode of /etc/kdump.conf if it exists ----- 0.13s /WORKDIR/git-refactor-ostree2h4hpzhf/tests/roles/linux-system-roles.kdump/tasks/main.yml:22 linux-system-roles.kdump : Fetch the servers public key ----------------- 0.12s /WORKDIR/git-refactor-ostree2h4hpzhf/tests/roles/linux-system-roles.kdump/tasks/ssh.yml:60 linux-system-roles.kdump : Find out reserved memory for the crash kernel --- 0.12s /WORKDIR/git-refactor-ostree2h4hpzhf/tests/roles/linux-system-roles.kdump/tasks/main.yml:35 Run the role. If reboot is not required - the play succeeds. ------------ 0.05s /WORKDIR/git-refactor-ostree2h4hpzhf/tests/tests_ssh.yml:85 ------------------- ---^---^---^---^---^--- # STDERR: ---v---v---v---v---v--- ---^---^---^---^---^---