# STDOUT: ---v---v---v---v---v--- ansible-playbook [core 2.14.4] 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/git-weekly-ci_6e67e8a/.collection executable location = /opt/ansible-2.14/bin/ansible-playbook python version = 3.9.16 (main, Jan 17 2023, 18:53:15) [GCC 8.5.0 20210514 (Red Hat 8.5.0-18)] (/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_subject_complex.yml ******************************************** 2 plays in /WORKDIR/git-weekly-ci_6e67e8a/tests/tests_subject_complex.yml PLAY [Issue simple self-signed certificate] ************************************ TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-weekly-ci_6e67e8a/tests/tests_subject_complex.yml:2 Saturday 27 May 2023 17:18:46 +0000 (0:00:00.022) 0:00:00.022 ********** ok: [sut] TASK [fedora.linux_system_roles.certificate : Set version specific variables] *** task path: /WORKDIR/git-weekly-ci_6e67e8a/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:2 Saturday 27 May 2023 17:18:47 +0000 (0:00:00.950) 0:00:00.973 ********** included: /WORKDIR/git-weekly-ci_6e67e8a/.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/git-weekly-ci_6e67e8a/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:2 Saturday 27 May 2023 17:18:47 +0000 (0:00:00.021) 0:00:00.994 ********** ok: [sut] TASK [fedora.linux_system_roles.certificate : Set platform/version specific variables] *** task path: /WORKDIR/git-weekly-ci_6e67e8a/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:7 Saturday 27 May 2023 17:18:48 +0000 (0:00:00.388) 0:00:01.382 ********** skipping: [sut] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=Fedora.yml) => { "ansible_loop_var": "item", "changed": false, "item": "Fedora.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=Fedora_36.yml) => { "ansible_loop_var": "item", "changed": false, "item": "Fedora_36.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=Fedora_36.yml) => { "ansible_loop_var": "item", "changed": false, "item": "Fedora_36.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/git-weekly-ci_6e67e8a/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Saturday 27 May 2023 17:18:48 +0000 (0:00:00.049) 0:00:01.432 ********** changed: [sut] => { "changed": true, "rc": 0, "results": [ "Installed: python3-pyasn1-0.4.8-8.fc36.noarch" ] } TASK [fedora.linux_system_roles.certificate : Ensure provider packages are installed] *** task path: /WORKDIR/git-weekly-ci_6e67e8a/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:22 Saturday 27 May 2023 17:18:51 +0000 (0:00:03.393) 0:00:04.825 ********** changed: [sut] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": true, "rc": 0, "results": [ "Installed: certmonger-0.79.15-3.fc36.x86_64", "Installed: dbus-tools-1:1.14.4-1.fc36.x86_64" ] } TASK [fedora.linux_system_roles.certificate : Ensure pre-scripts hooks directory exists] *** task path: /WORKDIR/git-weekly-ci_6e67e8a/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:33 Saturday 27 May 2023 17:18:55 +0000 (0:00:04.083) 0:00:08.909 ********** 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": 4096, "state": "directory", "uid": 0 } TASK [fedora.linux_system_roles.certificate : Ensure post-scripts hooks directory exists] *** task path: /WORKDIR/git-weekly-ci_6e67e8a/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:59 Saturday 27 May 2023 17:18:55 +0000 (0:00:00.383) 0:00:09.292 ********** 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": 4096, "state": "directory", "uid": 0 } TASK [fedora.linux_system_roles.certificate : Ensure provider service is running] *** task path: /WORKDIR/git-weekly-ci_6e67e8a/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:88 Saturday 27 May 2023 17:18:56 +0000 (0:00:00.266) 0:00:09.559 ********** changed: [sut] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": true, "enabled": true, "name": "certmonger", "state": "started", "status": { "ActiveEnterTimestampMonotonic": "0", "ActiveExitTimestampMonotonic": "0", "ActiveState": "inactive", "After": "dbus.socket systemd-journald.socket basic.target dbus-broker.service sysinit.target network.target syslog.target system.slice", "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", "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": "infinity", "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": "14741", "LimitNPROCSoft": "14741", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "14741", "LimitSIGPENDINGSoft": "14741", "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": "4422", "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/git-weekly-ci_6e67e8a/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:99 Saturday 27 May 2023 17:18:57 +0000 (0:00:00.977) 0:00:10.537 ********** changed: [sut] => (item={'name': 'mycert_subject_complex', 'dns': 'www.example.com', 'common_name': '# \\\\Every"thing+that,ne;edsing\\0 ', 'contact_email': 'admin@example.com', 'ca': 'self-sign'}) => { "ansible_loop_var": "item", "changed": true, "item": { "ca": "self-sign", "common_name": "# \\\\Every\"thing+that,ne;edsing\\0 ", "contact_email": "admin@example.com", "dns": "www.example.com", "name": "mycert_subject_complex" } } MSG: Certificate requested (new). PLAY [Verify certificate] ****************************************************** TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-weekly-ci_6e67e8a/tests/tests_subject_complex.yml:16 Saturday 27 May 2023 17:18:58 +0000 (0:00:01.479) 0:00:12.016 ********** ok: [sut] TASK [Verify each certificate] ************************************************* task path: /WORKDIR/git-weekly-ci_6e67e8a/tests/tests_subject_complex.yml:42 Saturday 27 May 2023 17:18:59 +0000 (0:00:00.632) 0:00:12.648 ********** included: /WORKDIR/git-weekly-ci_6e67e8a/tests/tasks/assert_certificate_parameters.yml for sut => (item={'path': '/etc/pki/tls/certs/mycert_subject_complex.crt', 'key_path': '/etc/pki/tls/private/mycert_subject_complex.key', 'subject': [{'name': 'emailAddress', 'oid': '1.2.840.113549.1.9.1', 'value': 'admin@example.com'}, {'name': 'commonName', 'oid': '2.5.4.3', 'value': '# \\\\Every"thing+that,ne;edsing\\0 '}], 'subject_alt_name': [{'name': 'DNS', 'value': 'www.example.com'}]}) TASK [Set virtualenv_path] ***************************************************** task path: /WORKDIR/git-weekly-ci_6e67e8a/tests/tasks/assert_certificate_parameters.yml:2 Saturday 27 May 2023 17:18:59 +0000 (0:00:00.048) 0:00:12.697 ********** ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/git-weekly-ci_6e67e8a/tests/tasks/assert_certificate_parameters.yml:6 Saturday 27 May 2023 17:18:59 +0000 (0:00:00.026) 0:00:12.724 ********** ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Install the package, force upgrade] ************************************** task path: /WORKDIR/git-weekly-ci_6e67e8a/tests/tasks/assert_certificate_parameters.yml:11 Saturday 27 May 2023 17:19:01 +0000 (0:00:02.371) 0:00:15.096 ********** 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.10/site-packages (21.3.1) Collecting pip Downloading pip-23.1.2-py3-none-any.whl (2.1 MB) Installing collected packages: pip Attempting uninstall: pip Found existing installation: pip 21.3.1 Uninstalling pip-21.3.1: Successfully uninstalled pip-21.3.1 Successfully installed pip-23.1.2 TASK [Install certreader] ****************************************************** task path: /WORKDIR/git-weekly-ci_6e67e8a/tests/tasks/assert_certificate_parameters.yml:18 Saturday 27 May 2023 17:19:08 +0000 (0:00:06.615) 0:00:21.711 ********** 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 30.4 MB/s eta 0:00:00 Collecting certreader>=0.1.1 Downloading certreader-0.1.1.tar.gz (4.4 kB) Installing build dependencies: started Installing build dependencies: finished with status 'done' Getting requirements to build wheel: started Getting requirements to build wheel: finished with status 'done' Preparing metadata (pyproject.toml): started Preparing metadata (pyproject.toml): finished with status 'done' Collecting cffi>=1.12 (from cryptography<35) Downloading cffi-1.15.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (441 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 441.8/441.8 kB 34.3 MB/s eta 0:00:00 Collecting pyasn1 (from certreader>=0.1.1) Downloading pyasn1-0.5.0-py2.py3-none-any.whl (83 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 83.9/83.9 kB 14.1 MB/s eta 0:00:00 Collecting pyyaml (from certreader>=0.1.1) Downloading PyYAML-6.0-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (682 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 682.2/682.2 kB 53.8 MB/s eta 0:00:00 Collecting pycparser (from cffi>=1.12->cryptography<35) Downloading pycparser-2.21-py2.py3-none-any.whl (118 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 118.7/118.7 kB 20.8 MB/s eta 0:00:00 Building wheels for collected packages: certreader Building wheel for certreader (pyproject.toml): started Building wheel for certreader (pyproject.toml): finished with status 'done' Created wheel for certreader: filename=certreader-0.1.1-py3-none-any.whl size=5180 sha256=171737f9e87d838e96f01258db26bb60463a54bb80f094b8139ff67ec400ce1f Stored in directory: /root/.cache/pip/wheels/f7/4f/8e/6aaf350d4662f9dfdd803b514f271613f866a2328a8d2887ad Successfully built certreader Installing collected packages: pyyaml, pycparser, pyasn1, cffi, cryptography, certreader Successfully installed certreader-0.1.1 cffi-1.15.1 cryptography-3.4.8 pyasn1-0.5.0 pycparser-2.21 pyyaml-6.0 TASK [Retrieve certificate file stats] ***************************************** task path: /WORKDIR/git-weekly-ci_6e67e8a/tests/tasks/assert_certificate_parameters.yml:26 Saturday 27 May 2023 17:19:12 +0000 (0:00:04.560) 0:00:26.271 ********** ok: [sut] => { "changed": false, "stat": { "atime": 1685207938.5491576, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "057043f35203ae480a6e709714729eb9b7502b36", "ctime": 1685207938.5451577, "dev": 51714, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 196121, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1685207938.5451577, "nlink": 1, "path": "/etc/pki/tls/certs/mycert_subject_complex.crt", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1375, "uid": 0, "version": "3832594745", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /WORKDIR/git-weekly-ci_6e67e8a/tests/tasks/assert_certificate_parameters.yml:31 Saturday 27 May 2023 17:19:13 +0000 (0:00:00.345) 0:00:26.617 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/git-weekly-ci_6e67e8a/tests/tasks/assert_certificate_parameters.yml:37 Saturday 27 May 2023 17:19:13 +0000 (0:00:00.025) 0:00:26.642 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/git-weekly-ci_6e67e8a/tests/tasks/assert_certificate_parameters.yml:47 Saturday 27 May 2023 17:19:13 +0000 (0:00:00.063) 0:00:26.706 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/git-weekly-ci_6e67e8a/tests/tasks/assert_certificate_parameters.yml:53 Saturday 27 May 2023 17:19:13 +0000 (0:00:00.045) 0:00:26.751 ********** ok: [sut] => { "changed": false, "stat": { "atime": 1685207938.4881592, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "c0bb2b5c667a99115c967b3078a8a5ece106a3ec", "ctime": 1685207938.5451577, "dev": 51714, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 148967, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1685207938.5451577, "nlink": 1, "path": "/etc/pki/tls/private/mycert_subject_complex.key", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1704, "uid": 0, "version": "3319856118", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /WORKDIR/git-weekly-ci_6e67e8a/tests/tasks/assert_certificate_parameters.yml:58 Saturday 27 May 2023 17:19:13 +0000 (0:00:00.229) 0:00:26.981 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/git-weekly-ci_6e67e8a/tests/tasks/assert_certificate_parameters.yml:64 Saturday 27 May 2023 17:19:13 +0000 (0:00:00.026) 0:00:27.007 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/git-weekly-ci_6e67e8a/tests/tasks/assert_certificate_parameters.yml:74 Saturday 27 May 2023 17:19:13 +0000 (0:00:00.060) 0:00:27.068 ********** ok: [sut] => { "changed": false, "cmd": [ "/tmp/certificate-tests-venv/bin/certreader2json", "/etc/pki/tls/certs/mycert_subject_complex.crt" ], "delta": "0:00:00.207775", "end": "2023-05-27 17:19:14.239169", "rc": 0, "start": "2023-05-27 17:19:14.031394" } STDOUT: { "subject": [ { "name": "emailAddress", "oid": "1.2.840.113549.1.9.1", "value": "admin@example.com" }, { "name": "commonName", "oid": "2.5.4.3", "value": "# \\\\Every\"thing+that,ne;edsing\\0 " } ], "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": "8B:AD:30:AF:EF:FF:61:35:9C:D6:D2:F1:76:9C:21:25:36:A6:90:4B", "critical": false }, "authorityKeyIdentifier": { "value": "5D:3B:4F:7C:A4:A8:CB:A8:A7:9A:F5:7F:00:3D:DD:56:85:77:F1:53", "critical": false } }, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "05:86:C8:02:47:0E:99:C7:41:AB:09:FE:09:B5:ED:F8:66:A0:48:57:E8:96:40:A3:04:5A:87:70:3B:49:7D:F1:87:03:92:64:5F:1D:5E:A6:B9:E6:A8:FE:A5:D6:96:FB:79:65:25:30:B3:C9:23:41:09:E9:4F:04:84:25:87:0D:B0:44:BF:2F:BD:42:61:14:C2:19:C9:25:DB:77:66:40:9D:59:FA:7F:F3:46:49:2E:D5:E5:E8:4B:F0:DC:9F:76:10:83:B2:39:BD:C1:B1:A9:1C:00:65:10:98:37:15:EB:6A:D4:86:06:81:AF:1D:24:1F:41:9E:7E:C4:B5:86:B0:63:8C:57:18:CC:9B:F3:2B:23:6B:5F:26:8F:69:20:2B:32:C6:C2:22:DA:29:CC:56:6E:80:3D:29:55:7A:1D:B5:C4:34:B5:47:BF:01:DF:FA:26:57:80:A1:8E:05:1D:FB:89:95:BC:47:47:B6:9E:0F:81:31:B9:39:82:6C:DD:EA:5D:4C:C1:67:61:4D:CE:56:FD:18:40:AA:00:7F:C0:61:F7:61:A7:68:99:E0:B8:12:04:A1:9F:B2:4B:36:92:B3:E9:E4:D2:2F:33:AE:68:01:35:2C:AE:AE:98:3B:42:7B:7C:99:4A:DE:34:01:C2:01:E6:D2:B5:C5:92:C4:82:8D" }, "key_size": 2048, "validity": { "not_valid_after": "2024-05-27 17:18:57", "not_valid_before": "2023-05-27 17:18:58" } } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/git-weekly-ci_6e67e8a/tests/tasks/assert_certificate_parameters.yml:79 Saturday 27 May 2023 17:19:14 +0000 (0:00:00.527) 0:00:27.595 ********** ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "5D:3B:4F:7C:A4:A8:CB:A8:A7:9A:F5:7F:00:3D:DD:56:85:77:F1:53" }, "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": "8B:AD:30:AF:EF:FF:61:35:9C:D6:D2:F1:76:9C:21:25:36:A6:90:4B" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "05:86:C8:02:47:0E:99:C7:41:AB:09:FE:09:B5:ED:F8:66:A0:48:57:E8:96:40:A3:04:5A:87:70:3B:49:7D:F1:87:03:92:64:5F:1D:5E:A6:B9:E6:A8:FE:A5:D6:96:FB:79:65:25:30:B3:C9:23:41:09:E9:4F:04:84:25:87:0D:B0:44:BF:2F:BD:42:61:14:C2:19:C9:25:DB:77:66:40:9D:59:FA:7F:F3:46:49:2E:D5:E5:E8:4B:F0:DC:9F:76:10:83:B2:39:BD:C1:B1:A9:1C:00:65:10:98:37:15:EB:6A:D4:86:06:81:AF:1D:24:1F:41:9E:7E:C4:B5:86:B0:63:8C:57:18:CC:9B:F3:2B:23:6B:5F:26:8F:69:20:2B:32:C6:C2:22:DA:29:CC:56:6E:80:3D:29:55:7A:1D:B5:C4:34:B5:47:BF:01:DF:FA:26:57:80:A1:8E:05:1D:FB:89:95:BC:47:47:B6:9E:0F:81:31:B9:39:82:6C:DD:EA:5D:4C:C1:67:61:4D:CE:56:FD:18:40:AA:00:7F:C0:61:F7:61:A7:68:99:E0:B8:12:04:A1:9F:B2:4B:36:92:B3:E9:E4:D2:2F:33:AE:68:01:35:2C:AE:AE:98:3B:42:7B:7C:99:4A:DE:34:01:C2:01:E6:D2:B5:C5:92:C4:82:8D" }, "subject": [ { "name": "emailAddress", "oid": "1.2.840.113549.1.9.1", "value": "admin@example.com" }, { "name": "commonName", "oid": "2.5.4.3", "value": "# \\\\Every\"thing+that,ne;edsing\\0 " } ], "validity": { "not_valid_after": "2024-05-27 17:18:57", "not_valid_before": "2023-05-27 17:18:58" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/git-weekly-ci_6e67e8a/tests/tasks/assert_certificate_parameters.yml:83 Saturday 27 May 2023 17:19:14 +0000 (0:00:00.034) 0:00:27.630 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/git-weekly-ci_6e67e8a/tests/tasks/assert_certificate_parameters.yml:91 Saturday 27 May 2023 17:19:14 +0000 (0:00:00.058) 0:00:27.688 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/git-weekly-ci_6e67e8a/tests/tasks/assert_certificate_parameters.yml:99 Saturday 27 May 2023 17:19:14 +0000 (0:00:00.024) 0:00:27.713 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/git-weekly-ci_6e67e8a/tests/tasks/assert_certificate_parameters.yml:106 Saturday 27 May 2023 17:19:14 +0000 (0:00:00.055) 0:00:27.768 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/git-weekly-ci_6e67e8a/tests/tasks/assert_certificate_parameters.yml:118 Saturday 27 May 2023 17:19:14 +0000 (0:00:00.049) 0:00:27.818 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/git-weekly-ci_6e67e8a/tests/tasks/assert_certificate_parameters.yml:132 Saturday 27 May 2023 17:19:14 +0000 (0:00:00.047) 0:00:27.866 ********** ok: [sut] => { "changed": false, "cmd": "set -euo pipefail; getcert list -f /etc/pki/tls/certs/mycert_subject_complex.crt | grep 'auto-renew' | sed 's/^\\s\\+auto-renew: //g'", "delta": "0:00:00.048910", "end": "2023-05-27 17:19:14.777917", "rc": 0, "start": "2023-05-27 17:19:14.729007" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/git-weekly-ci_6e67e8a/tests/tasks/assert_certificate_parameters.yml:141 Saturday 27 May 2023 17:19:14 +0000 (0:00:00.267) 0:00:28.133 ********** ok: [sut] => { "changed": false } MSG: All assertions passed PLAY RECAP ********************************************************************* sut : ok=31 changed=8 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 Saturday 27 May 2023 17:19:14 +0000 (0:00:00.066) 0:00:28.199 ********** =============================================================================== Install the package, force upgrade -------------------------------------- 6.62s /WORKDIR/git-weekly-ci_6e67e8a/tests/tasks/assert_certificate_parameters.yml:11 Install certreader ------------------------------------------------------ 4.56s /WORKDIR/git-weekly-ci_6e67e8a/tests/tasks/assert_certificate_parameters.yml:18 fedora.linux_system_roles.certificate : Ensure provider packages are installed --- 4.08s /WORKDIR/git-weekly-ci_6e67e8a/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:22 fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed --- 3.39s /WORKDIR/git-weekly-ci_6e67e8a/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Ensure python3 is installed --------------------------------------------- 2.37s /WORKDIR/git-weekly-ci_6e67e8a/tests/tasks/assert_certificate_parameters.yml:6 fedora.linux_system_roles.certificate : Ensure certificate requests ----- 1.48s /WORKDIR/git-weekly-ci_6e67e8a/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:99 fedora.linux_system_roles.certificate : Ensure provider service is running --- 0.98s /WORKDIR/git-weekly-ci_6e67e8a/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:88 Gathering Facts --------------------------------------------------------- 0.95s /WORKDIR/git-weekly-ci_6e67e8a/tests/tests_subject_complex.yml:2 -------------- Gathering Facts --------------------------------------------------------- 0.63s /WORKDIR/git-weekly-ci_6e67e8a/tests/tests_subject_complex.yml:16 ------------- Parse certificate ------------------------------------------------------- 0.53s /WORKDIR/git-weekly-ci_6e67e8a/tests/tasks/assert_certificate_parameters.yml:74 fedora.linux_system_roles.certificate : Ensure ansible_facts used by role --- 0.39s /WORKDIR/git-weekly-ci_6e67e8a/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:2 fedora.linux_system_roles.certificate : Ensure pre-scripts hooks directory exists --- 0.38s /WORKDIR/git-weekly-ci_6e67e8a/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:33 Retrieve certificate file stats ----------------------------------------- 0.35s /WORKDIR/git-weekly-ci_6e67e8a/tests/tasks/assert_certificate_parameters.yml:26 Retrieve auto-renew flag ------------------------------------------------ 0.27s /WORKDIR/git-weekly-ci_6e67e8a/tests/tasks/assert_certificate_parameters.yml:132 fedora.linux_system_roles.certificate : Ensure post-scripts hooks directory exists --- 0.27s /WORKDIR/git-weekly-ci_6e67e8a/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:59 Retrieve key file stats ------------------------------------------------- 0.23s /WORKDIR/git-weekly-ci_6e67e8a/tests/tasks/assert_certificate_parameters.yml:53 Verify certificate auto-renew flag -------------------------------------- 0.07s /WORKDIR/git-weekly-ci_6e67e8a/tests/tasks/assert_certificate_parameters.yml:141 Verify certificate file owner and group --------------------------------- 0.06s /WORKDIR/git-weekly-ci_6e67e8a/tests/tasks/assert_certificate_parameters.yml:37 Verify key file owner and group ----------------------------------------- 0.06s /WORKDIR/git-weekly-ci_6e67e8a/tests/tasks/assert_certificate_parameters.yml:64 Verify certificate subject ---------------------------------------------- 0.06s /WORKDIR/git-weekly-ci_6e67e8a/tests/tasks/assert_certificate_parameters.yml:83 ---^---^---^---^---^--- # STDERR: ---v---v---v---v---v--- ---^---^---^---^---^---