Migration: process port names properly during migration

Without this fix the "$port" weren't properly cleaned up, and
the subsequent ovs-vsctl calls failed (seen in the logs).

With this change it works.

Change-Id: I7acfc5ce7f584d99d4e4e041531191b6fd4e71ec
changes/12/579212/7
Miguel Angel Ajo 4 years ago committed by Miguel Angel Ajo
parent 515257f501
commit 2d3e58487f
  1. 2
      migration/tripleo_environment/playbooks/roles/cleanup/tasks/main.yml

@ -3,7 +3,7 @@
for p in `ovs-vsctl show | egrep 'qr-|ha-|qg-|rfp-' | grep Interface | awk '{print $2}'`
do
# p will be having quotes. Eg. "hr-xxxx". So strip the quotes
port=`echo "$p" | sed -e 's/^"//' -e 's/"$//'`
p=`echo $p | sed -e 's/"//g'`
ovs-vsctl clear Interface $p external-ids
ovs-vsctl set Interface $p admin-state=down
done

Loading…
Cancel
Save