[ovs-dev] Problem with Log Levels
Ben Pfaff
blp at nicira.com
Wed Nov 14 05:29:40 UTC 2012
The standard init scripts detach the OVS daemons from the console, so
that logging to the console has no effect. Use file or syslog logging
instead.
On Wed, Nov 14, 2012 at 09:58:38AM +0500, Saleha Asad wrote:
> I saw this command in a legacy script being used by an older version of
> OVS. I just had a look at the man page it says that the "For compatibility
> with older versions of OVS, *any* is accepted as a word but has no effect",
> so I now modified my command according to the man page and used the
> following.
>
> ovs-vsctl vlog/set file:off
> ovs-vsctl vlog/set syslog:off
> ovs-vsctl vlog/set console:dbg
>
> This turns off the log messages for file and syslog and sets the log level
> of console to dbg. But still after using these commands I am unable to see
> any OVS log messages on my console. For example when I used the command
>
> ovs-vsctl add-port br1 gre0 -- set interface gre0 type=gre
> options:remote_ip=abc
>
> I should see a warning on the console
>
> |WARN|gre0: bad gre 'remote_ip'
> |ERR|gre0: gre type requires valid 'remote_ip' argument
>
> As this is the error I get in the log file when the log messages for file
> are turned on but I am unable to see anything on the console.
>
>
> On Tue, Nov 13, 2012 at 8:26 PM, Ben Pfaff <blp at nicira.com> wrote:
>
> > On Tue, Nov 13, 2012 at 01:27:36PM +0500, Saleha Asad wrote:
> > > I am running open-vswitch-1.7.1 on x86. I want to set the log level so
> > that
> > > all the error messages are printed to the console. For this I am using
> > the
> > > command:
> > > ovs-appctl vlog/set ANY:ANY:OFF
> > >
> > > From this command what I understand is that it will show all the error
> > > messages on console and in syslog and will turn off the log messages for
> > > file. [...]
> >
> > That is wrong, and I can't figure out why you think that. Why do you
> > think that this will have that effect?
> >
More information about the dev
mailing list