Merge "Disable mlockall if postcopy is enabled" into stable/ussuri

This commit is contained in:
Zuul 2021-08-23 23:44:05 +00:00 committed by Gerrit Code Review
commit f644943726
2 changed files with 29 additions and 14 deletions

View File

@ -32,3 +32,4 @@ 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
tripleo_ovs_dpdk_vhost_postcopy_ovs_options: "--mlockall=no"

View File

@ -126,23 +126,37 @@
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 }}"
- name: Enable postcopy support
when: tripleo_ovs_dpdk_vhost_postcopy_support|bool
block:
- 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 }}"
- name: Disable mlockall in ovs
replace:
path: '/etc/sysconfig/openvswitch'
regexp: '^OPTIONS.*'
replace: 'OPTIONS="{{ tripleo_ovs_dpdk_vhost_postcopy_ovs_options }}"'
- name: Disable vhost-postcopy-support
openvswitch_db:
state: absent
table: open_vswitch
record: .
col: other_config
key: vhost-postcopy-support
- name: Disable postcopy support
when: not tripleo_ovs_dpdk_vhost_postcopy_support|bool
block:
- name: Disable vhost-postcopy-support
openvswitch_db:
state: absent
table: open_vswitch
record: .
col: other_config
key: vhost-postcopy-support
- name: Return ovs OPTIONS to default
replace:
path: '/etc/sysconfig/openvswitch'
regexp: '^OPTIONS.*'
replace: 'OPTIONS=""'
- name: Enable DPDK OVS PMD Auto Load Balance
openvswitch_db: