Hi Kevin, Sorry I'm not able to get your question I have got the above logs when I tried this sequence: reboot; with DPDK; I'm using OVS version - 2.3.1 and DPDK version - 1.7.1. The compilation errors are seen in OVS 2.3.1 with DPDK 1.7.1 as well. But I have solved those errors and the build proceeds fine. I'd like to submit a patch for the same in Git repository. Let me know the process for submitting the patch.
Regards Shankari.V On Fri, Jan 9, 2015 at 11:14 PM, Traynor, Kevin <[email protected]> wrote: > The compile error was consistent with using DPDK 1.8 as the mbuf format > has changed. I’m not sure why you are getting (bad address) connecting to > the db only with DPDK as the DPDK code doesn’t have anything to do with > this. I’ve tried to reproduce but am unable to, my logs below. Did you try > anything to make sure it’s not system state e.g. reboot; with DPDK; without > DPDK; with DPDK ? > > > > [ovs_int]$ sudo ./ovsdb/ovsdb-server > --remote=punix:/usr/local/var/run/openvswitch/db.sock > --remote=db:Open_vSwitch,Open_vSwitch,manager_options --pidfile --detach > > [ovs_int]$ sudo ./utilities/ovs-vsctl --no-wait --verbose > init > > 2015-01-09T17:34:40Z|00002|reconnect|DBG|unix:/usr/local/var/run/openvswitch/db.sock: > entering BACKOFF > > 2015-01-09T17:34:40Z|00003|reconnect|INFO|unix:/usr/local/var/run/openvswitch/db.sock: > connecting... > > 2015-01-09T17:34:40Z|00004|reconnect|DBG|unix:/usr/local/var/run/openvswitch/db.sock: > entering CONNECTING > > 2015-01-09T17:34:40Z|00005|poll_loop|DBG|wakeup due to [POLLOUT] on fd 4 > (<->/usr/local/var/run/openvswitch/db.sock) at lib/stream-fd.c:151 > > 2015-01-09T17:34:40Z|00006|reconnect|INFO|unix:/usr/local/var/run/openvswitch/db.sock: > connected > > 2015-01-09T17:34:40Z|00007|reconnect|DBG|unix:/usr/local/var/run/openvswitch/db.sock: > entering ACTIVE > > 2015-01-09T17:34:40Z|00008|jsonrpc|DBG|unix:/usr/local/var/run/openvswitch/db.sock: > send request, method="monitor", > params=["Open_vSwitch",null,{"Open_vSwitch":{"columns":[]}}], id=0 > > 2015-01-09T17:34:40Z|00009|poll_loop|DBG|wakeup due to [POLLIN] on fd 4 > (<->/usr/local/var/run/openvswitch/db.sock) at lib/stream-fd.c:155 > > 2015-01-09T17:34:40Z|00010|jsonrpc|DBG|unix:/usr/local/var/run/openvswitch/db.sock: > received reply, > result={"Open_vSwitch":{"98aa7f23-74c6-4318-a41b-7c22bef9b6ec":{"new":{}}}}, > id=0 > > > > Thanks, > > Kevin. > > > > *From:* Shankari Vaidyalingam [mailto:[email protected]] > *Sent:* Wednesday, January 7, 2015 8:39 PM > *To:* Traynor, Kevin > *Cc:* Ben Pfaff; [email protected] > > *Subject:* Re: [ovs-discuss] Difference seen in OVSDB initialization with > & without DPDK > > > > Hi > > I resolved the below mentioned compiler errors and the build goes fine. > > But the issue with the database connectivity still persists. Now the error > message seen is different. Pls find the logs below. Let me know how to > resolve this: > > controller@controller-Latitude-E5440:~/$ cd openvswitch-2.3.1 > controller@controller-Latitude-E5440:~/$ sudo ./ovsdb/ovsdb-tool create > /usr/local/etc/openvswitch/conf.db ./vswitchd/vswitch.ovsschema > controller@controller-Latitude-E5440:~/$ sudo ./ovsdb/ovsdb-server > --remote=punix:/usr/local/var/run/openvswitch/db.sock > --remote=db:Open_vSwitch,Open_vSwitch,manager_options --pidfile --detach > controller@controller-Latitude-E5440:~/$ sudo ./utilities/ovs-vsctl > --no-wait --verbose init > > 2015-01-07T20:35:37Z|00002|reconnect|DBG|unix:/usr/local/var/run/openvswitch/db.sock: > entering BACKOFF > I'm executing here 226 > 2015-01-07T20:35:37Z|00003|hmap|DBG|lib/shash.c:112: 6 nodes in bucket (16 > nodes, 8 buckets) > DSBG: Name of the session opened = > unix:/usr/local/var/run/openvswitch/db.sock, pstream_verify_name(name) = 97 > retry = 0 > Can proceed further > About to connect to the dataabase 239 > 2015-01-07T20:35:37Z|00004|reconnect|INFO|unix:/usr/local/var/run/openvswitch/db.sock: > connecting... > 2015-01-07T20:35:37Z|00005|reconnect|DBG|unix:/usr/local/var/run/openvswitch/db.sock: > entering CONNECTING > 2015-01-07T20:35:37Z|00006|poll_loop|DBG|wakeup due to [POLLOUT] on fd 4 > (<->/usr/local/var/run/openvswitch/db.sock) at lib/stream-fd-unix.c:120 > 2015-01-07T20:35:37Z|00007|reconnect|INFO|unix:/usr/local/var/run/openvswitch/db.sock: > connected > 2015-01-07T20:35:37Z|00008|reconnect|DBG|unix:/usr/local/var/run/openvswitch/db.sock: > entering ACTIVE > ovsdb_idl_ > is_alive(idl) = 1 > 2015-01-07T20:35:37Z|00009|jsonrpc|DBG|unix:/usr/local/var/run/openvswitch/db.sock: > send request, method="monitor", > params=["Open_vSwitch",null,{"Open_vSwitch":{"columns":[]}}], id=0 > 2015-01-07T20:35:37Z|00010|jsonrpc|WARN|unix:/usr/local/var/run/openvswitch/db.sock: > send error: Bad address > 2015-01-07T20:35:37Z|00011|poll_loop|DBG|wakeup due to 0-ms timeout at > unix:/usr/local/var/run/openvswitch/db.sock > 2015-01-07T20:35:37Z|00012|reconnect|WARN|unix:/usr/local/var/run/openvswitch/db.sock: > connection dropped (Bad address) > 2015-01-07T20:35:37Z|00013|reconnect|DBG|unix:/usr/local/var/run/openvswitch/db.sock: > entering BACKOFF > DBG: Returning 0 without any action > ovs-vsctl: unix:/usr/local/var/run/openvswitch/db.sock: database > connection failed (Bad address) > DBG: Returning 0 without any actioncontroller@controller-Latitude-E5440:~/$ > > > Regards > > Shankari > > > > On Thu, Jan 8, 2015 at 1:03 AM, Shankari Vaidyalingam < > [email protected]> wrote: > > Hi Kevin > > Thanks for the response. > > I used DPDK-1.7.1 and used the same for building the OVS. The OVS version > I use is OVS 2.3.1. > > I followed the steps mentioned in INSTALL.DPDK in > https://github.com/openvswitch/ovs/blob/master/INSTALL.DPDK.md. > > I'm getting the below error while executing the make command. Pls let me > know whether there exists a patch for resolving the issue. I know how to > resolve the last 2 errors. > > /home/controller/PoC/LLDP/software/dpdk-1.7.1/x86_64-native-linuxapp-gcc/include/rte_common.h:115:2: > warning: cast from function call of type 'uintptr_t' to non-matching type > 'void *' [-Wbad-function-cast] > (typeof(ptr))rte_align_floor_int((uintptr_t)ptr, align) > ^ > /home/controller/PoC/LLDP/software/dpdk-1.7.1/x86_64-native-linuxapp-gcc/include/rte_common.h:133:2: > note: in expansion of macro 'RTE_PTR_ALIGN_FLOOR' > RTE_PTR_ALIGN_FLOOR((typeof(ptr))RTE_PTR_ADD(ptr, (align) - 1), align) > ^ > /home/controller/PoC/LLDP/software/dpdk-1.7.1/x86_64-native-linuxapp-gcc/include/rte_common.h:151:35: > note: in expansion of macro 'RTE_PTR_ALIGN_CEIL' > #define RTE_PTR_ALIGN(ptr, align) RTE_PTR_ALIGN_CEIL(ptr, align) > ^ > /home/controller/PoC/LLDP/software/dpdk-1.7.1/x86_64-native-linuxapp-gcc/include/rte_common.h:176:9: > note: in expansion of macro 'RTE_PTR_ALIGN' > return RTE_PTR_ALIGN(ptr, align) == ptr; > ^ > In file included from lib/dpif.h:393:0, > from lib/bfd.c:27: > lib/ofpbuf.h: In function 'ofpbuf_size': > lib/ofpbuf.h:385:21: error: 'const struct rte_mbuf' has no member named > 'pkt_len' > return b->mbuf.pkt_len; > ^ > lib/ofpbuf.h: In function 'ofpbuf_set_size': > lib/ofpbuf.h:394:12: error: 'struct rte_mbuf' has no member named 'pkt_len' > b->mbuf.pkt_len = v; > ^ > In file included from lib/dpif.h:393:0, > from lib/bfd.c:27: > lib/ofpbuf.h: In function 'ofpbuf_size': > lib/ofpbuf.h:386:1: warning: control reaches end of non-void function > [-Wreturn-type] > } > ^ > make[2]: *** [lib/bfd.lo] Error 1 > make[2]: Leaving directory > `/home/controller/PoC/LLDP/software/openvswitch-2.3.1' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory > `/home/controller/PoC/LLDP/software/openvswitch-2.3.1' > make: *** [all] Error 2 > > Regards > > Shankari.V > > > > On Wed, Jan 7, 2015 at 3:56 PM, Traynor, Kevin <[email protected]> > wrote: > > I notice in the logs you have > “/home/controllerdpdk-1.8.0/x86_64-native-linuxapp-gcc”. DPDK 1.8.0 is not > supported in OVS at present. There is a patch for it but it was causing an > issue with unit test and is being reworked. > > > > I’d suggest rebooting and following the steps in INSTALL.dpdk (with DPDK > 1.7.1) > > > > Thanks, > > Kevin. > > > > *From:* discuss [mailto:[email protected]] *On Behalf Of > *Shankari > Vaidyalingam > *Sent:* Tuesday, January 6, 2015 6:56 PM > *To:* Ben Pfaff > *Cc:* [email protected] > *Subject:* Re: [ovs-discuss] Difference seen in OVSDB initialization with > & without DPDK > > > > Also to add to the below mail which I'd sent pls find below the output of > starting OVS with the debugs enabled: > > controller@controller-Latitude-E5440:~/PoC/LLDP/software/openvswitch-2.3.1$ > sudo ovs-vsctl --no-wait --verbose init[sudo] password for controller: > > 2015-01-06T18:51:12Z|00002|reconnect|DBG|unix:/usr/local/var/run/openvswitch/db.sock: > entering BACKOFF > 2015-01-06T18:51:12Z|00003|hmap|DBG|lib/shash.c:112: 6 nodes in bucket (16 > nodes, 8 buckets) > I'm executing here 226 > Can proceed further > About to connect to the dataabase 239 > ovsdb_idl_is_alive(idl) = 1 > ==== Entering the database section ===== > DBG: s->pstream is NULL > DBG: s->stream is non NULL > 2015-01-06T18:51:12Z|00004|stream_unix|DBG|/usr/local/var/run/openvswitch/db.sock: > connection failed (Connection refused) > 2015-01-06T18:51:12Z|00005|reconnect|INFO|unix:/usr/local/var/run/openvswitch/db.sock: > connecting... > 2015-01-06T18:51:12Z|00006|reconnect|DBG|unix:/usr/local/var/run/openvswitch/db.sock: > entering CONNECTING > 2015-01-06T18:51:12Z|00007|reconnect|INFO|unix:/usr/local/var/run/openvswitch/db.sock: > connection attempt failed (Connection refused) > 2015-01-06T18:51:12Z|00008|reconnect|INFO|unix:/usr/local/var/run/openvswitch/db.sock: > waiting 2.15e+06 seconds before reconnect > 2015-01-06T18:51:12Z|00009|reconnect|DBG|unix:/usr/local/var/run/openvswitch/db.sock: > entering BACKOFF > ovs-vsctl: unix:/usr/local/var/run/openvswitch/db.sock: database > connection failed (Connection refused) > DBG: Trying to > reconnectcontroller@controller-Latitude-E5440:~/PoC/LLDP/software/openvswitch-2.3.1$ > ps -Af | grep ovsdb-server > root 962 1 0 Jan03 ? 00:00:00 ovsdb-server: monitoring > pid 963 > (healthy) > > root 963 962 0 Jan03 ? 00:00:00 ovsdb-server > /etc/openvswitch/conf.db -vconsole:emer -vsyslog:err -vfile:info > --remote=punix:/var/run/openvswitch/db.sock > --private-key=db:Open_vSwitch,SSL,private_key > --certificate=db:Open_vSwitch,SSL,certificate > --bootstrap-ca-cert=db:Open_vSwitch,SSL,ca_cert --no-chdir > --log-file=/var/log/openvswitch/ovsdb-server.log > --pidfile=/var/run/openvswitch/ovsdb-server.pid --detach --monitor > control+ 22079 4381 0 00:21 pts/1 00:00:00 grep --color=auto > ovsdb-server > > Regards > > Shankari.V > > > > On Wed, Jan 7, 2015 at 12:16 AM, Shankari Vaidyalingam < > [email protected]> wrote: > > Hi > > > > The excerpt below was due to a wrong copy paste of the commands at the > command prompt which gave the error message: "No such file or directory". > > The error which I had mentioned in my previous message was: > > controller@controller-Latitude-E5440:~openvswitch-2.3.1$ sudo ovsdb-tool > create /usr/local/etc/openvswitch/conf.db vswitchd/vswitch.ovsschema > controller@controller-Latitude-E5440:~openvswitch-2.3.1$ sudo > ovsdb-server /usr/local/etc/openvswitch/conf.db > --remote=punix:/usr/local/var/run/openvswitch/db.sock > --remote=db:Open_vSwitch,Open_vSwitch,manager_options --pidfile --detach > --log-file > 2015-01-05T07:11:19Z|00001|vlog|INFO|opened log file > /usr/local/var/log/openvswitch/ovsdb-server.log > > > > controller@controller-Latitude-E5440:~openvswitch-2.3.1$ sudo ovs-vsctl > --no-wait init > > I'm executing here 226 > Can proceed further > About to connect to the dataabase 239 > ovsdb_idl_is_alive(idl) = 1 > ==== Entering the database section ===== > DBG: s->pstream is NULL > DBG: s->stream is non NULL > ovs-vsctl: unix:/usr/local/var/run/openvswitch/db.sock: database > connection failed (Connection refused) > > Regards > > Shankari.V > > > > On Tue, Jan 6, 2015 at 10:27 PM, Ben Pfaff <[email protected]> wrote: > > Here's an excerpt from your "with DPDK" log. It looks like you typoed > a command and therefore ovsdb-server didn't start. > > controller@controller-Latitude-E5440:~openvswitch-2.3.1$ > controller@controller-Latitude-E5440:~openvswitch-2.3.1$ sudo > ovsdb-server /usr/local/etc/openvswitch/conf.db > --remote=punix:/usr/local/var/run/openvswitch/db.sock > --remote=db:Open_vSwitch,Open_vSwitch,manager_options --pidfile > --detach --log-file > bash: controller@controller-Latitude-E5440:~openvswitch-2.3.1$: No > such file or directory > > > On Mon, Jan 5, 2015 at 4:11 PM, Shankari Vaidyalingam > <[email protected]> wrote: > > Hi, > > > > I tried executing the steps for initializing the OVSDB-server and the OVS > > given in the below link: > > > > > networkstatic.net/installing-and-configuring-openvswitch-on-ubuntu-12-04-precise-pangolin/ > > > > I'm using Ubuntu Trusty tahr, OVS version 2.3.1 > > > > I was able to get the OVS working for the build which I compiled without > > DPDK. > > But with DPDK_BUILD configured in the Makefile the build produced > "Database > > connection refused" error and the OVS was not getting started because of > > this error. Kindly help me in resolving this issue. > > > > Enclosed the logs separately for "without DPDK" build and for "With DPDK" > > build > > > > Regards, > > Shankari.V > > > > > _______________________________________________ > > discuss mailing list > > [email protected] > > http://openvswitch.org/mailman/listinfo/discuss > > > > > > -- > "I don't normally do acked-by's. I think it's my way of avoiding > getting blamed when it all blows up." Andrew Morton > > > > > > > > >
_______________________________________________ discuss mailing list [email protected] http://openvswitch.org/mailman/listinfo/discuss
