# 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_no_auto_renew.yml ********************************************** 2 plays in /WORKDIR/dist-git-certificate-weekly-ci-v5a2fav0/tests/tests_no_auto_renew.yml PLAY [Issue simple self-signed certificate] ************************************ TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/dist-git-certificate-weekly-ci-v5a2fav0/tests/tests_no_auto_renew.yml:2 Saturday 11 February 2023 23:47:03 +0000 (0:00:00.774) 0:00:00.774 ***** 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 Saturday 11 February 2023 23:47:09 +0000 (0:00:06.433) 0:00:07.207 ***** 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 Saturday 11 February 2023 23:47:10 +0000 (0:00:00.979) 0:00:08.186 ***** 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 Saturday 11 February 2023 23:47:13 +0000 (0:00:02.509) 0:00:10.695 ***** 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 Saturday 11 February 2023 23:47:15 +0000 (0:00:01.788) 0:00:12.484 ***** 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 Saturday 11 February 2023 23:47:23 +0000 (0:00:08.904) 0:00:21.389 ***** 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 Saturday 11 February 2023 23:47:30 +0000 (0:00:06.610) 0:00:27.999 ***** 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 Saturday 11 February 2023 23:47:38 +0000 (0:00:08.217) 0:00:36.216 ***** 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 Saturday 11 February 2023 23:47:43 +0000 (0:00:04.667) 0:00:40.884 ***** 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": "system.slice dbus-broker.service sysinit.target dbus.socket network.target syslog.target basic.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": "sysinit.target dbus.socket system.slice", "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 Saturday 11 February 2023 23:48:02 +0000 (0:00:18.719) 0:00:59.603 ***** changed: [sut] => (item={'name': 'mycert_no_auto_renew', 'dns': 'www.example.com', 'ca': 'self-sign', 'auto_renew': False}) => { "ansible_loop_var": "item", "changed": true, "item": { "auto_renew": false, "ca": "self-sign", "dns": "www.example.com", "name": "mycert_no_auto_renew" } } MSG: Certificate requested (new). changed: [sut] => (item={'name': 'defaultcert', 'dns': 'www.example.com', 'ca': 'self-sign'}) => { "ansible_loop_var": "item", "changed": true, "item": { "ca": "self-sign", "dns": "www.example.com", "name": "defaultcert" } } MSG: Certificate requested (new). PLAY [Verify certificate] ****************************************************** TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/dist-git-certificate-weekly-ci-v5a2fav0/tests/tests_no_auto_renew.yml:17 Saturday 11 February 2023 23:48:28 +0000 (0:00:26.632) 0:01:26.236 ***** ok: [sut] TASK [Verify each certificate] ************************************************* task path: /WORKDIR/dist-git-certificate-weekly-ci-v5a2fav0/tests/tests_no_auto_renew.yml:42 Saturday 11 February 2023 23:48:31 +0000 (0:00:02.824) 0:01:29.061 ***** included: /WORKDIR/dist-git-certificate-weekly-ci-v5a2fav0/tests/tasks/assert_certificate_parameters.yml for sut => (item={'path': '/etc/pki/tls/certs/mycert_no_auto_renew.crt', 'key_path': '/etc/pki/tls/private/mycert_no_auto_renew.key', 'subject': [{'name': 'commonName', 'oid': '2.5.4.3', 'value': 'www.example.com'}], 'subject_alt_name': [{'name': 'DNS', 'value': 'www.example.com'}], 'auto_renew': False}) included: /WORKDIR/dist-git-certificate-weekly-ci-v5a2fav0/tests/tasks/assert_certificate_parameters.yml for sut => (item={'path': '/etc/pki/tls/certs/defaultcert.crt', 'key_path': '/etc/pki/tls/private/defaultcert.key', 'subject': [{'name': 'commonName', 'oid': '2.5.4.3', 'value': 'www.example.com'}], 'subject_alt_name': [{'name': 'DNS', 'value': 'www.example.com'}], 'auto_renew': True}) TASK [Set virtualenv_path] ***************************************************** task path: /WORKDIR/dist-git-certificate-weekly-ci-v5a2fav0/tests/tasks/assert_certificate_parameters.yml:2 Saturday 11 February 2023 23:48:35 +0000 (0:00:03.866) 0:01:32.927 ***** 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 Saturday 11 February 2023 23:48:36 +0000 (0:00:01.465) 0:01:34.393 ***** 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 Saturday 11 February 2023 23:48:39 +0000 (0:00:02.900) 0:01:37.294 ***** 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 Saturday 11 February 2023 23:48:55 +0000 (0:00:15.334) 0:01:52.628 ***** 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 22.9 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 29.9 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.5 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 26.6 MB/s eta 0:00:00 Collecting pycparser Downloading pycparser-2.21-py2.py3-none-any.whl (118 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 118.7/118.7 kB 20.7 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 Saturday 11 February 2023 23:49:00 +0000 (0:00:05.284) 0:01:57.912 ***** ok: [sut] => { "changed": false, "stat": { "atime": 1676159299.7932198, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "f25076ddb05cdbf1e684719c353000a32aa48118", "ctime": 1676159299.7902195, "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": "text/plain", "mode": "0600", "mtime": 1676159299.7902195, "nlink": 1, "path": "/etc/pki/tls/certs/mycert_no_auto_renew.crt", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1294, "uid": 0, "version": "216293244", "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 Saturday 11 February 2023 23:49:11 +0000 (0:00:10.836) 0:02:08.749 ***** 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 Saturday 11 February 2023 23:49:12 +0000 (0:00:00.985) 0:02:09.735 ***** 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 Saturday 11 February 2023 23:49:13 +0000 (0:00:01.108) 0:02:10.843 ***** 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 Saturday 11 February 2023 23:49:16 +0000 (0:00:02.910) 0:02:13.754 ***** ok: [sut] => { "changed": false, "stat": { "atime": 1676159299.721216, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "80130ad248cf6a7c908aecfa2312be140756866a", "ctime": 1676159299.7902195, "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": 1676159299.7902195, "nlink": 1, "path": "/etc/pki/tls/private/mycert_no_auto_renew.key", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1704, "uid": 0, "version": "2718795629", "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 Saturday 11 February 2023 23:49:18 +0000 (0:00:01.818) 0:02:15.573 ***** 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 Saturday 11 February 2023 23:49:19 +0000 (0:00:01.566) 0:02:17.140 ***** 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 Saturday 11 February 2023 23:49:22 +0000 (0:00:02.786) 0:02:19.927 ***** ok: [sut] => { "changed": false, "cmd": [ "/tmp/certificate-tests-venv/bin/certreader2json", "/etc/pki/tls/certs/mycert_no_auto_renew.crt" ], "delta": "0:00:00.271795", "end": "2023-02-11 23:49:26.722723", "rc": 0, "start": "2023-02-11 23:49:26.450928" } 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": "C4:D3:3B:73:C4:79:FD:3C:1E:59:E2:06:45:FC:CD:E9:EE:A9:F9:68", "critical": false }, "authorityKeyIdentifier": { "value": "38:A8:23:A4:B4:51:97:73:C4:AE:FD:DD:36:8E:2C:68:5C:91:DD:BA", "critical": false } }, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "49:15:14:EB:59:C7:94:71:69:B5:1B:2E:E6:D7:F5:4F:95:1E:66:7E:D7:C7:24:95:B5:D8:7B:45:5A:A0:F6:70:0A:BE:FF:2A:D6:F1:4C:E0:3B:16:5D:7C:B5:D1:B5:9B:6A:1A:A0:3E:BE:83:9D:31:42:E4:C7:8B:CC:85:20:DB:FB:AA:E7:C8:A3:E9:3B:E7:0D:A8:14:C3:64:31:0C:DC:48:0E:8D:54:77:09:88:AA:46:A6:B4:7D:0C:92:80:98:7B:F3:18:06:19:45:A1:4E:10:E6:CB:B7:27:26:29:DB:02:72:25:FB:E0:F5:D4:DE:C2:9F:DC:9F:16:A5:BD:5E:BA:92:FD:7D:66:82:CE:66:5A:EB:73:BF:7D:14:53:D7:1A:75:56:39:FA:F7:16:21:B7:62:0A:76:85:3C:D7:7C:F6:30:D7:47:68:E8:84:E9:9A:C1:3E:BD:1E:0A:EC:DD:8E:01:2F:27:2E:BF:9E:8D:8E:32:E3:65:DD:BE:4E:A0:72:3B:3A:A9:CA:CA:AB:E6:99:72:0F:33:00:04:74:74:FC:13:F0:E7:11:69:2B:C0:FE:44:44:2C:DF:53:E7:58:0D:7B:DD:7F:63:00:CA:8E:5D:ED:8A:A6:C9:DB:39:C3:3B:56:82:A9:3F:73:6D:57:89:B3:F8:93:AA:E4:CA:62" }, "key_size": 2048, "validity": { "not_valid_after": "2024-02-11 23:48:01", "not_valid_before": "2023-02-11 23:48:19" } } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/dist-git-certificate-weekly-ci-v5a2fav0/tests/tasks/assert_certificate_parameters.yml:79 Saturday 11 February 2023 23:49:26 +0000 (0:00:04.466) 0:02:24.393 ***** ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "38:A8:23:A4:B4:51:97:73:C4:AE:FD:DD:36:8E:2C:68:5C:91:DD:BA" }, "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": "C4:D3:3B:73:C4:79:FD:3C:1E:59:E2:06:45:FC:CD:E9:EE:A9:F9:68" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "49:15:14:EB:59:C7:94:71:69:B5:1B:2E:E6:D7:F5:4F:95:1E:66:7E:D7:C7:24:95:B5:D8:7B:45:5A:A0:F6:70:0A:BE:FF:2A:D6:F1:4C:E0:3B:16:5D:7C:B5:D1:B5:9B:6A:1A:A0:3E:BE:83:9D:31:42:E4:C7:8B:CC:85:20:DB:FB:AA:E7:C8:A3:E9:3B:E7:0D:A8:14:C3:64:31:0C:DC:48:0E:8D:54:77:09:88:AA:46:A6:B4:7D:0C:92:80:98:7B:F3:18:06:19:45:A1:4E:10:E6:CB:B7:27:26:29:DB:02:72:25:FB:E0:F5:D4:DE:C2:9F:DC:9F:16:A5:BD:5E:BA:92:FD:7D:66:82:CE:66:5A:EB:73:BF:7D:14:53:D7:1A:75:56:39:FA:F7:16:21:B7:62:0A:76:85:3C:D7:7C:F6:30:D7:47:68:E8:84:E9:9A:C1:3E:BD:1E:0A:EC:DD:8E:01:2F:27:2E:BF:9E:8D:8E:32:E3:65:DD:BE:4E:A0:72:3B:3A:A9:CA:CA:AB:E6:99:72:0F:33:00:04:74:74:FC:13:F0:E7:11:69:2B:C0:FE:44:44:2C:DF:53:E7:58:0D:7B:DD:7F:63:00:CA:8E:5D:ED:8A:A6:C9:DB:39:C3:3B:56:82:A9:3F:73:6D:57:89:B3:F8:93:AA:E4:CA:62" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "2024-02-11 23:48:01", "not_valid_before": "2023-02-11 23:48:19" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/dist-git-certificate-weekly-ci-v5a2fav0/tests/tasks/assert_certificate_parameters.yml:83 Saturday 11 February 2023 23:49:29 +0000 (0:00:02.137) 0:02:26.530 ***** 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 Saturday 11 February 2023 23:49:30 +0000 (0:00:01.453) 0:02:27.984 ***** 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 Saturday 11 February 2023 23:49:31 +0000 (0:00:00.488) 0:02:28.472 ***** 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 Saturday 11 February 2023 23:49:32 +0000 (0:00:01.235) 0:02:29.708 ***** 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 Saturday 11 February 2023 23:49:34 +0000 (0:00:02.047) 0:02:31.755 ***** 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 Saturday 11 February 2023 23:49:35 +0000 (0:00:01.348) 0:02:33.103 ***** ok: [sut] => { "changed": false, "cmd": "set -euo pipefail; getcert list -f /etc/pki/tls/certs/mycert_no_auto_renew.crt | grep 'auto-renew' | sed 's/^\\s\\+auto-renew: //g'", "delta": "0:00:00.057311", "end": "2023-02-11 23:49:37.244950", "rc": 0, "start": "2023-02-11 23:49:37.187639" } STDOUT: no TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/dist-git-certificate-weekly-ci-v5a2fav0/tests/tasks/assert_certificate_parameters.yml:141 Saturday 11 February 2023 23:49:37 +0000 (0:00:02.051) 0:02:35.155 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Set virtualenv_path] ***************************************************** task path: /WORKDIR/dist-git-certificate-weekly-ci-v5a2fav0/tests/tasks/assert_certificate_parameters.yml:2 Saturday 11 February 2023 23:49:39 +0000 (0:00:02.240) 0:02:37.395 ***** 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 Saturday 11 February 2023 23:49:41 +0000 (0:00:01.376) 0:02:38.772 ***** 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 Saturday 11 February 2023 23:49:43 +0000 (0:00:02.438) 0:02:41.211 ***** ok: [sut] => { "changed": false, "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 (23.0) TASK [Install certreader] ****************************************************** task path: /WORKDIR/dist-git-certificate-weekly-ci-v5a2fav0/tests/tasks/assert_certificate_parameters.yml:18 Saturday 11 February 2023 23:49:46 +0000 (0:00:03.105) 0:02:44.357 ***** ok: [sut] => { "changed": false, "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: Requirement already satisfied: cryptography<35 in ./certificate-tests-venv/lib/python3.9/site-packages (3.4.8) Requirement already satisfied: certreader>=0.1.1 in ./certificate-tests-venv/lib/python3.9/site-packages (0.1.1) Requirement already satisfied: cffi>=1.12 in ./certificate-tests-venv/lib/python3.9/site-packages (from cryptography<35) (1.15.1) Requirement already satisfied: pyasn1 in ./certificate-tests-venv/lib/python3.9/site-packages (from certreader>=0.1.1) (0.4.8) Requirement already satisfied: pyyaml in ./certificate-tests-venv/lib/python3.9/site-packages (from certreader>=0.1.1) (6.0) Requirement already satisfied: pycparser in ./certificate-tests-venv/lib/python3.9/site-packages (from cffi>=1.12->cryptography<35) (2.21) TASK [Retrieve certificate file stats] ***************************************** task path: /WORKDIR/dist-git-certificate-weekly-ci-v5a2fav0/tests/tasks/assert_certificate_parameters.yml:26 Saturday 11 February 2023 23:49:49 +0000 (0:00:02.576) 0:02:46.934 ***** ok: [sut] => { "changed": false, "stat": { "atime": 1676159307.27662, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "ec288f4b4790d859bb465d34f000902ecc64f2d9", "ctime": 1676159307.2736197, "dev": 51716, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 13129, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1676159307.2736197, "nlink": 1, "path": "/etc/pki/tls/certs/defaultcert.crt", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1294, "uid": 0, "version": "287327981", "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 Saturday 11 February 2023 23:49:50 +0000 (0:00:01.148) 0:02:48.082 ***** 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 Saturday 11 February 2023 23:49:51 +0000 (0:00:00.940) 0:02:49.023 ***** 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 Saturday 11 February 2023 23:49:52 +0000 (0:00:01.150) 0:02:50.173 ***** 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 Saturday 11 February 2023 23:49:55 +0000 (0:00:02.763) 0:02:52.937 ***** ok: [sut] => { "changed": false, "stat": { "atime": 1676159307.205616, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "a58886db9bd81dce0f7f6eb711c75283797e328f", "ctime": 1676159307.2736197, "dev": 51716, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 25179060, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1676159307.2736197, "nlink": 1, "path": "/etc/pki/tls/private/defaultcert.key", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1704, "uid": 0, "version": "1674093060", "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 Saturday 11 February 2023 23:49:57 +0000 (0:00:02.079) 0:02:55.016 ***** 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 Saturday 11 February 2023 23:49:59 +0000 (0:00:01.784) 0:02:56.801 ***** 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 Saturday 11 February 2023 23:50:01 +0000 (0:00:02.107) 0:02:58.908 ***** ok: [sut] => { "changed": false, "cmd": [ "/tmp/certificate-tests-venv/bin/certreader2json", "/etc/pki/tls/certs/defaultcert.crt" ], "delta": "0:00:00.270610", "end": "2023-02-11 23:50:03.938266", "rc": 0, "start": "2023-02-11 23:50:03.667656" } 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": "C9:73:A0:2A:A0:9B:95:02:1C:9D:DF:61:7A:F4:E0:35:16:60:88:26", "critical": false }, "authorityKeyIdentifier": { "value": "38:A8:23:A4:B4:51:97:73:C4:AE:FD:DD:36:8E:2C:68:5C:91:DD:BA", "critical": false } }, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "86:00:6C:9A:EF:31:8A:F2:06:AA:F8:26:FA:44:DC:1F:A7:4F:37:0F:A4:26:48:10:0E:C0:0A:4C:B0:BF:F6:D0:DF:C1:36:B1:C9:9F:B4:AC:8E:24:9E:A3:0C:6F:E5:E0:05:A5:BA:1E:B2:D1:18:AB:46:B8:60:97:54:28:03:4D:29:3A:28:CD:99:4F:C9:0E:02:31:76:FD:2D:44:D7:CD:B2:90:AE:BF:43:12:B6:22:40:6D:11:21:17:D5:3C:63:48:50:71:B1:9C:F0:F8:95:EE:7F:62:67:42:43:61:ED:9E:2D:87:78:64:A2:BD:72:A1:44:27:A5:84:81:FD:3A:C5:E3:3B:26:91:BF:53:06:53:7D:2D:B4:E0:91:6A:D6:15:C6:A8:2B:53:2A:16:8A:63:03:38:66:4F:9D:07:5B:89:9D:C8:A7:BF:AF:E0:3D:41:ED:07:05:7F:48:D2:83:14:7C:99:8D:7F:F4:08:83:A4:09:DE:D8:13:E2:D6:AA:48:D4:86:2D:62:EA:84:AA:8E:6E:51:33:A2:A6:E9:33:B6:90:40:A9:D2:A9:98:97:2D:F6:C5:9D:04:E4:58:9F:6F:AC:DA:B8:75:BC:B1:F1:D8:18:11:66:6C:EA:14:85:00:98:D6:CA:5A:A8:EF:89:DE:89:08:98:F8:53:67:7B" }, "key_size": 2048, "validity": { "not_valid_after": "2024-02-11 23:48:01", "not_valid_before": "2023-02-11 23:48:27" } } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/dist-git-certificate-weekly-ci-v5a2fav0/tests/tasks/assert_certificate_parameters.yml:79 Saturday 11 February 2023 23:50:04 +0000 (0:00:02.677) 0:03:01.585 ***** ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "38:A8:23:A4:B4:51:97:73:C4:AE:FD:DD:36:8E:2C:68:5C:91:DD:BA" }, "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": "C9:73:A0:2A:A0:9B:95:02:1C:9D:DF:61:7A:F4:E0:35:16:60:88:26" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "86:00:6C:9A:EF:31:8A:F2:06:AA:F8:26:FA:44:DC:1F:A7:4F:37:0F:A4:26:48:10:0E:C0:0A:4C:B0:BF:F6:D0:DF:C1:36:B1:C9:9F:B4:AC:8E:24:9E:A3:0C:6F:E5:E0:05:A5:BA:1E:B2:D1:18:AB:46:B8:60:97:54:28:03:4D:29:3A:28:CD:99:4F:C9:0E:02:31:76:FD:2D:44:D7:CD:B2:90:AE:BF:43:12:B6:22:40:6D:11:21:17:D5:3C:63:48:50:71:B1:9C:F0:F8:95:EE:7F:62:67:42:43:61:ED:9E:2D:87:78:64:A2:BD:72:A1:44:27:A5:84:81:FD:3A:C5:E3:3B:26:91:BF:53:06:53:7D:2D:B4:E0:91:6A:D6:15:C6:A8:2B:53:2A:16:8A:63:03:38:66:4F:9D:07:5B:89:9D:C8:A7:BF:AF:E0:3D:41:ED:07:05:7F:48:D2:83:14:7C:99:8D:7F:F4:08:83:A4:09:DE:D8:13:E2:D6:AA:48:D4:86:2D:62:EA:84:AA:8E:6E:51:33:A2:A6:E9:33:B6:90:40:A9:D2:A9:98:97:2D:F6:C5:9D:04:E4:58:9F:6F:AC:DA:B8:75:BC:B1:F1:D8:18:11:66:6C:EA:14:85:00:98:D6:CA:5A:A8:EF:89:DE:89:08:98:F8:53:67:7B" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "2024-02-11 23:48:01", "not_valid_before": "2023-02-11 23:48:27" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/dist-git-certificate-weekly-ci-v5a2fav0/tests/tasks/assert_certificate_parameters.yml:83 Saturday 11 February 2023 23:50:05 +0000 (0:00:01.464) 0:03:03.050 ***** 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 Saturday 11 February 2023 23:50:05 +0000 (0:00:00.245) 0:03:03.295 ***** 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 Saturday 11 February 2023 23:50:05 +0000 (0:00:00.114) 0:03:03.410 ***** 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 Saturday 11 February 2023 23:50:06 +0000 (0:00:00.280) 0:03:03.690 ***** 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 Saturday 11 February 2023 23:50:06 +0000 (0:00:00.364) 0:03:04.055 ***** 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 Saturday 11 February 2023 23:50:06 +0000 (0:00:00.308) 0:03:04.363 ***** ok: [sut] => { "changed": false, "cmd": "set -euo pipefail; getcert list -f /etc/pki/tls/certs/defaultcert.crt | grep 'auto-renew' | sed 's/^\\s\\+auto-renew: //g'", "delta": "0:00:00.057360", "end": "2023-02-11 23:50:07.275949", "rc": 0, "start": "2023-02-11 23:50:07.218589" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/dist-git-certificate-weekly-ci-v5a2fav0/tests/tasks/assert_certificate_parameters.yml:141 Saturday 11 February 2023 23:50:07 +0000 (0:00:00.427) 0:03:04.791 ***** ok: [sut] => { "changed": false } MSG: All assertions passed PLAY RECAP ********************************************************************* sut : ok=52 changed=8 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 Saturday 11 February 2023 23:50:07 +0000 (0:00:00.487) 0:03:05.279 ***** =============================================================================== fedora.linux_system_roles.certificate : Ensure certificate requests ---- 26.63s /WORKDIR/dist-git-certificate-weekly-ci-v5a2fav0/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:99 fedora.linux_system_roles.certificate : Ensure provider service is running -- 18.72s /WORKDIR/dist-git-certificate-weekly-ci-v5a2fav0/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:88 Install the package, force upgrade ------------------------------------- 15.33s /WORKDIR/dist-git-certificate-weekly-ci-v5a2fav0/tests/tasks/assert_certificate_parameters.yml:11 Retrieve certificate file stats ---------------------------------------- 10.84s /WORKDIR/dist-git-certificate-weekly-ci-v5a2fav0/tests/tasks/assert_certificate_parameters.yml:26 fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed --- 8.90s /WORKDIR/dist-git-certificate-weekly-ci-v5a2fav0/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 fedora.linux_system_roles.certificate : Ensure pre-scripts hooks directory exists --- 8.22s /WORKDIR/dist-git-certificate-weekly-ci-v5a2fav0/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:33 fedora.linux_system_roles.certificate : Ensure provider packages are installed --- 6.61s /WORKDIR/dist-git-certificate-weekly-ci-v5a2fav0/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:22 Gathering Facts --------------------------------------------------------- 6.43s /WORKDIR/dist-git-certificate-weekly-ci-v5a2fav0/tests/tests_no_auto_renew.yml:2 Install certreader ------------------------------------------------------ 5.28s /WORKDIR/dist-git-certificate-weekly-ci-v5a2fav0/tests/tasks/assert_certificate_parameters.yml:18 fedora.linux_system_roles.certificate : Ensure post-scripts hooks directory exists --- 4.67s /WORKDIR/dist-git-certificate-weekly-ci-v5a2fav0/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:59 Parse certificate ------------------------------------------------------- 4.47s /WORKDIR/dist-git-certificate-weekly-ci-v5a2fav0/tests/tasks/assert_certificate_parameters.yml:74 Verify each certificate ------------------------------------------------- 3.87s /WORKDIR/dist-git-certificate-weekly-ci-v5a2fav0/tests/tests_no_auto_renew.yml:42 Install the package, force upgrade -------------------------------------- 3.15s /WORKDIR/dist-git-certificate-weekly-ci-v5a2fav0/tests/tasks/assert_certificate_parameters.yml:11 Verify certificate permissions ------------------------------------------ 2.91s /WORKDIR/dist-git-certificate-weekly-ci-v5a2fav0/tests/tasks/assert_certificate_parameters.yml:47 Ensure python3 is installed --------------------------------------------- 2.90s /WORKDIR/dist-git-certificate-weekly-ci-v5a2fav0/tests/tasks/assert_certificate_parameters.yml:6 Gathering Facts --------------------------------------------------------- 2.82s /WORKDIR/dist-git-certificate-weekly-ci-v5a2fav0/tests/tests_no_auto_renew.yml:17 Verify key file owner and group ----------------------------------------- 2.79s /WORKDIR/dist-git-certificate-weekly-ci-v5a2fav0/tests/tasks/assert_certificate_parameters.yml:64 Verify certificate permissions ------------------------------------------ 2.76s /WORKDIR/dist-git-certificate-weekly-ci-v5a2fav0/tests/tasks/assert_certificate_parameters.yml:47 Parse certificate ------------------------------------------------------- 2.68s /WORKDIR/dist-git-certificate-weekly-ci-v5a2fav0/tests/tasks/assert_certificate_parameters.yml:74 Install certreader ------------------------------------------------------ 2.58s /WORKDIR/dist-git-certificate-weekly-ci-v5a2fav0/tests/tasks/assert_certificate_parameters.yml:18 ---^---^---^---^---^--- # 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. ---^---^---^---^---^---