ansible-playbook [core 2.12.6] config file = /etc/ansible/ansible.cfg configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.9/site-packages/ansible ansible collection location = /tmp/tmpr7314eea executable location = /usr/bin/ansible-playbook python version = 3.9.13 (main, May 18 2022, 00:00:00) [GCC 11.3.1 20220421 (Red Hat 11.3.1-2)] jinja version = 2.11.3 libyaml = True Using /etc/ansible/ansible.cfg as config file Skipping callback 'debug', as we already have a stdout callback. Skipping callback 'default', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. PLAYBOOK: rhel-7_setup.yml ***************************************************** 1 plays in /cache/rhel-7_setup.yml PLAY [Setup repos] ************************************************************* META: ran handlers TASK [set up internal repositories] ******************************************** task path: /cache/rhel-7_setup.yml:5 Monday 25 July 2022 18:45:37 +0000 (0:00:00.018) 0:00:00.018 *********** ok: [/cache/rhel-7.qcow2] => (item=None) => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } ok: [/cache/rhel-7.qcow2] => (item=None) => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } ok: [/cache/rhel-7.qcow2] => (item=None) => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } ok: [/cache/rhel-7.qcow2] => (item=None) => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } ok: [/cache/rhel-7.qcow2] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-7.qcow2 : ok=1 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 Monday 25 July 2022 18:45:38 +0000 (0:00:01.350) 0:00:01.369 *********** =============================================================================== set up internal repositories -------------------------------------------- 1.35s /cache/rhel-7_setup.yml:5 ----------------------------------------------------- PLAYBOOK: tests_simple_settings.yml ******************************************** 1 plays in /tmp/tmp2ypk49pe/tests/tests_simple_settings.yml PLAY [test simple kernel settings] ********************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmp2ypk49pe/tests/tests_simple_settings.yml:2 Monday 25 July 2022 18:45:38 +0000 (0:00:00.030) 0:00:01.400 *********** ok: [/cache/rhel-7.qcow2] META: ran handlers TASK [set platform independent vars used by this test] ************************* task path: /tmp/tmp2ypk49pe/tests/tests_simple_settings.yml:8 Monday 25 July 2022 18:45:39 +0000 (0:00:00.925) 0:00:02.325 *********** ok: [/cache/rhel-7.qcow2] => { "ansible_facts": { "__kernel_settings_profile_file": "# File managed by Ansible - DO NOT EDIT\n[main]\nsummary = kernel settings\n[sysctl]\nfs.epoll.max_user_watches = 785592\nfs.file-max = 379724\n[vm]\ntransparent_hugepages = madvise\n[sysfs]\n/sys/kernel/debug/x86/ibrs_enabled = 0\n/sys/kernel/debug/x86/pti_enabled = 0\n/sys/kernel/debug/x86/retp_enabled = 0\n{% if __kernel_settings_blcmdline_value | d() %}\n[bootloader]\ncmdline = {{ __kernel_settings_blcmdline_value }}\n{% endif %}\n", "kernel_settings_sysctl": [ { "name": "fs.epoll.max_user_watches", "value": 785592 }, { "name": "fs.file-max", "value": 379724 }, { "name": "no.such.param", "state": "absent" } ], "kernel_settings_sysfs": [ { "name": "/sys/kernel/debug/x86/pti_enabled", "value": 0 }, { "name": "/sys/kernel/debug/x86/retp_enabled", "value": 0 }, { "name": "/sys/kernel/debug/x86/ibrs_enabled", "value": 0 }, { "name": "/sys/not/found", "state": "absent" } ], "kernel_settings_systemd_cpu_affinity": { "state": "absent" }, "kernel_settings_transparent_hugepages": "madvise", "kernel_settings_transparent_hugepages_defrag": { "state": "absent" } }, "ansible_included_var_files": [ "/tmp/tmp2ypk49pe/tests/vars/vars_simple_settings.yml" ], "changed": false } TASK [disable bootloader cmdline testing on Fedora] **************************** task path: /tmp/tmp2ypk49pe/tests/tests_simple_settings.yml:12 Monday 25 July 2022 18:45:39 +0000 (0:00:00.030) 0:00:02.356 *********** skipping: [/cache/rhel-7.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [apply the settings - call the role] ************************************** task path: /tmp/tmp2ypk49pe/tests/tests_simple_settings.yml:23 Monday 25 July 2022 18:45:39 +0000 (0:00:00.021) 0:00:02.377 *********** TASK [linux-system-roles.kernel_settings : Set version specific variables] ***** task path: /tmp/tmp2ypk49pe/tests/roles/linux-system-roles.kernel_settings/tasks/main.yml:2 Monday 25 July 2022 18:45:39 +0000 (0:00:00.038) 0:00:02.416 *********** included: /tmp/tmp2ypk49pe/tests/roles/linux-system-roles.kernel_settings/tasks/set_vars.yml for /cache/rhel-7.qcow2 TASK [linux-system-roles.kernel_settings : Ensure ansible_facts used by role] *** task path: /tmp/tmp2ypk49pe/tests/roles/linux-system-roles.kernel_settings/tasks/set_vars.yml:2 Monday 25 July 2022 18:45:39 +0000 (0:00:00.028) 0:00:02.444 *********** ok: [/cache/rhel-7.qcow2] TASK [linux-system-roles.kernel_settings : Set platform/version specific variables] *** task path: /tmp/tmp2ypk49pe/tests/roles/linux-system-roles.kernel_settings/tasks/set_vars.yml:9 Monday 25 July 2022 18:45:39 +0000 (0:00:00.401) 0:00:02.845 *********** ok: [/cache/rhel-7.qcow2] => { "ansible_facts": { "__kernel_settings_packages": [ "tuned", "python-configobj" ], "__kernel_settings_services": [ "tuned" ] }, "ansible_included_var_files": [ "/tmp/tmp2ypk49pe/tests/roles/linux-system-roles.kernel_settings/vars/RedHat_7.yml" ], "changed": false } TASK [linux-system-roles.kernel_settings : Ensure required packages are installed] *** task path: /tmp/tmp2ypk49pe/tests/roles/linux-system-roles.kernel_settings/tasks/main.yml:5 Monday 25 July 2022 18:45:39 +0000 (0:00:00.040) 0:00:02.886 *********** ok: [/cache/rhel-7.qcow2] => { "changed": false, "rc": 0, "results": [ "tuned-2.11.0-11.el7_9.noarch providing tuned is already installed", "python-configobj-4.7.2-7.el7.noarch providing python-configobj is already installed" ] } TASK [linux-system-roles.kernel_settings : Ensure required services are enabled and started] *** task path: /tmp/tmp2ypk49pe/tests/roles/linux-system-roles.kernel_settings/tasks/main.yml:10 Monday 25 July 2022 18:45:40 +0000 (0:00:00.635) 0:00:03.522 *********** ok: [/cache/rhel-7.qcow2] => (item=tuned) => { "ansible_loop_var": "item", "changed": false, "enabled": true, "item": "tuned", "name": "tuned", "state": "started", "status": { "ActiveEnterTimestamp": "Mon 2022-07-25 14:44:57 EDT", "ActiveEnterTimestampMonotonic": "4632214", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "network.target basic.target dbus.service systemd-journald.socket systemd-sysctl.service system.slice", "AllowIsolate": "no", "AmbientCapabilities": "0", "AssertResult": "yes", "AssertTimestamp": "Mon 2022-07-25 14:44:56 EDT", "AssertTimestampMonotonic": "4415915", "Before": "shutdown.target multi-user.target", "BlockIOAccounting": "no", "BlockIOWeight": "18446744073709551615", "BusName": "com.redhat.tuned", "CPUAccounting": "no", "CPUQuotaPerSecUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "18446744073709551615", "CanIsolate": "no", "CanReload": "no", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "18446744073709551615", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Mon 2022-07-25 14:44:56 EDT", "ConditionTimestampMonotonic": "4415915", "Conflicts": "shutdown.target cpupower.service", "ControlGroup": "/system.slice/tuned.service", "ControlPID": "0", "DefaultDependencies": "yes", "Delegate": "no", "Description": "Dynamic System Tuning Daemon", "DevicePolicy": "auto", "Documentation": "man:tuned(8) man:tuned.conf(5) man:tuned-adm(8)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "919", "ExecMainStartTimestamp": "Mon 2022-07-25 14:44:56 EDT", "ExecMainStartTimestampMonotonic": "4416527", "ExecMainStatus": "0", "ExecStart": "{ path=/usr/sbin/tuned ; argv[]=/usr/sbin/tuned -l -P ; ignore_errors=no ; start_time=[Mon 2022-07-25 14:44:56 EDT] ; stop_time=[n/a] ; pid=919 ; code=(null) ; status=0/0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FragmentPath": "/usr/lib/systemd/system/tuned.service", "GuessMainPID": "yes", "IOScheduling": "0", "Id": "tuned.service", "IgnoreOnIsolate": "no", "IgnoreOnSnapshot": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestamp": "Mon 2022-07-25 14:44:56 EDT", "InactiveExitTimestampMonotonic": "4416558", "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": "7150", "LimitRSS": "18446744073709551615", "LimitRTPRIO": "0", "LimitRTTIME": "18446744073709551615", "LimitSIGPENDING": "7150", "LimitSTACK": "18446744073709551615", "LoadState": "loaded", "MainPID": "919", "MemoryAccounting": "no", "MemoryCurrent": "18446744073709551615", "MemoryLimit": "18446744073709551615", "MountFlags": "0", "Names": "tuned.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PIDFile": "/run/tuned/tuned.pid", "PermissionsStartOnly": "no", "PrivateDevices": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "ProtectHome": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "no", "Requires": "system.slice dbus.service basic.target polkit.service", "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": "10000000", "StartupBlockIOWeight": "18446744073709551615", "StartupCPUShares": "18446744073709551615", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "running", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "no", "TasksCurrent": "18446744073709551615", "TasksMax": "18446744073709551615", "TimeoutStartUSec": "1min 30s", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "dbus", "UMask": "0022", "UnitFilePreset": "enabled", "UnitFileState": "enabled", "WantedBy": "multi-user.target", "WatchdogTimestamp": "Mon 2022-07-25 14:44:57 EDT", "WatchdogTimestampMonotonic": "4631846", "WatchdogUSec": "0" } } TASK [linux-system-roles.kernel_settings : Ensure kernel settings profile directory exists] *** task path: /tmp/tmp2ypk49pe/tests/roles/linux-system-roles.kernel_settings/tasks/main.yml:17 Monday 25 July 2022 18:45:41 +0000 (0:00:00.650) 0:00:04.173 *********** ok: [/cache/rhel-7.qcow2] => { "changed": false, "gid": 0, "group": "root", "mode": "0755", "owner": "root", "path": "/etc/tuned/kernel_settings", "secontext": "unconfined_u:object_r:tuned_etc_t:s0", "size": 24, "state": "directory", "uid": 0 } TASK [linux-system-roles.kernel_settings : Generate a configuration for kernel settings] *** task path: /tmp/tmp2ypk49pe/tests/roles/linux-system-roles.kernel_settings/tasks/main.yml:23 Monday 25 July 2022 18:45:41 +0000 (0:00:00.448) 0:00:04.621 *********** ok: [/cache/rhel-7.qcow2] => { "changed": false, "dest": "/etc/tuned/kernel_settings/tuned.conf", "src": "/root/.ansible/tmp/ansible-local-1390992f11fki7/tmpyfcp1zh_/kernel_settings.j2" } TASK [linux-system-roles.kernel_settings : Get current config] ***************** task path: /tmp/tmp2ypk49pe/tests/roles/linux-system-roles.kernel_settings/tasks/main.yml:30 Monday 25 July 2022 18:45:42 +0000 (0:00:00.461) 0:00:05.082 *********** ok: [/cache/rhel-7.qcow2] => { "changed": false, "content": "IwojIEFuc2libGUgbWFuYWdlZAojClttYWluXQpzdW1tYXJ5ID0ga2VybmVsIHNldHRpbmdzCg==", "encoding": "base64", "source": "/etc/tuned/kernel_settings/tuned.conf" } TASK [linux-system-roles.kernel_settings : Apply kernel settings] ************** task path: /tmp/tmp2ypk49pe/tests/roles/linux-system-roles.kernel_settings/tasks/main.yml:36 Monday 25 July 2022 18:45:42 +0000 (0:00:00.429) 0:00:05.512 *********** NOTIFIED HANDLER linux-system-roles.kernel_settings : reboot the managed host to apply kernel_settings changes for /cache/rhel-7.qcow2 NOTIFIED HANDLER linux-system-roles.kernel_settings : clear the kernel_settings_reboot_required flag for /cache/rhel-7.qcow2 changed: [/cache/rhel-7.qcow2] => { "active_profile": "virtual-guest kernel_settings", "changed": true, "message": "", "new_profile": { "sysctl": { "fs.epoll.max_user_watches": "785592", "fs.file-max": "379724" }, "sysfs": { "/sys/kernel/debug/x86/ibrs_enabled": "0", "/sys/kernel/debug/x86/pti_enabled": "0", "/sys/kernel/debug/x86/retp_enabled": "0" }, "vm": { "transparent_hugepages": "madvise" } }, "reboot_required": false } MSG: Kernel settings were updated. TASK [linux-system-roles.kernel_settings : tuned apply settings] *************** task path: /tmp/tmp2ypk49pe/tests/roles/linux-system-roles.kernel_settings/tasks/main.yml:92 Monday 25 July 2022 18:45:43 +0000 (0:00:00.551) 0:00:06.064 *********** changed: [/cache/rhel-7.qcow2] => { "changed": true, "cmd": [ "tuned-adm", "profile", "virtual-guest kernel_settings" ], "delta": "0:00:01.838905", "end": "2022-07-25 14:45:44.316242", "rc": 0, "start": "2022-07-25 14:45:42.477337" } TASK [linux-system-roles.kernel_settings : verify settings] ******************** task path: /tmp/tmp2ypk49pe/tests/roles/linux-system-roles.kernel_settings/tasks/main.yml:97 Monday 25 July 2022 18:45:45 +0000 (0:00:02.269) 0:00:08.333 *********** included: /tmp/tmp2ypk49pe/tests/roles/linux-system-roles.kernel_settings/tasks/verify_settings.yml for /cache/rhel-7.qcow2 TASK [linux-system-roles.kernel_settings : check that settings are applied correctly] *** task path: /tmp/tmp2ypk49pe/tests/roles/linux-system-roles.kernel_settings/tasks/verify_settings.yml:2 Monday 25 July 2022 18:45:45 +0000 (0:00:00.041) 0:00:08.375 *********** ok: [/cache/rhel-7.qcow2] => { "changed": false, "cmd": [ "tuned-adm", "verify", "-i" ], "delta": "0:00:00.095979", "end": "2022-07-25 14:45:44.732578", "rc": 0, "start": "2022-07-25 14:45:44.636599" } STDOUT: Verfication succeeded, current system settings match the preset profile. See tuned log file ('/var/log/tuned/tuned.log') for details. TASK [linux-system-roles.kernel_settings : get last verify results from log] *** task path: /tmp/tmp2ypk49pe/tests/roles/linux-system-roles.kernel_settings/tasks/verify_settings.yml:12 Monday 25 July 2022 18:45:45 +0000 (0:00:00.366) 0:00:08.741 *********** skipping: [/cache/rhel-7.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.kernel_settings : report errors that are not bootloader errors] *** task path: /tmp/tmp2ypk49pe/tests/roles/linux-system-roles.kernel_settings/tasks/verify_settings.yml:24 Monday 25 July 2022 18:45:45 +0000 (0:00:00.026) 0:00:08.767 *********** skipping: [/cache/rhel-7.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.kernel_settings : notify user that reboot is needed to apply changes] *** task path: /tmp/tmp2ypk49pe/tests/roles/linux-system-roles.kernel_settings/tasks/main.yml:101 Monday 25 July 2022 18:45:45 +0000 (0:00:00.026) 0:00:08.794 *********** skipping: [/cache/rhel-7.qcow2] => {} TASK [linux-system-roles.kernel_settings : set the flag that reboot is needed to apply changes] *** task path: /tmp/tmp2ypk49pe/tests/roles/linux-system-roles.kernel_settings/tasks/main.yml:110 Monday 25 July 2022 18:45:45 +0000 (0:00:00.034) 0:00:08.829 *********** skipping: [/cache/rhel-7.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } META: role_complete for /cache/rhel-7.qcow2 TASK [verify that settings were applied correctly] ***************************** task path: /tmp/tmp2ypk49pe/tests/tests_simple_settings.yml:28 Monday 25 July 2022 18:45:45 +0000 (0:00:00.043) 0:00:08.872 *********** included: /tmp/tmp2ypk49pe/tests/tasks/assert_kernel_settings.yml for /cache/rhel-7.qcow2 TASK [Set version specific variables] ****************************************** task path: /tmp/tmp2ypk49pe/tests/tasks/assert_kernel_settings.yml:2 Monday 25 July 2022 18:45:46 +0000 (0:00:00.031) 0:00:08.904 *********** ok: [/cache/rhel-7.qcow2] => { "ansible_facts": { "__kernel_settings_test_python_cmd": "python", "__kernel_settings_test_python_pkgs": [ "python", "python-configobj" ] }, "ansible_included_var_files": [ "/tmp/tmp2ypk49pe/tests/vars/tests_default.yml" ], "changed": false } TASK [reset settings success flag] ********************************************* task path: /tmp/tmp2ypk49pe/tests/tasks/assert_kernel_settings.yml:13 Monday 25 July 2022 18:45:46 +0000 (0:00:00.036) 0:00:08.940 *********** ok: [/cache/rhel-7.qcow2] => { "ansible_facts": { "__kernel_settings_success": true }, "changed": false } TASK [check tuned-adm verify] ************************************************** task path: /tmp/tmp2ypk49pe/tests/tasks/assert_kernel_settings.yml:17 Monday 25 July 2022 18:45:46 +0000 (0:00:00.027) 0:00:08.968 *********** skipping: [/cache/rhel-7.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [check for verify errors] ************************************************* task path: /tmp/tmp2ypk49pe/tests/tasks/assert_kernel_settings.yml:23 Monday 25 July 2022 18:45:46 +0000 (0:00:00.021) 0:00:08.989 *********** skipping: [/cache/rhel-7.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [check /proc/cmdline] ***************************************************** task path: /tmp/tmp2ypk49pe/tests/tasks/assert_kernel_settings.yml:29 Monday 25 July 2022 18:45:46 +0000 (0:00:00.025) 0:00:09.015 *********** skipping: [/cache/rhel-7.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [set error flag based on verify] ****************************************** task path: /tmp/tmp2ypk49pe/tests/tasks/assert_kernel_settings.yml:35 Monday 25 July 2022 18:45:46 +0000 (0:00:00.025) 0:00:09.040 *********** skipping: [/cache/rhel-7.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** task path: /tmp/tmp2ypk49pe/tests/tasks/assert_kernel_settings.yml:42 Monday 25 July 2022 18:45:46 +0000 (0:00:00.026) 0:00:09.067 *********** included: /tmp/tmp2ypk49pe/tests/tasks/assert_kernel_settings_conf_files.yml for /cache/rhel-7.qcow2 TASK [create temporary file for expected config] ******************************* task path: /tmp/tmp2ypk49pe/tests/tasks/assert_kernel_settings_conf_files.yml:2 Monday 25 July 2022 18:45:46 +0000 (0:00:00.050) 0:00:09.118 *********** changed: [/cache/rhel-7.qcow2] => { "changed": true, "gid": 0, "group": "root", "mode": "0600", "owner": "root", "path": "/tmp/ansible.B8U7iV.kernel_settings", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 0, "state": "file", "uid": 0 } TASK [put expected contents into temporary file] ******************************* task path: /tmp/tmp2ypk49pe/tests/tasks/assert_kernel_settings_conf_files.yml:8 Monday 25 July 2022 18:45:46 +0000 (0:00:00.405) 0:00:09.523 *********** changed: [/cache/rhel-7.qcow2] => { "changed": true, "checksum": "169e46a0442e2493edda7ef1d37dfc572d06525c", "dest": "/tmp/ansible.B8U7iV.kernel_settings", "gid": 0, "group": "root", "md5sum": "b82bbe3a22d81e7a442595a59b2d0944", "mode": "0600", "owner": "root", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 299, "src": "/root/.ansible/tmp/ansible-tmp-1658774746.7118595-139376-275312179803300/source", "state": "file", "uid": 0 } TASK [ensure python command exists for tests below] **************************** task path: /tmp/tmp2ypk49pe/tests/tasks/assert_kernel_settings_conf_files.yml:14 Monday 25 July 2022 18:45:47 +0000 (0:00:00.658) 0:00:10.182 *********** ok: [/cache/rhel-7.qcow2] => { "changed": false, "rc": 0, "results": [ "python-2.7.5-92.el7_9.x86_64 providing python is already installed", "python-configobj-4.7.2-7.el7.noarch providing python-configobj is already installed" ] } TASK [diff expected vs actual content] ***************************************** task path: /tmp/tmp2ypk49pe/tests/tasks/assert_kernel_settings_conf_files.yml:19 Monday 25 July 2022 18:45:47 +0000 (0:00:00.477) 0:00:10.659 *********** ok: [/cache/rhel-7.qcow2] => { "changed": false, "cmd": "python -c 'import sys\nfrom configobj import ConfigObj\nc1 = ConfigObj(sys.argv[1])\nc2 = ConfigObj(sys.argv[2])\nsys.exit(not c1 == c2)' /tmp/ansible.B8U7iV.kernel_settings /etc/tuned/kernel_settings/tuned.conf\n", "delta": "0:00:00.016390", "end": "2022-07-25 14:45:46.939944", "rc": 0, "start": "2022-07-25 14:45:46.923554" } TASK [verify expected content] ************************************************* task path: /tmp/tmp2ypk49pe/tests/tasks/assert_kernel_settings_conf_files.yml:32 Monday 25 July 2022 18:45:48 +0000 (0:00:00.284) 0:00:10.944 *********** skipping: [/cache/rhel-7.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [show diff - may not reflect actual ConfigObj differences] **************** task path: /tmp/tmp2ypk49pe/tests/tasks/assert_kernel_settings_conf_files.yml:37 Monday 25 July 2022 18:45:48 +0000 (0:00:00.023) 0:00:10.967 *********** skipping: [/cache/rhel-7.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [get active_profile file] ************************************************* task path: /tmp/tmp2ypk49pe/tests/tasks/assert_kernel_settings_conf_files.yml:44 Monday 25 July 2022 18:45:48 +0000 (0:00:00.049) 0:00:11.017 *********** ok: [/cache/rhel-7.qcow2] => { "changed": false, "content": "dmlydHVhbC1ndWVzdCBrZXJuZWxfc2V0dGluZ3MK", "encoding": "base64", "source": "/etc/tuned/active_profile" } TASK [check that active_profile ends with kernel_settings] ********************* task path: /tmp/tmp2ypk49pe/tests/tasks/assert_kernel_settings_conf_files.yml:51 Monday 25 July 2022 18:45:48 +0000 (0:00:00.263) 0:00:11.281 *********** skipping: [/cache/rhel-7.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [get profile_mode file] *************************************************** task path: /tmp/tmp2ypk49pe/tests/tasks/assert_kernel_settings_conf_files.yml:58 Monday 25 July 2022 18:45:48 +0000 (0:00:00.035) 0:00:11.317 *********** ok: [/cache/rhel-7.qcow2] => { "changed": false, "content": "bWFudWFsCg==", "encoding": "base64", "source": "/etc/tuned/profile_mode" } TASK [check that profile_mode is manual] *************************************** task path: /tmp/tmp2ypk49pe/tests/tasks/assert_kernel_settings_conf_files.yml:65 Monday 25 July 2022 18:45:48 +0000 (0:00:00.273) 0:00:11.590 *********** skipping: [/cache/rhel-7.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [get the bootloader specific config file] ********************************* task path: /tmp/tmp2ypk49pe/tests/tasks/assert_kernel_settings_conf_files.yml:73 Monday 25 July 2022 18:45:48 +0000 (0:00:00.036) 0:00:11.627 *********** skipping: [/cache/rhel-7.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [verify bootloader settings value] **************************************** task path: /tmp/tmp2ypk49pe/tests/tasks/assert_kernel_settings_conf_files.yml:84 Monday 25 July 2022 18:45:48 +0000 (0:00:00.033) 0:00:11.660 *********** skipping: [/cache/rhel-7.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [check if kernel_settings_reboot_required is set if needed] *************** task path: /tmp/tmp2ypk49pe/tests/tasks/assert_kernel_settings.yml:45 Monday 25 July 2022 18:45:48 +0000 (0:00:00.032) 0:00:11.692 *********** skipping: [/cache/rhel-7.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [assert success] ********************************************************** task path: /tmp/tmp2ypk49pe/tests/tasks/assert_kernel_settings.yml:52 Monday 25 July 2022 18:45:48 +0000 (0:00:00.032) 0:00:11.725 *********** ok: [/cache/rhel-7.qcow2] => { "changed": false } MSG: All assertions passed TASK [reboot the machine - see if settings persist after reboot] *************** task path: /tmp/tmp2ypk49pe/tests/tests_simple_settings.yml:35 Monday 25 July 2022 18:45:48 +0000 (0:00:00.044) 0:00:11.769 *********** skipping: [/cache/rhel-7.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [verify that settings were applied correctly after reboot] **************** task path: /tmp/tmp2ypk49pe/tests/tests_simple_settings.yml:42 Monday 25 July 2022 18:45:48 +0000 (0:00:00.034) 0:00:11.804 *********** skipping: [/cache/rhel-7.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [show contents of tuned.conf] ********************************************* task path: /tmp/tmp2ypk49pe/tests/tests_simple_settings.yml:51 Monday 25 July 2022 18:45:48 +0000 (0:00:00.034) 0:00:11.838 *********** ok: [/cache/rhel-7.qcow2] => { "changed": false, "cmd": [ "cat", "/etc/tuned/kernel_settings/tuned.conf" ], "delta": "0:00:00.002672", "end": "2022-07-25 14:45:48.112112", "rc": 0, "start": "2022-07-25 14:45:48.109440" } STDOUT: # # Ansible managed # [main] summary = kernel settings [sysctl] fs.epoll.max_user_watches = 785592 fs.file-max = 379724 [vm] transparent_hugepages = madvise [sysfs] /sys/kernel/debug/x86/pti_enabled = 0 /sys/kernel/debug/x86/retp_enabled = 0 /sys/kernel/debug/x86/ibrs_enabled = 0 RUNNING HANDLER [linux-system-roles.kernel_settings : reboot the managed host to apply kernel_settings changes] *** task path: /tmp/tmp2ypk49pe/tests/roles/linux-system-roles.kernel_settings/handlers/main.yml:2 Monday 25 July 2022 18:45:49 +0000 (0:00:00.282) 0:00:12.121 *********** skipping: [/cache/rhel-7.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } RUNNING HANDLER [linux-system-roles.kernel_settings : clear the kernel_settings_reboot_required flag] *** task path: /tmp/tmp2ypk49pe/tests/roles/linux-system-roles.kernel_settings/handlers/main.yml:12 Monday 25 July 2022 18:45:49 +0000 (0:00:00.032) 0:00:12.154 *********** skipping: [/cache/rhel-7.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-7.qcow2 : ok=27 changed=4 unreachable=0 failed=0 skipped=20 rescued=0 ignored=0 Monday 25 July 2022 18:45:49 +0000 (0:00:00.042) 0:00:12.197 *********** =============================================================================== linux-system-roles.kernel_settings : tuned apply settings --------------- 2.27s /tmp/tmp2ypk49pe/tests/roles/linux-system-roles.kernel_settings/tasks/main.yml:92 set up internal repositories -------------------------------------------- 1.35s /cache/rhel-7_setup.yml:5 ----------------------------------------------------- Gathering Facts --------------------------------------------------------- 0.93s /tmp/tmp2ypk49pe/tests/tests_simple_settings.yml:2 ---------------------------- put expected contents into temporary file ------------------------------- 0.66s /tmp/tmp2ypk49pe/tests/tasks/assert_kernel_settings_conf_files.yml:8 ---------- linux-system-roles.kernel_settings : Ensure required services are enabled and started --- 0.65s /tmp/tmp2ypk49pe/tests/roles/linux-system-roles.kernel_settings/tasks/main.yml:10 linux-system-roles.kernel_settings : Ensure required packages are installed --- 0.64s /tmp/tmp2ypk49pe/tests/roles/linux-system-roles.kernel_settings/tasks/main.yml:5 linux-system-roles.kernel_settings : Apply kernel settings -------------- 0.55s /tmp/tmp2ypk49pe/tests/roles/linux-system-roles.kernel_settings/tasks/main.yml:36 ensure python command exists for tests below ---------------------------- 0.48s /tmp/tmp2ypk49pe/tests/tasks/assert_kernel_settings_conf_files.yml:14 --------- linux-system-roles.kernel_settings : Generate a configuration for kernel settings --- 0.46s /tmp/tmp2ypk49pe/tests/roles/linux-system-roles.kernel_settings/tasks/main.yml:23 linux-system-roles.kernel_settings : Ensure kernel settings profile directory exists --- 0.45s /tmp/tmp2ypk49pe/tests/roles/linux-system-roles.kernel_settings/tasks/main.yml:17 linux-system-roles.kernel_settings : Get current config ----------------- 0.43s /tmp/tmp2ypk49pe/tests/roles/linux-system-roles.kernel_settings/tasks/main.yml:30 create temporary file for expected config ------------------------------- 0.41s /tmp/tmp2ypk49pe/tests/tasks/assert_kernel_settings_conf_files.yml:2 ---------- linux-system-roles.kernel_settings : Ensure ansible_facts used by role --- 0.40s /tmp/tmp2ypk49pe/tests/roles/linux-system-roles.kernel_settings/tasks/set_vars.yml:2 linux-system-roles.kernel_settings : check that settings are applied correctly --- 0.37s /tmp/tmp2ypk49pe/tests/roles/linux-system-roles.kernel_settings/tasks/verify_settings.yml:2 diff expected vs actual content ----------------------------------------- 0.28s /tmp/tmp2ypk49pe/tests/tasks/assert_kernel_settings_conf_files.yml:19 --------- show contents of tuned.conf --------------------------------------------- 0.28s /tmp/tmp2ypk49pe/tests/tests_simple_settings.yml:51 --------------------------- get profile_mode file --------------------------------------------------- 0.27s /tmp/tmp2ypk49pe/tests/tasks/assert_kernel_settings_conf_files.yml:58 --------- get active_profile file ------------------------------------------------- 0.26s /tmp/tmp2ypk49pe/tests/tasks/assert_kernel_settings_conf_files.yml:44 --------- include_tasks ----------------------------------------------------------- 0.05s /tmp/tmp2ypk49pe/tests/tasks/assert_kernel_settings.yml:42 -------------------- show diff - may not reflect actual ConfigObj differences ---------------- 0.05s /tmp/tmp2ypk49pe/tests/tasks/assert_kernel_settings_conf_files.yml:37 --------- ansible-playbook [core 2.12.6] config file = /etc/ansible/ansible.cfg configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.9/site-packages/ansible ansible collection location = /tmp/tmpr7314eea executable location = /usr/bin/ansible-playbook python version = 3.9.13 (main, May 18 2022, 00:00:00) [GCC 11.3.1 20220421 (Red Hat 11.3.1-2)] jinja version = 2.11.3 libyaml = True Using /etc/ansible/ansible.cfg as config file Skipping callback 'debug', as we already have a stdout callback. Skipping callback 'default', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. PLAYBOOK: rhel-7_setup.yml ***************************************************** 1 plays in /cache/rhel-7_setup.yml PLAY [Setup repos] ************************************************************* META: ran handlers TASK [set up internal repositories] ******************************************** task path: /cache/rhel-7_setup.yml:5 Monday 25 July 2022 18:47:16 +0000 (0:00:00.018) 0:00:00.018 *********** ok: [/cache/rhel-7.qcow2] => (item=None) => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } ok: [/cache/rhel-7.qcow2] => (item=None) => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } ok: [/cache/rhel-7.qcow2] => (item=None) => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } ok: [/cache/rhel-7.qcow2] => (item=None) => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } ok: [/cache/rhel-7.qcow2] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-7.qcow2 : ok=1 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 Monday 25 July 2022 18:47:17 +0000 (0:00:01.350) 0:00:01.369 *********** =============================================================================== set up internal repositories -------------------------------------------- 1.35s /cache/rhel-7_setup.yml:5 ----------------------------------------------------- PLAYBOOK: tests_simple_settings.yml ******************************************** 1 plays in /tmp/tmp_9x32atz/tests/kernel_settings/tests_simple_settings.yml PLAY [test simple kernel settings] ********************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmp_9x32atz/tests/kernel_settings/tests_simple_settings.yml:2 Monday 25 July 2022 18:47:17 +0000 (0:00:00.031) 0:00:01.400 *********** ok: [/cache/rhel-7.qcow2] META: ran handlers TASK [set platform independent vars used by this test] ************************* task path: /tmp/tmp_9x32atz/tests/kernel_settings/tests_simple_settings.yml:8 Monday 25 July 2022 18:47:18 +0000 (0:00:00.931) 0:00:02.332 *********** ok: [/cache/rhel-7.qcow2] => { "ansible_facts": { "__kernel_settings_profile_file": "# File managed by Ansible - DO NOT EDIT\n[main]\nsummary = kernel settings\n[sysctl]\nfs.epoll.max_user_watches = 785592\nfs.file-max = 379724\n[vm]\ntransparent_hugepages = madvise\n[sysfs]\n/sys/kernel/debug/x86/ibrs_enabled = 0\n/sys/kernel/debug/x86/pti_enabled = 0\n/sys/kernel/debug/x86/retp_enabled = 0\n{% if __kernel_settings_blcmdline_value | d() %}\n[bootloader]\ncmdline = {{ __kernel_settings_blcmdline_value }}\n{% endif %}\n", "kernel_settings_sysctl": [ { "name": "fs.epoll.max_user_watches", "value": 785592 }, { "name": "fs.file-max", "value": 379724 }, { "name": "no.such.param", "state": "absent" } ], "kernel_settings_sysfs": [ { "name": "/sys/kernel/debug/x86/pti_enabled", "value": 0 }, { "name": "/sys/kernel/debug/x86/retp_enabled", "value": 0 }, { "name": "/sys/kernel/debug/x86/ibrs_enabled", "value": 0 }, { "name": "/sys/not/found", "state": "absent" } ], "kernel_settings_systemd_cpu_affinity": { "state": "absent" }, "kernel_settings_transparent_hugepages": "madvise", "kernel_settings_transparent_hugepages_defrag": { "state": "absent" } }, "ansible_included_var_files": [ "/tmp/tmp_9x32atz/tests/kernel_settings/vars/vars_simple_settings.yml" ], "changed": false } TASK [disable bootloader cmdline testing on Fedora] **************************** task path: /tmp/tmp_9x32atz/tests/kernel_settings/tests_simple_settings.yml:12 Monday 25 July 2022 18:47:18 +0000 (0:00:00.029) 0:00:02.361 *********** skipping: [/cache/rhel-7.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [apply the settings - call the role] ************************************** task path: /tmp/tmp_9x32atz/tests/kernel_settings/tests_simple_settings.yml:23 Monday 25 July 2022 18:47:18 +0000 (0:00:00.020) 0:00:02.381 *********** TASK [fedora.linux_system_roles.kernel_settings : Set version specific variables] *** task path: /tmp/tmpr7314eea/ansible_collections/fedora/linux_system_roles/roles/kernel_settings/tasks/main.yml:2 Monday 25 July 2022 18:47:18 +0000 (0:00:00.042) 0:00:02.424 *********** included: /tmp/tmpr7314eea/ansible_collections/fedora/linux_system_roles/roles/kernel_settings/tasks/set_vars.yml for /cache/rhel-7.qcow2 TASK [fedora.linux_system_roles.kernel_settings : Ensure ansible_facts used by role] *** task path: /tmp/tmpr7314eea/ansible_collections/fedora/linux_system_roles/roles/kernel_settings/tasks/set_vars.yml:2 Monday 25 July 2022 18:47:18 +0000 (0:00:00.028) 0:00:02.453 *********** ok: [/cache/rhel-7.qcow2] TASK [fedora.linux_system_roles.kernel_settings : Set platform/version specific variables] *** task path: /tmp/tmpr7314eea/ansible_collections/fedora/linux_system_roles/roles/kernel_settings/tasks/set_vars.yml:7 Monday 25 July 2022 18:47:19 +0000 (0:00:00.401) 0:00:02.855 *********** ok: [/cache/rhel-7.qcow2] => { "ansible_facts": { "__kernel_settings_packages": [ "tuned", "python-configobj" ], "__kernel_settings_services": [ "tuned" ] }, "ansible_included_var_files": [ "/tmp/tmpr7314eea/ansible_collections/fedora/linux_system_roles/roles/kernel_settings/vars/RedHat_7.yml" ], "changed": false } TASK [fedora.linux_system_roles.kernel_settings : Ensure required packages are installed] *** task path: /tmp/tmpr7314eea/ansible_collections/fedora/linux_system_roles/roles/kernel_settings/tasks/main.yml:5 Monday 25 July 2022 18:47:19 +0000 (0:00:00.040) 0:00:02.895 *********** ok: [/cache/rhel-7.qcow2] => { "changed": false, "rc": 0, "results": [ "tuned-2.11.0-11.el7_9.noarch providing tuned is already installed", "python-configobj-4.7.2-7.el7.noarch providing python-configobj is already installed" ] } TASK [fedora.linux_system_roles.kernel_settings : Ensure required services are enabled and started] *** task path: /tmp/tmpr7314eea/ansible_collections/fedora/linux_system_roles/roles/kernel_settings/tasks/main.yml:10 Monday 25 July 2022 18:47:19 +0000 (0:00:00.637) 0:00:03.533 *********** ok: [/cache/rhel-7.qcow2] => (item=tuned) => { "ansible_loop_var": "item", "changed": false, "enabled": true, "item": "tuned", "name": "tuned", "state": "started", "status": { "ActiveEnterTimestamp": "Mon 2022-07-25 14:46:34 EDT", "ActiveEnterTimestampMonotonic": "4753889", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "dbus.service basic.target systemd-sysctl.service network.target systemd-journald.socket system.slice", "AllowIsolate": "no", "AmbientCapabilities": "0", "AssertResult": "yes", "AssertTimestamp": "Mon 2022-07-25 14:46:34 EDT", "AssertTimestampMonotonic": "4531633", "Before": "shutdown.target multi-user.target", "BlockIOAccounting": "no", "BlockIOWeight": "18446744073709551615", "BusName": "com.redhat.tuned", "CPUAccounting": "no", "CPUQuotaPerSecUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "18446744073709551615", "CanIsolate": "no", "CanReload": "no", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "18446744073709551615", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Mon 2022-07-25 14:46:34 EDT", "ConditionTimestampMonotonic": "4531633", "Conflicts": "cpupower.service shutdown.target", "ControlGroup": "/system.slice/tuned.service", "ControlPID": "0", "DefaultDependencies": "yes", "Delegate": "no", "Description": "Dynamic System Tuning Daemon", "DevicePolicy": "auto", "Documentation": "man:tuned(8) man:tuned.conf(5) man:tuned-adm(8)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "918", "ExecMainStartTimestamp": "Mon 2022-07-25 14:46:34 EDT", "ExecMainStartTimestampMonotonic": "4532285", "ExecMainStatus": "0", "ExecStart": "{ path=/usr/sbin/tuned ; argv[]=/usr/sbin/tuned -l -P ; ignore_errors=no ; start_time=[Mon 2022-07-25 14:46:34 EDT] ; stop_time=[n/a] ; pid=918 ; code=(null) ; status=0/0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FragmentPath": "/usr/lib/systemd/system/tuned.service", "GuessMainPID": "yes", "IOScheduling": "0", "Id": "tuned.service", "IgnoreOnIsolate": "no", "IgnoreOnSnapshot": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestamp": "Mon 2022-07-25 14:46:34 EDT", "InactiveExitTimestampMonotonic": "4532331", "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": "7150", "LimitRSS": "18446744073709551615", "LimitRTPRIO": "0", "LimitRTTIME": "18446744073709551615", "LimitSIGPENDING": "7150", "LimitSTACK": "18446744073709551615", "LoadState": "loaded", "MainPID": "918", "MemoryAccounting": "no", "MemoryCurrent": "18446744073709551615", "MemoryLimit": "18446744073709551615", "MountFlags": "0", "Names": "tuned.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PIDFile": "/run/tuned/tuned.pid", "PermissionsStartOnly": "no", "PrivateDevices": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "ProtectHome": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "no", "Requires": "system.slice dbus.service polkit.service basic.target", "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": "10000000", "StartupBlockIOWeight": "18446744073709551615", "StartupCPUShares": "18446744073709551615", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "running", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "no", "TasksCurrent": "18446744073709551615", "TasksMax": "18446744073709551615", "TimeoutStartUSec": "1min 30s", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "dbus", "UMask": "0022", "UnitFilePreset": "enabled", "UnitFileState": "enabled", "WantedBy": "multi-user.target", "WatchdogTimestamp": "Mon 2022-07-25 14:46:34 EDT", "WatchdogTimestampMonotonic": "4753358", "WatchdogUSec": "0" } } TASK [fedora.linux_system_roles.kernel_settings : Ensure kernel settings profile directory exists] *** task path: /tmp/tmpr7314eea/ansible_collections/fedora/linux_system_roles/roles/kernel_settings/tasks/main.yml:17 Monday 25 July 2022 18:47:20 +0000 (0:00:00.644) 0:00:04.177 *********** ok: [/cache/rhel-7.qcow2] => { "changed": false, "gid": 0, "group": "root", "mode": "0755", "owner": "root", "path": "/etc/tuned/kernel_settings", "secontext": "unconfined_u:object_r:tuned_etc_t:s0", "size": 24, "state": "directory", "uid": 0 } TASK [fedora.linux_system_roles.kernel_settings : Generate a configuration for kernel settings] *** task path: /tmp/tmpr7314eea/ansible_collections/fedora/linux_system_roles/roles/kernel_settings/tasks/main.yml:23 Monday 25 July 2022 18:47:20 +0000 (0:00:00.436) 0:00:04.613 *********** ok: [/cache/rhel-7.qcow2] => { "changed": false, "dest": "/etc/tuned/kernel_settings/tuned.conf", "src": "/root/.ansible/tmp/ansible-local-141469xve1ugzl/tmp94yj2z_1/kernel_settings.j2" } TASK [fedora.linux_system_roles.kernel_settings : Get current config] ********** task path: /tmp/tmpr7314eea/ansible_collections/fedora/linux_system_roles/roles/kernel_settings/tasks/main.yml:30 Monday 25 July 2022 18:47:21 +0000 (0:00:00.446) 0:00:05.060 *********** ok: [/cache/rhel-7.qcow2] => { "changed": false, "content": "IwojIEFuc2libGUgbWFuYWdlZAojClttYWluXQpzdW1tYXJ5ID0ga2VybmVsIHNldHRpbmdzCg==", "encoding": "base64", "source": "/etc/tuned/kernel_settings/tuned.conf" } TASK [fedora.linux_system_roles.kernel_settings : Apply kernel settings] ******* task path: /tmp/tmpr7314eea/ansible_collections/fedora/linux_system_roles/roles/kernel_settings/tasks/main.yml:36 Monday 25 July 2022 18:47:21 +0000 (0:00:00.418) 0:00:05.479 *********** NOTIFIED HANDLER fedora.linux_system_roles.kernel_settings : reboot the managed host to apply kernel_settings changes for /cache/rhel-7.qcow2 NOTIFIED HANDLER fedora.linux_system_roles.kernel_settings : clear the kernel_settings_reboot_required flag for /cache/rhel-7.qcow2 changed: [/cache/rhel-7.qcow2] => { "active_profile": "virtual-guest kernel_settings", "changed": true, "message": "", "new_profile": { "sysctl": { "fs.epoll.max_user_watches": "785592", "fs.file-max": "379724" }, "sysfs": { "/sys/kernel/debug/x86/ibrs_enabled": "0", "/sys/kernel/debug/x86/pti_enabled": "0", "/sys/kernel/debug/x86/retp_enabled": "0" }, "vm": { "transparent_hugepages": "madvise" } }, "reboot_required": false } MSG: Kernel settings were updated. TASK [fedora.linux_system_roles.kernel_settings : tuned apply settings] ******** task path: /tmp/tmpr7314eea/ansible_collections/fedora/linux_system_roles/roles/kernel_settings/tasks/main.yml:65 Monday 25 July 2022 18:47:22 +0000 (0:00:00.544) 0:00:06.023 *********** changed: [/cache/rhel-7.qcow2] => { "changed": true, "cmd": [ "tuned-adm", "profile", "virtual-guest kernel_settings" ], "delta": "0:00:01.958288", "end": "2022-07-25 14:47:23.367638", "rc": 0, "start": "2022-07-25 14:47:21.409350" } TASK [fedora.linux_system_roles.kernel_settings : verify settings] ************* task path: /tmp/tmpr7314eea/ansible_collections/fedora/linux_system_roles/roles/kernel_settings/tasks/main.yml:70 Monday 25 July 2022 18:47:24 +0000 (0:00:02.382) 0:00:08.405 *********** included: /tmp/tmpr7314eea/ansible_collections/fedora/linux_system_roles/roles/kernel_settings/tasks/verify_settings.yml for /cache/rhel-7.qcow2 TASK [fedora.linux_system_roles.kernel_settings : check that settings are applied correctly] *** task path: /tmp/tmpr7314eea/ansible_collections/fedora/linux_system_roles/roles/kernel_settings/tasks/verify_settings.yml:2 Monday 25 July 2022 18:47:24 +0000 (0:00:00.040) 0:00:08.446 *********** ok: [/cache/rhel-7.qcow2] => { "changed": false, "cmd": [ "tuned-adm", "verify", "-i" ], "delta": "0:00:00.097480", "end": "2022-07-25 14:47:23.795929", "rc": 0, "start": "2022-07-25 14:47:23.698449" } STDOUT: Verfication succeeded, current system settings match the preset profile. See tuned log file ('/var/log/tuned/tuned.log') for details. TASK [fedora.linux_system_roles.kernel_settings : get last verify results from log] *** task path: /tmp/tmpr7314eea/ansible_collections/fedora/linux_system_roles/roles/kernel_settings/tasks/verify_settings.yml:12 Monday 25 July 2022 18:47:25 +0000 (0:00:00.382) 0:00:08.828 *********** skipping: [/cache/rhel-7.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.kernel_settings : report errors that are not bootloader errors] *** task path: /tmp/tmpr7314eea/ansible_collections/fedora/linux_system_roles/roles/kernel_settings/tasks/verify_settings.yml:24 Monday 25 July 2022 18:47:25 +0000 (0:00:00.026) 0:00:08.855 *********** skipping: [/cache/rhel-7.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.kernel_settings : notify user that reboot is needed to apply changes] *** task path: /tmp/tmpr7314eea/ansible_collections/fedora/linux_system_roles/roles/kernel_settings/tasks/main.yml:74 Monday 25 July 2022 18:47:25 +0000 (0:00:00.027) 0:00:08.882 *********** skipping: [/cache/rhel-7.qcow2] => {} TASK [fedora.linux_system_roles.kernel_settings : set the flag that reboot is needed to apply changes] *** task path: /tmp/tmpr7314eea/ansible_collections/fedora/linux_system_roles/roles/kernel_settings/tasks/main.yml:83 Monday 25 July 2022 18:47:25 +0000 (0:00:00.034) 0:00:08.917 *********** skipping: [/cache/rhel-7.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } META: role_complete for /cache/rhel-7.qcow2 TASK [verify that settings were applied correctly] ***************************** task path: /tmp/tmp_9x32atz/tests/kernel_settings/tests_simple_settings.yml:28 Monday 25 July 2022 18:47:25 +0000 (0:00:00.039) 0:00:08.956 *********** included: /tmp/tmp_9x32atz/tests/kernel_settings/tasks/assert_kernel_settings.yml for /cache/rhel-7.qcow2 TASK [Set version specific variables] ****************************************** task path: /tmp/tmp_9x32atz/tests/kernel_settings/tasks/assert_kernel_settings.yml:2 Monday 25 July 2022 18:47:25 +0000 (0:00:00.031) 0:00:08.988 *********** ok: [/cache/rhel-7.qcow2] => { "ansible_facts": { "__kernel_settings_test_python_cmd": "python", "__kernel_settings_test_python_pkgs": [ "python", "python-configobj" ] }, "ansible_included_var_files": [ "/tmp/tmp_9x32atz/tests/kernel_settings/vars/tests_default.yml" ], "changed": false } TASK [reset settings success flag] ********************************************* task path: /tmp/tmp_9x32atz/tests/kernel_settings/tasks/assert_kernel_settings.yml:12 Monday 25 July 2022 18:47:25 +0000 (0:00:00.033) 0:00:09.022 *********** ok: [/cache/rhel-7.qcow2] => { "ansible_facts": { "__kernel_settings_success": true }, "changed": false } TASK [check tuned-adm verify] ************************************************** task path: /tmp/tmp_9x32atz/tests/kernel_settings/tasks/assert_kernel_settings.yml:16 Monday 25 July 2022 18:47:25 +0000 (0:00:00.060) 0:00:09.083 *********** skipping: [/cache/rhel-7.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [check for verify errors] ************************************************* task path: /tmp/tmp_9x32atz/tests/kernel_settings/tasks/assert_kernel_settings.yml:22 Monday 25 July 2022 18:47:25 +0000 (0:00:00.019) 0:00:09.103 *********** skipping: [/cache/rhel-7.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [check /proc/cmdline] ***************************************************** task path: /tmp/tmp_9x32atz/tests/kernel_settings/tasks/assert_kernel_settings.yml:28 Monday 25 July 2022 18:47:25 +0000 (0:00:00.025) 0:00:09.128 *********** skipping: [/cache/rhel-7.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [set error flag based on verify] ****************************************** task path: /tmp/tmp_9x32atz/tests/kernel_settings/tasks/assert_kernel_settings.yml:34 Monday 25 July 2022 18:47:25 +0000 (0:00:00.025) 0:00:09.153 *********** skipping: [/cache/rhel-7.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** task path: /tmp/tmp_9x32atz/tests/kernel_settings/tasks/assert_kernel_settings.yml:41 Monday 25 July 2022 18:47:25 +0000 (0:00:00.025) 0:00:09.179 *********** included: /tmp/tmp_9x32atz/tests/kernel_settings/tasks/assert_kernel_settings_conf_files.yml for /cache/rhel-7.qcow2 TASK [create temporary file for expected config] ******************************* task path: /tmp/tmp_9x32atz/tests/kernel_settings/tasks/assert_kernel_settings_conf_files.yml:2 Monday 25 July 2022 18:47:25 +0000 (0:00:00.051) 0:00:09.231 *********** changed: [/cache/rhel-7.qcow2] => { "changed": true, "gid": 0, "group": "root", "mode": "0600", "owner": "root", "path": "/tmp/ansible.D5s5f_.kernel_settings", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 0, "state": "file", "uid": 0 } TASK [put expected contents into temporary file] ******************************* task path: /tmp/tmp_9x32atz/tests/kernel_settings/tasks/assert_kernel_settings_conf_files.yml:8 Monday 25 July 2022 18:47:26 +0000 (0:00:00.409) 0:00:09.640 *********** changed: [/cache/rhel-7.qcow2] => { "changed": true, "checksum": "169e46a0442e2493edda7ef1d37dfc572d06525c", "dest": "/tmp/ansible.D5s5f_.kernel_settings", "gid": 0, "group": "root", "md5sum": "b82bbe3a22d81e7a442595a59b2d0944", "mode": "0600", "owner": "root", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 299, "src": "/root/.ansible/tmp/ansible-tmp-1658774846.097538-141746-71074685807624/source", "state": "file", "uid": 0 } TASK [ensure python command exists for tests below] **************************** task path: /tmp/tmp_9x32atz/tests/kernel_settings/tasks/assert_kernel_settings_conf_files.yml:14 Monday 25 July 2022 18:47:26 +0000 (0:00:00.657) 0:00:10.298 *********** ok: [/cache/rhel-7.qcow2] => { "changed": false, "rc": 0, "results": [ "python-2.7.5-92.el7_9.x86_64 providing python is already installed", "python-configobj-4.7.2-7.el7.noarch providing python-configobj is already installed" ] } TASK [diff expected vs actual content] ***************************************** task path: /tmp/tmp_9x32atz/tests/kernel_settings/tasks/assert_kernel_settings_conf_files.yml:19 Monday 25 July 2022 18:47:27 +0000 (0:00:00.523) 0:00:10.822 *********** ok: [/cache/rhel-7.qcow2] => { "changed": false, "cmd": "python -c 'import sys\nfrom configobj import ConfigObj\nc1 = ConfigObj(sys.argv[1])\nc2 = ConfigObj(sys.argv[2])\nsys.exit(not c1 == c2)' /tmp/ansible.D5s5f_.kernel_settings /etc/tuned/kernel_settings/tuned.conf\n", "delta": "0:00:00.016770", "end": "2022-07-25 14:47:26.084010", "rc": 0, "start": "2022-07-25 14:47:26.067240" } TASK [verify expected content] ************************************************* task path: /tmp/tmp_9x32atz/tests/kernel_settings/tasks/assert_kernel_settings_conf_files.yml:32 Monday 25 July 2022 18:47:27 +0000 (0:00:00.292) 0:00:11.115 *********** skipping: [/cache/rhel-7.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [show diff - may not reflect actual ConfigObj differences] **************** task path: /tmp/tmp_9x32atz/tests/kernel_settings/tasks/assert_kernel_settings_conf_files.yml:37 Monday 25 July 2022 18:47:27 +0000 (0:00:00.023) 0:00:11.138 *********** skipping: [/cache/rhel-7.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [get active_profile file] ************************************************* task path: /tmp/tmp_9x32atz/tests/kernel_settings/tasks/assert_kernel_settings_conf_files.yml:44 Monday 25 July 2022 18:47:27 +0000 (0:00:00.025) 0:00:11.163 *********** ok: [/cache/rhel-7.qcow2] => { "changed": false, "content": "dmlydHVhbC1ndWVzdCBrZXJuZWxfc2V0dGluZ3MK", "encoding": "base64", "source": "/etc/tuned/active_profile" } TASK [check that active_profile ends with kernel_settings] ********************* task path: /tmp/tmp_9x32atz/tests/kernel_settings/tasks/assert_kernel_settings_conf_files.yml:51 Monday 25 July 2022 18:47:27 +0000 (0:00:00.276) 0:00:11.440 *********** skipping: [/cache/rhel-7.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [get profile_mode file] *************************************************** task path: /tmp/tmp_9x32atz/tests/kernel_settings/tasks/assert_kernel_settings_conf_files.yml:58 Monday 25 July 2022 18:47:27 +0000 (0:00:00.034) 0:00:11.474 *********** ok: [/cache/rhel-7.qcow2] => { "changed": false, "content": "bWFudWFsCg==", "encoding": "base64", "source": "/etc/tuned/profile_mode" } TASK [check that profile_mode is manual] *************************************** task path: /tmp/tmp_9x32atz/tests/kernel_settings/tasks/assert_kernel_settings_conf_files.yml:65 Monday 25 July 2022 18:47:28 +0000 (0:00:00.262) 0:00:11.736 *********** skipping: [/cache/rhel-7.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [get the bootloader specific config file] ********************************* task path: /tmp/tmp_9x32atz/tests/kernel_settings/tasks/assert_kernel_settings_conf_files.yml:73 Monday 25 July 2022 18:47:28 +0000 (0:00:00.034) 0:00:11.771 *********** skipping: [/cache/rhel-7.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [verify bootloader settings value] **************************************** task path: /tmp/tmp_9x32atz/tests/kernel_settings/tasks/assert_kernel_settings_conf_files.yml:84 Monday 25 July 2022 18:47:28 +0000 (0:00:00.032) 0:00:11.803 *********** skipping: [/cache/rhel-7.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [check if kernel_settings_reboot_required is set if needed] *************** task path: /tmp/tmp_9x32atz/tests/kernel_settings/tasks/assert_kernel_settings.yml:44 Monday 25 July 2022 18:47:28 +0000 (0:00:00.031) 0:00:11.835 *********** skipping: [/cache/rhel-7.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [assert success] ********************************************************** task path: /tmp/tmp_9x32atz/tests/kernel_settings/tasks/assert_kernel_settings.yml:51 Monday 25 July 2022 18:47:28 +0000 (0:00:00.030) 0:00:11.866 *********** ok: [/cache/rhel-7.qcow2] => { "changed": false } MSG: All assertions passed TASK [reboot the machine - see if settings persist after reboot] *************** task path: /tmp/tmp_9x32atz/tests/kernel_settings/tests_simple_settings.yml:35 Monday 25 July 2022 18:47:28 +0000 (0:00:00.041) 0:00:11.907 *********** skipping: [/cache/rhel-7.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [verify that settings were applied correctly after reboot] **************** task path: /tmp/tmp_9x32atz/tests/kernel_settings/tests_simple_settings.yml:42 Monday 25 July 2022 18:47:28 +0000 (0:00:00.029) 0:00:11.937 *********** skipping: [/cache/rhel-7.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [show contents of tuned.conf] ********************************************* task path: /tmp/tmp_9x32atz/tests/kernel_settings/tests_simple_settings.yml:51 Monday 25 July 2022 18:47:28 +0000 (0:00:00.028) 0:00:11.965 *********** ok: [/cache/rhel-7.qcow2] => { "changed": false, "cmd": [ "cat", "/etc/tuned/kernel_settings/tuned.conf" ], "delta": "0:00:00.002598", "end": "2022-07-25 14:47:27.210644", "rc": 0, "start": "2022-07-25 14:47:27.208046" } STDOUT: # # Ansible managed # [main] summary = kernel settings [sysctl] fs.epoll.max_user_watches = 785592 fs.file-max = 379724 [vm] transparent_hugepages = madvise [sysfs] /sys/kernel/debug/x86/pti_enabled = 0 /sys/kernel/debug/x86/retp_enabled = 0 /sys/kernel/debug/x86/ibrs_enabled = 0 RUNNING HANDLER [fedora.linux_system_roles.kernel_settings : reboot the managed host to apply kernel_settings changes] *** task path: /tmp/tmpr7314eea/ansible_collections/fedora/linux_system_roles/roles/kernel_settings/handlers/main.yml:2 Monday 25 July 2022 18:47:28 +0000 (0:00:00.273) 0:00:12.239 *********** skipping: [/cache/rhel-7.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } RUNNING HANDLER [fedora.linux_system_roles.kernel_settings : clear the kernel_settings_reboot_required flag] *** task path: /tmp/tmpr7314eea/ansible_collections/fedora/linux_system_roles/roles/kernel_settings/handlers/main.yml:12 Monday 25 July 2022 18:47:28 +0000 (0:00:00.031) 0:00:12.270 *********** skipping: [/cache/rhel-7.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-7.qcow2 : ok=27 changed=4 unreachable=0 failed=0 skipped=20 rescued=0 ignored=0 Monday 25 July 2022 18:47:28 +0000 (0:00:00.041) 0:00:12.312 *********** =============================================================================== fedora.linux_system_roles.kernel_settings : tuned apply settings -------- 2.38s /tmp/tmpr7314eea/ansible_collections/fedora/linux_system_roles/roles/kernel_settings/tasks/main.yml:65 set up internal repositories -------------------------------------------- 1.35s /cache/rhel-7_setup.yml:5 ----------------------------------------------------- Gathering Facts --------------------------------------------------------- 0.93s /tmp/tmp_9x32atz/tests/kernel_settings/tests_simple_settings.yml:2 ------------ put expected contents into temporary file ------------------------------- 0.66s /tmp/tmp_9x32atz/tests/kernel_settings/tasks/assert_kernel_settings_conf_files.yml:8 fedora.linux_system_roles.kernel_settings : Ensure required services are enabled and started --- 0.64s /tmp/tmpr7314eea/ansible_collections/fedora/linux_system_roles/roles/kernel_settings/tasks/main.yml:10 fedora.linux_system_roles.kernel_settings : Ensure required packages are installed --- 0.64s /tmp/tmpr7314eea/ansible_collections/fedora/linux_system_roles/roles/kernel_settings/tasks/main.yml:5 fedora.linux_system_roles.kernel_settings : Apply kernel settings ------- 0.54s /tmp/tmpr7314eea/ansible_collections/fedora/linux_system_roles/roles/kernel_settings/tasks/main.yml:36 ensure python command exists for tests below ---------------------------- 0.52s /tmp/tmp_9x32atz/tests/kernel_settings/tasks/assert_kernel_settings_conf_files.yml:14 fedora.linux_system_roles.kernel_settings : Generate a configuration for kernel settings --- 0.45s /tmp/tmpr7314eea/ansible_collections/fedora/linux_system_roles/roles/kernel_settings/tasks/main.yml:23 fedora.linux_system_roles.kernel_settings : Ensure kernel settings profile directory exists --- 0.44s /tmp/tmpr7314eea/ansible_collections/fedora/linux_system_roles/roles/kernel_settings/tasks/main.yml:17 fedora.linux_system_roles.kernel_settings : Get current config ---------- 0.42s /tmp/tmpr7314eea/ansible_collections/fedora/linux_system_roles/roles/kernel_settings/tasks/main.yml:30 create temporary file for expected config ------------------------------- 0.41s /tmp/tmp_9x32atz/tests/kernel_settings/tasks/assert_kernel_settings_conf_files.yml:2 fedora.linux_system_roles.kernel_settings : Ensure ansible_facts used by role --- 0.40s /tmp/tmpr7314eea/ansible_collections/fedora/linux_system_roles/roles/kernel_settings/tasks/set_vars.yml:2 fedora.linux_system_roles.kernel_settings : check that settings are applied correctly --- 0.38s /tmp/tmpr7314eea/ansible_collections/fedora/linux_system_roles/roles/kernel_settings/tasks/verify_settings.yml:2 diff expected vs actual content ----------------------------------------- 0.29s /tmp/tmp_9x32atz/tests/kernel_settings/tasks/assert_kernel_settings_conf_files.yml:19 get active_profile file ------------------------------------------------- 0.28s /tmp/tmp_9x32atz/tests/kernel_settings/tasks/assert_kernel_settings_conf_files.yml:44 show contents of tuned.conf --------------------------------------------- 0.27s /tmp/tmp_9x32atz/tests/kernel_settings/tests_simple_settings.yml:51 ----------- get profile_mode file --------------------------------------------------- 0.26s /tmp/tmp_9x32atz/tests/kernel_settings/tasks/assert_kernel_settings_conf_files.yml:58 reset settings success flag --------------------------------------------- 0.06s /tmp/tmp_9x32atz/tests/kernel_settings/tasks/assert_kernel_settings.yml:12 ---- include_tasks ----------------------------------------------------------- 0.05s /tmp/tmp_9x32atz/tests/kernel_settings/tasks/assert_kernel_settings.yml:41 ----