Configure vhost-postcopy-support

Libvirt PostCopy helps with live-migration. For postcopy to work with
vhost interface, we need to configure ovs with other_config:vhost-postcopy-support=true

Related: https://bugzilla.redhat.com/show_bug.cgi?id=1986567
Change-Id: If1239369b9c650ab62be58b4ae125cff120fa49a
(cherry picked from commit 2dec045cdd)
(cherry picked from commit 1d2558c7a9)
(cherry picked from commit 47b499ac50)
This commit is contained in:
David Vallee Delisle 2021-07-28 11:22:30 -04:00
parent eba3be96bd
commit bd0fcf363f
2 changed files with 19 additions and 0 deletions

View File

@ -31,3 +31,4 @@ tripleo_ovs_dpdk_pmd_auto_lb: false
tripleo_ovs_dpdk_pmd_load_threshold: ""
tripleo_ovs_dpdk_pmd_improvement_threshold: ""
tripleo_ovs_dpdk_pmd_rebal_interval: ""
tripleo_ovs_dpdk_vhost_postcopy_support: false

View File

@ -126,6 +126,24 @@
key: emc-insert-inv-prob
when: not tripleo_ovs_dpdk_emc_insertion_probablity|string
- name: Enable vhost-postcopy-support
openvswitch_db:
table: open_vswitch
record: .
col: other_config
key: vhost-postcopy-support
value: "{{ tripleo_ovs_dpdk_vhost_postcopy_support }}"
when: tripleo_ovs_dpdk_vhost_postcopy_support|bool
- name: Disable vhost-postcopy-support
openvswitch_db:
state: absent
table: open_vswitch
record: .
col: other_config
key: vhost-postcopy-support
when: not tripleo_ovs_dpdk_vhost_postcopy_support|bool
- name: Enable DPDK OVS PMD Auto Load Balance
openvswitch_db:
table: open_vswitch