# 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_node_options_check.yml ***************************************** 2 plays in /WORKDIR/git-susemyiqp4lz/tests/tests_node_options_check.yml PLAY [all] ********************************************************************* META: ran handlers TASK [Include vault variables] ************************************************* task path: /WORKDIR/git-susemyiqp4lz/tests/tests_node_options_check.yml:4 Thursday 15 February 2024 11:35:58 +0000 (0:00:00.012) 0:00:00.012 ***** ok: [sut] => { "ansible_facts": { "ha_cluster_hacluster_password": { "__ansible_vault": "$ANSIBLE_VAULT;1.1;AES256\n31303833633366333561656439323930303361333161363239346166656537323933313436\n3432386236656563343237306335323637396239616230353561330a313731623238393238\n62343064666336643930663239383936616465643134646536656532323461356237646133\n3761616633323839633232353637366266350a313163633236376666653238633435306565\n3264623032333736393535663833\n" } }, "ansible_included_var_files": [ "/WORKDIR/git-susemyiqp4lz/tests/vars/vault-variables.yml" ], "changed": false } META: ran handlers META: ran handlers PLAY [Verify node_name in ha_cluster_node_options check is working] ************ TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-susemyiqp4lz/tests/tests_node_options_check.yml:9 Thursday 15 February 2024 11:35:58 +0000 (0:00:00.010) 0:00:00.023 ***** ok: [sut] META: ran handlers TASK [Set up test environment] ************************************************* task path: /WORKDIR/git-susemyiqp4lz/tests/tests_node_options_check.yml:17 Thursday 15 February 2024 11:35:59 +0000 (0:00:00.747) 0:00:00.770 ***** TASK [linux-system-roles.ha_cluster : Set node name to 'localhost' for single-node clusters] *** task path: /WORKDIR/git-susemyiqp4lz/tests/roles/linux-system-roles.ha_cluster/tasks/test_setup.yml:9 Thursday 15 February 2024 11:35:59 +0000 (0:00:00.025) 0:00:00.796 ***** ok: [sut] => { "ansible_facts": { "inventory_hostname": "localhost" }, "changed": false } TASK [linux-system-roles.ha_cluster : Ensure facts used by tests] ************** task path: /WORKDIR/git-susemyiqp4lz/tests/roles/linux-system-roles.ha_cluster/tasks/test_setup.yml:14 Thursday 15 February 2024 11:35:59 +0000 (0:00:00.018) 0:00:00.814 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.ha_cluster : Check if system is ostree] *************** task path: /WORKDIR/git-susemyiqp4lz/tests/roles/linux-system-roles.ha_cluster/tasks/test_setup.yml:22 Thursday 15 February 2024 11:35:59 +0000 (0:00:00.017) 0:00:00.832 ***** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [linux-system-roles.ha_cluster : Set flag to indicate system is ostree] *** task path: /WORKDIR/git-susemyiqp4lz/tests/roles/linux-system-roles.ha_cluster/tasks/test_setup.yml:27 Thursday 15 February 2024 11:35:59 +0000 (0:00:00.266) 0:00:01.098 ***** ok: [sut] => { "ansible_facts": { "__ha_cluster_is_ostree": false }, "changed": false } TASK [linux-system-roles.ha_cluster : Do not try to enable RHEL repositories] *** task path: /WORKDIR/git-susemyiqp4lz/tests/roles/linux-system-roles.ha_cluster/tasks/test_setup.yml:32 Thursday 15 February 2024 11:35:59 +0000 (0:00:00.019) 0:00:01.117 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.ha_cluster : Copy nss-altfiles ha_cluster users to /etc/passwd] *** task path: /WORKDIR/git-susemyiqp4lz/tests/roles/linux-system-roles.ha_cluster/tasks/test_setup.yml:41 Thursday 15 February 2024 11:35:59 +0000 (0:00:00.016) 0:00:01.133 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Find first node name] **************************************************** task path: /WORKDIR/git-susemyiqp4lz/tests/tests_node_options_check.yml:22 Thursday 15 February 2024 11:35:59 +0000 (0:00:00.017) 0:00:01.151 ***** ok: [sut] => { "ansible_facts": { "__test_first_node": "localhost" }, "changed": false } TASK [Verify node options check is working for various input data] ************* task path: /WORKDIR/git-susemyiqp4lz/tests/tests_node_options_check.yml:28 Thursday 15 February 2024 11:35:59 +0000 (0:00:00.017) 0:00:01.169 ***** included: /WORKDIR/git-susemyiqp4lz/tests/tasks/assert_node_options_check.yml for sut included: /WORKDIR/git-susemyiqp4lz/tests/tasks/assert_node_options_check.yml for sut TASK [Debug ha_cluster_node_options] ******************************************* task path: /WORKDIR/git-susemyiqp4lz/tests/tasks/assert_node_options_check.yml:3 Thursday 15 February 2024 11:35:59 +0000 (0:00:00.025) 0:00:01.194 ***** ok: [sut] => { "ha_cluster_node_options": [ { "node_name": "localhost" }, { "node_name": "localhost" } ] } TASK [Run the role] ************************************************************ task path: /WORKDIR/git-susemyiqp4lz/tests/tasks/assert_node_options_check.yml:9 Thursday 15 February 2024 11:36:00 +0000 (0:00:00.019) 0:00:01.214 ***** TASK [linux-system-roles.ha_cluster : Set platform/version specific variables] *** task path: /WORKDIR/git-susemyiqp4lz/tests/roles/linux-system-roles.ha_cluster/tasks/main.yml:3 Thursday 15 February 2024 11:36:00 +0000 (0:00:00.037) 0:00:01.252 ***** included: /WORKDIR/git-susemyiqp4lz/tests/roles/linux-system-roles.ha_cluster/tasks/set_vars.yml for sut TASK [linux-system-roles.ha_cluster : Ensure ansible_facts used by role] ******* task path: /WORKDIR/git-susemyiqp4lz/tests/roles/linux-system-roles.ha_cluster/tasks/set_vars.yml:2 Thursday 15 February 2024 11:36:00 +0000 (0:00:00.013) 0:00:01.265 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.ha_cluster : Check if system is ostree] *************** task path: /WORKDIR/git-susemyiqp4lz/tests/roles/linux-system-roles.ha_cluster/tasks/set_vars.yml:11 Thursday 15 February 2024 11:36:00 +0000 (0:00:00.018) 0:00:01.283 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.ha_cluster : Set flag to indicate system is ostree] *** task path: /WORKDIR/git-susemyiqp4lz/tests/roles/linux-system-roles.ha_cluster/tasks/set_vars.yml:16 Thursday 15 February 2024 11:36:00 +0000 (0:00:00.018) 0:00:01.302 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.ha_cluster : Set platform/version specific variables] *** task path: /WORKDIR/git-susemyiqp4lz/tests/roles/linux-system-roles.ha_cluster/tasks/set_vars.yml:20 Thursday 15 February 2024 11:36:00 +0000 (0:00:00.020) 0:00:01.323 ***** ok: [sut] => (item=RedHat.yml) => { "ansible_facts": { "__ha_cluster_fence_agent_packages_default": "{{ ['fence-agents-all'] + (['fence-virt'] if ansible_architecture == 'x86_64' else []) }}", "__ha_cluster_fullstack_node_packages": [ "corosync", "libknet1-plugins-all", "resource-agents", "pacemaker", "openssl" ], "__ha_cluster_pcs_provider": "pcs-0.10", "__ha_cluster_qdevice_node_packages": [ "corosync-qdevice", "bash", "coreutils", "curl", "grep", "nss-tools", "openssl", "sed" ], "__ha_cluster_repos": [], "__ha_cluster_role_essential_packages": [ "pcs", "corosync-qnetd" ], "__ha_cluster_sbd_packages": [ "sbd" ], "__ha_cluster_services": [ "corosync", "corosync-qdevice", "pacemaker" ] }, "ansible_included_var_files": [ "/WORKDIR/git-susemyiqp4lz/tests/roles/linux-system-roles.ha_cluster/vars/RedHat.yml" ], "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml" } 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": { "__ha_cluster_repos": [ { "id": "highavailability", "name": "HighAvailability" }, { "id": "resilientstorage", "name": "ResilientStorage" } ] }, "ansible_included_var_files": [ "/WORKDIR/git-susemyiqp4lz/tests/roles/linux-system-roles.ha_cluster/vars/CentOS_9.yml" ], "ansible_loop_var": "item", "changed": false, "item": "CentOS_9.yml" } ok: [sut] => (item=CentOS_9.yml) => { "ansible_facts": { "__ha_cluster_repos": [ { "id": "highavailability", "name": "HighAvailability" }, { "id": "resilientstorage", "name": "ResilientStorage" } ] }, "ansible_included_var_files": [ "/WORKDIR/git-susemyiqp4lz/tests/roles/linux-system-roles.ha_cluster/vars/CentOS_9.yml" ], "ansible_loop_var": "item", "changed": false, "item": "CentOS_9.yml" } TASK [linux-system-roles.ha_cluster : Set Linux Pacemaker shell specific variables] *** task path: /WORKDIR/git-susemyiqp4lz/tests/roles/linux-system-roles.ha_cluster/tasks/set_vars.yml:35 Thursday 15 February 2024 11:36:00 +0000 (0:00:00.036) 0:00:01.359 ***** ok: [sut] => { "ansible_facts": {}, "ansible_included_var_files": [ "/WORKDIR/git-susemyiqp4lz/tests/roles/linux-system-roles.ha_cluster/vars/shell_pcs.yml" ], "changed": false } TASK [linux-system-roles.ha_cluster : Enable package repositories] ************* task path: /WORKDIR/git-susemyiqp4lz/tests/roles/linux-system-roles.ha_cluster/tasks/main.yml:6 Thursday 15 February 2024 11:36:00 +0000 (0:00:00.020) 0:00:01.380 ***** included: /WORKDIR/git-susemyiqp4lz/tests/roles/linux-system-roles.ha_cluster/tasks/enable-package-repositories.yml for sut TASK [linux-system-roles.ha_cluster : Find platform/version specific tasks to enable repositories] *** task path: /WORKDIR/git-susemyiqp4lz/tests/roles/linux-system-roles.ha_cluster/tasks/enable-package-repositories.yml:3 Thursday 15 February 2024 11:36:00 +0000 (0:00:00.014) 0:00:01.394 ***** ok: [sut] => (item=RedHat.yml) => { "ansible_facts": { "__ha_cluster_enable_repo_tasks_file": "/WORKDIR/git-susemyiqp4lz/tests/roles/linux-system-roles.ha_cluster/tasks/enable-repositories/RedHat.yml" }, "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml" } ok: [sut] => (item=CentOS.yml) => { "ansible_facts": { "__ha_cluster_enable_repo_tasks_file": "/WORKDIR/git-susemyiqp4lz/tests/roles/linux-system-roles.ha_cluster/tasks/enable-repositories/CentOS.yml" }, "ansible_loop_var": "item", "changed": false, "item": "CentOS.yml" } skipping: [sut] => (item=CentOS_9.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS_9.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=CentOS_9.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS_9.yml", "skip_reason": "Conditional result was False" } TASK [linux-system-roles.ha_cluster : Run platform/version specific tasks to enable repositories] *** task path: /WORKDIR/git-susemyiqp4lz/tests/roles/linux-system-roles.ha_cluster/tasks/enable-package-repositories.yml:24 Thursday 15 February 2024 11:36:00 +0000 (0:00:00.034) 0:00:01.428 ***** included: /WORKDIR/git-susemyiqp4lz/tests/roles/linux-system-roles.ha_cluster/tasks/enable-repositories/CentOS.yml for sut TASK [linux-system-roles.ha_cluster : List active CentOS repositories] ********* task path: /WORKDIR/git-susemyiqp4lz/tests/roles/linux-system-roles.ha_cluster/tasks/enable-repositories/CentOS.yml:3 Thursday 15 February 2024 11:36:00 +0000 (0:00:00.024) 0:00:01.453 ***** ok: [sut] => { "changed": false, "cmd": [ "dnf", "repolist" ], "delta": "0:00:00.229385", "end": "2024-02-15 11:36:00.713041", "rc": 0, "start": "2024-02-15 11:36:00.483656" } STDOUT: repo id repo name appstream CentOS Stream 9 - AppStream baseos CentOS Stream 9 - BaseOS beaker-client Beaker Client - RedHatEnterpriseLinux9 beaker-harness Beaker harness beaker-tasks Beaker tasks beakerlib-libraries Copr repo for beakerlib-libraries owned by bgoncalv copr:copr.devel.redhat.com:lpol:qa-tools Copr repo for qa-tools owned by lpol epel-cisco-openh264 Extra Packages for Enterprise Linux 9 openh264 (From Cisco) - x86_64 epel-next Extra Packages for Enterprise Linux 9 - Next - x86_64 extras-common CentOS Stream 9 - Extras packages highavailability CentOS Stream 9 - HighAvailability TASK [linux-system-roles.ha_cluster : Enable CentOS repositories] ************** task path: /WORKDIR/git-susemyiqp4lz/tests/roles/linux-system-roles.ha_cluster/tasks/enable-repositories/CentOS.yml:10 Thursday 15 February 2024 11:36:00 +0000 (0:00:00.475) 0:00:01.929 ***** skipping: [sut] => (item={'id': 'highavailability', 'name': 'HighAvailability'}) => { "ansible_loop_var": "item", "changed": false, "item": { "id": "highavailability", "name": "HighAvailability" }, "skip_reason": "Conditional result was False" } skipping: [sut] => (item={'id': 'resilientstorage', 'name': 'ResilientStorage'}) => { "ansible_loop_var": "item", "changed": false, "item": { "id": "resilientstorage", "name": "ResilientStorage" }, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.ha_cluster : Install role essential packages] ********* task path: /WORKDIR/git-susemyiqp4lz/tests/roles/linux-system-roles.ha_cluster/tasks/main.yml:11 Thursday 15 February 2024 11:36:00 +0000 (0:00:00.025) 0:00:01.954 ***** changed: [sut] => { "changed": true, "rc": 0, "results": [ "Installed: corosynclib-3.1.8-1.el9.x86_64", "Installed: device-mapper-event-9:1.02.195-3.el9.x86_64", "Installed: pcs-0.11.7-1.el9.x86_64", "Installed: corosync-3.1.8-1.el9.x86_64", "Installed: libaio-0.3.111-13.el9.x86_64", "Installed: device-mapper-event-libs-9:1.02.195-3.el9.x86_64", "Installed: corosync-qnetd-3.0.2-2.el9.x86_64", "Installed: rubygems-3.2.33-161.el9.noarch", "Installed: ruby-libs-3.0.4-161.el9.x86_64", "Installed: resource-agents-4.10.0-52.el9.x86_64", "Installed: net-tools-2.0-0.62.20160912git.el9.x86_64", "Installed: nss-tools-3.90.0-6.el9.x86_64", "Installed: rubygem-bigdecimal-3.0.0-161.el9.x86_64", "Installed: libknet1-compress-bzip2-plugin-1.28-2.el9.next.x86_64", "Installed: libknet1-compress-lz4-plugin-1.28-2.el9.next.x86_64", "Installed: libknet1-compress-lzma-plugin-1.28-2.el9.next.x86_64", "Installed: libknet1-compress-lzo2-plugin-1.28-2.el9.next.x86_64", "Installed: bzip2-1.0.8-8.el9.x86_64", "Installed: rubygem-bundler-2.2.33-161.el9.noarch", "Installed: libknet1-compress-plugins-all-1.28-2.el9.next.x86_64", "Installed: libknet1-compress-zlib-plugin-1.28-2.el9.next.x86_64", "Installed: libknet1-compress-zstd-plugin-1.28-2.el9.next.x86_64", "Installed: libknet1-crypto-nss-plugin-1.28-2.el9.next.x86_64", "Installed: libknet1-crypto-openssl-plugin-1.28-2.el9.next.x86_64", "Installed: libknet1-crypto-plugins-all-1.28-2.el9.next.x86_64", "Installed: libknet1-plugins-all-1.28-2.el9.next.x86_64", "Installed: rubygem-io-console-0.5.7-161.el9.x86_64", "Installed: device-mapper-persistent-data-1.0.9-1.el9.x86_64", "Installed: libnozzle1-1.28-2.el9.next.x86_64", "Installed: python3-pycurl-7.43.0.6-8.el9.x86_64", "Installed: rubygem-json-2.5.1-161.el9.x86_64", "Installed: lvm2-9:2.03.21-3.el9.x86_64", "Installed: net-snmp-libs-1:5.9.1-13.el9.x86_64", "Installed: perl-TimeDate-1:2.33-6.el9.noarch", "Installed: pacemaker-2.1.7-4.el9.x86_64", "Installed: lvm2-libs-9:2.03.21-3.el9.x86_64", "Installed: pacemaker-cli-2.1.7-4.el9.x86_64", "Installed: centos-logos-90.4-1.el9.x86_64", "Installed: pacemaker-cluster-libs-2.1.7-4.el9.x86_64", "Installed: rubygem-psych-3.3.2-161.el9.x86_64", "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: libqb-2.0.8-1.el9.x86_64", "Installed: python3-pyparsing-2.4.7-9.el9.noarch", "Installed: python3-cryptography-36.0.1-4.el9.x86_64", "Installed: pacemaker-libs-2.1.7-4.el9.x86_64", "Installed: rubygem-rdoc-6.3.3-161.el9.noarch", "Installed: libknet1-1.28-1.el9.x86_64", "Installed: ruby-3.0.4-161.el9.x86_64", "Installed: rubygem-rexml-3.2.5-161.el9.noarch", "Installed: ruby-default-gems-3.0.4-161.el9.noarch", "Installed: pacemaker-schemas-2.1.7-4.el9.noarch" ] } TASK [linux-system-roles.ha_cluster : Check and prepare role variables] ******** task path: /WORKDIR/git-susemyiqp4lz/tests/roles/linux-system-roles.ha_cluster/tasks/main.yml:21 Thursday 15 February 2024 11:36:17 +0000 (0:00:16.608) 0:00:18.562 ***** included: /WORKDIR/git-susemyiqp4lz/tests/roles/linux-system-roles.ha_cluster/tasks/shell_pcs/check-and-prepare-role-variables.yml for sut TASK [linux-system-roles.ha_cluster : Discover cluster node names] ************* task path: /WORKDIR/git-susemyiqp4lz/tests/roles/linux-system-roles.ha_cluster/tasks/shell_pcs/check-and-prepare-role-variables.yml:3 Thursday 15 February 2024 11:36:17 +0000 (0:00:00.030) 0:00:18.593 ***** ok: [sut] => { "ansible_facts": { "__ha_cluster_node_name": "localhost" }, "changed": false } TASK [linux-system-roles.ha_cluster : Collect cluster node names] ************** task path: /WORKDIR/git-susemyiqp4lz/tests/roles/linux-system-roles.ha_cluster/tasks/shell_pcs/check-and-prepare-role-variables.yml:7 Thursday 15 February 2024 11:36:17 +0000 (0:00:00.020) 0:00:18.614 ***** ok: [sut] => { "ansible_facts": { "__ha_cluster_all_node_names": [ "localhost" ] }, "changed": false } TASK [linux-system-roles.ha_cluster : Fail if passwords are not specified] ***** task path: /WORKDIR/git-susemyiqp4lz/tests/roles/linux-system-roles.ha_cluster/tasks/shell_pcs/check-and-prepare-role-variables.yml:17 Thursday 15 February 2024 11:36:17 +0000 (0:00:00.022) 0:00:18.637 ***** skipping: [sut] => (item=ha_cluster_hacluster_password) => { "ansible_loop_var": "item", "changed": false, "item": "ha_cluster_hacluster_password", "skip_reason": "Conditional result was False" } TASK [linux-system-roles.ha_cluster : Fail if nodes do not have the same number of SBD devices specified] *** task path: /WORKDIR/git-susemyiqp4lz/tests/roles/linux-system-roles.ha_cluster/tasks/shell_pcs/check-and-prepare-role-variables.yml:27 Thursday 15 February 2024 11:36:17 +0000 (0:00:00.030) 0:00:18.668 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.ha_cluster : Fail if configuring qnetd on a cluster node] *** task path: /WORKDIR/git-susemyiqp4lz/tests/roles/linux-system-roles.ha_cluster/tasks/shell_pcs/check-and-prepare-role-variables.yml:42 Thursday 15 February 2024 11:36:17 +0000 (0:00:00.007) 0:00:18.675 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.ha_cluster : Fail if no valid level is specified for a fencing level] *** task path: /WORKDIR/git-susemyiqp4lz/tests/roles/linux-system-roles.ha_cluster/tasks/shell_pcs/check-and-prepare-role-variables.yml:52 Thursday 15 February 2024 11:36:17 +0000 (0:00:00.019) 0:00:18.694 ***** TASK [linux-system-roles.ha_cluster : Fail if no target is specified for a fencing level] *** task path: /WORKDIR/git-susemyiqp4lz/tests/roles/linux-system-roles.ha_cluster/tasks/shell_pcs/check-and-prepare-role-variables.yml:60 Thursday 15 February 2024 11:36:17 +0000 (0:00:00.018) 0:00:18.713 ***** TASK [linux-system-roles.ha_cluster : Fail if ha_cluster_node_options contains unknown or duplicate nodes] *** task path: /WORKDIR/git-susemyiqp4lz/tests/roles/linux-system-roles.ha_cluster/tasks/shell_pcs/check-and-prepare-role-variables.yml:80 Thursday 15 February 2024 11:36:17 +0000 (0:00:00.018) 0:00:18.731 ***** fatal: [sut]: FAILED! => { "changed": false } MSG: node_name fields in ha_cluster_node_options must be unique and they must match cluster nodes TASK [Check errors] ************************************************************ task path: /WORKDIR/git-susemyiqp4lz/tests/tasks/assert_node_options_check.yml:17 Thursday 15 February 2024 11:36:17 +0000 (0:00:00.024) 0:00:18.755 ***** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Debug ha_cluster_node_options] ******************************************* task path: /WORKDIR/git-susemyiqp4lz/tests/tasks/assert_node_options_check.yml:3 Thursday 15 February 2024 11:36:17 +0000 (0:00:00.022) 0:00:18.777 ***** ok: [sut] => { "ha_cluster_node_options": [ { "node_name": "localhost" }, { "node_name": "localhostx" } ] } TASK [Run the role] ************************************************************ task path: /WORKDIR/git-susemyiqp4lz/tests/tasks/assert_node_options_check.yml:9 Thursday 15 February 2024 11:36:17 +0000 (0:00:00.021) 0:00:18.799 ***** TASK [linux-system-roles.ha_cluster : Set platform/version specific variables] *** task path: /WORKDIR/git-susemyiqp4lz/tests/roles/linux-system-roles.ha_cluster/tasks/main.yml:3 Thursday 15 February 2024 11:36:17 +0000 (0:00:00.016) 0:00:18.816 ***** included: /WORKDIR/git-susemyiqp4lz/tests/roles/linux-system-roles.ha_cluster/tasks/set_vars.yml for sut TASK [linux-system-roles.ha_cluster : Ensure ansible_facts used by role] ******* task path: /WORKDIR/git-susemyiqp4lz/tests/roles/linux-system-roles.ha_cluster/tasks/set_vars.yml:2 Thursday 15 February 2024 11:36:17 +0000 (0:00:00.014) 0:00:18.830 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.ha_cluster : Check if system is ostree] *************** task path: /WORKDIR/git-susemyiqp4lz/tests/roles/linux-system-roles.ha_cluster/tasks/set_vars.yml:11 Thursday 15 February 2024 11:36:17 +0000 (0:00:00.021) 0:00:18.852 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.ha_cluster : Set flag to indicate system is ostree] *** task path: /WORKDIR/git-susemyiqp4lz/tests/roles/linux-system-roles.ha_cluster/tasks/set_vars.yml:16 Thursday 15 February 2024 11:36:17 +0000 (0:00:00.019) 0:00:18.871 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.ha_cluster : Set platform/version specific variables] *** task path: /WORKDIR/git-susemyiqp4lz/tests/roles/linux-system-roles.ha_cluster/tasks/set_vars.yml:20 Thursday 15 February 2024 11:36:17 +0000 (0:00:00.020) 0:00:18.892 ***** ok: [sut] => (item=RedHat.yml) => { "ansible_facts": { "__ha_cluster_fence_agent_packages_default": "{{ ['fence-agents-all'] + (['fence-virt'] if ansible_architecture == 'x86_64' else []) }}", "__ha_cluster_fullstack_node_packages": [ "corosync", "libknet1-plugins-all", "resource-agents", "pacemaker", "openssl" ], "__ha_cluster_pcs_provider": "pcs-0.10", "__ha_cluster_qdevice_node_packages": [ "corosync-qdevice", "bash", "coreutils", "curl", "grep", "nss-tools", "openssl", "sed" ], "__ha_cluster_repos": [], "__ha_cluster_role_essential_packages": [ "pcs", "corosync-qnetd" ], "__ha_cluster_sbd_packages": [ "sbd" ], "__ha_cluster_services": [ "corosync", "corosync-qdevice", "pacemaker" ] }, "ansible_included_var_files": [ "/WORKDIR/git-susemyiqp4lz/tests/roles/linux-system-roles.ha_cluster/vars/RedHat.yml" ], "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml" } 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": { "__ha_cluster_repos": [ { "id": "highavailability", "name": "HighAvailability" }, { "id": "resilientstorage", "name": "ResilientStorage" } ] }, "ansible_included_var_files": [ "/WORKDIR/git-susemyiqp4lz/tests/roles/linux-system-roles.ha_cluster/vars/CentOS_9.yml" ], "ansible_loop_var": "item", "changed": false, "item": "CentOS_9.yml" } ok: [sut] => (item=CentOS_9.yml) => { "ansible_facts": { "__ha_cluster_repos": [ { "id": "highavailability", "name": "HighAvailability" }, { "id": "resilientstorage", "name": "ResilientStorage" } ] }, "ansible_included_var_files": [ "/WORKDIR/git-susemyiqp4lz/tests/roles/linux-system-roles.ha_cluster/vars/CentOS_9.yml" ], "ansible_loop_var": "item", "changed": false, "item": "CentOS_9.yml" } TASK [linux-system-roles.ha_cluster : Set Linux Pacemaker shell specific variables] *** task path: /WORKDIR/git-susemyiqp4lz/tests/roles/linux-system-roles.ha_cluster/tasks/set_vars.yml:35 Thursday 15 February 2024 11:36:17 +0000 (0:00:00.039) 0:00:18.931 ***** ok: [sut] => { "ansible_facts": {}, "ansible_included_var_files": [ "/WORKDIR/git-susemyiqp4lz/tests/roles/linux-system-roles.ha_cluster/vars/shell_pcs.yml" ], "changed": false } TASK [linux-system-roles.ha_cluster : Enable package repositories] ************* task path: /WORKDIR/git-susemyiqp4lz/tests/roles/linux-system-roles.ha_cluster/tasks/main.yml:6 Thursday 15 February 2024 11:36:17 +0000 (0:00:00.020) 0:00:18.952 ***** included: /WORKDIR/git-susemyiqp4lz/tests/roles/linux-system-roles.ha_cluster/tasks/enable-package-repositories.yml for sut TASK [linux-system-roles.ha_cluster : Find platform/version specific tasks to enable repositories] *** task path: /WORKDIR/git-susemyiqp4lz/tests/roles/linux-system-roles.ha_cluster/tasks/enable-package-repositories.yml:3 Thursday 15 February 2024 11:36:17 +0000 (0:00:00.015) 0:00:18.967 ***** ok: [sut] => (item=RedHat.yml) => { "ansible_facts": { "__ha_cluster_enable_repo_tasks_file": "/WORKDIR/git-susemyiqp4lz/tests/roles/linux-system-roles.ha_cluster/tasks/enable-repositories/RedHat.yml" }, "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml" } ok: [sut] => (item=CentOS.yml) => { "ansible_facts": { "__ha_cluster_enable_repo_tasks_file": "/WORKDIR/git-susemyiqp4lz/tests/roles/linux-system-roles.ha_cluster/tasks/enable-repositories/CentOS.yml" }, "ansible_loop_var": "item", "changed": false, "item": "CentOS.yml" } skipping: [sut] => (item=CentOS_9.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS_9.yml", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=CentOS_9.yml) => { "ansible_loop_var": "item", "changed": false, "item": "CentOS_9.yml", "skip_reason": "Conditional result was False" } TASK [linux-system-roles.ha_cluster : Run platform/version specific tasks to enable repositories] *** task path: /WORKDIR/git-susemyiqp4lz/tests/roles/linux-system-roles.ha_cluster/tasks/enable-package-repositories.yml:24 Thursday 15 February 2024 11:36:17 +0000 (0:00:00.036) 0:00:19.003 ***** included: /WORKDIR/git-susemyiqp4lz/tests/roles/linux-system-roles.ha_cluster/tasks/enable-repositories/CentOS.yml for sut TASK [linux-system-roles.ha_cluster : List active CentOS repositories] ********* task path: /WORKDIR/git-susemyiqp4lz/tests/roles/linux-system-roles.ha_cluster/tasks/enable-repositories/CentOS.yml:3 Thursday 15 February 2024 11:36:17 +0000 (0:00:00.025) 0:00:19.029 ***** ok: [sut] => { "changed": false, "cmd": [ "dnf", "repolist" ], "delta": "0:00:00.355855", "end": "2024-02-15 11:36:18.463037", "rc": 0, "start": "2024-02-15 11:36:18.107182" } STDOUT: repo id repo name appstream CentOS Stream 9 - AppStream baseos CentOS Stream 9 - BaseOS beaker-client Beaker Client - RedHatEnterpriseLinux9 beaker-harness Beaker harness beaker-tasks Beaker tasks beakerlib-libraries Copr repo for beakerlib-libraries owned by bgoncalv copr:copr.devel.redhat.com:lpol:qa-tools Copr repo for qa-tools owned by lpol epel-cisco-openh264 Extra Packages for Enterprise Linux 9 openh264 (From Cisco) - x86_64 epel-next Extra Packages for Enterprise Linux 9 - Next - x86_64 extras-common CentOS Stream 9 - Extras packages highavailability CentOS Stream 9 - HighAvailability TASK [linux-system-roles.ha_cluster : Enable CentOS repositories] ************** task path: /WORKDIR/git-susemyiqp4lz/tests/roles/linux-system-roles.ha_cluster/tasks/enable-repositories/CentOS.yml:10 Thursday 15 February 2024 11:36:18 +0000 (0:00:00.656) 0:00:19.685 ***** skipping: [sut] => (item={'id': 'highavailability', 'name': 'HighAvailability'}) => { "ansible_loop_var": "item", "changed": false, "item": { "id": "highavailability", "name": "HighAvailability" }, "skip_reason": "Conditional result was False" } skipping: [sut] => (item={'id': 'resilientstorage', 'name': 'ResilientStorage'}) => { "ansible_loop_var": "item", "changed": false, "item": { "id": "resilientstorage", "name": "ResilientStorage" }, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.ha_cluster : Install role essential packages] ********* task path: /WORKDIR/git-susemyiqp4lz/tests/roles/linux-system-roles.ha_cluster/tasks/main.yml:11 Thursday 15 February 2024 11:36:18 +0000 (0:00:00.025) 0:00:19.711 ***** ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [linux-system-roles.ha_cluster : Check and prepare role variables] ******** task path: /WORKDIR/git-susemyiqp4lz/tests/roles/linux-system-roles.ha_cluster/tasks/main.yml:21 Thursday 15 February 2024 11:36:19 +0000 (0:00:01.079) 0:00:20.790 ***** included: /WORKDIR/git-susemyiqp4lz/tests/roles/linux-system-roles.ha_cluster/tasks/shell_pcs/check-and-prepare-role-variables.yml for sut TASK [linux-system-roles.ha_cluster : Discover cluster node names] ************* task path: /WORKDIR/git-susemyiqp4lz/tests/roles/linux-system-roles.ha_cluster/tasks/shell_pcs/check-and-prepare-role-variables.yml:3 Thursday 15 February 2024 11:36:19 +0000 (0:00:00.031) 0:00:20.821 ***** ok: [sut] => { "ansible_facts": { "__ha_cluster_node_name": "localhost" }, "changed": false } TASK [linux-system-roles.ha_cluster : Collect cluster node names] ************** task path: /WORKDIR/git-susemyiqp4lz/tests/roles/linux-system-roles.ha_cluster/tasks/shell_pcs/check-and-prepare-role-variables.yml:7 Thursday 15 February 2024 11:36:19 +0000 (0:00:00.020) 0:00:20.842 ***** ok: [sut] => { "ansible_facts": { "__ha_cluster_all_node_names": [ "localhost" ] }, "changed": false } TASK [linux-system-roles.ha_cluster : Fail if passwords are not specified] ***** task path: /WORKDIR/git-susemyiqp4lz/tests/roles/linux-system-roles.ha_cluster/tasks/shell_pcs/check-and-prepare-role-variables.yml:17 Thursday 15 February 2024 11:36:19 +0000 (0:00:00.025) 0:00:20.868 ***** skipping: [sut] => (item=ha_cluster_hacluster_password) => { "ansible_loop_var": "item", "changed": false, "item": "ha_cluster_hacluster_password", "skip_reason": "Conditional result was False" } TASK [linux-system-roles.ha_cluster : Fail if nodes do not have the same number of SBD devices specified] *** task path: /WORKDIR/git-susemyiqp4lz/tests/roles/linux-system-roles.ha_cluster/tasks/shell_pcs/check-and-prepare-role-variables.yml:27 Thursday 15 February 2024 11:36:19 +0000 (0:00:00.031) 0:00:20.900 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.ha_cluster : Fail if configuring qnetd on a cluster node] *** task path: /WORKDIR/git-susemyiqp4lz/tests/roles/linux-system-roles.ha_cluster/tasks/shell_pcs/check-and-prepare-role-variables.yml:42 Thursday 15 February 2024 11:36:19 +0000 (0:00:00.007) 0:00:20.907 ***** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.ha_cluster : Fail if no valid level is specified for a fencing level] *** task path: /WORKDIR/git-susemyiqp4lz/tests/roles/linux-system-roles.ha_cluster/tasks/shell_pcs/check-and-prepare-role-variables.yml:52 Thursday 15 February 2024 11:36:19 +0000 (0:00:00.020) 0:00:20.928 ***** TASK [linux-system-roles.ha_cluster : Fail if no target is specified for a fencing level] *** task path: /WORKDIR/git-susemyiqp4lz/tests/roles/linux-system-roles.ha_cluster/tasks/shell_pcs/check-and-prepare-role-variables.yml:60 Thursday 15 February 2024 11:36:19 +0000 (0:00:00.017) 0:00:20.946 ***** TASK [linux-system-roles.ha_cluster : Fail if ha_cluster_node_options contains unknown or duplicate nodes] *** task path: /WORKDIR/git-susemyiqp4lz/tests/roles/linux-system-roles.ha_cluster/tasks/shell_pcs/check-and-prepare-role-variables.yml:80 Thursday 15 February 2024 11:36:19 +0000 (0:00:00.018) 0:00:20.964 ***** fatal: [sut]: FAILED! => { "changed": false } MSG: node_name fields in ha_cluster_node_options must be unique and they must match cluster nodes TASK [Check errors] ************************************************************ task path: /WORKDIR/git-susemyiqp4lz/tests/tasks/assert_node_options_check.yml:17 Thursday 15 February 2024 11:36:19 +0000 (0:00:00.052) 0:00:21.017 ***** ok: [sut] => { "changed": false } MSG: All assertions passed META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* sut : ok=34 changed=1 unreachable=0 failed=0 skipped=21 rescued=2 ignored=0 Thursday 15 February 2024 11:36:19 +0000 (0:00:00.047) 0:00:21.064 ***** =============================================================================== linux-system-roles.ha_cluster : Install role essential packages -------- 17.69s /WORKDIR/git-susemyiqp4lz/tests/roles/linux-system-roles.ha_cluster/tasks/main.yml:11 Gathering Facts --------------------------------------------------------- 0.75s /WORKDIR/git-susemyiqp4lz/tests/tests_node_options_check.yml:9 ---------------- linux-system-roles.ha_cluster : List active CentOS repositories --------- 0.66s /WORKDIR/git-susemyiqp4lz/tests/roles/linux-system-roles.ha_cluster/tasks/enable-repositories/CentOS.yml:3 linux-system-roles.ha_cluster : List active CentOS repositories --------- 0.48s /WORKDIR/git-susemyiqp4lz/tests/roles/linux-system-roles.ha_cluster/tasks/enable-repositories/CentOS.yml:3 linux-system-roles.ha_cluster : Check if system is ostree --------------- 0.27s /WORKDIR/git-susemyiqp4lz/tests/roles/linux-system-roles.ha_cluster/tasks/test_setup.yml:22 linux-system-roles.ha_cluster : Check and prepare role variables -------- 0.06s /WORKDIR/git-susemyiqp4lz/tests/roles/linux-system-roles.ha_cluster/tasks/main.yml:21 linux-system-roles.ha_cluster : Fail if ha_cluster_node_options contains unknown or duplicate nodes --- 0.05s /WORKDIR/git-susemyiqp4lz/tests/roles/linux-system-roles.ha_cluster/tasks/shell_pcs/check-and-prepare-role-variables.yml:80 Check errors ------------------------------------------------------------ 0.05s /WORKDIR/git-susemyiqp4lz/tests/tasks/assert_node_options_check.yml:17 -------- linux-system-roles.ha_cluster : Set platform/version specific variables --- 0.04s /WORKDIR/git-susemyiqp4lz/tests/roles/linux-system-roles.ha_cluster/tasks/set_vars.yml:20 Run the role ------------------------------------------------------------ 0.04s /WORKDIR/git-susemyiqp4lz/tests/tasks/assert_node_options_check.yml:9 --------- linux-system-roles.ha_cluster : Set platform/version specific variables --- 0.04s /WORKDIR/git-susemyiqp4lz/tests/roles/linux-system-roles.ha_cluster/tasks/set_vars.yml:20 linux-system-roles.ha_cluster : Find platform/version specific tasks to enable repositories --- 0.04s /WORKDIR/git-susemyiqp4lz/tests/roles/linux-system-roles.ha_cluster/tasks/enable-package-repositories.yml:3 linux-system-roles.ha_cluster : Find platform/version specific tasks to enable repositories --- 0.03s /WORKDIR/git-susemyiqp4lz/tests/roles/linux-system-roles.ha_cluster/tasks/enable-package-repositories.yml:3 linux-system-roles.ha_cluster : Fail if passwords are not specified ----- 0.03s /WORKDIR/git-susemyiqp4lz/tests/roles/linux-system-roles.ha_cluster/tasks/shell_pcs/check-and-prepare-role-variables.yml:17 linux-system-roles.ha_cluster : Fail if passwords are not specified ----- 0.03s /WORKDIR/git-susemyiqp4lz/tests/roles/linux-system-roles.ha_cluster/tasks/shell_pcs/check-and-prepare-role-variables.yml:17 linux-system-roles.ha_cluster : Enable package repositories ------------- 0.03s /WORKDIR/git-susemyiqp4lz/tests/roles/linux-system-roles.ha_cluster/tasks/main.yml:6 linux-system-roles.ha_cluster : Set platform/version specific variables --- 0.03s /WORKDIR/git-susemyiqp4lz/tests/roles/linux-system-roles.ha_cluster/tasks/main.yml:3 linux-system-roles.ha_cluster : Run platform/version specific tasks to enable repositories --- 0.03s /WORKDIR/git-susemyiqp4lz/tests/roles/linux-system-roles.ha_cluster/tasks/enable-package-repositories.yml:24 Verify node options check is working for various input data ------------- 0.03s /WORKDIR/git-susemyiqp4lz/tests/tests_node_options_check.yml:28 --------------- linux-system-roles.ha_cluster : Collect cluster node names -------------- 0.03s /WORKDIR/git-susemyiqp4lz/tests/roles/linux-system-roles.ha_cluster/tasks/shell_pcs/check-and-prepare-role-variables.yml:7 ---^---^---^---^---^--- # 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. [WARNING]: Consider using the dnf module rather than running 'dnf'. If you need to use command because dnf is insufficient you can add 'warn: false' to this command task or set 'command_warnings=False' in ansible.cfg to get rid of this message. ---^---^---^---^---^---