[ovs-discuss] OVSDB initialization issues

Shankari Vaidyalingam shankari.v.2014 at gmail.com
Wed Dec 31 18:53:14 UTC 2014


Hi Ben,


Thanks for the response.
I had executed the below commands to create the OVSDB server and to start
the same. Can you please let me know whether I have missed any command. I
thought "ovsdb-server" command starts the ovsdb-server. Pls correct me if
my understanding is wrong and let me know whether there are any specific
commands for starting it. But after executing the "'ovsdb-server"' command
also the issue was still there.(logs below)

controller at controller-Latitude-E5440:~$ mkdir -p /usr/local/etc/openvswitch
controller at controller-Latitude-E5440:~$ sudo ovsdb-tool create
/usr/local/etc/openvswitch/conf.db vswitchd/vswitch.ovsschema
ovsdb-tool: I/O error: create: /usr/local/etc/openvswitch/conf.db failed
(File exists)
controller at controller-Latitude-E5440:~$ sudo rm -rvf
/usr/local/etc/openvswitch/conf.db
removed ‘/usr/local/etc/openvswitch/conf.db’
controller at controller-Latitude-E5440:~$ sudo ovsdb-tool create
/usr/local/etc/openvswitch/conf.db vswitchd/vswitch.ovsschema
controller at controller-Latitude-E5440:~$ sudo ovsdb-server
--remote=punix:/usr/local/var/run/openvswitch/db.sock
--remote=db:Open_vSwitch,Open_vSwitch,manager_options
--private-key=db:Open_vSwitch,SSL,private_key
--certificate=db:Open_vSwitch,SSL,certificate
--bootstrap-ca-cert=db:Open_vSwitch,SSL,ca_cert --pidfile --detach
controller at controller-Latitude-E5440:~$ sudo ovs-vsctl --no-wait init
*** Error in `ovs-vsctl': munmap_chunk(): invalid pointer:
0x0000000000de1b0a ***

controller at controller-Latitude-E5440:~$ sudo ovsdb-server& >>>  Started
OVSDB-server with this command
[1] 23618
controller at controller-Latitude-E5440:~$
2014-12-31T08:29:48Z|00001|ovsdb_server|INFO|ovsdb-server (Open vSwitch)
2.3.1

controller at controller-Latitude-E5440:~$
2014-12-31T08:29:58Z|00002|memory|INFO|2460 kB peak resident set size after
10.0 seconds

controller at controller-Latitude-E5440:~$ ps -eaf | grep ovsdb-server
root     14228 18126  0 12:24 pts/1    00:00:00 sudo ovsdb-server
root     14229 14228  0 12:24 pts/1    00:00:00 ovsdb-server  >>>> Here it
shows ovsdb-server is running
control+ 14281 14230  0 12:25 pts/4    00:00:00 grep --color=auto
ovsdb-server


Regards
Shankari

On Wed, Dec 31, 2014 at 8:13 PM, Shankari Vaidyalingam <
shankari.v.2014 at gmail.com> wrote:

> Hi
>
> I'm facing the below error while trying to initialize the database after
> starting, with ovs-vsctl.
> Please find the logs below:
>
> OVS version - 2.3.0
>
> controller at controller-Latitude-E5440:~$ sudo ovs-vsctl --no-wait init
> [sudo] password for controller:
> ovs-vsctl: unix:/usr/local/var/run/openvswitch/db.sock: database
> connection failed (Connection refused)
> controller at controller-Latitude-E5440:~$ ps -eaf | grep ovsdb-server
> root     14228 18126  0 12:24 pts/1    00:00:00 sudo ovsdb-server
> root     14229 14228  0 12:24 pts/1    00:00:00 ovsdb-server
> control+ 14281 14230  0 12:25 pts/4    00:00:00 grep --color=auto
> ovsdb-server
> controller at controller-Latitude-E5440:~$ ovs-vswitch --version
> No command 'ovs-vswitch' found, did you mean:
>  Command 'ovs-vswitchd' from package 'openvswitch-switch' (main)
> ovs-vswitch: command not found
> controller at controller-Latitude-E5440:~$ ovs-vswitchd --version
> ovs-vswitchd (Open vSwitch) 2.3.0
> Compiled Dec 31 2014 12:16:37
> OpenFlow versions 0x1:0x1
> controller at controller-Latitude-E5440:~$
>
> Before the above steps I executed the below commands:
>
>
> controller at controller-Latitude-E5440:~$ sudo /sbin/modprobe openvswitch
> controller at controller-Latitude-E5440:~$ /sbin/lsmod | grep openvswitch
> openvswitch            75931  0
> gre                    13796  1 openvswitch
> vxlan                  37619  1 openvswitch
> libcrc32c              12644  1 openvswitch
> controller at controller-Latitude-E5440:~$ mkdir -p
> /usr/local/etc/openvswitch
> controller at controller-Latitude-E5440:~$ sudo ovsdb-tool create
> /usr/local/etc/openvswitch/conf.db vswitchd/vswitch.ovsschema
> ovsdb-tool: I/O error: create: /usr/local/etc/openvswitch/conf.db failed
> (File exists)
> controller at controller-Latitude-E5440:~$ sudo rm -rvf
> /usr/local/etc/openvswitch/conf.db
> removed ‘/usr/local/etc/openvswitch/conf.db’
> controller at controller-Latitude-E5440:~$ sudo ovsdb-tool create
> /usr/local/etc/openvswitch/conf.db vswitchd/vswitch.ovsschema
> controller at controller-Latitude-E5440:~$ sudo ovsdb-server
> --remote=punix:/usr/local/var/run/openvswitch/db.sock
> --remote=db:Open_vSwitch,Open_vSwitch,manager_options
> --private-key=db:Open_vSwitch,SSL,private_key
> --certificate=db:Open_vSwitch,SSL,certificate
> --bootstrap-ca-cert=db:Open_vSwitch,SSL,ca_cert --pidfile --detach
> controller at controller-Latitude-E5440:~$ sudo ovs-vsctl --no-wait init
> *** Error in `ovs-vsctl': munmap_chunk(): invalid pointer:
> 0x0000000000de1b0a ***
> controller at controller-Latitude-E5440:~$ cd ..
> controller at controller-Latitude-E5440:~$ sudo ovs-vsctl --no-wait init
> ovs-vsctl: unix:/usr/local/var/run/openvswitch/db.sock: database
> connection failed (Connection refused)
> controller at controller-Latitude-E5440:~$ sudo ovsdb-server&
> [1] 23618
> controller at controller-Latitude-E5440:~$
> 2014-12-31T08:29:48Z|00001|ovsdb_server|INFO|ovsdb-server (Open vSwitch)
> 2.3.1
>
> controller at controller-Latitude-E5440:~$
> 2014-12-31T08:29:58Z|00002|memory|INFO|2460 kB peak resident set size after
> 10.0 seconds
>
>
> Please let me know how to resolve this issue
>
> Regards
> Shankari.V
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openvswitch.org/pipermail/ovs-discuss/attachments/20150101/301e984b/attachment-0002.html>


More information about the discuss mailing list