Skip to content

Commit bcc2c75

Browse files
committed
Add variable to override all download retries
Currently each edpm_* role defines their own set of variables to control the number of retries and delay between retries when attempting to download and install the system packages. There is over 20 such roles that involve it already, however there is no way to set those variables easily for all roles at once – the only option for someone is to set all about 40 variables in worst scenario. This commit introduces two variables that would be used as first choice, if provided, by all the roles to allow the setting the download retries much easier.
1 parent 33f0da6 commit bcc2c75

File tree

22 files changed

+44
-44
lines changed

22 files changed

+44
-44
lines changed

roles/edpm_bootstrap/defaults/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@
1919

2020

2121
# seconds between retries for download tasks
22-
edpm_bootstrap_download_delay: 5
22+
edpm_bootstrap_download_delay: "{{ edpm_download_delay | default(5) }}"
2323

2424
# number of retries for download tasks
25-
edpm_bootstrap_download_retries: 5
25+
edpm_bootstrap_download_retries: "{{ edpm_download_retries | default(5) }}"
2626

2727
# List of packages that are requred to bootstrap EDPM.
2828
edpm_bootstrap_packages_bootstrap:

roles/edpm_frr/defaults/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ edpm_frr_volumes:
8686
- /run/frr:/run/frr:shared,z
8787

8888
# seconds between retries for download tasks
89-
edpm_frr_images_download_delay: 5
89+
edpm_frr_images_download_delay: "{{ edpm_download_delay | default(5) }}"
9090

9191
# number of retries for download tasks
92-
edpm_frr_images_download_retries: 5
92+
edpm_frr_images_download_retries: "{{ edpm_download_retries | default(5) }}"

roles/edpm_iscsid/defaults/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@
2020
# All variables within this role should have a prefix of "edpm_iscsid"
2121

2222
# seconds between retries for download tasks
23-
edpm_iscsid_image_download_delay: 5
23+
edpm_iscsid_image_download_delay: "{{ edpm_download_delay | default(5) }}"
2424

2525
# number of retries for download tasks
26-
edpm_iscsid_image_download_retries: 5
26+
edpm_iscsid_image_download_retries: "{{ edpm_download_retries | default(5) }}"
2727

2828
edpm_iscsid_debug: "{{ (ansible_verbosity | int) >= 2 | bool }}"
2929

roles/edpm_kernel/defaults/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@
1818
# All variables intended for modification should be placed in this file.
1919

2020
# seconds between retries for download tasks
21-
edpm_kernel_download_delay: 5
21+
edpm_kernel_download_delay: "{{ edpm_download_delay | default(5) }}"
2222

2323
# number of retries for download tasks
24-
edpm_kernel_download_retries: 5
24+
edpm_kernel_download_retries: "{{ edpm_download_retries | default(5) }}"
2525

2626
edpm_kernel_extra_modules: {}
2727
edpm_kernel_extra_packages: []

roles/edpm_libvirt/defaults/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@
2222
# service name this role manages
2323
edpm_libvirt_service_name: libvirt
2424
# seconds between retries for download tasks
25-
edpm_libvirt_download_delay: 5
25+
edpm_libvirt_download_delay: "{{ edpm_download_delay | default(5) }}"
2626
# number of retries for download tasks
27-
edpm_libvirt_download_retries: 5
27+
edpm_libvirt_download_retries: "{{ edpm_download_retries | default(5) }}"
2828
# this sould map to the libvirt
2929
edpm_libvirt_services:
3030
- virtlogd

roles/edpm_logrotate_crond/defaults/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@
2020
# All variables within this role should have a prefix of "edpm_logrotate_crond"
2121

2222
# seconds between retries for download tasks
23-
edpm_logrotate_crond_download_delay: 5
23+
edpm_logrotate_crond_download_delay: "{{ edpm_download_delay | default(5) }}"
2424

2525
# number of retries for download tasks
26-
edpm_logrotate_crond_download_retries: 5
26+
edpm_logrotate_crond_download_retries: "{{ edpm_download_retries | default(5) }}"
2727

2828
edpm_logrotate_crond_cronie_package: cronie
2929

roles/edpm_multipathd/defaults/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ edpm_container_cli: "{{ container_cli | default('podman') }}"
1919
# All variables intended for modification should be placed in this file.
2020

2121
edpm_multipathd_image: "quay.io/podified-antelope-centos9/openstack-multipathd:current-podified"
22-
edpm_multipathd_image_download_delay: 5
23-
edpm_multipathd_image_download_retries: 5
22+
edpm_multipathd_image_download_delay: "{{ edpm_download_delay | default(5) }}"
23+
edpm_multipathd_image_download_retries: "{{ edpm_download_retries | default(5) }}"
2424

2525
edpm_multipathd_command: "/usr/sbin/multipathd -d"
2626
edpm_multipathd_volumes:

roles/edpm_network_config/defaults/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ edpm_network_config_systemrole_nmstate_dependencies:
3535
- NetworkManager-ovs
3636

3737
# seconds between retries for download tasks
38-
edpm_network_config_download_delay: 5
38+
edpm_network_config_download_delay: "{{ edpm_download_delay | default(5) }}"
3939

4040
# number of retries for download tasks
41-
edpm_network_config_download_retries: 5
41+
edpm_network_config_download_retries: "{{ edpm_download_retries | default(5) }}"
4242

4343
edpm_network_config_update: false
4444
edpm_network_config_async_poll: 3

roles/edpm_neutron_dhcp/defaults/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@
2222
edpm_neutron_dhcp_service_name: neutron-dhcp
2323

2424
# seconds between retries for download tasks
25-
edpm_neutron_dhcp_images_download_delay: 5
25+
edpm_neutron_dhcp_images_download_delay: "{{ edpm_download_delay | default(5) }}"
2626

2727
# number of retries for download tasks
28-
edpm_neutron_dhcp_images_download_retries: 5
28+
edpm_neutron_dhcp_images_download_retries: "{{ edpm_download_retries | default(5) }}"
2929

3030
edpm_neutron_dhcp_agent_config_src: "/var/lib/openstack/configs/{{ edpm_neutron_dhcp_service_name }}"
3131
edpm_neutron_dhcp_agent_config_dir: "/var/lib/config-data/ansible-generated/neutron-dhcp-agent"

roles/edpm_neutron_metadata/defaults/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
edpm_neutron_metadata_service_name: neutron-metadata
66

77
# seconds between retries for download tasks
8-
edpm_neutron_metadata_images_download_delay: 5
8+
edpm_neutron_metadata_images_download_delay: "{{ edpm_download_delay | default(5) }}"
99

1010
# number of retries for download tasks
11-
edpm_neutron_metadata_images_download_retries: 5
11+
edpm_neutron_metadata_images_download_retries: "{{ edpm_download_retries | default(5) }}"
1212

1313
edpm_neutron_metadata_config_src: "/var/lib/openstack/configs/{{ edpm_neutron_metadata_service_name }}"
1414
edpm_neutron_metadata_agent_config_dir: /var/lib/config-data/ansible-generated/neutron-ovn-metadata-agent

0 commit comments

Comments
 (0)