Hi, Am Dienstag, den 23.02.2021, 13:43 -0800 schrieb Ben Pfaff: > On Mon, Feb 22, 2021 at 12:25:22PM +0100, Benjamin Drung wrote: > > Package: openvswitch-switch > > Version: 2.15.0+ds1-2 > > Severity: normal > > > > Hi, > > > > Since we run into a log spam issue (probably upstream bug #135 > > [1]), we > > want to raise the log level and disable the logging to file (syslog > > is > > enough for us). > > > > Sadly `/usr/share/openvswitch/scripts/ovs-ctl` (called by > > ovsdb-server.service) hard-codes the log levels and has no way to > > configure them: > > > > ``` > > set "$@" -vconsole:emer -vsyslog:err -vfile:info > > ``` > > > > Please support configuring the log levels via > > `/etc/default/openvswitch-switch`. > > I think you can do that already in /etc/default/openvswitch-switch > with > OVS_CTL_OPTS='--ovs-vswitchd-options=-vwhatever' > It can undoubtedly be improved (I'm not sure multiword options will > work).
Thanks for pointing it out. I tried setting OVS_CTL_OPTS='--ovsdb-server-options="-vsyslog:warn -vfile:off" --ovs- vswitchd-options="-vsyslog:warn -vfile:off"' and that works. So it is possible to configure the log level. What was lacking was the documentation. Are these options documented somewhere? I haven't found them. In case they are documented, can /etc/default/openvswitch-switch mention the location of those (e.g. add "see man page of XXXXXXX")? > Open vSwitch works pretty hard to not spam log files, so I'd > encourage > you to report whatever excessive logging you're seeing to upstream. That log spamming was already reported upstream by someone else: https://github.com/openvswitch/ovs-issues/issues/135 -- Benjamin Drung Senior DevOps Engineer and Debian & Ubuntu Developer Compute Platform Operations 1&1 IONOS SE | Greifswalder Str. 207 | 10405 Berlin | Deutschland E-Mail: benjamin.dr...@ionos.com | Web: www.ionos.de Hauptsitz Montabaur, Amtsgericht Montabaur, HRB 24498 Vorstand: Hüseyin Dogan, Dr. Martin Endreß, Claudia Frese, Henning Kettler, Arthur Mai, Matthias Steinberg, Achim Weiß Aufsichtsratsvorsitzender: Markus Kadelke Member of United Internet