# STDOUT: ---v---v---v---v---v--- ansible-playbook [core 2.16.0] config file = /etc/ansible/ansible.cfg configured module search path = ['/home/jenkins/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /opt/ansible-2.16/lib/python3.11/site-packages/ansible ansible collection location = /WORKDIR/git-weekly-ci3mu7lmvk/.collection executable location = /opt/ansible-2.16/bin/ansible-playbook python version = 3.11.5 (main, Sep 7 2023, 00:00:00) [GCC 11.4.1 20230605 (Red Hat 11.4.1-2)] (/opt/ansible-2.16/bin/python) jinja version = 3.1.2 libyaml = True Using /etc/ansible/ansible.cfg as config file Skipping callback 'debug', as we already have a stdout callback. Skipping callback 'default', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. PLAYBOOK: tests_simple_settings.yml ******************************************** 1 plays in /WORKDIR/git-weekly-ci3mu7lmvk/tests/tests_simple_settings.yml PLAY [Test simple kernel settings] ********************************************* TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-weekly-ci3mu7lmvk/tests/tests_simple_settings.yml:2 Saturday 20 July 2024 11:37:16 +0000 (0:00:00.016) 0:00:00.016 ********* ok: [sut] TASK [Set platform independent vars used by this test] ************************* task path: /WORKDIR/git-weekly-ci3mu7lmvk/tests/tests_simple_settings.yml:8 Saturday 20 July 2024 11:37:16 +0000 (0:00:00.706) 0:00:00.722 ********* ok: [sut] => { "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": [ "/WORKDIR/git-weekly-ci3mu7lmvk/tests/vars/vars_simple_settings.yml" ], "changed": false } TASK [Disable bootloader cmdline testing on Fedora] **************************** task path: /WORKDIR/git-weekly-ci3mu7lmvk/tests/tests_simple_settings.yml:12 Saturday 20 July 2024 11:37:16 +0000 (0:00:00.012) 0:00:00.735 ********* skipping: [sut] => { "changed": false, "false_condition": "ansible_distribution == \"Fedora\"", "skip_reason": "Conditional result was False" } TASK [Apply the settings - call the role] ************************************** task path: /WORKDIR/git-weekly-ci3mu7lmvk/tests/tests_simple_settings.yml:23 Saturday 20 July 2024 11:37:16 +0000 (0:00:00.007) 0:00:00.742 ********* TASK [fedora.linux_system_roles.kernel_settings : Set version specific variables] *** task path: /WORKDIR/git-weekly-ci3mu7lmvk/.collection/ansible_collections/fedora/linux_system_roles/roles/kernel_settings/tasks/main.yml:2 Saturday 20 July 2024 11:37:17 +0000 (0:00:00.019) 0:00:00.762 ********* included: /WORKDIR/git-weekly-ci3mu7lmvk/.collection/ansible_collections/fedora/linux_system_roles/roles/kernel_settings/tasks/set_vars.yml for sut TASK [fedora.linux_system_roles.kernel_settings : Ensure ansible_facts used by role] *** task path: /WORKDIR/git-weekly-ci3mu7lmvk/.collection/ansible_collections/fedora/linux_system_roles/roles/kernel_settings/tasks/set_vars.yml:2 Saturday 20 July 2024 11:37:17 +0000 (0:00:00.021) 0:00:00.784 ********* skipping: [sut] => { "changed": false, "false_condition": "__kernel_settings_required_facts | difference(ansible_facts.keys() | list) | length > 0", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.kernel_settings : Check if system is ostree] *** task path: /WORKDIR/git-weekly-ci3mu7lmvk/.collection/ansible_collections/fedora/linux_system_roles/roles/kernel_settings/tasks/set_vars.yml:10 Saturday 20 July 2024 11:37:17 +0000 (0:00:00.020) 0:00:00.804 ********* ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [fedora.linux_system_roles.kernel_settings : Set flag to indicate system is ostree] *** task path: /WORKDIR/git-weekly-ci3mu7lmvk/.collection/ansible_collections/fedora/linux_system_roles/roles/kernel_settings/tasks/set_vars.yml:15 Saturday 20 July 2024 11:37:17 +0000 (0:00:00.179) 0:00:00.983 ********* ok: [sut] => { "ansible_facts": { "__kernel_settings_is_ostree": false }, "changed": false } TASK [fedora.linux_system_roles.kernel_settings : Set platform/version specific variables] *** task path: /WORKDIR/git-weekly-ci3mu7lmvk/.collection/ansible_collections/fedora/linux_system_roles/roles/kernel_settings/tasks/set_vars.yml:19 Saturday 20 July 2024 11:37:17 +0000 (0:00:00.013) 0:00:00.997 ********* ok: [sut] => { "ansible_facts": { "__kernel_settings_packages": [ "tuned", "python-configobj" ], "__kernel_settings_services": [ "tuned" ] }, "ansible_included_var_files": [ "/WORKDIR/git-weekly-ci3mu7lmvk/.collection/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: /WORKDIR/git-weekly-ci3mu7lmvk/.collection/ansible_collections/fedora/linux_system_roles/roles/kernel_settings/tasks/main.yml:5 Saturday 20 July 2024 11:37:17 +0000 (0:00:00.016) 0:00:01.013 ********* ok: [sut] => { "changed": false, "rc": 0, "results": [ "tuned-2.11.0-12.el7_9.noarch providing tuned is already installed", "python-configobj-4.7.2-7.el7.noarch providing python-configobj is already installed" ] } lsrpackages: python-configobj tuned TASK [fedora.linux_system_roles.kernel_settings : Ensure required services are enabled and started] *** task path: /WORKDIR/git-weekly-ci3mu7lmvk/.collection/ansible_collections/fedora/linux_system_roles/roles/kernel_settings/tasks/main.yml:11 Saturday 20 July 2024 11:37:17 +0000 (0:00:00.567) 0:00:01.581 ********* ok: [sut] => (item=tuned) => { "ansible_loop_var": "item", "changed": false, "enabled": true, "item": "tuned", "name": "tuned", "state": "started", "status": { "ActiveEnterTimestamp": "Sat 2024-07-20 06:48:24 EDT", "ActiveEnterTimestampMonotonic": "22351328", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "basic.target system.slice systemd-sysctl.service network.target systemd-journald.socket dbus.service", "AllowIsolate": "no", "AmbientCapabilities": "0", "AssertResult": "yes", "AssertTimestamp": "Sat 2024-07-20 06:48:23 EDT", "AssertTimestampMonotonic": "20971550", "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": "Sat 2024-07-20 06:48:23 EDT", "ConditionTimestampMonotonic": "20971549", "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": "856", "ExecMainStartTimestamp": "Sat 2024-07-20 06:48:23 EDT", "ExecMainStartTimestampMonotonic": "20972217", "ExecMainStatus": "0", "ExecStart": "{ path=/usr/sbin/tuned ; argv[]=/usr/sbin/tuned -l -P ; ignore_errors=no ; start_time=[Sat 2024-07-20 06:48:23 EDT] ; stop_time=[n/a] ; pid=856 ; 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": "Sat 2024-07-20 06:48:23 EDT", "InactiveExitTimestampMonotonic": "20972258", "JobTimeoutAction": "none", "JobTimeoutUSec": "0", "KillMode": "control-group", "KillSignal": "15", "LimitAS": "18446744073709551615", "LimitCORE": "18446744073709551615", "LimitCPU": "18446744073709551615", "LimitDATA": "18446744073709551615", "LimitFSIZE": "18446744073709551615", "LimitLOCKS": "18446744073709551615", "LimitMEMLOCK": "65536", "LimitMSGQUEUE": "819200", "LimitNICE": "0", "LimitNOFILE": "4096", "LimitNPROC": "14311", "LimitRSS": "18446744073709551615", "LimitRTPRIO": "0", "LimitRTTIME": "18446744073709551615", "LimitSIGPENDING": "14311", "LimitSTACK": "18446744073709551615", "LoadState": "loaded", "MainPID": "856", "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 system.slice 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": "Sat 2024-07-20 06:48:24 EDT", "WatchdogTimestampMonotonic": "22351279", "WatchdogUSec": "0" } } TASK [fedora.linux_system_roles.kernel_settings : Ensure kernel settings profile directory exists] *** task path: /WORKDIR/git-weekly-ci3mu7lmvk/.collection/ansible_collections/fedora/linux_system_roles/roles/kernel_settings/tasks/main.yml:18 Saturday 20 July 2024 11:37:18 +0000 (0:00:00.415) 0:00:01.996 ********* changed: [sut] => { "changed": true, "gid": 0, "group": "root", "mode": "0755", "owner": "root", "path": "/etc/tuned/kernel_settings", "secontext": "unconfined_u:object_r:tuned_etc_t:s0", "size": 4096, "state": "directory", "uid": 0 } TASK [fedora.linux_system_roles.kernel_settings : Generate a configuration for kernel settings] *** task path: /WORKDIR/git-weekly-ci3mu7lmvk/.collection/ansible_collections/fedora/linux_system_roles/roles/kernel_settings/tasks/main.yml:24 Saturday 20 July 2024 11:37:18 +0000 (0:00:00.265) 0:00:02.262 ********* changed: [sut] => { "changed": true, "checksum": "2276c6651921204ad4c4d1a0d303911e242d601a", "dest": "/etc/tuned/kernel_settings/tuned.conf", "gid": 0, "group": "root", "md5sum": "c7520cb6fa6a0df3e7032ba9e1135fdf", "mode": "0644", "owner": "root", "secontext": "system_u:object_r:tuned_etc_t:s0", "size": 84, "src": "/root/.ansible/tmp/ansible-tmp-1721475438.5501015-390-206689600019780/source", "state": "file", "uid": 0 } TASK [fedora.linux_system_roles.kernel_settings : Get current config] ********** task path: /WORKDIR/git-weekly-ci3mu7lmvk/.collection/ansible_collections/fedora/linux_system_roles/roles/kernel_settings/tasks/main.yml:31 Saturday 20 July 2024 11:37:18 +0000 (0:00:00.448) 0:00:02.711 ********* ok: [sut] => { "changed": false, "content": "IwojIEFuc2libGUgbWFuYWdlZAojCiMgc3lzdGVtX3JvbGU6a2VybmVsX3NldHRpbmdzCgpbbWFpbl0Kc3VtbWFyeT1rZXJuZWwgc2V0dGluZ3MK", "encoding": "base64", "source": "/etc/tuned/kernel_settings/tuned.conf" } TASK [fedora.linux_system_roles.kernel_settings : Apply kernel settings] ******* task path: /WORKDIR/git-weekly-ci3mu7lmvk/.collection/ansible_collections/fedora/linux_system_roles/roles/kernel_settings/tasks/main.yml:37 Saturday 20 July 2024 11:37:19 +0000 (0:00:00.187) 0:00:02.898 ********* Notification for handler __kernel_settings_handler_modified has been saved. changed: [sut] => { "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: /WORKDIR/git-weekly-ci3mu7lmvk/.collection/ansible_collections/fedora/linux_system_roles/roles/kernel_settings/tasks/main.yml:66 Saturday 20 July 2024 11:37:19 +0000 (0:00:00.404) 0:00:03.303 ********* changed: [sut] => { "changed": true, "cmd": [ "tuned-adm", "profile", "virtual-guest kernel_settings" ], "delta": "0:00:01.490742", "end": "2024-07-20 07:37:21.219192", "rc": 0, "start": "2024-07-20 07:37:19.728450" } TASK [fedora.linux_system_roles.kernel_settings : Verify settings] ************* task path: /WORKDIR/git-weekly-ci3mu7lmvk/.collection/ansible_collections/fedora/linux_system_roles/roles/kernel_settings/tasks/main.yml:72 Saturday 20 July 2024 11:37:21 +0000 (0:00:01.688) 0:00:04.991 ********* included: /WORKDIR/git-weekly-ci3mu7lmvk/.collection/ansible_collections/fedora/linux_system_roles/roles/kernel_settings/tasks/verify_settings.yml for sut TASK [fedora.linux_system_roles.kernel_settings : Check that settings are applied correctly] *** task path: /WORKDIR/git-weekly-ci3mu7lmvk/.collection/ansible_collections/fedora/linux_system_roles/roles/kernel_settings/tasks/verify_settings.yml:2 Saturday 20 July 2024 11:37:21 +0000 (0:00:00.019) 0:00:05.011 ********* ok: [sut] => { "changed": false, "cmd": [ "tuned-adm", "verify", "-i" ], "delta": "0:00:00.080715", "end": "2024-07-20 07:37:21.439272", "rc": 0, "start": "2024-07-20 07:37:21.358557" } 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: /WORKDIR/git-weekly-ci3mu7lmvk/.collection/ansible_collections/fedora/linux_system_roles/roles/kernel_settings/tasks/verify_settings.yml:12 Saturday 20 July 2024 11:37:21 +0000 (0:00:00.202) 0:00:05.213 ********* skipping: [sut] => { "changed": false, "false_condition": "__kernel_settings_register_verify_values is failed", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.kernel_settings : Report errors that are not bootloader errors] *** task path: /WORKDIR/git-weekly-ci3mu7lmvk/.collection/ansible_collections/fedora/linux_system_roles/roles/kernel_settings/tasks/verify_settings.yml:23 Saturday 20 July 2024 11:37:21 +0000 (0:00:00.011) 0:00:05.225 ********* skipping: [sut] => { "changed": false, "false_condition": "__kernel_settings_register_verify_values is failed", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.kernel_settings : Notify user that reboot is needed to apply changes] *** task path: /WORKDIR/git-weekly-ci3mu7lmvk/.collection/ansible_collections/fedora/linux_system_roles/roles/kernel_settings/tasks/main.yml:76 Saturday 20 July 2024 11:37:21 +0000 (0:00:00.010) 0:00:05.235 ********* skipping: [sut] => { "false_condition": "__kernel_settings_register_module.reboot_required | d(false)" } TASK [fedora.linux_system_roles.kernel_settings : Set the flag that reboot is needed to apply changes] *** task path: /WORKDIR/git-weekly-ci3mu7lmvk/.collection/ansible_collections/fedora/linux_system_roles/roles/kernel_settings/tasks/main.yml:85 Saturday 20 July 2024 11:37:21 +0000 (0:00:00.015) 0:00:05.251 ********* skipping: [sut] => { "changed": false, "false_condition": "__kernel_settings_register_module.reboot_required | d(false)", "skip_reason": "Conditional result was False" } TASK [Verify that settings were applied correctly] ***************************** task path: /WORKDIR/git-weekly-ci3mu7lmvk/tests/tests_simple_settings.yml:28 Saturday 20 July 2024 11:37:21 +0000 (0:00:00.017) 0:00:05.269 ********* included: /WORKDIR/git-weekly-ci3mu7lmvk/tests/tasks/assert_kernel_settings.yml for sut TASK [Set version specific variables] ****************************************** task path: /WORKDIR/git-weekly-ci3mu7lmvk/tests/tasks/assert_kernel_settings.yml:2 Saturday 20 July 2024 11:37:21 +0000 (0:00:00.012) 0:00:05.281 ********* ok: [sut] => { "ansible_facts": { "__kernel_settings_test_python_cmd": "python", "__kernel_settings_test_python_pkgs": [ "python", "python-configobj" ] }, "ansible_included_var_files": [ "/WORKDIR/git-weekly-ci3mu7lmvk/tests/vars/tests_CentOS_7.yml" ], "changed": false } TASK [Reset settings success flag] ********************************************* task path: /WORKDIR/git-weekly-ci3mu7lmvk/tests/tasks/assert_kernel_settings.yml:13 Saturday 20 July 2024 11:37:21 +0000 (0:00:00.012) 0:00:05.294 ********* ok: [sut] => { "ansible_facts": { "__kernel_settings_success": true }, "changed": false } TASK [Check tuned-adm verify] ************************************************** task path: /WORKDIR/git-weekly-ci3mu7lmvk/tests/tasks/assert_kernel_settings.yml:17 Saturday 20 July 2024 11:37:21 +0000 (0:00:00.008) 0:00:05.302 ********* skipping: [sut] => { "changed": false, "false_condition": "__kernel_settings_test_verify", "skip_reason": "Conditional result was False" } TASK [Check for verify errors] ************************************************* task path: /WORKDIR/git-weekly-ci3mu7lmvk/tests/tasks/assert_kernel_settings.yml:24 Saturday 20 July 2024 11:37:21 +0000 (0:00:00.007) 0:00:05.309 ********* skipping: [sut] => { "changed": false, "false_condition": "__kernel_settings_register_verify is failed", "skip_reason": "Conditional result was False" } TASK [Check /proc/cmdline] ***************************************************** task path: /WORKDIR/git-weekly-ci3mu7lmvk/tests/tasks/assert_kernel_settings.yml:31 Saturday 20 July 2024 11:37:21 +0000 (0:00:00.010) 0:00:05.319 ********* skipping: [sut] => { "changed": false, "false_condition": "__kernel_settings_register_verify is failed", "skip_reason": "Conditional result was False" } TASK [Set error flag based on verify] ****************************************** task path: /WORKDIR/git-weekly-ci3mu7lmvk/tests/tasks/assert_kernel_settings.yml:38 Saturday 20 July 2024 11:37:21 +0000 (0:00:00.010) 0:00:05.330 ********* skipping: [sut] => { "changed": false, "false_condition": "__kernel_settings_register_verify is failed", "skip_reason": "Conditional result was False" } TASK [Check config files] ****************************************************** task path: /WORKDIR/git-weekly-ci3mu7lmvk/tests/tasks/assert_kernel_settings.yml:45 Saturday 20 July 2024 11:37:21 +0000 (0:00:00.010) 0:00:05.340 ********* included: /WORKDIR/git-weekly-ci3mu7lmvk/tests/tasks/assert_kernel_settings_conf_files.yml for sut TASK [Create temporary file for expected config] ******************************* task path: /WORKDIR/git-weekly-ci3mu7lmvk/tests/tasks/assert_kernel_settings_conf_files.yml:2 Saturday 20 July 2024 11:37:21 +0000 (0:00:00.024) 0:00:05.365 ********* changed: [sut] => { "changed": true, "gid": 0, "group": "root", "mode": "0600", "owner": "root", "path": "/tmp/ansible.3i210Q.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: /WORKDIR/git-weekly-ci3mu7lmvk/tests/tasks/assert_kernel_settings_conf_files.yml:8 Saturday 20 July 2024 11:37:21 +0000 (0:00:00.167) 0:00:05.533 ********* changed: [sut] => { "changed": true, "checksum": "169e46a0442e2493edda7ef1d37dfc572d06525c", "dest": "/tmp/ansible.3i210Q.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-1721475441.8134184-452-151218277146688/source", "state": "file", "uid": 0 } TASK [Ensure python command exists for tests below] **************************** task path: /WORKDIR/git-weekly-ci3mu7lmvk/tests/tasks/assert_kernel_settings_conf_files.yml:14 Saturday 20 July 2024 11:37:22 +0000 (0:00:00.373) 0:00:05.906 ********* ok: [sut] => { "changed": false, "rc": 0, "results": [ "python-2.7.5-94.el7_9.x86_64 providing python is already installed", "python-configobj-4.7.2-7.el7.noarch providing python-configobj is already installed" ] } lsrpackages: python python-configobj TASK [Diff expected vs actual content] ***************************************** task path: /WORKDIR/git-weekly-ci3mu7lmvk/tests/tasks/assert_kernel_settings_conf_files.yml:20 Saturday 20 July 2024 11:37:22 +0000 (0:00:00.281) 0:00:06.187 ********* ok: [sut] => { "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.3i210Q.kernel_settings /etc/tuned/kernel_settings/tuned.conf\n", "delta": "0:00:00.016765", "end": "2024-07-20 07:37:22.548879", "rc": 0, "start": "2024-07-20 07:37:22.532114" } TASK [Verify expected content] ************************************************* task path: /WORKDIR/git-weekly-ci3mu7lmvk/tests/tasks/assert_kernel_settings_conf_files.yml:33 Saturday 20 July 2024 11:37:22 +0000 (0:00:00.135) 0:00:06.323 ********* skipping: [sut] => { "changed": false, "false_condition": "__kernel_settings_register_profile_conf_result is failed", "skip_reason": "Conditional result was False" } TASK [Show diff - may not reflect actual ConfigObj differences] **************** task path: /WORKDIR/git-weekly-ci3mu7lmvk/tests/tasks/assert_kernel_settings_conf_files.yml:38 Saturday 20 July 2024 11:37:22 +0000 (0:00:00.015) 0:00:06.338 ********* skipping: [sut] => { "changed": false, "false_condition": "__kernel_settings_register_profile_conf_result is failed", "skip_reason": "Conditional result was False" } TASK [Get active_profile file] ************************************************* task path: /WORKDIR/git-weekly-ci3mu7lmvk/tests/tasks/assert_kernel_settings_conf_files.yml:46 Saturday 20 July 2024 11:37:22 +0000 (0:00:00.012) 0:00:06.351 ********* ok: [sut] => { "changed": false, "content": "dmlydHVhbC1ndWVzdCBrZXJuZWxfc2V0dGluZ3MK", "encoding": "base64", "source": "/etc/tuned/active_profile" } TASK [Check that active_profile ends with kernel_settings] ********************* task path: /WORKDIR/git-weekly-ci3mu7lmvk/tests/tasks/assert_kernel_settings_conf_files.yml:53 Saturday 20 July 2024 11:37:22 +0000 (0:00:00.124) 0:00:06.476 ********* skipping: [sut] => { "changed": false, "false_condition": "__kernel_settings_register_profile_conf_active_profile.content | b64decode is not search('(^| )kernel_settings$')", "skip_reason": "Conditional result was False" } TASK [Get profile_mode file] *************************************************** task path: /WORKDIR/git-weekly-ci3mu7lmvk/tests/tasks/assert_kernel_settings_conf_files.yml:60 Saturday 20 July 2024 11:37:22 +0000 (0:00:00.034) 0:00:06.511 ********* ok: [sut] => { "changed": false, "content": "bWFudWFsCg==", "encoding": "base64", "source": "/etc/tuned/profile_mode" } TASK [Check that profile_mode is manual] *************************************** task path: /WORKDIR/git-weekly-ci3mu7lmvk/tests/tasks/assert_kernel_settings_conf_files.yml:67 Saturday 20 July 2024 11:37:22 +0000 (0:00:00.117) 0:00:06.628 ********* skipping: [sut] => { "changed": false, "false_condition": "__kernel_settings_register_profile_conf_profile_mode.content | b64decode is not match('manual')", "skip_reason": "Conditional result was False" } TASK [Get the bootloader specific config file] ********************************* task path: /WORKDIR/git-weekly-ci3mu7lmvk/tests/tasks/assert_kernel_settings_conf_files.yml:74 Saturday 20 July 2024 11:37:22 +0000 (0:00:00.020) 0:00:06.649 ********* skipping: [sut] => { "changed": false, "false_condition": "__kernel_settings_blcmdline_value | d()", "skip_reason": "Conditional result was False" } TASK [Verify bootloader settings value] **************************************** task path: /WORKDIR/git-weekly-ci3mu7lmvk/tests/tasks/assert_kernel_settings_conf_files.yml:85 Saturday 20 July 2024 11:37:22 +0000 (0:00:00.024) 0:00:06.674 ********* skipping: [sut] => { "changed": false, "false_condition": "__kernel_settings_blcmdline_value | d()", "skip_reason": "Conditional result was False" } TASK [Check if kernel_settings_reboot_required is set if needed] *************** task path: /WORKDIR/git-weekly-ci3mu7lmvk/tests/tasks/assert_kernel_settings.yml:49 Saturday 20 July 2024 11:37:22 +0000 (0:00:00.026) 0:00:06.700 ********* skipping: [sut] => { "changed": false, "false_condition": "__kernel_settings_check_reboot | d(false)", "skip_reason": "Conditional result was False" } TASK [Assert success] ********************************************************** task path: /WORKDIR/git-weekly-ci3mu7lmvk/tests/tasks/assert_kernel_settings.yml:56 Saturday 20 July 2024 11:37:22 +0000 (0:00:00.035) 0:00:06.736 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Check ansible_managed, fingerprint in generated files] ******************* task path: /WORKDIR/git-weekly-ci3mu7lmvk/tests/tests_simple_settings.yml:33 Saturday 20 July 2024 11:37:22 +0000 (0:00:00.019) 0:00:06.755 ********* included: /WORKDIR/git-weekly-ci3mu7lmvk/tests/tasks/check_header.yml for sut TASK [Get file] **************************************************************** task path: /WORKDIR/git-weekly-ci3mu7lmvk/tests/tasks/check_header.yml:3 Saturday 20 July 2024 11:37:23 +0000 (0:00:00.015) 0:00:06.770 ********* ok: [sut] => { "changed": false, "content": "IwojIEFuc2libGUgbWFuYWdlZAojCiMgc3lzdGVtX3JvbGU6a2VybmVsX3NldHRpbmdzClttYWluXQpzdW1tYXJ5ID0ga2VybmVsIHNldHRpbmdzCltzeXNjdGxdCmZzLmVwb2xsLm1heF91c2VyX3dhdGNoZXMgPSA3ODU1OTIKZnMuZmlsZS1tYXggPSAzNzk3MjQKW3ZtXQp0cmFuc3BhcmVudF9odWdlcGFnZXMgPSBtYWR2aXNlCltzeXNmc10KL3N5cy9rZXJuZWwvZGVidWcveDg2L3B0aV9lbmFibGVkID0gMAovc3lzL2tlcm5lbC9kZWJ1Zy94ODYvcmV0cF9lbmFibGVkID0gMAovc3lzL2tlcm5lbC9kZWJ1Zy94ODYvaWJyc19lbmFibGVkID0gMAo=", "encoding": "base64", "source": "/etc/tuned/kernel_settings/tuned.conf" } TASK [Check for presence of ansible managed header, fingerprint] *************** task path: /WORKDIR/git-weekly-ci3mu7lmvk/tests/tasks/check_header.yml:9 Saturday 20 July 2024 11:37:23 +0000 (0:00:00.121) 0:00:06.892 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Reboot the machine - see if settings persist after reboot] *************** task path: /WORKDIR/git-weekly-ci3mu7lmvk/tests/tests_simple_settings.yml:41 Saturday 20 July 2024 11:37:23 +0000 (0:00:00.027) 0:00:06.920 ********* skipping: [sut] => { "changed": false, "false_condition": "kernel_settings_reboot_required | d(false)", "skip_reason": "Conditional result was False" } TASK [Verify that settings were applied correctly after reboot] **************** task path: /WORKDIR/git-weekly-ci3mu7lmvk/tests/tests_simple_settings.yml:48 Saturday 20 July 2024 11:37:23 +0000 (0:00:00.021) 0:00:06.941 ********* skipping: [sut] => { "changed": false, "false_condition": "kernel_settings_reboot_required | d(false)", "skip_reason": "Conditional result was False" } TASK [Show contents of tuned.conf] ********************************************* task path: /WORKDIR/git-weekly-ci3mu7lmvk/tests/tests_simple_settings.yml:57 Saturday 20 July 2024 11:37:23 +0000 (0:00:00.038) 0:00:06.980 ********* ok: [sut] => { "changed": false, "cmd": [ "cat", "/etc/tuned/kernel_settings/tuned.conf" ], "delta": "0:00:00.002661", "end": "2024-07-20 07:37:23.339073", "rc": 0, "start": "2024-07-20 07:37:23.336412" } STDOUT: # # Ansible managed # # system_role:kernel_settings [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 NOTIFIED HANDLER fedora.linux_system_roles.kernel_settings : Reboot the managed host to apply kernel_settings changes for sut NOTIFIED HANDLER fedora.linux_system_roles.kernel_settings : Clear the kernel_settings_reboot_required flag for sut RUNNING HANDLER [fedora.linux_system_roles.kernel_settings : Reboot the managed host to apply kernel_settings changes] *** task path: /WORKDIR/git-weekly-ci3mu7lmvk/.collection/ansible_collections/fedora/linux_system_roles/roles/kernel_settings/handlers/main.yml:2 Saturday 20 July 2024 11:37:23 +0000 (0:00:00.134) 0:00:07.114 ********* skipping: [sut] => { "changed": false, "false_condition": "kernel_settings_reboot_required | d(false)", "skip_reason": "Conditional result was False" } RUNNING HANDLER [fedora.linux_system_roles.kernel_settings : Clear the kernel_settings_reboot_required flag] *** task path: /WORKDIR/git-weekly-ci3mu7lmvk/.collection/ansible_collections/fedora/linux_system_roles/roles/kernel_settings/handlers/main.yml:12 Saturday 20 July 2024 11:37:23 +0000 (0:00:00.017) 0:00:07.131 ********* skipping: [sut] => { "changed": false, "false_condition": "kernel_settings_reboot_required | d(false)", "skip_reason": "Conditional result was False" } PLAY RECAP ********************************************************************* sut : ok=30 changed=6 unreachable=0 failed=0 skipped=21 rescued=0 ignored=0 Saturday 20 July 2024 11:37:23 +0000 (0:00:00.020) 0:00:07.151 ********* =============================================================================== fedora.linux_system_roles.kernel_settings : Tuned apply settings -------- 1.69s /WORKDIR/git-weekly-ci3mu7lmvk/.collection/ansible_collections/fedora/linux_system_roles/roles/kernel_settings/tasks/main.yml:66 Gathering Facts --------------------------------------------------------- 0.71s /WORKDIR/git-weekly-ci3mu7lmvk/tests/tests_simple_settings.yml:2 -------------- fedora.linux_system_roles.kernel_settings : Ensure required packages are installed --- 0.57s /WORKDIR/git-weekly-ci3mu7lmvk/.collection/ansible_collections/fedora/linux_system_roles/roles/kernel_settings/tasks/main.yml:5 fedora.linux_system_roles.kernel_settings : Generate a configuration for kernel settings --- 0.45s /WORKDIR/git-weekly-ci3mu7lmvk/.collection/ansible_collections/fedora/linux_system_roles/roles/kernel_settings/tasks/main.yml:24 fedora.linux_system_roles.kernel_settings : Ensure required services are enabled and started --- 0.42s /WORKDIR/git-weekly-ci3mu7lmvk/.collection/ansible_collections/fedora/linux_system_roles/roles/kernel_settings/tasks/main.yml:11 fedora.linux_system_roles.kernel_settings : Apply kernel settings ------- 0.40s /WORKDIR/git-weekly-ci3mu7lmvk/.collection/ansible_collections/fedora/linux_system_roles/roles/kernel_settings/tasks/main.yml:37 Put expected contents into temporary file ------------------------------- 0.37s /WORKDIR/git-weekly-ci3mu7lmvk/tests/tasks/assert_kernel_settings_conf_files.yml:8 Ensure python command exists for tests below ---------------------------- 0.28s /WORKDIR/git-weekly-ci3mu7lmvk/tests/tasks/assert_kernel_settings_conf_files.yml:14 fedora.linux_system_roles.kernel_settings : Ensure kernel settings profile directory exists --- 0.27s /WORKDIR/git-weekly-ci3mu7lmvk/.collection/ansible_collections/fedora/linux_system_roles/roles/kernel_settings/tasks/main.yml:18 fedora.linux_system_roles.kernel_settings : Check that settings are applied correctly --- 0.20s /WORKDIR/git-weekly-ci3mu7lmvk/.collection/ansible_collections/fedora/linux_system_roles/roles/kernel_settings/tasks/verify_settings.yml:2 fedora.linux_system_roles.kernel_settings : Get current config ---------- 0.19s /WORKDIR/git-weekly-ci3mu7lmvk/.collection/ansible_collections/fedora/linux_system_roles/roles/kernel_settings/tasks/main.yml:31 fedora.linux_system_roles.kernel_settings : Check if system is ostree --- 0.18s /WORKDIR/git-weekly-ci3mu7lmvk/.collection/ansible_collections/fedora/linux_system_roles/roles/kernel_settings/tasks/set_vars.yml:10 Create temporary file for expected config ------------------------------- 0.17s /WORKDIR/git-weekly-ci3mu7lmvk/tests/tasks/assert_kernel_settings_conf_files.yml:2 Diff expected vs actual content ----------------------------------------- 0.14s /WORKDIR/git-weekly-ci3mu7lmvk/tests/tasks/assert_kernel_settings_conf_files.yml:20 Show contents of tuned.conf --------------------------------------------- 0.13s /WORKDIR/git-weekly-ci3mu7lmvk/tests/tests_simple_settings.yml:57 ------------- Get active_profile file ------------------------------------------------- 0.12s /WORKDIR/git-weekly-ci3mu7lmvk/tests/tasks/assert_kernel_settings_conf_files.yml:46 Get file ---------------------------------------------------------------- 0.12s /WORKDIR/git-weekly-ci3mu7lmvk/tests/tasks/check_header.yml:3 ----------------- Get profile_mode file --------------------------------------------------- 0.12s /WORKDIR/git-weekly-ci3mu7lmvk/tests/tasks/assert_kernel_settings_conf_files.yml:60 Verify that settings were applied correctly after reboot ---------------- 0.04s /WORKDIR/git-weekly-ci3mu7lmvk/tests/tests_simple_settings.yml:48 ------------- Check if kernel_settings_reboot_required is set if needed --------------- 0.04s /WORKDIR/git-weekly-ci3mu7lmvk/tests/tasks/assert_kernel_settings.yml:49 ------ ---^---^---^---^---^--- # STDERR: ---v---v---v---v---v--- [DEPRECATION WARNING]: ANSIBLE_COLLECTIONS_PATHS option, does not fit var naming standard, use the singular form ANSIBLE_COLLECTIONS_PATH instead. This feature will be removed from ansible-core in version 2.19. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. ---^---^---^---^---^---