Skip to content

Commit 1200488

Browse files
authored
M #-: VR: Erase servers.cfg to allow HAProxy start after VIP removal (fix) (#141)
1 parent ff7bcb6 commit 1200488

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

appliances/VRouter/HAProxy/main.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,10 @@ def configure(basedir: '/etc/haproxy', confdir: '/etc/conf.d')
8282
timeout client 120s
8383
timeout server 120s
8484
CONFIG
85+
86+
# Ensure HAProxy starts without any effective config, otherwise it'd be possible
87+
# for it to fail when for example re-contexting removed a VIP.
88+
file "#{basedir}/servers.cfg", '', mode: 'u=rw,g=r,o=', overwrite: true
8589
end
8690

8791
def toggle(operations)

0 commit comments

Comments
 (0)