[ovs-discuss] OVS-Database Connection Refused while creating a bridge with databath_type="netdev"

Gurucharan Shetty shettyg at nicira.com
Thu Jan 22 16:24:30 UTC 2015


On Thu, Jan 22, 2015 at 2:18 AM, Arkajit Ghosh <arkajit.ghosh at tcs.com> 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.



More information about the discuss mailing list