Allow setting vswitchd opts

Bug #1952225 reported by Edward Hope-Morley
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Neutron Open vSwitch Charm
Undecided
Unassigned
openvswitch (Ubuntu)
Undecided
Unassigned

Bug Description

/etc/default/openvswitch allows setting OVS_CTL_OPTS but that gets applies to all daemons. If we want to set ovs-vswitchd specific options we need a way to pass them through. ovs-ctl [1] has variables like OVS_VSWITCHD_OPTIONS that get set to '' with no regard for globals so cannot currently be set in /etc/default/openvswitch. We propose the following change to [1] to allow these overrides to be set in /etc/default/openvswitch:

340c340
< OVS_VSWITCHD_OPTIONS=
---
> OVS_VSWITCHD_OPTIONS=${OVS_VSWITCHD_OPTIONS:-''}

This will allow us to do e.g.

OVS_VSWITCHD_OPTIONS="-vnetdev_offload:dbg -vnetdev_offload_tc:dbg"

in /etc/default/openvswitch.

[1] /usr/share/openvswitch/scripts/ovs-ctl

Revision history for this message
Edward Hope-Morley (hopem) wrote :

Also adding neutron-openvswitch charm since it currently writes the /etc/default/openvswitch and does not yet support OVS_VSWITCHD_OPTIONS.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers