# 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_fs_attrs.yml *************************************************** 5 plays in /WORKDIR/git-weekly-ci0xjq6s0t/tests/tests_fs_attrs.yml PLAY [Ensure UID and GID exists] *********************************************** TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-weekly-ci0xjq6s0t/tests/tests_fs_attrs.yml:2 Saturday 08 June 2024 12:57:45 +0000 (0:00:00.011) 0:00:00.011 ********* ok: [sut] META: ran handlers TASK [Ensure user exists] ****************************************************** task path: /WORKDIR/git-weekly-ci0xjq6s0t/tests/tests_fs_attrs.yml:5 Saturday 08 June 2024 12:57:45 +0000 (0:00:00.694) 0:00:00.706 ********* changed: [sut] => { "changed": true, "comment": "", "create_home": true, "group": 1040, "home": "/home/user1", "name": "user1", "shell": "/bin/bash", "state": "present", "system": false, "uid": 1040 } TASK [Ensure group "somegroup" exists] ***************************************** task path: /WORKDIR/git-weekly-ci0xjq6s0t/tests/tests_fs_attrs.yml:9 Saturday 08 June 2024 12:57:46 +0000 (0:00:00.419) 0:00:01.125 ********* changed: [sut] => { "changed": true, "gid": 1041, "name": "somegroup", "state": "present", "system": false } META: ran handlers META: ran handlers PLAY [Issue certificate setting user/group] ************************************ TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-weekly-ci0xjq6s0t/tests/tests_fs_attrs.yml:14 Saturday 08 June 2024 12:57:46 +0000 (0:00:00.329) 0:00:01.455 ********* ok: [sut] META: ran handlers TASK [linux-system-roles.certificate : Set version specific variables] ********* task path: /WORKDIR/git-weekly-ci0xjq6s0t/tests/roles/linux-system-roles.certificate/tasks/main.yml:2 Saturday 08 June 2024 12:57:47 +0000 (0:00:00.480) 0:00:01.935 ********* included: /WORKDIR/git-weekly-ci0xjq6s0t/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-ci0xjq6s0t/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:2 Saturday 08 June 2024 12:57:47 +0000 (0:00:00.010) 0:00:01.946 ********* 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-ci0xjq6s0t/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:11 Saturday 08 June 2024 12:57:47 +0000 (0:00:00.018) 0:00:01.964 ********* ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [linux-system-roles.certificate : Set flag to indicate system is ostree] *** task path: /WORKDIR/git-weekly-ci0xjq6s0t/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:16 Saturday 08 June 2024 12:57:47 +0000 (0:00:00.231) 0:00:02.195 ********* 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-ci0xjq6s0t/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:20 Saturday 08 June 2024 12:57:47 +0000 (0:00:00.020) 0:00:02.215 ********* 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_9.yml) => { "ansible_facts": { "__certificate_certmonger_packages": [ "certmonger", "python3-packaging" ] }, "ansible_included_var_files": [ "/WORKDIR/git-weekly-ci0xjq6s0t/tests/roles/linux-system-roles.certificate/vars/CentOS_9.yml" ], "ansible_loop_var": "item", "changed": false, "item": "CentOS_9.yml" } ok: [sut] => (item=CentOS_9.yml) => { "ansible_facts": { "__certificate_certmonger_packages": [ "certmonger", "python3-packaging" ] }, "ansible_included_var_files": [ "/WORKDIR/git-weekly-ci0xjq6s0t/tests/roles/linux-system-roles.certificate/vars/CentOS_9.yml" ], "ansible_loop_var": "item", "changed": false, "item": "CentOS_9.yml" } TASK [linux-system-roles.certificate : Ensure certificate role dependencies are installed] *** task path: /WORKDIR/git-weekly-ci0xjq6s0t/tests/roles/linux-system-roles.certificate/tasks/main.yml:5 Saturday 08 June 2024 12:57:47 +0000 (0:00:00.032) 0:00:02.248 ********* changed: [sut] => { "changed": true, "rc": 0, "results": [ "Installed: python3-pyasn1-0.4.8-6.el9.noarch", "Installed: python3-cffi-1.14.5-5.el9.x86_64", "Installed: python3-ply-3.11-14.el9.noarch", "Installed: python3-pycparser-2.20-6.el9.noarch", "Installed: python3-cryptography-36.0.1-4.el9.x86_64" ] } lsrpackages: python3-cryptography python3-dbus python3-pyasn1 TASK [linux-system-roles.certificate : Ensure provider packages are installed] *** task path: /WORKDIR/git-weekly-ci0xjq6s0t/tests/roles/linux-system-roles.certificate/tasks/main.yml:24 Saturday 08 June 2024 12:57:52 +0000 (0:00:05.042) 0:00:07.290 ********* changed: [sut] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": true, "rc": 0, "results": [ "Installed: python3-pyparsing-2.4.7-9.el9.noarch", "Installed: python3-packaging-20.9-5.el9.noarch", "Installed: certmonger-0.79.17-2.el9.x86_64" ] } lsrpackages: certmonger python3-packaging TASK [linux-system-roles.certificate : Ensure pre-scripts hooks directory exists] *** task path: /WORKDIR/git-weekly-ci0xjq6s0t/tests/roles/linux-system-roles.certificate/tasks/main.yml:37 Saturday 08 June 2024 12:57:55 +0000 (0:00:02.860) 0:00:10.151 ********* 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 [linux-system-roles.certificate : Ensure post-scripts hooks directory exists] *** task path: /WORKDIR/git-weekly-ci0xjq6s0t/tests/roles/linux-system-roles.certificate/tasks/main.yml:63 Saturday 08 June 2024 12:57:55 +0000 (0:00:00.272) 0:00:10.423 ********* 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 [linux-system-roles.certificate : Ensure provider service is running] ***** task path: /WORKDIR/git-weekly-ci0xjq6s0t/tests/roles/linux-system-roles.certificate/tasks/main.yml:92 Saturday 08 June 2024 12:57:55 +0000 (0:00:00.207) 0:00:10.631 ********* changed: [sut] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": true, "enabled": true, "name": "certmonger", "state": "started", "status": { "AccessSELinuxContext": "system_u:object_r:certmonger_unit_file_t:s0", "ActiveEnterTimestampMonotonic": "0", "ActiveExitTimestampMonotonic": "0", "ActiveState": "inactive", "After": "systemd-journald.socket dbus-broker.service network.target dbus.socket syslog.target basic.target sysinit.target system.slice", "AllowIsolate": "no", "AssertResult": "no", "AssertTimestampMonotonic": "0", "Before": "shutdown.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "BusName": "org.fedorahosted.certmonger", "CPUAccounting": "yes", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "[not set]", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanFreeze": "yes", "CanIsolate": "no", "CanReload": "no", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend cap_audit_read cap_perfmon cap_bpf cap_checkpoint_restore", "CleanResult": "success", "CollectMode": "inactive", "ConditionResult": "no", "ConditionTimestampMonotonic": "0", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target", "ControlGroupId": "0", "ControlPID": "0", "CoredumpFilter": "0x33", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "Certificate monitoring and PKI enrollment", "DevicePolicy": "auto", "DynamicUser": "no", "EnvironmentFiles": "/etc/sysconfig/certmonger (ignore_errors=yes)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "0", "ExecMainStartTimestampMonotonic": "0", "ExecMainStatus": "0", "ExecStart": "{ path=/usr/sbin/certmonger ; argv[]=/usr/sbin/certmonger -S -p /run/certmonger.pid -n $OPTS ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecStartEx": "{ path=/usr/sbin/certmonger ; argv[]=/usr/sbin/certmonger -S -p /run/certmonger.pid -n $OPTS ; flags= ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExitType": "main", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FinalKillSignal": "9", "FragmentPath": "/usr/lib/systemd/system/certmonger.service", "FreezerState": "running", "GID": "[not set]", "GuessMainPID": "yes", "IOAccounting": "no", "IOReadBytes": "18446744073709551615", "IOReadOperations": "18446744073709551615", "IOSchedulingClass": "2", "IOSchedulingPriority": "4", "IOWeight": "[not set]", "IOWriteBytes": "18446744073709551615", "IOWriteOperations": "18446744073709551615", "IPAccounting": "no", "IPEgressBytes": "[no data]", "IPEgressPackets": "[no data]", "IPIngressBytes": "[no data]", "IPIngressPackets": "[no data]", "Id": "certmonger.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestampMonotonic": "0", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "control-group", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "infinity", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "8388608", "LimitMEMLOCKSoft": "8388608", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "524288", "LimitNOFILESoft": "1024", "LimitNPROC": "13972", "LimitNPROCSoft": "13972", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "13972", "LimitSIGPENDINGSoft": "13972", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "0", "ManagedOOMMemoryPressure": "auto", "ManagedOOMMemoryPressureLimit": "0", "ManagedOOMPreference": "none", "ManagedOOMSwap": "auto", "MemoryAccounting": "yes", "MemoryAvailable": "infinity", "MemoryCurrent": "[not set]", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAPolicy": "n/a", "Names": "certmonger.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMPolicy": "stop", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "OnSuccessJobMode": "fail", "PIDFile": "/run/certmonger.pid", "PartOf": "dbus-broker.service", "Perpetual": "no", "PrivateDevices": "no", "PrivateIPC": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProcSubset": "all", "ProtectClock": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectHostname": "no", "ProtectKernelLogs": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectProc": "default", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "ReloadResult": "success", "ReloadSignal": "1", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "dbus.socket sysinit.target system.slice", "Restart": "no", "RestartKillSignal": "15", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "RuntimeRandomizedExtraUSec": "0", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestampMonotonic": "0", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "dead", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "2147483646", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "[not set]", "TasksMax": "22356", "TimeoutAbortUSec": "1min 30s", "TimeoutCleanUSec": "infinity", "TimeoutStartFailureMode": "terminate", "TimeoutStartUSec": "1min 30s", "TimeoutStopFailureMode": "terminate", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "dbus", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "disabled", "UnitFileState": "disabled", "UtmpMode": "init", "WatchdogSignal": "6", "WatchdogTimestampMonotonic": "0", "WatchdogUSec": "infinity" } } TASK [linux-system-roles.certificate : Ensure certificate requests] ************ task path: /WORKDIR/git-weekly-ci0xjq6s0t/tests/roles/linux-system-roles.certificate/tasks/main.yml:104 Saturday 08 June 2024 12:57:56 +0000 (0:00:00.716) 0:00:11.347 ********* changed: [sut] => (item={'name': 'mycert_fs_attrs', 'dns': 'www.example.com', 'owner': 'ftp', 'group': 'ftp', 'ca': 'self-sign'}) => { "ansible_loop_var": "item", "changed": true, "item": { "ca": "self-sign", "dns": "www.example.com", "group": "ftp", "name": "mycert_fs_attrs", "owner": "ftp" } } MSG: Certificate requested (new). File attributes updated. changed: [sut] => (item={'name': 'certid', 'dns': 'www.example.com', 'owner': 1040, 'group': 1041, 'ca': 'self-sign'}) => { "ansible_loop_var": "item", "changed": true, "item": { "ca": "self-sign", "dns": "www.example.com", "group": 1041, "name": "certid", "owner": 1040 } } MSG: Certificate requested (new). File attributes updated. TASK [linux-system-roles.certificate : Slurp the contents of the files] ******** task path: /WORKDIR/git-weekly-ci0xjq6s0t/tests/roles/linux-system-roles.certificate/tasks/main.yml:156 Saturday 08 June 2024 12:57:57 +0000 (0:00:01.236) 0:00:12.584 ********* skipping: [sut] => (item=['cert', {'name': 'mycert_fs_attrs', 'dns': 'www.example.com', 'owner': 'ftp', 'group': 'ftp', 'ca': 'self-sign'}]) => { "ansible_loop_var": "item", "changed": false, "item": [ "cert", { "ca": "self-sign", "dns": "www.example.com", "group": "ftp", "name": "mycert_fs_attrs", "owner": "ftp" } ], "skip_reason": "Conditional result was False" } skipping: [sut] => (item=['cert', {'name': 'certid', 'dns': 'www.example.com', 'owner': 1040, 'group': 1041, 'ca': 'self-sign'}]) => { "ansible_loop_var": "item", "changed": false, "item": [ "cert", { "ca": "self-sign", "dns": "www.example.com", "group": 1041, "name": "certid", "owner": 1040 } ], "skip_reason": "Conditional result was False" } skipping: [sut] => (item=['key', {'name': 'mycert_fs_attrs', 'dns': 'www.example.com', 'owner': 'ftp', 'group': 'ftp', 'ca': 'self-sign'}]) => { "ansible_loop_var": "item", "changed": false, "item": [ "key", { "ca": "self-sign", "dns": "www.example.com", "group": "ftp", "name": "mycert_fs_attrs", "owner": "ftp" } ], "skip_reason": "Conditional result was False" } skipping: [sut] => (item=['key', {'name': 'certid', 'dns': 'www.example.com', 'owner': 1040, 'group': 1041, 'ca': 'self-sign'}]) => { "ansible_loop_var": "item", "changed": false, "item": [ "key", { "ca": "self-sign", "dns": "www.example.com", "group": 1041, "name": "certid", "owner": 1040 } ], "skip_reason": "Conditional result was False" } skipping: [sut] => (item=['ca', {'name': 'mycert_fs_attrs', 'dns': 'www.example.com', 'owner': 'ftp', 'group': 'ftp', 'ca': 'self-sign'}]) => { "ansible_loop_var": "item", "changed": false, "item": [ "ca", { "ca": "self-sign", "dns": "www.example.com", "group": "ftp", "name": "mycert_fs_attrs", "owner": "ftp" } ], "skip_reason": "Conditional result was False" } skipping: [sut] => (item=['ca', {'name': 'certid', 'dns': 'www.example.com', 'owner': 1040, 'group': 1041, 'ca': 'self-sign'}]) => { "ansible_loop_var": "item", "changed": false, "item": [ "ca", { "ca": "self-sign", "dns": "www.example.com", "group": 1041, "name": "certid", "owner": 1040 } ], "skip_reason": "Conditional result was False" } TASK [linux-system-roles.certificate : Create return data] ********************* task path: /WORKDIR/git-weekly-ci0xjq6s0t/tests/roles/linux-system-roles.certificate/tasks/main.yml:168 Saturday 08 June 2024 12:57:57 +0000 (0:00:00.037) 0:00:12.621 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.certificate : Stop tracking certificates] ************* task path: /WORKDIR/git-weekly-ci0xjq6s0t/tests/roles/linux-system-roles.certificate/tasks/main.yml:184 Saturday 08 June 2024 12:57:57 +0000 (0:00:00.018) 0:00:12.639 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.certificate : Remove files] *************************** task path: /WORKDIR/git-weekly-ci0xjq6s0t/tests/roles/linux-system-roles.certificate/tasks/main.yml:189 Saturday 08 June 2024 12:57:57 +0000 (0:00:00.018) 0:00:12.658 ********* 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-ci0xjq6s0t/tests/tests_fs_attrs.yml:32 Saturday 08 June 2024 12:57:57 +0000 (0:00:00.020) 0:00:12.679 ********* ok: [sut] META: ran handlers TASK [Verify each certificate] ************************************************* task path: /WORKDIR/git-weekly-ci0xjq6s0t/tests/tests_fs_attrs.yml:61 Saturday 08 June 2024 12:57:58 +0000 (0:00:00.477) 0:00:13.157 ********* included: /WORKDIR/git-weekly-ci0xjq6s0t/tests/tasks/assert_certificate_parameters.yml for sut included: /WORKDIR/git-weekly-ci0xjq6s0t/tests/tasks/assert_certificate_parameters.yml for sut TASK [Set virtualenv_path] ***************************************************** task path: /WORKDIR/git-weekly-ci0xjq6s0t/tests/tasks/assert_certificate_parameters.yml:2 Saturday 08 June 2024 12:57:58 +0000 (0:00:00.032) 0:00:13.190 ********* ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-weekly-ci0xjq6s0t/tests/tasks/assert_certificate_parameters.yml:9 Saturday 08 June 2024 12:57:58 +0000 (0:00:00.007) 0:00:13.197 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /WORKDIR/git-weekly-ci0xjq6s0t/tests/tasks/assert_certificate_parameters.yml:14 Saturday 08 June 2024 12:57:58 +0000 (0:00:00.016) 0:00:13.214 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/git-weekly-ci0xjq6s0t/tests/tasks/assert_certificate_parameters.yml:18 Saturday 08 June 2024 12:57:58 +0000 (0:00:00.017) 0:00:13.231 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/git-weekly-ci0xjq6s0t/tests/tasks/assert_certificate_parameters.yml:29 Saturday 08 June 2024 12:57:58 +0000 (0:00:00.016) 0:00:13.248 ********* ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do lsrpackages: python3-cryptography python3-pyasn1 TASK [Retrieve certificate file stats] ***************************************** task path: /WORKDIR/git-weekly-ci0xjq6s0t/tests/tasks/assert_certificate_parameters.yml:40 Saturday 08 June 2024 12:57:59 +0000 (0:00:00.878) 0:00:14.127 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1717851477.100333, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "ca3bcd9ed1c5804518a1e198639373d869d4f71b", "ctime": 1717851477.2153323, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 6495433, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1717851477.098333, "nlink": 1, "path": "/etc/pki/tls/certs/mycert_fs_attrs.crt", "pw_name": "ftp", "readable": true, "rgrp": true, "roth": false, "rusr": true, "size": 1294, "uid": 14, "version": "3033109308", "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-ci0xjq6s0t/tests/tasks/assert_certificate_parameters.yml:45 Saturday 08 June 2024 12:57:59 +0000 (0:00:00.196) 0:00:14.323 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/git-weekly-ci0xjq6s0t/tests/tasks/assert_certificate_parameters.yml:51 Saturday 08 June 2024 12:57:59 +0000 (0:00:00.018) 0:00:14.342 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/git-weekly-ci0xjq6s0t/tests/tasks/assert_certificate_parameters.yml:63 Saturday 08 June 2024 12:57:59 +0000 (0:00:00.021) 0:00:14.363 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/git-weekly-ci0xjq6s0t/tests/tasks/assert_certificate_parameters.yml:69 Saturday 08 June 2024 12:57:59 +0000 (0:00:00.019) 0:00:14.383 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1717851477.0433333, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "a46e8ed09024339f2e698f3a13b75eca7e658c74", "ctime": 1717851477.2153323, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 4984668, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1717851477.098333, "nlink": 1, "path": "/etc/pki/tls/private/mycert_fs_attrs.key", "pw_name": "ftp", "readable": true, "rgrp": true, "roth": false, "rusr": true, "size": 1704, "uid": 14, "version": "257030154", "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-ci0xjq6s0t/tests/tasks/assert_certificate_parameters.yml:74 Saturday 08 June 2024 12:57:59 +0000 (0:00:00.198) 0:00:14.581 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/git-weekly-ci0xjq6s0t/tests/tasks/assert_certificate_parameters.yml:80 Saturday 08 June 2024 12:57:59 +0000 (0:00:00.019) 0:00:14.601 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/git-weekly-ci0xjq6s0t/tests/tasks/assert_certificate_parameters.yml:92 Saturday 08 June 2024 12:57:59 +0000 (0:00:00.021) 0:00:14.622 ********* ok: [sut] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "76:7A:54:47:23:3D:89:38:DA:E3:16:FE:23:5D:20:6E:A3:01:69:7F" }, "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": "66:C6:B7:94:01:17:BE:AB:D9:9E:40:13:78:61:58:C3:83:2B:00:A8" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "5E:E8:FE:54:04:37:16:3C:4B:53:A9:EA:A2:96:5E:48:2C:55:E5:72:40:23:D9:C3:02:94:E2:79:C8:06:82:DD:A5:76:AB:98:3E:44:AF:55:9B:BD:23:61:E4:BD:E2:4A:49:09:CB:C6:A9:88:86:18:F3:F9:17:EB:C6:F1:1D:31:F3:E0:CC:FC:80:BE:A7:DD:74:01:75:1A:A1:35:6F:A7:8B:91:42:9D:B4:14:0F:D2:92:33:81:66:DC:69:B2:51:7B:29:B9:AA:39:88:84:F0:D4:CE:8E:6D:73:B1:79:9C:3B:27:04:28:53:30:09:DE:BE:49:BC:7F:CB:14:ED:70:FC:05:14:21:91:62:C0:2E:C2:8B:B2:05:FC:1A:97:F7:34:04:18:11:C2:99:4B:C7:72:24:45:03:99:3E:6E:9C:FC:CF:9C:11:5F:62:17:E3:A7:B3:D7:27:3A:89:90:2E:9E:F0:02:27:74:C4:C4:85:91:8F:C4:04:F1:C0:F5:8F:F6:E6:10:3F:F5:8D:E4:C8:64:B6:8C:C4:55:54:53:D3:BD:A4:5C:0F:68:CB:C0:B7:81:46:E0:67:D3:3F:A8:A2:28:60:A7:26:67:E1:83:DF:3B:3D:C7:2A:DF:6A:34:17:9A:A0:BF:5F:69:63:3D:24:EE:84:14:E8:B3:81:EA:4F" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250608125756Z", "not_valid_before": "20240608125757Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/git-weekly-ci0xjq6s0t/tests/tasks/assert_certificate_parameters.yml:98 Saturday 08 June 2024 12:58:00 +0000 (0:00:00.302) 0:00:14.924 ********* ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "76:7A:54:47:23:3D:89:38:DA:E3:16:FE:23:5D:20:6E:A3:01:69:7F" }, "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": "66:C6:B7:94:01:17:BE:AB:D9:9E:40:13:78:61:58:C3:83:2B:00:A8" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "5E:E8:FE:54:04:37:16:3C:4B:53:A9:EA:A2:96:5E:48:2C:55:E5:72:40:23:D9:C3:02:94:E2:79:C8:06:82:DD:A5:76:AB:98:3E:44:AF:55:9B:BD:23:61:E4:BD:E2:4A:49:09:CB:C6:A9:88:86:18:F3:F9:17:EB:C6:F1:1D:31:F3:E0:CC:FC:80:BE:A7:DD:74:01:75:1A:A1:35:6F:A7:8B:91:42:9D:B4:14:0F:D2:92:33:81:66:DC:69:B2:51:7B:29:B9:AA:39:88:84:F0:D4:CE:8E:6D:73:B1:79:9C:3B:27:04:28:53:30:09:DE:BE:49:BC:7F:CB:14:ED:70:FC:05:14:21:91:62:C0:2E:C2:8B:B2:05:FC:1A:97:F7:34:04:18:11:C2:99:4B:C7:72:24:45:03:99:3E:6E:9C:FC:CF:9C:11:5F:62:17:E3:A7:B3:D7:27:3A:89:90:2E:9E:F0:02:27:74:C4:C4:85:91:8F:C4:04:F1:C0:F5:8F:F6:E6:10:3F:F5:8D:E4:C8:64:B6:8C:C4:55:54:53:D3:BD:A4:5C:0F:68:CB:C0:B7:81:46:E0:67:D3:3F:A8:A2:28:60:A7:26:67:E1:83:DF:3B:3D:C7:2A:DF:6A:34:17:9A:A0:BF:5F:69:63:3D:24:EE:84:14:E8:B3:81:EA:4F" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250608125756Z", "not_valid_before": "20240608125757Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/git-weekly-ci0xjq6s0t/tests/tasks/assert_certificate_parameters.yml:102 Saturday 08 June 2024 12:58:00 +0000 (0:00:00.018) 0:00:14.943 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/git-weekly-ci0xjq6s0t/tests/tasks/assert_certificate_parameters.yml:111 Saturday 08 June 2024 12:58:00 +0000 (0:00:00.020) 0:00:14.963 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/git-weekly-ci0xjq6s0t/tests/tasks/assert_certificate_parameters.yml:120 Saturday 08 June 2024 12:58:00 +0000 (0:00:00.019) 0:00:14.982 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/git-weekly-ci0xjq6s0t/tests/tasks/assert_certificate_parameters.yml:127 Saturday 08 June 2024 12:58:00 +0000 (0:00:00.018) 0:00:15.000 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/git-weekly-ci0xjq6s0t/tests/tasks/assert_certificate_parameters.yml:138 Saturday 08 June 2024 12:58:00 +0000 (0:00:00.021) 0:00:15.022 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/git-weekly-ci0xjq6s0t/tests/tasks/assert_certificate_parameters.yml:151 Saturday 08 June 2024 12:58:00 +0000 (0:00:00.021) 0:00:15.043 ********* ok: [sut] => { "changed": false, "cmd": "set -euo pipefail; getcert list -f /etc/pki/tls/certs/mycert_fs_attrs.crt | grep 'auto-renew' | sed 's/^\\s\\+auto-renew: //g'", "delta": "0:00:00.046083", "end": "2024-06-08 12:58:00.538647", "rc": 0, "start": "2024-06-08 12:58:00.492564" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/git-weekly-ci0xjq6s0t/tests/tasks/assert_certificate_parameters.yml:160 Saturday 08 June 2024 12:58:00 +0000 (0:00:00.294) 0:00:15.338 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Set virtualenv_path] ***************************************************** task path: /WORKDIR/git-weekly-ci0xjq6s0t/tests/tasks/assert_certificate_parameters.yml:2 Saturday 08 June 2024 12:58:00 +0000 (0:00:00.020) 0:00:15.358 ********* ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-weekly-ci0xjq6s0t/tests/tasks/assert_certificate_parameters.yml:9 Saturday 08 June 2024 12:58:00 +0000 (0:00:00.007) 0:00:15.365 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /WORKDIR/git-weekly-ci0xjq6s0t/tests/tasks/assert_certificate_parameters.yml:14 Saturday 08 June 2024 12:58:00 +0000 (0:00:00.016) 0:00:15.382 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/git-weekly-ci0xjq6s0t/tests/tasks/assert_certificate_parameters.yml:18 Saturday 08 June 2024 12:58:00 +0000 (0:00:00.015) 0:00:15.398 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/git-weekly-ci0xjq6s0t/tests/tasks/assert_certificate_parameters.yml:29 Saturday 08 June 2024 12:58:00 +0000 (0:00:00.015) 0:00:15.413 ********* ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do lsrpackages: python3-cryptography python3-pyasn1 TASK [Retrieve certificate file stats] ***************************************** task path: /WORKDIR/git-weekly-ci0xjq6s0t/tests/tasks/assert_certificate_parameters.yml:40 Saturday 08 June 2024 12:58:01 +0000 (0:00:00.920) 0:00:16.333 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1717851477.6973298, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "8aaf95634ed58b9cdaab1466dd33757b9242db26", "ctime": 1717851477.7723293, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 1041, "gr_name": "somegroup", "inode": 6495434, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1717851477.6953297, "nlink": 1, "path": "/etc/pki/tls/certs/certid.crt", "pw_name": "user1", "readable": true, "rgrp": true, "roth": false, "rusr": true, "size": 1294, "uid": 1040, "version": "2597522500", "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-ci0xjq6s0t/tests/tasks/assert_certificate_parameters.yml:45 Saturday 08 June 2024 12:58:01 +0000 (0:00:00.201) 0:00:16.535 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/git-weekly-ci0xjq6s0t/tests/tasks/assert_certificate_parameters.yml:51 Saturday 08 June 2024 12:58:01 +0000 (0:00:00.019) 0:00:16.555 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/git-weekly-ci0xjq6s0t/tests/tasks/assert_certificate_parameters.yml:63 Saturday 08 June 2024 12:58:01 +0000 (0:00:00.021) 0:00:16.576 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/git-weekly-ci0xjq6s0t/tests/tasks/assert_certificate_parameters.yml:69 Saturday 08 June 2024 12:58:01 +0000 (0:00:00.019) 0:00:16.596 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1717851477.64533, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "fc8f63360ad688806c6eb2c57b6e05ed833d8fee", "ctime": 1717851477.7723293, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 1041, "gr_name": "somegroup", "inode": 4984669, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0640", "mtime": 1717851477.6953297, "nlink": 1, "path": "/etc/pki/tls/private/certid.key", "pw_name": "user1", "readable": true, "rgrp": true, "roth": false, "rusr": true, "size": 1704, "uid": 1040, "version": "3281622201", "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-ci0xjq6s0t/tests/tasks/assert_certificate_parameters.yml:74 Saturday 08 June 2024 12:58:02 +0000 (0:00:00.199) 0:00:16.795 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/git-weekly-ci0xjq6s0t/tests/tasks/assert_certificate_parameters.yml:80 Saturday 08 June 2024 12:58:02 +0000 (0:00:00.019) 0:00:16.815 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/git-weekly-ci0xjq6s0t/tests/tasks/assert_certificate_parameters.yml:92 Saturday 08 June 2024 12:58:02 +0000 (0:00:00.021) 0:00:16.836 ********* ok: [sut] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "76:7A:54:47:23:3D:89:38:DA:E3:16:FE:23:5D:20:6E:A3:01:69:7F" }, "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": "2C:99:1E:23:41:9C:5E:CD:1E:9A:F9:DF:B9:FD:0F:CF:FB:12:CE:41" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "3C:DA:06:07:12:D8:14:55:15:A9:9E:6C:B7:88:7F:F9:76:23:89:62:67:38:E4:81:8F:AE:29:CA:B7:FE:54:55:93:FA:C2:DE:DF:D4:B8:C9:79:8C:CC:E8:C2:85:C4:0B:95:BE:1C:DF:9C:F2:12:8F:44:03:CB:B9:9E:E7:56:93:31:28:C7:AB:75:C8:04:09:8E:C5:20:5F:27:EC:FE:3F:20:68:1A:D3:1E:9F:91:6B:20:67:86:64:98:A1:02:9A:F8:1C:2C:0A:1F:DF:C9:87:C5:50:42:C4:36:03:E6:20:B7:59:D2:ED:D5:22:3D:B0:8B:27:32:1B:0E:24:42:25:6B:3F:9E:63:4E:CC:2A:1E:11:ED:C1:6F:BD:1C:8F:A5:3B:8D:82:3A:2C:A5:F5:78:88:E1:BE:77:69:3D:78:8A:82:F3:E9:4C:0E:1D:06:2A:8A:78:F6:CA:D3:D9:10:59:20:62:FA:87:6F:48:62:E4:64:66:44:2B:7D:48:39:83:A1:D8:15:50:4F:C5:40:A3:AF:35:EE:0A:BF:C5:62:C1:8B:57:26:02:3A:9D:6C:56:F3:03:6A:D4:7C:0F:7E:C8:04:1C:EE:C0:54:9D:32:05:71:C7:12:17:8B:C5:02:F9:82:DD:61:FD:3F:AA:9D:BE:73:A8:DF:33:6F:2E:24:87" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250608125756Z", "not_valid_before": "20240608125757Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/git-weekly-ci0xjq6s0t/tests/tasks/assert_certificate_parameters.yml:98 Saturday 08 June 2024 12:58:02 +0000 (0:00:00.237) 0:00:17.073 ********* ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "76:7A:54:47:23:3D:89:38:DA:E3:16:FE:23:5D:20:6E:A3:01:69:7F" }, "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": "2C:99:1E:23:41:9C:5E:CD:1E:9A:F9:DF:B9:FD:0F:CF:FB:12:CE:41" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "3C:DA:06:07:12:D8:14:55:15:A9:9E:6C:B7:88:7F:F9:76:23:89:62:67:38:E4:81:8F:AE:29:CA:B7:FE:54:55:93:FA:C2:DE:DF:D4:B8:C9:79:8C:CC:E8:C2:85:C4:0B:95:BE:1C:DF:9C:F2:12:8F:44:03:CB:B9:9E:E7:56:93:31:28:C7:AB:75:C8:04:09:8E:C5:20:5F:27:EC:FE:3F:20:68:1A:D3:1E:9F:91:6B:20:67:86:64:98:A1:02:9A:F8:1C:2C:0A:1F:DF:C9:87:C5:50:42:C4:36:03:E6:20:B7:59:D2:ED:D5:22:3D:B0:8B:27:32:1B:0E:24:42:25:6B:3F:9E:63:4E:CC:2A:1E:11:ED:C1:6F:BD:1C:8F:A5:3B:8D:82:3A:2C:A5:F5:78:88:E1:BE:77:69:3D:78:8A:82:F3:E9:4C:0E:1D:06:2A:8A:78:F6:CA:D3:D9:10:59:20:62:FA:87:6F:48:62:E4:64:66:44:2B:7D:48:39:83:A1:D8:15:50:4F:C5:40:A3:AF:35:EE:0A:BF:C5:62:C1:8B:57:26:02:3A:9D:6C:56:F3:03:6A:D4:7C:0F:7E:C8:04:1C:EE:C0:54:9D:32:05:71:C7:12:17:8B:C5:02:F9:82:DD:61:FD:3F:AA:9D:BE:73:A8:DF:33:6F:2E:24:87" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250608125756Z", "not_valid_before": "20240608125757Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/git-weekly-ci0xjq6s0t/tests/tasks/assert_certificate_parameters.yml:102 Saturday 08 June 2024 12:58:02 +0000 (0:00:00.019) 0:00:17.093 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/git-weekly-ci0xjq6s0t/tests/tasks/assert_certificate_parameters.yml:111 Saturday 08 June 2024 12:58:02 +0000 (0:00:00.020) 0:00:17.113 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/git-weekly-ci0xjq6s0t/tests/tasks/assert_certificate_parameters.yml:120 Saturday 08 June 2024 12:58:02 +0000 (0:00:00.019) 0:00:17.132 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/git-weekly-ci0xjq6s0t/tests/tasks/assert_certificate_parameters.yml:127 Saturday 08 June 2024 12:58:02 +0000 (0:00:00.019) 0:00:17.152 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/git-weekly-ci0xjq6s0t/tests/tasks/assert_certificate_parameters.yml:138 Saturday 08 June 2024 12:58:02 +0000 (0:00:00.022) 0:00:17.174 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/git-weekly-ci0xjq6s0t/tests/tasks/assert_certificate_parameters.yml:151 Saturday 08 June 2024 12:58:02 +0000 (0:00:00.021) 0:00:17.196 ********* ok: [sut] => { "changed": false, "cmd": "set -euo pipefail; getcert list -f /etc/pki/tls/certs/certid.crt | grep 'auto-renew' | sed 's/^\\s\\+auto-renew: //g'", "delta": "0:00:00.045947", "end": "2024-06-08 12:58:02.644515", "rc": 0, "start": "2024-06-08 12:58:02.598568" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/git-weekly-ci0xjq6s0t/tests/tasks/assert_certificate_parameters.yml:160 Saturday 08 June 2024 12:58:02 +0000 (0:00:00.249) 0:00:17.445 ********* ok: [sut] => { "changed": false } MSG: All assertions passed META: ran handlers META: ran handlers PLAY [Issue certificate setting user/group/mode] ******************************* TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-weekly-ci0xjq6s0t/tests/tests_fs_attrs.yml:67 Saturday 08 June 2024 12:58:02 +0000 (0:00:00.024) 0:00:17.469 ********* ok: [sut] META: ran handlers TASK [linux-system-roles.certificate : Set version specific variables] ********* task path: /WORKDIR/git-weekly-ci0xjq6s0t/tests/roles/linux-system-roles.certificate/tasks/main.yml:2 Saturday 08 June 2024 12:58:03 +0000 (0:00:00.501) 0:00:17.970 ********* included: /WORKDIR/git-weekly-ci0xjq6s0t/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-ci0xjq6s0t/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:2 Saturday 08 June 2024 12:58:03 +0000 (0:00:00.010) 0:00:17.981 ********* 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-ci0xjq6s0t/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:11 Saturday 08 June 2024 12:58:03 +0000 (0:00:00.018) 0:00:17.999 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.certificate : Set flag to indicate system is ostree] *** task path: /WORKDIR/git-weekly-ci0xjq6s0t/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:16 Saturday 08 June 2024 12:58:03 +0000 (0:00:00.015) 0:00:18.015 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.certificate : Set platform/version specific variables] *** task path: /WORKDIR/git-weekly-ci0xjq6s0t/tests/roles/linux-system-roles.certificate/tasks/set_vars.yml:20 Saturday 08 June 2024 12:58:03 +0000 (0:00:00.016) 0:00:18.032 ********* 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_9.yml) => { "ansible_facts": { "__certificate_certmonger_packages": [ "certmonger", "python3-packaging" ] }, "ansible_included_var_files": [ "/WORKDIR/git-weekly-ci0xjq6s0t/tests/roles/linux-system-roles.certificate/vars/CentOS_9.yml" ], "ansible_loop_var": "item", "changed": false, "item": "CentOS_9.yml" } ok: [sut] => (item=CentOS_9.yml) => { "ansible_facts": { "__certificate_certmonger_packages": [ "certmonger", "python3-packaging" ] }, "ansible_included_var_files": [ "/WORKDIR/git-weekly-ci0xjq6s0t/tests/roles/linux-system-roles.certificate/vars/CentOS_9.yml" ], "ansible_loop_var": "item", "changed": false, "item": "CentOS_9.yml" } TASK [linux-system-roles.certificate : Ensure certificate role dependencies are installed] *** task path: /WORKDIR/git-weekly-ci0xjq6s0t/tests/roles/linux-system-roles.certificate/tasks/main.yml:5 Saturday 08 June 2024 12:58:03 +0000 (0:00:00.032) 0:00:18.064 ********* ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do lsrpackages: python3-cryptography python3-dbus python3-pyasn1 TASK [linux-system-roles.certificate : Ensure provider packages are installed] *** task path: /WORKDIR/git-weekly-ci0xjq6s0t/tests/roles/linux-system-roles.certificate/tasks/main.yml:24 Saturday 08 June 2024 12:58:04 +0000 (0:00:00.894) 0:00:18.959 ********* ok: [sut] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "rc": 0, "results": [] } MSG: Nothing to do lsrpackages: certmonger python3-packaging TASK [linux-system-roles.certificate : Ensure pre-scripts hooks directory exists] *** task path: /WORKDIR/git-weekly-ci0xjq6s0t/tests/roles/linux-system-roles.certificate/tasks/main.yml:37 Saturday 08 June 2024 12:58:05 +0000 (0:00:00.895) 0:00:19.854 ********* ok: [sut] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "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 [linux-system-roles.certificate : Ensure post-scripts hooks directory exists] *** task path: /WORKDIR/git-weekly-ci0xjq6s0t/tests/roles/linux-system-roles.certificate/tasks/main.yml:63 Saturday 08 June 2024 12:58:05 +0000 (0:00:00.202) 0:00:20.056 ********* ok: [sut] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "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 [linux-system-roles.certificate : Ensure provider service is running] ***** task path: /WORKDIR/git-weekly-ci0xjq6s0t/tests/roles/linux-system-roles.certificate/tasks/main.yml:92 Saturday 08 June 2024 12:58:05 +0000 (0:00:00.208) 0:00:20.265 ********* ok: [sut] => (item=certmonger) => { "__certificate_provider": "certmonger", "ansible_loop_var": "__certificate_provider", "changed": false, "enabled": true, "name": "certmonger", "state": "started", "status": { "AccessSELinuxContext": "system_u:object_r:certmonger_unit_file_t:s0", "ActiveEnterTimestamp": "Sat 2024-06-08 12:57:56 UTC", "ActiveEnterTimestampMonotonic": "482280069", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "dbus-broker.service system.slice dbus.socket systemd-journald.socket basic.target network.target syslog.target sysinit.target", "AllowIsolate": "no", "AssertResult": "yes", "AssertTimestamp": "Sat 2024-06-08 12:57:56 UTC", "AssertTimestampMonotonic": "482261070", "Before": "shutdown.target multi-user.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "BusName": "org.fedorahosted.certmonger", "CPUAccounting": "yes", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "777394000", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanFreeze": "yes", "CanIsolate": "no", "CanReload": "no", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend cap_audit_read cap_perfmon cap_bpf cap_checkpoint_restore", "CleanResult": "success", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Sat 2024-06-08 12:57:56 UTC", "ConditionTimestampMonotonic": "482260988", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target", "ControlGroup": "/system.slice/certmonger.service", "ControlGroupId": "4041", "ControlPID": "0", "CoredumpFilter": "0x33", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "Certificate monitoring and PKI enrollment", "DevicePolicy": "auto", "DynamicUser": "no", "EnvironmentFiles": "/etc/sysconfig/certmonger (ignore_errors=yes)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "8926", "ExecMainStartTimestamp": "Sat 2024-06-08 12:57:56 UTC", "ExecMainStartTimestampMonotonic": "482270843", "ExecMainStatus": "0", "ExecStart": "{ path=/usr/sbin/certmonger ; argv[]=/usr/sbin/certmonger -S -p /run/certmonger.pid -n $OPTS ; ignore_errors=no ; start_time=[Sat 2024-06-08 12:57:56 UTC] ; stop_time=[n/a] ; pid=8926 ; code=(null) ; status=0/0 }", "ExecStartEx": "{ path=/usr/sbin/certmonger ; argv[]=/usr/sbin/certmonger -S -p /run/certmonger.pid -n $OPTS ; flags= ; start_time=[Sat 2024-06-08 12:57:56 UTC] ; stop_time=[n/a] ; pid=8926 ; code=(null) ; status=0/0 }", "ExitType": "main", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FinalKillSignal": "9", "FragmentPath": "/usr/lib/systemd/system/certmonger.service", "FreezerState": "running", "GID": "[not set]", "GuessMainPID": "yes", "IOAccounting": "no", "IOReadBytes": "18446744073709551615", "IOReadOperations": "18446744073709551615", "IOSchedulingClass": "2", "IOSchedulingPriority": "4", "IOWeight": "[not set]", "IOWriteBytes": "18446744073709551615", "IOWriteOperations": "18446744073709551615", "IPAccounting": "no", "IPEgressBytes": "[no data]", "IPEgressPackets": "[no data]", "IPIngressBytes": "[no data]", "IPIngressPackets": "[no data]", "Id": "certmonger.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestamp": "Sat 2024-06-08 12:57:56 UTC", "InactiveExitTimestampMonotonic": "482271404", "InvocationID": "42e6345e2e6f4135a9dd98006417a1cf", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "control-group", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "infinity", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "8388608", "LimitMEMLOCKSoft": "8388608", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "524288", "LimitNOFILESoft": "1024", "LimitNPROC": "13972", "LimitNPROCSoft": "13972", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "13972", "LimitSIGPENDINGSoft": "13972", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "8926", "ManagedOOMMemoryPressure": "auto", "ManagedOOMMemoryPressureLimit": "0", "ManagedOOMPreference": "none", "ManagedOOMSwap": "auto", "MemoryAccounting": "yes", "MemoryAvailable": "infinity", "MemoryCurrent": "4370432", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAPolicy": "n/a", "Names": "certmonger.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMPolicy": "stop", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "OnSuccessJobMode": "fail", "PIDFile": "/run/certmonger.pid", "PartOf": "dbus-broker.service", "Perpetual": "no", "PrivateDevices": "no", "PrivateIPC": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProcSubset": "all", "ProtectClock": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectHostname": "no", "ProtectKernelLogs": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectProc": "default", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "ReloadResult": "success", "ReloadSignal": "1", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "dbus.socket sysinit.target system.slice", "Restart": "no", "RestartKillSignal": "15", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "RuntimeRandomizedExtraUSec": "0", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestamp": "Sat 2024-06-08 12:57:56 UTC", "StateChangeTimestampMonotonic": "482280069", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "running", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "2147483646", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "1", "TasksMax": "22356", "TimeoutAbortUSec": "1min 30s", "TimeoutCleanUSec": "infinity", "TimeoutStartFailureMode": "terminate", "TimeoutStartUSec": "1min 30s", "TimeoutStopFailureMode": "terminate", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "dbus", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "disabled", "UnitFileState": "enabled", "UtmpMode": "init", "WantedBy": "multi-user.target", "WatchdogSignal": "6", "WatchdogTimestampMonotonic": "0", "WatchdogUSec": "0" } } TASK [linux-system-roles.certificate : Ensure certificate requests] ************ task path: /WORKDIR/git-weekly-ci0xjq6s0t/tests/roles/linux-system-roles.certificate/tasks/main.yml:104 Saturday 08 June 2024 12:58:05 +0000 (0:00:00.333) 0:00:20.598 ********* changed: [sut] => (item={'name': 'mycert_fs_attrs_mode', 'dns': 'www.example.com', 'owner': 'ftp', 'group': 'ftp', 'mode': '0620', 'ca': 'self-sign'}) => { "ansible_loop_var": "item", "changed": true, "item": { "ca": "self-sign", "dns": "www.example.com", "group": "ftp", "mode": "0620", "name": "mycert_fs_attrs_mode", "owner": "ftp" } } MSG: Certificate requested (new). File attributes updated. changed: [sut] => (item={'name': 'certid_mode', 'dns': 'www.example.com', 'mode': '0600', 'ca': 'self-sign'}) => { "ansible_loop_var": "item", "changed": true, "item": { "ca": "self-sign", "dns": "www.example.com", "mode": "0600", "name": "certid_mode" } } MSG: Certificate requested (new). TASK [linux-system-roles.certificate : Slurp the contents of the files] ******** task path: /WORKDIR/git-weekly-ci0xjq6s0t/tests/roles/linux-system-roles.certificate/tasks/main.yml:156 Saturday 08 June 2024 12:58:07 +0000 (0:00:01.548) 0:00:22.147 ********* skipping: [sut] => (item=['cert', {'name': 'mycert_fs_attrs_mode', 'dns': 'www.example.com', 'owner': 'ftp', 'group': 'ftp', 'mode': '0620', 'ca': 'self-sign'}]) => { "ansible_loop_var": "item", "changed": false, "item": [ "cert", { "ca": "self-sign", "dns": "www.example.com", "group": "ftp", "mode": "0620", "name": "mycert_fs_attrs_mode", "owner": "ftp" } ], "skip_reason": "Conditional result was False" } skipping: [sut] => (item=['cert', {'name': 'certid_mode', 'dns': 'www.example.com', 'mode': '0600', 'ca': 'self-sign'}]) => { "ansible_loop_var": "item", "changed": false, "item": [ "cert", { "ca": "self-sign", "dns": "www.example.com", "mode": "0600", "name": "certid_mode" } ], "skip_reason": "Conditional result was False" } skipping: [sut] => (item=['key', {'name': 'mycert_fs_attrs_mode', 'dns': 'www.example.com', 'owner': 'ftp', 'group': 'ftp', 'mode': '0620', 'ca': 'self-sign'}]) => { "ansible_loop_var": "item", "changed": false, "item": [ "key", { "ca": "self-sign", "dns": "www.example.com", "group": "ftp", "mode": "0620", "name": "mycert_fs_attrs_mode", "owner": "ftp" } ], "skip_reason": "Conditional result was False" } skipping: [sut] => (item=['key', {'name': 'certid_mode', 'dns': 'www.example.com', 'mode': '0600', 'ca': 'self-sign'}]) => { "ansible_loop_var": "item", "changed": false, "item": [ "key", { "ca": "self-sign", "dns": "www.example.com", "mode": "0600", "name": "certid_mode" } ], "skip_reason": "Conditional result was False" } skipping: [sut] => (item=['ca', {'name': 'mycert_fs_attrs_mode', 'dns': 'www.example.com', 'owner': 'ftp', 'group': 'ftp', 'mode': '0620', 'ca': 'self-sign'}]) => { "ansible_loop_var": "item", "changed": false, "item": [ "ca", { "ca": "self-sign", "dns": "www.example.com", "group": "ftp", "mode": "0620", "name": "mycert_fs_attrs_mode", "owner": "ftp" } ], "skip_reason": "Conditional result was False" } skipping: [sut] => (item=['ca', {'name': 'certid_mode', 'dns': 'www.example.com', 'mode': '0600', 'ca': 'self-sign'}]) => { "ansible_loop_var": "item", "changed": false, "item": [ "ca", { "ca": "self-sign", "dns": "www.example.com", "mode": "0600", "name": "certid_mode" } ], "skip_reason": "Conditional result was False" } TASK [linux-system-roles.certificate : Create return data] ********************* task path: /WORKDIR/git-weekly-ci0xjq6s0t/tests/roles/linux-system-roles.certificate/tasks/main.yml:168 Saturday 08 June 2024 12:58:07 +0000 (0:00:00.032) 0:00:22.179 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.certificate : Stop tracking certificates] ************* task path: /WORKDIR/git-weekly-ci0xjq6s0t/tests/roles/linux-system-roles.certificate/tasks/main.yml:184 Saturday 08 June 2024 12:58:07 +0000 (0:00:00.017) 0:00:22.196 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.certificate : Remove files] *************************** task path: /WORKDIR/git-weekly-ci0xjq6s0t/tests/roles/linux-system-roles.certificate/tasks/main.yml:189 Saturday 08 June 2024 12:58:07 +0000 (0:00:00.018) 0:00:22.214 ********* 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-ci0xjq6s0t/tests/tests_fs_attrs.yml:85 Saturday 08 June 2024 12:58:07 +0000 (0:00:00.019) 0:00:22.234 ********* ok: [sut] META: ran handlers TASK [Verify each certificate] ************************************************* task path: /WORKDIR/git-weekly-ci0xjq6s0t/tests/tests_fs_attrs.yml:112 Saturday 08 June 2024 12:58:07 +0000 (0:00:00.481) 0:00:22.715 ********* included: /WORKDIR/git-weekly-ci0xjq6s0t/tests/tasks/assert_certificate_parameters.yml for sut included: /WORKDIR/git-weekly-ci0xjq6s0t/tests/tasks/assert_certificate_parameters.yml for sut TASK [Set virtualenv_path] ***************************************************** task path: /WORKDIR/git-weekly-ci0xjq6s0t/tests/tasks/assert_certificate_parameters.yml:2 Saturday 08 June 2024 12:58:07 +0000 (0:00:00.032) 0:00:22.748 ********* ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-weekly-ci0xjq6s0t/tests/tasks/assert_certificate_parameters.yml:9 Saturday 08 June 2024 12:58:07 +0000 (0:00:00.008) 0:00:22.756 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /WORKDIR/git-weekly-ci0xjq6s0t/tests/tasks/assert_certificate_parameters.yml:14 Saturday 08 June 2024 12:58:07 +0000 (0:00:00.016) 0:00:22.773 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/git-weekly-ci0xjq6s0t/tests/tasks/assert_certificate_parameters.yml:18 Saturday 08 June 2024 12:58:08 +0000 (0:00:00.016) 0:00:22.790 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/git-weekly-ci0xjq6s0t/tests/tasks/assert_certificate_parameters.yml:29 Saturday 08 June 2024 12:58:08 +0000 (0:00:00.018) 0:00:22.809 ********* ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do lsrpackages: python3-cryptography python3-pyasn1 TASK [Retrieve certificate file stats] ***************************************** task path: /WORKDIR/git-weekly-ci0xjq6s0t/tests/tasks/assert_certificate_parameters.yml:40 Saturday 08 June 2024 12:58:08 +0000 (0:00:00.882) 0:00:23.692 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1717851486.263284, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "f8461f11eec70e01cce81bd236dfb8f7be7cb616", "ctime": 1717851486.3692834, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 6495435, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0620", "mtime": 1717851486.260284, "nlink": 1, "path": "/etc/pki/tls/certs/mycert_fs_attrs_mode.crt", "pw_name": "ftp", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1294, "uid": 14, "version": "927302656", "wgrp": true, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if certificate file exists] *************************************** task path: /WORKDIR/git-weekly-ci0xjq6s0t/tests/tasks/assert_certificate_parameters.yml:45 Saturday 08 June 2024 12:58:09 +0000 (0:00:00.198) 0:00:23.890 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/git-weekly-ci0xjq6s0t/tests/tasks/assert_certificate_parameters.yml:51 Saturday 08 June 2024 12:58:09 +0000 (0:00:00.019) 0:00:23.910 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/git-weekly-ci0xjq6s0t/tests/tasks/assert_certificate_parameters.yml:63 Saturday 08 June 2024 12:58:09 +0000 (0:00:00.021) 0:00:23.931 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/git-weekly-ci0xjq6s0t/tests/tasks/assert_certificate_parameters.yml:69 Saturday 08 June 2024 12:58:09 +0000 (0:00:00.019) 0:00:23.950 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1717851486.2112842, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "d3620f720bfe13779b1146270503765978a9da36", "ctime": 1717851486.3692834, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 50, "gr_name": "ftp", "inode": 4984670, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0620", "mtime": 1717851486.260284, "nlink": 1, "path": "/etc/pki/tls/private/mycert_fs_attrs_mode.key", "pw_name": "ftp", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1704, "uid": 14, "version": "4184081322", "wgrp": true, "woth": false, "writeable": true, "wusr": true, "xgrp": false, "xoth": false, "xusr": false } } TASK [Verify if key file exists] *********************************************** task path: /WORKDIR/git-weekly-ci0xjq6s0t/tests/tasks/assert_certificate_parameters.yml:74 Saturday 08 June 2024 12:58:09 +0000 (0:00:00.201) 0:00:24.152 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/git-weekly-ci0xjq6s0t/tests/tasks/assert_certificate_parameters.yml:80 Saturday 08 June 2024 12:58:09 +0000 (0:00:00.021) 0:00:24.173 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/git-weekly-ci0xjq6s0t/tests/tasks/assert_certificate_parameters.yml:92 Saturday 08 June 2024 12:58:09 +0000 (0:00:00.023) 0:00:24.196 ********* ok: [sut] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "76:7A:54:47:23:3D:89:38:DA:E3:16:FE:23:5D:20:6E:A3:01:69:7F" }, "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": "0A:B4:31:C6:8E:A2:28:D5:58:62:EA:54:75:0F:58:CB:54:31:75:00" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "97:5F:D9:CC:3A:CF:15:E7:6A:6E:D6:43:C8:6E:CD:DD:1B:0E:EE:7B:C2:85:C2:57:50:C5:96:E7:93:D1:01:1E:89:D7:0E:18:B7:9B:95:C4:9E:4A:32:0C:D3:F3:1F:E8:80:B5:E5:EF:24:71:EB:8E:14:B3:68:21:30:A7:3E:68:0B:75:78:CD:3E:F3:DF:7D:58:5A:79:EC:AA:4D:43:C2:46:D7:90:EE:FE:F5:1B:28:DA:BE:56:2B:14:6F:2F:9F:FA:F4:E4:7B:E4:92:95:41:76:4E:C5:70:3F:E7:1D:BA:93:F2:3B:D9:9B:68:1F:64:8C:71:B9:89:1B:53:87:CD:70:00:3F:32:FF:CF:BF:FA:CD:13:DC:78:2E:FB:1D:DA:CD:57:1B:85:CE:9D:ED:3A:A0:2C:C2:8D:40:C8:08:D5:4A:73:A4:AE:F8:26:1A:B8:02:5E:5D:79:4B:C8:D7:3C:1E:F3:CA:5F:81:22:6F:4E:BF:C6:12:D6:5B:21:B6:72:46:24:F0:D4:50:0B:AA:3B:CC:18:5A:EB:18:64:1B:9F:9A:DF:E8:24:0B:3F:BD:8A:0A:3B:6D:A9:0B:86:8C:ED:6D:51:24:41:8A:9D:51:D5:CF:1C:89:3C:A9:EE:6B:D4:FA:BE:C0:5A:CF:CC:C5:1C:48:0C:03:EB:2F:BA:EB:B3" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250608125756Z", "not_valid_before": "20240608125806Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/git-weekly-ci0xjq6s0t/tests/tasks/assert_certificate_parameters.yml:98 Saturday 08 June 2024 12:58:09 +0000 (0:00:00.239) 0:00:24.436 ********* ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "76:7A:54:47:23:3D:89:38:DA:E3:16:FE:23:5D:20:6E:A3:01:69:7F" }, "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": "0A:B4:31:C6:8E:A2:28:D5:58:62:EA:54:75:0F:58:CB:54:31:75:00" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "97:5F:D9:CC:3A:CF:15:E7:6A:6E:D6:43:C8:6E:CD:DD:1B:0E:EE:7B:C2:85:C2:57:50:C5:96:E7:93:D1:01:1E:89:D7:0E:18:B7:9B:95:C4:9E:4A:32:0C:D3:F3:1F:E8:80:B5:E5:EF:24:71:EB:8E:14:B3:68:21:30:A7:3E:68:0B:75:78:CD:3E:F3:DF:7D:58:5A:79:EC:AA:4D:43:C2:46:D7:90:EE:FE:F5:1B:28:DA:BE:56:2B:14:6F:2F:9F:FA:F4:E4:7B:E4:92:95:41:76:4E:C5:70:3F:E7:1D:BA:93:F2:3B:D9:9B:68:1F:64:8C:71:B9:89:1B:53:87:CD:70:00:3F:32:FF:CF:BF:FA:CD:13:DC:78:2E:FB:1D:DA:CD:57:1B:85:CE:9D:ED:3A:A0:2C:C2:8D:40:C8:08:D5:4A:73:A4:AE:F8:26:1A:B8:02:5E:5D:79:4B:C8:D7:3C:1E:F3:CA:5F:81:22:6F:4E:BF:C6:12:D6:5B:21:B6:72:46:24:F0:D4:50:0B:AA:3B:CC:18:5A:EB:18:64:1B:9F:9A:DF:E8:24:0B:3F:BD:8A:0A:3B:6D:A9:0B:86:8C:ED:6D:51:24:41:8A:9D:51:D5:CF:1C:89:3C:A9:EE:6B:D4:FA:BE:C0:5A:CF:CC:C5:1C:48:0C:03:EB:2F:BA:EB:B3" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250608125756Z", "not_valid_before": "20240608125806Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/git-weekly-ci0xjq6s0t/tests/tasks/assert_certificate_parameters.yml:102 Saturday 08 June 2024 12:58:09 +0000 (0:00:00.020) 0:00:24.456 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/git-weekly-ci0xjq6s0t/tests/tasks/assert_certificate_parameters.yml:111 Saturday 08 June 2024 12:58:09 +0000 (0:00:00.020) 0:00:24.477 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/git-weekly-ci0xjq6s0t/tests/tasks/assert_certificate_parameters.yml:120 Saturday 08 June 2024 12:58:09 +0000 (0:00:00.019) 0:00:24.496 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/git-weekly-ci0xjq6s0t/tests/tasks/assert_certificate_parameters.yml:127 Saturday 08 June 2024 12:58:09 +0000 (0:00:00.019) 0:00:24.515 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/git-weekly-ci0xjq6s0t/tests/tasks/assert_certificate_parameters.yml:138 Saturday 08 June 2024 12:58:09 +0000 (0:00:00.022) 0:00:24.538 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/git-weekly-ci0xjq6s0t/tests/tasks/assert_certificate_parameters.yml:151 Saturday 08 June 2024 12:58:09 +0000 (0:00:00.022) 0:00:24.561 ********* ok: [sut] => { "changed": false, "cmd": "set -euo pipefail; getcert list -f /etc/pki/tls/certs/mycert_fs_attrs_mode.crt | grep 'auto-renew' | sed 's/^\\s\\+auto-renew: //g'", "delta": "0:00:00.049096", "end": "2024-06-08 12:58:09.996192", "rc": 0, "start": "2024-06-08 12:58:09.947096" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/git-weekly-ci0xjq6s0t/tests/tasks/assert_certificate_parameters.yml:160 Saturday 08 June 2024 12:58:10 +0000 (0:00:00.234) 0:00:24.796 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Set virtualenv_path] ***************************************************** task path: /WORKDIR/git-weekly-ci0xjq6s0t/tests/tasks/assert_certificate_parameters.yml:2 Saturday 08 June 2024 12:58:10 +0000 (0:00:00.022) 0:00:24.818 ********* ok: [sut] => { "ansible_facts": { "__virtualenv_path": "/tmp/certificate-tests-venv" }, "changed": false } TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-weekly-ci0xjq6s0t/tests/tasks/assert_certificate_parameters.yml:9 Saturday 08 June 2024 12:58:10 +0000 (0:00:00.008) 0:00:24.827 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Set flag to indicate system is ostree] *********************************** task path: /WORKDIR/git-weekly-ci0xjq6s0t/tests/tasks/assert_certificate_parameters.yml:14 Saturday 08 June 2024 12:58:10 +0000 (0:00:00.018) 0:00:24.845 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/git-weekly-ci0xjq6s0t/tests/tasks/assert_certificate_parameters.yml:18 Saturday 08 June 2024 12:58:10 +0000 (0:00:00.017) 0:00:24.863 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Ensure python3 is installed] ********************************************* task path: /WORKDIR/git-weekly-ci0xjq6s0t/tests/tasks/assert_certificate_parameters.yml:29 Saturday 08 June 2024 12:58:10 +0000 (0:00:00.017) 0:00:24.881 ********* ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do lsrpackages: python3-cryptography python3-pyasn1 TASK [Retrieve certificate file stats] ***************************************** task path: /WORKDIR/git-weekly-ci0xjq6s0t/tests/tasks/assert_certificate_parameters.yml:40 Saturday 08 June 2024 12:58:10 +0000 (0:00:00.878) 0:00:25.759 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1717851487.2202787, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "715d9fc12f6d84d63eb41e9e6cffcd8a2e94f2a3", "ctime": 1717851487.218279, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 6495436, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1717851487.218279, "nlink": 1, "path": "/etc/pki/tls/certs/certid_mode.crt", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1294, "uid": 0, "version": "1226476229", "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-ci0xjq6s0t/tests/tasks/assert_certificate_parameters.yml:45 Saturday 08 June 2024 12:58:11 +0000 (0:00:00.196) 0:00:25.956 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate file owner and group] ********************************* task path: /WORKDIR/git-weekly-ci0xjq6s0t/tests/tasks/assert_certificate_parameters.yml:51 Saturday 08 June 2024 12:58:11 +0000 (0:00:00.020) 0:00:25.976 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate permissions] ****************************************** task path: /WORKDIR/git-weekly-ci0xjq6s0t/tests/tasks/assert_certificate_parameters.yml:63 Saturday 08 June 2024 12:58:11 +0000 (0:00:00.023) 0:00:26.000 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve key file stats] ************************************************* task path: /WORKDIR/git-weekly-ci0xjq6s0t/tests/tasks/assert_certificate_parameters.yml:69 Saturday 08 June 2024 12:58:11 +0000 (0:00:00.022) 0:00:26.022 ********* ok: [sut] => { "changed": false, "stat": { "atime": 1717851487.1682792, "attr_flags": "", "attributes": [], "block_size": 4096, "blocks": 8, "charset": "us-ascii", "checksum": "9ad19f67c179afc7980067285b9c9307a13879c3", "ctime": 1717851487.218279, "dev": 51713, "device_type": 0, "executable": false, "exists": true, "gid": 0, "gr_name": "root", "inode": 4984671, "isblk": false, "ischr": false, "isdir": false, "isfifo": false, "isgid": false, "islnk": false, "isreg": true, "issock": false, "isuid": false, "mimetype": "text/plain", "mode": "0600", "mtime": 1717851487.218279, "nlink": 1, "path": "/etc/pki/tls/private/certid_mode.key", "pw_name": "root", "readable": true, "rgrp": false, "roth": false, "rusr": true, "size": 1704, "uid": 0, "version": "3861697365", "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-ci0xjq6s0t/tests/tasks/assert_certificate_parameters.yml:74 Saturday 08 June 2024 12:58:11 +0000 (0:00:00.199) 0:00:26.222 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key file owner and group] ***************************************** task path: /WORKDIR/git-weekly-ci0xjq6s0t/tests/tasks/assert_certificate_parameters.yml:80 Saturday 08 June 2024 12:58:11 +0000 (0:00:00.019) 0:00:26.241 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Parse certificate] ******************************************************* task path: /WORKDIR/git-weekly-ci0xjq6s0t/tests/tasks/assert_certificate_parameters.yml:92 Saturday 08 June 2024 12:58:11 +0000 (0:00:00.021) 0:00:26.263 ********* ok: [sut] => { "certificate": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "76:7A:54:47:23:3D:89:38:DA:E3:16:FE:23:5D:20:6E:A3:01:69:7F" }, "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": "14:4A:12:52:8F:97:7F:28:6A:53:5C:50:B7:F8:FC:83:6A:E2:40:28" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "A9:C2:CC:AF:72:41:D2:22:FD:B1:14:92:58:76:1C:51:20:62:0D:CF:4C:FE:DC:FA:AE:BD:F2:B1:0D:B0:99:53:41:6C:36:EC:58:BF:5F:69:87:A1:AE:60:CE:9F:AD:B1:F6:63:3F:54:F5:78:BD:A2:18:93:BE:93:78:48:13:E7:59:3C:52:97:22:5D:AF:1C:51:D4:A5:DE:35:BA:A6:74:C3:12:1D:DC:E5:8E:FC:DF:C7:C3:47:97:6E:AD:77:9D:E3:F4:BB:AA:09:F7:61:03:A7:2A:02:7B:F1:DE:80:E9:B3:9C:66:08:10:F5:E0:4D:D8:B2:81:3D:44:EA:2F:73:56:1E:2C:66:06:E8:69:CC:CC:A8:22:0D:12:09:8D:C1:CA:24:1D:58:F4:38:7F:88:CE:17:2A:97:C3:FE:59:F6:CE:94:88:A2:EC:B9:96:06:8A:D3:76:6A:C3:FD:81:C5:C9:5A:25:5A:46:21:A2:9E:EE:E3:AD:16:B4:55:24:15:E7:5B:3A:53:FF:5D:01:58:EF:66:E3:93:43:9C:ED:AE:94:BE:8E:E6:41:5C:59:D7:86:24:62:FB:EB:01:6A:32:F5:F5:CA:AD:3A:A3:1B:8C:A1:FC:43:26:50:6C:B0:6D:0D:00:62:D6:CE:DA:29:85:58:C2:29:24:37:F5:44:C3" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250608125756Z", "not_valid_before": "20240608125807Z" } }, "changed": false } TASK [Load certificate YAML to cert_issued variable] *************************** task path: /WORKDIR/git-weekly-ci0xjq6s0t/tests/tasks/assert_certificate_parameters.yml:98 Saturday 08 June 2024 12:58:11 +0000 (0:00:00.237) 0:00:26.500 ********* ok: [sut] => { "ansible_facts": { "cert_issued": { "extensions": { "authorityKeyIdentifier": { "critical": false, "value": "76:7A:54:47:23:3D:89:38:DA:E3:16:FE:23:5D:20:6E:A3:01:69:7F" }, "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": "14:4A:12:52:8F:97:7F:28:6A:53:5C:50:B7:F8:FC:83:6A:E2:40:28" } }, "key_size": 2048, "signature_algorithm": { "algorithm": "sha256WithRSAEncryption", "signature": "A9:C2:CC:AF:72:41:D2:22:FD:B1:14:92:58:76:1C:51:20:62:0D:CF:4C:FE:DC:FA:AE:BD:F2:B1:0D:B0:99:53:41:6C:36:EC:58:BF:5F:69:87:A1:AE:60:CE:9F:AD:B1:F6:63:3F:54:F5:78:BD:A2:18:93:BE:93:78:48:13:E7:59:3C:52:97:22:5D:AF:1C:51:D4:A5:DE:35:BA:A6:74:C3:12:1D:DC:E5:8E:FC:DF:C7:C3:47:97:6E:AD:77:9D:E3:F4:BB:AA:09:F7:61:03:A7:2A:02:7B:F1:DE:80:E9:B3:9C:66:08:10:F5:E0:4D:D8:B2:81:3D:44:EA:2F:73:56:1E:2C:66:06:E8:69:CC:CC:A8:22:0D:12:09:8D:C1:CA:24:1D:58:F4:38:7F:88:CE:17:2A:97:C3:FE:59:F6:CE:94:88:A2:EC:B9:96:06:8A:D3:76:6A:C3:FD:81:C5:C9:5A:25:5A:46:21:A2:9E:EE:E3:AD:16:B4:55:24:15:E7:5B:3A:53:FF:5D:01:58:EF:66:E3:93:43:9C:ED:AE:94:BE:8E:E6:41:5C:59:D7:86:24:62:FB:EB:01:6A:32:F5:F5:CA:AD:3A:A3:1B:8C:A1:FC:43:26:50:6C:B0:6D:0D:00:62:D6:CE:DA:29:85:58:C2:29:24:37:F5:44:C3" }, "subject": [ { "name": "commonName", "oid": "2.5.4.3", "value": "www.example.com" } ], "validity": { "not_valid_after": "20250608125756Z", "not_valid_before": "20240608125807Z" } } }, "changed": false } TASK [Verify certificate subject] ********************************************** task path: /WORKDIR/git-weekly-ci0xjq6s0t/tests/tasks/assert_certificate_parameters.yml:102 Saturday 08 June 2024 12:58:11 +0000 (0:00:00.018) 0:00:26.519 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate SAN] ************************************************** task path: /WORKDIR/git-weekly-ci0xjq6s0t/tests/tasks/assert_certificate_parameters.yml:111 Saturday 08 June 2024 12:58:11 +0000 (0:00:00.019) 0:00:26.538 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify key size] ********************************************************* task path: /WORKDIR/git-weekly-ci0xjq6s0t/tests/tasks/assert_certificate_parameters.yml:120 Saturday 08 June 2024 12:58:11 +0000 (0:00:00.019) 0:00:26.558 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Key Usage] ******************************************** task path: /WORKDIR/git-weekly-ci0xjq6s0t/tests/tasks/assert_certificate_parameters.yml:127 Saturday 08 June 2024 12:58:11 +0000 (0:00:00.019) 0:00:26.577 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Verify certificate Extended Key Usage] *********************************** task path: /WORKDIR/git-weekly-ci0xjq6s0t/tests/tasks/assert_certificate_parameters.yml:138 Saturday 08 June 2024 12:58:11 +0000 (0:00:00.022) 0:00:26.600 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Retrieve auto-renew flag] ************************************************ task path: /WORKDIR/git-weekly-ci0xjq6s0t/tests/tasks/assert_certificate_parameters.yml:151 Saturday 08 June 2024 12:58:11 +0000 (0:00:00.021) 0:00:26.621 ********* ok: [sut] => { "changed": false, "cmd": "set -euo pipefail; getcert list -f /etc/pki/tls/certs/certid_mode.crt | grep 'auto-renew' | sed 's/^\\s\\+auto-renew: //g'", "delta": "0:00:00.049178", "end": "2024-06-08 12:58:12.055419", "rc": 0, "start": "2024-06-08 12:58:12.006241" } STDOUT: yes TASK [Verify certificate auto-renew flag] ************************************** task path: /WORKDIR/git-weekly-ci0xjq6s0t/tests/tasks/assert_certificate_parameters.yml:160 Saturday 08 June 2024 12:58:12 +0000 (0:00:00.233) 0:00:26.855 ********* ok: [sut] => { "changed": false } MSG: All assertions passed META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* sut : ok=101 changed=9 unreachable=0 failed=0 skipped=24 rescued=0 ignored=0 Saturday 08 June 2024 12:58:12 +0000 (0:00:00.018) 0:00:26.874 ********* =============================================================================== linux-system-roles.certificate : Ensure certificate role dependencies are installed --- 5.04s /WORKDIR/git-weekly-ci0xjq6s0t/tests/roles/linux-system-roles.certificate/tasks/main.yml:5 linux-system-roles.certificate : Ensure provider packages are installed --- 2.86s /WORKDIR/git-weekly-ci0xjq6s0t/tests/roles/linux-system-roles.certificate/tasks/main.yml:24 linux-system-roles.certificate : Ensure certificate requests ------------ 1.55s /WORKDIR/git-weekly-ci0xjq6s0t/tests/roles/linux-system-roles.certificate/tasks/main.yml:104 linux-system-roles.certificate : Ensure certificate requests ------------ 1.24s /WORKDIR/git-weekly-ci0xjq6s0t/tests/roles/linux-system-roles.certificate/tasks/main.yml:104 Ensure python3 is installed --------------------------------------------- 0.92s /WORKDIR/git-weekly-ci0xjq6s0t/tests/tasks/assert_certificate_parameters.yml:29 linux-system-roles.certificate : Ensure provider packages are installed --- 0.90s /WORKDIR/git-weekly-ci0xjq6s0t/tests/roles/linux-system-roles.certificate/tasks/main.yml:24 linux-system-roles.certificate : Ensure certificate role dependencies are installed --- 0.89s /WORKDIR/git-weekly-ci0xjq6s0t/tests/roles/linux-system-roles.certificate/tasks/main.yml:5 Ensure python3 is installed --------------------------------------------- 0.88s /WORKDIR/git-weekly-ci0xjq6s0t/tests/tasks/assert_certificate_parameters.yml:29 Ensure python3 is installed --------------------------------------------- 0.88s /WORKDIR/git-weekly-ci0xjq6s0t/tests/tasks/assert_certificate_parameters.yml:29 Ensure python3 is installed --------------------------------------------- 0.88s /WORKDIR/git-weekly-ci0xjq6s0t/tests/tasks/assert_certificate_parameters.yml:29 linux-system-roles.certificate : Ensure provider service is running ----- 0.72s /WORKDIR/git-weekly-ci0xjq6s0t/tests/roles/linux-system-roles.certificate/tasks/main.yml:92 Gathering Facts --------------------------------------------------------- 0.69s /WORKDIR/git-weekly-ci0xjq6s0t/tests/tests_fs_attrs.yml:2 --------------------- Gathering Facts --------------------------------------------------------- 0.50s /WORKDIR/git-weekly-ci0xjq6s0t/tests/tests_fs_attrs.yml:67 -------------------- Gathering Facts --------------------------------------------------------- 0.48s /WORKDIR/git-weekly-ci0xjq6s0t/tests/tests_fs_attrs.yml:85 -------------------- Gathering Facts --------------------------------------------------------- 0.48s /WORKDIR/git-weekly-ci0xjq6s0t/tests/tests_fs_attrs.yml:14 -------------------- Gathering Facts --------------------------------------------------------- 0.48s /WORKDIR/git-weekly-ci0xjq6s0t/tests/tests_fs_attrs.yml:32 -------------------- Ensure user exists ------------------------------------------------------ 0.42s /WORKDIR/git-weekly-ci0xjq6s0t/tests/tests_fs_attrs.yml:5 --------------------- linux-system-roles.certificate : Ensure provider service is running ----- 0.33s /WORKDIR/git-weekly-ci0xjq6s0t/tests/roles/linux-system-roles.certificate/tasks/main.yml:92 Ensure group "somegroup" exists ----------------------------------------- 0.33s /WORKDIR/git-weekly-ci0xjq6s0t/tests/tests_fs_attrs.yml:9 --------------------- Parse certificate ------------------------------------------------------- 0.30s /WORKDIR/git-weekly-ci0xjq6s0t/tests/tasks/assert_certificate_parameters.yml:92 ---^---^---^---^---^--- # STDERR: ---v---v---v---v---v--- [DEPRECATION WARNING]: Distribution centos 9 on host sut should use /usr/libexec/platform-python, but is using /usr/bin/python for backward compatibility with prior Ansible releases. A future Ansible release will default to using the discovered platform python for this host. See https://docs .ansible.com/ansible/2.9/reference_appendices/interpreter_discovery.html for more information. This feature will be removed in version 2.12. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. ---^---^---^---^---^---