diff --git a/.github/workflows/ansible-test.yml b/.github/workflows/ansible-test.yml index ad7f826a..b883d4ac 100644 --- a/.github/workflows/ansible-test.yml +++ b/.github/workflows/ansible-test.yml @@ -88,7 +88,7 @@ jobs: ansible_version: "devel" cassandra_version: - package_version: "311x" - tar_version: "3.11.11" + tar_version: "3.11.17" test_scenario: - docker_image: "ubuntu2204" python_version: "3.10" @@ -157,7 +157,7 @@ jobs: ansible_version: "devel" cassandra_version: - package_version: "40x" - tar_version: "4.0.5" + tar_version: "4.0.9" test_scenario: #- docker_image: centos7 # python_version: "2.7" @@ -226,7 +226,7 @@ jobs: ansible_version: "devel" cassandra_version: - package_version: "41x" - tar_version: "4.1.4" + tar_version: "4.1.7" test_scenario: #- docker_image: centos7 # python_version: "2.7" diff --git a/tests/integration/targets/setup_cassandra_cluster_manager/tasks/main.yml b/tests/integration/targets/setup_cassandra_cluster_manager/tasks/main.yml index 1f8f91aa..321b24aa 100644 --- a/tests/integration/targets/setup_cassandra_cluster_manager/tasks/main.yml +++ b/tests/integration/targets/setup_cassandra_cluster_manager/tasks/main.yml @@ -33,6 +33,8 @@ - name: Install required_packages package: name: "{{ required_packages }}" + retries: 5 + delay: 5 - name: Ensure Cassandra service from setup_cassandra isn't running service: @@ -45,22 +47,30 @@ package: name: sudo state: present + retries: 5 + delay: 5 - name: Install OpenJDK package yum: name: "{{ openjdk }}" state: present + retries: 5 + delay: 5 when: ansible_os_family == 'RedHat' - name: Run the equivalent of "apt-get update" apt: update_cache: yes + retries: 5 + delay: 5 when: ansible_os_family == 'Debian' - name: Install required pip packages pip: name: "{{ pip_packages }}" state: present + retries: 5 + delay: 5 - name: Download ant package and unarchive unarchive: @@ -68,6 +78,8 @@ dest: /usr/local remote_src: yes validate_certs: False + retries: 10 + delay: 5 - name: Create a symbolic link for ant file: @@ -75,7 +87,7 @@ src: "/usr/local/apache-ant-{{ ant_version }}/" dest: /usr/local/ant -- name: +- name: "Adds ant script" blockinfile: path: /etc/profile.d/ant.sh marker: "#" @@ -128,6 +140,8 @@ pip: name: ccm state: present + retries: 5 + delay: 5 - ansible.builtin.shell: find /usr -name ccm -ls @@ -170,6 +184,8 @@ CCM_CONFIG_DIR: "/home/cassandra/config" CASSANDRA_HOME: "/home/cassandra" PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/ant/bin + retries: 5 + delay: 5 #- name: Add nodes to the Cassandra cluster # ansible.builtin.shell: "sudo -E -u cassandra bash -c \"{{ ccm_cmd }} populate -n {{ cassandra_nodes }}\""