Re: sample [raw] output of openstack<->odl communication

Luis Gomez

Cool, I will take a look over the weekend.


On Jun 12, 2015, at 2:55 AM, Flavio Fernandes <ffernand@...> wrote:

Added a bash script that will emulate Openstack and OVS, so ODL can be ran ‘standalone’,
while getting events from neutron-nrothbound as well as openvswitch.

The script is located here [1] and here [2].
To work on L3 with ODL, I normally do these [3].

While the script is very much tailored to mimic the steps to create tenant … associate floatingIP,
it can hopefully be useful for other tasks you may need while testing/developing ODL.


— flavio

[3]: echo 'ovsdb.l3.fwd.enabled=yes' >> ./etc/ ; rm -rf ./data ; ./bin/karaf
   feature:install odl-ovsdb-openstack
      log:set debug org.opendaylight.ovsdb.openstack.netvirt.impl.NeutronL3Adapter

On Jun 10, 2015, at 6:53 AM, Flavio Fernandes <ffernand@...> wrote:

Added postman collection [1] you can use to repeat these steps.

To emulate creation of ovs ports that go with these steps, look at the description of the entries [2]:
  - Add Neutron Port For dhcp sub1
  - Add Neutron Port For vm1

— flavio

On Jun 9, 2015, at 12:24 PM, Flavio Fernandes <ffernand@...> wrote:

Hi Mat,

In this example, I stack a single o/s node and ran the following commands: [cmds]

It will:
- create tenant, user (lines 8, 9)
- create external net for tenant (line 15)
- create external subnet (line 18)
In context of tenant, it will:
- create tenant router (line 38)
- set router gateway (line 39)
- create tenant internal net and subnet (lines 41, 42)
- create router interface on tenant internal subnet (line 43)
- boot a tenant vm (line 46)
- create floating ip and associate it with tenant vm (lines 48, 50)

A txt for neutron->odl is here [capTxt] a wireshark capture is here [capBin].
If you look at [karaf] karaf.log, you can see a lot of info on how that percolates into odl’s ovsdb netvirt.
A history of ovs commands that happened in the O/S node are here [ovsLog].

The commands used:

- capture to screen:
   sudo tcpdump -Ann -i eth1 tcp port 8080 and 'tcp[13] & 8!=0' | tee tcpdump.txt

- capture to file:
   sudo tcpdump -vv -w tcpdump.cap -i eth1 -s 0 tcp port 8080

- dump ovs history (thanks shague!):
   ovsdb-tool -mm show-log

— flavio


ovsdb-dev mailing list

Join { to automatically receive all group messages.