# 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_key_size.yml *************************************************** 2 plays in /WORKDIR/dist-git-certificate-weekly-ci-_trtb3qr/tests/tests_key_size.yml PLAY [Issue simple self-signed certificate] ************************************ TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/dist-git-certificate-weekly-ci-_trtb3qr/tests/tests_key_size.yml:2 Saturday 28 January 2023 18:17:14 +0000 (0:00:00.339) 0:00:00.339 ****** 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:17:26 +0000 (0:00:11.783) 0:00:12.122 ****** 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:17:27 +0000 (0:00:01.012) 0:00:13.159 ****** 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:17:29 +0000 (0:00:01.787) 0:00:14.947 ****** 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:17:30 +0000 (0:00:01.058) 0:00:16.005 ****** 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:17:36 +0000 (0:00:05.927) 0:00:21.933 ****** 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:17:42 +0000 (0:00:06.287) 0:00:28.221 ****** 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:17:49 +0000 (0:00:07.347) 0:00:35.569 ****** 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:17:53 +0000 (0:00:03.334) 0:00:38.903 ****** 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": "sysinit.target network.target syslog.target dbus.service system.slice basic.target dbus.socket systemd-journald.socket", "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:18:07 +0000 (0:00:14.662) 0:00:53.565 ****** changed: [sut] => (item={'name': 'mycert_key_size', 'dns': 'www.example.com', 'ca': 'self-sign', 'key_size': 4096}) => { "ansible_loop_var": "item", "changed": true, "item": { "ca": "self-sign", "dns": "www.example.com", "key_size": 4096, "name": "mycert_key_size" } } MSG: Certificate requested (new). 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_key_size.yml:14 Saturday 28 January 2023 18:18:15 +0000 (0:00:07.937) 0:01:01.502 ****** ok: [sut] META: ran handlers TASK [Verify each certificate] ************************************************* task path: /WORKDIR/dist-git-certificate-weekly-ci-_trtb3qr/tests/tests_key_size.yml:29 Saturday 28 January 2023 18:18:18 +0000 (0:00:02.603) 0:01:04.106 ****** included: /WORKDIR/dist-git-certificate-weekly-ci-_trtb3qr/tests/tasks/assert_certificate_parameters.yml for sut => (item={'path': '/etc/pki/tls/certs/mycert_key_size.crt', 'key_path': '/etc/pki/tls/private/mycert_key_size.key', 'subject': [{'name': 'commonName', 'oid': '2.5.4.3', 'value': 'www.example.com'}], 'subject_alt_name': [{'name': 'DNS', 'value': 'www.example.com'}], 'key_size': 4096}) 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:18:19 +0000 (0:00:01.501) 0:01:05.607 ****** 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:18:20 +0000 (0:00:00.656) 0:01:06.263 ****** 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:18:23 +0000 (0:00:03.169) 0:01:09.433 ****** 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:18:36 +0000 (0:00:12.749) 0:01:22.183 ****** 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:18:42 +0000 (0:00:05.958) 0:01:28.141 ****** ok: [sut] => { "changed": false, "stat": { "atime": 1674929893.9731576, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "1ed95ee0c87038f23e1731c9a210c9226beb3e01", "ctime": 1674929893.9691577, "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": 1674929893.9691577, "nlink": 1, "path": "/etc/pki/tls/certs/mycert_key_size.crt", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1639, "uid": 0, "version": "2620559603", "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:18:45 +0000 (0:00:02.726) 0:01:30.867 ****** 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:18:45 +0000 (0:00:00.959) 0:01:31.827 ****** 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:18:47 +0000 (0:00:01.662) 0:01:33.490 ****** 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:18:49 +0000 (0:00:01.766) 0:01:35.256 ****** ok: [sut] => { "changed": false, "stat": { "atime": 1674929893.8551586, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "d33b9a40245a0371de92224d3d4ae43b8759c8ee", "ctime": 1674929893.9691577, "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": 1674929893.9691577, "nlink": 1, "path": "/etc/pki/tls/private/mycert_key_size.key", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 3268, "uid": 0, "version": "3466883574", "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:18:50 +0000 (0:00:01.060) 0:01:36.316 ****** 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:18:51 +0000 (0:00:00.698) 0:01:37.015 ****** 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:18:52 +0000 (0:00:00.902) 0:01:37.917 ****** ok: [sut] => { "changed": false, "cmd": [ "/tmp/certificate-tests-venv/bin/certreader2json", "/etc/pki/tls/certs/mycert_key_size.crt" ], "delta": "0:00:00.327965", "end": "2023-01-28 18:18:56.633654", "rc": 0, "start": "2023-01-28 18:18:56.305689" } 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": "CB:6C:49:35:AC:22:52:14:55:38:92:29:27:91:F5:B0:E2:E8:C7:BE", "critical": false }, "authorityKeyIdentifier": { "value": "A0:1D:C9:AA:93:2B:7E:7B:EA:0D:C9:02:A3:A8:0A:5E:C2:A5:C3:2A", "critical": false } }, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "4F:FB:CB:AA:5E:35:B7:00:32:8E:AD:95:62:9D:AB:D7:37:AB:17:62:69:61:D8:2D:A3:64:71:18:F4:C6:DB:B3:AF:F9:07:4F:D0:D1:AE:14:A0:1D:DA:B2:64:09:16:65:66:C0:47:32:96:EA:36:A0:B2:C5:98:5D:43:E8:6D:33:9D:55:20:79:6D:AA:C9:95:CF:B1:FE:DB:C4:00:EB:74:74:32:E7:AA:9F:3B:CF:4A:D4:0A:39:41:CA:85:28:76:1F:9E:41:41:D1:33:1C:1A:31:D6:94:D7:31:DD:8D:6C:3C:A4:8D:93:C9:CA:7C:86:47:EC:42:54:C0:E4:3A:73:C9:24:BB:24:DD:07:A1:D6:D5:79:40:AD:09:52:CB:D9:D2:76:F4:5A:F2:E4:6E:3E:B7:78:0D:96:99:E0:B7:15:45:30:CF:1E:80:F4:CB:FD:78:0F:86:5E:49:25:4C:7D:E0:32:95:D5:CF:03:D5:A2:E1:3A:E8:3B:38:81:0D:8B:E1:87:24:CB:08:94:91:C2:81:26:C6:4F:E0:D6:D6:9B:15:69:FC:5B:8B:6E:3B:76:B4:E7:86:30:77:4D:FA:E8:DE:3B:6B:E5:60:8D:C7:9D:D7:E7:BD:6F:96:92:F6:90:E5:E3:82:98:1F:D9:A3:87:28:67:BB:26:FB:37:4F:8F" }, "key_size": 4096, "validity": { "not_valid_after": "2024-01-28 18:18:07", "not_valid_before": "2023-01-28 18:18:13" } } 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:18:56 +0000 (0:00:04.928) 0:01:42.846 ****** ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "A0:1D:C9:AA:93:2B:7E:7B:EA:0D:C9:02:A3:A8:0A:5E:C2:A5:C3:2A" }, "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": "CB:6C:49:35:AC:22:52:14:55:38:92:29:27:91:F5:B0:E2:E8:C7:BE" } }, "key_size": 4096, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "4F:FB:CB:AA:5E:35:B7:00:32:8E:AD:95:62:9D:AB:D7:37:AB:17:62:69:61:D8:2D:A3:64:71:18:F4:C6:DB:B3:AF:F9:07:4F:D0:D1:AE:14:A0:1D:DA:B2:64:09:16:65:66:C0:47:32:96:EA:36:A0:B2:C5:98:5D:43:E8:6D:33:9D:55:20:79:6D:AA:C9:95:CF:B1:FE:DB:C4:00:EB:74:74:32:E7:AA:9F:3B:CF:4A:D4:0A:39:41:CA:85:28:76:1F:9E:41:41:D1:33:1C:1A:31:D6:94:D7:31:DD:8D:6C:3C:A4:8D:93:C9:CA:7C:86:47:EC:42:54:C0:E4:3A:73:C9:24:BB:24:DD:07:A1:D6:D5:79:40:AD:09:52:CB:D9:D2:76:F4:5A:F2:E4:6E:3E:B7:78:0D:96:99:E0:B7:15:45:30:CF:1E:80:F4:CB:FD:78:0F:86:5E:49:25:4C:7D:E0:32:95:D5:CF:03:D5:A2:E1:3A:E8:3B:38:81:0D:8B:E1:87:24:CB:08:94:91:C2:81:26:C6:4F:E0:D6:D6:9B:15:69:FC:5B:8B:6E:3B:76:B4:E7:86:30:77:4D:FA:E8:DE:3B:6B:E5:60:8D:C7:9D:D7:E7:BD:6F:96:92:F6:90:E5:E3:82:98:1F:D9:A3:87:28:67:BB:26:FB:37:4F:8F" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "2024-01-28 18:18:07", "not_valid_before": "2023-01-28 18:18:13" } } }, "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:18:57 +0000 (0:00:00.596) 0:01:43.443 ****** 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:18:59 +0000 (0:00:01.617) 0:01:45.060 ****** 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:18:59 +0000 (0:00:00.687) 0:01:45.748 ****** 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:19:01 +0000 (0:00:01.639) 0:01:47.387 ****** 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:19:02 +0000 (0:00:00.690) 0:01:48.078 ****** 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:19:02 +0000 (0:00:00.668) 0:01:48.746 ****** ok: [sut] => { "changed": false, "cmd": "set -euo pipefail; getcert list -f /etc/pki/tls/certs/mycert_key_size.crt | grep 'auto-renew' | sed 's/^\\s\\+auto-renew: //g'", "delta": "0:00:00.066768", "end": "2023-01-28 18:19:03.907158", "rc": 0, "start": "2023-01-28 18:19:03.840390" } 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:19:04 +0000 (0:00:01.257) 0:01:50.003 ****** ok: [sut] => { "changed": false } MSG: All assertions passed META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* sut : ok=31 changed=8 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 Saturday 28 January 2023 18:19:05 +0000 (0:00:01.797) 0:01:51.801 ****** =============================================================================== fedora.linux_system_roles.certificate : Ensure provider service is running -- 14.66s /WORKDIR/dist-git-certificate-weekly-ci-_trtb3qr/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:88 Install the package, force upgrade ------------------------------------- 12.75s /WORKDIR/dist-git-certificate-weekly-ci-_trtb3qr/tests/tasks/assert_certificate_parameters.yml:11 Gathering Facts -------------------------------------------------------- 11.81s /WORKDIR/dist-git-certificate-weekly-ci-_trtb3qr/tests/tests_key_size.yml:2 --- fedora.linux_system_roles.certificate : Ensure certificate requests ----- 7.94s /WORKDIR/dist-git-certificate-weekly-ci-_trtb3qr/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:99 fedora.linux_system_roles.certificate : Ensure pre-scripts hooks directory exists --- 7.35s /WORKDIR/dist-git-certificate-weekly-ci-_trtb3qr/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:33 fedora.linux_system_roles.certificate : Ensure provider packages are installed --- 6.29s /WORKDIR/dist-git-certificate-weekly-ci-_trtb3qr/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:22 Install certreader ------------------------------------------------------ 5.96s /WORKDIR/dist-git-certificate-weekly-ci-_trtb3qr/tests/tasks/assert_certificate_parameters.yml:18 fedora.linux_system_roles.certificate : Ensure certificate role dependencies are installed --- 5.93s /WORKDIR/dist-git-certificate-weekly-ci-_trtb3qr/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:5 Parse certificate ------------------------------------------------------- 4.93s /WORKDIR/dist-git-certificate-weekly-ci-_trtb3qr/tests/tasks/assert_certificate_parameters.yml:74 fedora.linux_system_roles.certificate : Ensure post-scripts hooks directory exists --- 3.33s /WORKDIR/dist-git-certificate-weekly-ci-_trtb3qr/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/main.yml:59 Ensure python3 is installed --------------------------------------------- 3.17s /WORKDIR/dist-git-certificate-weekly-ci-_trtb3qr/tests/tasks/assert_certificate_parameters.yml:6 Retrieve certificate file stats ----------------------------------------- 2.73s /WORKDIR/dist-git-certificate-weekly-ci-_trtb3qr/tests/tasks/assert_certificate_parameters.yml:26 Gathering Facts --------------------------------------------------------- 2.60s /WORKDIR/dist-git-certificate-weekly-ci-_trtb3qr/tests/tests_key_size.yml:14 -- Verify certificate auto-renew flag -------------------------------------- 1.80s /WORKDIR/dist-git-certificate-weekly-ci-_trtb3qr/tests/tasks/assert_certificate_parameters.yml:141 fedora.linux_system_roles.certificate : Ensure ansible_facts used by role --- 1.79s /WORKDIR/dist-git-certificate-weekly-ci-_trtb3qr/.collection/ansible_collections/fedora/linux_system_roles/roles/certificate/tasks/set_vars.yml:2 Verify certificate permissions ------------------------------------------ 1.77s /WORKDIR/dist-git-certificate-weekly-ci-_trtb3qr/tests/tasks/assert_certificate_parameters.yml:47 Verify certificate file owner and group --------------------------------- 1.66s /WORKDIR/dist-git-certificate-weekly-ci-_trtb3qr/tests/tasks/assert_certificate_parameters.yml:37 Verify key size --------------------------------------------------------- 1.64s /WORKDIR/dist-git-certificate-weekly-ci-_trtb3qr/tests/tasks/assert_certificate_parameters.yml:99 Verify certificate subject ---------------------------------------------- 1.62s /WORKDIR/dist-git-certificate-weekly-ci-_trtb3qr/tests/tasks/assert_certificate_parameters.yml:83 Verify each certificate ------------------------------------------------- 1.50s /WORKDIR/dist-git-certificate-weekly-ci-_trtb3qr/tests/tests_key_size.yml:29 -- ---^---^---^---^---^--- # 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. ---^---^---^---^---^---