[ovs-discuss] Ubuntu 12.04: ovsdbmonitor - authorization failure

Vasu Dasari vdasari at gmail.com
Fri Sep 21 17:47:59 UTC 2012


Hi,

I am not able to get ovsdbmonitor working.I am getting authorization
failure wen connecting to localhost.

I installed openvswitch packages and its python dependencies in my system.

ii  openvswitch-common                     1.4.0-1ubuntu1.2
       Open vSwitch common components
ii  openvswitch-controller                 1.4.0-1ubuntu1.2
       Open vSwitch controller implementation
ii  openvswitch-datapath-dkms              1.4.0-1ubuntu1.2
       Open vSwitch datapath module source - DKMS version
ii  openvswitch-pki                        1.4.0-1ubuntu1.2
       Open vSwitch public key infrastructure dependency package
ii  openvswitch-switch                     1.4.0-1ubuntu1.2
       Open vSwitch switch implementations
ii  python-openvswitch                     1.4.0-1ubuntu1.2
       Python bindings for Open vSwitch
ii  libjson-glib-1.0-0                     0.14.2-1
       GLib JSON manipulation library
ii  libjson0                               0.9-1ubuntu1
       JSON manipulation library - shared library
ii  python-simplejson                      2.3.2-1
        simple, fast, extensible JSON encoder/decoder for Python
ii  python-twisted-conch                   1:11.1.0-1
       Twisted SSH Implementation

ovsdb-server is also running:
root at precise:~# ps -aef | grep ovsdb-serv
root       887   886  0 12:15 ?        00:00:00 ovsdb-server
/etc/openvswitch/conf.db -vANY:CONSOLE:EMER -vANY:SYSLOG:ERR
-vANY:FILE:INFO --remote=punix:/var/run/openvswitch/db.sock
--remote=db:Open_vSwitch,manager_options --private-key=db:SSL,private_key
--certificate=db:SSL,certificate --bootstrap-ca-cert=db:SSL,ca_cert
--no-chdir --log-file=/var/log/openvswitch/ovsdb-server.log
--pidfile=/var/run/openvswitch/ovsdb-server.pid --detach --monitor

I can connect to ovsdb using ovsdb-client as well:
root at precise:~# ovsdb-client list-dbs
Open_vSwitch

But, when I try to connect to the same db via ovsdbmonitor, I am seeing
authorization error:
Hostname: 127.0.0.1
SSH Password: openflow # My only user on the system is openflow/openflow
Connect Target: unix:/var/run/openvswitch/db.sock

Even the command used in the ovsdbmonitor program is returning success when
used from shell:
root at precise:~# /usr/bin/ovsdb-client transact
unix:/var/run/openvswitch/db.sock '["Open_vSwitch",
{"op":"select","table":"Controller", "where":[]}]'
[{"rows":[]}]

In the Log window see the authorization failure errors continuously:

Authentication failure for 127.0.0.1
Connection attempt to 127.0.0.1 timed out
Authentication failure for 127.0.0.1


Can you help me in getting ovsdbmonitor working?

Thanks,
-Vasu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openvswitch.org/pipermail/ovs-discuss/attachments/20120921/8ad4890b/attachment.html>


More information about the discuss mailing list