Skip to content

Commit 16781d0

Browse files
author
Jiří Suchomel
authored
Merge pull request #2022 from jsuchome/evacuate-lb-5.0
[5.0] upgrade: Fixes for neutron-evacuate-lbaasv2-agent execution (SOC-11171)
2 parents 670746c + da5370c commit 16781d0

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

chef/cookbooks/crowbar/recipes/prepare-upgrade-scripts.rb

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -231,9 +231,6 @@
231231
owner "root"
232232
group "root"
233233
action :create
234-
variables(
235-
use_ha: use_ha
236-
)
237234
only_if { roles.include? "neutron-network" }
238235
end
239236

chef/cookbooks/crowbar/templates/default/crowbar-lbaas-evacuation.sh.erb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,10 @@ rm -f $UPGRADEDIR/crowbar-lbaas-evacuation-failed
3131

3232
if systemctl --quiet is-active openstack-neutron-lbaasv2-agent.service; then
3333
log "Evacuating neutron-lbaasv2-agent on $hostname"
34-
use_crm=<%= @use_ha ? "--use_crm" : "" %>
35-
/usr/bin/neutron-evacuate-lbaasv2-agent $use_crm $delete_ns \
34+
/usr/bin/neutron-evacuate-lbaasv2-agent $delete_ns \
3635
--host $hostname \
3736
--config-file /etc/neutron/lbaas-connection.conf \
38-
--config-file /etc/neutron/neutron.conf
37+
--config-dir /etc/neutron/neutron.conf.d
3938

4039
ret=$?
4140
if [ $ret != 0 ] ; then

0 commit comments

Comments
 (0)