Formatting '/cache/centos-9.qcow2.snap', fmt=qcow2 cluster_size=65536 extended_l2=off compression_type=zlib size=10737418240 backing_file=/cache/centos-9.qcow2 backing_fmt=qcow2 lazy_refcounts=off refcount_bits=16 ansible-playbook [core 2.12.6] config file = /etc/ansible/ansible.cfg configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.9/site-packages/ansible ansible collection location = /tmp/tmp_xvdndkd executable location = /usr/bin/ansible-playbook python version = 3.9.13 (main, May 18 2022, 00:00:00) [GCC 11.3.1 20220421 (Red Hat 11.3.1-2)] jinja version = 2.11.3 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: centos-9_setup.yml *************************************************** 2 plays in /cache/centos-9_setup.yml PLAY [Enable HA repos] ********************************************************* META: ran handlers TASK [Enable HA repos] ********************************************************* task path: /cache/centos-9_setup.yml:5 Tuesday 26 July 2022 22:50:16 +0000 (0:00:00.018) 0:00:00.018 ********** changed: [/cache/centos-9.qcow2.snap] => { "ansible_facts": { "discovered_interpreter_python": "/usr/bin/python3" }, "changed": true, "cmd": [ "dnf", "config-manager", "--set-enabled", "highavailability" ], "delta": "0:00:00.561955", "end": "2022-07-26 18:50:17.933696", "rc": 0, "start": "2022-07-26 18:50:17.371741" } META: ran handlers META: ran handlers PLAY [Set up host for test playbooks] ****************************************** TASK [Gathering Facts] ********************************************************* task path: /cache/centos-9_setup.yml:7 Tuesday 26 July 2022 22:50:18 +0000 (0:00:01.220) 0:00:01.239 ********** ok: [/cache/centos-9.qcow2.snap] META: ran handlers TASK [Create EPEL 9 repo] ****************************************************** task path: /cache/centos-9_setup.yml:11 Tuesday 26 July 2022 22:50:19 +0000 (0:00:01.124) 0:00:02.363 ********** skipping: [/cache/centos-9.qcow2.snap] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [Create yum cache] ******************************************************** task path: /cache/centos-9_setup.yml:21 Tuesday 26 July 2022 22:50:19 +0000 (0:00:00.021) 0:00:02.385 ********** skipping: [/cache/centos-9.qcow2.snap] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [Create dnf cache] ******************************************************** task path: /cache/centos-9_setup.yml:27 Tuesday 26 July 2022 22:50:19 +0000 (0:00:00.018) 0:00:02.404 ********** changed: [/cache/centos-9.qcow2.snap] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": true } TASK [Disable EPEL 7] ********************************************************** task path: /cache/centos-9_setup.yml:33 Tuesday 26 July 2022 22:50:27 +0000 (0:00:08.219) 0:00:10.623 ********** skipping: [/cache/centos-9.qcow2.snap] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [Disable EPEL 8] ********************************************************** task path: /cache/centos-9_setup.yml:41 Tuesday 26 July 2022 22:50:27 +0000 (0:00:00.021) 0:00:10.645 ********** skipping: [/cache/centos-9.qcow2.snap] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/centos-9.qcow2.snap : ok=3 changed=2 unreachable=0 failed=0 skipped=4 rescued=0 ignored=0 Tuesday 26 July 2022 22:50:27 +0000 (0:00:00.027) 0:00:10.672 ********** =============================================================================== Create dnf cache -------------------------------------------------------- 8.22s /cache/centos-9_setup.yml:27 -------------------------------------------------- Enable HA repos --------------------------------------------------------- 1.22s /cache/centos-9_setup.yml:5 --------------------------------------------------- Gathering Facts --------------------------------------------------------- 1.12s /cache/centos-9_setup.yml:7 --------------------------------------------------- Disable EPEL 8 ---------------------------------------------------------- 0.03s /cache/centos-9_setup.yml:41 -------------------------------------------------- Create EPEL 9 repo ------------------------------------------------------ 0.02s /cache/centos-9_setup.yml:11 -------------------------------------------------- Disable EPEL 7 ---------------------------------------------------------- 0.02s /cache/centos-9_setup.yml:33 -------------------------------------------------- Create yum cache -------------------------------------------------------- 0.02s /cache/centos-9_setup.yml:21 -------------------------------------------------- PLAYBOOK: setup-snapshot.yml *************************************************** 1 plays in /tmp/tmpbwzvnpbn/tests/setup-snapshot.yml PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpbwzvnpbn/tests/setup-snapshot.yml:4 Tuesday 26 July 2022 22:50:27 +0000 (0:00:00.020) 0:00:10.692 ********** ok: [/cache/centos-9.qcow2.snap] META: ran handlers TASK [Set platform/version specific variables] ********************************* task path: /tmp/tmpbwzvnpbn/tests/setup-snapshot.yml:7 Tuesday 26 July 2022 22:50:28 +0000 (0:00:00.803) 0:00:11.496 ********** TASK [linux-system-roles.logging : Set files output if files output is not defined and logging_inputs is not empty] *** task path: /tmp/tmpbwzvnpbn/tests/roles/linux-system-roles.logging/tasks/main.yml:5 Tuesday 26 July 2022 22:50:28 +0000 (0:00:00.040) 0:00:11.537 ********** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.logging : Set rsyslog_outputs] ************************ task path: /tmp/tmpbwzvnpbn/tests/roles/linux-system-roles.logging/tasks/main.yml:17 Tuesday 26 July 2022 22:50:28 +0000 (0:00:00.039) 0:00:11.577 ********** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.logging : Set rsyslog_inputs] ************************* task path: /tmp/tmpbwzvnpbn/tests/roles/linux-system-roles.logging/tasks/main.yml:24 Tuesday 26 July 2022 22:50:28 +0000 (0:00:00.036) 0:00:11.613 ********** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.logging : Set custom_config_files fact] *************** task path: /tmp/tmpbwzvnpbn/tests/roles/linux-system-roles.logging/tasks/main.yml:30 Tuesday 26 July 2022 22:50:28 +0000 (0:00:00.036) 0:00:11.650 ********** TASK [linux-system-roles.logging : Check logging_inputs item in logging_flows.inputs] *** task path: /tmp/tmpbwzvnpbn/tests/roles/linux-system-roles.logging/tasks/main.yml:39 Tuesday 26 July 2022 22:50:28 +0000 (0:00:00.018) 0:00:11.668 ********** TASK [linux-system-roles.logging : Re-read facts after adding custom fact] ***** task path: /tmp/tmpbwzvnpbn/tests/roles/linux-system-roles.logging/tasks/main.yml:53 Tuesday 26 July 2022 22:50:28 +0000 (0:00:00.016) 0:00:11.684 ********** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.logging : Create rsyslog debug dir] ******************* task path: /tmp/tmpbwzvnpbn/tests/roles/linux-system-roles.logging/tasks/main.yml:57 Tuesday 26 July 2022 22:50:28 +0000 (0:00:00.035) 0:00:11.720 ********** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.logging : Delete debug file] ************************** task path: /tmp/tmpbwzvnpbn/tests/roles/linux-system-roles.logging/tasks/main.yml:63 Tuesday 26 July 2022 22:50:28 +0000 (0:00:00.037) 0:00:11.758 ********** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.logging : Create rsyslog debug file] ****************** task path: /tmp/tmpbwzvnpbn/tests/roles/linux-system-roles.logging/tasks/main.yml:69 Tuesday 26 July 2022 22:50:28 +0000 (0:00:00.036) 0:00:11.794 ********** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.logging : Use a debug var to avoid an empty dict in with_dict] *** task path: /tmp/tmpbwzvnpbn/tests/roles/linux-system-roles.logging/tasks/main.yml:75 Tuesday 26 July 2022 22:50:28 +0000 (0:00:00.035) 0:00:11.829 ********** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.logging : Populate rsyslog debug file] **************** task path: /tmp/tmpbwzvnpbn/tests/roles/linux-system-roles.logging/tasks/main.yml:79 Tuesday 26 July 2022 22:50:28 +0000 (0:00:00.036) 0:00:11.866 ********** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Include Rsyslog role] **************************************************** task path: /tmp/tmpbwzvnpbn/tests/roles/linux-system-roles.logging/tasks/main.yml:98 Tuesday 26 July 2022 22:50:28 +0000 (0:00:00.036) 0:00:11.902 ********** TASK [/tmp/tmpbwzvnpbn/tests/roles/linux-system-roles.logging/roles/rsyslog : Set platform/version specific variables] *** task path: /tmp/tmpbwzvnpbn/roles/rsyslog/tasks/main.yml:4 Tuesday 26 July 2022 22:50:28 +0000 (0:00:00.036) 0:00:11.939 ********** included: /tmp/tmpbwzvnpbn/roles/rsyslog/tasks/set_vars.yml for /cache/centos-9.qcow2.snap TASK [/tmp/tmpbwzvnpbn/tests/roles/linux-system-roles.logging/roles/rsyslog : Ensure ansible_facts used by role] *** task path: /tmp/tmpbwzvnpbn/roles/rsyslog/tasks/set_vars.yml:4 Tuesday 26 July 2022 22:50:28 +0000 (0:00:00.027) 0:00:11.967 ********** ok: [/cache/centos-9.qcow2.snap] TASK [/tmp/tmpbwzvnpbn/tests/roles/linux-system-roles.logging/roles/rsyslog : Set platform/version specific variables] *** task path: /tmp/tmpbwzvnpbn/roles/rsyslog/tasks/set_vars.yml:10 Tuesday 26 July 2022 22:50:29 +0000 (0:00:00.558) 0:00:12.526 ********** ok: [/cache/centos-9.qcow2.snap] => (item=/tmp/tmpbwzvnpbn/roles/rsyslog/vars/default.yml) => { "ansible_facts": { "__rsyslog_input_basics": "input_basics.j2" }, "ansible_included_var_files": [ "/tmp/tmpbwzvnpbn/roles/rsyslog/vars/default.yml" ], "ansible_loop_var": "item", "changed": false, "item": "/tmp/tmpbwzvnpbn/roles/rsyslog/vars/default.yml" } skipping: [/cache/centos-9.qcow2.snap] => (item=/tmp/tmpbwzvnpbn/roles/rsyslog/vars/RedHat.yml) => { "ansible_loop_var": "item", "changed": false, "item": "/tmp/tmpbwzvnpbn/roles/rsyslog/vars/RedHat.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/centos-9.qcow2.snap] => (item=/tmp/tmpbwzvnpbn/roles/rsyslog/vars/CentOS.yml) => { "ansible_loop_var": "item", "changed": false, "item": "/tmp/tmpbwzvnpbn/roles/rsyslog/vars/CentOS.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/centos-9.qcow2.snap] => (item=/tmp/tmpbwzvnpbn/roles/rsyslog/vars/CentOS_9.yml) => { "ansible_loop_var": "item", "changed": false, "item": "/tmp/tmpbwzvnpbn/roles/rsyslog/vars/CentOS_9.yml", "skip_reason": "Conditional result was False" } skipping: [/cache/centos-9.qcow2.snap] => (item=/tmp/tmpbwzvnpbn/roles/rsyslog/vars/CentOS_9.yml) => { "ansible_loop_var": "item", "changed": false, "item": "/tmp/tmpbwzvnpbn/roles/rsyslog/vars/CentOS_9.yml", "skip_reason": "Conditional result was False" } TASK [/tmp/tmpbwzvnpbn/tests/roles/linux-system-roles.logging/roles/rsyslog : Include /tmp/tmpbwzvnpbn/roles/rsyslog/vars/main.yml] *** task path: /tmp/tmpbwzvnpbn/roles/rsyslog/tasks/set_vars.yml:22 Tuesday 26 July 2022 22:50:29 +0000 (0:00:00.055) 0:00:12.582 ********** ok: [/cache/centos-9.qcow2.snap] => (item=/tmp/tmpbwzvnpbn/roles/rsyslog/vars/inputs/basics/main.yml) => { "ansible_facts": { "__rsyslog_basics_packages": [] }, "ansible_included_var_files": [ "/tmp/tmpbwzvnpbn/roles/rsyslog/vars/inputs/basics/main.yml" ], "ansible_loop_var": "item", "changed": false, "item": "/tmp/tmpbwzvnpbn/roles/rsyslog/vars/inputs/basics/main.yml" } ok: [/cache/centos-9.qcow2.snap] => (item=/tmp/tmpbwzvnpbn/roles/rsyslog/vars/inputs/files/main.yml) => { "ansible_facts": { "__rsyslog_conf_imfile_modules": [ { "name": "input-files-modules", "sections": [ { "comment": "Reads log messages from file", "options": "module(load=\"imfile\" mode=\"inotify\")" } ], "type": "modules" } ], "__rsyslog_files_input_packages": [], "__rsyslog_files_input_rules": [ "{{ __rsyslog_conf_imfile_modules }}" ] }, "ansible_included_var_files": [ "/tmp/tmpbwzvnpbn/roles/rsyslog/vars/inputs/files/main.yml" ], "ansible_loop_var": "item", "changed": false, "item": "/tmp/tmpbwzvnpbn/roles/rsyslog/vars/inputs/files/main.yml" } ok: [/cache/centos-9.qcow2.snap] => (item=/tmp/tmpbwzvnpbn/roles/rsyslog/vars/inputs/ovirt/main.yml) => { "ansible_facts": { "__rsyslog_ovirt_packages": [ "rsyslog-mmnormalize", "rsyslog-mmjsonparse", "libfastjson", "liblognorm", "libestr" ], "__rsyslog_ovirt_rules": [ "{{ rsyslog_conf_ovirt_local_modules }}", "{{ rsyslog_conf_ovirt_main_modules }}", "{{ rsyslog_rulebase_ovirt_engine }}", "{{ rsyslog_rulebase_ovirt_vdsm }}", "{{ rsyslog_rulebase_ovirt_parse_json }}" ], "rsyslog_conf_ovirt_local_modules": [ { "name": "input-ovirt-local_modules", "sections": [ { "options": "{% if rsyslog_inputs | selectattr('name', 'defined') |\n selectattr('type', 'defined') |\n selectattr('type', 'match', '^basics$') | list | length == 0 %}\n# Log messages sent to local UNIX socket with use=off'\nmodule(load=\"imuxsock\" SysSock.Use=\"off\")\n{% endif %}" } ], "type": "modules" } ], "rsyslog_conf_ovirt_main_modules": [ { "name": "input-ovirt-main-modules", "sections": [ { "options": "# Read from file with inotify enabled\nmodule(load=\"imfile\" mode=\"inotify\")" }, { "options": "# Read from tcp collectd metrics\nmodule(load=\"imtcp\")" }, { "options": "# Normalize logs\nmodule(load=\"mmnormalize\")" }, { "options": "# Parse logs to JSON\nmodule(load=\"mmjsonparse\")" }, { "options": "template(name=\"cnvt_to_viaq_timestamp\" type=\"list\") {\n property(name=\"TIMESTAMP\" dateFormat=\"rfc3339\")\n}" } ], "type": "modules" } ], "rsyslog_rulebase_ovirt_engine": [ { "filename": "ovirt_engine.rulebase", "name": "ovirt_engine", "nocomment": true, "sections": [ { "options": "version=2\nrule=:%date:date-iso% %time:time-24hr%,%msec:number%%tz:word% %level:word%%-:whitespace%%class:string{\"quoting.char.begin\":\"[\",\"quoting.char.end\":\"]\"}% %thread:string{\"quoting.char.begin\":\"(\",\"quoting.char.end\":\")\"}% %correlationid:string{\"quoting.char.begin\":\"[\",\"quoting.char.end\":\"]\"}% %message:rest%" } ] } ], "rsyslog_rulebase_ovirt_parse_json": [ { "filename": "parse_json.rulebase", "name": "parse_json", "nocomment": true, "sections": [ { "options": "version=2\nrule=:%.:json%" } ] } ], "rsyslog_rulebase_ovirt_vdsm": [ { "filename": "ovirt_vdsm.rulebase", "name": "ovirt_vdsm", "nocomment": true, "sections": [ { "options": "version=2\nrule=:%date:date-iso% %time:time-24hr%,%msec:number%%tz:word% %level:word%%-:whitespace%%class:string{\"quoting.char.begin\":\"(\",\"quoting.char.end\":\")\"}% %thread:string{\"quoting.char.begin\":\"[\",\"quoting.char.end\":\"]\"}% %message:rest%" } ] } ] }, "ansible_included_var_files": [ "/tmp/tmpbwzvnpbn/roles/rsyslog/vars/inputs/ovirt/main.yml" ], "ansible_loop_var": "item", "changed": false, "item": "/tmp/tmpbwzvnpbn/roles/rsyslog/vars/inputs/ovirt/main.yml" } ok: [/cache/centos-9.qcow2.snap] => (item=/tmp/tmpbwzvnpbn/roles/rsyslog/vars/inputs/relp/main.yml) => { "ansible_facts": { "__rsyslog_conf_input_relp_modules": [ { "name": "input-relp-module", "sections": [ { "options": "# Send logs over relp\nmodule(load=\"imrelp\")" } ], "type": "modules" } ], "__rsyslog_input_relp_packages": [ "rsyslog-relp", "librelp" ], "__rsyslog_input_relp_rules": [ "{{ __rsyslog_conf_input_relp_modules }}" ] }, "ansible_included_var_files": [ "/tmp/tmpbwzvnpbn/roles/rsyslog/vars/inputs/relp/main.yml" ], "ansible_loop_var": "item", "changed": false, "item": "/tmp/tmpbwzvnpbn/roles/rsyslog/vars/inputs/relp/main.yml" } ok: [/cache/centos-9.qcow2.snap] => (item=/tmp/tmpbwzvnpbn/roles/rsyslog/vars/inputs/remote/main.yml) => { "ansible_facts": { "__rsyslog_remote_packages": [] }, "ansible_included_var_files": [ "/tmp/tmpbwzvnpbn/roles/rsyslog/vars/inputs/remote/main.yml" ], "ansible_loop_var": "item", "changed": false, "item": "/tmp/tmpbwzvnpbn/roles/rsyslog/vars/inputs/remote/main.yml" } ok: [/cache/centos-9.qcow2.snap] => (item=/tmp/tmpbwzvnpbn/roles/rsyslog/vars/main.yml) => { "ansible_facts": { "__rsyslog_base_packages": [ "rsyslog" ], "__rsyslog_config_dir": "/etc/rsyslog.d", "__rsyslog_default_pki_authmode": "x509/name", "__rsyslog_default_pki_ca_cert_name": "ca.crt", "__rsyslog_default_pki_cert_dir": "certs/", "__rsyslog_default_pki_cert_name": "cert.pem", "__rsyslog_default_pki_key_dir": "private/", "__rsyslog_default_pki_key_name": "key.pem", "__rsyslog_default_pki_path": "/etc/pki/tls/", "__rsyslog_default_port": "514", "__rsyslog_default_tls_port": "6514", "__rsyslog_tls_library": "gnutls", "__rsyslog_tls_netstream_driver": "gtls", "__rsyslog_tls_packages": [ "rsyslog-gnutls", "ca-certificates" ], "__rsyslog_work_dir": "/var/lib/rsyslog", "rsyslog_weight_map": { "global": "05", "globals": "05", "input": "90", "inputs": "90", "module": "10", "modules": "10", "output": "30", "outputs": "30", "rule": "50", "rules": "50", "ruleset": "50", "rulesets": "50", "service": "30", "services": "30", "template": "20", "templates": "20" } }, "ansible_included_var_files": [ "/tmp/tmpbwzvnpbn/roles/rsyslog/vars/main.yml" ], "ansible_loop_var": "item", "changed": false, "item": "/tmp/tmpbwzvnpbn/roles/rsyslog/vars/main.yml" } ok: [/cache/centos-9.qcow2.snap] => (item=/tmp/tmpbwzvnpbn/roles/rsyslog/vars/outputs/elasticsearch/main.yml) => { "ansible_facts": { "__rsyslog_conf_es_elasticsearch": [ { "name": "output-elasticsearch", "sections": [ { "options": "# omelasticsearch\ntemplate(name=\"es_template\" type=\"list\") {\n property(name=\"$!all-json-plain\")\n}\ntemplate(name=\"es_template_nl\" type=\"list\") {\n property(name=\"$!all-json-plain\")\n constant(value=\"\\n\")\n}\n\n# Add date to the end of the index name - index_prefix.yyyy-mm-dd,\n# based on the log timestamp.\n# This template sets \"index_name\"\ntemplate(name=\"prefix_index_template\" type=\"list\") {\n property(name=\"$.index_prefix\")\n property(name=\"$!@timestamp\" dateFormat=\"rfc3339\"\n position.from=\"1\" position.to=\"4\")\n constant(value=\".\")\n property(name=\"$!@timestamp\" dateFormat=\"rfc3339\"\n position.from=\"6\" position.to=\"7\")\n constant(value=\".\")\n property(name=\"$!@timestamp\" dateFormat=\"rfc3339\"\n position.from=\"9\" position.to=\"10\")\n}\n\ntemplate(name=\"index_template\" type=\"string\" string=\"%$.index_name%\")\ntemplate(name=\"id_template\" type=\"string\" string=\"%$.es_msg_id%\")\n\nruleset(name=\"error_es\") {\n action(name=\"es_bulk_errors\" type=\"omfile\"\n template=\"es_template_nl\"\n file=\"{{ __rsyslog_work_dir }}/es-bulk-errors.log\")\n}" } ], "type": "output" } ], "__rsyslog_conf_es_main_modules": [ { "name": "output-elasticsearch-module", "sections": [ { "options": "# Send to Elasticsearch\nmodule(load=\"omelasticsearch\")" } ], "type": "modules" } ], "__rsyslog_elasticsearch_packages": [ "rsyslog-elasticsearch" ], "__rsyslog_elasticsearch_rules": [ "{{ __rsyslog_conf_es_main_modules }}", "{{ __rsyslog_conf_es_elasticsearch }}" ] }, "ansible_included_var_files": [ "/tmp/tmpbwzvnpbn/roles/rsyslog/vars/outputs/elasticsearch/main.yml" ], "ansible_loop_var": "item", "changed": false, "item": "/tmp/tmpbwzvnpbn/roles/rsyslog/vars/outputs/elasticsearch/main.yml" } ok: [/cache/centos-9.qcow2.snap] => (item=/tmp/tmpbwzvnpbn/roles/rsyslog/vars/outputs/files/main.yml) => { "ansible_facts": { "__rsyslog_conf_files_output_modules": [ { "name": "output-files-modules", "sections": [ { "comment": "Log messages into files with traditional, syslog, or default format", "options": "{% if logging_files_template_format == \"traditional\" %}\nmodule(load=\"builtin:omfile\" Template=\"RSYSLOG_TraditionalFileFormat\")\n{% elif logging_files_template_format == \"syslog\" %}\nmodule(load=\"builtin:omfile\" Template=\"RSYSLOG_SyslogProtocol23Format\")\n{% else %}\nmodule(load=\"builtin:omfile\")\n{% endif %}" } ], "type": "modules" } ], "__rsyslog_files_output_packages": [], "__rsyslog_files_output_rules": [ "{{ __rsyslog_conf_files_output_modules }}" ] }, "ansible_included_var_files": [ "/tmp/tmpbwzvnpbn/roles/rsyslog/vars/outputs/files/main.yml" ], "ansible_loop_var": "item", "changed": false, "item": "/tmp/tmpbwzvnpbn/roles/rsyslog/vars/outputs/files/main.yml" } ok: [/cache/centos-9.qcow2.snap] => (item=/tmp/tmpbwzvnpbn/roles/rsyslog/vars/outputs/forwards/main.yml) => { "ansible_facts": { "__rsyslog_conf_forwards_output_modules": [ { "name": "output-forwards-modules", "sections": [ { "comment": "Log messages into files with traditional, syslog, or default format", "options": "{% if logging_forwards_template_format == \"traditional\" %}\nmodule(load=\"builtin:omfwd\" Template=\"RSYSLOG_TraditionalForwardFormat\")\n{% elif logging_forwards_template_format == \"syslog\" %}\nmodule(load=\"builtin:omfwd\" Template=\"RSYSLOG_SyslogProtocol23Format\")\n{% else %}\nmodule(load=\"builtin:omfwd\")\n{% endif %}" } ], "type": "modules" } ], "__rsyslog_forwards_output_packages": [], "__rsyslog_forwards_output_rules": [ "{{ __rsyslog_conf_forwards_output_modules }}" ] }, "ansible_included_var_files": [ "/tmp/tmpbwzvnpbn/roles/rsyslog/vars/outputs/forwards/main.yml" ], "ansible_loop_var": "item", "changed": false, "item": "/tmp/tmpbwzvnpbn/roles/rsyslog/vars/outputs/forwards/main.yml" } ok: [/cache/centos-9.qcow2.snap] => (item=/tmp/tmpbwzvnpbn/roles/rsyslog/vars/outputs/relp/main.yml) => { "ansible_facts": { "__rsyslog_conf_output_relp_modules": [ { "name": "output-relp-module", "sections": [ { "options": "# Send logs over relp\nmodule(load=\"omrelp\")" } ], "type": "modules" } ], "__rsyslog_output_relp_packages": [ "rsyslog-relp", "librelp" ], "__rsyslog_output_relp_rules": [ "{{ __rsyslog_conf_output_relp_modules }}" ] }, "ansible_included_var_files": [ "/tmp/tmpbwzvnpbn/roles/rsyslog/vars/outputs/relp/main.yml" ], "ansible_loop_var": "item", "changed": false, "item": "/tmp/tmpbwzvnpbn/roles/rsyslog/vars/outputs/relp/main.yml" } ok: [/cache/centos-9.qcow2.snap] => (item=/tmp/tmpbwzvnpbn/roles/rsyslog/vars/outputs/remote_files/main.yml) => { "ansible_facts": { "__rsyslog_remote_files_output_packages": [] }, "ansible_included_var_files": [ "/tmp/tmpbwzvnpbn/roles/rsyslog/vars/outputs/remote_files/main.yml" ], "ansible_loop_var": "item", "changed": false, "item": "/tmp/tmpbwzvnpbn/roles/rsyslog/vars/outputs/remote_files/main.yml" } TASK [/tmp/tmpbwzvnpbn/tests/roles/linux-system-roles.logging/roles/rsyslog : Main rsyslog subrole] *** task path: /tmp/tmpbwzvnpbn/roles/rsyslog/tasks/main.yml:7 Tuesday 26 July 2022 22:50:29 +0000 (0:00:00.204) 0:00:12.787 ********** skipping: [/cache/centos-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } META: role_complete for /cache/centos-9.qcow2.snap META: role_complete for /cache/centos-9.qcow2.snap TASK [Install test packages] *************************************************** task path: /tmp/tmpbwzvnpbn/tests/setup-snapshot.yml:12 Tuesday 26 July 2022 22:50:29 +0000 (0:00:00.051) 0:00:12.838 ********** changed: [/cache/centos-9.qcow2.snap] => { "changed": true, "rc": 0, "results": [ "Installed: rsyslog-elasticsearch-8.2102.0-105.el9.x86_64", "Installed: rsyslog-mmjsonparse-8.2102.0-105.el9.x86_64", "Installed: librelp-1.10.0-4.el9.x86_64", "Installed: rsyslog-gnutls-8.2102.0-105.el9.x86_64", "Installed: liblognorm-2.0.6-4.el9.x86_64", "Installed: rsyslog-relp-8.2102.0-105.el9.x86_64", "Installed: rsyslog-mmnormalize-8.2102.0-105.el9.x86_64", "Installed: lsof-4.94.0-3.el9.x86_64" ] } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/centos-9.qcow2.snap : ok=9 changed=3 unreachable=0 failed=0 skipped=16 rescued=0 ignored=0 Tuesday 26 July 2022 22:50:32 +0000 (0:00:02.909) 0:00:15.748 ********** =============================================================================== Create dnf cache -------------------------------------------------------- 8.22s /cache/centos-9_setup.yml:27 -------------------------------------------------- Install test packages --------------------------------------------------- 2.91s /tmp/tmpbwzvnpbn/tests/setup-snapshot.yml:12 ---------------------------------- Enable HA repos --------------------------------------------------------- 1.22s /cache/centos-9_setup.yml:5 --------------------------------------------------- Gathering Facts --------------------------------------------------------- 1.12s /cache/centos-9_setup.yml:7 --------------------------------------------------- Gathering Facts --------------------------------------------------------- 0.80s /tmp/tmpbwzvnpbn/tests/setup-snapshot.yml:4 ----------------------------------- /tmp/tmpbwzvnpbn/tests/roles/linux-system-roles.logging/roles/rsyslog : Ensure ansible_facts used by role --- 0.56s /tmp/tmpbwzvnpbn/roles/rsyslog/tasks/set_vars.yml:4 --------------------------- /tmp/tmpbwzvnpbn/tests/roles/linux-system-roles.logging/roles/rsyslog : Include /tmp/tmpbwzvnpbn/roles/rsyslog/vars/main.yml --- 0.21s /tmp/tmpbwzvnpbn/roles/rsyslog/tasks/set_vars.yml:22 -------------------------- /tmp/tmpbwzvnpbn/tests/roles/linux-system-roles.logging/roles/rsyslog : Set platform/version specific variables --- 0.06s /tmp/tmpbwzvnpbn/roles/rsyslog/tasks/set_vars.yml:10 -------------------------- /tmp/tmpbwzvnpbn/tests/roles/linux-system-roles.logging/roles/rsyslog : Main rsyslog subrole --- 0.05s /tmp/tmpbwzvnpbn/roles/rsyslog/tasks/main.yml:7 ------------------------------- Set platform/version specific variables --------------------------------- 0.04s /tmp/tmpbwzvnpbn/tests/setup-snapshot.yml:7 ----------------------------------- linux-system-roles.logging : Set files output if files output is not defined and logging_inputs is not empty --- 0.04s /tmp/tmpbwzvnpbn/tests/roles/linux-system-roles.logging/tasks/main.yml:5 ------ linux-system-roles.logging : Create rsyslog debug dir ------------------- 0.04s /tmp/tmpbwzvnpbn/tests/roles/linux-system-roles.logging/tasks/main.yml:57 ----- linux-system-roles.logging : Populate rsyslog debug file ---------------- 0.04s /tmp/tmpbwzvnpbn/tests/roles/linux-system-roles.logging/tasks/main.yml:79 ----- Include Rsyslog role ---------------------------------------------------- 0.04s /tmp/tmpbwzvnpbn/tests/roles/linux-system-roles.logging/tasks/main.yml:98 ----- linux-system-roles.logging : Set rsyslog_outputs ------------------------ 0.04s /tmp/tmpbwzvnpbn/tests/roles/linux-system-roles.logging/tasks/main.yml:17 ----- linux-system-roles.logging : Use a debug var to avoid an empty dict in with_dict --- 0.04s /tmp/tmpbwzvnpbn/tests/roles/linux-system-roles.logging/tasks/main.yml:75 ----- linux-system-roles.logging : Set rsyslog_inputs ------------------------- 0.04s /tmp/tmpbwzvnpbn/tests/roles/linux-system-roles.logging/tasks/main.yml:24 ----- linux-system-roles.logging : Delete debug file -------------------------- 0.04s /tmp/tmpbwzvnpbn/tests/roles/linux-system-roles.logging/tasks/main.yml:63 ----- linux-system-roles.logging : Re-read facts after adding custom fact ----- 0.04s /tmp/tmpbwzvnpbn/tests/roles/linux-system-roles.logging/tasks/main.yml:53 ----- linux-system-roles.logging : Create rsyslog debug file ------------------ 0.04s /tmp/tmpbwzvnpbn/tests/roles/linux-system-roles.logging/tasks/main.yml:69 ----- PLAYBOOK: centos-9_post_setup.yml ********************************************** 1 plays in /cache/centos-9_post_setup.yml PLAY [Post setup - these happen last] ****************************************** META: ran handlers TASK [force sync of filesystems - ensure setup changes are made to snapshot] *** task path: /cache/centos-9_post_setup.yml:5 Tuesday 26 July 2022 22:50:32 +0000 (0:00:00.019) 0:00:15.767 ********** changed: [/cache/centos-9.qcow2.snap] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": true } TASK [shutdown guest] ********************************************************** task path: /cache/centos-9_post_setup.yml:8 Tuesday 26 July 2022 22:50:32 +0000 (0:00:00.379) 0:00:16.147 ********** changed: [/cache/centos-9.qcow2.snap] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": true } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/centos-9.qcow2.snap : ok=11 changed=5 unreachable=0 failed=0 skipped=16 rescued=0 ignored=0 Tuesday 26 July 2022 22:50:33 +0000 (0:00:00.529) 0:00:16.676 ********** =============================================================================== Create dnf cache -------------------------------------------------------- 8.22s /cache/centos-9_setup.yml:27 -------------------------------------------------- Install test packages --------------------------------------------------- 2.91s /tmp/tmpbwzvnpbn/tests/setup-snapshot.yml:12 ---------------------------------- Enable HA repos --------------------------------------------------------- 1.22s /cache/centos-9_setup.yml:5 --------------------------------------------------- Gathering Facts --------------------------------------------------------- 1.12s /cache/centos-9_setup.yml:7 --------------------------------------------------- Gathering Facts --------------------------------------------------------- 0.80s /tmp/tmpbwzvnpbn/tests/setup-snapshot.yml:4 ----------------------------------- /tmp/tmpbwzvnpbn/tests/roles/linux-system-roles.logging/roles/rsyslog : Ensure ansible_facts used by role --- 0.56s /tmp/tmpbwzvnpbn/roles/rsyslog/tasks/set_vars.yml:4 --------------------------- shutdown guest ---------------------------------------------------------- 0.53s /cache/centos-9_post_setup.yml:8 ---------------------------------------------- force sync of filesystems - ensure setup changes are made to snapshot --- 0.38s /cache/centos-9_post_setup.yml:5 ---------------------------------------------- /tmp/tmpbwzvnpbn/tests/roles/linux-system-roles.logging/roles/rsyslog : Include /tmp/tmpbwzvnpbn/roles/rsyslog/vars/main.yml --- 0.21s /tmp/tmpbwzvnpbn/roles/rsyslog/tasks/set_vars.yml:22 -------------------------- /tmp/tmpbwzvnpbn/tests/roles/linux-system-roles.logging/roles/rsyslog : Set platform/version specific variables --- 0.06s /tmp/tmpbwzvnpbn/roles/rsyslog/tasks/set_vars.yml:10 -------------------------- /tmp/tmpbwzvnpbn/tests/roles/linux-system-roles.logging/roles/rsyslog : Main rsyslog subrole --- 0.05s /tmp/tmpbwzvnpbn/roles/rsyslog/tasks/main.yml:7 ------------------------------- Set platform/version specific variables --------------------------------- 0.04s /tmp/tmpbwzvnpbn/tests/setup-snapshot.yml:7 ----------------------------------- linux-system-roles.logging : Set files output if files output is not defined and logging_inputs is not empty --- 0.04s /tmp/tmpbwzvnpbn/tests/roles/linux-system-roles.logging/tasks/main.yml:5 ------ linux-system-roles.logging : Create rsyslog debug dir ------------------- 0.04s /tmp/tmpbwzvnpbn/tests/roles/linux-system-roles.logging/tasks/main.yml:57 ----- linux-system-roles.logging : Populate rsyslog debug file ---------------- 0.04s /tmp/tmpbwzvnpbn/tests/roles/linux-system-roles.logging/tasks/main.yml:79 ----- Include Rsyslog role ---------------------------------------------------- 0.04s /tmp/tmpbwzvnpbn/tests/roles/linux-system-roles.logging/tasks/main.yml:98 ----- linux-system-roles.logging : Set rsyslog_outputs ------------------------ 0.04s /tmp/tmpbwzvnpbn/tests/roles/linux-system-roles.logging/tasks/main.yml:17 ----- linux-system-roles.logging : Use a debug var to avoid an empty dict in with_dict --- 0.04s /tmp/tmpbwzvnpbn/tests/roles/linux-system-roles.logging/tasks/main.yml:75 ----- linux-system-roles.logging : Set rsyslog_inputs ------------------------- 0.04s /tmp/tmpbwzvnpbn/tests/roles/linux-system-roles.logging/tasks/main.yml:24 ----- linux-system-roles.logging : Delete debug file -------------------------- 0.04s /tmp/tmpbwzvnpbn/tests/roles/linux-system-roles.logging/tasks/main.yml:63 ----- ansible-playbook [core 2.12.6] config file = /etc/ansible/ansible.cfg configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.9/site-packages/ansible ansible collection location = /tmp/tmp_xvdndkd executable location = /usr/bin/ansible-playbook python version = 3.9.13 (main, May 18 2022, 00:00:00) [GCC 11.3.1 20220421 (Red Hat 11.3.1-2)] jinja version = 2.11.3 libyaml = True Using /etc/ansible/ansible.cfg as config file [WARNING]: * Failed to parse /usr/share/ansible/inventory/standard-inventory- qcow2 with script plugin: Inventory script (/usr/share/ansible/inventory/standard-inventory-qcow2) had an execution error: [ERROR] standard-inventory-qcow2: Could not access VM launched from qcow2 image: /cache/centos-9.qcow2.snap qemu exited with code 0 pid 256283 Last lines of centos-9.qcow2.snap.guest.log: [ OK ] Started Emergency Shell. [ OK ] Reached target Emergency Mode. Generating "/run/initramfs/rdsosreport.txt" Entering emergency mode. Exit the shell to continue. Type "journalctl" to view system logs. You might want toPress Enter for maintenance (or press Control-D to continue): Last lines of centos-9.qcow2.snap.qemu.log: qemu-kvm: terminating on signal 15 from pid 256279 (/usr/bin/python3) [WARNING]: * Failed to parse /usr/share/ansible/inventory/standard-inventory- qcow2 with yaml plugin: We were unable to read either as JSON nor YAML, these are the errors we got from each: JSON: Expecting value: line 1 column 1 (char 0) Syntax Error while loading YAML. mapping values are not allowed in this context The error appears to be in '/usr/share/ansible/inventory/standard- inventory-qcow2': line 30, column 4, but may be elsewhere in the file depending on the exact syntax problem. The offending line appears to be: try: ^ here [WARNING]: * Failed to parse /usr/share/ansible/inventory/standard-inventory- qcow2 with ini plugin: /usr/share/ansible/inventory/standard-inventory-qcow2:9: Expected key=value host variable assignment, got: os ERROR! Completely failed to parse inventory source /usr/share/ansible/inventory/standard-inventory-qcow2 ansible-playbook [core 2.12.6] config file = /etc/ansible/ansible.cfg configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.9/site-packages/ansible ansible collection location = /tmp/tmp_xvdndkd executable location = /usr/bin/ansible-playbook python version = 3.9.13 (main, May 18 2022, 00:00:00) [GCC 11.3.1 20220421 (Red Hat 11.3.1-2)] jinja version = 2.11.3 libyaml = True Using /etc/ansible/ansible.cfg as config file [WARNING]: * Failed to parse /usr/share/ansible/inventory/standard-inventory- qcow2 with script plugin: Inventory script (/usr/share/ansible/inventory/standard-inventory-qcow2) had an execution error: [ERROR] standard-inventory-qcow2: Could not access VM launched from qcow2 image: /cache/centos-9.qcow2.snap qemu exited with code 0 pid 262498 Last lines of centos-9.qcow2.snap.guest.log: Entering emergency mode. Exit the shell to continue. Type "journalctl" to view system logs. You might want to save "/run/initramfs/rdsosreport.txt" to a USB stick or /boot after mounting them and attach it to a bug report. Press Enter for maintenance (or press Control-D to continue): Last lines of centos-9.qcow2.snap.qemu.log: qemu-kvm: terminating on signal 15 from pid 256279 (/usr/bin/python3) qemu-kvm: terminating on signal 15 from pid 262494 (/usr/bin/python3) [WARNING]: * Failed to parse /usr/share/ansible/inventory/standard-inventory- qcow2 with yaml plugin: We were unable to read either as JSON nor YAML, these are the errors we got from each: JSON: Expecting value: line 1 column 1 (char 0) Syntax Error while loading YAML. mapping values are not allowed in this context The error appears to be in '/usr/share/ansible/inventory/standard- inventory-qcow2': line 30, column 4, but may be elsewhere in the file depending on the exact syntax problem. The offending line appears to be: try: ^ here [WARNING]: * Failed to parse /usr/share/ansible/inventory/standard-inventory- qcow2 with ini plugin: /usr/share/ansible/inventory/standard-inventory-qcow2:9: Expected key=value host variable assignment, got: os ERROR! Completely failed to parse inventory source /usr/share/ansible/inventory/standard-inventory-qcow2