+ cd /tmp/tmpj6mzk7o9/tests; TEST_SUBJECTS=/cache/rhel-8.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_cockpit-38-4d26f7b-rhel-8-pj4n58js/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmpj6mzk7o9/_setup.yml /tmp/tmpj6mzk7o9/tests/tests_default.yml ansible-playbook 2.9.25 config file = /etc/ansible/ansible.cfg configured module search path = ['/home/tester/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.9/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 3.9.7 (default, Aug 30 2021, 00:00:00) [GCC 11.2.1 20210728 (Red Hat 11.2.1-1)] Using /etc/ansible/ansible.cfg as config file Skipping callback 'actionable', as we already have a stdout callback. Skipping callback 'counter_enabled', as we already have a stdout callback. Skipping callback 'debug', as we already have a stdout callback. Skipping callback 'dense', as we already have a stdout callback. Skipping callback 'dense', as we already have a stdout callback. Skipping callback 'full_skip', as we already have a stdout callback. Skipping callback 'json', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'null', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. Skipping callback 'selective', as we already have a stdout callback. Skipping callback 'skippy', as we already have a stdout callback. Skipping callback 'stderr', as we already have a stdout callback. Skipping callback 'unixy', as we already have a stdout callback. Skipping callback 'yaml', as we already have a stdout callback. PLAYBOOK: _setup.yml *********************************************************** 2 plays in /tmp/tmpj6mzk7o9/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmpj6mzk7o9/_setup.yml:5 ok: [/cache/rhel-8.qcow2] => { "groups": { "all": [ "/cache/rhel-8.qcow2" ], "localhost": [ "/cache/rhel-8.qcow2" ], "subjects": [ "/cache/rhel-8.qcow2" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmpj6mzk7o9/_setup.yml:7 skipping: [/cache/rhel-8.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY [Setup repos] ************************************************************* META: ran handlers TASK [set up internal repositories] ******************************************** task path: /tmp/tmpj6mzk7o9/_setup.yml:16 changed: [/cache/rhel-8.qcow2] => (item=None) => {"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": true} changed: [/cache/rhel-8.qcow2] => (item=None) => {"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": true} changed: [/cache/rhel-8.qcow2] => (item=None) => {"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": true} changed: [/cache/rhel-8.qcow2] => {"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": true} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-8.qcow2 : ok=2 changed=1 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 PLAYBOOK: tests_default.yml **************************************************** 1 plays in /tmp/tmpj6mzk7o9/tests/tests_default.yml PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpj6mzk7o9/tests/tests_default.yml:2 ok: [/cache/rhel-8.qcow2] META: ran handlers TASK [linux-system-roles.cockpit : Set version specific variables] ************* task path: /tmp/tmpj6mzk7o9/tasks/main.yml:1 ok: [/cache/rhel-8.qcow2] => (item=/tmp/tmpj6mzk7o9/vars/RedHat-8.yml) => {"ansible_facts": {"__cockpit_packages": {"default": "{{ __cockpit_packages_minimal + __cockpit_packages_default }}", "full": "{{ __cockpit_packages_minimal + __cockpit_packages_default + __cockpit_packages_full }}", "minimal": "{{ __cockpit_packages_minimal }}"}, "__cockpit_packages_default": ["cockpit", "cockpit-networkmanager", "cockpit-packagekit", "cockpit-selinux", "cockpit-storaged"], "__cockpit_packages_exclude": ["cockpit-docker", "cockpit-ostree", "cockpit-tests"], "__cockpit_packages_full": ["cockpit-*"], "__cockpit_packages_minimal": ["cockpit-system", "cockpit-ws"]}, "ansible_included_var_files": ["/tmp/tmpj6mzk7o9/vars/RedHat-8.yml"], "ansible_loop_var": "item", "changed": false, "item": "/tmp/tmpj6mzk7o9/vars/RedHat-8.yml"} TASK [linux-system-roles.cockpit : List active RHEL repositories] ************** task path: /tmp/tmpj6mzk7o9/tasks/main.yml:15 skipping: [/cache/rhel-8.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.cockpit : Enable RHEL repositories] ******************* task path: /tmp/tmpj6mzk7o9/tasks/main.yml:23 skipping: [/cache/rhel-8.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.cockpit : Manage cockpit packages using platform specific package manager if applicable] *** task path: /tmp/tmpj6mzk7o9/tasks/main.yml:27 included: /tmp/tmpj6mzk7o9/tasks/setup-dnf.yml for /cache/rhel-8.qcow2 TASK [linux-system-roles.cockpit : If choosing custom package set, ensure minimal cockpit is included] *** task path: /tmp/tmpj6mzk7o9/tasks/setup-dnf.yml:1 ok: [/cache/rhel-8.qcow2] => {"ansible_facts": {"cockpit_packages": "default"}, "changed": false} TASK [linux-system-roles.cockpit : Ensure Cockpit Web Console packages are installed.] *** task path: /tmp/tmpj6mzk7o9/tasks/setup-dnf.yml:8 changed: [/cache/rhel-8.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: isns-utils-libs-0.99-1.el8.x86_64", "Installed: python3-lxml-4.2.3-2.el8.x86_64", "Installed: libbytesize-1.4-3.el8.x86_64", "Installed: cockpit-238.2-1.el8.x86_64", "Installed: nspr-4.25.0-2.el8_2.x86_64", "Installed: mdadm-4.1-15.el8.x86_64", "Installed: nss-3.53.1-17.el8_3.x86_64", "Installed: nss-softokn-3.53.1-17.el8_3.x86_64", "Installed: tracer-common-0.7.5-2.el8.noarch", "Installed: nss-softokn-freebl-3.53.1-17.el8_3.x86_64", "Installed: cryptsetup-2.3.3-4.el8.x86_64", "Installed: userspace-rcu-0.10.1-4.el8.x86_64", "Installed: nss-sysinit-3.53.1-17.el8_3.x86_64", "Installed: nss-util-3.53.1-17.el8_3.x86_64", "Installed: python3-psutil-5.4.3-10.el8.x86_64", "Installed: udisks2-2.9.0-6.el8.x86_64", "Installed: udisks2-iscsi-2.9.0-6.el8.x86_64", "Installed: udisks2-lvm2-2.9.0-6.el8.x86_64", "Installed: oniguruma-6.8.2-2.el8.x86_64", "Installed: clevis-15-1.el8.x86_64", "Installed: clevis-luks-15-1.el8.x86_64", "Installed: gdisk-1.0.3-6.el8.x86_64", "Installed: python3-setuptools-39.2.0-6.el8.noarch", "Installed: jose-10-2.el8.x86_64", "Installed: jq-1.5-12.el8.x86_64", "Installed: device-mapper-event-8:1.02.175-5.el8.x86_64", "Installed: luksmeta-9-4.el8.x86_64", "Installed: device-mapper-event-libs-8:1.02.175-5.el8.x86_64", "Installed: iscsi-initiator-utils-iscsiuio-6.2.1.2-1.gita8fcb37.el8.x86_64", "Installed: libgudev-232-4.el8.x86_64", "Installed: device-mapper-multipath-0.8.4-10.el8.x86_64", "Installed: device-mapper-multipath-libs-0.8.4-10.el8.x86_64", "Installed: libjose-10-2.el8.x86_64", "Installed: device-mapper-persistent-data-0.8.5-4.el8.x86_64", "Installed: libxslt-1.1.32-6.el8.x86_64", "Installed: libaio-0.3.112-1.el8.x86_64", "Installed: cockpit-packagekit-238.2-1.el8.noarch", "Installed: cockpit-storaged-238.2-1.el8.noarch", "Installed: libatasmart-0.19-14.el8.x86_64", "Installed: python3-html5lib-1:0.999999999-6.el8.noarch", "Installed: libblockdev-2.24-5.el8.x86_64", "Installed: libblockdev-crypto-2.24-5.el8.x86_64", "Installed: python3-tracer-0.7.5-2.el8.noarch", "Installed: libblockdev-fs-2.24-5.el8.x86_64", "Installed: libluksmeta-9-4.el8.x86_64", "Installed: python3-webencodings-0.5.1-6.el8.noarch", "Installed: libblockdev-loop-2.24-5.el8.x86_64", "Installed: libblockdev-lvm-2.24-5.el8.x86_64", "Installed: lvm2-8:2.03.11-5.el8.x86_64", "Installed: libudisks2-2.9.0-6.el8.x86_64", "Installed: libblockdev-mdraid-2.24-5.el8.x86_64", "Installed: lvm2-libs-8:2.03.11-5.el8.x86_64", "Installed: libblockdev-part-2.24-5.el8.x86_64", "Installed: libblockdev-swap-2.24-5.el8.x86_64", "Installed: iscsi-initiator-utils-6.2.1.2-1.gita8fcb37.el8.x86_64", "Installed: libblockdev-utils-2.24-5.el8.x86_64", "Installed: tpm2-tools-4.1.1-2.el8.x86_64", "Installed: volume_key-libs-0.3.11-5.el8.x86_64"]} TASK [linux-system-roles.cockpit : Ensure Cockpit Web Console is started/stopped and enabled/disabled] *** task path: /tmp/tmpj6mzk7o9/tasks/main.yml:33 changed: [/cache/rhel-8.qcow2] => {"changed": true, "enabled": true, "name": "cockpit.socket", "state": "started", "status": {"Accept": "no", "ActiveEnterTimestampMonotonic": "0", "ActiveExitTimestampMonotonic": "0", "ActiveState": "inactive", "After": "sysinit.target system.slice systemd-journald.socket", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "no", "AssertTimestampMonotonic": "0", "Backlog": "128", "Before": "shutdown.target cockpit.service cockpit-motd.service sockets.target", "BindIPv6Only": "default", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "Broadcast": "no", "CPUAccounting": "no", "CPUAffinity": "", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "[not set]", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanFreeze": "no", "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 cap_audit_read cap_perfmon", "CollectMode": "inactive", "ConditionResult": "no", "ConditionTimestampMonotonic": "0", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target", "ControlPID": "0", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "DeferAcceptUSec": "0", "Delegate": "no", "Description": "Cockpit Web Service Socket", "DevicePolicy": "auto", "DirectoryMode": "0755", "Documentation": "man:cockpit-ws(8)", "DynamicUser": "no", "EffectiveCPUs": "", "EffectiveMemoryNodes": "", "ExecStartPost": "{ path=/bin/ln ; argv[]=/bin/ln -snf active.motd /run/cockpit/motd ; ignore_errors=yes ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecStopPost": "{ path=/bin/ln ; argv[]=/bin/ln -snf inactive.motd /run/cockpit/motd ; ignore_errors=yes ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "FailureAction": "none", "FileDescriptorName": "cockpit.socket", "FlushPending": "no", "FragmentPath": "/usr/lib/systemd/system/cockpit.socket", "FreeBind": "no", "FreezerState": "running", "GID": "[not set]", "IOAccounting": "no", "IOSchedulingClass": "0", "IOSchedulingPriority": "0", "IOWeight": "[not set]", "IPAccounting": "no", "IPEgressBytes": "18446744073709551615", "IPEgressPackets": "18446744073709551615", "IPIngressBytes": "18446744073709551615", "IPIngressPackets": "18446744073709551615", "IPTOS": "-1", "IPTTL": "-1", "Id": "cockpit.socket", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestampMonotonic": "0", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeepAlive": "no", "KeepAliveIntervalUSec": "0", "KeepAliveProbes": "0", "KeepAliveTimeUSec": "0", "KeyringMode": "shared", "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": "262144", "LimitNOFILESoft": "1024", "LimitNPROC": "6997", "LimitNPROCSoft": "6997", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "6997", "LimitSIGPENDINGSoft": "6997", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "Listen": "[::]:9090 (Stream)", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "Mark": "-1", "MaxConnections": "64", "MaxConnectionsPerSource": "0", "MemoryAccounting": "yes", "MemoryCurrent": "[not set]", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MessageQueueMaxMessages": "0", "MessageQueueMessageSize": "0", "MountAPIVFS": "no", "MountFlags": "", "NAccepted": "0", "NConnections": "0", "NRefused": "0", "NUMAMask": "", "NUMAPolicy": "n/a", "Names": "cockpit.socket", "NeedDaemonReload": "no", "Nice": "0", "NoDelay": "no", "NoNewPrivileges": "no", "NonBlocking": "no", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PassCredentials": "no", "PassPacketInfo": "no", "PassSecurity": "no", "Perpetual": "no", "PipeSize": "0", "Priority": "-1", "PrivateDevices": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectSystem": "no", "ReceiveBuffer": "0", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemoveIPC": "no", "RemoveOnStop": "no", "RequiredBy": "cockpit.service", "Requires": "system.slice sysinit.target", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "ReusePort": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "SameProcessGroup": "no", "SecureBits": "0", "SendBuffer": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "SocketMode": "0666", "SocketProtocol": "0", "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", "StopWhenUnneeded": "no", "SubState": "dead", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "[not set]", "TasksMax": "11196", "TimeoutUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Transparent": "no", "TriggerLimitBurst": "20", "TriggerLimitIntervalUSec": "2s", "Triggers": "cockpit.service", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "disabled", "UnitFileState": "disabled", "UtmpMode": "init", "Wants": "cockpit-motd.service", "Writable": "no"}} TASK [linux-system-roles.cockpit : Create cockpit.conf configuration file] ***** task path: /tmp/tmpj6mzk7o9/tasks/main.yml:39 skipping: [/cache/rhel-8.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [test - socket is active] ************************************************* task path: /tmp/tmpj6mzk7o9/tests/tests_default.yml:7 ok: [/cache/rhel-8.qcow2] => {"changed": false, "cmd": ["systemctl", "is-active", "cockpit.socket"], "delta": "0:00:00.009317", "end": "2021-10-20 03:56:50.372850", "rc": 0, "start": "2021-10-20 03:56:50.363533", "stderr": "", "stderr_lines": [], "stdout": "active", "stdout_lines": ["active"]} TASK [test - socket is enabled] ************************************************ task path: /tmp/tmpj6mzk7o9/tests/tests_default.yml:11 ok: [/cache/rhel-8.qcow2] => {"changed": false, "cmd": ["systemctl", "is-enabled", "cockpit.socket"], "delta": "0:00:00.007916", "end": "2021-10-20 03:56:50.700951", "rc": 0, "start": "2021-10-20 03:56:50.693035", "stderr": "", "stderr_lines": [], "stdout": "enabled", "stdout_lines": ["enabled"]} TASK [test - cockpit works with TLS] ******************************************* task path: /tmp/tmpj6mzk7o9/tests/tests_default.yml:15 changed: [/cache/rhel-8.qcow2] => {"changed": true, "checksum_dest": null, "checksum_src": "d33b946080d2ba717f75c479695c95b9a9cf3b15", "dest": "/run/out", "elapsed": 1, "gid": 0, "group": "root", "md5sum": "52d81f1b64bf2de7f7f09ae772123b3a", "mode": "0644", "msg": "OK (unknown bytes)", "owner": "root", "secontext": "system_u:object_r:var_run_t:s0", "size": 8612, "src": "/root/.ansible/tmp/ansible-tmp-1634716611.7493067-157594-179228343155210/tmpfq90tegp", "state": "file", "status_code": 200, "uid": 0, "url": "https://localhost:9090"} TASK [test - no configuration file] ******************************************** task path: /tmp/tmpj6mzk7o9/tests/tests_default.yml:21 ok: [/cache/rhel-8.qcow2] => {"changed": false, "failed_when_result": false, "stat": {"exists": false}} TASK [test - cleanup] ********************************************************** task path: /tmp/tmpj6mzk7o9/tests/tests_default.yml:29 changed: [/cache/rhel-8.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Removed: cockpit-238.2-1.el8.x86_64", "Removed: cockpit-bridge-238.2-1.el8.x86_64", "Removed: cockpit-packagekit-238.2-1.el8.noarch", "Removed: cockpit-storaged-238.2-1.el8.noarch", "Removed: cockpit-system-238.2-1.el8.noarch", "Removed: cockpit-ws-238.2-1.el8.x86_64", "Removed: subscription-manager-cockpit-1.28.13-2.el8.noarch"]} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-8.qcow2 : ok=13 changed=5 unreachable=0 failed=0 skipped=4 rescued=0 ignored=0