ansible-playbook [core 2.12.6] config file = /etc/ansible/ansible.cfg configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.9/site-packages/ansible ansible collection location = /tmp/tmpzsr38y52 executable location = /usr/bin/ansible-playbook python version = 3.9.13 (main, May 18 2022, 00:00:00) [GCC 11.3.1 20220421 (Red Hat 11.3.1-2)] jinja version = 2.11.3 libyaml = True Using /etc/ansible/ansible.cfg as config file Skipping callback 'debug', as we already have a stdout callback. Skipping callback 'default', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. PLAYBOOK: tests_certificate_runafter.yml *************************************** 1 plays in /tmp/tmp2g3reiz6/tests/tests_certificate_runafter.yml PLAY [test certificate issuance with run_after shell script] ******************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmp2g3reiz6/tests/tests_certificate_runafter.yml:5 Wednesday 03 August 2022 07:50:48 +0000 (0:00:00.012) 0:00:00.012 ****** ok: [/cache/rhel-8-y.qcow2.snap] META: ran handlers TASK [Download current linux-system-roles.certificate] ************************* task path: /tmp/tmp2g3reiz6/tests/tests_certificate_runafter.yml:8 Wednesday 03 August 2022 07:50:49 +0000 (0:00:01.188) 0:00:01.201 ****** skipping: [/cache/rhel-8-y.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Install cockpit] ********************************************************* task path: /tmp/tmp2g3reiz6/tests/tests_certificate_runafter.yml:21 Wednesday 03 August 2022 07:50:49 +0000 (0:00:00.085) 0:00:01.286 ****** TASK [linux-system-roles.cockpit : Ensure ansible_facts and variables used by role] *** task path: /tmp/tmp2g3reiz6/tests/roles/linux-system-roles.cockpit/tasks/main.yml:1 Wednesday 03 August 2022 07:50:49 +0000 (0:00:00.040) 0:00:01.326 ****** included: /tmp/tmp2g3reiz6/tests/roles/linux-system-roles.cockpit/tasks/set_vars.yml for /cache/rhel-8-y.qcow2.snap TASK [linux-system-roles.cockpit : Ensure ansible_facts used by role] ********** task path: /tmp/tmp2g3reiz6/tests/roles/linux-system-roles.cockpit/tasks/set_vars.yml:2 Wednesday 03 August 2022 07:50:49 +0000 (0:00:00.027) 0:00:01.354 ****** ok: [/cache/rhel-8-y.qcow2.snap] TASK [linux-system-roles.cockpit : Set version specific variables] ************* task path: /tmp/tmp2g3reiz6/tests/roles/linux-system-roles.cockpit/tasks/set_vars.yml:8 Wednesday 03 August 2022 07:50:50 +0000 (0:00:00.539) 0:00:01.894 ****** ok: [/cache/rhel-8-y.qcow2.snap] => (item=/tmp/tmp2g3reiz6/tests/roles/linux-system-roles.cockpit/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/tmp2g3reiz6/tests/roles/linux-system-roles.cockpit/vars/RedHat-8.yml" ], "ansible_loop_var": "item", "changed": false, "item": "/tmp/tmp2g3reiz6/tests/roles/linux-system-roles.cockpit/vars/RedHat-8.yml" } TASK [linux-system-roles.cockpit : List active RHEL repositories] ************** task path: /tmp/tmp2g3reiz6/tests/roles/linux-system-roles.cockpit/tasks/main.yml:9 Wednesday 03 August 2022 07:50:50 +0000 (0:00:00.040) 0:00:01.934 ****** skipping: [/cache/rhel-8-y.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.cockpit : Enable RHEL repositories] ******************* task path: /tmp/tmp2g3reiz6/tests/roles/linux-system-roles.cockpit/tasks/main.yml:17 Wednesday 03 August 2022 07:50:50 +0000 (0:00:00.023) 0:00:01.958 ****** skipping: [/cache/rhel-8-y.qcow2.snap] => { "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/tmp2g3reiz6/tests/roles/linux-system-roles.cockpit/tasks/main.yml:21 Wednesday 03 August 2022 07:50:50 +0000 (0:00:00.022) 0:00:01.981 ****** included: /tmp/tmp2g3reiz6/tests/roles/linux-system-roles.cockpit/tasks/setup-dnf.yml for /cache/rhel-8-y.qcow2.snap => (item=/tmp/tmp2g3reiz6/tests/roles/linux-system-roles.cockpit/tasks/setup-dnf.yml) TASK [linux-system-roles.cockpit : If choosing custom package set, ensure minimal cockpit is included] *** task path: /tmp/tmp2g3reiz6/tests/roles/linux-system-roles.cockpit/tasks/setup-dnf.yml:1 Wednesday 03 August 2022 07:50:50 +0000 (0:00:00.036) 0:00:02.017 ****** ok: [/cache/rhel-8-y.qcow2.snap] => { "ansible_facts": { "cockpit_packages": "minimal" }, "changed": false } TASK [linux-system-roles.cockpit : Ensure Cockpit Web Console packages are installed.] *** task path: /tmp/tmp2g3reiz6/tests/roles/linux-system-roles.cockpit/tasks/setup-dnf.yml:8 Wednesday 03 August 2022 07:50:50 +0000 (0:00:00.036) 0:00:02.054 ****** changed: [/cache/rhel-8-y.qcow2.snap] => { "changed": true, "rc": 0, "results": [ "Installed: cockpit-system-273-2.el8.noarch", "Installed: cockpit-ws-273-2.el8.x86_64", "Installed: cockpit-bridge-273-2.el8.x86_64" ] } TASK [linux-system-roles.cockpit : Create custom port configuration file directory] *** task path: /tmp/tmp2g3reiz6/tests/roles/linux-system-roles.cockpit/tasks/main.yml:27 Wednesday 03 August 2022 07:51:10 +0000 (0:00:20.087) 0:00:22.141 ****** skipping: [/cache/rhel-8-y.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.cockpit : Create custom port configuration file] ****** task path: /tmp/tmp2g3reiz6/tests/roles/linux-system-roles.cockpit/tasks/main.yml:35 Wednesday 03 August 2022 07:51:10 +0000 (0:00:00.028) 0:00:22.170 ****** skipping: [/cache/rhel-8-y.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.cockpit : Check if SELinux is enabled] **************** task path: /tmp/tmp2g3reiz6/tests/roles/linux-system-roles.cockpit/tasks/main.yml:51 Wednesday 03 August 2022 07:51:10 +0000 (0:00:00.030) 0:00:22.200 ****** skipping: [/cache/rhel-8-y.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Allow cockpit to own custom port in SELinux policy] ********************** task path: /tmp/tmp2g3reiz6/tests/roles/linux-system-roles.cockpit/tasks/main.yml:58 Wednesday 03 August 2022 07:51:10 +0000 (0:00:00.024) 0:00:22.224 ****** skipping: [/cache/rhel-8-y.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.cockpit : Clean up port configuration file for undefined custom port] *** task path: /tmp/tmp2g3reiz6/tests/roles/linux-system-roles.cockpit/tasks/main.yml:66 Wednesday 03 August 2022 07:51:10 +0000 (0:00:00.023) 0:00:22.248 ****** ok: [/cache/rhel-8-y.qcow2.snap] => { "changed": false, "path": "/etc/systemd/system/cockpit.socket.d/listen.conf", "state": "absent" } TASK [linux-system-roles.cockpit : Ensure Cockpit Web Console is started/stopped and enabled/disabled] *** task path: /tmp/tmp2g3reiz6/tests/roles/linux-system-roles.cockpit/tasks/main.yml:75 Wednesday 03 August 2022 07:51:11 +0000 (0:00:00.514) 0:00:22.763 ****** changed: [/cache/rhel-8-y.qcow2.snap] => { "changed": true, "enabled": true, "name": "cockpit.socket", "state": "started", "status": { "Accept": "no", "ActiveEnterTimestampMonotonic": "0", "ActiveExitTimestampMonotonic": "0", "ActiveState": "inactive", "After": "system.slice sysinit.target systemd-journald.socket", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "no", "AssertTimestampMonotonic": "0", "Backlog": "128", "Before": "sockets.target cockpit-motd.service cockpit.service shutdown.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 cap_bpf", "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": "0", "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": "6963", "LimitNPROCSoft": "6963", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "6963", "LimitSIGPENDINGSoft": "6963", "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": "11140", "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/tmp2g3reiz6/tests/roles/linux-system-roles.cockpit/tasks/main.yml:81 Wednesday 03 August 2022 07:51:12 +0000 (0:00:00.935) 0:00:23.698 ****** skipping: [/cache/rhel-8-y.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.cockpit : Link to configured existing certificate] **** task path: /tmp/tmp2g3reiz6/tests/roles/linux-system-roles.cockpit/tasks/main.yml:92 Wednesday 03 August 2022 07:51:12 +0000 (0:00:00.024) 0:00:23.722 ****** skipping: [/cache/rhel-8-y.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.cockpit : Link to configured existing certificate key] *** task path: /tmp/tmp2g3reiz6/tests/roles/linux-system-roles.cockpit/tasks/main.yml:102 Wednesday 03 August 2022 07:51:12 +0000 (0:00:00.022) 0:00:23.745 ****** skipping: [/cache/rhel-8-y.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } META: role_complete for /cache/rhel-8-y.qcow2.snap TASK [Allow certmonger to write into Cockpit's certificate directory] ********** task path: /tmp/tmp2g3reiz6/tests/tests_certificate_runafter.yml:31 Wednesday 03 August 2022 07:51:12 +0000 (0:00:00.029) 0:00:23.774 ****** ok: [/cache/rhel-8-y.qcow2.snap] => { "changed": false, "gid": 0, "group": "root", "mode": "0755", "owner": "root", "path": "/etc/cockpit/ws-certs.d/", "secontext": "system_u:object_r:cert_t:s0", "size": 6, "state": "directory", "uid": 0 } TASK [Generate certificate with linux-system-roles.certificate] **************** task path: /tmp/tmp2g3reiz6/tests/tests_certificate_runafter.yml:38 Wednesday 03 August 2022 07:51:12 +0000 (0:00:00.366) 0:00:24.141 ****** TASK [linux-system-roles.certificate : Set version specific variables] ********* task path: /tmp/tmp2g3reiz6/tests/roles/linux-system-roles.certificate/tasks/main.yml:2 Wednesday 03 August 2022 07:51:12 +0000 (0:00:00.042) 0:00:24.183 ****** included: /tmp/tmp2g3reiz6/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml for /cache/rhel-8-y.qcow2.snap TASK [linux-system-roles.certificate : Ensure ansible_facts used by role] ****** task path: /tmp/tmp2g3reiz6/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:2 Wednesday 03 August 2022 07:51:12 +0000 (0:00:00.025) 0:00:24.209 ****** ok: [/cache/rhel-8-y.qcow2.snap] TASK [linux-system-roles.certificate : Set platform/version specific variables] *** task path: /tmp/tmp2g3reiz6/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:8 Wednesday 03 August 2022 07:51:13 +0000 (0:00:00.544) 0:00:24.753 ****** skipping: [/cache/rhel-8-y.qcow2.snap] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/rhel-8-y.qcow2.snap] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/rhel-8-y.qcow2.snap] => (item=RedHat_8.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat_8.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/rhel-8-y.qcow2.snap] => (item=RedHat_8.7.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat_8.7.yml", "skip_reason": "Conditional result was False" } TASK [linux-system-roles.certificate : Ensure certificate role dependencies are installed] *** task path: /tmp/tmp2g3reiz6/tests/roles/linux-system-roles.certificate/tasks/main.yml:5 Wednesday 03 August 2022 07:51:13 +0000 (0:00:00.040) 0:00:24.793 ****** ok: [/cache/rhel-8-y.qcow2.snap] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [linux-system-roles.certificate : Ensure provider packages are installed] *** task path: /tmp/tmp2g3reiz6/tests/roles/linux-system-roles.certificate/tasks/main.yml:22 Wednesday 03 August 2022 07:51:14 +0000 (0:00:01.376) 0:00:26.170 ****** ok: [/cache/rhel-8-y.qcow2.snap] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [linux-system-roles.certificate : Ensure pre-scripts hooks directory exists] *** task path: /tmp/tmp2g3reiz6/tests/roles/linux-system-roles.certificate/tasks/main.yml:33 Wednesday 03 August 2022 07:51:16 +0000 (0:00:01.399) 0:00:27.569 ****** ok: [/cache/rhel-8-y.qcow2.snap] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/etc/certmonger//pre-scripts", "secontext": "unconfined_u:object_r:etc_t:s0", "size": 6, "state": "directory", "uid": 0 } TASK [linux-system-roles.certificate : Ensure post-scripts hooks directory exists] *** task path: /tmp/tmp2g3reiz6/tests/roles/linux-system-roles.certificate/tasks/main.yml:59 Wednesday 03 August 2022 07:51:16 +0000 (0:00:00.413) 0:00:27.983 ****** ok: [/cache/rhel-8-y.qcow2.snap] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/etc/certmonger//post-scripts", "secontext": "unconfined_u:object_r:etc_t:s0", "size": 6, "state": "directory", "uid": 0 } TASK [linux-system-roles.certificate : Ensure provider service is running] ***** task path: /tmp/tmp2g3reiz6/tests/roles/linux-system-roles.certificate/tasks/main.yml:88 Wednesday 03 August 2022 07:51:16 +0000 (0:00:00.406) 0:00:28.390 ****** ok: [/cache/rhel-8-y.qcow2.snap] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "enabled": true, "name": "certmonger", "state": "started", "status": { "ActiveEnterTimestamp": "Wed 2022-08-03 03:49:29 EDT", "ActiveEnterTimestampMonotonic": "25587966", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "system.slice basic.target dbus.service systemd-journald.socket sysinit.target dbus.socket network.target syslog.target", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "yes", "AssertTimestamp": "Wed 2022-08-03 03:49:29 EDT", "AssertTimestampMonotonic": "25571911", "Before": "shutdown.target multi-user.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "BusName": "org.fedorahosted.certmonger", "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": "yes", "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 cap_bpf", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Wed 2022-08-03 03:49:29 EDT", "ConditionTimestampMonotonic": "25571910", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target", "ControlGroup": "/system.slice/certmonger.service", "ControlPID": "0", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "Certificate monitoring and PKI enrollment", "DevicePolicy": "auto", "DynamicUser": "no", "EffectiveCPUs": "", "EffectiveMemoryNodes": "", "EnvironmentFiles": "/etc/sysconfig/certmonger (ignore_errors=yes)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "13081", "ExecMainStartTimestamp": "Wed 2022-08-03 03:49:29 EDT", "ExecMainStartTimestampMonotonic": "25573385", "ExecMainStatus": "0", "ExecStart": "{ path=/usr/sbin/certmonger ; argv[]=/usr/sbin/certmonger -S -p /run/certmonger.pid -n $OPTS ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FragmentPath": "/usr/lib/systemd/system/certmonger.service", "FreezerState": "running", "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": "certmonger.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestamp": "Wed 2022-08-03 03:49:29 EDT", "InactiveExitTimestampMonotonic": "25573422", "InvocationID": "1f7e75f34f7d4b45820c517e2e778bc4", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "control-group", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "0", "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": "6963", "LimitNPROCSoft": "6963", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "6963", "LimitSIGPENDINGSoft": "6963", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "13081", "MemoryAccounting": "yes", "MemoryCurrent": "6635520", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "MountFlags": "", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAMask": "", "NUMAPolicy": "n/a", "Names": "certmonger.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PIDFile": "/run/certmonger.pid", "PartOf": "dbus.service", "PermissionsStartOnly": "no", "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.socket sysinit.target system.slice", "Restart": "no", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "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 2022-08-03 03:49:29 EDT", "StateChangeTimestampMonotonic": "25587966", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "running", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "1", "TasksMax": "11140", "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", "WatchdogTimestamp": "Wed 2022-08-03 03:49:29 EDT", "WatchdogTimestampMonotonic": "25587964", "WatchdogUSec": "0" } } TASK [linux-system-roles.certificate : Ensure certificate requests] ************ task path: /tmp/tmp2g3reiz6/tests/roles/linux-system-roles.certificate/tasks/main.yml:100 Wednesday 03 August 2022 07:51:17 +0000 (0:00:00.536) 0:00:28.926 ****** changed: [/cache/rhel-8-y.qcow2.snap] => (item={'name': 'monger-cockpit', 'dns': ['localhost', 'www.example.com'], 'ca': 'local', 'group': 'cockpit-ws', 'run_after': 'DEST=/etc/cockpit/ws-certs.d/monger-cockpit.cert\ncat /etc/pki/tls/certs/monger-cockpit.crt \\\n/etc/pki/tls/private/monger-cockpit.key > $DEST\nchmod 640 $DEST\nchown root:cockpit-ws $DEST\n'}) => { "ansible_loop_var": "item", "changed": true, "item": { "ca": "local", "dns": [ "localhost", "www.example.com" ], "group": "cockpit-ws", "name": "monger-cockpit", "run_after": "DEST=/etc/cockpit/ws-certs.d/monger-cockpit.cert\ncat /etc/pki/tls/certs/monger-cockpit.crt \\\n/etc/pki/tls/private/monger-cockpit.key > $DEST\nchmod 640 $DEST\nchown root:cockpit-ws $DEST\n" } } MSG: Certificate requested (new). Pre/Post run hooks updated. File attributes updated. META: role_complete for /cache/rhel-8-y.qcow2.snap TASK [Get PEM of certmonger's local CA] **************************************** task path: /tmp/tmp2g3reiz6/tests/tests_certificate_runafter.yml:62 Wednesday 03 August 2022 07:51:18 +0000 (0:00:00.936) 0:00:29.862 ****** changed: [/cache/rhel-8-y.qcow2.snap] => { "changed": true, "cmd": [ "openssl", "pkcs12", "-in", "/var/lib/certmonger/local/creds", "-out", "/var/lib/certmonger/local/ca.pem", "-nokeys", "-nodes", "-passin", "pass:" ], "delta": "0:00:00.007335", "end": "2022-08-03 03:51:18.910697", "rc": 0, "start": "2022-08-03 03:51:18.903362" } TASK [test - cockpit works with TLS and expected certificate] ****************** task path: /tmp/tmp2g3reiz6/tests/tests_certificate_runafter.yml:69 Wednesday 03 August 2022 07:51:18 +0000 (0:00:00.505) 0:00:30.368 ****** ok: [/cache/rhel-8-y.qcow2.snap] => { "changed": false, "cmd": [ "curl", "--cacert", "/var/lib/certmonger/local/ca.pem", "https://localhost:9090" ], "delta": "0:00:00.194548", "end": "2022-08-03 03:51:19.482055", "rc": 0, "start": "2022-08-03 03:51:19.287507" } STDOUT: Loading...

Please enable JavaScript to use the Web Console.

STDERR: % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 11363 0 11363 0 0 61421 0 --:--:-- --:--:-- --:--:-- 61421 TASK [test - get certmonger tracking status] *********************************** task path: /tmp/tmp2g3reiz6/tests/tests_certificate_runafter.yml:76 Wednesday 03 August 2022 07:51:19 +0000 (0:00:00.575) 0:00:30.943 ****** ok: [/cache/rhel-8-y.qcow2.snap] => { "changed": false, "cmd": [ "getcert", "list", "--tracking-only", "-f", "/etc/pki/tls/certs/monger-cockpit.crt" ], "delta": "0:00:00.042160", "end": "2022-08-03 03:51:19.901307", "rc": 0, "start": "2022-08-03 03:51:19.859147" } STDOUT: Number of certificates and requests being tracked: 1. Request ID '20220803075118': status: MONITORING stuck: no key pair storage: type=FILE,location='/etc/pki/tls/private/monger-cockpit.key' certificate: type=FILE,location='/etc/pki/tls/certs/monger-cockpit.crt' CA: local issuer: CN=11ba8f9c-91fa4888-b5a97d1a-83c88589,CN=Local Signing Authority subject: CN=localhost issued: 2022-08-03 03:51:18 EDT expires: 2023-08-03 03:49:29 EDT dns: localhost,www.example.com key usage: digitalSignature,keyEncipherment eku: id-kp-serverAuth,id-kp-clientAuth pre-save command: post-save command: /etc/certmonger/post-scripts/monger-cockpit-59d1099.sh track: yes auto-renew: yes TASK [test - ensure certificate generation succeeded] ************************** task path: /tmp/tmp2g3reiz6/tests/tests_certificate_runafter.yml:83 Wednesday 03 August 2022 07:51:19 +0000 (0:00:00.419) 0:00:31.362 ****** ok: [/cache/rhel-8-y.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [test - clean up tracked certificate] ************************************* task path: /tmp/tmp2g3reiz6/tests/tests_certificate_runafter.yml:87 Wednesday 03 August 2022 07:51:19 +0000 (0:00:00.033) 0:00:31.396 ****** ok: [/cache/rhel-8-y.qcow2.snap] => { "changed": false, "cmd": [ "getcert", "stop-tracking", "-f", "/etc/pki/tls/certs/monger-cockpit.crt" ], "delta": "0:00:00.035565", "end": "2022-08-03 03:51:20.370912", "rc": 0, "start": "2022-08-03 03:51:20.335347" } STDOUT: Request "20220803075118" removed. TASK [test - clean up generated certificate] *********************************** task path: /tmp/tmp2g3reiz6/tests/tests_certificate_runafter.yml:94 Wednesday 03 August 2022 07:51:20 +0000 (0:00:00.433) 0:00:31.830 ****** changed: [/cache/rhel-8-y.qcow2.snap] => { "changed": true, "path": "/etc/pki/tls/certs/monger-cockpit.crt", "state": "absent" } TASK [test - clean up generated private key] *********************************** task path: /tmp/tmp2g3reiz6/tests/tests_certificate_runafter.yml:99 Wednesday 03 August 2022 07:51:20 +0000 (0:00:00.384) 0:00:32.214 ****** changed: [/cache/rhel-8-y.qcow2.snap] => { "changed": true, "path": "/etc/pki/tls/private/monger-cockpit.key", "state": "absent" } TASK [test - clean up copied certificate] ************************************** task path: /tmp/tmp2g3reiz6/tests/tests_certificate_runafter.yml:104 Wednesday 03 August 2022 07:51:21 +0000 (0:00:00.356) 0:00:32.570 ****** changed: [/cache/rhel-8-y.qcow2.snap] => { "changed": true, "path": "/etc/cockpit/ws-certs.d/monger-cockpit.cert", "state": "absent" } TASK [test - generic cleanup] ************************************************** task path: /tmp/tmp2g3reiz6/tests/tests_certificate_runafter.yml:109 Wednesday 03 August 2022 07:51:21 +0000 (0:00:00.350) 0:00:32.921 ****** included: /tmp/tmp2g3reiz6/tests/tasks/cleanup.yml for /cache/rhel-8-y.qcow2.snap TASK [cleanup - packages] ****************************************************** task path: /tmp/tmp2g3reiz6/tests/tasks/cleanup.yml:1 Wednesday 03 August 2022 07:51:21 +0000 (0:00:00.030) 0:00:32.951 ****** changed: [/cache/rhel-8-y.qcow2.snap] => { "changed": true, "rc": 0, "results": [ "Removed: cockpit-bridge-273-2.el8.x86_64", "Removed: cockpit-system-273-2.el8.noarch", "Removed: cockpit-ws-273-2.el8.x86_64" ] } TASK [cleanup - find certificates] ********************************************* task path: /tmp/tmp2g3reiz6/tests/tasks/cleanup.yml:13 Wednesday 03 August 2022 07:51:40 +0000 (0:00:18.815) 0:00:51.767 ****** [WARNING]: Skipped '/etc/cockpit/ws-certs.d/' path due to this access issue: '/etc/cockpit/ws-certs.d/' is not a directory ok: [/cache/rhel-8-y.qcow2.snap] => { "changed": false, "examined": 0, "files": [], "matched": 0, "skipped_paths": { "/etc/cockpit/ws-certs.d/": "'/etc/cockpit/ws-certs.d/' is not a directory" } } MSG: Not all paths examined, check warnings for details TASK [cleanup - certificates] ************************************************** task path: /tmp/tmp2g3reiz6/tests/tasks/cleanup.yml:23 Wednesday 03 August 2022 07:51:40 +0000 (0:00:00.499) 0:00:52.267 ****** TASK [cleanup - config file] *************************************************** task path: /tmp/tmp2g3reiz6/tests/tasks/cleanup.yml:32 Wednesday 03 August 2022 07:51:40 +0000 (0:00:00.021) 0:00:52.288 ****** ok: [/cache/rhel-8-y.qcow2.snap] => { "changed": false, "path": "/etc/cockpit/cockpit.conf", "state": "absent" } TASK [cleanup - port customization] ******************************************** task path: /tmp/tmp2g3reiz6/tests/tasks/cleanup.yml:40 Wednesday 03 August 2022 07:51:41 +0000 (0:00:00.365) 0:00:52.653 ****** ok: [/cache/rhel-8-y.qcow2.snap] => { "changed": false, "path": "/etc/systemd/system/cockpit.socket.d/", "state": "absent" } TASK [cleanup - reload systemd] ************************************************ task path: /tmp/tmp2g3reiz6/tests/tasks/cleanup.yml:48 Wednesday 03 August 2022 07:51:41 +0000 (0:00:00.361) 0:00:53.015 ****** ok: [/cache/rhel-8-y.qcow2.snap] => { "changed": false, "name": null, "status": {} } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-8-y.qcow2.snap : ok=32 changed=8 unreachable=0 failed=0 skipped=12 rescued=0 ignored=0 Wednesday 03 August 2022 07:51:42 +0000 (0:00:00.643) 0:00:53.659 ****** =============================================================================== linux-system-roles.cockpit : Ensure Cockpit Web Console packages are installed. -- 20.09s /tmp/tmp2g3reiz6/tests/roles/linux-system-roles.cockpit/tasks/setup-dnf.yml:8 - cleanup - packages ----------------------------------------------------- 18.82s /tmp/tmp2g3reiz6/tests/tasks/cleanup.yml:1 ------------------------------------ linux-system-roles.certificate : Ensure provider packages are installed --- 1.40s /tmp/tmp2g3reiz6/tests/roles/linux-system-roles.certificate/tasks/main.yml:22 - linux-system-roles.certificate : Ensure certificate role dependencies are installed --- 1.38s /tmp/tmp2g3reiz6/tests/roles/linux-system-roles.certificate/tasks/main.yml:5 -- Gathering Facts --------------------------------------------------------- 1.19s /tmp/tmp2g3reiz6/tests/tests_certificate_runafter.yml:5 ----------------------- linux-system-roles.certificate : Ensure certificate requests ------------ 0.94s /tmp/tmp2g3reiz6/tests/roles/linux-system-roles.certificate/tasks/main.yml:100 linux-system-roles.cockpit : Ensure Cockpit Web Console is started/stopped and enabled/disabled --- 0.94s /tmp/tmp2g3reiz6/tests/roles/linux-system-roles.cockpit/tasks/main.yml:75 ----- cleanup - reload systemd ------------------------------------------------ 0.64s /tmp/tmp2g3reiz6/tests/tasks/cleanup.yml:48 ----------------------------------- test - cockpit works with TLS and expected certificate ------------------ 0.58s /tmp/tmp2g3reiz6/tests/tests_certificate_runafter.yml:69 ---------------------- linux-system-roles.certificate : Ensure ansible_facts used by role ------ 0.54s /tmp/tmp2g3reiz6/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:2 linux-system-roles.cockpit : Ensure ansible_facts used by role ---------- 0.54s /tmp/tmp2g3reiz6/tests/roles/linux-system-roles.cockpit/tasks/set_vars.yml:2 -- linux-system-roles.certificate : Ensure provider service is running ----- 0.54s /tmp/tmp2g3reiz6/tests/roles/linux-system-roles.certificate/tasks/main.yml:88 - linux-system-roles.cockpit : Clean up port configuration file for undefined custom port --- 0.51s /tmp/tmp2g3reiz6/tests/roles/linux-system-roles.cockpit/tasks/main.yml:66 ----- Get PEM of certmonger's local CA ---------------------------------------- 0.51s /tmp/tmp2g3reiz6/tests/tests_certificate_runafter.yml:62 ---------------------- cleanup - find certificates --------------------------------------------- 0.50s /tmp/tmp2g3reiz6/tests/tasks/cleanup.yml:13 ----------------------------------- test - clean up tracked certificate ------------------------------------- 0.43s /tmp/tmp2g3reiz6/tests/tests_certificate_runafter.yml:87 ---------------------- test - get certmonger tracking status ----------------------------------- 0.42s /tmp/tmp2g3reiz6/tests/tests_certificate_runafter.yml:76 ---------------------- linux-system-roles.certificate : Ensure pre-scripts hooks directory exists --- 0.41s /tmp/tmp2g3reiz6/tests/roles/linux-system-roles.certificate/tasks/main.yml:33 - linux-system-roles.certificate : Ensure post-scripts hooks directory exists --- 0.41s /tmp/tmp2g3reiz6/tests/roles/linux-system-roles.certificate/tasks/main.yml:59 - test - clean up generated certificate ----------------------------------- 0.38s /tmp/tmp2g3reiz6/tests/tests_certificate_runafter.yml:94 ---------------------- ansible-playbook [core 2.12.6] config file = /etc/ansible/ansible.cfg configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.9/site-packages/ansible ansible collection location = /tmp/tmpzsr38y52 executable location = /usr/bin/ansible-playbook python version = 3.9.13 (main, May 18 2022, 00:00:00) [GCC 11.3.1 20220421 (Red Hat 11.3.1-2)] jinja version = 2.11.3 libyaml = True Using /etc/ansible/ansible.cfg as config file Skipping callback 'debug', as we already have a stdout callback. Skipping callback 'default', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. PLAYBOOK: tests_certificate_runafter.yml *************************************** 1 plays in /tmp/tmpye5y6l1x/tests/cockpit/tests_certificate_runafter.yml PLAY [test certificate issuance with run_after shell script] ******************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpye5y6l1x/tests/cockpit/tests_certificate_runafter.yml:5 Wednesday 03 August 2022 07:59:18 +0000 (0:00:00.012) 0:00:00.012 ****** ok: [/cache/rhel-8-y.qcow2.snap] META: ran handlers TASK [Download current linux-system-roles.certificate] ************************* task path: /tmp/tmpye5y6l1x/tests/cockpit/tests_certificate_runafter.yml:8 Wednesday 03 August 2022 07:59:19 +0000 (0:00:01.156) 0:00:01.169 ****** skipping: [/cache/rhel-8-y.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Install cockpit] ********************************************************* task path: /tmp/tmpye5y6l1x/tests/cockpit/tests_certificate_runafter.yml:21 Wednesday 03 August 2022 07:59:19 +0000 (0:00:00.036) 0:00:01.205 ****** TASK [fedora.linux_system_roles.cockpit : Ensure ansible_facts and variables used by role] *** task path: /tmp/tmpzsr38y52/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/main.yml:1 Wednesday 03 August 2022 07:59:19 +0000 (0:00:00.061) 0:00:01.267 ****** included: /tmp/tmpzsr38y52/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/set_vars.yml for /cache/rhel-8-y.qcow2.snap TASK [fedora.linux_system_roles.cockpit : Ensure ansible_facts used by role] *** task path: /tmp/tmpzsr38y52/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/set_vars.yml:2 Wednesday 03 August 2022 07:59:19 +0000 (0:00:00.026) 0:00:01.293 ****** ok: [/cache/rhel-8-y.qcow2.snap] TASK [fedora.linux_system_roles.cockpit : Set version specific variables] ****** task path: /tmp/tmpzsr38y52/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/set_vars.yml:7 Wednesday 03 August 2022 07:59:20 +0000 (0:00:00.509) 0:00:01.802 ****** ok: [/cache/rhel-8-y.qcow2.snap] => (item=/tmp/tmpzsr38y52/ansible_collections/fedora/linux_system_roles/roles/cockpit/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/tmpzsr38y52/ansible_collections/fedora/linux_system_roles/roles/cockpit/vars/RedHat-8.yml" ], "ansible_loop_var": "item", "changed": false, "item": "/tmp/tmpzsr38y52/ansible_collections/fedora/linux_system_roles/roles/cockpit/vars/RedHat-8.yml" } TASK [fedora.linux_system_roles.cockpit : List active RHEL repositories] ******* task path: /tmp/tmpzsr38y52/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/main.yml:9 Wednesday 03 August 2022 07:59:20 +0000 (0:00:00.036) 0:00:01.839 ****** skipping: [/cache/rhel-8-y.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.cockpit : Enable RHEL repositories] ************ task path: /tmp/tmpzsr38y52/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/main.yml:17 Wednesday 03 August 2022 07:59:20 +0000 (0:00:00.021) 0:00:01.861 ****** skipping: [/cache/rhel-8-y.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.cockpit : Manage cockpit packages using platform specific package manager if applicable] *** task path: /tmp/tmpzsr38y52/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/main.yml:21 Wednesday 03 August 2022 07:59:20 +0000 (0:00:00.022) 0:00:01.883 ****** included: /tmp/tmpzsr38y52/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/setup-dnf.yml for /cache/rhel-8-y.qcow2.snap => (item=/tmp/tmpzsr38y52/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/setup-dnf.yml) TASK [fedora.linux_system_roles.cockpit : If choosing custom package set, ensure minimal cockpit is included] *** task path: /tmp/tmpzsr38y52/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/setup-dnf.yml:1 Wednesday 03 August 2022 07:59:20 +0000 (0:00:00.034) 0:00:01.917 ****** ok: [/cache/rhel-8-y.qcow2.snap] => { "ansible_facts": { "cockpit_packages": "minimal" }, "changed": false } TASK [fedora.linux_system_roles.cockpit : Ensure Cockpit Web Console packages are installed.] *** task path: /tmp/tmpzsr38y52/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/setup-dnf.yml:6 Wednesday 03 August 2022 07:59:20 +0000 (0:00:00.033) 0:00:01.951 ****** changed: [/cache/rhel-8-y.qcow2.snap] => { "changed": true, "rc": 0, "results": [ "Installed: cockpit-system-273-2.el8.noarch", "Installed: cockpit-ws-273-2.el8.x86_64", "Installed: cockpit-bridge-273-2.el8.x86_64" ] } TASK [fedora.linux_system_roles.cockpit : Create custom port configuration file directory] *** task path: /tmp/tmpzsr38y52/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/main.yml:27 Wednesday 03 August 2022 07:59:39 +0000 (0:00:18.689) 0:00:20.641 ****** skipping: [/cache/rhel-8-y.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.cockpit : Create custom port configuration file] *** task path: /tmp/tmpzsr38y52/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/main.yml:35 Wednesday 03 August 2022 07:59:39 +0000 (0:00:00.030) 0:00:20.671 ****** skipping: [/cache/rhel-8-y.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.cockpit : Check if SELinux is enabled] ********* task path: /tmp/tmpzsr38y52/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/main.yml:51 Wednesday 03 August 2022 07:59:39 +0000 (0:00:00.023) 0:00:20.694 ****** skipping: [/cache/rhel-8-y.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Allow cockpit to own custom port in SELinux policy] ********************** task path: /tmp/tmpzsr38y52/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/main.yml:58 Wednesday 03 August 2022 07:59:39 +0000 (0:00:00.025) 0:00:20.720 ****** skipping: [/cache/rhel-8-y.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.cockpit : Clean up port configuration file for undefined custom port] *** task path: /tmp/tmpzsr38y52/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/main.yml:66 Wednesday 03 August 2022 07:59:39 +0000 (0:00:00.023) 0:00:20.743 ****** ok: [/cache/rhel-8-y.qcow2.snap] => { "changed": false, "path": "/etc/systemd/system/cockpit.socket.d/listen.conf", "state": "absent" } TASK [fedora.linux_system_roles.cockpit : Ensure Cockpit Web Console is started/stopped and enabled/disabled] *** task path: /tmp/tmpzsr38y52/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/main.yml:75 Wednesday 03 August 2022 07:59:39 +0000 (0:00:00.525) 0:00:21.269 ****** changed: [/cache/rhel-8-y.qcow2.snap] => { "changed": true, "enabled": true, "name": "cockpit.socket", "state": "started", "status": { "Accept": "no", "ActiveEnterTimestampMonotonic": "0", "ActiveExitTimestampMonotonic": "0", "ActiveState": "inactive", "After": "sysinit.target systemd-journald.socket system.slice", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "no", "AssertTimestampMonotonic": "0", "Backlog": "128", "Before": "cockpit.service sockets.target cockpit-motd.service shutdown.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 cap_bpf", "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": "0", "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": "6963", "LimitNPROCSoft": "6963", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "6963", "LimitSIGPENDINGSoft": "6963", "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": "sysinit.target system.slice", "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": "11140", "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 [fedora.linux_system_roles.cockpit : Create cockpit.conf configuration file] *** task path: /tmp/tmpzsr38y52/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/main.yml:81 Wednesday 03 August 2022 07:59:40 +0000 (0:00:00.936) 0:00:22.205 ****** skipping: [/cache/rhel-8-y.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.cockpit : Link to configured existing certificate] *** task path: /tmp/tmpzsr38y52/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/main.yml:92 Wednesday 03 August 2022 07:59:40 +0000 (0:00:00.024) 0:00:22.229 ****** skipping: [/cache/rhel-8-y.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.cockpit : Link to configured existing certificate key] *** task path: /tmp/tmpzsr38y52/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/main.yml:102 Wednesday 03 August 2022 07:59:40 +0000 (0:00:00.023) 0:00:22.252 ****** skipping: [/cache/rhel-8-y.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } META: role_complete for /cache/rhel-8-y.qcow2.snap TASK [Allow certmonger to write into Cockpit's certificate directory] ********** task path: /tmp/tmpye5y6l1x/tests/cockpit/tests_certificate_runafter.yml:31 Wednesday 03 August 2022 07:59:40 +0000 (0:00:00.030) 0:00:22.283 ****** ok: [/cache/rhel-8-y.qcow2.snap] => { "changed": false, "gid": 0, "group": "root", "mode": "0755", "owner": "root", "path": "/etc/cockpit/ws-certs.d/", "secontext": "system_u:object_r:cert_t:s0", "size": 6, "state": "directory", "uid": 0 } TASK [Generate certificate with linux-system-roles.certificate] **************** task path: /tmp/tmpye5y6l1x/tests/cockpit/tests_certificate_runafter.yml:38 Wednesday 03 August 2022 07:59:41 +0000 (0:00:00.371) 0:00:22.654 ****** TASK [linux-system-roles.certificate : Set version specific variables] ********* task path: /tmp/tmpye5y6l1x/tests/cockpit/roles/linux-system-roles.certificate/tasks/main.yml:2 Wednesday 03 August 2022 07:59:41 +0000 (0:00:00.042) 0:00:22.697 ****** included: /tmp/tmpye5y6l1x/tests/cockpit/roles/linux-system-roles.certificate/tasks/set_vars.yml for /cache/rhel-8-y.qcow2.snap TASK [linux-system-roles.certificate : Ensure ansible_facts used by role] ****** task path: /tmp/tmpye5y6l1x/tests/cockpit/roles/linux-system-roles.certificate/tasks/set_vars.yml:2 Wednesday 03 August 2022 07:59:41 +0000 (0:00:00.026) 0:00:22.723 ****** ok: [/cache/rhel-8-y.qcow2.snap] TASK [linux-system-roles.certificate : Set platform/version specific variables] *** task path: /tmp/tmpye5y6l1x/tests/cockpit/roles/linux-system-roles.certificate/tasks/set_vars.yml:8 Wednesday 03 August 2022 07:59:41 +0000 (0:00:00.517) 0:00:23.240 ****** skipping: [/cache/rhel-8-y.qcow2.snap] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/rhel-8-y.qcow2.snap] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/rhel-8-y.qcow2.snap] => (item=RedHat_8.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat_8.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/rhel-8-y.qcow2.snap] => (item=RedHat_8.7.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat_8.7.yml", "skip_reason": "Conditional result was False" } TASK [linux-system-roles.certificate : Ensure certificate role dependencies are installed] *** task path: /tmp/tmpye5y6l1x/tests/cockpit/roles/linux-system-roles.certificate/tasks/main.yml:5 Wednesday 03 August 2022 07:59:41 +0000 (0:00:00.040) 0:00:23.280 ****** ok: [/cache/rhel-8-y.qcow2.snap] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [linux-system-roles.certificate : Ensure provider packages are installed] *** task path: /tmp/tmpye5y6l1x/tests/cockpit/roles/linux-system-roles.certificate/tasks/main.yml:22 Wednesday 03 August 2022 07:59:43 +0000 (0:00:01.339) 0:00:24.620 ****** ok: [/cache/rhel-8-y.qcow2.snap] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [linux-system-roles.certificate : Ensure pre-scripts hooks directory exists] *** task path: /tmp/tmpye5y6l1x/tests/cockpit/roles/linux-system-roles.certificate/tasks/main.yml:33 Wednesday 03 August 2022 07:59:44 +0000 (0:00:01.372) 0:00:25.992 ****** ok: [/cache/rhel-8-y.qcow2.snap] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/etc/certmonger//pre-scripts", "secontext": "unconfined_u:object_r:etc_t:s0", "size": 6, "state": "directory", "uid": 0 } TASK [linux-system-roles.certificate : Ensure post-scripts hooks directory exists] *** task path: /tmp/tmpye5y6l1x/tests/cockpit/roles/linux-system-roles.certificate/tasks/main.yml:59 Wednesday 03 August 2022 07:59:44 +0000 (0:00:00.424) 0:00:26.417 ****** ok: [/cache/rhel-8-y.qcow2.snap] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/etc/certmonger//post-scripts", "secontext": "unconfined_u:object_r:etc_t:s0", "size": 6, "state": "directory", "uid": 0 } TASK [linux-system-roles.certificate : Ensure provider service is running] ***** task path: /tmp/tmpye5y6l1x/tests/cockpit/roles/linux-system-roles.certificate/tasks/main.yml:88 Wednesday 03 August 2022 07:59:45 +0000 (0:00:00.402) 0:00:26.819 ****** ok: [/cache/rhel-8-y.qcow2.snap] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "enabled": true, "name": "certmonger", "state": "started", "status": { "ActiveEnterTimestamp": "Wed 2022-08-03 03:58:04 EDT", "ActiveEnterTimestampMonotonic": "25135435", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "dbus.socket systemd-journald.socket network.target sysinit.target dbus.service basic.target syslog.target system.slice", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "yes", "AssertTimestamp": "Wed 2022-08-03 03:58:04 EDT", "AssertTimestampMonotonic": "25122406", "Before": "shutdown.target multi-user.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "BusName": "org.fedorahosted.certmonger", "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": "yes", "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 cap_bpf", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Wed 2022-08-03 03:58:04 EDT", "ConditionTimestampMonotonic": "25122406", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target", "ControlGroup": "/system.slice/certmonger.service", "ControlPID": "0", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "Certificate monitoring and PKI enrollment", "DevicePolicy": "auto", "DynamicUser": "no", "EffectiveCPUs": "", "EffectiveMemoryNodes": "", "EnvironmentFiles": "/etc/sysconfig/certmonger (ignore_errors=yes)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "13077", "ExecMainStartTimestamp": "Wed 2022-08-03 03:58:04 EDT", "ExecMainStartTimestampMonotonic": "25123361", "ExecMainStatus": "0", "ExecStart": "{ path=/usr/sbin/certmonger ; argv[]=/usr/sbin/certmonger -S -p /run/certmonger.pid -n $OPTS ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FragmentPath": "/usr/lib/systemd/system/certmonger.service", "FreezerState": "running", "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": "certmonger.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestamp": "Wed 2022-08-03 03:58:04 EDT", "InactiveExitTimestampMonotonic": "25123403", "InvocationID": "1bc007032d174f0083e023b51041d59b", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "control-group", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "0", "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": "6963", "LimitNPROCSoft": "6963", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "6963", "LimitSIGPENDINGSoft": "6963", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "13077", "MemoryAccounting": "yes", "MemoryCurrent": "6627328", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "MountFlags": "", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAMask": "", "NUMAPolicy": "n/a", "Names": "certmonger.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PIDFile": "/run/certmonger.pid", "PartOf": "dbus.service", "PermissionsStartOnly": "no", "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 dbus.socket system.slice", "Restart": "no", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "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 2022-08-03 03:58:04 EDT", "StateChangeTimestampMonotonic": "25135435", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "running", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "1", "TasksMax": "11140", "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", "WatchdogTimestamp": "Wed 2022-08-03 03:58:04 EDT", "WatchdogTimestampMonotonic": "25135434", "WatchdogUSec": "0" } } TASK [linux-system-roles.certificate : Ensure certificate requests] ************ task path: /tmp/tmpye5y6l1x/tests/cockpit/roles/linux-system-roles.certificate/tasks/main.yml:100 Wednesday 03 August 2022 07:59:45 +0000 (0:00:00.515) 0:00:27.335 ****** changed: [/cache/rhel-8-y.qcow2.snap] => (item={'name': 'monger-cockpit', 'dns': ['localhost', 'www.example.com'], 'ca': 'local', 'group': 'cockpit-ws', 'run_after': 'DEST=/etc/cockpit/ws-certs.d/monger-cockpit.cert\ncat /etc/pki/tls/certs/monger-cockpit.crt \\\n/etc/pki/tls/private/monger-cockpit.key > $DEST\nchmod 640 $DEST\nchown root:cockpit-ws $DEST\n'}) => { "ansible_loop_var": "item", "changed": true, "item": { "ca": "local", "dns": [ "localhost", "www.example.com" ], "group": "cockpit-ws", "name": "monger-cockpit", "run_after": "DEST=/etc/cockpit/ws-certs.d/monger-cockpit.cert\ncat /etc/pki/tls/certs/monger-cockpit.crt \\\n/etc/pki/tls/private/monger-cockpit.key > $DEST\nchmod 640 $DEST\nchown root:cockpit-ws $DEST\n" } } MSG: Certificate requested (new). Pre/Post run hooks updated. File attributes updated. META: role_complete for /cache/rhel-8-y.qcow2.snap TASK [Get PEM of certmonger's local CA] **************************************** task path: /tmp/tmpye5y6l1x/tests/cockpit/tests_certificate_runafter.yml:62 Wednesday 03 August 2022 07:59:46 +0000 (0:00:01.017) 0:00:28.353 ****** changed: [/cache/rhel-8-y.qcow2.snap] => { "changed": true, "cmd": [ "openssl", "pkcs12", "-in", "/var/lib/certmonger/local/creds", "-out", "/var/lib/certmonger/local/ca.pem", "-nokeys", "-nodes", "-passin", "pass:" ], "delta": "0:00:00.006247", "end": "2022-08-03 03:59:45.890052", "rc": 0, "start": "2022-08-03 03:59:45.883805" } TASK [test - cockpit works with TLS and expected certificate] ****************** task path: /tmp/tmpye5y6l1x/tests/cockpit/tests_certificate_runafter.yml:69 Wednesday 03 August 2022 07:59:47 +0000 (0:00:00.487) 0:00:28.840 ****** ok: [/cache/rhel-8-y.qcow2.snap] => { "changed": false, "cmd": [ "curl", "--cacert", "/var/lib/certmonger/local/ca.pem", "https://localhost:9090" ], "delta": "0:00:00.202014", "end": "2022-08-03 03:59:46.439349", "rc": 0, "start": "2022-08-03 03:59:46.237335" } STDOUT: Loading...

Please enable JavaScript to use the Web Console.

STDERR: % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 11363 0 11363 0 0 58572 0 --:--:-- --:--:-- --:--:-- 58572 TASK [test - get certmonger tracking status] *********************************** task path: /tmp/tmpye5y6l1x/tests/cockpit/tests_certificate_runafter.yml:76 Wednesday 03 August 2022 07:59:47 +0000 (0:00:00.556) 0:00:29.396 ****** ok: [/cache/rhel-8-y.qcow2.snap] => { "changed": false, "cmd": [ "getcert", "list", "--tracking-only", "-f", "/etc/pki/tls/certs/monger-cockpit.crt" ], "delta": "0:00:00.042492", "end": "2022-08-03 03:59:46.846180", "rc": 0, "start": "2022-08-03 03:59:46.803688" } STDOUT: Number of certificates and requests being tracked: 1. Request ID '20220803075945': status: MONITORING stuck: no key pair storage: type=FILE,location='/etc/pki/tls/private/monger-cockpit.key' certificate: type=FILE,location='/etc/pki/tls/certs/monger-cockpit.crt' CA: local issuer: CN=28d6b5c9-cf51404c-965693b3-210f251f,CN=Local Signing Authority subject: CN=localhost issued: 2022-08-03 03:59:45 EDT expires: 2023-08-03 03:58:04 EDT dns: localhost,www.example.com key usage: digitalSignature,keyEncipherment eku: id-kp-serverAuth,id-kp-clientAuth pre-save command: post-save command: /etc/certmonger/post-scripts/monger-cockpit-59d1099.sh track: yes auto-renew: yes TASK [test - ensure certificate generation succeeded] ************************** task path: /tmp/tmpye5y6l1x/tests/cockpit/tests_certificate_runafter.yml:83 Wednesday 03 August 2022 07:59:48 +0000 (0:00:00.406) 0:00:29.802 ****** ok: [/cache/rhel-8-y.qcow2.snap] => { "changed": false } MSG: All assertions passed TASK [test - clean up tracked certificate] ************************************* task path: /tmp/tmpye5y6l1x/tests/cockpit/tests_certificate_runafter.yml:87 Wednesday 03 August 2022 07:59:48 +0000 (0:00:00.032) 0:00:29.835 ****** ok: [/cache/rhel-8-y.qcow2.snap] => { "changed": false, "cmd": [ "getcert", "stop-tracking", "-f", "/etc/pki/tls/certs/monger-cockpit.crt" ], "delta": "0:00:00.035076", "end": "2022-08-03 03:59:47.286075", "rc": 0, "start": "2022-08-03 03:59:47.250999" } STDOUT: Request "20220803075945" removed. TASK [test - clean up generated certificate] *********************************** task path: /tmp/tmpye5y6l1x/tests/cockpit/tests_certificate_runafter.yml:94 Wednesday 03 August 2022 07:59:48 +0000 (0:00:00.403) 0:00:30.238 ****** changed: [/cache/rhel-8-y.qcow2.snap] => { "changed": true, "path": "/etc/pki/tls/certs/monger-cockpit.crt", "state": "absent" } TASK [test - clean up generated private key] *********************************** task path: /tmp/tmpye5y6l1x/tests/cockpit/tests_certificate_runafter.yml:99 Wednesday 03 August 2022 07:59:49 +0000 (0:00:00.372) 0:00:30.611 ****** changed: [/cache/rhel-8-y.qcow2.snap] => { "changed": true, "path": "/etc/pki/tls/private/monger-cockpit.key", "state": "absent" } TASK [test - clean up copied certificate] ************************************** task path: /tmp/tmpye5y6l1x/tests/cockpit/tests_certificate_runafter.yml:104 Wednesday 03 August 2022 07:59:49 +0000 (0:00:00.368) 0:00:30.979 ****** changed: [/cache/rhel-8-y.qcow2.snap] => { "changed": true, "path": "/etc/cockpit/ws-certs.d/monger-cockpit.cert", "state": "absent" } TASK [test - generic cleanup] ************************************************** task path: /tmp/tmpye5y6l1x/tests/cockpit/tests_certificate_runafter.yml:109 Wednesday 03 August 2022 07:59:49 +0000 (0:00:00.362) 0:00:31.342 ****** included: /tmp/tmpye5y6l1x/tests/cockpit/tasks/cleanup.yml for /cache/rhel-8-y.qcow2.snap TASK [cleanup - packages] ****************************************************** task path: /tmp/tmpye5y6l1x/tests/cockpit/tasks/cleanup.yml:1 Wednesday 03 August 2022 07:59:49 +0000 (0:00:00.027) 0:00:31.370 ****** changed: [/cache/rhel-8-y.qcow2.snap] => { "changed": true, "rc": 0, "results": [ "Removed: cockpit-bridge-273-2.el8.x86_64", "Removed: cockpit-system-273-2.el8.noarch", "Removed: cockpit-ws-273-2.el8.x86_64" ] } TASK [cleanup - find certificates] ********************************************* task path: /tmp/tmpye5y6l1x/tests/cockpit/tasks/cleanup.yml:13 Wednesday 03 August 2022 08:00:06 +0000 (0:00:17.052) 0:00:48.423 ****** [WARNING]: Skipped '/etc/cockpit/ws-certs.d/' path due to this access issue: '/etc/cockpit/ws-certs.d/' is not a directory ok: [/cache/rhel-8-y.qcow2.snap] => { "changed": false, "examined": 0, "files": [], "matched": 0, "skipped_paths": { "/etc/cockpit/ws-certs.d/": "'/etc/cockpit/ws-certs.d/' is not a directory" } } MSG: Not all paths examined, check warnings for details TASK [cleanup - certificates] ************************************************** task path: /tmp/tmpye5y6l1x/tests/cockpit/tasks/cleanup.yml:23 Wednesday 03 August 2022 08:00:07 +0000 (0:00:00.482) 0:00:48.905 ****** TASK [cleanup - config file] *************************************************** task path: /tmp/tmpye5y6l1x/tests/cockpit/tasks/cleanup.yml:32 Wednesday 03 August 2022 08:00:07 +0000 (0:00:00.021) 0:00:48.927 ****** ok: [/cache/rhel-8-y.qcow2.snap] => { "changed": false, "path": "/etc/cockpit/cockpit.conf", "state": "absent" } TASK [cleanup - port customization] ******************************************** task path: /tmp/tmpye5y6l1x/tests/cockpit/tasks/cleanup.yml:40 Wednesday 03 August 2022 08:00:07 +0000 (0:00:00.366) 0:00:49.294 ****** ok: [/cache/rhel-8-y.qcow2.snap] => { "changed": false, "path": "/etc/systemd/system/cockpit.socket.d/", "state": "absent" } TASK [cleanup - reload systemd] ************************************************ task path: /tmp/tmpye5y6l1x/tests/cockpit/tasks/cleanup.yml:48 Wednesday 03 August 2022 08:00:08 +0000 (0:00:00.370) 0:00:49.665 ****** ok: [/cache/rhel-8-y.qcow2.snap] => { "changed": false, "name": null, "status": {} } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-8-y.qcow2.snap : ok=32 changed=8 unreachable=0 failed=0 skipped=12 rescued=0 ignored=0 Wednesday 03 August 2022 08:00:08 +0000 (0:00:00.631) 0:00:50.297 ****** =============================================================================== fedora.linux_system_roles.cockpit : Ensure Cockpit Web Console packages are installed. -- 18.69s /tmp/tmpzsr38y52/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/setup-dnf.yml:6 cleanup - packages ----------------------------------------------------- 17.05s /tmp/tmpye5y6l1x/tests/cockpit/tasks/cleanup.yml:1 ---------------------------- linux-system-roles.certificate : Ensure provider packages are installed --- 1.37s /tmp/tmpye5y6l1x/tests/cockpit/roles/linux-system-roles.certificate/tasks/main.yml:22 linux-system-roles.certificate : Ensure certificate role dependencies are installed --- 1.34s /tmp/tmpye5y6l1x/tests/cockpit/roles/linux-system-roles.certificate/tasks/main.yml:5 Gathering Facts --------------------------------------------------------- 1.16s /tmp/tmpye5y6l1x/tests/cockpit/tests_certificate_runafter.yml:5 --------------- linux-system-roles.certificate : Ensure certificate requests ------------ 1.02s /tmp/tmpye5y6l1x/tests/cockpit/roles/linux-system-roles.certificate/tasks/main.yml:100 fedora.linux_system_roles.cockpit : Ensure Cockpit Web Console is started/stopped and enabled/disabled --- 0.94s /tmp/tmpzsr38y52/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/main.yml:75 cleanup - reload systemd ------------------------------------------------ 0.63s /tmp/tmpye5y6l1x/tests/cockpit/tasks/cleanup.yml:48 --------------------------- test - cockpit works with TLS and expected certificate ------------------ 0.56s /tmp/tmpye5y6l1x/tests/cockpit/tests_certificate_runafter.yml:69 -------------- fedora.linux_system_roles.cockpit : Clean up port configuration file for undefined custom port --- 0.53s /tmp/tmpzsr38y52/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/main.yml:66 linux-system-roles.certificate : Ensure ansible_facts used by role ------ 0.52s /tmp/tmpye5y6l1x/tests/cockpit/roles/linux-system-roles.certificate/tasks/set_vars.yml:2 linux-system-roles.certificate : Ensure provider service is running ----- 0.52s /tmp/tmpye5y6l1x/tests/cockpit/roles/linux-system-roles.certificate/tasks/main.yml:88 fedora.linux_system_roles.cockpit : Ensure ansible_facts used by role --- 0.51s /tmp/tmpzsr38y52/ansible_collections/fedora/linux_system_roles/roles/cockpit/tasks/set_vars.yml:2 Get PEM of certmonger's local CA ---------------------------------------- 0.49s /tmp/tmpye5y6l1x/tests/cockpit/tests_certificate_runafter.yml:62 -------------- cleanup - find certificates --------------------------------------------- 0.48s /tmp/tmpye5y6l1x/tests/cockpit/tasks/cleanup.yml:13 --------------------------- linux-system-roles.certificate : Ensure pre-scripts hooks directory exists --- 0.42s /tmp/tmpye5y6l1x/tests/cockpit/roles/linux-system-roles.certificate/tasks/main.yml:33 test - get certmonger tracking status ----------------------------------- 0.41s /tmp/tmpye5y6l1x/tests/cockpit/tests_certificate_runafter.yml:76 -------------- test - clean up tracked certificate ------------------------------------- 0.40s /tmp/tmpye5y6l1x/tests/cockpit/tests_certificate_runafter.yml:87 -------------- linux-system-roles.certificate : Ensure post-scripts hooks directory exists --- 0.40s /tmp/tmpye5y6l1x/tests/cockpit/roles/linux-system-roles.certificate/tasks/main.yml:59 test - clean up generated certificate ----------------------------------- 0.37s /tmp/tmpye5y6l1x/tests/cockpit/tests_certificate_runafter.yml:94 --------------