+ cd /tmp/tmpjeoh0wr7/tests; TEST_SUBJECTS=/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_kernel_settings-6-fa71b5e-fedora-30-23eonxs1/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmpjeoh0wr7/_setup.yml /tmp/tmpjeoh0wr7/tests/tests_default.yml ansible-playbook 2.9.9 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.8/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 3.8.2 (default, Feb 28 2020, 00:00:00) [GCC 10.0.1 20200216 (Red Hat 10.0.1-0.8)] Using /etc/ansible/ansible.cfg as config file PLAYBOOK: _setup.yml *********************************************************** 1 plays in /tmp/tmpjeoh0wr7/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmpjeoh0wr7/_setup.yml:5 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "groups": { "all": [ "/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2" ], "localhost": [ "/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2" ], "subjects": [ "/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmpjeoh0wr7/_setup.yml:7 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 : ok=1 changed=0 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 PLAYBOOK: tests_default.yml **************************************************** 1 plays in /tmp/tmpjeoh0wr7/tests/tests_default.yml PLAY [Ensure that the role runs with default parameters] *********************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpjeoh0wr7/tests/tests_default.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] META: ran handlers TASK [linux-system-roles.kernel_settings : Set version specific variables] ***** task path: /tmp/tmpjeoh0wr7/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/tmp/tmpjeoh0wr7/vars/default.yml) => {"ansible_facts": {"__kernel_settings_packages": ["tuned"], "__kernel_settings_services": ["tuned"]}, "ansible_included_var_files": ["/tmp/tmpjeoh0wr7/vars/default.yml"], "ansible_loop_var": "item", "changed": false, "item": "/tmp/tmpjeoh0wr7/vars/default.yml"} TASK [linux-system-roles.kernel_settings : Ensure required packages are installed] *** task path: /tmp/tmpjeoh0wr7/tasks/main.yml:11 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: python3-gobject-base-3.32.2-1.fc30.x86_64", "Installed: python3-perf-5.6.7-100.fc30.x86_64", "Installed: numactl-libs-2.0.12-2.fc30.x86_64", "Installed: gobject-introspection-1.60.2-1.fc30.x86_64", "Installed: python3-libxml2-2.9.9-2.fc30.x86_64", "Installed: python3-linux-procfs-0.6.1-2.fc30.noarch", "Installed: python3-pyudev-0.21.0-10.fc30.noarch", "Installed: python3-decorator-4.3.0-2.fc30.noarch", "Installed: python3-schedutils-0.6-7.fc30.x86_64", "Installed: kernel-tools-5.6.7-100.fc30.x86_64", "Installed: kernel-tools-libs-5.6.7-100.fc30.x86_64", "Installed: dmidecode-1:3.2-2.fc30.x86_64", "Installed: ethtool-2:5.4-1.fc30.x86_64", "Installed: tuned-2.13.0-1.fc30.noarch", "Installed: pciutils-libs-3.6.2-2.fc30.x86_64", "Installed: hdparm-9.58-1.fc30.x86_64", "Installed: python3-dmidecode-3.12.2-14.fc30.x86_64", "Installed: virt-what-1.19-2.fc30.x86_64"]} TASK [linux-system-roles.kernel_settings : Ensure required services are enabled and started] *** task path: /tmp/tmpjeoh0wr7/tasks/main.yml:16 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=tuned) => {"ansible_loop_var": "item", "changed": true, "enabled": true, "item": "tuned", "name": "tuned", "state": "started", "status": {"ActiveEnterTimestampMonotonic": "0", "ActiveExitTimestampMonotonic": "0", "ActiveState": "inactive", "After": "systemd-journald.socket basic.target sysinit.target network.target dbus.socket system.slice dbus-broker.service systemd-sysctl.service", "AllowIsolate": "no", "AmbientCapabilities": "", "AssertResult": "no", "AssertTimestampMonotonic": "0", "Before": "shutdown.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "BusName": "com.redhat.tuned", "CPUAccounting": "no", "CPUQuotaPerSecUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "[not set]", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanIsolate": "no", "CanReload": "no", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend", "CollectMode": "inactive", "ConditionResult": "no", "ConditionTimestampMonotonic": "0", "ConfigurationDirectoryMode": "0755", "Conflicts": "cpupower.service shutdown.target", "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)", "DynamicUser": "no", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "0", "ExecMainStartTimestampMonotonic": "0", "ExecMainStatus": "0", "ExecStart": "{ path=/usr/sbin/tuned ; argv[]=/usr/sbin/tuned -l -P ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "FailureAction": "none", "FailureActionExitStatus": "-1", "FileDescriptorStoreMax": "0", "FinalKillSignal": "9", "FragmentPath": "/usr/lib/systemd/system/tuned.service", "GID": "[not set]", "GuessMainPID": "yes", "IOAccounting": "no", "IOSchedulingClass": "0", "IOSchedulingPriority": "0", "IOWeight": "[not set]", "IPAccounting": "no", "IPEgressBytes": "18446744073709551615", "IPEgressPackets": "18446744073709551615", "IPIngressBytes": "18446744073709551615", "IPIngressPackets": "18446744073709551615", "Id": "tuned.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestampMonotonic": "0", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "control-group", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "infinity", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "65536", "LimitMEMLOCKSoft": "65536", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "524288", "LimitNOFILESoft": "1024", "LimitNPROC": "7812", "LimitNPROCSoft": "7812", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "7812", "LimitSIGPENDINGSoft": "7812", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "0", "MemoryAccounting": "yes", "MemoryCurrent": "[not set]", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "MountFlags": "", "NFileDescriptorStore": "0", "NRestarts": "0", "Names": "tuned.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PIDFile": "/run/tuned/tuned.pid", "Perpetual": "no", "PrivateDevices": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "dbus-broker.service polkit.service system.slice sysinit.target dbus.socket", "Restart": "no", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardInputData": "", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestampMonotonic": "0", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "dead", "SuccessAction": "none", "SuccessActionExitStatus": "-1", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "[not set]", "TasksMax": "2343", "TimeoutStartUSec": "1min 30s", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "dbus", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "disabled", "UnitFileState": "disabled", "UtmpMode": "init", "WatchdogSignal": "6", "WatchdogTimestampMonotonic": "0", "WatchdogUSec": "0"}} TASK [linux-system-roles.kernel_settings : Ensure kernel settings profile directory exists] *** task path: /tmp/tmpjeoh0wr7/tasks/main.yml:23 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"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 [linux-system-roles.kernel_settings : Generate a configuration for kernel settings] *** task path: /tmp/tmpjeoh0wr7/tasks/main.yml:29 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "checksum": "9a9df2db7bdc6a0cff743b0dc0d73b8ed2a08469", "dest": "/etc/tuned/kernel_settings/tuned.conf", "gid": 0, "group": "root", "md5sum": "f698e2bb28790d60e03faf112d96a797", "mode": "0644", "owner": "root", "secontext": "system_u:object_r:tuned_etc_t:s0", "size": 49, "src": "/root/.ansible/tmp/ansible-tmp-1590611262.194791-114031-243200995678156/source", "state": "file", "uid": 0} TASK [linux-system-roles.kernel_settings : Apply kernel settings] ************** task path: /tmp/tmpjeoh0wr7/tasks/main.yml:35 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 : ok=7 changed=4 unreachable=0 failed=0 skipped=2 rescued=0 ignored=0 + cd /tmp/tmpjeoh0wr7/tests; TEST_SUBJECTS=/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_kernel_settings-6-fa71b5e-fedora-30-23eonxs1/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmpjeoh0wr7/_setup.yml /tmp/tmpjeoh0wr7/tests/tests_simple_settings.yml ansible-playbook 2.9.9 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.8/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 3.8.2 (default, Feb 28 2020, 00:00:00) [GCC 10.0.1 20200216 (Red Hat 10.0.1-0.8)] Using /etc/ansible/ansible.cfg as config file PLAYBOOK: _setup.yml *********************************************************** 1 plays in /tmp/tmpjeoh0wr7/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmpjeoh0wr7/_setup.yml:5 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "groups": { "all": [ "/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2" ], "localhost": [ "/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2" ], "subjects": [ "/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmpjeoh0wr7/_setup.yml:7 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 : ok=1 changed=0 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 PLAYBOOK: tests_simple_settings.yml ******************************************** 3 plays in /tmp/tmpjeoh0wr7/tests/tests_simple_settings.yml PLAY [set parameters for test] ************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpjeoh0wr7/tests/tests_simple_settings.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] META: ran handlers TASK [set vars used by this test] ********************************************** task path: /tmp/tmpjeoh0wr7/tests/tests_simple_settings.yml:5 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"__kernel_settings_blcmdline_value": "spectre_v2=off nopti", "__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[bootloader]\ncmdline = {{ __kernel_settings_blcmdline_value }}\n", "kernel_settings_bootloader_cmdline": [{"name": "spectre_v2", "value": "off"}, {"name": "nopti"}, {"name": "notfound", "state": "absent"}], "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/tmpjeoh0wr7/tests/vars/vars_simple_settings.yml"], "changed": false} META: ran handlers META: ran handlers PLAY [apply the settings] ****************************************************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpjeoh0wr7/tests/tests_simple_settings.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] META: ran handlers TASK [linux-system-roles.kernel_settings : Set version specific variables] ***** task path: /tmp/tmpjeoh0wr7/tasks/main.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/tmp/tmpjeoh0wr7/vars/default.yml) => {"ansible_facts": {"__kernel_settings_packages": ["tuned"], "__kernel_settings_services": ["tuned"]}, "ansible_included_var_files": ["/tmp/tmpjeoh0wr7/vars/default.yml"], "ansible_loop_var": "item", "changed": false, "item": "/tmp/tmpjeoh0wr7/vars/default.yml"} TASK [linux-system-roles.kernel_settings : Ensure required packages are installed] *** task path: /tmp/tmpjeoh0wr7/tasks/main.yml:11 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: python3-gobject-base-3.32.2-1.fc30.x86_64", "Installed: python3-perf-5.6.7-100.fc30.x86_64", "Installed: numactl-libs-2.0.12-2.fc30.x86_64", "Installed: gobject-introspection-1.60.2-1.fc30.x86_64", "Installed: python3-libxml2-2.9.9-2.fc30.x86_64", "Installed: python3-linux-procfs-0.6.1-2.fc30.noarch", "Installed: python3-pyudev-0.21.0-10.fc30.noarch", "Installed: python3-decorator-4.3.0-2.fc30.noarch", "Installed: python3-schedutils-0.6-7.fc30.x86_64", "Installed: kernel-tools-5.6.7-100.fc30.x86_64", "Installed: kernel-tools-libs-5.6.7-100.fc30.x86_64", "Installed: dmidecode-1:3.2-2.fc30.x86_64", "Installed: ethtool-2:5.4-1.fc30.x86_64", "Installed: tuned-2.13.0-1.fc30.noarch", "Installed: pciutils-libs-3.6.2-2.fc30.x86_64", "Installed: hdparm-9.58-1.fc30.x86_64", "Installed: python3-dmidecode-3.12.2-14.fc30.x86_64", "Installed: virt-what-1.19-2.fc30.x86_64"]} TASK [linux-system-roles.kernel_settings : Ensure required services are enabled and started] *** task path: /tmp/tmpjeoh0wr7/tasks/main.yml:16 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=tuned) => {"ansible_loop_var": "item", "changed": true, "enabled": true, "item": "tuned", "name": "tuned", "state": "started", "status": {"ActiveEnterTimestampMonotonic": "0", "ActiveExitTimestampMonotonic": "0", "ActiveState": "inactive", "After": "systemd-sysctl.service sysinit.target systemd-journald.socket basic.target system.slice dbus.socket network.target dbus-broker.service", "AllowIsolate": "no", "AmbientCapabilities": "", "AssertResult": "no", "AssertTimestampMonotonic": "0", "Before": "shutdown.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "BusName": "com.redhat.tuned", "CPUAccounting": "no", "CPUQuotaPerSecUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "[not set]", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanIsolate": "no", "CanReload": "no", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend", "CollectMode": "inactive", "ConditionResult": "no", "ConditionTimestampMonotonic": "0", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target cpupower.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)", "DynamicUser": "no", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "0", "ExecMainStartTimestampMonotonic": "0", "ExecMainStatus": "0", "ExecStart": "{ path=/usr/sbin/tuned ; argv[]=/usr/sbin/tuned -l -P ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "FailureAction": "none", "FailureActionExitStatus": "-1", "FileDescriptorStoreMax": "0", "FinalKillSignal": "9", "FragmentPath": "/usr/lib/systemd/system/tuned.service", "GID": "[not set]", "GuessMainPID": "yes", "IOAccounting": "no", "IOSchedulingClass": "0", "IOSchedulingPriority": "0", "IOWeight": "[not set]", "IPAccounting": "no", "IPEgressBytes": "18446744073709551615", "IPEgressPackets": "18446744073709551615", "IPIngressBytes": "18446744073709551615", "IPIngressPackets": "18446744073709551615", "Id": "tuned.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestampMonotonic": "0", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "control-group", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "infinity", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "65536", "LimitMEMLOCKSoft": "65536", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "524288", "LimitNOFILESoft": "1024", "LimitNPROC": "7812", "LimitNPROCSoft": "7812", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "7812", "LimitSIGPENDINGSoft": "7812", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "0", "MemoryAccounting": "yes", "MemoryCurrent": "[not set]", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "MountFlags": "", "NFileDescriptorStore": "0", "NRestarts": "0", "Names": "tuned.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PIDFile": "/run/tuned/tuned.pid", "Perpetual": "no", "PrivateDevices": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "polkit.service sysinit.target system.slice dbus-broker.service dbus.socket", "Restart": "no", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardInputData": "", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestampMonotonic": "0", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "dead", "SuccessAction": "none", "SuccessActionExitStatus": "-1", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "[not set]", "TasksMax": "2343", "TimeoutStartUSec": "1min 30s", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "dbus", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "disabled", "UnitFileState": "disabled", "UtmpMode": "init", "WatchdogSignal": "6", "WatchdogTimestampMonotonic": "0", "WatchdogUSec": "0"}} TASK [linux-system-roles.kernel_settings : Ensure kernel settings profile directory exists] *** task path: /tmp/tmpjeoh0wr7/tasks/main.yml:23 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"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 [linux-system-roles.kernel_settings : Generate a configuration for kernel settings] *** task path: /tmp/tmpjeoh0wr7/tasks/main.yml:29 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "checksum": "9a9df2db7bdc6a0cff743b0dc0d73b8ed2a08469", "dest": "/etc/tuned/kernel_settings/tuned.conf", "gid": 0, "group": "root", "md5sum": "f698e2bb28790d60e03faf112d96a797", "mode": "0644", "owner": "root", "secontext": "system_u:object_r:tuned_etc_t:s0", "size": 49, "src": "/root/.ansible/tmp/ansible-tmp-1590611340.421974-114280-136079640083254/source", "state": "file", "uid": 0} TASK [linux-system-roles.kernel_settings : Apply kernel settings] ************** task path: /tmp/tmpjeoh0wr7/tasks/main.yml:35 NOTIFIED HANDLER linux-system-roles.kernel_settings : restart kernel_settings services for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 NOTIFIED HANDLER linux-system-roles.kernel_settings : verify settings for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "message": "Kernel settings were updated", "new_profile": {"bootloader": {"cmdline": "spectre_v2=off nopti"}, "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"}}, "original_message": null} RUNNING HANDLER [linux-system-roles.kernel_settings : restart kernel_settings services] *** task path: /tmp/tmpjeoh0wr7/handlers/main.yml:2 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=tuned) => {"ansible_loop_var": "item", "changed": true, "item": "tuned", "name": "tuned", "state": "started", "status": {"ActiveEnterTimestamp": "Wed 2020-05-27 20:28:59 UTC", "ActiveEnterTimestampMonotonic": "72607275", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "systemd-journald.socket sysinit.target network.target system.slice basic.target dbus-broker.service dbus.socket systemd-sysctl.service", "AllowIsolate": "no", "AmbientCapabilities": "", "AssertResult": "yes", "AssertTimestamp": "Wed 2020-05-27 20:28:59 UTC", "AssertTimestampMonotonic": "72305183", "Before": "shutdown.target multi-user.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "BusName": "com.redhat.tuned", "CPUAccounting": "no", "CPUQuotaPerSecUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "[not set]", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanIsolate": "no", "CanReload": "no", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Wed 2020-05-27 20:28:59 UTC", "ConditionTimestampMonotonic": "72305182", "ConfigurationDirectoryMode": "0755", "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)", "DynamicUser": "no", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "4385", "ExecMainStartTimestamp": "Wed 2020-05-27 20:28:59 UTC", "ExecMainStartTimestampMonotonic": "72306253", "ExecMainStatus": "0", "ExecStart": "{ path=/usr/sbin/tuned ; argv[]=/usr/sbin/tuned -l -P ; ignore_errors=no ; start_time=[Wed 2020-05-27 20:28:59 UTC] ; stop_time=[n/a] ; pid=4385 ; code=(null) ; status=0/0 }", "FailureAction": "none", "FailureActionExitStatus": "-1", "FileDescriptorStoreMax": "0", "FinalKillSignal": "9", "FragmentPath": "/usr/lib/systemd/system/tuned.service", "GID": "[not set]", "GuessMainPID": "yes", "IOAccounting": "no", "IOSchedulingClass": "0", "IOSchedulingPriority": "0", "IOWeight": "[not set]", "IPAccounting": "no", "IPEgressBytes": "18446744073709551615", "IPEgressPackets": "18446744073709551615", "IPIngressBytes": "18446744073709551615", "IPIngressPackets": "18446744073709551615", "Id": "tuned.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestamp": "Wed 2020-05-27 20:28:59 UTC", "InactiveExitTimestampMonotonic": "72306629", "InvocationID": "b295c222bf494f64bf48dc827e7a235b", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "control-group", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "infinity", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "65536", "LimitMEMLOCKSoft": "65536", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "524288", "LimitNOFILESoft": "1024", "LimitNPROC": "7812", "LimitNPROCSoft": "7812", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "7812", "LimitSIGPENDINGSoft": "7812", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "4385", "MemoryAccounting": "yes", "MemoryCurrent": "23498752", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "MountFlags": "", "NFileDescriptorStore": "0", "NRestarts": "0", "Names": "tuned.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PIDFile": "/run/tuned/tuned.pid", "Perpetual": "no", "PrivateDevices": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "sysinit.target polkit.service dbus-broker.service dbus.socket system.slice", "Restart": "no", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardInputData": "", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestamp": "Wed 2020-05-27 20:28:59 UTC", "StateChangeTimestampMonotonic": "72607275", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "running", "SuccessAction": "none", "SuccessActionExitStatus": "-1", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "4", "TasksMax": "2343", "TimeoutStartUSec": "1min 30s", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "dbus", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "disabled", "UnitFileState": "enabled", "UtmpMode": "init", "WantedBy": "multi-user.target", "WatchdogSignal": "6", "WatchdogTimestampMonotonic": "0", "WatchdogUSec": "0"}} RUNNING HANDLER [linux-system-roles.kernel_settings : verify settings] ********* task path: /tmp/tmpjeoh0wr7/handlers/main.yml:9 included: /tmp/tmpjeoh0wr7/handlers/verify_settings.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 RUNNING HANDLER [linux-system-roles.kernel_settings : check that settings are applied correctly] *** task path: /tmp/tmpjeoh0wr7/handlers/verify_settings.yml:2 fatal: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2]: FAILED! => {"changed": false, "cmd": ["tuned-adm", "verify", "-i"], "delta": "0:00:00.137109", "end": "2020-05-27 20:29:02.966132", "msg": "non-zero return code", "rc": 1, "start": "2020-05-27 20:29:02.829023", "stderr": "", "stderr_lines": [], "stdout": "Verification failed, current system settings differ from the preset profile.\nYou can mostly fix this by restarting the Tuned daemon, e.g.:\n systemctl restart tuned\nor\n service tuned restart\nSometimes (if some plugins like bootloader are used) a reboot may be required.\nSee tuned log file ('/var/log/tuned/tuned.log') for details.", "stdout_lines": ["Verification failed, current system settings differ from the preset profile.", "You can mostly fix this by restarting the Tuned daemon, e.g.:", " systemctl restart tuned", "or", " service tuned restart", "Sometimes (if some plugins like bootloader are used) a reboot may be required.", "See tuned log file ('/var/log/tuned/tuned.log') for details."]} ...ignoring RUNNING HANDLER [linux-system-roles.kernel_settings : get last verify results from log] *** task path: /tmp/tmpjeoh0wr7/handlers/verify_settings.yml:12 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": "set -euo pipefail\nsed '/INFO tuned.daemon.daemon: verifying profile/h;//!H;$!d;x' /var/log/tuned/tuned.log | grep -v 'ERROR tuned.plugins.plugin_bootloader: verify: failed' | grep 'ERROR tuned.plugins' || :\n", "delta": "0:00:00.005541", "end": "2020-05-27 20:29:03.312953", "rc": 0, "start": "2020-05-27 20:29:03.307412", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} RUNNING HANDLER [linux-system-roles.kernel_settings : report errors that are not bootloader errors] *** task path: /tmp/tmpjeoh0wr7/handlers/verify_settings.yml:24 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY [verify settings] ********************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpjeoh0wr7/tests/tests_simple_settings.yml:14 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] META: ran handlers TASK [include vars from role to use for verification] ************************** task path: /tmp/tmpjeoh0wr7/tests/tests_simple_settings.yml:17 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"__kernel_settings_profile_dir": "/etc/tuned/kernel_settings", "__kernel_settings_profile_filename": "{{ __kernel_settings_profile_dir }}/tuned.conf", "__kernel_settings_profile_src": "kernel_settings", "__kernel_settings_tuned_profile": "kernel_settings"}, "ansible_included_var_files": ["/tmp/tmpjeoh0wr7/tests/roles/linux-system-roles.kernel_settings/vars/main.yml"], "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmpjeoh0wr7/tests/tests_simple_settings.yml:21 included: /tmp/tmpjeoh0wr7/tests/tasks/assert_kernel_settings.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [Set version specific variables for test] ********************************* task path: /tmp/tmpjeoh0wr7/tests/tasks/assert_kernel_settings.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/tmp/tmpjeoh0wr7/tests/vars/tests_default.yml) => {"ansible_facts": {"__kernel_settings_test_python_cmd": "python", "__kernel_settings_test_python_pkgs": ["python", "python-configobj"]}, "ansible_included_var_files": ["/tmp/tmpjeoh0wr7/tests/vars/tests_default.yml"], "ansible_loop_var": "item", "changed": false, "item": "/tmp/tmpjeoh0wr7/tests/vars/tests_default.yml"} TASK [reset settings success flag] ********************************************* task path: /tmp/tmpjeoh0wr7/tests/tasks/assert_kernel_settings.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"__kernel_settings_success": true}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmpjeoh0wr7/tests/tasks/assert_kernel_settings.yml:13 included: /tmp/tmpjeoh0wr7/tests/tasks/assert_kernel_settings_conf_files.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [create temporary file for expected config] ******************************* task path: /tmp/tmpjeoh0wr7/tests/tasks/assert_kernel_settings_conf_files.yml:2 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "gid": 0, "group": "root", "mode": "0600", "owner": "root", "path": "/tmp/ansible.kcdk8z1e.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/tmpjeoh0wr7/tests/tasks/assert_kernel_settings_conf_files.yml:8 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "checksum": "2eca042463a3f98a3e41348cb9a5e1730238d6b3", "dest": "/tmp/ansible.kcdk8z1e.kernel_settings", "gid": 0, "group": "root", "md5sum": "be4322f16ee53350f1425457570b84e2", "mode": "0600", "owner": "root", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 343, "src": "/root/.ansible/tmp/ansible-tmp-1590611345.110431-114419-75544293450791/source", "state": "file", "uid": 0} TASK [ensure python command exists for tests below] **************************** task path: /tmp/tmpjeoh0wr7/tests/tasks/assert_kernel_settings_conf_files.yml:13 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: python2-2.7.18-1.fc30.x86_64", "Installed: libxcrypt-compat-4.4.4-2.fc30.x86_64", "Installed: python2-setuptools-40.8.0-2.fc30.noarch", "Installed: python2-libs-2.7.18-1.fc30.x86_64", "Installed: python2-configobj-5.0.6-15.fc30.noarch", "Installed: python2-six-1.12.0-1.fc30.noarch", "Installed: python2-pip-19.0.3-7.fc30.noarch", "Installed: python-unversioned-command-2.7.18-1.fc30.noarch", "Installed: gdbm-1:1.18-4.fc30.x86_64"]} TASK [diff expected vs actual content] ***************************************** task path: /tmp/tmpjeoh0wr7/tests/tasks/assert_kernel_settings_conf_files.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "cmd": "python -c 'import sys\nfrom configobj import ConfigObj\nc1 = ConfigObj(sys.argv[1])\nc2 = ConfigObj(sys.argv[2])\nsys.exit(not c1 == c2)' /tmp/ansible.kcdk8z1e.kernel_settings /etc/tuned/kernel_settings/tuned.conf\n", "delta": "0:00:00.018442", "end": "2020-05-27 20:29:13.712254", "rc": 0, "start": "2020-05-27 20:29:13.693812", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [verify expected content] ************************************************* task path: /tmp/tmpjeoh0wr7/tests/tasks/assert_kernel_settings_conf_files.yml:31 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [show diff - may not reflect actual ConfigObj differences] **************** task path: /tmp/tmpjeoh0wr7/tests/tasks/assert_kernel_settings_conf_files.yml:36 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [get active_profile file] ************************************************* task path: /tmp/tmpjeoh0wr7/tests/tasks/assert_kernel_settings_conf_files.yml:43 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "content": "dmlydHVhbC1ndWVzdCBrZXJuZWxfc2V0dGluZ3MK", "encoding": "base64", "source": "/etc/tuned/active_profile"} TASK [check that active_profile ends with kernel_settings] ********************* task path: /tmp/tmpjeoh0wr7/tests/tasks/assert_kernel_settings_conf_files.yml:50 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [get profile_mode file] *************************************************** task path: /tmp/tmpjeoh0wr7/tests/tasks/assert_kernel_settings_conf_files.yml:57 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "content": "bWFudWFsCg==", "encoding": "base64", "source": "/etc/tuned/profile_mode"} TASK [check that profile_mode is manual] *************************************** task path: /tmp/tmpjeoh0wr7/tests/tasks/assert_kernel_settings_conf_files.yml:64 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [get the bootloader specific config file] ********************************* task path: /tmp/tmpjeoh0wr7/tests/tasks/assert_kernel_settings_conf_files.yml:72 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["sed", "-n", "/^TUNED_BOOT_CMDLINE=/{s/^TUNED_BOOT_CMDLINE=\"\\(.*\\)\"$/\\1/;p}", "/etc/tuned/bootcmdline"], "delta": "0:00:00.004016", "end": "2020-05-27 20:29:14.975761", "rc": 0, "start": "2020-05-27 20:29:14.971745", "stderr": "", "stderr_lines": [], "stdout": "spectre_v2=off nopti", "stdout_lines": ["spectre_v2=off nopti"]} TASK [verify bootloader settings value] **************************************** task path: /tmp/tmpjeoh0wr7/tests/tasks/assert_kernel_settings_conf_files.yml:83 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [assert success] ********************************************************** task path: /tmp/tmpjeoh0wr7/tests/tasks/assert_kernel_settings.yml:16 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [reboot the machine - see if settings persist after reboot] *************** task path: /tmp/tmpjeoh0wr7/tests/tests_simple_settings.yml:25 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "elapsed": 15, "rebooted": true} TASK [include_tasks] *********************************************************** task path: /tmp/tmpjeoh0wr7/tests/tests_simple_settings.yml:29 included: /tmp/tmpjeoh0wr7/tests/tasks/assert_kernel_settings.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [Set version specific variables for test] ********************************* task path: /tmp/tmpjeoh0wr7/tests/tasks/assert_kernel_settings.yml:2 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => (item=/tmp/tmpjeoh0wr7/tests/vars/tests_default.yml) => {"ansible_facts": {"__kernel_settings_test_python_cmd": "python", "__kernel_settings_test_python_pkgs": ["python", "python-configobj"]}, "ansible_included_var_files": ["/tmp/tmpjeoh0wr7/tests/vars/tests_default.yml"], "ansible_loop_var": "item", "changed": false, "item": "/tmp/tmpjeoh0wr7/tests/vars/tests_default.yml"} TASK [reset settings success flag] ********************************************* task path: /tmp/tmpjeoh0wr7/tests/tasks/assert_kernel_settings.yml:9 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"ansible_facts": {"__kernel_settings_success": true}, "changed": false} TASK [include_tasks] *********************************************************** task path: /tmp/tmpjeoh0wr7/tests/tasks/assert_kernel_settings.yml:13 included: /tmp/tmpjeoh0wr7/tests/tasks/assert_kernel_settings_conf_files.yml for /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 TASK [create temporary file for expected config] ******************************* task path: /tmp/tmpjeoh0wr7/tests/tasks/assert_kernel_settings_conf_files.yml:2 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "gid": 0, "group": "root", "mode": "0600", "owner": "root", "path": "/tmp/ansible._jlu1f1p.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/tmpjeoh0wr7/tests/tasks/assert_kernel_settings_conf_files.yml:8 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "checksum": "2eca042463a3f98a3e41348cb9a5e1730238d6b3", "dest": "/tmp/ansible._jlu1f1p.kernel_settings", "gid": 0, "group": "root", "md5sum": "be4322f16ee53350f1425457570b84e2", "mode": "0600", "owner": "root", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 343, "src": "/root/.ansible/tmp/ansible-tmp-1590611372.0840726-114657-122895318298205/source", "state": "file", "uid": 0} TASK [ensure python command exists for tests below] **************************** task path: /tmp/tmpjeoh0wr7/tests/tasks/assert_kernel_settings_conf_files.yml:13 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [diff expected vs actual content] ***************************************** task path: /tmp/tmpjeoh0wr7/tests/tasks/assert_kernel_settings_conf_files.yml:18 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "cmd": "python -c 'import sys\nfrom configobj import ConfigObj\nc1 = ConfigObj(sys.argv[1])\nc2 = ConfigObj(sys.argv[2])\nsys.exit(not c1 == c2)' /tmp/ansible._jlu1f1p.kernel_settings /etc/tuned/kernel_settings/tuned.conf\n", "delta": "0:00:00.029063", "end": "2020-05-27 20:29:36.591049", "rc": 0, "start": "2020-05-27 20:29:36.561986", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} TASK [verify expected content] ************************************************* task path: /tmp/tmpjeoh0wr7/tests/tasks/assert_kernel_settings_conf_files.yml:31 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [show diff - may not reflect actual ConfigObj differences] **************** task path: /tmp/tmpjeoh0wr7/tests/tasks/assert_kernel_settings_conf_files.yml:36 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [get active_profile file] ************************************************* task path: /tmp/tmpjeoh0wr7/tests/tasks/assert_kernel_settings_conf_files.yml:43 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "content": "dmlydHVhbC1ndWVzdCBrZXJuZWxfc2V0dGluZ3MK", "encoding": "base64", "source": "/etc/tuned/active_profile"} TASK [check that active_profile ends with kernel_settings] ********************* task path: /tmp/tmpjeoh0wr7/tests/tasks/assert_kernel_settings_conf_files.yml:50 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [get profile_mode file] *************************************************** task path: /tmp/tmpjeoh0wr7/tests/tasks/assert_kernel_settings_conf_files.yml:57 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "content": "bWFudWFsCg==", "encoding": "base64", "source": "/etc/tuned/profile_mode"} TASK [check that profile_mode is manual] *************************************** task path: /tmp/tmpjeoh0wr7/tests/tasks/assert_kernel_settings_conf_files.yml:64 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [get the bootloader specific config file] ********************************* task path: /tmp/tmpjeoh0wr7/tests/tasks/assert_kernel_settings_conf_files.yml:72 changed: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": true, "cmd": ["sed", "-n", "/^TUNED_BOOT_CMDLINE=/{s/^TUNED_BOOT_CMDLINE=\"\\(.*\\)\"$/\\1/;p}", "/etc/tuned/bootcmdline"], "delta": "0:00:00.003517", "end": "2020-05-27 20:29:37.716104", "rc": 0, "start": "2020-05-27 20:29:37.712587", "stderr": "", "stderr_lines": [], "stdout": "spectre_v2=off nopti", "stdout_lines": ["spectre_v2=off nopti"]} TASK [verify bootloader settings value] **************************************** task path: /tmp/tmpjeoh0wr7/tests/tasks/assert_kernel_settings_conf_files.yml:83 skipping: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [assert success] ********************************************************** task path: /tmp/tmpjeoh0wr7/tests/tasks/assert_kernel_settings.yml:16 ok: [/cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2] => { "changed": false, "msg": "All assertions passed" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 : ok=41 changed=15 unreachable=0 failed=0 skipped=12 rescued=0 ignored=1