# STDOUT: ---v---v---v---v---v--- ansible-playbook [core 2.16.0] 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.16/lib/python3.11/site-packages/ansible ansible collection location = /WORKDIR/git-weekly-cimah1aifp/.collection executable location = /opt/ansible-2.16/bin/ansible-playbook python version = 3.11.5 (main, Sep 7 2023, 00:00:00) [GCC 11.4.1 20230605 (Red Hat 11.4.1-2)] (/opt/ansible-2.16/bin/python) jinja version = 3.1.2 libyaml = True Using /etc/ansible/ansible.cfg as config file Skipping callback 'debug', as we already have a stdout callback. Skipping callback 'default', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. PLAYBOOK: tests_trusted_execution.yml ****************************************** 1 plays in /WORKDIR/git-weekly-cimah1aifp/tests/tests_trusted_execution.yml PLAY [Basic test for fapolicyd] ************************************************ TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-weekly-cimah1aifp/tests/tests_trusted_execution.yml:2 Saturday 02 December 2023 02:11:20 +0000 (0:00:00.014) 0:00:00.014 ***** ok: [sut] TASK [Create temp test directory] ********************************************** task path: /WORKDIR/git-weekly-cimah1aifp/tests/tests_trusted_execution.yml:15 Saturday 02 December 2023 02:11:21 +0000 (0:00:00.883) 0:00:00.898 ***** changed: [sut] => { "changed": true, "gid": 0, "group": "root", "mode": "0700", "owner": "root", "path": "/var/tmp/fapolicyd_3knyrvgl", "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-cimah1aifp/tests/tests_trusted_execution.yml:22 Saturday 02 December 2023 02:11:21 +0000 (0:00:00.251) 0:00:01.149 ***** changed: [sut] => (item=/var/tmp/fapolicyd_3knyrvgl) => { "ansible_loop_var": "item", "changed": true, "gid": 0, "group": "root", "item": "/var/tmp/fapolicyd_3knyrvgl", "mode": "0755", "owner": "root", "path": "/var/tmp/fapolicyd_3knyrvgl", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 6, "state": "directory", "uid": 0 } changed: [sut] => (item=/var/tmp/fapolicyd_3knyrvgl/executable_binaries) => { "ansible_loop_var": "item", "changed": true, "gid": 0, "group": "root", "item": "/var/tmp/fapolicyd_3knyrvgl/executable_binaries", "mode": "0755", "owner": "root", "path": "/var/tmp/fapolicyd_3knyrvgl/executable_binaries", "secontext": "unconfined_u:object_r:user_tmp_t:s0", "size": 6, "state": "directory", "uid": 0 } changed: [sut] => (item=/var/tmp/fapolicyd_3knyrvgl/executable_binaries/source) => { "ansible_loop_var": "item", "changed": true, "gid": 0, "group": "root", "item": "/var/tmp/fapolicyd_3knyrvgl/executable_binaries/source", "mode": "0755", "owner": "root", "path": "/var/tmp/fapolicyd_3knyrvgl/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-cimah1aifp/tests/tests_trusted_execution.yml:32 Saturday 02 December 2023 02:11:22 +0000 (0:00:00.656) 0:00:01.806 ***** changed: [sut] => { "changed": true, "checksum": "a2bf134917a635131f5a626ba31d8423b813d798", "dest": "/var/tmp/fapolicyd_3knyrvgl/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-1701483082.3854818-2218-260298245872562/source", "state": "file", "uid": 0 } TASK [Check if system is ostree] *********************************************** task path: /WORKDIR/git-weekly-cimah1aifp/tests/tests_trusted_execution.yml:44 Saturday 02 December 2023 02:11:23 +0000 (0:00:00.706) 0:00:02.513 ***** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [Set flag to indicate system is ostree] *********************************** task path: /WORKDIR/git-weekly-cimah1aifp/tests/tests_trusted_execution.yml:49 Saturday 02 December 2023 02:11:23 +0000 (0:00:00.191) 0:00:02.704 ***** ok: [sut] => { "ansible_facts": { "__fapolicyd_is_ostree": false }, "changed": false } TASK [Install GCC and glibc-devel] ********************************************* task path: /WORKDIR/git-weekly-cimah1aifp/tests/tests_trusted_execution.yml:53 Saturday 02 December 2023 02:11:23 +0000 (0:00:00.016) 0:00:02.720 ***** ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [Compile C programs (exe1)] *********************************************** task path: /WORKDIR/git-weekly-cimah1aifp/tests/tests_trusted_execution.yml:61 Saturday 02 December 2023 02:11:26 +0000 (0:00:02.852) 0:00:05.573 ***** changed: [sut] => { "changed": true, "cmd": [ "gcc", "-o", "/var/tmp/fapolicyd_3knyrvgl/executable_binaries/exe1", "/var/tmp/fapolicyd_3knyrvgl/executable_binaries/source/main.c" ], "delta": "0:00:01.323591", "end": "2023-12-02 02:11:27.689276", "rc": 0, "start": "2023-12-02 02:11:26.365685" } TASK [Compile C programs (exe2)] *********************************************** task path: /WORKDIR/git-weekly-cimah1aifp/tests/tests_trusted_execution.yml:67 Saturday 02 December 2023 02:11:27 +0000 (0:00:01.594) 0:00:07.167 ***** changed: [sut] => { "changed": true, "cmd": [ "gcc", "-g", "-o", "/var/tmp/fapolicyd_3knyrvgl/executable_binaries/exe2", "/var/tmp/fapolicyd_3knyrvgl/executable_binaries/source/main.c" ], "delta": "0:00:00.034512", "end": "2023-12-02 02:11:27.923052", "rc": 0, "start": "2023-12-02 02:11:27.888540" } TASK [Create a new user] ******************************************************* task path: /WORKDIR/git-weekly-cimah1aifp/tests/tests_trusted_execution.yml:73 Saturday 02 December 2023 02:11:27 +0000 (0:00:00.233) 0:00:07.400 ***** 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-cimah1aifp/tests/tests_trusted_execution.yml:79 Saturday 02 December 2023 02:11:28 +0000 (0:00:00.528) 0:00:07.929 ***** TASK [fedora.linux_system_roles.fapolicyd : Set platform/version specific variables] *** task path: /WORKDIR/git-weekly-cimah1aifp/.collection/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:2 Saturday 02 December 2023 02:11:28 +0000 (0:00:00.025) 0:00:07.954 ***** included: /WORKDIR/git-weekly-cimah1aifp/.collection/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/set_vars.yml for sut TASK [fedora.linux_system_roles.fapolicyd : Ensure ansible_facts used by role] *** task path: /WORKDIR/git-weekly-cimah1aifp/.collection/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/set_vars.yml:2 Saturday 02 December 2023 02:11:28 +0000 (0:00:00.015) 0:00:07.970 ***** skipping: [sut] => { "changed": false, "false_condition": "__fapolicyd_required_facts | difference(ansible_facts.keys() | list) | length > 0", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.fapolicyd : Check if system is ostree] ********* task path: /WORKDIR/git-weekly-cimah1aifp/.collection/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/set_vars.yml:10 Saturday 02 December 2023 02:11:28 +0000 (0:00:00.020) 0:00:07.991 ***** skipping: [sut] => { "changed": false, "false_condition": "not __fapolicyd_is_ostree is defined", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.fapolicyd : Set flag to indicate system is ostree] *** task path: /WORKDIR/git-weekly-cimah1aifp/.collection/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/set_vars.yml:15 Saturday 02 December 2023 02:11:28 +0000 (0:00:00.012) 0:00:08.004 ***** skipping: [sut] => { "changed": false, "false_condition": "not __fapolicyd_is_ostree is defined", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.fapolicyd : Set platform/version specific variables] *** task path: /WORKDIR/git-weekly-cimah1aifp/.collection/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/set_vars.yml:19 Saturday 02 December 2023 02:11:28 +0000 (0:00:00.013) 0:00:08.018 ***** skipping: [sut] => (item=RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "item": "RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=CentOS.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "item": "CentOS.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=CentOS_8.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "item": "CentOS_8.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=CentOS_8.yml) => { "ansible_loop_var": "item", "changed": false, "false_condition": "__vars_file is file", "item": "CentOS_8.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => { "changed": false } MSG: All items skipped TASK [fedora.linux_system_roles.fapolicyd : System check] ********************** task path: /WORKDIR/git-weekly-cimah1aifp/.collection/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:5 Saturday 02 December 2023 02:11:28 +0000 (0:00:00.021) 0:00:08.039 ***** 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-cimah1aifp/tests/tests_trusted_execution.yml:151 Saturday 02 December 2023 02:11:28 +0000 (0:00:00.016) 0:00:08.055 ***** changed: [sut] => { "changed": true, "path": "/var/tmp/fapolicyd_3knyrvgl", "state": "absent" } TASK [Remove test user] ******************************************************** task path: /WORKDIR/git-weekly-cimah1aifp/tests/tests_trusted_execution.yml:156 Saturday 02 December 2023 02:11:28 +0000 (0:00:00.193) 0:00:08.249 ***** changed: [sut] => { "changed": true, "force": false, "name": "fapolicyd_test1_user", "remove": false, "state": "absent" } TASK [Shutdown fapolicyd] ****************************************************** task path: /WORKDIR/git-weekly-cimah1aifp/tests/tests_trusted_execution.yml:161 Saturday 02 December 2023 02:11:29 +0000 (0:00:00.297) 0:00:08.547 ***** 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:29 +0000 (0:00:00.502) 0:00:09.049 ***** =============================================================================== Install GCC and glibc-devel --------------------------------------------- 2.85s /WORKDIR/git-weekly-cimah1aifp/tests/tests_trusted_execution.yml:53 ----------- Compile C programs (exe1) ----------------------------------------------- 1.59s /WORKDIR/git-weekly-cimah1aifp/tests/tests_trusted_execution.yml:61 ----------- Gathering Facts --------------------------------------------------------- 0.88s /WORKDIR/git-weekly-cimah1aifp/tests/tests_trusted_execution.yml:2 ------------ Create C source code (binary1) ------------------------------------------ 0.71s /WORKDIR/git-weekly-cimah1aifp/tests/tests_trusted_execution.yml:32 ----------- Create directories for executable binaries and source files ------------- 0.66s /WORKDIR/git-weekly-cimah1aifp/tests/tests_trusted_execution.yml:22 ----------- Create a new user ------------------------------------------------------- 0.53s /WORKDIR/git-weekly-cimah1aifp/tests/tests_trusted_execution.yml:73 ----------- Shutdown fapolicyd ------------------------------------------------------ 0.50s /WORKDIR/git-weekly-cimah1aifp/tests/tests_trusted_execution.yml:161 ---------- Remove test user -------------------------------------------------------- 0.30s /WORKDIR/git-weekly-cimah1aifp/tests/tests_trusted_execution.yml:156 ---------- Create temp test directory ---------------------------------------------- 0.25s /WORKDIR/git-weekly-cimah1aifp/tests/tests_trusted_execution.yml:15 ----------- Compile C programs (exe2) ----------------------------------------------- 0.23s /WORKDIR/git-weekly-cimah1aifp/tests/tests_trusted_execution.yml:67 ----------- Clean up temp directory ------------------------------------------------- 0.19s /WORKDIR/git-weekly-cimah1aifp/tests/tests_trusted_execution.yml:151 ---------- Check if system is ostree ----------------------------------------------- 0.19s /WORKDIR/git-weekly-cimah1aifp/tests/tests_trusted_execution.yml:44 ----------- Run the role ------------------------------------------------------------ 0.03s /WORKDIR/git-weekly-cimah1aifp/tests/tests_trusted_execution.yml:79 ----------- fedora.linux_system_roles.fapolicyd : Set platform/version specific variables --- 0.02s /WORKDIR/git-weekly-cimah1aifp/.collection/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/set_vars.yml:19 fedora.linux_system_roles.fapolicyd : Ensure ansible_facts used by role --- 0.02s /WORKDIR/git-weekly-cimah1aifp/.collection/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/set_vars.yml:2 Set flag to indicate system is ostree ----------------------------------- 0.02s /WORKDIR/git-weekly-cimah1aifp/tests/tests_trusted_execution.yml:49 ----------- fedora.linux_system_roles.fapolicyd : System check ---------------------- 0.02s /WORKDIR/git-weekly-cimah1aifp/.collection/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:5 fedora.linux_system_roles.fapolicyd : Set platform/version specific variables --- 0.02s /WORKDIR/git-weekly-cimah1aifp/.collection/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/main.yml:2 fedora.linux_system_roles.fapolicyd : Set flag to indicate system is ostree --- 0.01s /WORKDIR/git-weekly-cimah1aifp/.collection/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/set_vars.yml:15 fedora.linux_system_roles.fapolicyd : Check if system is ostree --------- 0.01s /WORKDIR/git-weekly-cimah1aifp/.collection/ansible_collections/fedora/linux_system_roles/roles/fapolicyd/tasks/set_vars.yml:10 ---^---^---^---^---^--- # STDERR: ---v---v---v---v---v--- [DEPRECATION WARNING]: ANSIBLE_COLLECTIONS_PATHS option, does not fit var naming standard, use the singular form ANSIBLE_COLLECTIONS_PATH instead. This feature will be removed from ansible-core in version 2.19. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. ---^---^---^---^---^---