# STDOUT: ---v---v---v---v---v--- ansible-playbook [core 2.14.2] config file = /etc/ansible/ansible.cfg configured module search path = ['/home/jenkins/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /opt/ansible-2.14/lib/python3.9/site-packages/ansible ansible collection location = /WORKDIR/dist-git-certificate-weekly-ci-v5a2fav0/.collection executable location = /opt/ansible-2.14/bin/ansible-playbook python version = 3.9.13 (main, Jun 24 2022, 15:32:51) [GCC 8.5.0 20210514 (Red Hat 8.5.0-13)] (/opt/ansible-2.14/bin/python3.9) jinja version = 3.1.2 libyaml = True Using /etc/ansible/ansible.cfg as config file Skipping callback 'debug', as we already have a stdout callback. Skipping callback 'default', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. PLAYBOOK: tests_run_hooks.yml ************************************************** 2 plays in /WORKDIR/dist-git-certificate-weekly-ci-v5a2fav0/tests/tests_run_hooks.yml PLAY [Issue simple self-signed certificate] ************************************ TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/dist-git-certificate-weekly-ci-v5a2fav0/tests/tests_run_hooks.yml:2 Sunday 12 February 2023 00:11:26 +0000 (0:00:00.539) 0:00:00.539 ******* ok: [sut] TASK [fedora.linux_system_roles.certificate : Set version specific variables] *** task path: /WORKDIR/dist-git-certificate-weekly-ci-v5a2fav0/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:2 Sunday 12 February 2023 00:11:36 +0000 (0:00:09.532) 0:00:10.072 ******* included: /WORKDIR/dist-git-certificate-weekly-ci-v5a2fav0/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml for sut TASK [fedora.linux_system_roles.certificate : Ensure ansible_facts used by role] *** task path: /WORKDIR/dist-git-certificate-weekly-ci-v5a2fav0/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:2 Sunday 12 February 2023 00:11:37 +0000 (0:00:00.583) 0:00:10.655 ******* ok: [sut] TASK [fedora.linux_system_roles.certificate : Set platform/version specific variables] *** task path: /WORKDIR/dist-git-certificate-weekly-ci-v5a2fav0/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:7 Sunday 12 February 2023 00:11:39 +0000 (0:00:01.950) 0:00:12.606 ******* skipping: [sut] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=RedHat_9.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat_9.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=RedHat_9.2.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat_9.2.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => { "changed": false } MSG: All items skipped TASK [fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed] *** task path: /WORKDIR/dist-git-certificate-weekly-ci-v5a2fav0/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Sunday 12 February 2023 00:11:40 +0000 (0:00:01.589) 0:00:14.195 ******* changed: [sut] => { "changed": true, "rc": 0, "results": [ "Installed: python3-cffi-1.14.5-5.el9.x86_64", "Installed: python3-cryptography-36.0.1-2.el9.x86_64", "Installed: python3-ply-3.11-14.el9.noarch", "Installed: python3-pycparser-2.20-6.el9.noarch", "Installed: python3-pyasn1-0.4.8-6.el9.noarch" ] } TASK [fedora.linux_system_roles.certificate : Ensure provider packages are installed] *** task path: /WORKDIR/dist-git-certificate-weekly-ci-v5a2fav0/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:22 Sunday 12 February 2023 00:11:46 +0000 (0:00:05.394) 0:00:19.589 ******* changed: [sut] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": true, "rc": 0, "results": [ "Installed: nss-3.79.0-14.el9_0.x86_64", "Installed: nss-softokn-3.79.0-14.el9_0.x86_64", "Installed: nss-softokn-freebl-3.79.0-14.el9_0.x86_64", "Installed: certmonger-0.79.17-1.el9.x86_64", "Installed: nss-sysinit-3.79.0-14.el9_0.x86_64", "Installed: nss-util-3.79.0-14.el9_0.x86_64", "Installed: nspr-4.34.0-14.el9_0.x86_64" ] } TASK [fedora.linux_system_roles.certificate : Ensure pre-scripts hooks directory exists] *** task path: /WORKDIR/dist-git-certificate-weekly-ci-v5a2fav0/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:33 Sunday 12 February 2023 00:11:51 +0000 (0:00:05.550) 0:00:25.139 ******* changed: [sut] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": true, "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 [fedora.linux_system_roles.certificate : Ensure post-scripts hooks directory exists] *** task path: /WORKDIR/dist-git-certificate-weekly-ci-v5a2fav0/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:59 Sunday 12 February 2023 00:11:55 +0000 (0:00:03.835) 0:00:28.975 ******* changed: [sut] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": true, "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 [fedora.linux_system_roles.certificate : Ensure provider service is running] *** task path: /WORKDIR/dist-git-certificate-weekly-ci-v5a2fav0/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:88 Sunday 12 February 2023 00:11:57 +0000 (0:00:01.625) 0:00:30.600 ******* changed: [sut] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": true, "enabled": true, "name": "certmonger", "state": "started", "status": { "AccessSELinuxContext": "system_u:object_r:certmonger_unit_file_t:s0", "ActiveEnterTimestampMonotonic": "0", "ActiveExitTimestampMonotonic": "0", "ActiveState": "inactive", "After": "dbus.socket system.slice sysinit.target basic.target dbus-broker.service network.target syslog.target systemd-journald.socket", "AllowIsolate": "no", "AssertResult": "no", "AssertTimestampMonotonic": "0", "Before": "shutdown.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "BusName": "org.fedorahosted.certmonger", "CPUAccounting": "yes", "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 cap_checkpoint_restore", "CleanResult": "success", "CollectMode": "inactive", "ConditionResult": "no", "ConditionTimestampMonotonic": "0", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target", "ControlGroupId": "0", "ControlPID": "0", "CoredumpFilter": "0x33", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "Certificate monitoring and PKI enrollment", "DevicePolicy": "auto", "DynamicUser": "no", "EnvironmentFiles": "/etc/sysconfig/certmonger (ignore_errors=yes)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "0", "ExecMainStartTimestampMonotonic": "0", "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 }", "ExecStartEx": "{ path=/usr/sbin/certmonger ; argv[]=/usr/sbin/certmonger -S -p /run/certmonger.pid -n $OPTS ; flags= ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExitType": "main", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FinalKillSignal": "9", "FragmentPath": "/usr/lib/systemd/system/certmonger.service", "FreezerState": "running", "GID": "[not set]", "GuessMainPID": "yes", "IOAccounting": "no", "IOReadBytes": "18446744073709551615", "IOReadOperations": "18446744073709551615", "IOSchedulingClass": "2", "IOSchedulingPriority": "4", "IOWeight": "[not set]", "IOWriteBytes": "18446744073709551615", "IOWriteOperations": "18446744073709551615", "IPAccounting": "no", "IPEgressBytes": "[no data]", "IPEgressPackets": "[no data]", "IPIngressBytes": "[no data]", "IPIngressPackets": "[no data]", "Id": "certmonger.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestampMonotonic": "0", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "control-group", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "0", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "8388608", "LimitMEMLOCKSoft": "8388608", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "524288", "LimitNOFILESoft": "1024", "LimitNPROC": "13988", "LimitNPROCSoft": "13988", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "13988", "LimitSIGPENDINGSoft": "13988", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "0", "ManagedOOMMemoryPressure": "auto", "ManagedOOMMemoryPressureLimit": "0", "ManagedOOMPreference": "none", "ManagedOOMSwap": "auto", "MemoryAccounting": "yes", "MemoryAvailable": "infinity", "MemoryCurrent": "[not set]", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAPolicy": "n/a", "Names": "certmonger.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMPolicy": "stop", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "OnSuccessJobMode": "fail", "PIDFile": "/run/certmonger.pid", "PartOf": "dbus-broker.service", "Perpetual": "no", "PrivateDevices": "no", "PrivateIPC": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProcSubset": "all", "ProtectClock": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectHostname": "no", "ProtectKernelLogs": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectProc": "default", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "ReloadResult": "success", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "system.slice sysinit.target dbus.socket", "Restart": "no", "RestartKillSignal": "15", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "RuntimeRandomizedExtraUSec": "0", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestampMonotonic": "0", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "dead", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "2147483646", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "[not set]", "TasksMax": "22380", "TimeoutAbortUSec": "1min 30s", "TimeoutCleanUSec": "infinity", "TimeoutStartFailureMode": "terminate", "TimeoutStartUSec": "1min 30s", "TimeoutStopFailureMode": "terminate", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "dbus", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "disabled", "UnitFileState": "disabled", "UtmpMode": "init", "WatchdogSignal": "6", "WatchdogTimestampMonotonic": "0", "WatchdogUSec": "infinity" } } TASK [fedora.linux_system_roles.certificate : Ensure certificate requests] ***** task path: /WORKDIR/dist-git-certificate-weekly-ci-v5a2fav0/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:99 Sunday 12 February 2023 00:12:06 +0000 (0:00:09.428) 0:00:40.029 ******* changed: [sut] => (item={'name': 'mycert_run_hooks', 'dns': 'www.example.com', 'ca': 'self-sign', 'run_before': 'touch /etc/pki/before_cert.tmp\n', 'run_after': 'touch /etc/pki/after_cert.tmp\n'}) => { "ansible_loop_var": "item", "changed": true, "item": { "ca": "self-sign", "dns": "www.example.com", "name": "mycert_run_hooks", "run_after": "touch /etc/pki/after_cert.tmp\n", "run_before": "touch /etc/pki/before_cert.tmp\n" } } MSG: Certificate requested (new). Pre/Post run hooks updated. PLAY [Verify certificate] ****************************************************** TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/dist-git-certificate-weekly-ci-v5a2fav0/tests/tests_run_hooks.yml:17 Sunday 12 February 2023 00:12:13 +0000 (0:00:06.598) 0:00:46.627 ******* ok: [sut] TASK [Verify each certificate] ************************************************* task path: /WORKDIR/dist-git-certificate-weekly-ci-v5a2fav0/tests/tests_run_hooks.yml:31 Sunday 12 February 2023 00:12:15 +0000 (0:00:02.580) 0:00:49.208 ******* included: /WORKDIR/dist-git-certificate-weekly-ci-v5a2fav0/tests/tasks/assert_certificate_parameters.yml for sut => (item={'path': '/etc/pki/tls/certs/mycert_run_hooks.crt', 'key_path': '/etc/pki/tls/private/mycert_run_hooks.key', 'subject': [{'name': 'commonName', 'oid': '2.5.4.3', 'value': 'www.example.com'}], 'subject_alt_name': [{'name': 'DNS', 'value': 'www.example.com'}]}) TASK [Set virtualenv_path] ***************************************************** task path: /WORKDIR/dist-git-certificate-weekly-ci-v5a2fav0/tests/tasks/assert_certificate_parameters.yml:2 Sunday 12 February 2023 00:12:16 +0000 (0:00:00.819) 0:00:50.028 ******* ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/dist-git-certificate-weekly-ci-v5a2fav0/tests/tasks/assert_certificate_parameters.yml:6 Sunday 12 February 2023 00:12:16 +0000 (0:00:00.300) 0:00:50.329 ******* ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Install the package, force upgrade] ************************************** task path: /WORKDIR/dist-git-certificate-weekly-ci-v5a2fav0/tests/tasks/assert_certificate_parameters.yml:11 Sunday 12 February 2023 00:12:18 +0000 (0:00:02.155) 0:00:52.485 ******* changed: [sut] => { "changed": true, "cmd": [ "/tmp/certificate-tests-venv/bin/pip3", "install", "-U", "pip" ], "name": [ "pip" ], "requirements": null, "state": "latest", "version": null, "virtualenv": "/tmp/certificate-tests-venv" } STDOUT: Requirement already satisfied: pip in ./certificate-tests-venv/lib/python3.9/site-packages (21.2.3) Collecting pip Downloading pip-23.0-py3-none-any.whl (2.1 MB) Installing collected packages: pip Attempting uninstall: pip Found existing installation: pip 21.2.3 Uninstalling pip-21.2.3: Successfully uninstalled pip-21.2.3 Successfully installed pip-23.0 TASK [Install certreader] ****************************************************** task path: /WORKDIR/dist-git-certificate-weekly-ci-v5a2fav0/tests/tasks/assert_certificate_parameters.yml:18 Sunday 12 February 2023 00:12:32 +0000 (0:00:13.735) 0:01:06.221 ******* changed: [sut] => { "changed": true, "cmd": [ "/tmp/certificate-tests-venv/bin/pip3", "install", "cryptography<35", "certreader>=0.1.1" ], "name": [ "cryptography<35", "certreader>=0.1.1" ], "requirements": null, "state": "present", "version": null, "virtualenv": "/tmp/certificate-tests-venv" } STDOUT: Collecting cryptography<35 Downloading cryptography-3.4.8-cp36-abi3-manylinux_2_24_x86_64.whl (3.0 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.0/3.0 MB 24.6 MB/s eta 0:00:00 Collecting certreader>=0.1.1 Downloading certreader-0.1.1.tar.gz (4.4 kB) Preparing metadata (setup.py): started Preparing metadata (setup.py): finished with status 'done' Collecting cffi>=1.12 Downloading cffi-1.15.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (441 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 441.2/441.2 kB 30.2 MB/s eta 0:00:00 Collecting pyasn1 Downloading pyasn1-0.4.8-py2.py3-none-any.whl (77 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 77.1/77.1 kB 14.8 MB/s eta 0:00:00 Collecting pyyaml Downloading PyYAML-6.0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (661 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 661.8/661.8 kB 31.5 MB/s eta 0:00:00 Collecting pycparser Downloading pycparser-2.21-py2.py3-none-any.whl (118 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 118.7/118.7 kB 17.9 MB/s eta 0:00:00 Installing collected packages: pyasn1, pyyaml, pycparser, cffi, cryptography, certreader Running setup.py install for certreader: started Running setup.py install for certreader: finished with status 'done' Successfully installed certreader-0.1.1 cffi-1.15.1 cryptography-3.4.8 pyasn1-0.4.8 pycparser-2.21 pyyaml-6.0 STDERR: DEPRECATION: certreader is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be found at https://github.com/pypa/pip/issues/8559 TASK [Retrieve certificate file stats] ***************************************** task path: /WORKDIR/dist-git-certificate-weekly-ci-v5a2fav0/tests/tasks/assert_certificate_parameters.yml:26 Sunday 12 February 2023 00:12:38 +0000 (0:00:05.573) 0:01:11.794 ******* ok: [sut] => { "changed": false, "stat": { "atime": 1676160731.9065852, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "5349374c2d7a2cacf785369f53edf4cb84267c8d", "ctime": 1676160731.9035852, "dev": 51716, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 13377, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1676160731.9035852, "nlink": 1, "path": "/etc/pki/tls/certs/mycert_run_hooks.crt", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1294, "uid": 0, "version": "1900711572", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /WORKDIR/dist-git-certificate-weekly-ci-v5a2fav0/tests/tasks/assert_certificate_parameters.yml:31 Sunday 12 February 2023 00:12:45 +0000 (0:00:07.443) 0:01:19.238 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/dist-git-certificate-weekly-ci-v5a2fav0/tests/tasks/assert_certificate_parameters.yml:37 Sunday 12 February 2023 00:12:47 +0000 (0:00:02.102) 0:01:21.341 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/dist-git-certificate-weekly-ci-v5a2fav0/tests/tasks/assert_certificate_parameters.yml:47 Sunday 12 February 2023 00:12:50 +0000 (0:00:03.127) 0:01:24.469 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/dist-git-certificate-weekly-ci-v5a2fav0/tests/tasks/assert_certificate_parameters.yml:53 Sunday 12 February 2023 00:12:52 +0000 (0:00:01.119) 0:01:25.588 ******* ok: [sut] => { "changed": false, "stat": { "atime": 1676160731.830584, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "ade8fc4562eb9c7a96b8899c41e35025d1377c30", "ctime": 1676160731.9035852, "dev": 51716, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 25178370, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1676160731.9035852, "nlink": 1, "path": "/etc/pki/tls/private/mycert_run_hooks.key", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1704, "uid": 0, "version": "2332979128", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /WORKDIR/dist-git-certificate-weekly-ci-v5a2fav0/tests/tasks/assert_certificate_parameters.yml:58 Sunday 12 February 2023 00:12:53 +0000 (0:00:01.145) 0:01:26.734 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/dist-git-certificate-weekly-ci-v5a2fav0/tests/tasks/assert_certificate_parameters.yml:64 Sunday 12 February 2023 00:12:54 +0000 (0:00:01.442) 0:01:28.176 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/dist-git-certificate-weekly-ci-v5a2fav0/tests/tasks/assert_certificate_parameters.yml:74 Sunday 12 February 2023 00:12:57 +0000 (0:00:02.888) 0:01:31.065 ******* ok: [sut] => { "changed": false, "cmd": [ "/tmp/certificate-tests-venv/bin/certreader2json", "/etc/pki/tls/certs/mycert_run_hooks.crt" ], "delta": "0:00:00.269150", "end": "2023-02-12 00:13:05.286911", "rc": 0, "start": "2023-02-12 00:13:05.017761" } STDOUT: { "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "extensions": { "keyUsage": { "value": [ "digital_signature", "key_encipherment" ], "critical": false }, "subjectAltName": { "value": [ { "name": "DNS", "value": "www.example.com" } ], "critical": false }, "extendedKeyUsage": { "value": [ { "name": "id-kp-serverAuth", "oid": "1.3.6.1.5.5.7.3.1" }, { "name": "id-kp-clientAuth", "oid": "1.3.6.1.5.5.7.3.2" } ], "critical": false }, "basicConstraints": { "value": { "ca": false }, "critical": true }, "subjectKeyIdentifier": { "value": "EA:40:05:CF:02:5F:73:2E:63:96:53:48:E1:F9:94:1F:F2:3A:6E:07", "critical": false }, "authorityKeyIdentifier": { "value": "58:D9:75:CE:BB:23:C7:FB:88:4F:0C:8C:84:92:E7:05:E6:69:F8:05", "critical": false } }, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "55:6F:8A:4C:66:00:C7:68:96:FD:63:72:E2:7F:B2:3A:F9:25:33:77:09:1D:6B:BC:A0:F5:5B:F6:15:4C:B8:50:99:56:66:92:59:6A:C2:BE:AE:D5:25:BA:84:94:3A:54:E7:01:E5:FF:F3:E1:1A:DA:B5:26:50:27:72:41:9D:B7:FD:A8:60:A1:CF:55:7E:B8:F7:26:2E:F3:B8:EF:47:FF:7F:5F:0D:1A:98:14:A2:EF:40:E3:C9:AF:73:23:D1:BE:FA:E6:3A:B7:9F:26:2C:D6:81:C8:91:2F:D1:A3:67:FE:9B:71:14:87:A1:66:81:7F:57:F3:64:BC:8A:D9:A6:81:7F:1F:B7:4A:7A:47:CB:9B:33:52:F0:3A:46:78:E9:4D:F4:A9:96:0B:05:B3:C2:58:B8:FB:2A:26:CE:BC:8A:F9:04:74:82:A6:CB:AD:A7:58:74:33:73:F4:50:26:A7:CA:13:79:BA:D5:67:4D:DA:15:CC:8D:27:D6:E7:94:CF:2C:47:17:AB:34:0D:A6:B9:1E:4E:AD:4A:B0:6E:B3:1A:50:CD:7E:0E:B1:ED:6C:8C:F6:F5:EB:F7:50:F4:49:D4:C3:80:0F:67:F4:91:3B:A9:04:69:A9:DF:40:03:05:E9:76:77:EC:62:A8:A2:DF:F3:69:13:E4:1E:1B:EB:35:29:EF" }, "key_size": 2048, "validity": { "not_valid_after": "2024-02-12 00:12:06", "not_valid_before": "2023-02-12 00:12:11" } } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/dist-git-certificate-weekly-ci-v5a2fav0/tests/tasks/assert_certificate_parameters.yml:79 Sunday 12 February 2023 00:13:05 +0000 (0:00:08.263) 0:01:39.328 ******* ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "58:D9:75:CE:BB:23:C7:FB:88:4F:0C:8C:84:92:E7:05:E6:69:F8:05" }, "basicConstraints": { "critical": true, "value": { "ca": false } }, "extendedKeyUsage": { "critical": false, "value": [ { "name": "id-kp-serverAuth", "oid": "1.3.6.1.5.5.7.3.1" }, { "name": "id-kp-clientAuth", "oid": "1.3.6.1.5.5.7.3.2" } ] }, "keyUsage": { "critical": false, "value": [ "digital_signature", "key_encipherment" ] }, "subjectAltName": { "critical": false, "value": [ { "name": "DNS", "value": "www.example.com" } ] }, "subjectKeyIdentifier": { "critical": false, "value": "EA:40:05:CF:02:5F:73:2E:63:96:53:48:E1:F9:94:1F:F2:3A:6E:07" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "55:6F:8A:4C:66:00:C7:68:96:FD:63:72:E2:7F:B2:3A:F9:25:33:77:09:1D:6B:BC:A0:F5:5B:F6:15:4C:B8:50:99:56:66:92:59:6A:C2:BE:AE:D5:25:BA:84:94:3A:54:E7:01:E5:FF:F3:E1:1A:DA:B5:26:50:27:72:41:9D:B7:FD:A8:60:A1:CF:55:7E:B8:F7:26:2E:F3:B8:EF:47:FF:7F:5F:0D:1A:98:14:A2:EF:40:E3:C9:AF:73:23:D1:BE:FA:E6:3A:B7:9F:26:2C:D6:81:C8:91:2F:D1:A3:67:FE:9B:71:14:87:A1:66:81:7F:57:F3:64:BC:8A:D9:A6:81:7F:1F:B7:4A:7A:47:CB:9B:33:52:F0:3A:46:78:E9:4D:F4:A9:96:0B:05:B3:C2:58:B8:FB:2A:26:CE:BC:8A:F9:04:74:82:A6:CB:AD:A7:58:74:33:73:F4:50:26:A7:CA:13:79:BA:D5:67:4D:DA:15:CC:8D:27:D6:E7:94:CF:2C:47:17:AB:34:0D:A6:B9:1E:4E:AD:4A:B0:6E:B3:1A:50:CD:7E:0E:B1:ED:6C:8C:F6:F5:EB:F7:50:F4:49:D4:C3:80:0F:67:F4:91:3B:A9:04:69:A9:DF:40:03:05:E9:76:77:EC:62:A8:A2:DF:F3:69:13:E4:1E:1B:EB:35:29:EF" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "2024-02-12 00:12:06", "not_valid_before": "2023-02-12 00:12:11" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/dist-git-certificate-weekly-ci-v5a2fav0/tests/tasks/assert_certificate_parameters.yml:83 Sunday 12 February 2023 00:13:07 +0000 (0:00:01.718) 0:01:41.046 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/dist-git-certificate-weekly-ci-v5a2fav0/tests/tasks/assert_certificate_parameters.yml:91 Sunday 12 February 2023 00:13:11 +0000 (0:00:04.319) 0:01:45.366 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/dist-git-certificate-weekly-ci-v5a2fav0/tests/tasks/assert_certificate_parameters.yml:99 Sunday 12 February 2023 00:13:12 +0000 (0:00:01.147) 0:01:46.513 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/dist-git-certificate-weekly-ci-v5a2fav0/tests/tasks/assert_certificate_parameters.yml:106 Sunday 12 February 2023 00:13:13 +0000 (0:00:00.761) 0:01:47.274 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/dist-git-certificate-weekly-ci-v5a2fav0/tests/tasks/assert_certificate_parameters.yml:118 Sunday 12 February 2023 00:13:15 +0000 (0:00:01.628) 0:01:48.903 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/dist-git-certificate-weekly-ci-v5a2fav0/tests/tasks/assert_certificate_parameters.yml:132 Sunday 12 February 2023 00:13:18 +0000 (0:00:02.981) 0:01:51.885 ******* ok: [sut] => { "changed": false, "cmd": "set -euo pipefail; getcert list -f /etc/pki/tls/certs/mycert_run_hooks.crt | grep 'auto-renew' | sed 's/^\\s\\+auto-renew: //g'", "delta": "0:00:00.053435", "end": "2023-02-12 00:13:19.450224", "rc": 0, "start": "2023-02-12 00:13:19.396789" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/dist-git-certificate-weekly-ci-v5a2fav0/tests/tasks/assert_certificate_parameters.yml:141 Sunday 12 February 2023 00:13:20 +0000 (0:00:01.914) 0:01:53.800 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Get certificate timestamp] *********************************************** task path: /WORKDIR/dist-git-certificate-weekly-ci-v5a2fav0/tests/tests_run_hooks.yml:39 Sunday 12 February 2023 00:13:24 +0000 (0:00:04.267) 0:01:58.067 ******* ok: [sut] => { "changed": false, "stat": { "atime": 1676160731.9065852, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "5349374c2d7a2cacf785369f53edf4cb84267c8d", "ctime": 1676160731.9035852, "dev": 51716, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 13377, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1676160731.9035852, "nlink": 1, "path": "/etc/pki/tls/certs/mycert_run_hooks.crt", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1294, "uid": 0, "version": "1900711572", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Get pre-run file timestamp] ********************************************** task path: /WORKDIR/dist-git-certificate-weekly-ci-v5a2fav0/tests/tests_run_hooks.yml:43 Sunday 12 February 2023 00:13:26 +0000 (0:00:02.050) 0:02:00.118 ******* ok: [sut] => { "changed": false, "stat": { "atime": 1676160731.8995852, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "checksum": "da39a3ee5e6b4b0d3255bfef95601890afd80709", "ctime": 1676160731.8995852, "dev": 51716, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 13267, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "inode/x-empty", "mode": "0600", "mtime": 1676160731.8995852, "nlink": 1, "path": "/etc/pki/before_cert.tmp", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 0, "uid": 0, "version": "4072404723", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Get post-run file timestamp] ********************************************* task path: /WORKDIR/dist-git-certificate-weekly-ci-v5a2fav0/tests/tests_run_hooks.yml:47 Sunday 12 February 2023 00:13:29 +0000 (0:00:03.206) 0:02:03.324 ******* ok: [sut] => { "changed": false, "stat": { "atime": 1676160731.944586, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "checksum": "da39a3ee5e6b4b0d3255bfef95601890afd80709", "ctime": 1676160731.944586, "dev": 51716, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 13681, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "inode/x-empty", "mode": "0600", "mtime": 1676160731.944586, "nlink": 1, "path": "/etc/pki/after_cert.tmp", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 0, "uid": 0, "version": "3831525036", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Assert file created before cert] ***************************************** task path: /WORKDIR/dist-git-certificate-weekly-ci-v5a2fav0/tests/tests_run_hooks.yml:51 Sunday 12 February 2023 00:13:31 +0000 (0:00:01.872) 0:02:05.197 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Assert file created after cert] ****************************************** task path: /WORKDIR/dist-git-certificate-weekly-ci-v5a2fav0/tests/tests_run_hooks.yml:58 Sunday 12 February 2023 00:13:32 +0000 (0:00:00.687) 0:02:05.884 ******* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Get the ansible_managed comment in pre/post-scripts] ********************* task path: /WORKDIR/dist-git-certificate-weekly-ci-v5a2fav0/tests/tests_run_hooks.yml:66 Sunday 12 February 2023 00:13:33 +0000 (0:00:00.693) 0:02:06.578 ******* ok: [sut] => { "changed": false, "cmd": [ "find", "/etc/certmonger/pre-scripts", "/etc/certmonger/post-scripts", "-type", "f", "-exec", "grep", "^# Ansible managed", "{}", ";" ], "delta": "0:00:00.006567", "end": "2023-02-12 00:13:34.296826", "rc": 0, "start": "2023-02-12 00:13:34.290259" } STDOUT: # Ansible managed # Ansible managed TASK [Verify the ansible_managed comment in pre/post-scripts] ****************** task path: /WORKDIR/dist-git-certificate-weekly-ci-v5a2fav0/tests/tests_run_hooks.yml:73 Sunday 12 February 2023 00:13:34 +0000 (0:00:01.776) 0:02:08.354 ******* ok: [sut] => { "changed": false } MSG: All assertions passed PLAY RECAP ********************************************************************* sut : ok=38 changed=8 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 Sunday 12 February 2023 00:13:36 +0000 (0:00:01.975) 0:02:10.329 ******* =============================================================================== Install the package, force upgrade ------------------------------------- 13.74s /WORKDIR/dist-git-certificate-weekly-ci-v5a2fav0/tests/tasks/assert_certificate_parameters.yml:11 Gathering Facts --------------------------------------------------------- 9.53s /WORKDIR/dist-git-certificate-weekly-ci-v5a2fav0/tests/tests_run_hooks.yml:2 -- fedora.linux_system_roles.certificate : Ensure provider service is running --- 9.43s /WORKDIR/dist-git-certificate-weekly-ci-v5a2fav0/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:88 Parse certificate ------------------------------------------------------- 8.26s /WORKDIR/dist-git-certificate-weekly-ci-v5a2fav0/tests/tasks/assert_certificate_parameters.yml:74 Retrieve certificate file stats ----------------------------------------- 7.44s /WORKDIR/dist-git-certificate-weekly-ci-v5a2fav0/tests/tasks/assert_certificate_parameters.yml:26 fedora.linux_system_roles.certificate : Ensure certificate requests ----- 6.60s /WORKDIR/dist-git-certificate-weekly-ci-v5a2fav0/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:99 Install certreader ------------------------------------------------------ 5.57s /WORKDIR/dist-git-certificate-weekly-ci-v5a2fav0/tests/tasks/assert_certificate_parameters.yml:18 fedora.linux_system_roles.certificate : Ensure provider packages are installed --- 5.55s /WORKDIR/dist-git-certificate-weekly-ci-v5a2fav0/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:22 fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed --- 5.39s /WORKDIR/dist-git-certificate-weekly-ci-v5a2fav0/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Verify certificate subject ---------------------------------------------- 4.32s /WORKDIR/dist-git-certificate-weekly-ci-v5a2fav0/tests/tasks/assert_certificate_parameters.yml:83 Verify certificate auto-renew flag -------------------------------------- 4.27s /WORKDIR/dist-git-certificate-weekly-ci-v5a2fav0/tests/tasks/assert_certificate_parameters.yml:141 fedora.linux_system_roles.certificate : Ensure pre-scripts hooks directory exists --- 3.84s /WORKDIR/dist-git-certificate-weekly-ci-v5a2fav0/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:33 Get pre-run file timestamp ---------------------------------------------- 3.21s /WORKDIR/dist-git-certificate-weekly-ci-v5a2fav0/tests/tests_run_hooks.yml:43 - Verify certificate file owner and group --------------------------------- 3.13s /WORKDIR/dist-git-certificate-weekly-ci-v5a2fav0/tests/tasks/assert_certificate_parameters.yml:37 Verify certificate Extended Key Usage ----------------------------------- 2.98s /WORKDIR/dist-git-certificate-weekly-ci-v5a2fav0/tests/tasks/assert_certificate_parameters.yml:118 Verify key file owner and group ----------------------------------------- 2.89s /WORKDIR/dist-git-certificate-weekly-ci-v5a2fav0/tests/tasks/assert_certificate_parameters.yml:64 Gathering Facts --------------------------------------------------------- 2.58s /WORKDIR/dist-git-certificate-weekly-ci-v5a2fav0/tests/tests_run_hooks.yml:17 - Ensure python3 is installed --------------------------------------------- 2.16s /WORKDIR/dist-git-certificate-weekly-ci-v5a2fav0/tests/tasks/assert_certificate_parameters.yml:6 Verify if certificate file exists --------------------------------------- 2.10s /WORKDIR/dist-git-certificate-weekly-ci-v5a2fav0/tests/tasks/assert_certificate_parameters.yml:31 Get certificate timestamp ----------------------------------------------- 2.05s /WORKDIR/dist-git-certificate-weekly-ci-v5a2fav0/tests/tests_run_hooks.yml:39 - ---^---^---^---^---^--- # STDERR: ---v---v---v---v---v--- [DEPRECATION WARNING]: [defaults]callback_whitelist option, normalizing names to new standard, use callbacks_enabled instead. This feature will be removed from ansible-core in version 2.15. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. ---^---^---^---^---^---