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)
This commit is contained in:
David Vallee Delisle 2021-07-28 11:22:30 -04:00
parent a7c4354b0b
commit 1d2558c7a9
2 changed files with 19 additions and 0 deletions

View File

@ -32,3 +32,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

@ -144,6 +144,24 @@
key: userspace-tso-enable
when: not tripleo_ovs_dpdk_enable_tso|bool
- 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