# STDOUT: ---v---v---v---v---v--- ansible-playbook 2.9.27 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.9/lib/python3.9/site-packages/ansible executable location = /opt/ansible-2.9/bin/ansible-playbook python version = 3.9.18 (main, Sep 7 2023, 00:00:00) [GCC 11.4.1 20230605 (Red Hat 11.4.1-2)] Using /etc/ansible/ansible.cfg as config file Skipping callback 'actionable', as we already have a stdout callback. Skipping callback 'counter_enabled', as we already have a stdout callback. Skipping callback 'debug', as we already have a stdout callback. Skipping callback 'dense', as we already have a stdout callback. Skipping callback 'dense', as we already have a stdout callback. Skipping callback 'full_skip', as we already have a stdout callback. Skipping callback 'json', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'null', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. Skipping callback 'selective', as we already have a stdout callback. Skipping callback 'skippy', as we already have a stdout callback. Skipping callback 'stderr', as we already have a stdout callback. Skipping callback 'unixy', as we already have a stdout callback. Skipping callback 'yaml', as we already have a stdout callback. PLAYBOOK: tests_no_auto_renew.yml ********************************************** 2 plays in /WORKDIR/git-weekly-ci3kp_jdzh/tests/tests_no_auto_renew.yml PLAY [Issue simple self-signed certificate] ************************************ TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/tests_no_auto_renew.yml:2 Saturday 11 May 2024 14:11:13 +0000 (0:00:00.012) 0:00:00.012 ********** ok: [sut] META: ran handlers TASK [linux-system-roles.certificate : Set version specific variables] ********* task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/roles/linux-system-roles.certificate/tasks/main.yml:2 Saturday 11 May 2024 14:11:14 +0000 (0:00:00.797) 0:00:00.810 ********** included: /WORKDIR/git-weekly-ci3kp_jdzh/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml for sut TASK [linux-system-roles.certificate : Ensure ansible_facts used by role] ****** task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:2 Saturday 11 May 2024 14:11:14 +0000 (0:00:00.010) 0:00:00.821 ********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.certificate : Check if system is ostree] ************** task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:11 Saturday 11 May 2024 14:11:14 +0000 (0:00:00.016) 0:00:00.838 ********** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [linux-system-roles.certificate : Set flag to indicate system is ostree] *** task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:16 Saturday 11 May 2024 14:11:14 +0000 (0:00:00.197) 0:00:01.035 ********** ok: [sut] => { "ansible_facts": { "__certificate_is_ostree": false }, "changed": false } TASK [linux-system-roles.certificate : Set platform/version specific variables] *** task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:20 Saturday 11 May 2024 14:11:14 +0000 (0:00:00.019) 0:00:01.055 ********** skipping: [sut] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=CentOS.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS.yml", "skip_reason": "Conditional result was False" } ok: [sut] => (item=CentOS_7.yml) => { "ansible_facts": { "__certificate_default_directory": "/etc/pki/tls", "__certificate_packages": [ "python-pyasn1", "python-cryptography", "python-dbus" ] }, "ansible_included_var_files": [ "/WORKDIR/git-weekly-ci3kp_jdzh/tests/roles/linux-system-roles.certificate/vars/CentOS_7.yml" ], "ansible_loop_var": "item", "changed": false, "item": "CentOS_7.yml" } skipping: [sut] => (item=CentOS_7.9.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS_7.9.yml", "skip_reason": "Conditional result was False" } TASK [linux-system-roles.certificate : Ensure certificate role dependencies are installed] *** task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/roles/linux-system-roles.certificate/tasks/main.yml:5 Saturday 11 May 2024 14:11:14 +0000 (0:00:00.030) 0:00:01.085 ********** changed: [sut] => { "changed": true, "changes": { "installed": [ "python-pyasn1", "python-cryptography" ] }, "rc": 0, "results": [ "dbus-python-1.1.1-9.el7.x86_64 providing python-dbus is already installed", "Loaded plugins: fastestmirror\nLoading mirror speeds from cached hostfile\n * base: download.cf.centos.org\n * extras: download.cf.centos.org\n * updates: download.cf.centos.org\nResolving Dependencies\n--> Running transaction check\n---> Package python2-cryptography.x86_64 0:1.7.2-2.el7 will be installed\n--> Processing Dependency: python-idna >= 2.0 for package: python2-cryptography-1.7.2-2.el7.x86_64\n--> Processing Dependency: python-cffi >= 1.4.1 for package: python2-cryptography-1.7.2-2.el7.x86_64\n---> Package python2-pyasn1.noarch 0:0.1.9-7.el7 will be installed\n--> Running transaction check\n---> Package python-cffi.x86_64 0:1.6.0-5.el7 will be installed\n--> Processing Dependency: python-pycparser for package: python-cffi-1.6.0-5.el7.x86_64\n---> Package python-idna.noarch 0:2.4-1.el7 will be installed\n--> Running transaction check\n---> Package python-pycparser.noarch 0:2.14-1.el7 will be installed\n--> Processing Dependency: python-ply for package: python-pycparser-2.14-1.el7.noarch\n--> Running transaction check\n---> Package python-ply.noarch 0:3.4-11.el7 will be installed\n--> Finished Dependency Resolution\n\nDependencies Resolved\n\n================================================================================\n Package Arch Version Repository Size\n================================================================================\nInstalling:\n python2-cryptography x86_64 1.7.2-2.el7 base 502 k\n python2-pyasn1 noarch 0.1.9-7.el7 base 100 k\nInstalling for dependencies:\n python-cffi x86_64 1.6.0-5.el7 base 218 k\n python-idna noarch 2.4-1.el7 base 94 k\n python-ply noarch 3.4-11.el7 base 123 k\n python-pycparser noarch 2.14-1.el7 base 104 k\n\nTransaction Summary\n================================================================================\nInstall 2 Packages (+4 Dependent packages)\n\nTotal download size: 1.1 M\nInstalled size: 5.8 M\nDownloading packages:\n--------------------------------------------------------------------------------\nTotal 3.3 MB/s | 1.1 MB 00:00 \nRunning transaction check\nRunning transaction test\nTransaction test succeeded\nRunning transaction\n Installing : python2-pyasn1-0.1.9-7.el7.noarch 1/6 \n Installing : python-ply-3.4-11.el7.noarch 2/6 \n Installing : python-pycparser-2.14-1.el7.noarch 3/6 \n Installing : python-cffi-1.6.0-5.el7.x86_64 4/6 \n Installing : python-idna-2.4-1.el7.noarch 5/6 \n Installing : python2-cryptography-1.7.2-2.el7.x86_64 6/6 \n Verifying : python-idna-2.4-1.el7.noarch 1/6 \n Verifying : python-pycparser-2.14-1.el7.noarch 2/6 \n Verifying : python-ply-3.4-11.el7.noarch 3/6 \n Verifying : python-cffi-1.6.0-5.el7.x86_64 4/6 \n Verifying : python2-pyasn1-0.1.9-7.el7.noarch 5/6 \n Verifying : python2-cryptography-1.7.2-2.el7.x86_64 6/6 \n\nInstalled:\n python2-cryptography.x86_64 0:1.7.2-2.el7 python2-pyasn1.noarch 0:0.1.9-7.el7\n\nDependency Installed:\n python-cffi.x86_64 0:1.6.0-5.el7 python-idna.noarch 0:2.4-1.el7 \n python-ply.noarch 0:3.4-11.el7 python-pycparser.noarch 0:2.14-1.el7 \n\nComplete!\n" ] } lsrpackages: python-cryptography python-dbus python-pyasn1 TASK [linux-system-roles.certificate : Ensure provider packages are installed] *** task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/roles/linux-system-roles.certificate/tasks/main.yml:24 Saturday 11 May 2024 14:11:21 +0000 (0:00:06.788) 0:00:07.874 ********** changed: [sut] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": true, "changes": { "installed": [ "certmonger" ] }, "rc": 0, "results": [ "Loaded plugins: fastestmirror\nLoading mirror speeds from cached hostfile\n * base: download.cf.centos.org\n * extras: download.cf.centos.org\n * updates: download.cf.centos.org\nResolving Dependencies\n--> Running transaction check\n---> Package certmonger.x86_64 0:0.78.4-17.el7_9 will be installed\n--> Processing Dependency: libtevent.so.0(TEVENT_0.9.9)(64bit) for package: certmonger-0.78.4-17.el7_9.x86_64\n--> Processing Dependency: libtalloc.so.2(TALLOC_2.0.2)(64bit) for package: certmonger-0.78.4-17.el7_9.x86_64\n--> Processing Dependency: libxmlrpc_util.so.3()(64bit) for package: certmonger-0.78.4-17.el7_9.x86_64\n--> Processing Dependency: libxmlrpc_client.so.3()(64bit) for package: certmonger-0.78.4-17.el7_9.x86_64\n--> Processing Dependency: libxmlrpc.so.3()(64bit) for package: certmonger-0.78.4-17.el7_9.x86_64\n--> Processing Dependency: libtevent.so.0()(64bit) for package: certmonger-0.78.4-17.el7_9.x86_64\n--> Processing Dependency: libtalloc.so.2()(64bit) for package: certmonger-0.78.4-17.el7_9.x86_64\n--> Running transaction check\n---> Package libtalloc.x86_64 0:2.1.16-1.el7 will be installed\n---> Package libtevent.x86_64 0:0.9.39-1.el7 will be installed\n---> Package xmlrpc-c.x86_64 0:1.32.5-1905.svn2451.el7 will be installed\n---> Package xmlrpc-c-client.x86_64 0:1.32.5-1905.svn2451.el7 will be installed\n--> Finished Dependency Resolution\n\nDependencies Resolved\n\n================================================================================\n Package Arch Version Repository Size\n================================================================================\nInstalling:\n certmonger x86_64 0.78.4-17.el7_9 updates 608 k\nInstalling for dependencies:\n libtalloc x86_64 2.1.16-1.el7 base 33 k\n libtevent x86_64 0.9.39-1.el7 base 41 k\n xmlrpc-c x86_64 1.32.5-1905.svn2451.el7 base 130 k\n xmlrpc-c-client x86_64 1.32.5-1905.svn2451.el7 base 32 k\n\nTransaction Summary\n================================================================================\nInstall 1 Package (+4 Dependent packages)\n\nTotal download size: 843 k\nInstalled size: 3.3 M\nDownloading packages:\n--------------------------------------------------------------------------------\nTotal 2.1 MB/s | 843 kB 00:00 \nRunning transaction check\nRunning transaction test\nTransaction test succeeded\nRunning transaction\n Installing : libtalloc-2.1.16-1.el7.x86_64 1/5 \n Installing : xmlrpc-c-1.32.5-1905.svn2451.el7.x86_64 2/5 \n Installing : xmlrpc-c-client-1.32.5-1905.svn2451.el7.x86_64 3/5 \n Installing : libtevent-0.9.39-1.el7.x86_64 4/5 \n Installing : certmonger-0.78.4-17.el7_9.x86_64 5/5 \n Verifying : xmlrpc-c-1.32.5-1905.svn2451.el7.x86_64 1/5 \n Verifying : libtalloc-2.1.16-1.el7.x86_64 2/5 \n Verifying : certmonger-0.78.4-17.el7_9.x86_64 3/5 \n Verifying : xmlrpc-c-client-1.32.5-1905.svn2451.el7.x86_64 4/5 \n Verifying : libtevent-0.9.39-1.el7.x86_64 5/5 \n\nInstalled:\n certmonger.x86_64 0:0.78.4-17.el7_9 \n\nDependency Installed:\n libtalloc.x86_64 0:2.1.16-1.el7 \n libtevent.x86_64 0:0.9.39-1.el7 \n xmlrpc-c.x86_64 0:1.32.5-1905.svn2451.el7 \n xmlrpc-c-client.x86_64 0:1.32.5-1905.svn2451.el7 \n\nComplete!\n" ] } lsrpackages: certmonger TASK [linux-system-roles.certificate : Ensure pre-scripts hooks directory exists] *** task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/roles/linux-system-roles.certificate/tasks/main.yml:37 Saturday 11 May 2024 14:11:24 +0000 (0:00:03.491) 0:00:11.366 ********** 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 [linux-system-roles.certificate : Ensure post-scripts hooks directory exists] *** task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/roles/linux-system-roles.certificate/tasks/main.yml:63 Saturday 11 May 2024 14:11:24 +0000 (0:00:00.225) 0:00:11.592 ********** 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 [linux-system-roles.certificate : Ensure provider service is running] ***** task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/roles/linux-system-roles.certificate/tasks/main.yml:92 Saturday 11 May 2024 14:11:25 +0000 (0:00:00.158) 0:00:11.750 ********** 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 systemd-journald.socket syslog.target basic.target system.slice network.target", "AllowIsolate": "no", "AmbientCapabilities": "0", "AssertResult": "no", "AssertTimestampMonotonic": "0", "Before": "shutdown.target", "BlockIOAccounting": "no", "BlockIOWeight": "18446744073709551615", "BusName": "org.fedorahosted.certmonger", "CPUAccounting": "no", "CPUQuotaPerSecUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "18446744073709551615", "CanIsolate": "no", "CanReload": "no", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "18446744073709551615", "CollectMode": "inactive", "ConditionResult": "no", "ConditionTimestampMonotonic": "0", "Conflicts": "shutdown.target", "ControlPID": "0", "DefaultDependencies": "yes", "Delegate": "no", "Description": "Certificate monitoring and PKI enrollment", "DevicePolicy": "auto", "EnvironmentFile": "/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 /var/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", "GuessMainPID": "yes", "IOScheduling": "0", "Id": "certmonger.service", "IgnoreOnIsolate": "no", "IgnoreOnSnapshot": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestampMonotonic": "0", "JobTimeoutAction": "none", "JobTimeoutUSec": "0", "KillMode": "control-group", "KillSignal": "15", "LimitAS": "18446744073709551615", "LimitCORE": "18446744073709551615", "LimitCPU": "18446744073709551615", "LimitDATA": "18446744073709551615", "LimitFSIZE": "18446744073709551615", "LimitLOCKS": "18446744073709551615", "LimitMEMLOCK": "65536", "LimitMSGQUEUE": "819200", "LimitNICE": "0", "LimitNOFILE": "4096", "LimitNPROC": "14311", "LimitRSS": "18446744073709551615", "LimitRTPRIO": "0", "LimitRTTIME": "18446744073709551615", "LimitSIGPENDING": "14311", "LimitSTACK": "18446744073709551615", "LoadState": "loaded", "MainPID": "0", "MemoryAccounting": "no", "MemoryCurrent": "18446744073709551615", "MemoryLimit": "18446744073709551615", "MountFlags": "0", "Names": "certmonger.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PIDFile": "/var/run/certmonger.pid", "PermissionsStartOnly": "no", "PrivateDevices": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "ProtectHome": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "no", "Requires": "system.slice basic.target", "Restart": "no", "RestartUSec": "100ms", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitInterval": "10000000", "StartupBlockIOWeight": "18446744073709551615", "StartupCPUShares": "18446744073709551615", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "dead", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "no", "TasksCurrent": "18446744073709551615", "TasksMax": "18446744073709551615", "TimeoutStartUSec": "1min 30s", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "dbus", "UMask": "0022", "UnitFilePreset": "disabled", "UnitFileState": "disabled", "WatchdogTimestampMonotonic": "0", "WatchdogUSec": "0" } } TASK [linux-system-roles.certificate : Ensure certificate requests] ************ task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/roles/linux-system-roles.certificate/tasks/main.yml:104 Saturday 11 May 2024 14:11:25 +0000 (0:00:00.465) 0:00:12.215 ********** changed: [sut] => (item={'name': 'mycert_no_auto_renew', 'dns': 'www.example.com', 'ca': 'self-sign', 'auto_renew': False}) => { "ansible_loop_var": "item", "changed": true, "item": { "auto_renew": false, "ca": "self-sign", "dns": "www.example.com", "name": "mycert_no_auto_renew" } } MSG: Certificate requested (new). changed: [sut] => (item={'name': 'defaultcert', 'dns': 'www.example.com', 'ca': 'self-sign'}) => { "ansible_loop_var": "item", "changed": true, "item": { "ca": "self-sign", "dns": "www.example.com", "name": "defaultcert" } } MSG: Certificate requested (new). TASK [linux-system-roles.certificate : Slurp the contents of the files] ******** task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/roles/linux-system-roles.certificate/tasks/main.yml:156 Saturday 11 May 2024 14:11:27 +0000 (0:00:01.705) 0:00:13.921 ********** skipping: [sut] => (item=['cert', {'name': 'mycert_no_auto_renew', 'dns': 'www.example.com', 'ca': 'self-sign', 'auto_renew': False}]) => { "ansible_loop_var": "item", "changed": false, "item": [ "cert", { "auto_renew": false, "ca": "self-sign", "dns": "www.example.com", "name": "mycert_no_auto_renew" } ], "skip_reason": "Conditional result was False" } skipping: [sut] => (item=['cert', {'name': 'defaultcert', 'dns': 'www.example.com', 'ca': 'self-sign'}]) => { "ansible_loop_var": "item", "changed": false, "item": [ "cert", { "ca": "self-sign", "dns": "www.example.com", "name": "defaultcert" } ], "skip_reason": "Conditional result was False" } skipping: [sut] => (item=['key', {'name': 'mycert_no_auto_renew', 'dns': 'www.example.com', 'ca': 'self-sign', 'auto_renew': False}]) => { "ansible_loop_var": "item", "changed": false, "item": [ "key", { "auto_renew": false, "ca": "self-sign", "dns": "www.example.com", "name": "mycert_no_auto_renew" } ], "skip_reason": "Conditional result was False" } skipping: [sut] => (item=['key', {'name': 'defaultcert', 'dns': 'www.example.com', 'ca': 'self-sign'}]) => { "ansible_loop_var": "item", "changed": false, "item": [ "key", { "ca": "self-sign", "dns": "www.example.com", "name": "defaultcert" } ], "skip_reason": "Conditional result was False" } skipping: [sut] => (item=['ca', {'name': 'mycert_no_auto_renew', 'dns': 'www.example.com', 'ca': 'self-sign', 'auto_renew': False}]) => { "ansible_loop_var": "item", "changed": false, "item": [ "ca", { "auto_renew": false, "ca": "self-sign", "dns": "www.example.com", "name": "mycert_no_auto_renew" } ], "skip_reason": "Conditional result was False" } skipping: [sut] => (item=['ca', {'name': 'defaultcert', 'dns': 'www.example.com', 'ca': 'self-sign'}]) => { "ansible_loop_var": "item", "changed": false, "item": [ "ca", { "ca": "self-sign", "dns": "www.example.com", "name": "defaultcert" } ], "skip_reason": "Conditional result was False" } TASK [linux-system-roles.certificate : Create return data] ********************* task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/roles/linux-system-roles.certificate/tasks/main.yml:168 Saturday 11 May 2024 14:11:27 +0000 (0:00:00.030) 0:00:13.951 ********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.certificate : Stop tracking certificates] ************* task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/roles/linux-system-roles.certificate/tasks/main.yml:184 Saturday 11 May 2024 14:11:27 +0000 (0:00:00.015) 0:00:13.967 ********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.certificate : Remove files] *************************** task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/roles/linux-system-roles.certificate/tasks/main.yml:189 Saturday 11 May 2024 14:11:27 +0000 (0:00:00.016) 0:00:13.984 ********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } META: ran handlers META: ran handlers PLAY [Verify certificate] ****************************************************** TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/tests_no_auto_renew.yml:17 Saturday 11 May 2024 14:11:27 +0000 (0:00:00.019) 0:00:14.003 ********** ok: [sut] META: ran handlers TASK [Verify each certificate] ************************************************* task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/tests_no_auto_renew.yml:42 Saturday 11 May 2024 14:11:27 +0000 (0:00:00.379) 0:00:14.383 ********** included: /WORKDIR/git-weekly-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml for sut included: /WORKDIR/git-weekly-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml for sut TASK [Set virtualenv_path] ***************************************************** task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:2 Saturday 11 May 2024 14:11:27 +0000 (0:00:00.031) 0:00:14.414 ********** ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:9 Saturday 11 May 2024 14:11:27 +0000 (0:00:00.007) 0:00:14.422 ********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:14 Saturday 11 May 2024 14:11:27 +0000 (0:00:00.015) 0:00:14.437 ********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:18 Saturday 11 May 2024 14:11:27 +0000 (0:00:00.015) 0:00:14.453 ********** ok: [sut] => { "changed": false, "rc": 0, "results": [ "python2-cryptography-1.7.2-2.el7.x86_64 providing python2-cryptography is already installed", "python2-cryptography-1.7.2-2.el7.x86_64 providing python2-cryptography is already installed" ] } lsrpackages: python2-cryptography TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:29 Saturday 11 May 2024 14:11:28 +0000 (0:00:00.382) 0:00:14.836 ********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Retrieve certificate file stats] ***************************************** task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:40 Saturday 11 May 2024 14:11:28 +0000 (0:00:00.016) 0:00:14.853 ********** ok: [sut] => { "changed": false, "stat": { "atime": 1715436686.2461083, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "fb4107db2b9ae1ddb835bab8cebb731bbd8739c8", "ctime": 1715436686.2421083, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 169865, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1715436686.2421083, "nlink": 1, "path": "/etc/pki/tls/certs/mycert_no_auto_renew.crt", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1294, "uid": 0, "version": "18446744072402437407", "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-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:45 Saturday 11 May 2024 14:11:28 +0000 (0:00:00.151) 0:00:15.004 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:51 Saturday 11 May 2024 14:11:28 +0000 (0:00:00.018) 0:00:15.022 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:63 Saturday 11 May 2024 14:11:28 +0000 (0:00:00.020) 0:00:15.042 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:69 Saturday 11 May 2024 14:11:28 +0000 (0:00:00.018) 0:00:15.061 ********** ok: [sut] => { "changed": false, "stat": { "atime": 1715436686.1931083, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "1e17a62cdac50919ab2ac8f2eca8aceed7396a40", "ctime": 1715436686.2421083, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 169864, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1715436686.2421083, "nlink": 1, "path": "/etc/pki/tls/private/mycert_no_auto_renew.key", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1708, "uid": 0, "version": "18446744072402437394", "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-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:74 Saturday 11 May 2024 14:11:28 +0000 (0:00:00.149) 0:00:15.211 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:80 Saturday 11 May 2024 14:11:28 +0000 (0:00:00.019) 0:00:15.230 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:92 Saturday 11 May 2024 14:11:28 +0000 (0:00:00.021) 0:00:15.252 ********** ok: [sut] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "2E:FE:27:CB:95:FD:16:BB:CE:7C:0E:9F:97:F5:3D:21:FC:0D:8D:36" }, "basicConstraints": { "critical": true, "value": { "ca": false } }, "extendedKeyUsage": { "critical": false, "value": [ { "name": "id-kp-serverAuth", "oid": "1.3.6.1.5.5.7.3.1" }, { "name": "id-kp-clientAuth", "oid": "1.3.6.1.5.5.7.3.2" } ] }, "keyUsage": { "critical": false, "value": [ "key_encipherment", "digital_signature" ] }, "subjectAltName": { "critical": false, "value": [ { "name": "DNS", "value": "www.example.com" } ] }, "subjectKeyIdentifier": { "critical": false, "value": "69:29:EB:3A:05:29:26:E8:01:FF:84:67:E6:B8:54:BB:70:EF:BD:CC" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "CA:AA:D3:78:AF:AE:14:71:5D:4E:22:D8:06:DE:3B:BC:A4:92:9B:F2:66:23:30:6F:12:61:A4:2F:B1:7E:17:B7:C2:28:B1:B1:4C:39:90:A9:49:AA:E3:EC:C4:12:CA:52:A6:96:DB:C5:70:E1:65:D7:2F:CB:70:7B:59:6F:4E:15:33:35:38:F8:94:A8:E7:8F:58:97:19:77:20:22:52:C9:4B:33:4B:F2:1D:84:58:C5:EB:BC:D0:DF:C1:FE:EE:61:3F:89:F0:4D:73:6B:C1:F1:6C:FC:28:EF:34:BC:2C:61:5E:BF:1A:81:CB:5D:9B:FB:15:97:FE:A4:8E:2F:80:34:8C:E1:83:6D:10:C1:26:F0:C3:2F:94:41:20:CE:6D:1E:80:31:E3:3E:B9:F0:95:28:B4:7C:23:8D:D4:5E:0A:E1:21:AB:B1:4F:24:40:CA:66:9C:FB:F9:FF:6C:41:DB:53:3E:6B:5D:91:E6:E2:AA:47:8D:DE:A8:F5:A3:4C:AD:EE:4A:55:0B:00:15:E9:40:C9:C3:71:51:63:06:9F:AD:AE:79:E3:94:24:F0:EC:C6:36:46:34:FE:58:F8:B5:52:38:A9:AE:5A:38:38:EF:79:9A:FB:2F:4C:E8:71:33:67:A0:C5:2D:EF:4D:65:33:5A:5B:C3:EB:05:84:AB:90:94:5F" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250511141125Z", "not_valid_before": "20240511141126Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:98 Saturday 11 May 2024 14:11:29 +0000 (0:00:00.487) 0:00:15.739 ********** ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "2E:FE:27:CB:95:FD:16:BB:CE:7C:0E:9F:97:F5:3D:21:FC:0D:8D:36" }, "basicConstraints": { "critical": true, "value": { "ca": false } }, "extendedKeyUsage": { "critical": false, "value": [ { "name": "id-kp-serverAuth", "oid": "1.3.6.1.5.5.7.3.1" }, { "name": "id-kp-clientAuth", "oid": "1.3.6.1.5.5.7.3.2" } ] }, "keyUsage": { "critical": false, "value": [ "key_encipherment", "digital_signature" ] }, "subjectAltName": { "critical": false, "value": [ { "name": "DNS", "value": "www.example.com" } ] }, "subjectKeyIdentifier": { "critical": false, "value": "69:29:EB:3A:05:29:26:E8:01:FF:84:67:E6:B8:54:BB:70:EF:BD:CC" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "CA:AA:D3:78:AF:AE:14:71:5D:4E:22:D8:06:DE:3B:BC:A4:92:9B:F2:66:23:30:6F:12:61:A4:2F:B1:7E:17:B7:C2:28:B1:B1:4C:39:90:A9:49:AA:E3:EC:C4:12:CA:52:A6:96:DB:C5:70:E1:65:D7:2F:CB:70:7B:59:6F:4E:15:33:35:38:F8:94:A8:E7:8F:58:97:19:77:20:22:52:C9:4B:33:4B:F2:1D:84:58:C5:EB:BC:D0:DF:C1:FE:EE:61:3F:89:F0:4D:73:6B:C1:F1:6C:FC:28:EF:34:BC:2C:61:5E:BF:1A:81:CB:5D:9B:FB:15:97:FE:A4:8E:2F:80:34:8C:E1:83:6D:10:C1:26:F0:C3:2F:94:41:20:CE:6D:1E:80:31:E3:3E:B9:F0:95:28:B4:7C:23:8D:D4:5E:0A:E1:21:AB:B1:4F:24:40:CA:66:9C:FB:F9:FF:6C:41:DB:53:3E:6B:5D:91:E6:E2:AA:47:8D:DE:A8:F5:A3:4C:AD:EE:4A:55:0B:00:15:E9:40:C9:C3:71:51:63:06:9F:AD:AE:79:E3:94:24:F0:EC:C6:36:46:34:FE:58:F8:B5:52:38:A9:AE:5A:38:38:EF:79:9A:FB:2F:4C:E8:71:33:67:A0:C5:2D:EF:4D:65:33:5A:5B:C3:EB:05:84:AB:90:94:5F" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250511141125Z", "not_valid_before": "20240511141126Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:102 Saturday 11 May 2024 14:11:29 +0000 (0:00:00.018) 0:00:15.757 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:111 Saturday 11 May 2024 14:11:29 +0000 (0:00:00.018) 0:00:15.776 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:120 Saturday 11 May 2024 14:11:29 +0000 (0:00:00.017) 0:00:15.794 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:127 Saturday 11 May 2024 14:11:29 +0000 (0:00:00.017) 0:00:15.812 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:138 Saturday 11 May 2024 14:11:29 +0000 (0:00:00.021) 0:00:15.833 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:151 Saturday 11 May 2024 14:11:29 +0000 (0:00:00.021) 0:00:15.854 ********** ok: [sut] => { "changed": false, "cmd": "set -euo pipefail; getcert list -f /etc/pki/tls/certs/mycert_no_auto_renew.crt | grep 'auto-renew' | sed 's/^\\s\\+auto-renew: //g'", "delta": "0:00:00.051346", "end": "2024-05-11 14:11:29.486195", "rc": 0, "start": "2024-05-11 14:11:29.434849" } STDOUT: no TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:160 Saturday 11 May 2024 14:11:29 +0000 (0:00:00.257) 0:00:16.112 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Set virtualenv_path] ***************************************************** task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:2 Saturday 11 May 2024 14:11:29 +0000 (0:00:00.020) 0:00:16.132 ********** ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:9 Saturday 11 May 2024 14:11:29 +0000 (0:00:00.007) 0:00:16.139 ********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:14 Saturday 11 May 2024 14:11:29 +0000 (0:00:00.015) 0:00:16.155 ********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:18 Saturday 11 May 2024 14:11:29 +0000 (0:00:00.015) 0:00:16.171 ********** ok: [sut] => { "changed": false, "rc": 0, "results": [ "python2-cryptography-1.7.2-2.el7.x86_64 providing python2-cryptography is already installed", "python2-cryptography-1.7.2-2.el7.x86_64 providing python2-cryptography is already installed" ] } lsrpackages: python2-cryptography TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:29 Saturday 11 May 2024 14:11:29 +0000 (0:00:00.385) 0:00:16.557 ********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Retrieve certificate file stats] ***************************************** task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:40 Saturday 11 May 2024 14:11:29 +0000 (0:00:00.016) 0:00:16.573 ********** ok: [sut] => { "changed": false, "stat": { "atime": 1715436687.1581059, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "bdd6bacf1d6202d0a2112d0737990aa7bba02651", "ctime": 1715436687.153106, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 169867, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1715436687.153106, "nlink": 1, "path": "/etc/pki/tls/certs/defaultcert.crt", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1294, "uid": 0, "version": "18446744072402437443", "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-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:45 Saturday 11 May 2024 14:11:30 +0000 (0:00:00.152) 0:00:16.726 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:51 Saturday 11 May 2024 14:11:30 +0000 (0:00:00.019) 0:00:16.745 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:63 Saturday 11 May 2024 14:11:30 +0000 (0:00:00.021) 0:00:16.766 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:69 Saturday 11 May 2024 14:11:30 +0000 (0:00:00.018) 0:00:16.785 ********** ok: [sut] => { "changed": false, "stat": { "atime": 1715436687.106106, "attr_flags": "e", "attributes": [ "extents" ], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "1f91271a07c549ff69efbbf39ae0b4eeb6a633d0", "ctime": 1715436687.153106, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 169866, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1715436687.153106, "nlink": 1, "path": "/etc/pki/tls/private/defaultcert.key", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1704, "uid": 0, "version": "18446744072402437430", "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-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:74 Saturday 11 May 2024 14:11:30 +0000 (0:00:00.151) 0:00:16.936 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:80 Saturday 11 May 2024 14:11:30 +0000 (0:00:00.018) 0:00:16.955 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:92 Saturday 11 May 2024 14:11:30 +0000 (0:00:00.019) 0:00:16.974 ********** ok: [sut] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "2E:FE:27:CB:95:FD:16:BB:CE:7C:0E:9F:97:F5:3D:21:FC:0D:8D:36" }, "basicConstraints": { "critical": true, "value": { "ca": false } }, "extendedKeyUsage": { "critical": false, "value": [ { "name": "id-kp-serverAuth", "oid": "1.3.6.1.5.5.7.3.1" }, { "name": "id-kp-clientAuth", "oid": "1.3.6.1.5.5.7.3.2" } ] }, "keyUsage": { "critical": false, "value": [ "key_encipherment", "digital_signature" ] }, "subjectAltName": { "critical": false, "value": [ { "name": "DNS", "value": "www.example.com" } ] }, "subjectKeyIdentifier": { "critical": false, "value": "AF:17:86:17:0B:AD:96:BB:51:2A:15:85:48:5C:87:0C:36:55:FE:50" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "1A:7C:30:DB:0C:D6:5F:4A:4A:07:44:CD:0F:3C:CD:2D:DA:0B:0C:E5:A0:50:E3:AB:E8:21:0E:5A:37:FE:2A:6B:EB:74:A3:03:6A:BC:2C:6F:FB:93:C6:30:3F:C9:41:E3:82:13:FC:BA:D6:4E:5B:73:F2:88:E2:2B:BA:9A:C2:0D:4E:05:FC:59:20:EE:BB:9D:F1:A1:FD:9E:11:8A:5E:5D:59:9C:35:89:8E:C2:00:DB:F0:D9:36:D2:FA:18:6F:DC:AC:A7:59:2E:56:1C:89:5C:01:43:D8:FB:A0:37:06:D6:17:E0:CD:8A:55:A9:34:44:F5:9C:93:34:1A:C9:78:DE:81:13:64:C1:B0:22:2C:15:65:4F:90:9E:9B:A2:D3:F5:64:F4:B9:FA:D6:F9:2C:F8:24:63:95:15:7C:60:52:F3:63:BC:DB:04:7A:E9:4A:85:3F:39:81:2A:1B:52:EA:14:5C:F8:32:BA:EE:90:76:06:36:68:D7:A6:B5:AC:A7:9F:DB:67:1C:AC:BE:7D:DF:13:B0:43:30:4F:35:C8:C7:78:57:14:82:CD:3B:15:DD:1F:39:F7:E8:C0:59:DE:A5:13:D6:ED:8C:38:40:D6:E3:95:C9:A9:18:66:06:7B:79:6F:4D:B8:52:3D:4B:16:54:43:74:FE:0B:28:8E:BA:9A:E9" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250511141125Z", "not_valid_before": "20240511141127Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:98 Saturday 11 May 2024 14:11:30 +0000 (0:00:00.223) 0:00:17.198 ********** ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "2E:FE:27:CB:95:FD:16:BB:CE:7C:0E:9F:97:F5:3D:21:FC:0D:8D:36" }, "basicConstraints": { "critical": true, "value": { "ca": false } }, "extendedKeyUsage": { "critical": false, "value": [ { "name": "id-kp-serverAuth", "oid": "1.3.6.1.5.5.7.3.1" }, { "name": "id-kp-clientAuth", "oid": "1.3.6.1.5.5.7.3.2" } ] }, "keyUsage": { "critical": false, "value": [ "key_encipherment", "digital_signature" ] }, "subjectAltName": { "critical": false, "value": [ { "name": "DNS", "value": "www.example.com" } ] }, "subjectKeyIdentifier": { "critical": false, "value": "AF:17:86:17:0B:AD:96:BB:51:2A:15:85:48:5C:87:0C:36:55:FE:50" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "1A:7C:30:DB:0C:D6:5F:4A:4A:07:44:CD:0F:3C:CD:2D:DA:0B:0C:E5:A0:50:E3:AB:E8:21:0E:5A:37:FE:2A:6B:EB:74:A3:03:6A:BC:2C:6F:FB:93:C6:30:3F:C9:41:E3:82:13:FC:BA:D6:4E:5B:73:F2:88:E2:2B:BA:9A:C2:0D:4E:05:FC:59:20:EE:BB:9D:F1:A1:FD:9E:11:8A:5E:5D:59:9C:35:89:8E:C2:00:DB:F0:D9:36:D2:FA:18:6F:DC:AC:A7:59:2E:56:1C:89:5C:01:43:D8:FB:A0:37:06:D6:17:E0:CD:8A:55:A9:34:44:F5:9C:93:34:1A:C9:78:DE:81:13:64:C1:B0:22:2C:15:65:4F:90:9E:9B:A2:D3:F5:64:F4:B9:FA:D6:F9:2C:F8:24:63:95:15:7C:60:52:F3:63:BC:DB:04:7A:E9:4A:85:3F:39:81:2A:1B:52:EA:14:5C:F8:32:BA:EE:90:76:06:36:68:D7:A6:B5:AC:A7:9F:DB:67:1C:AC:BE:7D:DF:13:B0:43:30:4F:35:C8:C7:78:57:14:82:CD:3B:15:DD:1F:39:F7:E8:C0:59:DE:A5:13:D6:ED:8C:38:40:D6:E3:95:C9:A9:18:66:06:7B:79:6F:4D:B8:52:3D:4B:16:54:43:74:FE:0B:28:8E:BA:9A:E9" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250511141125Z", "not_valid_before": "20240511141127Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:102 Saturday 11 May 2024 14:11:30 +0000 (0:00:00.019) 0:00:17.218 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:111 Saturday 11 May 2024 14:11:30 +0000 (0:00:00.018) 0:00:17.237 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:120 Saturday 11 May 2024 14:11:30 +0000 (0:00:00.018) 0:00:17.255 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:127 Saturday 11 May 2024 14:11:30 +0000 (0:00:00.018) 0:00:17.273 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:138 Saturday 11 May 2024 14:11:30 +0000 (0:00:00.021) 0:00:17.295 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:151 Saturday 11 May 2024 14:11:30 +0000 (0:00:00.021) 0:00:17.316 ********** ok: [sut] => { "changed": false, "cmd": "set -euo pipefail; getcert list -f /etc/pki/tls/certs/defaultcert.crt | grep 'auto-renew' | sed 's/^\\s\\+auto-renew: //g'", "delta": "0:00:00.050568", "end": "2024-05-11 14:11:30.880261", "rc": 0, "start": "2024-05-11 14:11:30.829693" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/git-weekly-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:160 Saturday 11 May 2024 14:11:30 +0000 (0:00:00.189) 0:00:17.505 ********** ok: [sut] => { "changed": false } MSG: All assertions passed META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* sut : ok=50 changed=6 unreachable=0 failed=0 skipped=11 rescued=0 ignored=0 Saturday 11 May 2024 14:11:30 +0000 (0:00:00.018) 0:00:17.524 ********** =============================================================================== linux-system-roles.certificate : Ensure certificate role dependencies are installed --- 6.79s /WORKDIR/git-weekly-ci3kp_jdzh/tests/roles/linux-system-roles.certificate/tasks/main.yml:5 linux-system-roles.certificate : Ensure provider packages are installed --- 3.49s /WORKDIR/git-weekly-ci3kp_jdzh/tests/roles/linux-system-roles.certificate/tasks/main.yml:24 linux-system-roles.certificate : Ensure certificate requests ------------ 1.71s /WORKDIR/git-weekly-ci3kp_jdzh/tests/roles/linux-system-roles.certificate/tasks/main.yml:104 Gathering Facts --------------------------------------------------------- 0.80s /WORKDIR/git-weekly-ci3kp_jdzh/tests/tests_no_auto_renew.yml:2 ---------------- Parse certificate ------------------------------------------------------- 0.49s /WORKDIR/git-weekly-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:92 linux-system-roles.certificate : Ensure provider service is running ----- 0.47s /WORKDIR/git-weekly-ci3kp_jdzh/tests/roles/linux-system-roles.certificate/tasks/main.yml:92 Ensure python3 is installed --------------------------------------------- 0.39s /WORKDIR/git-weekly-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:18 Ensure python3 is installed --------------------------------------------- 0.38s /WORKDIR/git-weekly-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:18 Gathering Facts --------------------------------------------------------- 0.38s /WORKDIR/git-weekly-ci3kp_jdzh/tests/tests_no_auto_renew.yml:17 --------------- Retrieve auto-renew flag ------------------------------------------------ 0.26s /WORKDIR/git-weekly-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:151 linux-system-roles.certificate : Ensure pre-scripts hooks directory exists --- 0.23s /WORKDIR/git-weekly-ci3kp_jdzh/tests/roles/linux-system-roles.certificate/tasks/main.yml:37 Parse certificate ------------------------------------------------------- 0.22s /WORKDIR/git-weekly-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:92 linux-system-roles.certificate : Check if system is ostree -------------- 0.20s /WORKDIR/git-weekly-ci3kp_jdzh/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:11 Retrieve auto-renew flag ------------------------------------------------ 0.19s /WORKDIR/git-weekly-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:151 linux-system-roles.certificate : Ensure post-scripts hooks directory exists --- 0.16s /WORKDIR/git-weekly-ci3kp_jdzh/tests/roles/linux-system-roles.certificate/tasks/main.yml:63 Retrieve certificate file stats ----------------------------------------- 0.15s /WORKDIR/git-weekly-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:40 Retrieve key file stats ------------------------------------------------- 0.15s /WORKDIR/git-weekly-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:69 Retrieve certificate file stats ----------------------------------------- 0.15s /WORKDIR/git-weekly-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:40 Retrieve key file stats ------------------------------------------------- 0.15s /WORKDIR/git-weekly-ci3kp_jdzh/tests/tasks/assert_certificate_parameters.yml:69 Verify each certificate ------------------------------------------------- 0.03s /WORKDIR/git-weekly-ci3kp_jdzh/tests/tests_no_auto_renew.yml:42 --------------- ---^---^---^---^---^--- # STDERR: ---v---v---v---v---v--- ---^---^---^---^---^---