Merge "Prevent the abusive restart of the octavia services" into stable/victoria

This commit is contained in:
Zuul 2022-04-19 20:37:06 +00:00 committed by Gerrit Code Review
commit 8d4019d6ec
2 changed files with 4 additions and 1 deletions

View File

@ -13,6 +13,7 @@
template:
dest: "/etc/sysconfig/network-scripts/ifcfg-{{ mgmt_port_dev }}"
src: "ifcfg.j2"
register: octavia_ifcfg_file
- name: Bring the management port interface up
become: true
@ -20,3 +21,5 @@
command: "ifup {{ mgmt_port_dev }}"
notify:
- octavia config updated
when:
- octavia_ifcfg_file.changed|bool

View File

@ -71,7 +71,7 @@
- name: retrieve current ip list
set_fact:
current_ip_list: "{{ config_contents.stdout }}"
current_ip_list: "{{ config_contents.stdout | trim }}"
# This isn't perfect as they execution order will make them not match, but we can avoid a restart
# if things have stayed the same.