hello again,
indeed it works, i've tested the following (openvswitch 2.13.4 / el7)
/etc/sysconfig/openvswitch
OPTIONS="--ovs-vswitchd-options='-vconsole:off -vfile:off -vsyslog:info'
--ovsdb-server-options='-vconsole:off -vfile:off -vsyslog:info'"
the final cmdline look like this
CGroup: /system.slice/ovsdb-server.service
└─14339 ovsdb-server /etc/openvswitch/conf.db -vconsole:emer
-vsyslog:err -vfile:info --remote=punix:/var/run/openvswitch/db.sock
--private-key=db:Open_vSwitch,SSL,private_key
--certificate=db:Open_vSwitch,SSL,certificate
--bootstrap-ca-cert=db:Open_vSwitch,SSL,ca_cert -vconsole:off -vfile:off
-vsyslog:info --no-chdir
--log-file=/var/log/openvswitch/ovsdb-server.log
--pidfile=/var/run/openvswitch/ovsdb-server.pid --detach
CGroup: /system.slice/ovs-vswitchd.service
└─14396 ovs-vswitchd unix:/var/run/openvswitch/db.sock
-vconsole:emer -vsyslog:err -vfile:info --mlockall -vconsole:off
-vfile:off -vsyslog:info --no-chdir
--log-file=/var/log/openvswitch/ovs-vswitchd.log
--pidfile=/var/run/openvswitch/ovs-vswitchd.pid --detach
i find it a bit "ugly" since you have the options twice in the cmdline,
but if it's fine for you it's fine for me
Le 23/09/2021 à 14:54, Rémi Jouannet a écrit :
Hello
sorry i've missed that option
i'm gonna test it and i will send a different patch to enhance usage()
Le 23/09/2021 à 14:26, David Marchand a écrit :
Hello Rémi,
On Tue, Sep 21, 2021 at 3:03 PM <remijouan...@gmail.com> wrote:
From: Remi Jouannet <remi.jouan...@outscale.com>
Add three new options to configure log level at runtime with ovs-ctl
--vconsole, --vsyslog-level and --vfile-level
I think the same can be achieved using --ovs-vswitchd-options and
consorts.
This can be set in /etc/sysconfig/openvswitch in RHEL.
# Specify additional options, for example to start with debug logs:
# --ovs-vswitchd-options='-vconsole:dbg -vfile:dbg'
# --ovsdb-server-options='-vconsole:dbg -vfile:dbg'
Can you have a try?
This was introduced in fce20b8b73b1 ("ovs-ctl: Permit to specify
additional options").
Maybe ovs-ctl is missing some hints in its usage() string.
_______________________________________________
dev mailing list
d...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-dev