# 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_fs_attrs.yml *************************************************** 3 plays in /WORKDIR/dist-git-certificate-weekly-ci-v5a2fav0/tests/tests_fs_attrs.yml PLAY [Ensure UID and GID exists] *********************************************** TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/dist-git-certificate-weekly-ci-v5a2fav0/tests/tests_fs_attrs.yml:2 Saturday 11 February 2023 23:11:08 +0000 (0:00:00.180) 0:00:00.180 ***** ok: [sut] TASK [Ensure user exists] ****************************************************** task path: /WORKDIR/dist-git-certificate-weekly-ci-v5a2fav0/tests/tests_fs_attrs.yml:5 Saturday 11 February 2023 23:11:13 +0000 (0:00:04.527) 0:00:04.708 ***** changed: [sut] => { "changed": true, "comment": "", "create_home": true, "group": 1040, "home": "/home/user1", "name": "user1", "shell": "/bin/bash", "state": "present", "system": false, "uid": 1040 } TASK [Ensure group "somegroup" exists] ***************************************** task path: /WORKDIR/dist-git-certificate-weekly-ci-v5a2fav0/tests/tests_fs_attrs.yml:9 Saturday 11 February 2023 23:11:16 +0000 (0:00:02.981) 0:00:07.689 ***** changed: [sut] => { "changed": true, "gid": 1041, "name": "somegroup", "state": "present", "system": false } PLAY [Issue certificate setting user/group] ************************************ TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/dist-git-certificate-weekly-ci-v5a2fav0/tests/tests_fs_attrs.yml:13 Saturday 11 February 2023 23:11:19 +0000 (0:00:02.914) 0:00:10.604 ***** 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:11:22 +0000 (0:00:02.769) 0:00:13.374 ***** 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:11:22 +0000 (0:00:00.640) 0:00:14.014 ***** 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:11:24 +0000 (0:00:01.759) 0:00:15.774 ***** 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:11:25 +0000 (0:00:00.823) 0:00:16.598 ***** 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:11:30 +0000 (0:00:05.170) 0:00:21.768 ***** 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:11:36 +0000 (0:00:06.190) 0:00:27.958 ***** 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:11:43 +0000 (0:00:07.304) 0:00:35.262 ***** 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:11:45 +0000 (0:00:01.638) 0:00:36.901 ***** 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": "basic.target sysinit.target systemd-journald.socket system.slice network.target dbus-broker.service syslog.target dbus.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": "dbus.socket sysinit.target 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:11:51 +0000 (0:00:06.144) 0:00:43.046 ***** changed: [sut] => (item={'name': 'mycert_fs_attrs', 'dns': 'www.example.com', 'owner': 'ftp', 'group': 'ftp', 'ca': 'self-sign'}) => { "ansible_loop_var": "item", "changed": true, "item": { "ca": "self-sign", "dns": "www.example.com", "group": "ftp", "name": "mycert_fs_attrs", "owner": "ftp" } } MSG: Certificate requested (new). File attributes updated. changed: [sut] => (item={'name': 'certid', 'dns': 'www.example.com', 'owner': 1040, 'group': 1041, 'ca': 'self-sign'}) => { "ansible_loop_var": "item", "changed": true, "item": { "ca": "self-sign", "dns": "www.example.com", "group": 1041, "name": "certid", "owner": 1040 } } MSG: Certificate requested (new). File attributes updated. PLAY [Verify certificate] ****************************************************** TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/dist-git-certificate-weekly-ci-v5a2fav0/tests/tests_fs_attrs.yml:31 Saturday 11 February 2023 23:12:05 +0000 (0:00:13.429) 0:00:56.475 ***** ok: [sut] TASK [Verify each certificate] ************************************************* task path: /WORKDIR/dist-git-certificate-weekly-ci-v5a2fav0/tests/tests_fs_attrs.yml:60 Saturday 11 February 2023 23:12:07 +0000 (0:00:02.639) 0:00:59.115 ***** included: /WORKDIR/dist-git-certificate-weekly-ci-v5a2fav0/tests/tasks/assert_certificate_parameters.yml for sut => (item={'path': '/etc/pki/tls/certs/mycert_fs_attrs.crt', 'key_path': '/etc/pki/tls/private/mycert_fs_attrs.key', 'subject': [{'name': 'commonName', 'oid': '2.5.4.3', 'value': 'www.example.com'}], 'subject_alt_name': [{'name': 'DNS', 'value': 'www.example.com'}], 'owner': 'ftp', 'group': 'ftp', 'mode': '0640'}) included: /WORKDIR/dist-git-certificate-weekly-ci-v5a2fav0/tests/tasks/assert_certificate_parameters.yml for sut => (item={'path': '/etc/pki/tls/certs/certid.crt', 'key_path': '/etc/pki/tls/private/certid.key', 'subject': [{'name': 'commonName', 'oid': '2.5.4.3', 'value': 'www.example.com'}], 'subject_alt_name': [{'name': 'DNS', 'value': 'www.example.com'}], 'owner': 1040, 'group': 1041, 'mode': '0640'}) 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:12:10 +0000 (0:00:02.456) 0:01:01.571 ***** 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:12:10 +0000 (0:00:00.509) 0:01:02.081 ***** 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:12:13 +0000 (0:00:03.137) 0:01:05.218 ***** 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:12:29 +0000 (0:00:16.009) 0:01:21.228 ***** 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 39.1 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 40.3 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 45.2 MB/s eta 0:00:00 Collecting pycparser Downloading pycparser-2.21-py2.py3-none-any.whl (118 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 118.7/118.7 kB 21.1 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:12:36 +0000 (0:00:06.168) 0:01:27.396 ***** ok: [sut] => { "changed": false, "stat": { "atime": 1676157119.3618152, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "4f74c461503bb4c46b31dd4f00af3d2593fdaeb4", "ctime": 1676157119.4758167, "dev": 51716, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 13267, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1676157119.3598151, "nlink": 1, "path": "/etc/pki/tls/certs/mycert_fs_attrs.crt", "pw_name": "ftp", "readable": true, "rgrp": true, "roth": false, "rusr": true, "size": 1294, "uid": 14, "version": "1110307456", "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:12:42 +0000 (0:00:06.668) 0:01:34.064 ***** 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:12:43 +0000 (0:00:01.128) 0:01:35.193 ***** 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:12:46 +0000 (0:00:02.557) 0:01:37.751 ***** 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:12:48 +0000 (0:00:02.460) 0:01:40.212 ***** ok: [sut] => { "changed": false, "stat": { "atime": 1676157119.2918143, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "84bea1e949694a6433594efff2c7d2a303159eb9", "ctime": 1676157119.4758167, "dev": 51716, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 25179009, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1676157119.3598151, "nlink": 1, "path": "/etc/pki/tls/private/mycert_fs_attrs.key", "pw_name": "ftp", "readable": true, "rgrp": true, "roth": false, "rusr": true, "size": 1704, "uid": 14, "version": "753674511", "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:12:51 +0000 (0:00:02.208) 0:01:42.420 ***** 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:12:52 +0000 (0:00:01.036) 0:01:43.456 ***** 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:12:54 +0000 (0:00:02.933) 0:01:46.390 ***** ok: [sut] => { "changed": false, "cmd": [ "/tmp/certificate-tests-venv/bin/certreader2json", "/etc/pki/tls/certs/mycert_fs_attrs.crt" ], "delta": "0:00:00.262743", "end": "2023-02-11 23:13:04.624575", "rc": 0, "start": "2023-02-11 23:13:04.361832" } 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": "07:AE:ED:8F:8F:AB:63:7E:34:82:4C:4A:2F:04:3D:DD:F4:DF:14:87", "critical": false }, "authorityKeyIdentifier": { "value": "59:80:80:13:27:11:89:A5:CD:29:A0:0B:58:31:B2:2B:31:7E:02:36", "critical": false } }, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "7A:14:17:72:D5:E0:C4:7E:ED:60:F3:19:EC:CC:C1:99:F2:C9:63:14:07:F2:AB:BC:00:01:4B:39:49:59:FF:75:E4:1A:37:15:DD:FF:CE:E7:9D:0D:38:BC:FB:D2:9D:2E:25:2C:D5:A4:85:08:3A:C9:08:C6:12:CD:D7:04:F4:F8:06:48:53:75:99:3E:A5:D9:F2:47:4C:0A:60:6D:E5:A7:89:BC:DA:E6:CB:A2:13:31:98:93:67:92:23:64:BE:57:B6:C7:62:45:59:5A:DA:2A:01:24:29:67:11:CB:B4:9A:C0:E4:DA:03:34:76:6D:BD:9D:08:A9:7E:1E:02:87:51:B6:2C:AA:85:CA:21:62:3E:E3:23:3C:65:0B:DC:12:D4:30:70:8D:61:A1:E2:47:DC:B7:F8:F3:0C:CC:2E:83:03:C2:9B:F7:6C:E2:C0:66:98:67:11:98:66:4C:15:22:7C:B8:E4:9E:CA:65:69:41:D7:DF:BD:1C:F2:FD:48:CE:D8:8E:52:13:DD:16:A2:D3:94:D1:20:08:16:2E:E7:CF:D5:AC:F4:4E:8D:F3:08:A4:C7:09:33:C8:5B:42:BB:80:9E:E7:6D:77:4E:77:75:07:A6:36:5D:E1:36:CA:69:CF:16:CA:CD:96:F4:2A:D5:4B:B7:AE:73:94:05:ED:CC:99:86" }, "key_size": 2048, "validity": { "not_valid_after": "2024-02-11 23:11:52", "not_valid_before": "2023-02-11 23:11:59" } } 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:13:05 +0000 (0:00:10.240) 0:01:56.631 ***** ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "59:80:80:13:27:11:89:A5:CD:29:A0:0B:58:31:B2:2B:31:7E:02:36" }, "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": "07:AE:ED:8F:8F:AB:63:7E:34:82:4C:4A:2F:04:3D:DD:F4:DF:14:87" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "7A:14:17:72:D5:E0:C4:7E:ED:60:F3:19:EC:CC:C1:99:F2:C9:63:14:07:F2:AB:BC:00:01:4B:39:49:59:FF:75:E4:1A:37:15:DD:FF:CE:E7:9D:0D:38:BC:FB:D2:9D:2E:25:2C:D5:A4:85:08:3A:C9:08:C6:12:CD:D7:04:F4:F8:06:48:53:75:99:3E:A5:D9:F2:47:4C:0A:60:6D:E5:A7:89:BC:DA:E6:CB:A2:13:31:98:93:67:92:23:64:BE:57:B6:C7:62:45:59:5A:DA:2A:01:24:29:67:11:CB:B4:9A:C0:E4:DA:03:34:76:6D:BD:9D:08:A9:7E:1E:02:87:51:B6:2C:AA:85:CA:21:62:3E:E3:23:3C:65:0B:DC:12:D4:30:70:8D:61:A1:E2:47:DC:B7:F8:F3:0C:CC:2E:83:03:C2:9B:F7:6C:E2:C0:66:98:67:11:98:66:4C:15:22:7C:B8:E4:9E:CA:65:69:41:D7:DF:BD:1C:F2:FD:48:CE:D8:8E:52:13:DD:16:A2:D3:94:D1:20:08:16:2E:E7:CF:D5:AC:F4:4E:8D:F3:08:A4:C7:09:33:C8:5B:42:BB:80:9E:E7:6D:77:4E:77:75:07:A6:36:5D:E1:36:CA:69:CF:16:CA:CD:96:F4:2A:D5:4B:B7:AE:73:94:05:ED:CC:99:86" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "2024-02-11 23:11:52", "not_valid_before": "2023-02-11 23:11:59" } } }, "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:13:07 +0000 (0:00:01.786) 0:01:58.417 ***** 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:13:09 +0000 (0:00:02.508) 0:02:00.926 ***** 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:13:11 +0000 (0:00:02.089) 0:02:03.016 ***** 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:13:12 +0000 (0:00:01.261) 0:02:04.277 ***** 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:13:14 +0000 (0:00:01.815) 0:02:06.093 ***** 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:13:16 +0000 (0:00:01.829) 0:02:07.922 ***** ok: [sut] => { "changed": false, "cmd": "set -euo pipefail; getcert list -f /etc/pki/tls/certs/mycert_fs_attrs.crt | grep 'auto-renew' | sed 's/^\\s\\+auto-renew: //g'", "delta": "0:00:00.053956", "end": "2023-02-11 23:13:19.082916", "rc": 0, "start": "2023-02-11 23:13:19.028960" } 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:13:19 +0000 (0:00:03.087) 0:02:11.009 ***** 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:13:22 +0000 (0:00:02.683) 0:02:13.693 ***** 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:13:23 +0000 (0:00:00.822) 0:02:14.604 ***** 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:13:26 +0000 (0:00:02.936) 0:02:17.541 ***** 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:13:29 +0000 (0:00:03.358) 0:02:20.900 ***** 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:13:32 +0000 (0:00:03.056) 0:02:23.956 ***** ok: [sut] => { "changed": false, "stat": { "atime": 1676157123.7898734, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "ee16d34a601ae677a8bb6e1a3bf1c463488a7ec3", "ctime": 1676157123.827874, "dev": 51716, "device_type": 0, "executable": false, "exists": true, "gid": 1041, "gr_name": "somegroup", "inode": 13129, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1676157123.7868733, "nlink": 1, "path": "/etc/pki/tls/certs/certid.crt", "pw_name": "user1", "readable": true, "rgrp": true, "roth": false, "rusr": true, "size": 1294, "uid": 1040, "version": "2500169436", "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:13:35 +0000 (0:00:02.471) 0:02:26.428 ***** 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:13:36 +0000 (0:00:01.026) 0:02:27.454 ***** 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:13:41 +0000 (0:00:05.017) 0:02:32.472 ***** 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:13:45 +0000 (0:00:03.903) 0:02:36.375 ***** ok: [sut] => { "changed": false, "stat": { "atime": 1676157123.7218726, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "a523b8a2b35ec32ecc970cd5d0b77b4f0b431ecc", "ctime": 1676157123.827874, "dev": 51716, "device_type": 0, "executable": false, "exists": true, "gid": 1041, "gr_name": "somegroup", "inode": 25173911, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1676157123.7868733, "nlink": 1, "path": "/etc/pki/tls/private/certid.key", "pw_name": "user1", "readable": true, "rgrp": true, "roth": false, "rusr": true, "size": 1704, "uid": 1040, "version": "716839659", "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:13:47 +0000 (0:00:02.641) 0:02:39.017 ***** 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:13:49 +0000 (0:00:01.468) 0:02:40.486 ***** 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:13:54 +0000 (0:00:05.833) 0:02:46.320 ***** ok: [sut] => { "changed": false, "cmd": [ "/tmp/certificate-tests-venv/bin/certreader2json", "/etc/pki/tls/certs/certid.crt" ], "delta": "0:00:00.260083", "end": "2023-02-11 23:13:56.417630", "rc": 0, "start": "2023-02-11 23:13:56.157547" } 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": "2E:7A:6C:ED:D0:3D:6F:90:30:64:FF:CD:63:2A:08:7F:D6:16:B4:B5", "critical": false }, "authorityKeyIdentifier": { "value": "59:80:80:13:27:11:89:A5:CD:29:A0:0B:58:31:B2:2B:31:7E:02:36", "critical": false } }, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "B6:87:2D:17:A5:5D:59:7D:81:AA:BA:8C:E5:06:98:74:19:BD:90:23:65:B4:24:21:38:00:A1:6F:A7:FF:DA:35:E4:3D:6E:31:E3:30:02:92:F9:8B:7F:97:4C:F5:F1:17:13:4A:86:53:79:71:A2:D3:B7:3D:8F:6E:AE:4E:57:DC:19:83:42:35:56:F8:C7:BF:62:B4:68:DD:E7:D7:6E:66:06:84:AB:52:93:65:B9:03:1B:90:13:B8:FC:81:92:38:03:A3:A0:C7:4E:D5:E6:C6:28:5A:23:9C:55:E9:E4:F5:E5:B4:08:B6:76:3C:DC:53:BD:56:F8:DB:57:94:FE:F3:03:8E:D5:7F:7B:3A:19:7D:C1:FA:83:BD:34:93:C9:18:0D:96:F9:7F:88:DF:40:07:4F:11:D4:66:FD:2D:BA:F5:33:F6:DD:C0:56:22:FF:B3:FF:C9:43:A9:27:E8:1C:F7:85:82:BE:6A:36:EF:E4:CD:4B:6C:7C:C9:5B:1D:62:3A:4F:28:30:6F:AB:28:6C:DD:9B:05:6C:D2:D7:B3:E1:CB:E5:B7:B2:94:F9:DF:7E:1B:E7:16:C6:81:2E:A0:42:53:56:2F:4C:44:5F:36:E9:CA:65:FA:CF:E1:06:BC:62:AB:D3:B8:41:1B:96:0A:86:B2:2D:91:A9:8D:B9:29:29:C3" }, "key_size": 2048, "validity": { "not_valid_after": "2024-02-11 23:11:52", "not_valid_before": "2023-02-11 23:12:03" } } 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:13:57 +0000 (0:00:02.146) 0:02:48.466 ***** ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "59:80:80:13:27:11:89:A5:CD:29:A0:0B:58:31:B2:2B:31:7E:02:36" }, "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": "2E:7A:6C:ED:D0:3D:6F:90:30:64:FF:CD:63:2A:08:7F:D6:16:B4:B5" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "B6:87:2D:17:A5:5D:59:7D:81:AA:BA:8C:E5:06:98:74:19:BD:90:23:65:B4:24:21:38:00:A1:6F:A7:FF:DA:35:E4:3D:6E:31:E3:30:02:92:F9:8B:7F:97:4C:F5:F1:17:13:4A:86:53:79:71:A2:D3:B7:3D:8F:6E:AE:4E:57:DC:19:83:42:35:56:F8:C7:BF:62:B4:68:DD:E7:D7:6E:66:06:84:AB:52:93:65:B9:03:1B:90:13:B8:FC:81:92:38:03:A3:A0:C7:4E:D5:E6:C6:28:5A:23:9C:55:E9:E4:F5:E5:B4:08:B6:76:3C:DC:53:BD:56:F8:DB:57:94:FE:F3:03:8E:D5:7F:7B:3A:19:7D:C1:FA:83:BD:34:93:C9:18:0D:96:F9:7F:88:DF:40:07:4F:11:D4:66:FD:2D:BA:F5:33:F6:DD:C0:56:22:FF:B3:FF:C9:43:A9:27:E8:1C:F7:85:82:BE:6A:36:EF:E4:CD:4B:6C:7C:C9:5B:1D:62:3A:4F:28:30:6F:AB:28:6C:DD:9B:05:6C:D2:D7:B3:E1:CB:E5:B7:B2:94:F9:DF:7E:1B:E7:16:C6:81:2E:A0:42:53:56:2F:4C:44:5F:36:E9:CA:65:FA:CF:E1:06:BC:62:AB:D3:B8:41:1B:96:0A:86:B2:2D:91:A9:8D:B9:29:29:C3" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "2024-02-11 23:11:52", "not_valid_before": "2023-02-11 23:12:03" } } }, "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:13:59 +0000 (0:00:02.590) 0:02:51.057 ***** 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:14:04 +0000 (0:00:04.875) 0:02:55.933 ***** 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:14:06 +0000 (0:00:02.051) 0:02:57.985 ***** 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:14:09 +0000 (0:00:02.611) 0:03:00.597 ***** 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:14:10 +0000 (0:00:01.457) 0:03:02.054 ***** 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:14:13 +0000 (0:00:02.707) 0:03:04.762 ***** ok: [sut] => { "changed": false, "cmd": "set -euo pipefail; getcert list -f /etc/pki/tls/certs/certid.crt | grep 'auto-renew' | sed 's/^\\s\\+auto-renew: //g'", "delta": "0:00:00.054065", "end": "2023-02-11 23:14:15.162239", "rc": 0, "start": "2023-02-11 23:14:15.108174" } 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:14:15 +0000 (0:00:02.151) 0:03:06.913 ***** ok: [sut] => { "changed": false } MSG: All assertions passed PLAY RECAP ********************************************************************* sut : ok=55 changed=10 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 Saturday 11 February 2023 23:14:21 +0000 (0:00:06.345) 0:03:13.259 ***** =============================================================================== Install the package, force upgrade ------------------------------------- 16.01s /WORKDIR/dist-git-certificate-weekly-ci-v5a2fav0/tests/tasks/assert_certificate_parameters.yml:11 fedora.linux_system_roles.certificate : Ensure certificate requests ---- 13.43s /WORKDIR/dist-git-certificate-weekly-ci-v5a2fav0/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:99 Parse certificate ------------------------------------------------------ 10.24s /WORKDIR/dist-git-certificate-weekly-ci-v5a2fav0/tests/tasks/assert_certificate_parameters.yml:74 fedora.linux_system_roles.certificate : Ensure pre-scripts hooks directory exists --- 7.30s /WORKDIR/dist-git-certificate-weekly-ci-v5a2fav0/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:33 Retrieve certificate file stats ----------------------------------------- 6.67s /WORKDIR/dist-git-certificate-weekly-ci-v5a2fav0/tests/tasks/assert_certificate_parameters.yml:26 Verify certificate auto-renew flag -------------------------------------- 6.35s /WORKDIR/dist-git-certificate-weekly-ci-v5a2fav0/tests/tasks/assert_certificate_parameters.yml:141 fedora.linux_system_roles.certificate : Ensure provider packages are installed --- 6.19s /WORKDIR/dist-git-certificate-weekly-ci-v5a2fav0/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:22 Install certreader ------------------------------------------------------ 6.17s /WORKDIR/dist-git-certificate-weekly-ci-v5a2fav0/tests/tasks/assert_certificate_parameters.yml:18 fedora.linux_system_roles.certificate : Ensure provider service is running --- 6.14s /WORKDIR/dist-git-certificate-weekly-ci-v5a2fav0/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:88 Verify key file owner and group ----------------------------------------- 5.83s /WORKDIR/dist-git-certificate-weekly-ci-v5a2fav0/tests/tasks/assert_certificate_parameters.yml:64 fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed --- 5.17s /WORKDIR/dist-git-certificate-weekly-ci-v5a2fav0/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Verify certificate file owner and group --------------------------------- 5.02s /WORKDIR/dist-git-certificate-weekly-ci-v5a2fav0/tests/tasks/assert_certificate_parameters.yml:37 Verify certificate subject ---------------------------------------------- 4.88s /WORKDIR/dist-git-certificate-weekly-ci-v5a2fav0/tests/tasks/assert_certificate_parameters.yml:83 Gathering Facts --------------------------------------------------------- 4.53s /WORKDIR/dist-git-certificate-weekly-ci-v5a2fav0/tests/tests_fs_attrs.yml:2 --- Verify certificate permissions ------------------------------------------ 3.90s /WORKDIR/dist-git-certificate-weekly-ci-v5a2fav0/tests/tasks/assert_certificate_parameters.yml:47 Install the package, force upgrade -------------------------------------- 3.36s /WORKDIR/dist-git-certificate-weekly-ci-v5a2fav0/tests/tasks/assert_certificate_parameters.yml:11 Ensure python3 is installed --------------------------------------------- 3.14s /WORKDIR/dist-git-certificate-weekly-ci-v5a2fav0/tests/tasks/assert_certificate_parameters.yml:6 Retrieve auto-renew flag ------------------------------------------------ 3.09s /WORKDIR/dist-git-certificate-weekly-ci-v5a2fav0/tests/tasks/assert_certificate_parameters.yml:132 Install certreader ------------------------------------------------------ 3.06s /WORKDIR/dist-git-certificate-weekly-ci-v5a2fav0/tests/tasks/assert_certificate_parameters.yml:18 Ensure user exists ------------------------------------------------------ 2.98s /WORKDIR/dist-git-certificate-weekly-ci-v5a2fav0/tests/tests_fs_attrs.yml:5 --- ---^---^---^---^---^--- # 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. ---^---^---^---^---^---