# STDOUT: ---v---v---v---v---v--- ansible-playbook [core 2.13.6] 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.13/lib/python3.8/site-packages/ansible ansible collection location = /WORKDIR/dist-git-certificate-weekly-ci-_trtb3qr/.collection executable location = /opt/ansible-2.13/bin/ansible-playbook python version = 3.8.13 (default, Jun 24 2022, 15:27:57) [GCC 8.5.0 20210514 (Red Hat 8.5.0-13)] jinja version = 3.1.2 libyaml = True Using /etc/ansible/ansible.cfg as config file Skipping callback 'debug', as we already have a stdout callback. Skipping callback 'default', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. PLAYBOOK: tests_run_hooks.yml ************************************************** 2 plays in /WORKDIR/dist-git-certificate-weekly-ci-_trtb3qr/tests/tests_run_hooks.yml PLAY [Issue simple self-signed certificate] ************************************ TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/dist-git-certificate-weekly-ci-_trtb3qr/tests/tests_run_hooks.yml:2 Saturday 28 January 2023 18:56:16 +0000 (0:00:00.178) 0:00:00.178 ****** ok: [sut] META: ran handlers TASK [fedora.linux_system_roles.certificate : Set version specific variables] *** task path: /WORKDIR/dist-git-certificate-weekly-ci-_trtb3qr/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:2 Saturday 28 January 2023 18:56:22 +0000 (0:00:05.611) 0:00:05.789 ****** included: /WORKDIR/dist-git-certificate-weekly-ci-_trtb3qr/.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-_trtb3qr/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:2 Saturday 28 January 2023 18:56:22 +0000 (0:00:00.414) 0:00:06.204 ****** ok: [sut] TASK [fedora.linux_system_roles.certificate : Set platform/version specific variables] *** task path: /WORKDIR/dist-git-certificate-weekly-ci-_trtb3qr/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:7 Saturday 28 January 2023 18:56:24 +0000 (0:00:01.315) 0:00:07.520 ****** 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_8.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat_8.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=RedHat_8.8.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat_8.8.yml", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed] *** task path: /WORKDIR/dist-git-certificate-weekly-ci-_trtb3qr/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Saturday 28 January 2023 18:56:25 +0000 (0:00:00.952) 0:00:08.473 ****** changed: [sut] => { "changed": true, "rc": 0, "results": [ "Installed: python3-pyasn1-0.3.7-6.el8.noarch" ] } TASK [fedora.linux_system_roles.certificate : Ensure provider packages are installed] *** task path: /WORKDIR/dist-git-certificate-weekly-ci-_trtb3qr/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:22 Saturday 28 January 2023 18:56:34 +0000 (0:00:09.291) 0:00:17.765 ****** changed: [sut] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": true, "rc": 0, "results": [ "Installed: certmonger-0.79.17-2.el8.x86_64", "Installed: xmlrpc-c-1.51.0-8.el8.x86_64", "Installed: xmlrpc-c-client-1.51.0-8.el8.x86_64" ] } TASK [fedora.linux_system_roles.certificate : Ensure pre-scripts hooks directory exists] *** task path: /WORKDIR/dist-git-certificate-weekly-ci-_trtb3qr/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:33 Saturday 28 January 2023 18:56:39 +0000 (0:00:05.518) 0:00:23.284 ****** 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-_trtb3qr/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:59 Saturday 28 January 2023 18:56:44 +0000 (0:00:04.988) 0:00:28.273 ****** 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-_trtb3qr/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:88 Saturday 28 January 2023 18:56:46 +0000 (0:00:01.572) 0:00:29.845 ****** 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.service basic.target systemd-journald.socket system.slice network.target dbus.socket syslog.target sysinit.target", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "no", "AssertTimestampMonotonic": "0", "Before": "shutdown.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "BusName": "org.fedorahosted.certmonger", "CPUAccounting": "no", "CPUAffinity": "", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "[not set]", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanFreeze": "yes", "CanIsolate": "no", "CanReload": "no", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend cap_audit_read cap_perfmon cap_bpf", "CollectMode": "inactive", "ConditionResult": "no", "ConditionTimestampMonotonic": "0", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target", "ControlPID": "0", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "Certificate monitoring and PKI enrollment", "DevicePolicy": "auto", "DynamicUser": "no", "EffectiveCPUs": "", "EffectiveMemoryNodes": "", "EnvironmentFiles": "/etc/sysconfig/certmonger (ignore_errors=yes)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "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 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FragmentPath": "/usr/lib/systemd/system/certmonger.service", "FreezerState": "running", "GID": "[not set]", "GuessMainPID": "yes", "IOAccounting": "no", "IOSchedulingClass": "0", "IOSchedulingPriority": "0", "IOWeight": "[not set]", "IPAccounting": "no", "IPEgressBytes": "18446744073709551615", "IPEgressPackets": "18446744073709551615", "IPIngressBytes": "18446744073709551615", "IPIngressPackets": "18446744073709551615", "Id": "certmonger.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "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": "65536", "LimitMEMLOCKSoft": "65536", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "262144", "LimitNOFILESoft": "1024", "LimitNPROC": "14014", "LimitNPROCSoft": "14014", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "14014", "LimitSIGPENDINGSoft": "14014", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "0", "MemoryAccounting": "yes", "MemoryCurrent": "[not set]", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "MountFlags": "", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAMask": "", "NUMAPolicy": "n/a", "Names": "certmonger.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PIDFile": "/run/certmonger.pid", "PartOf": "dbus.service", "PermissionsStartOnly": "no", "Perpetual": "no", "PrivateDevices": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "dbus.socket sysinit.target system.slice", "Restart": "no", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardInputData": "", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestampMonotonic": "0", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "dead", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "[not set]", "TasksMax": "22423", "TimeoutStartUSec": "1min 30s", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "dbus", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "disabled", "UnitFileState": "disabled", "UtmpMode": "init", "WatchdogTimestampMonotonic": "0", "WatchdogUSec": "0" } } TASK [fedora.linux_system_roles.certificate : Ensure certificate requests] ***** task path: /WORKDIR/dist-git-certificate-weekly-ci-_trtb3qr/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:99 Saturday 28 January 2023 18:56:54 +0000 (0:00:08.065) 0:00:37.910 ****** changed: [sut] => (item={'name': 'mycert_run_hooks', 'dns': 'www.example.com', 'ca': 'self-sign', 'run_before': 'touch /etc/pki/before_cert.tmp\n', 'run_after': 'touch /etc/pki/after_cert.tmp\n'}) => { "ansible_loop_var": "item", "changed": true, "item": { "ca": "self-sign", "dns": "www.example.com", "name": "mycert_run_hooks", "run_after": "touch /etc/pki/after_cert.tmp\n", "run_before": "touch /etc/pki/before_cert.tmp\n" } } MSG: Certificate requested (new). Pre/Post run hooks updated. META: role_complete for sut META: ran handlers META: ran handlers PLAY [Verify certificate] ****************************************************** TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/dist-git-certificate-weekly-ci-_trtb3qr/tests/tests_run_hooks.yml:17 Saturday 28 January 2023 18:57:01 +0000 (0:00:07.347) 0:00:45.257 ****** ok: [sut] META: ran handlers TASK [Verify each certificate] ************************************************* task path: /WORKDIR/dist-git-certificate-weekly-ci-_trtb3qr/tests/tests_run_hooks.yml:31 Saturday 28 January 2023 18:57:04 +0000 (0:00:02.754) 0:00:48.012 ****** included: /WORKDIR/dist-git-certificate-weekly-ci-_trtb3qr/tests/tasks/assert_certificate_parameters.yml for sut => (item={'path': '/etc/pki/tls/certs/mycert_run_hooks.crt', 'key_path': '/etc/pki/tls/private/mycert_run_hooks.key', 'subject': [{'name': 'commonName', 'oid': '2.5.4.3', 'value': 'www.example.com'}], 'subject_alt_name': [{'name': 'DNS', 'value': 'www.example.com'}]}) TASK [Set virtualenv_path] ***************************************************** task path: /WORKDIR/dist-git-certificate-weekly-ci-_trtb3qr/tests/tasks/assert_certificate_parameters.yml:2 Saturday 28 January 2023 18:57:05 +0000 (0:00:00.546) 0:00:48.559 ****** 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-_trtb3qr/tests/tasks/assert_certificate_parameters.yml:6 Saturday 28 January 2023 18:57:05 +0000 (0:00:00.292) 0:00:48.851 ****** 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-_trtb3qr/tests/tasks/assert_certificate_parameters.yml:11 Saturday 28 January 2023 18:57:08 +0000 (0:00:02.796) 0:00:51.648 ****** 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: Collecting pip Downloading https://files.pythonhosted.org/packages/a4/6d/6463d49a933f547439d6b5b98b46af8742cc03ae83543e4d7688c2420f8b/pip-21.3.1-py3-none-any.whl (1.7MB) Installing collected packages: pip Found existing installation: pip 9.0.3 Uninstalling pip-9.0.3: Successfully uninstalled pip-9.0.3 Successfully installed pip-21.3.1 STDERR: You are using pip version 21.3.1, however version 22.3.1 is available. You should consider upgrading via the 'pip install --upgrade pip' command. TASK [Install certreader] ****************************************************** task path: /WORKDIR/dist-git-certificate-weekly-ci-_trtb3qr/tests/tasks/assert_certificate_parameters.yml:18 Saturday 28 January 2023 18:57:17 +0000 (0:00:09.104) 0:01:00.752 ****** 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) 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-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.whl (402 kB) Collecting pyasn1 Downloading pyasn1-0.4.8-py2.py3-none-any.whl (77 kB) Collecting pyyaml Downloading PyYAML-6.0-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (603 kB) Collecting pycparser Downloading pycparser-2.21-py2.py3-none-any.whl (118 kB) Using legacy 'setup.py install' for certreader, since package 'wheel' is not installed. Installing collected packages: pycparser, cffi, pyyaml, pyasn1, 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 TASK [Retrieve certificate file stats] ***************************************** task path: /WORKDIR/dist-git-certificate-weekly-ci-_trtb3qr/tests/tasks/assert_certificate_parameters.yml:26 Saturday 28 January 2023 18:57:23 +0000 (0:00:05.929) 0:01:06.681 ****** ok: [sut] => { "changed": false, "stat": { "atime": 1674932220.9993515, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "5405d9aeb16516cac109649f2386abe49c16b045", "ctime": 1674932220.9953516, "dev": 51715, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 897, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1674932220.9953516, "nlink": 1, "path": "/etc/pki/tls/certs/mycert_run_hooks.crt", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1294, "uid": 0, "version": "4138012404", "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-_trtb3qr/tests/tasks/assert_certificate_parameters.yml:31 Saturday 28 January 2023 18:57:27 +0000 (0:00:04.489) 0:01:11.171 ****** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/dist-git-certificate-weekly-ci-_trtb3qr/tests/tasks/assert_certificate_parameters.yml:37 Saturday 28 January 2023 18:57:29 +0000 (0:00:01.183) 0:01:12.354 ****** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/dist-git-certificate-weekly-ci-_trtb3qr/tests/tasks/assert_certificate_parameters.yml:47 Saturday 28 January 2023 18:57:30 +0000 (0:00:01.563) 0:01:13.918 ****** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/dist-git-certificate-weekly-ci-_trtb3qr/tests/tasks/assert_certificate_parameters.yml:53 Saturday 28 January 2023 18:57:31 +0000 (0:00:01.033) 0:01:14.951 ****** ok: [sut] => { "changed": false, "stat": { "atime": 1674932220.8803513, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "aac2f65b608ee922a335e03b2952140421ab28ba", "ctime": 1674932220.9953516, "dev": 51715, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 8389123, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1674932220.9953516, "nlink": 1, "path": "/etc/pki/tls/private/mycert_run_hooks.key", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1704, "uid": 0, "version": "269765984", "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-_trtb3qr/tests/tasks/assert_certificate_parameters.yml:58 Saturday 28 January 2023 18:57:33 +0000 (0:00:01.588) 0:01:16.540 ****** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/dist-git-certificate-weekly-ci-_trtb3qr/tests/tasks/assert_certificate_parameters.yml:64 Saturday 28 January 2023 18:57:34 +0000 (0:00:00.934) 0:01:17.474 ****** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/dist-git-certificate-weekly-ci-_trtb3qr/tests/tasks/assert_certificate_parameters.yml:74 Saturday 28 January 2023 18:57:35 +0000 (0:00:01.455) 0:01:18.929 ****** ok: [sut] => { "changed": false, "cmd": [ "/tmp/certificate-tests-venv/bin/certreader2json", "/etc/pki/tls/certs/mycert_run_hooks.crt" ], "delta": "0:00:00.318105", "end": "2023-01-28 18:57:41.794175", "rc": 0, "start": "2023-01-28 18:57:41.476070" } 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": "44:22:17:5D:9E:1C:85:F4:DA:64:0D:AF:EE:18:9E:A1:B1:02:12:9D", "critical": false }, "authorityKeyIdentifier": { "value": "EF:0B:C3:D6:45:29:C7:0E:9E:23:E0:9D:A5:91:08:22:34:A1:80:73", "critical": false } }, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "0E:F5:39:EB:95:2F:46:F9:CD:90:84:11:2B:22:11:2B:56:52:1A:1D:C8:AC:F2:63:1C:3F:1E:1C:FD:30:AA:CE:98:39:FB:C5:58:68:ED:7D:AE:6A:3A:0F:9F:7B:9B:40:17:90:BA:92:29:56:C0:B0:F5:31:E2:08:DF:7D:11:BC:62:5C:EF:49:A3:BD:94:0E:1B:BC:60:DC:CE:72:94:5C:7B:7D:6D:D5:FA:5F:00:B8:56:CA:5D:9B:D5:C4:16:CE:DB:BE:C3:E9:67:2A:FE:F6:AF:AC:41:63:4F:48:04:ED:9B:DB:6C:37:CF:85:D4:54:49:16:4D:2F:26:44:12:6D:BD:A8:E8:33:9A:09:CF:92:8B:DF:AA:26:E2:54:C9:3D:EE:B0:0A:25:AA:B0:01:1A:54:64:CE:5D:04:2C:F6:6E:50:68:1B:A7:A6:52:03:76:87:3F:CF:40:77:C2:20:C8:BA:9A:FE:F7:EA:03:46:10:5B:C3:3B:B0:E3:5C:65:57:8F:7B:B1:61:CA:04:32:47:10:D3:55:16:0F:0F:43:21:8E:EF:EE:8E:BB:8B:78:D1:6B:69:68:89:6D:57:5E:B6:F6:D4:79:AA:B7:08:76:5F:0A:D9:36:44:86:BC:72:BF:BE:9E:A2:A5:CB:7D:13:4B:58:98:42:B5:AF:8D:74:53" }, "key_size": 2048, "validity": { "not_valid_after": "2024-01-28 18:56:54", "not_valid_before": "2023-01-28 18:57:00" } } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/dist-git-certificate-weekly-ci-_trtb3qr/tests/tasks/assert_certificate_parameters.yml:79 Saturday 28 January 2023 18:57:42 +0000 (0:00:06.669) 0:01:25.599 ****** ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "EF:0B:C3:D6:45:29:C7:0E:9E:23:E0:9D:A5:91:08:22:34:A1:80:73" }, "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": "44:22:17:5D:9E:1C:85:F4:DA:64:0D:AF:EE:18:9E:A1:B1:02:12:9D" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "0E:F5:39:EB:95:2F:46:F9:CD:90:84:11:2B:22:11:2B:56:52:1A:1D:C8:AC:F2:63:1C:3F:1E:1C:FD:30:AA:CE:98:39:FB:C5:58:68:ED:7D:AE:6A:3A:0F:9F:7B:9B:40:17:90:BA:92:29:56:C0:B0:F5:31:E2:08:DF:7D:11:BC:62:5C:EF:49:A3:BD:94:0E:1B:BC:60:DC:CE:72:94:5C:7B:7D:6D:D5:FA:5F:00:B8:56:CA:5D:9B:D5:C4:16:CE:DB:BE:C3:E9:67:2A:FE:F6:AF:AC:41:63:4F:48:04:ED:9B:DB:6C:37:CF:85:D4:54:49:16:4D:2F:26:44:12:6D:BD:A8:E8:33:9A:09:CF:92:8B:DF:AA:26:E2:54:C9:3D:EE:B0:0A:25:AA:B0:01:1A:54:64:CE:5D:04:2C:F6:6E:50:68:1B:A7:A6:52:03:76:87:3F:CF:40:77:C2:20:C8:BA:9A:FE:F7:EA:03:46:10:5B:C3:3B:B0:E3:5C:65:57:8F:7B:B1:61:CA:04:32:47:10:D3:55:16:0F:0F:43:21:8E:EF:EE:8E:BB:8B:78:D1:6B:69:68:89:6D:57:5E:B6:F6:D4:79:AA:B7:08:76:5F:0A:D9:36:44:86:BC:72:BF:BE:9E:A2:A5:CB:7D:13:4B:58:98:42:B5:AF:8D:74:53" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "2024-01-28 18:56:54", "not_valid_before": "2023-01-28 18:57:00" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/dist-git-certificate-weekly-ci-_trtb3qr/tests/tasks/assert_certificate_parameters.yml:83 Saturday 28 January 2023 18:57:44 +0000 (0:00:02.114) 0:01:27.713 ****** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/dist-git-certificate-weekly-ci-_trtb3qr/tests/tasks/assert_certificate_parameters.yml:91 Saturday 28 January 2023 18:57:46 +0000 (0:00:02.163) 0:01:29.877 ****** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/dist-git-certificate-weekly-ci-_trtb3qr/tests/tasks/assert_certificate_parameters.yml:99 Saturday 28 January 2023 18:57:47 +0000 (0:00:00.770) 0:01:30.647 ****** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/dist-git-certificate-weekly-ci-_trtb3qr/tests/tasks/assert_certificate_parameters.yml:106 Saturday 28 January 2023 18:57:48 +0000 (0:00:01.650) 0:01:32.298 ****** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/dist-git-certificate-weekly-ci-_trtb3qr/tests/tasks/assert_certificate_parameters.yml:118 Saturday 28 January 2023 18:57:51 +0000 (0:00:02.377) 0:01:34.675 ****** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/dist-git-certificate-weekly-ci-_trtb3qr/tests/tasks/assert_certificate_parameters.yml:132 Saturday 28 January 2023 18:57:53 +0000 (0:00:02.296) 0:01:36.971 ****** ok: [sut] => { "changed": false, "cmd": "set -euo pipefail; getcert list -f /etc/pki/tls/certs/mycert_run_hooks.crt | grep 'auto-renew' | sed 's/^\\s\\+auto-renew: //g'", "delta": "0:00:00.064908", "end": "2023-01-28 18:57:54.537553", "rc": 0, "start": "2023-01-28 18:57:54.472645" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/dist-git-certificate-weekly-ci-_trtb3qr/tests/tasks/assert_certificate_parameters.yml:141 Saturday 28 January 2023 18:57:54 +0000 (0:00:01.139) 0:01:38.111 ****** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Get certificate timestamp] *********************************************** task path: /WORKDIR/dist-git-certificate-weekly-ci-_trtb3qr/tests/tests_run_hooks.yml:39 Saturday 28 January 2023 18:57:56 +0000 (0:00:01.559) 0:01:39.670 ****** ok: [sut] => { "changed": false, "stat": { "atime": 1674932220.9993515, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "5405d9aeb16516cac109649f2386abe49c16b045", "ctime": 1674932220.9953516, "dev": 51715, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 897, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1674932220.9953516, "nlink": 1, "path": "/etc/pki/tls/certs/mycert_run_hooks.crt", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1294, "uid": 0, "version": "4138012404", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Get pre-run file timestamp] ********************************************** task path: /WORKDIR/dist-git-certificate-weekly-ci-_trtb3qr/tests/tests_run_hooks.yml:43 Saturday 28 January 2023 18:57:58 +0000 (0:00:02.063) 0:01:41.733 ****** ok: [sut] => { "changed": false, "stat": { "atime": 1674932220.9923515, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "checksum": "da39a3ee5e6b4b0d3255bfef95601890afd80709", "ctime": 1674932220.9923515, "dev": 51715, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 8389970, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "inode/x-empty", "mode": "0600", "mtime": 1674932220.9923515, "nlink": 1, "path": "/etc/pki/before_cert.tmp", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 0, "uid": 0, "version": "242435405", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Get post-run file timestamp] ********************************************* task path: /WORKDIR/dist-git-certificate-weekly-ci-_trtb3qr/tests/tests_run_hooks.yml:47 Saturday 28 January 2023 18:58:00 +0000 (0:00:01.963) 0:01:43.697 ****** ok: [sut] => { "changed": false, "stat": { "atime": 1674932221.0393515, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 0, "charset": "binary", "checksum": "da39a3ee5e6b4b0d3255bfef95601890afd80709", "ctime": 1674932221.0393515, "dev": 51715, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 8389974, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "inode/x-empty", "mode": "0600", "mtime": 1674932221.0393515, "nlink": 1, "path": "/etc/pki/after_cert.tmp", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 0, "uid": 0, "version": "2640899487", "wgrp": false, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Assert file created before cert] ***************************************** task path: /WORKDIR/dist-git-certificate-weekly-ci-_trtb3qr/tests/tests_run_hooks.yml:51 Saturday 28 January 2023 18:58:02 +0000 (0:00:02.170) 0:01:45.867 ****** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Assert file created after cert] ****************************************** task path: /WORKDIR/dist-git-certificate-weekly-ci-_trtb3qr/tests/tests_run_hooks.yml:58 Saturday 28 January 2023 18:58:03 +0000 (0:00:00.853) 0:01:46.721 ****** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Get the ansible_managed comment in pre/post-scripts] ********************* task path: /WORKDIR/dist-git-certificate-weekly-ci-_trtb3qr/tests/tests_run_hooks.yml:66 Saturday 28 January 2023 18:58:04 +0000 (0:00:00.847) 0:01:47.569 ****** ok: [sut] => { "changed": false, "cmd": [ "find", "/etc/certmonger/pre-scripts", "/etc/certmonger/post-scripts", "-type", "f", "-exec", "grep", "^# Ansible managed", "{}", ";" ], "delta": "0:00:00.006851", "end": "2023-01-28 18:58:05.055821", "rc": 0, "start": "2023-01-28 18:58:05.048970" } STDOUT: # Ansible managed # Ansible managed TASK [Verify the ansible_managed comment in pre/post-scripts] ****************** task path: /WORKDIR/dist-git-certificate-weekly-ci-_trtb3qr/tests/tests_run_hooks.yml:73 Saturday 28 January 2023 18:58:05 +0000 (0:00:01.174) 0:01:48.744 ****** ok: [sut] => { "changed": false } MSG: All assertions passed META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* sut : ok=38 changed=8 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 Saturday 28 January 2023 18:58:06 +0000 (0:00:01.276) 0:01:50.020 ****** =============================================================================== fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed --- 9.29s /WORKDIR/dist-git-certificate-weekly-ci-_trtb3qr/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Install the package, force upgrade -------------------------------------- 9.10s /WORKDIR/dist-git-certificate-weekly-ci-_trtb3qr/tests/tasks/assert_certificate_parameters.yml:11 fedora.linux_system_roles.certificate : Ensure provider service is running --- 8.07s /WORKDIR/dist-git-certificate-weekly-ci-_trtb3qr/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:88 fedora.linux_system_roles.certificate : Ensure certificate requests ----- 7.35s /WORKDIR/dist-git-certificate-weekly-ci-_trtb3qr/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:99 Parse certificate ------------------------------------------------------- 6.67s /WORKDIR/dist-git-certificate-weekly-ci-_trtb3qr/tests/tasks/assert_certificate_parameters.yml:74 Install certreader ------------------------------------------------------ 5.93s /WORKDIR/dist-git-certificate-weekly-ci-_trtb3qr/tests/tasks/assert_certificate_parameters.yml:18 Gathering Facts --------------------------------------------------------- 5.61s /WORKDIR/dist-git-certificate-weekly-ci-_trtb3qr/tests/tests_run_hooks.yml:2 -- fedora.linux_system_roles.certificate : Ensure provider packages are installed --- 5.52s /WORKDIR/dist-git-certificate-weekly-ci-_trtb3qr/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:22 fedora.linux_system_roles.certificate : Ensure pre-scripts hooks directory exists --- 4.99s /WORKDIR/dist-git-certificate-weekly-ci-_trtb3qr/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:33 Retrieve certificate file stats ----------------------------------------- 4.49s /WORKDIR/dist-git-certificate-weekly-ci-_trtb3qr/tests/tasks/assert_certificate_parameters.yml:26 Ensure python3 is installed --------------------------------------------- 2.80s /WORKDIR/dist-git-certificate-weekly-ci-_trtb3qr/tests/tasks/assert_certificate_parameters.yml:6 Gathering Facts --------------------------------------------------------- 2.75s /WORKDIR/dist-git-certificate-weekly-ci-_trtb3qr/tests/tests_run_hooks.yml:17 - Verify certificate Key Usage -------------------------------------------- 2.38s /WORKDIR/dist-git-certificate-weekly-ci-_trtb3qr/tests/tasks/assert_certificate_parameters.yml:106 Verify certificate Extended Key Usage ----------------------------------- 2.30s /WORKDIR/dist-git-certificate-weekly-ci-_trtb3qr/tests/tasks/assert_certificate_parameters.yml:118 Get post-run file timestamp --------------------------------------------- 2.17s /WORKDIR/dist-git-certificate-weekly-ci-_trtb3qr/tests/tests_run_hooks.yml:47 - Verify certificate subject ---------------------------------------------- 2.16s /WORKDIR/dist-git-certificate-weekly-ci-_trtb3qr/tests/tasks/assert_certificate_parameters.yml:83 Load certificate YAML to cert_issued variable --------------------------- 2.11s /WORKDIR/dist-git-certificate-weekly-ci-_trtb3qr/tests/tasks/assert_certificate_parameters.yml:79 Get certificate timestamp ----------------------------------------------- 2.06s /WORKDIR/dist-git-certificate-weekly-ci-_trtb3qr/tests/tests_run_hooks.yml:39 - Get pre-run file timestamp ---------------------------------------------- 1.96s /WORKDIR/dist-git-certificate-weekly-ci-_trtb3qr/tests/tests_run_hooks.yml:43 - Verify key size --------------------------------------------------------- 1.65s /WORKDIR/dist-git-certificate-weekly-ci-_trtb3qr/tests/tasks/assert_certificate_parameters.yml:99 ---^---^---^---^---^--- # 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. ---^---^---^---^---^---