Re: [ovs-discuss] Using ovsdb-client transaction capability

2013-02-15 Thread Reid Price
So how did you come up with this transaction? One thing you might want to note echo [What-You-Have-Below] hangs for me in bash (can't ctrl-C, etc). Try escaping things properly (add single-quotes perhaps), otherwise you are killing your machine with an absurd shell expansion. For example:

Re: [ovs-discuss] Using ovsdb-client transaction capability

2013-02-15 Thread Jereme Lamps
sudo strace ovsdb-client -v transact ["Open_vSwitch",{"rows":[{"bridges":["set",[]]}],"until":"==","where":[["_uuid","==",["uuid","7b733b72-17f7-41c7-9f0a-641686db2dcd"]]],"timeout":0,"op":"wait","table":"Open_vSwitch","columns":["bridges"]},{"uuid-name":"row095f7ccc_ccb9_4c1e_94e8_b304deb6986f","o

Re: [ovs-discuss] Using ovsdb-client transaction capability

2013-02-15 Thread Ben Pfaff
You're definitely doing something wrong. Even "strace true" prints tons of output. On Fri, Feb 15, 2013 at 07:00:27PM -0600, Jereme Lamps wrote: > Running strace over the command does not output anything either :( > > On Fri, Feb 15, 2013 at 6:40 PM, Ben Pfaff wrote: > > > Maybe it's trying to

Re: [ovs-discuss] Using ovsdb-client transaction capability

2013-02-15 Thread Jereme Lamps
Is there like a basic transact json I can run as a sanity check just to see if a basic one goes through?? On Fri, Feb 15, 2013 at 7:00 PM, Jereme Lamps wrote: > Running strace over the command does not output anything either :( > > > On Fri, Feb 15, 2013 at 6:40 PM, Ben Pfaff wrote: > >> Maybe

Re: [ovs-discuss] Using ovsdb-client transaction capability

2013-02-15 Thread Jereme Lamps
Running strace over the command does not output anything either :( On Fri, Feb 15, 2013 at 6:40 PM, Ben Pfaff wrote: > Maybe it's trying to connect to a database socket that isn't there? > Try "strace". > > On Fri, Feb 15, 2013 at 06:37:58PM -0600, Jereme Lamps wrote: > > Dang. I tried it on my

Re: [ovs-discuss] Using ovsdb-client transaction capability

2013-02-15 Thread Ben Pfaff
Maybe it's trying to connect to a database socket that isn't there? Try "strace". On Fri, Feb 15, 2013 at 06:37:58PM -0600, Jereme Lamps wrote: > Dang. I tried it on my setup at home and its the same thing. It freezes > when I run > 'sudo ovsdb-client -v transact [...]' > It appears that the json

Re: [ovs-discuss] Using ovsdb-client transaction capability

2013-02-15 Thread Jereme Lamps
Dang. I tried it on my setup at home and its the same thing. It freezes when I run 'sudo ovsdb-client -v transact [...]' It appears that the json is never even being sent, because I have the server on verbose, and /var/log/syslog is not reporting receiving anything except for its' timed wakeups. O

Re: [ovs-discuss] Using ovsdb-client transaction capability

2013-02-15 Thread Ben Pfaff
That doesn't make any sense to me. Sorry, I don't know what to tell you. On Fri, Feb 15, 2013 at 04:03:17PM -0700, Jereme Lamps wrote: > And -v did not output anything. > > On Fri, Feb 15, 2013 at 4:01 PM, Jereme Lamps wrote: > > > Okay, I ran sudo ovsdb-client -v transact [...] > > and it is

Re: [ovs-discuss] Using ovsdb-client transaction capability

2013-02-15 Thread Jereme Lamps
And -v did not output anything. On Fri, Feb 15, 2013 at 4:01 PM, Jereme Lamps wrote: > Okay, I ran sudo ovsdb-client -v transact [...] > and it is not hanging now, but after if completes I run > sudo ovsdb-client dump > and nothing is changed, all the tables are still empty... > > > On Fri, Feb

Re: [ovs-discuss] Using ovsdb-client transaction capability

2013-02-15 Thread Jereme Lamps
Okay, I ran sudo ovsdb-client -v transact [...] and it is not hanging now, but after if completes I run sudo ovsdb-client dump and nothing is changed, all the tables are still empty... On Fri, Feb 15, 2013 at 3:53 PM, Ben Pfaff wrote: > On Fri, Feb 15, 2013 at 03:49:19PM -0700, Jereme Lamps wro

Re: [ovs-discuss] Using ovsdb-client transaction capability

2013-02-15 Thread Ben Pfaff
On Fri, Feb 15, 2013 at 03:49:19PM -0700, Jereme Lamps wrote: > You can see the transact request that is sent. When I try to run: > sudo ovsdb-client transact [...] > It just hangs. If you use -v, what do you see? > Would I need to generate my own uuid somehow? No. > Also, do i need to append

[ovs-discuss] Using ovsdb-client transaction capability

2013-02-15 Thread Jereme Lamps
Hello, so I want to be able to use the ovsdb-client to directly modify the contents of the table, to add a bridge for example. To see what this should look like in json, I run: sudo ovs-vsctl --verbose add-br br0 and get 2013-02-15T22:00:23Z|8|jsonrpc|DBG|unix:/usr/local/var/run/openvswitch/db.

Re: [ovs-discuss] how to report the links

2013-02-15 Thread Justin Pettit
I'm not sure I understand the question. Depending on how you set up the flow table, you can either explicitly send LLDP packets to the controller or let them not hit any flow, which will send them to the controller. You don't need to set any capabilities. --Justin On Feb 15, 2013, at 11:48

Re: [ovs-discuss] how to report the links

2013-02-15 Thread vis reddy
Justin, should the switch indicate something in the capabilities/features/some other way when the session is established,  if the controller can install a flow with the destination mac of lldp mac on the switch it would be good. Is this the way or if the switch directly send the lldp packets wil

Re: [ovs-discuss] [ovs-dev] Kernel Crash with VXLAN source code

2013-02-15 Thread Endre Karlson
I replied to the wrong address but yes Lori is right I guess :) 2013/2/15 Endre Karlson > Its a git repo is here: > > git clone git://openvswitch.org/openvswitch > > > Then you should build for your OS and install it. > > > Endre. > Den 15. feb. 2013 14:06 skrev "Jagadish Nadimpalli" < > jagadis