[ffwd] Add fix for OVN DB vip change

There was introduction of separate VIP address for ovn db in train.
This resolves several issues with HA but causes failures during the
FFWD process when old clients can't talk to the DB as it is now
listening on different address. We fix it by changing ovs settings
during the hybrid mode setup. Everyone using OVN is required to run
this nova_hybrid_mode to retain ability to create and migrate
instances during the upgrade process.

Resolves: rhbz#1871834

Change-Id: Ieba3dcb2548b1bae965d47cbeb286549581fe91c
This commit is contained in:
Lukas Bezdicka 2020-08-24 18:33:56 +02:00
parent 9ba27e1ef8
commit 3505d95630
1 changed files with 15 additions and 1 deletions

View File

@ -294,4 +294,18 @@ outputs:
name: virt_sandbox_use_netlink
persistent: yes
state: yes
upgrade_tasks: []
upgrade_tasks:
- name: Switch ovn remote setting
tags:
- never
- nova_hybrid_state
when: step|int == 0
block:
- name: Get ovn remote setting
shell: |
ovs-vsctl get open . external_ids:ovn-remote
register: ovn_remote
- name: Set new ovn remote setting
shell: |
ovs-vsctl set open . external_ids:ovn-remote="tcp:{{ ovn_dbs_vip | ipwrap }}:6642"
when: ovn_dbs_vip not in ovn_remote.stdout