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/tmppjicmpqi 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: tests_simple_settings.yml ******************************************** 1 plays in /tmp/tmp474t1zll/tests/tests_simple_settings.yml PLAY [test simple kernel settings] ********************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmp474t1zll/tests/tests_simple_settings.yml:2 Monday 25 July 2022 18:44:18 +0000 (0:00:00.012) 0:00:00.012 *********** ok: [/cache/centos-7.qcow2c.snap] META: ran handlers TASK [set platform independent vars used by this test] ************************* task path: /tmp/tmp474t1zll/tests/tests_simple_settings.yml:8 Monday 25 July 2022 18:44:19 +0000 (0:00:00.998) 0:00:01.011 *********** ok: [/cache/centos-7.qcow2c.snap] => { "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/tmp474t1zll/tests/vars/vars_simple_settings.yml" ], "changed": false } TASK [disable bootloader cmdline testing on Fedora] **************************** task path: /tmp/tmp474t1zll/tests/tests_simple_settings.yml:12 Monday 25 July 2022 18:44:19 +0000 (0:00:00.028) 0:00:01.039 *********** skipping: [/cache/centos-7.qcow2c.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [apply the settings - call the role] ************************************** task path: /tmp/tmp474t1zll/tests/tests_simple_settings.yml:23 Monday 25 July 2022 18:44:19 +0000 (0:00:00.018) 0:00:01.058 *********** TASK [linux-system-roles.kernel_settings : Set version specific variables] ***** task path: /tmp/tmp474t1zll/tests/roles/linux-system-roles.kernel_settings/tasks/main.yml:2 Monday 25 July 2022 18:44:19 +0000 (0:00:00.037) 0:00:01.095 *********** included: /tmp/tmp474t1zll/tests/roles/linux-system-roles.kernel_settings/tasks/set_vars.yml for /cache/centos-7.qcow2c.snap TASK [linux-system-roles.kernel_settings : Ensure ansible_facts used by role] *** task path: /tmp/tmp474t1zll/tests/roles/linux-system-roles.kernel_settings/tasks/set_vars.yml:2 Monday 25 July 2022 18:44:19 +0000 (0:00:00.029) 0:00:01.125 *********** ok: [/cache/centos-7.qcow2c.snap] TASK [linux-system-roles.kernel_settings : Set platform/version specific variables] *** task path: /tmp/tmp474t1zll/tests/roles/linux-system-roles.kernel_settings/tasks/set_vars.yml:9 Monday 25 July 2022 18:44:20 +0000 (0:00:00.418) 0:00:01.543 *********** ok: [/cache/centos-7.qcow2c.snap] => { "ansible_facts": { "__kernel_settings_packages": [ "tuned", "python-configobj" ], "__kernel_settings_services": [ "tuned" ] }, "ansible_included_var_files": [ "/tmp/tmp474t1zll/tests/roles/linux-system-roles.kernel_settings/vars/CentOS_7.yml" ], "changed": false } TASK [linux-system-roles.kernel_settings : Ensure required packages are installed] *** task path: /tmp/tmp474t1zll/tests/roles/linux-system-roles.kernel_settings/tasks/main.yml:5 Monday 25 July 2022 18:44:20 +0000 (0:00:00.040) 0:00:01.584 *********** ok: [/cache/centos-7.qcow2c.snap] => { "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/tmp474t1zll/tests/roles/linux-system-roles.kernel_settings/tasks/main.yml:10 Monday 25 July 2022 18:44:20 +0000 (0:00:00.707) 0:00:02.291 *********** ok: [/cache/centos-7.qcow2c.snap] => (item=tuned) => { "ansible_loop_var": "item", "changed": false, "enabled": true, "item": "tuned", "name": "tuned", "state": "started", "status": { "ActiveEnterTimestamp": "Mon 2022-07-25 18:43:43 UTC", "ActiveEnterTimestampMonotonic": "8584370", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "system.slice systemd-sysctl.service basic.target network.target systemd-journald.socket dbus.service", "AllowIsolate": "no", "AmbientCapabilities": "0", "AssertResult": "yes", "AssertTimestamp": "Mon 2022-07-25 18:43:42 UTC", "AssertTimestampMonotonic": "8403427", "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 18:43:42 UTC", "ConditionTimestampMonotonic": "8403427", "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": "963", "ExecMainStartTimestamp": "Mon 2022-07-25 18:43:42 UTC", "ExecMainStartTimestampMonotonic": "8403983", "ExecMainStatus": "0", "ExecStart": "{ path=/usr/sbin/tuned ; argv[]=/usr/sbin/tuned -l -P ; ignore_errors=no ; start_time=[Mon 2022-07-25 18:43:42 UTC] ; stop_time=[n/a] ; pid=963 ; 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 18:43:42 UTC", "InactiveExitTimestampMonotonic": "8404028", "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": "7154", "LimitRSS": "18446744073709551615", "LimitRTPRIO": "0", "LimitRTTIME": "18446744073709551615", "LimitSIGPENDING": "7154", "LimitSTACK": "18446744073709551615", "LoadState": "loaded", "MainPID": "963", "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": "polkit.service system.slice dbus.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 18:43:43 UTC", "WatchdogTimestampMonotonic": "8584032", "WatchdogUSec": "0" } } TASK [linux-system-roles.kernel_settings : Ensure kernel settings profile directory exists] *** task path: /tmp/tmp474t1zll/tests/roles/linux-system-roles.kernel_settings/tasks/main.yml:17 Monday 25 July 2022 18:44:21 +0000 (0:00:00.647) 0:00:02.939 *********** ok: [/cache/centos-7.qcow2c.snap] => { "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/tmp474t1zll/tests/roles/linux-system-roles.kernel_settings/tasks/main.yml:23 Monday 25 July 2022 18:44:22 +0000 (0:00:00.467) 0:00:03.406 *********** ok: [/cache/centos-7.qcow2c.snap] => { "changed": false, "dest": "/etc/tuned/kernel_settings/tuned.conf", "src": "/root/.ansible/tmp/ansible-local-1773669r4fx_q9/tmp1i06d1rv/kernel_settings.j2" } TASK [linux-system-roles.kernel_settings : Get current config] ***************** task path: /tmp/tmp474t1zll/tests/roles/linux-system-roles.kernel_settings/tasks/main.yml:30 Monday 25 July 2022 18:44:22 +0000 (0:00:00.459) 0:00:03.866 *********** ok: [/cache/centos-7.qcow2c.snap] => { "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/tmp474t1zll/tests/roles/linux-system-roles.kernel_settings/tasks/main.yml:36 Monday 25 July 2022 18:44:22 +0000 (0:00:00.414) 0:00:04.280 *********** NOTIFIED HANDLER linux-system-roles.kernel_settings : reboot the managed host to apply kernel_settings changes for /cache/centos-7.qcow2c.snap NOTIFIED HANDLER linux-system-roles.kernel_settings : clear the kernel_settings_reboot_required flag for /cache/centos-7.qcow2c.snap changed: [/cache/centos-7.qcow2c.snap] => { "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/tmp474t1zll/tests/roles/linux-system-roles.kernel_settings/tasks/main.yml:92 Monday 25 July 2022 18:44:23 +0000 (0:00:00.545) 0:00:04.826 *********** changed: [/cache/centos-7.qcow2c.snap] => { "changed": true, "cmd": [ "tuned-adm", "profile", "virtual-guest kernel_settings" ], "delta": "0:00:01.529941", "end": "2022-07-25 18:44:24.249640", "rc": 0, "start": "2022-07-25 18:44:22.719699" } TASK [linux-system-roles.kernel_settings : verify settings] ******************** task path: /tmp/tmp474t1zll/tests/roles/linux-system-roles.kernel_settings/tasks/main.yml:97 Monday 25 July 2022 18:44:25 +0000 (0:00:01.955) 0:00:06.782 *********** included: /tmp/tmp474t1zll/tests/roles/linux-system-roles.kernel_settings/tasks/verify_settings.yml for /cache/centos-7.qcow2c.snap TASK [linux-system-roles.kernel_settings : check that settings are applied correctly] *** task path: /tmp/tmp474t1zll/tests/roles/linux-system-roles.kernel_settings/tasks/verify_settings.yml:2 Monday 25 July 2022 18:44:25 +0000 (0:00:00.044) 0:00:06.827 *********** ok: [/cache/centos-7.qcow2c.snap] => { "changed": false, "cmd": [ "tuned-adm", "verify", "-i" ], "delta": "0:00:00.087981", "end": "2022-07-25 18:44:24.697865", "rc": 0, "start": "2022-07-25 18:44:24.609884" } 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/tmp474t1zll/tests/roles/linux-system-roles.kernel_settings/tasks/verify_settings.yml:12 Monday 25 July 2022 18:44:25 +0000 (0:00:00.404) 0:00:07.232 *********** skipping: [/cache/centos-7.qcow2c.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.kernel_settings : report errors that are not bootloader errors] *** task path: /tmp/tmp474t1zll/tests/roles/linux-system-roles.kernel_settings/tasks/verify_settings.yml:24 Monday 25 July 2022 18:44:25 +0000 (0:00:00.027) 0:00:07.259 *********** skipping: [/cache/centos-7.qcow2c.snap] => { "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/tmp474t1zll/tests/roles/linux-system-roles.kernel_settings/tasks/main.yml:101 Monday 25 July 2022 18:44:25 +0000 (0:00:00.025) 0:00:07.284 *********** skipping: [/cache/centos-7.qcow2c.snap] => {} TASK [linux-system-roles.kernel_settings : set the flag that reboot is needed to apply changes] *** task path: /tmp/tmp474t1zll/tests/roles/linux-system-roles.kernel_settings/tasks/main.yml:110 Monday 25 July 2022 18:44:26 +0000 (0:00:00.034) 0:00:07.319 *********** skipping: [/cache/centos-7.qcow2c.snap] => { "changed": false, "skip_reason": "Conditional result was False" } META: role_complete for /cache/centos-7.qcow2c.snap TASK [verify that settings were applied correctly] ***************************** task path: /tmp/tmp474t1zll/tests/tests_simple_settings.yml:28 Monday 25 July 2022 18:44:26 +0000 (0:00:00.043) 0:00:07.363 *********** included: /tmp/tmp474t1zll/tests/tasks/assert_kernel_settings.yml for /cache/centos-7.qcow2c.snap TASK [Set version specific variables] ****************************************** task path: /tmp/tmp474t1zll/tests/tasks/assert_kernel_settings.yml:2 Monday 25 July 2022 18:44:26 +0000 (0:00:00.033) 0:00:07.396 *********** ok: [/cache/centos-7.qcow2c.snap] => { "ansible_facts": { "__kernel_settings_test_python_cmd": "python", "__kernel_settings_test_python_pkgs": [ "python", "python-configobj" ] }, "ansible_included_var_files": [ "/tmp/tmp474t1zll/tests/vars/tests_default.yml" ], "changed": false } TASK [reset settings success flag] ********************************************* task path: /tmp/tmp474t1zll/tests/tasks/assert_kernel_settings.yml:13 Monday 25 July 2022 18:44:26 +0000 (0:00:00.038) 0:00:07.435 *********** ok: [/cache/centos-7.qcow2c.snap] => { "ansible_facts": { "__kernel_settings_success": true }, "changed": false } TASK [check tuned-adm verify] ************************************************** task path: /tmp/tmp474t1zll/tests/tasks/assert_kernel_settings.yml:17 Monday 25 July 2022 18:44:26 +0000 (0:00:00.029) 0:00:07.464 *********** skipping: [/cache/centos-7.qcow2c.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [check for verify errors] ************************************************* task path: /tmp/tmp474t1zll/tests/tasks/assert_kernel_settings.yml:23 Monday 25 July 2022 18:44:26 +0000 (0:00:00.025) 0:00:07.489 *********** skipping: [/cache/centos-7.qcow2c.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [check /proc/cmdline] ***************************************************** task path: /tmp/tmp474t1zll/tests/tasks/assert_kernel_settings.yml:29 Monday 25 July 2022 18:44:26 +0000 (0:00:00.025) 0:00:07.515 *********** skipping: [/cache/centos-7.qcow2c.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [set error flag based on verify] ****************************************** task path: /tmp/tmp474t1zll/tests/tasks/assert_kernel_settings.yml:35 Monday 25 July 2022 18:44:26 +0000 (0:00:00.026) 0:00:07.542 *********** skipping: [/cache/centos-7.qcow2c.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** task path: /tmp/tmp474t1zll/tests/tasks/assert_kernel_settings.yml:42 Monday 25 July 2022 18:44:26 +0000 (0:00:00.025) 0:00:07.568 *********** included: /tmp/tmp474t1zll/tests/tasks/assert_kernel_settings_conf_files.yml for /cache/centos-7.qcow2c.snap TASK [create temporary file for expected config] ******************************* task path: /tmp/tmp474t1zll/tests/tasks/assert_kernel_settings_conf_files.yml:2 Monday 25 July 2022 18:44:26 +0000 (0:00:00.052) 0:00:07.620 *********** changed: [/cache/centos-7.qcow2c.snap] => { "changed": true, "gid": 0, "group": "root", "mode": "0600", "owner": "root", "path": "/tmp/ansible._JI0CU.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/tmp474t1zll/tests/tasks/assert_kernel_settings_conf_files.yml:8 Monday 25 July 2022 18:44:26 +0000 (0:00:00.412) 0:00:08.033 *********** changed: [/cache/centos-7.qcow2c.snap] => { "changed": true, "checksum": "169e46a0442e2493edda7ef1d37dfc572d06525c", "dest": "/tmp/ansible._JI0CU.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-1658774666.8017178-177586-219855776840429/source", "state": "file", "uid": 0 } TASK [ensure python command exists for tests below] **************************** task path: /tmp/tmp474t1zll/tests/tasks/assert_kernel_settings_conf_files.yml:14 Monday 25 July 2022 18:44:27 +0000 (0:00:00.681) 0:00:08.715 *********** ok: [/cache/centos-7.qcow2c.snap] => { "changed": false, "rc": 0, "results": [ "python-2.7.5-90.el7.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/tmp474t1zll/tests/tasks/assert_kernel_settings_conf_files.yml:19 Monday 25 July 2022 18:44:27 +0000 (0:00:00.483) 0:00:09.198 *********** ok: [/cache/centos-7.qcow2c.snap] => { "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._JI0CU.kernel_settings /etc/tuned/kernel_settings/tuned.conf\n", "delta": "0:00:00.017114", "end": "2022-07-25 18:44:26.997424", "rc": 0, "start": "2022-07-25 18:44:26.980310" } TASK [verify expected content] ************************************************* task path: /tmp/tmp474t1zll/tests/tasks/assert_kernel_settings_conf_files.yml:32 Monday 25 July 2022 18:44:28 +0000 (0:00:00.330) 0:00:09.529 *********** skipping: [/cache/centos-7.qcow2c.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [show diff - may not reflect actual ConfigObj differences] **************** task path: /tmp/tmp474t1zll/tests/tasks/assert_kernel_settings_conf_files.yml:37 Monday 25 July 2022 18:44:28 +0000 (0:00:00.023) 0:00:09.552 *********** skipping: [/cache/centos-7.qcow2c.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [get active_profile file] ************************************************* task path: /tmp/tmp474t1zll/tests/tasks/assert_kernel_settings_conf_files.yml:44 Monday 25 July 2022 18:44:28 +0000 (0:00:00.022) 0:00:09.575 *********** ok: [/cache/centos-7.qcow2c.snap] => { "changed": false, "content": "dmlydHVhbC1ndWVzdCBrZXJuZWxfc2V0dGluZ3MK", "encoding": "base64", "source": "/etc/tuned/active_profile" } TASK [check that active_profile ends with kernel_settings] ********************* task path: /tmp/tmp474t1zll/tests/tasks/assert_kernel_settings_conf_files.yml:51 Monday 25 July 2022 18:44:28 +0000 (0:00:00.268) 0:00:09.844 *********** skipping: [/cache/centos-7.qcow2c.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [get profile_mode file] *************************************************** task path: /tmp/tmp474t1zll/tests/tasks/assert_kernel_settings_conf_files.yml:58 Monday 25 July 2022 18:44:28 +0000 (0:00:00.036) 0:00:09.880 *********** ok: [/cache/centos-7.qcow2c.snap] => { "changed": false, "content": "bWFudWFsCg==", "encoding": "base64", "source": "/etc/tuned/profile_mode" } TASK [check that profile_mode is manual] *************************************** task path: /tmp/tmp474t1zll/tests/tasks/assert_kernel_settings_conf_files.yml:65 Monday 25 July 2022 18:44:28 +0000 (0:00:00.268) 0:00:10.149 *********** skipping: [/cache/centos-7.qcow2c.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [get the bootloader specific config file] ********************************* task path: /tmp/tmp474t1zll/tests/tasks/assert_kernel_settings_conf_files.yml:73 Monday 25 July 2022 18:44:28 +0000 (0:00:00.034) 0:00:10.184 *********** skipping: [/cache/centos-7.qcow2c.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [verify bootloader settings value] **************************************** task path: /tmp/tmp474t1zll/tests/tasks/assert_kernel_settings_conf_files.yml:84 Monday 25 July 2022 18:44:28 +0000 (0:00:00.034) 0:00:10.218 *********** skipping: [/cache/centos-7.qcow2c.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [check if kernel_settings_reboot_required is set if needed] *************** task path: /tmp/tmp474t1zll/tests/tasks/assert_kernel_settings.yml:45 Monday 25 July 2022 18:44:28 +0000 (0:00:00.035) 0:00:10.254 *********** skipping: [/cache/centos-7.qcow2c.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [assert success] ********************************************************** task path: /tmp/tmp474t1zll/tests/tasks/assert_kernel_settings.yml:52 Monday 25 July 2022 18:44:28 +0000 (0:00:00.034) 0:00:10.288 *********** ok: [/cache/centos-7.qcow2c.snap] => { "changed": false } MSG: All assertions passed TASK [reboot the machine - see if settings persist after reboot] *************** task path: /tmp/tmp474t1zll/tests/tests_simple_settings.yml:35 Monday 25 July 2022 18:44:29 +0000 (0:00:00.072) 0:00:10.360 *********** skipping: [/cache/centos-7.qcow2c.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [verify that settings were applied correctly after reboot] **************** task path: /tmp/tmp474t1zll/tests/tests_simple_settings.yml:42 Monday 25 July 2022 18:44:29 +0000 (0:00:00.074) 0:00:10.435 *********** skipping: [/cache/centos-7.qcow2c.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [show contents of tuned.conf] ********************************************* task path: /tmp/tmp474t1zll/tests/tests_simple_settings.yml:51 Monday 25 July 2022 18:44:29 +0000 (0:00:00.031) 0:00:10.467 *********** ok: [/cache/centos-7.qcow2c.snap] => { "changed": false, "cmd": [ "cat", "/etc/tuned/kernel_settings/tuned.conf" ], "delta": "0:00:00.002481", "end": "2022-07-25 18:44:28.206394", "rc": 0, "start": "2022-07-25 18:44:28.203913" } 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/tmp474t1zll/tests/roles/linux-system-roles.kernel_settings/handlers/main.yml:2 Monday 25 July 2022 18:44:29 +0000 (0:00:00.269) 0:00:10.736 *********** skipping: [/cache/centos-7.qcow2c.snap] => { "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/tmp474t1zll/tests/roles/linux-system-roles.kernel_settings/handlers/main.yml:12 Monday 25 July 2022 18:44:29 +0000 (0:00:00.032) 0:00:10.769 *********** skipping: [/cache/centos-7.qcow2c.snap] => { "changed": false, "skip_reason": "Conditional result was False" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/centos-7.qcow2c.snap : ok=26 changed=4 unreachable=0 failed=0 skipped=20 rescued=0 ignored=0 Monday 25 July 2022 18:44:29 +0000 (0:00:00.043) 0:00:10.812 *********** =============================================================================== linux-system-roles.kernel_settings : tuned apply settings --------------- 1.96s /tmp/tmp474t1zll/tests/roles/linux-system-roles.kernel_settings/tasks/main.yml:92 Gathering Facts --------------------------------------------------------- 1.00s /tmp/tmp474t1zll/tests/tests_simple_settings.yml:2 ---------------------------- linux-system-roles.kernel_settings : Ensure required packages are installed --- 0.71s /tmp/tmp474t1zll/tests/roles/linux-system-roles.kernel_settings/tasks/main.yml:5 put expected contents into temporary file ------------------------------- 0.68s /tmp/tmp474t1zll/tests/tasks/assert_kernel_settings_conf_files.yml:8 ---------- linux-system-roles.kernel_settings : Ensure required services are enabled and started --- 0.65s /tmp/tmp474t1zll/tests/roles/linux-system-roles.kernel_settings/tasks/main.yml:10 linux-system-roles.kernel_settings : Apply kernel settings -------------- 0.55s /tmp/tmp474t1zll/tests/roles/linux-system-roles.kernel_settings/tasks/main.yml:36 ensure python command exists for tests below ---------------------------- 0.48s /tmp/tmp474t1zll/tests/tasks/assert_kernel_settings_conf_files.yml:14 --------- linux-system-roles.kernel_settings : Ensure kernel settings profile directory exists --- 0.47s /tmp/tmp474t1zll/tests/roles/linux-system-roles.kernel_settings/tasks/main.yml:17 linux-system-roles.kernel_settings : Generate a configuration for kernel settings --- 0.46s /tmp/tmp474t1zll/tests/roles/linux-system-roles.kernel_settings/tasks/main.yml:23 linux-system-roles.kernel_settings : Ensure ansible_facts used by role --- 0.42s /tmp/tmp474t1zll/tests/roles/linux-system-roles.kernel_settings/tasks/set_vars.yml:2 linux-system-roles.kernel_settings : Get current config ----------------- 0.41s /tmp/tmp474t1zll/tests/roles/linux-system-roles.kernel_settings/tasks/main.yml:30 create temporary file for expected config ------------------------------- 0.41s /tmp/tmp474t1zll/tests/tasks/assert_kernel_settings_conf_files.yml:2 ---------- linux-system-roles.kernel_settings : check that settings are applied correctly --- 0.40s /tmp/tmp474t1zll/tests/roles/linux-system-roles.kernel_settings/tasks/verify_settings.yml:2 diff expected vs actual content ----------------------------------------- 0.33s /tmp/tmp474t1zll/tests/tasks/assert_kernel_settings_conf_files.yml:19 --------- show contents of tuned.conf --------------------------------------------- 0.27s /tmp/tmp474t1zll/tests/tests_simple_settings.yml:51 --------------------------- get profile_mode file --------------------------------------------------- 0.27s /tmp/tmp474t1zll/tests/tasks/assert_kernel_settings_conf_files.yml:58 --------- get active_profile file ------------------------------------------------- 0.27s /tmp/tmp474t1zll/tests/tasks/assert_kernel_settings_conf_files.yml:44 --------- reboot the machine - see if settings persist after reboot --------------- 0.07s /tmp/tmp474t1zll/tests/tests_simple_settings.yml:35 --------------------------- assert success ---------------------------------------------------------- 0.07s /tmp/tmp474t1zll/tests/tasks/assert_kernel_settings.yml:52 -------------------- include_tasks ----------------------------------------------------------- 0.05s /tmp/tmp474t1zll/tests/tasks/assert_kernel_settings.yml:42 -------------------- 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/tmppjicmpqi 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: tests_simple_settings.yml ******************************************** 1 plays in /tmp/tmpteurda0g/tests/kernel_settings/tests_simple_settings.yml PLAY [test simple kernel settings] ********************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpteurda0g/tests/kernel_settings/tests_simple_settings.yml:2 Monday 25 July 2022 18:45:50 +0000 (0:00:00.012) 0:00:00.012 *********** ok: [/cache/centos-7.qcow2c.snap] META: ran handlers TASK [set platform independent vars used by this test] ************************* task path: /tmp/tmpteurda0g/tests/kernel_settings/tests_simple_settings.yml:8 Monday 25 July 2022 18:45:52 +0000 (0:00:01.988) 0:00:02.001 *********** ok: [/cache/centos-7.qcow2c.snap] => { "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/tmpteurda0g/tests/kernel_settings/vars/vars_simple_settings.yml" ], "changed": false } TASK [disable bootloader cmdline testing on Fedora] **************************** task path: /tmp/tmpteurda0g/tests/kernel_settings/tests_simple_settings.yml:12 Monday 25 July 2022 18:45:52 +0000 (0:00:00.035) 0:00:02.037 *********** skipping: [/cache/centos-7.qcow2c.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [apply the settings - call the role] ************************************** task path: /tmp/tmpteurda0g/tests/kernel_settings/tests_simple_settings.yml:23 Monday 25 July 2022 18:45:52 +0000 (0:00:00.019) 0:00:02.056 *********** TASK [fedora.linux_system_roles.kernel_settings : Set version specific variables] *** task path: /tmp/tmppjicmpqi/ansible_collections/fedora/linux_system_roles/roles/kernel_settings/tasks/main.yml:2 Monday 25 July 2022 18:45:52 +0000 (0:00:00.044) 0:00:02.101 *********** included: /tmp/tmppjicmpqi/ansible_collections/fedora/linux_system_roles/roles/kernel_settings/tasks/set_vars.yml for /cache/centos-7.qcow2c.snap TASK [fedora.linux_system_roles.kernel_settings : Ensure ansible_facts used by role] *** task path: /tmp/tmppjicmpqi/ansible_collections/fedora/linux_system_roles/roles/kernel_settings/tasks/set_vars.yml:2 Monday 25 July 2022 18:45:52 +0000 (0:00:00.030) 0:00:02.131 *********** ok: [/cache/centos-7.qcow2c.snap] TASK [fedora.linux_system_roles.kernel_settings : Set platform/version specific variables] *** task path: /tmp/tmppjicmpqi/ansible_collections/fedora/linux_system_roles/roles/kernel_settings/tasks/set_vars.yml:7 Monday 25 July 2022 18:45:52 +0000 (0:00:00.387) 0:00:02.519 *********** ok: [/cache/centos-7.qcow2c.snap] => { "ansible_facts": { "__kernel_settings_packages": [ "tuned", "python-configobj" ], "__kernel_settings_services": [ "tuned" ] }, "ansible_included_var_files": [ "/tmp/tmppjicmpqi/ansible_collections/fedora/linux_system_roles/roles/kernel_settings/vars/CentOS_7.yml" ], "changed": false } TASK [fedora.linux_system_roles.kernel_settings : Ensure required packages are installed] *** task path: /tmp/tmppjicmpqi/ansible_collections/fedora/linux_system_roles/roles/kernel_settings/tasks/main.yml:5 Monday 25 July 2022 18:45:52 +0000 (0:00:00.041) 0:00:02.560 *********** ok: [/cache/centos-7.qcow2c.snap] => { "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/tmppjicmpqi/ansible_collections/fedora/linux_system_roles/roles/kernel_settings/tasks/main.yml:10 Monday 25 July 2022 18:45:53 +0000 (0:00:00.649) 0:00:03.210 *********** ok: [/cache/centos-7.qcow2c.snap] => (item=tuned) => { "ansible_loop_var": "item", "changed": false, "enabled": true, "item": "tuned", "name": "tuned", "state": "started", "status": { "ActiveEnterTimestamp": "Mon 2022-07-25 18:45:16 UTC", "ActiveEnterTimestampMonotonic": "8732425", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "network.target systemd-journald.socket system.slice systemd-sysctl.service basic.target dbus.service", "AllowIsolate": "no", "AmbientCapabilities": "0", "AssertResult": "yes", "AssertTimestamp": "Mon 2022-07-25 18:45:16 UTC", "AssertTimestampMonotonic": "8539072", "Before": "multi-user.target shutdown.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 18:45:16 UTC", "ConditionTimestampMonotonic": "8539072", "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": "965", "ExecMainStartTimestamp": "Mon 2022-07-25 18:45:16 UTC", "ExecMainStartTimestampMonotonic": "8539620", "ExecMainStatus": "0", "ExecStart": "{ path=/usr/sbin/tuned ; argv[]=/usr/sbin/tuned -l -P ; ignore_errors=no ; start_time=[Mon 2022-07-25 18:45:16 UTC] ; stop_time=[n/a] ; pid=965 ; 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 18:45:16 UTC", "InactiveExitTimestampMonotonic": "8539663", "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": "7154", "LimitRSS": "18446744073709551615", "LimitRTPRIO": "0", "LimitRTTIME": "18446744073709551615", "LimitSIGPENDING": "7154", "LimitSTACK": "18446744073709551615", "LoadState": "loaded", "MainPID": "965", "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": "dbus.service polkit.service basic.target 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": "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 18:45:16 UTC", "WatchdogTimestampMonotonic": "8732374", "WatchdogUSec": "0" } } TASK [fedora.linux_system_roles.kernel_settings : Ensure kernel settings profile directory exists] *** task path: /tmp/tmppjicmpqi/ansible_collections/fedora/linux_system_roles/roles/kernel_settings/tasks/main.yml:17 Monday 25 July 2022 18:45:54 +0000 (0:00:00.638) 0:00:03.849 *********** ok: [/cache/centos-7.qcow2c.snap] => { "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/tmppjicmpqi/ansible_collections/fedora/linux_system_roles/roles/kernel_settings/tasks/main.yml:23 Monday 25 July 2022 18:45:54 +0000 (0:00:00.452) 0:00:04.302 *********** ok: [/cache/centos-7.qcow2c.snap] => { "changed": false, "dest": "/etc/tuned/kernel_settings/tuned.conf", "src": "/root/.ansible/tmp/ansible-local-179472wmt27xiw/tmp0o6x7btv/kernel_settings.j2" } TASK [fedora.linux_system_roles.kernel_settings : Get current config] ********** task path: /tmp/tmppjicmpqi/ansible_collections/fedora/linux_system_roles/roles/kernel_settings/tasks/main.yml:30 Monday 25 July 2022 18:45:55 +0000 (0:00:00.457) 0:00:04.759 *********** ok: [/cache/centos-7.qcow2c.snap] => { "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/tmppjicmpqi/ansible_collections/fedora/linux_system_roles/roles/kernel_settings/tasks/main.yml:36 Monday 25 July 2022 18:45:55 +0000 (0:00:00.408) 0:00:05.167 *********** NOTIFIED HANDLER fedora.linux_system_roles.kernel_settings : reboot the managed host to apply kernel_settings changes for /cache/centos-7.qcow2c.snap NOTIFIED HANDLER fedora.linux_system_roles.kernel_settings : clear the kernel_settings_reboot_required flag for /cache/centos-7.qcow2c.snap changed: [/cache/centos-7.qcow2c.snap] => { "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/tmppjicmpqi/ansible_collections/fedora/linux_system_roles/roles/kernel_settings/tasks/main.yml:65 Monday 25 July 2022 18:45:56 +0000 (0:00:00.537) 0:00:05.705 *********** changed: [/cache/centos-7.qcow2c.snap] => { "changed": true, "cmd": [ "tuned-adm", "profile", "virtual-guest kernel_settings" ], "delta": "0:00:01.508651", "end": "2022-07-25 18:45:57.325676", "rc": 0, "start": "2022-07-25 18:45:55.817025" } TASK [fedora.linux_system_roles.kernel_settings : verify settings] ************* task path: /tmp/tmppjicmpqi/ansible_collections/fedora/linux_system_roles/roles/kernel_settings/tasks/main.yml:70 Monday 25 July 2022 18:45:57 +0000 (0:00:01.930) 0:00:07.635 *********** included: /tmp/tmppjicmpqi/ansible_collections/fedora/linux_system_roles/roles/kernel_settings/tasks/verify_settings.yml for /cache/centos-7.qcow2c.snap TASK [fedora.linux_system_roles.kernel_settings : check that settings are applied correctly] *** task path: /tmp/tmppjicmpqi/ansible_collections/fedora/linux_system_roles/roles/kernel_settings/tasks/verify_settings.yml:2 Monday 25 July 2022 18:45:58 +0000 (0:00:00.044) 0:00:07.679 *********** ok: [/cache/centos-7.qcow2c.snap] => { "changed": false, "cmd": [ "tuned-adm", "verify", "-i" ], "delta": "0:00:00.082958", "end": "2022-07-25 18:45:57.783963", "rc": 0, "start": "2022-07-25 18:45:57.701005" } 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/tmppjicmpqi/ansible_collections/fedora/linux_system_roles/roles/kernel_settings/tasks/verify_settings.yml:12 Monday 25 July 2022 18:45:58 +0000 (0:00:00.406) 0:00:08.086 *********** skipping: [/cache/centos-7.qcow2c.snap] => { "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/tmppjicmpqi/ansible_collections/fedora/linux_system_roles/roles/kernel_settings/tasks/verify_settings.yml:24 Monday 25 July 2022 18:45:58 +0000 (0:00:00.027) 0:00:08.114 *********** skipping: [/cache/centos-7.qcow2c.snap] => { "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/tmppjicmpqi/ansible_collections/fedora/linux_system_roles/roles/kernel_settings/tasks/main.yml:74 Monday 25 July 2022 18:45:58 +0000 (0:00:00.027) 0:00:08.141 *********** skipping: [/cache/centos-7.qcow2c.snap] => {} TASK [fedora.linux_system_roles.kernel_settings : set the flag that reboot is needed to apply changes] *** task path: /tmp/tmppjicmpqi/ansible_collections/fedora/linux_system_roles/roles/kernel_settings/tasks/main.yml:83 Monday 25 July 2022 18:45:58 +0000 (0:00:00.037) 0:00:08.178 *********** skipping: [/cache/centos-7.qcow2c.snap] => { "changed": false, "skip_reason": "Conditional result was False" } META: role_complete for /cache/centos-7.qcow2c.snap TASK [verify that settings were applied correctly] ***************************** task path: /tmp/tmpteurda0g/tests/kernel_settings/tests_simple_settings.yml:28 Monday 25 July 2022 18:45:58 +0000 (0:00:00.039) 0:00:08.217 *********** included: /tmp/tmpteurda0g/tests/kernel_settings/tasks/assert_kernel_settings.yml for /cache/centos-7.qcow2c.snap TASK [Set version specific variables] ****************************************** task path: /tmp/tmpteurda0g/tests/kernel_settings/tasks/assert_kernel_settings.yml:2 Monday 25 July 2022 18:45:58 +0000 (0:00:00.029) 0:00:08.247 *********** ok: [/cache/centos-7.qcow2c.snap] => { "ansible_facts": { "__kernel_settings_test_python_cmd": "python", "__kernel_settings_test_python_pkgs": [ "python", "python-configobj" ] }, "ansible_included_var_files": [ "/tmp/tmpteurda0g/tests/kernel_settings/vars/tests_default.yml" ], "changed": false } TASK [reset settings success flag] ********************************************* task path: /tmp/tmpteurda0g/tests/kernel_settings/tasks/assert_kernel_settings.yml:12 Monday 25 July 2022 18:45:58 +0000 (0:00:00.059) 0:00:08.306 *********** ok: [/cache/centos-7.qcow2c.snap] => { "ansible_facts": { "__kernel_settings_success": true }, "changed": false } TASK [check tuned-adm verify] ************************************************** task path: /tmp/tmpteurda0g/tests/kernel_settings/tasks/assert_kernel_settings.yml:16 Monday 25 July 2022 18:45:58 +0000 (0:00:00.026) 0:00:08.332 *********** skipping: [/cache/centos-7.qcow2c.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [check for verify errors] ************************************************* task path: /tmp/tmpteurda0g/tests/kernel_settings/tasks/assert_kernel_settings.yml:22 Monday 25 July 2022 18:45:58 +0000 (0:00:00.018) 0:00:08.351 *********** skipping: [/cache/centos-7.qcow2c.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [check /proc/cmdline] ***************************************************** task path: /tmp/tmpteurda0g/tests/kernel_settings/tasks/assert_kernel_settings.yml:28 Monday 25 July 2022 18:45:58 +0000 (0:00:00.023) 0:00:08.374 *********** skipping: [/cache/centos-7.qcow2c.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [set error flag based on verify] ****************************************** task path: /tmp/tmpteurda0g/tests/kernel_settings/tasks/assert_kernel_settings.yml:34 Monday 25 July 2022 18:45:58 +0000 (0:00:00.022) 0:00:08.396 *********** skipping: [/cache/centos-7.qcow2c.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [include_tasks] *********************************************************** task path: /tmp/tmpteurda0g/tests/kernel_settings/tasks/assert_kernel_settings.yml:41 Monday 25 July 2022 18:45:58 +0000 (0:00:00.022) 0:00:08.418 *********** included: /tmp/tmpteurda0g/tests/kernel_settings/tasks/assert_kernel_settings_conf_files.yml for /cache/centos-7.qcow2c.snap TASK [create temporary file for expected config] ******************************* task path: /tmp/tmpteurda0g/tests/kernel_settings/tasks/assert_kernel_settings_conf_files.yml:2 Monday 25 July 2022 18:45:58 +0000 (0:00:00.089) 0:00:08.508 *********** changed: [/cache/centos-7.qcow2c.snap] => { "changed": true, "gid": 0, "group": "root", "mode": "0600", "owner": "root", "path": "/tmp/ansible.sx0yVV.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/tmpteurda0g/tests/kernel_settings/tasks/assert_kernel_settings_conf_files.yml:8 Monday 25 July 2022 18:45:59 +0000 (0:00:00.375) 0:00:08.883 *********** changed: [/cache/centos-7.qcow2c.snap] => { "changed": true, "checksum": "169e46a0442e2493edda7ef1d37dfc572d06525c", "dest": "/tmp/ansible.sx0yVV.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-1658774759.3064814-179692-159513613762443/source", "state": "file", "uid": 0 } TASK [ensure python command exists for tests below] **************************** task path: /tmp/tmpteurda0g/tests/kernel_settings/tasks/assert_kernel_settings_conf_files.yml:14 Monday 25 July 2022 18:46:00 +0000 (0:00:00.819) 0:00:09.702 *********** ok: [/cache/centos-7.qcow2c.snap] => { "changed": false, "rc": 0, "results": [ "python-2.7.5-90.el7.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/tmpteurda0g/tests/kernel_settings/tasks/assert_kernel_settings_conf_files.yml:19 Monday 25 July 2022 18:46:00 +0000 (0:00:00.472) 0:00:10.175 *********** ok: [/cache/centos-7.qcow2c.snap] => { "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.sx0yVV.kernel_settings /etc/tuned/kernel_settings/tuned.conf\n", "delta": "0:00:00.017088", "end": "2022-07-25 18:46:00.178603", "rc": 0, "start": "2022-07-25 18:46:00.161515" } TASK [verify expected content] ************************************************* task path: /tmp/tmpteurda0g/tests/kernel_settings/tasks/assert_kernel_settings_conf_files.yml:32 Monday 25 July 2022 18:46:00 +0000 (0:00:00.303) 0:00:10.479 *********** skipping: [/cache/centos-7.qcow2c.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [show diff - may not reflect actual ConfigObj differences] **************** task path: /tmp/tmpteurda0g/tests/kernel_settings/tasks/assert_kernel_settings_conf_files.yml:37 Monday 25 July 2022 18:46:00 +0000 (0:00:00.025) 0:00:10.504 *********** skipping: [/cache/centos-7.qcow2c.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [get active_profile file] ************************************************* task path: /tmp/tmpteurda0g/tests/kernel_settings/tasks/assert_kernel_settings_conf_files.yml:44 Monday 25 July 2022 18:46:00 +0000 (0:00:00.025) 0:00:10.530 *********** ok: [/cache/centos-7.qcow2c.snap] => { "changed": false, "content": "dmlydHVhbC1ndWVzdCBrZXJuZWxfc2V0dGluZ3MK", "encoding": "base64", "source": "/etc/tuned/active_profile" } TASK [check that active_profile ends with kernel_settings] ********************* task path: /tmp/tmpteurda0g/tests/kernel_settings/tasks/assert_kernel_settings_conf_files.yml:51 Monday 25 July 2022 18:46:01 +0000 (0:00:00.277) 0:00:10.807 *********** skipping: [/cache/centos-7.qcow2c.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [get profile_mode file] *************************************************** task path: /tmp/tmpteurda0g/tests/kernel_settings/tasks/assert_kernel_settings_conf_files.yml:58 Monday 25 July 2022 18:46:01 +0000 (0:00:00.037) 0:00:10.844 *********** ok: [/cache/centos-7.qcow2c.snap] => { "changed": false, "content": "bWFudWFsCg==", "encoding": "base64", "source": "/etc/tuned/profile_mode" } TASK [check that profile_mode is manual] *************************************** task path: /tmp/tmpteurda0g/tests/kernel_settings/tasks/assert_kernel_settings_conf_files.yml:65 Monday 25 July 2022 18:46:01 +0000 (0:00:00.277) 0:00:11.122 *********** skipping: [/cache/centos-7.qcow2c.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [get the bootloader specific config file] ********************************* task path: /tmp/tmpteurda0g/tests/kernel_settings/tasks/assert_kernel_settings_conf_files.yml:73 Monday 25 July 2022 18:46:01 +0000 (0:00:00.040) 0:00:11.163 *********** skipping: [/cache/centos-7.qcow2c.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [verify bootloader settings value] **************************************** task path: /tmp/tmpteurda0g/tests/kernel_settings/tasks/assert_kernel_settings_conf_files.yml:84 Monday 25 July 2022 18:46:01 +0000 (0:00:00.033) 0:00:11.197 *********** skipping: [/cache/centos-7.qcow2c.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [check if kernel_settings_reboot_required is set if needed] *************** task path: /tmp/tmpteurda0g/tests/kernel_settings/tasks/assert_kernel_settings.yml:44 Monday 25 July 2022 18:46:01 +0000 (0:00:00.034) 0:00:11.231 *********** skipping: [/cache/centos-7.qcow2c.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [assert success] ********************************************************** task path: /tmp/tmpteurda0g/tests/kernel_settings/tasks/assert_kernel_settings.yml:51 Monday 25 July 2022 18:46:01 +0000 (0:00:00.037) 0:00:11.269 *********** ok: [/cache/centos-7.qcow2c.snap] => { "changed": false } MSG: All assertions passed TASK [reboot the machine - see if settings persist after reboot] *************** task path: /tmp/tmpteurda0g/tests/kernel_settings/tests_simple_settings.yml:35 Monday 25 July 2022 18:46:01 +0000 (0:00:00.044) 0:00:11.313 *********** skipping: [/cache/centos-7.qcow2c.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [verify that settings were applied correctly after reboot] **************** task path: /tmp/tmpteurda0g/tests/kernel_settings/tests_simple_settings.yml:42 Monday 25 July 2022 18:46:01 +0000 (0:00:00.034) 0:00:11.347 *********** skipping: [/cache/centos-7.qcow2c.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [show contents of tuned.conf] ********************************************* task path: /tmp/tmpteurda0g/tests/kernel_settings/tests_simple_settings.yml:51 Monday 25 July 2022 18:46:01 +0000 (0:00:00.032) 0:00:11.380 *********** ok: [/cache/centos-7.qcow2c.snap] => { "changed": false, "cmd": [ "cat", "/etc/tuned/kernel_settings/tuned.conf" ], "delta": "0:00:00.002798", "end": "2022-07-25 18:46:01.354631", "rc": 0, "start": "2022-07-25 18:46:01.351833" } 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/tmppjicmpqi/ansible_collections/fedora/linux_system_roles/roles/kernel_settings/handlers/main.yml:2 Monday 25 July 2022 18:46:02 +0000 (0:00:00.276) 0:00:11.657 *********** skipping: [/cache/centos-7.qcow2c.snap] => { "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/tmppjicmpqi/ansible_collections/fedora/linux_system_roles/roles/kernel_settings/handlers/main.yml:12 Monday 25 July 2022 18:46:02 +0000 (0:00:00.033) 0:00:11.691 *********** skipping: [/cache/centos-7.qcow2c.snap] => { "changed": false, "skip_reason": "Conditional result was False" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/centos-7.qcow2c.snap : ok=26 changed=4 unreachable=0 failed=0 skipped=20 rescued=0 ignored=0 Monday 25 July 2022 18:46:02 +0000 (0:00:00.043) 0:00:11.734 *********** =============================================================================== Gathering Facts --------------------------------------------------------- 1.99s /tmp/tmpteurda0g/tests/kernel_settings/tests_simple_settings.yml:2 ------------ fedora.linux_system_roles.kernel_settings : tuned apply settings -------- 1.93s /tmp/tmppjicmpqi/ansible_collections/fedora/linux_system_roles/roles/kernel_settings/tasks/main.yml:65 put expected contents into temporary file ------------------------------- 0.82s /tmp/tmpteurda0g/tests/kernel_settings/tasks/assert_kernel_settings_conf_files.yml:8 fedora.linux_system_roles.kernel_settings : Ensure required packages are installed --- 0.65s /tmp/tmppjicmpqi/ansible_collections/fedora/linux_system_roles/roles/kernel_settings/tasks/main.yml:5 fedora.linux_system_roles.kernel_settings : Ensure required services are enabled and started --- 0.64s /tmp/tmppjicmpqi/ansible_collections/fedora/linux_system_roles/roles/kernel_settings/tasks/main.yml:10 fedora.linux_system_roles.kernel_settings : Apply kernel settings ------- 0.54s /tmp/tmppjicmpqi/ansible_collections/fedora/linux_system_roles/roles/kernel_settings/tasks/main.yml:36 ensure python command exists for tests below ---------------------------- 0.47s /tmp/tmpteurda0g/tests/kernel_settings/tasks/assert_kernel_settings_conf_files.yml:14 fedora.linux_system_roles.kernel_settings : Generate a configuration for kernel settings --- 0.46s /tmp/tmppjicmpqi/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.45s /tmp/tmppjicmpqi/ansible_collections/fedora/linux_system_roles/roles/kernel_settings/tasks/main.yml:17 fedora.linux_system_roles.kernel_settings : Get current config ---------- 0.41s /tmp/tmppjicmpqi/ansible_collections/fedora/linux_system_roles/roles/kernel_settings/tasks/main.yml:30 fedora.linux_system_roles.kernel_settings : check that settings are applied correctly --- 0.41s /tmp/tmppjicmpqi/ansible_collections/fedora/linux_system_roles/roles/kernel_settings/tasks/verify_settings.yml:2 fedora.linux_system_roles.kernel_settings : Ensure ansible_facts used by role --- 0.39s /tmp/tmppjicmpqi/ansible_collections/fedora/linux_system_roles/roles/kernel_settings/tasks/set_vars.yml:2 create temporary file for expected config ------------------------------- 0.38s /tmp/tmpteurda0g/tests/kernel_settings/tasks/assert_kernel_settings_conf_files.yml:2 diff expected vs actual content ----------------------------------------- 0.30s /tmp/tmpteurda0g/tests/kernel_settings/tasks/assert_kernel_settings_conf_files.yml:19 get profile_mode file --------------------------------------------------- 0.28s /tmp/tmpteurda0g/tests/kernel_settings/tasks/assert_kernel_settings_conf_files.yml:58 get active_profile file ------------------------------------------------- 0.28s /tmp/tmpteurda0g/tests/kernel_settings/tasks/assert_kernel_settings_conf_files.yml:44 show contents of tuned.conf --------------------------------------------- 0.28s /tmp/tmpteurda0g/tests/kernel_settings/tests_simple_settings.yml:51 ----------- include_tasks ----------------------------------------------------------- 0.09s /tmp/tmpteurda0g/tests/kernel_settings/tasks/assert_kernel_settings.yml:41 ---- Set version specific variables ------------------------------------------ 0.06s /tmp/tmpteurda0g/tests/kernel_settings/tasks/assert_kernel_settings.yml:2 ----- apply the settings - call the role -------------------------------------- 0.04s /tmp/tmpteurda0g/tests/kernel_settings/tests_simple_settings.yml:23 -----------