# 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_trusted_execution.yml ****************************************** 1 plays in /WORKDIR/git-weekly-ci1j5pdebc/tests/tests_trusted_execution.yml PLAY [Basic test for fapolicyd] ************************************************ TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-weekly-ci1j5pdebc/tests/tests_trusted_execution.yml:2 Saturday 02 December 2023 02:10:58 +0000 (0:00:00.019) 0:00:00.019 ***** ok: [sut] META: ran handlers TASK [Create temp test directory] ********************************************** task path: /WORKDIR/git-weekly-ci1j5pdebc/tests/tests_trusted_execution.yml:15 Saturday 02 December 2023 02:10:59 +0000 (0:00:00.706) 0:00:00.725 ***** changed: [sut] => { "changed": true, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/var/tmp/fapolicyd_7oykrzxw", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 6, "state": "directory", "uid": 0 } TASK [Create directories for executable binaries and source files] ************* task path: /WORKDIR/git-weekly-ci1j5pdebc/tests/tests_trusted_execution.yml:22 Saturday 02 December 2023 02:10:59 +0000 (0:00:00.256) 0:00:00.982 ***** changed: [sut] => (item=/var/tmp/fapolicyd_7oykrzxw) => { "ansible_loop_var": "item", "changed": true, "gid": 0, "group": "root", "item": "/var/tmp/fapolicyd_7oykrzxw", "mode": "0755", "owner": "root", "path": "/var/tmp/fapolicyd_7oykrzxw", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 6, "state": "directory", "uid": 0 } changed: [sut] => (item=/var/tmp/fapolicyd_7oykrzxw/executable_binaries) => { "ansible_loop_var": "item", "changed": true, "gid": 0, "group": "root", "item": "/var/tmp/fapolicyd_7oykrzxw/executable_binaries", "mode": "0755", "owner": "root", "path": "/var/tmp/fapolicyd_7oykrzxw/executable_binaries", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 6, "state": "directory", "uid": 0 } changed: [sut] => (item=/var/tmp/fapolicyd_7oykrzxw/executable_binaries/source) => { "ansible_loop_var": "item", "changed": true, "gid": 0, "group": "root", "item": "/var/tmp/fapolicyd_7oykrzxw/executable_binaries/source", "mode": "0755", "owner": "root", "path": "/var/tmp/fapolicyd_7oykrzxw/executable_binaries/source", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 6, "state": "directory", "uid": 0 } TASK [Create C source code (binary1)] ****************************************** task path: /WORKDIR/git-weekly-ci1j5pdebc/tests/tests_trusted_execution.yml:32 Saturday 02 December 2023 02:11:00 +0000 (0:00:00.663) 0:00:01.646 ***** changed: [sut] => { "changed": true, "checksum": "a2bf134917a635131f5a626ba31d8423b813d798", "dest": "/var/tmp/fapolicyd_7oykrzxw/executable_binaries/source/main.c", "gid": 0, "group": "root", "md5sum": "3ab82c9dc5812e0e412e88921a6c9a73", "mode": "0644", "owner": "root", "secontext": "unconfined_u:object_r:admin_home_t:s0", "size": 33, "src": "/root/.ansible/tmp/ansible-tmp-1701483060.167802-2332-11630749567828/source", "state": "file", "uid": 0 } TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-weekly-ci1j5pdebc/tests/tests_trusted_execution.yml:44 Saturday 02 December 2023 02:11:00 +0000 (0:00:00.672) 0:00:02.318 ***** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Set flag to indicate system is ostree] *********************************** task path: /WORKDIR/git-weekly-ci1j5pdebc/tests/tests_trusted_execution.yml:49 Saturday 02 December 2023 02:11:00 +0000 (0:00:00.191) 0:00:02.509 ***** ok: [sut] => { "ansible_facts": { "__fapolicyd_is_ostree": false }, "changed": false } TASK [Install GCC and glibc-devel] ********************************************* task path: /WORKDIR/git-weekly-ci1j5pdebc/tests/tests_trusted_execution.yml:53 Saturday 02 December 2023 02:11:01 +0000 (0:00:00.024) 0:00:02.533 ***** ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Compile C programs (exe1)] *********************************************** task path: /WORKDIR/git-weekly-ci1j5pdebc/tests/tests_trusted_execution.yml:62 Saturday 02 December 2023 02:11:04 +0000 (0:00:03.057) 0:00:05.590 ***** changed: [sut] => { "changed": true, "cmd": [ "gcc", "-o", "/var/tmp/fapolicyd_7oykrzxw/executable_binaries/exe1", "/var/tmp/fapolicyd_7oykrzxw/executable_binaries/source/main.c" ], "delta": "0:00:03.050699", "end": "2023-12-02 02:11:07.364172", "rc": 0, "start": "2023-12-02 02:11:04.313473" } TASK [Compile C programs (exe2)] *********************************************** task path: /WORKDIR/git-weekly-ci1j5pdebc/tests/tests_trusted_execution.yml:68 Saturday 02 December 2023 02:11:07 +0000 (0:00:03.317) 0:00:08.908 ***** changed: [sut] => { "changed": true, "cmd": [ "gcc", "-g", "-o", "/var/tmp/fapolicyd_7oykrzxw/executable_binaries/exe2", "/var/tmp/fapolicyd_7oykrzxw/executable_binaries/source/main.c" ], "delta": "0:00:00.034370", "end": "2023-12-02 02:11:07.595149", "rc": 0, "start": "2023-12-02 02:11:07.560779" } TASK [Create a new user] ******************************************************* task path: /WORKDIR/git-weekly-ci1j5pdebc/tests/tests_trusted_execution.yml:74 Saturday 02 December 2023 02:11:07 +0000 (0:00:00.232) 0:00:09.140 ***** changed: [sut] => { "changed": true, "comment": "", "create_home": true, "group": 1000, "home": "/home/fapolicyd_test1_user", "name": "fapolicyd_test1_user", "shell": "/bin/bash", "state": "present", "system": false, "uid": 1000 } TASK [Run the role] ************************************************************ task path: /WORKDIR/git-weekly-ci1j5pdebc/tests/tests_trusted_execution.yml:80 Saturday 02 December 2023 02:11:08 +0000 (0:00:00.568) 0:00:09.708 ***** TASK [linux-system-roles.fapolicyd : Set platform/version specific variables] *** task path: /WORKDIR/git-weekly-ci1j5pdebc/tests/roles/linux-system-roles.fapolicyd/tasks/main.yml:2 Saturday 02 December 2023 02:11:08 +0000 (0:00:00.022) 0:00:09.731 ***** included: /WORKDIR/git-weekly-ci1j5pdebc/tests/roles/linux-system-roles.fapolicyd/tasks/set_vars.yml for sut TASK [linux-system-roles.fapolicyd : Ensure ansible_facts used by role] ******** task path: /WORKDIR/git-weekly-ci1j5pdebc/tests/roles/linux-system-roles.fapolicyd/tasks/set_vars.yml:2 Saturday 02 December 2023 02:11:08 +0000 (0:00:00.016) 0:00:09.747 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.fapolicyd : Check if system is ostree] **************** task path: /WORKDIR/git-weekly-ci1j5pdebc/tests/roles/linux-system-roles.fapolicyd/tasks/set_vars.yml:11 Saturday 02 December 2023 02:11:08 +0000 (0:00:00.030) 0:00:09.778 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.fapolicyd : Set flag to indicate system is ostree] **** task path: /WORKDIR/git-weekly-ci1j5pdebc/tests/roles/linux-system-roles.fapolicyd/tasks/set_vars.yml:16 Saturday 02 December 2023 02:11:08 +0000 (0:00:00.022) 0:00:09.800 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.fapolicyd : Set platform/version specific variables] *** task path: /WORKDIR/git-weekly-ci1j5pdebc/tests/roles/linux-system-roles.fapolicyd/tasks/set_vars.yml:20 Saturday 02 December 2023 02:11:08 +0000 (0:00:00.021) 0:00:09.822 ***** 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" } skipping: [sut] => (item=CentOS_8.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS_8.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=CentOS_8.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS_8.yml", "skip_reason": "Conditional result was False" } TASK [linux-system-roles.fapolicyd : System check] ***************************** task path: /WORKDIR/git-weekly-ci1j5pdebc/tests/roles/linux-system-roles.fapolicyd/tasks/main.yml:5 Saturday 02 December 2023 02:11:08 +0000 (0:00:00.037) 0:00:09.859 ***** fatal: [sut]: FAILED! => { "changed": false } MSG: ['Only Enterprise Linux >= 8.1 and Fedora are supported', 'System - RedHat', 'Version - 8'] TASK [Clean up temp directory] ************************************************* task path: /WORKDIR/git-weekly-ci1j5pdebc/tests/tests_trusted_execution.yml:152 Saturday 02 December 2023 02:11:08 +0000 (0:00:00.024) 0:00:09.884 ***** changed: [sut] => { "changed": true, "path": "/var/tmp/fapolicyd_7oykrzxw", "state": "absent" } TASK [Remove test user] ******************************************************** task path: /WORKDIR/git-weekly-ci1j5pdebc/tests/tests_trusted_execution.yml:157 Saturday 02 December 2023 02:11:08 +0000 (0:00:00.199) 0:00:10.083 ***** changed: [sut] => { "changed": true, "force": false, "name": "fapolicyd_test1_user", "remove": false, "state": "absent" } TASK [Shutdown fapolicyd] ****************************************************** task path: /WORKDIR/git-weekly-ci1j5pdebc/tests/tests_trusted_execution.yml:162 Saturday 02 December 2023 02:11:08 +0000 (0:00:00.287) 0:00:10.370 ***** fatal: [sut]: FAILED! => { "changed": false } MSG: Could not find the requested service fapolicyd: host to retry, use: --limit @/tmp/tests_trusted_execution.retry PLAY RECAP ********************************************************************* sut : ok=13 changed=8 unreachable=0 failed=2 skipped=4 rescued=0 ignored=0 Saturday 02 December 2023 02:11:09 +0000 (0:00:00.462) 0:00:10.833 ***** =============================================================================== Compile C programs (exe1) ----------------------------------------------- 3.32s /WORKDIR/git-weekly-ci1j5pdebc/tests/tests_trusted_execution.yml:62 ----------- Install GCC and glibc-devel --------------------------------------------- 3.06s /WORKDIR/git-weekly-ci1j5pdebc/tests/tests_trusted_execution.yml:53 ----------- Gathering Facts --------------------------------------------------------- 0.71s /WORKDIR/git-weekly-ci1j5pdebc/tests/tests_trusted_execution.yml:2 ------------ Create C source code (binary1) ------------------------------------------ 0.67s /WORKDIR/git-weekly-ci1j5pdebc/tests/tests_trusted_execution.yml:32 ----------- Create directories for executable binaries and source files ------------- 0.66s /WORKDIR/git-weekly-ci1j5pdebc/tests/tests_trusted_execution.yml:22 ----------- Create a new user ------------------------------------------------------- 0.57s /WORKDIR/git-weekly-ci1j5pdebc/tests/tests_trusted_execution.yml:74 ----------- Shutdown fapolicyd ------------------------------------------------------ 0.46s /WORKDIR/git-weekly-ci1j5pdebc/tests/tests_trusted_execution.yml:162 ---------- Remove test user -------------------------------------------------------- 0.29s /WORKDIR/git-weekly-ci1j5pdebc/tests/tests_trusted_execution.yml:157 ---------- Create temp test directory ---------------------------------------------- 0.26s /WORKDIR/git-weekly-ci1j5pdebc/tests/tests_trusted_execution.yml:15 ----------- Compile C programs (exe2) ----------------------------------------------- 0.23s /WORKDIR/git-weekly-ci1j5pdebc/tests/tests_trusted_execution.yml:68 ----------- Clean up temp directory ------------------------------------------------- 0.20s /WORKDIR/git-weekly-ci1j5pdebc/tests/tests_trusted_execution.yml:152 ---------- Check if system is ostree ----------------------------------------------- 0.19s /WORKDIR/git-weekly-ci1j5pdebc/tests/tests_trusted_execution.yml:44 ----------- linux-system-roles.fapolicyd : Set platform/version specific variables --- 0.04s /WORKDIR/git-weekly-ci1j5pdebc/tests/roles/linux-system-roles.fapolicyd/tasks/set_vars.yml:20 linux-system-roles.fapolicyd : Ensure ansible_facts used by role -------- 0.03s /WORKDIR/git-weekly-ci1j5pdebc/tests/roles/linux-system-roles.fapolicyd/tasks/set_vars.yml:2 linux-system-roles.fapolicyd : System check ----------------------------- 0.02s /WORKDIR/git-weekly-ci1j5pdebc/tests/roles/linux-system-roles.fapolicyd/tasks/main.yml:5 Set flag to indicate system is ostree ----------------------------------- 0.02s /WORKDIR/git-weekly-ci1j5pdebc/tests/tests_trusted_execution.yml:49 ----------- Run the role ------------------------------------------------------------ 0.02s /WORKDIR/git-weekly-ci1j5pdebc/tests/tests_trusted_execution.yml:80 ----------- linux-system-roles.fapolicyd : Check if system is ostree ---------------- 0.02s /WORKDIR/git-weekly-ci1j5pdebc/tests/roles/linux-system-roles.fapolicyd/tasks/set_vars.yml:11 linux-system-roles.fapolicyd : Set flag to indicate system is ostree ---- 0.02s /WORKDIR/git-weekly-ci1j5pdebc/tests/roles/linux-system-roles.fapolicyd/tasks/set_vars.yml:16 linux-system-roles.fapolicyd : Set platform/version specific variables --- 0.02s /WORKDIR/git-weekly-ci1j5pdebc/tests/roles/linux-system-roles.fapolicyd/tasks/main.yml:2 ---^---^---^---^---^--- # STDERR: ---v---v---v---v---v--- ---^---^---^---^---^---