Your commands show starting ovsdb-server twice: once with the options I'd expect, and then later without any useful options. Why did you do that?
Can you figure out why ovs-vsctl reports a memory error? On Thu, Jan 01, 2015 at 12:23:14AM +0530, Shankari Vaidyalingam wrote: > 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@controller-Latitude-E5440:~$ mkdir -p /usr/local/etc/openvswitch > controller@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@controller-Latitude-E5440:~$ sudo rm -rvf > /usr/local/etc/openvswitch/conf.db > removed ‘/usr/local/etc/openvswitch/conf.db’ > controller@controller-Latitude-E5440:~$ sudo ovsdb-tool create > /usr/local/etc/openvswitch/conf.db vswitchd/vswitch.ovsschema > controller@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@controller-Latitude-E5440:~$ sudo ovs-vsctl --no-wait init > *** Error in `ovs-vsctl': munmap_chunk(): invalid pointer: > 0x0000000000de1b0a *** > > controller@controller-Latitude-E5440:~$ sudo ovsdb-server& >>> Started > OVSDB-server with this command > [1] 23618 > controller@controller-Latitude-E5440:~$ > 2014-12-31T08:29:48Z|00001|ovsdb_server|INFO|ovsdb-server (Open vSwitch) > 2.3.1 > > controller@controller-Latitude-E5440:~$ > 2014-12-31T08:29:58Z|00002|memory|INFO|2460 kB peak resident set size after > 10.0 seconds > > controller@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 < > [email protected]> 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@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@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@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@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@controller-Latitude-E5440:~$ > > > > Before the above steps I executed the below commands: > > > > > > controller@controller-Latitude-E5440:~$ sudo /sbin/modprobe openvswitch > > controller@controller-Latitude-E5440:~$ /sbin/lsmod | grep openvswitch > > openvswitch 75931 0 > > gre 13796 1 openvswitch > > vxlan 37619 1 openvswitch > > libcrc32c 12644 1 openvswitch > > controller@controller-Latitude-E5440:~$ mkdir -p > > /usr/local/etc/openvswitch > > controller@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@controller-Latitude-E5440:~$ sudo rm -rvf > > /usr/local/etc/openvswitch/conf.db > > removed ‘/usr/local/etc/openvswitch/conf.db’ > > controller@controller-Latitude-E5440:~$ sudo ovsdb-tool create > > /usr/local/etc/openvswitch/conf.db vswitchd/vswitch.ovsschema > > controller@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@controller-Latitude-E5440:~$ sudo ovs-vsctl --no-wait init > > *** Error in `ovs-vsctl': munmap_chunk(): invalid pointer: > > 0x0000000000de1b0a *** > > controller@controller-Latitude-E5440:~$ cd .. > > controller@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@controller-Latitude-E5440:~$ sudo ovsdb-server& > > [1] 23618 > > controller@controller-Latitude-E5440:~$ > > 2014-12-31T08:29:48Z|00001|ovsdb_server|INFO|ovsdb-server (Open vSwitch) > > 2.3.1 > > > > controller@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 > > > _______________________________________________ > discuss mailing list > [email protected] > http://openvswitch.org/mailman/listinfo/discuss _______________________________________________ discuss mailing list [email protected] http://openvswitch.org/mailman/listinfo/discuss
