Hi Gurucharan, Now it's working fine. I need to just change the below ovs-vsctl path only.
>>`ovs-vsctl add-br br0 -- set bridge br0 datapath_type=netdev` to `./utilities/ovs-vsctl add-br br0 -- set bridge br0 datapath_type=netdev` I think INSTALL.DPDK.md should be update accordingly. Thanks for your suggestion. Thanks & Regards Arkajit Ghosh Tata Consultancy Services Mailto: [email protected] Website: http://www.tcs.com ____________________________________________ Experience certainty. IT Services Business Solutions Consulting ____________________________________________ -----Gurucharan Shetty <[email protected]> wrote: ----- To: Arkajit Ghosh <[email protected]> From: Gurucharan Shetty <[email protected]> Date: 01/22/2015 09:54PM Cc: discuss <[email protected]> Subject: Re: [ovs-discuss] OVS-Database Connection Refused while creating a bridge with databath_type="netdev" On Thu, Jan 22, 2015 at 2:18 AM, Arkajit Ghosh <[email protected]> wrote: > > Hi, > > I am trying to execute the ovs-vswitchd with DPDK (dpdk-1.7.1). But > getting OVS-database connection refused while creating a bridge with > datapath_type="netdev" . > > OVS version: Latest Clone from Git (2-3 days back) > > Here are the steps which I followed : > > #################################################### > > # sysctl -w vm.nr_hugepages=2000 > > # mkdir -p /mnt/huge > > # mount -t hugetlbfs hugetlbfs /mnt/huge > > # modprobe uio > > # insmod $DPDK_BUILD/kmod/igb_uio.ko > > # $DPDK_DIR/tools/dpdk_nic_bind.py --force --bind=igb_uio eth0 > > # mkdir -p /usr/local/etc/openvswitch > > # mkdir -p /usr/local/var/run/openvswitch > > # rm /usr/local/etc/openvswitch/conf.db > > # cd $OVS_DIR > > # ./ovsdb/ovsdb-tool create /usr/local/etc/openvswitch/conf.db \ > ./vswitchd/vswitch.ovsschema > > # ./ovsdb/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=Open_vSwitch,SSL,certificate \ > --bootstrap-ca-cert=db:Open_vSwitch,SSL,ca_cert --pidfile --detach > ``` > > # ./utilities/ovs-vsctl --no-wait init > ``` > # export DB_SOCK=/usr/local/var/run/openvswitch/db.sock > > # ./vswitchd/ovs-vswitchd --dpdk -c 0x1 -n 4 -- unix:$DB_SOCK --pidfile > --detach > > # `ovs-vsctl add-br br0 -- set bridge br0 datapath_type=netdev` > > ovs-vsctl: unix:/var/run/openvswitch/db.sock: database connection > failed (connection refused) You have started ovsdb-server with /usr/local/var/run/openvswitch/db.sock. ovs-vsctl thinks that file is present in /var/run/openvswitch/db.sock because that is how it has been compiled with. It looks to me that you are changing default directories at some places and then letting default directories to be used at other places. =====-----=====-----===== Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you
_______________________________________________ discuss mailing list [email protected] http://openvswitch.org/mailman/listinfo/discuss
