[NETVIRT-702] Floatingip access from host is broken, Created: 01/Jun/17 Updated: 15/Dec/17 Resolved: 09/Jun/17 |
|
| Status: | Resolved |
| Project: | netvirt |
| Component/s: | General |
| Affects Version/s: | Carbon |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | Manjeet Singh Bhatia | Assignee: | Chetan Arakere Gowdru |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Operating System: All |
||
| Attachments: |
|
| External issue ID: | 8581 |
| Description |
|
I deployed devstack with odl using carbon and new netvirt odl-netvirt-openstack, Instance is not accessible from host via fip. I am using master version of openstack neutron and networking-odl, It is broken with ocata + carbon as well. It is affecting some gate jobs in openstack networking-odl which are trying to test public network connectivity. I've tried berylliyum + legacy netvirt it works. steps to reproduce once you have devstack up with private and public (external network) created. 1. Make sure you have public network interface ( in devstack case it will vm is not accessible. |
| Comments |
| Comment by Chetan Arakere Gowdru [ 02/Jun/17 ] |
|
Request to collect below required log/dump outputs for further analyze the issue. (1) karaf logs NAT TRACE Enable: (2) Please capture the following outputs after initiating traffic to reach FIP. OVS Dump flows and Groups: (3) Please collect the following REST API call output http://<ODL-IP>:8181/restconf/config/odl-nat:external-networks/ |
| Comment by Manjeet Singh Bhatia [ 02/Jun/17 ] |
|
here are the flows https://github.com/manjeetbhatia/ODL_DEBUG I also noticed the br-ex is not connected, when i dumped flow. https://github.com/manjeetbhatia/ODL_DEBUG/blob/master/ovsvsctlshow here is conf I used https://github.com/openstack/networking-odl/blob/master/devstack/local.conf.example |
| Comment by Chetan Arakere Gowdru [ 06/Jun/17 ] |
|
From the latest logs, I see the issue is with table=25 flow missing from DNAT which is resulting is this failure. Ex: cookie=0x8000004, duration=71830.221s, table=26, n_packets=5, n_bytes=490, priority=10,ip,metadata=0x30d40/0xfffffe,nw_src=10.0.0.11 actions=set_field:172.24.5.5->ip_src,write_metadata:0x30d42/0xfffffe,goto_table:28 The below review has addressed this issue. https://git.opendaylight.org/gerrit/#/c/58176/ Request to re-test the same with this fix and let us know if there are any issue. Regarding br-ex, for external-network connectivity, we create an patch-port between br-int and br-ex and the public-interface(br-physnet1) will be added to br-ex. other_config : {local_ip="10.29.13.231", provider_mappings="physnet1:br-physnet1"}neutron -v net-create external-net --router:external --provider:network_type=flat --provider:physical_network=physnet1 Instead of br-ex(br-physnet1) and the public interface will be added this bridge. Bridge "br-physnet1"
We assigned the public interface ip to this bridge there-after for testing. |
| Comment by Manjeet Singh Bhatia [ 07/Jun/17 ] |
|
Hi chetan, I span devstack (stable/ocata) with carbon-snapshot-0.6 + new netvirt I am using pubic:veth-pub-int as ODL_PROVIDER and I can see that patched to br-int c839bb03-7475-4804-9dd4-436e058e2ab9 I tcpdumped on veth-pub-ex (public interface ) patched via (veth-pub-int) will appreciate your help here. |
| Comment by Manjeet Singh Bhatia [ 07/Jun/17 ] |
|
I also tried new snapshot-0.7.0 with current master, seems like a regression there, with that dhcp lease is not happening, from logs I see dnsmasq being running. |
| Comment by Chetan Arakere Gowdru [ 08/Jun/17 ] |
|
Attachment Steps for connectivity FloatingIP.pdf has been added with description: Steps fo Floating External connectivity |
| Comment by Chetan Arakere Gowdru [ 08/Jun/17 ] |
|
Attachment local.conf has been added with description: allinone devstack(ocata) local.conf |
| Comment by Chetan Arakere Gowdru [ 08/Jun/17 ] |
|
Hi Manjeet, I'm not much aware of configuration on openstack side, but I have tried to capture step-by-step configuration(please find attached) we did for testing DNAT Floating IP connectivity in our local set-up. Please go through it and lets us see if anything is missing. Thanks, |
| Comment by Manjeet Singh Bhatia [ 08/Jun/17 ] |
|
Hi chetan, I see in your conf mechanism_driver commented out, is default driver opendaylight ? i guess we need to use opendaylight as mechanism driver |
| Comment by Vivekanandan Narasimhan [ 08/Jun/17 ] |
|
Manjeet, Please note the ODL section in chetan's local.conf.. it contains: In the above , the ODL_V2DRIVER will make opendaylight_v2 available in mechanism_drivers of /etc/neutron/plugins/ml2/ml2_conf.ini after stacking. Vivek |
| Comment by Manjeet Singh Bhatia [ 09/Jun/17 ] |
|
Hi chetan !! thanks for info and local.conf, I tried that out, I've had replaced the HOST_IP and ODL_MGR_IP, from ovs logs i figured out it is not able to connect 2017-06-09T07:01:39.303Z|00105|reconnect|INFO|tcp:192.168.237.11:6640: connection attempt failed (Connection refused) I see this issue on both centos 7.1 and ubuntu xenial. anything I am missing ? |
| Comment by Chetan Arakere Gowdru [ 09/Jun/17 ] |
|
Hi Manjeet, We do create bridge br-int and br-ex manually before starting devstack. sudo ovs-vsctl add-br br-int |
| Comment by Manjeet Singh Bhatia [ 09/Jun/17 ] |
|
ok, I relied on stack script, because it take care of that part, but what about this log trace from ovsdb-server.log 2017-06-09T07:01:39.303Z|00105|reconnect|INFO|tcp:192.168.237.11:6640: connection attempt failed (Connection refused) |
| Comment by Chetan Arakere Gowdru [ 09/Jun/17 ] |
|
This error is due to ODL not up and running. Once karaf is started and feature odl-netvirt-openstack is loaded, it will be connected(Please find snapshot attached for your reference) |
| Comment by Chetan Arakere Gowdru [ 09/Jun/17 ] |
|
Attachment karaf-start.jpg has been added with description: Karaf start logs |
| Comment by Chetan Arakere Gowdru [ 09/Jun/17 ] |
|
Attachment karaf-start.gif has been added with description: karaf start logs |
| Comment by Manjeet Singh Bhatia [ 09/Jun/17 ] |
|
make sense !! thanks Im trying that out. |
| Comment by Chetan Arakere Gowdru [ 09/Jun/17 ] |
|
$ netstat -an | grep 6640 chetan.arakere@clpstpdfc592 MINGW64 /d/Open-Day-Light/ODL-Boron/netvirt/vpnservice (boron-branch) chetan.arakere@clpstpdfc592 MINGW64 /d/Open-Day-Light/ODL-Boron/netvirt/vpnservice (boron-branch) |
| Comment by Manjeet Singh Bhatia [ 09/Jun/17 ] |
|
Hi chetan, stack ended in success, but I don't see opendaylight got configured, there is no snapshot inside opendaylight dir, that has to be done manually as well ? like getting snapshot and doing feature install ? |
| Comment by Manjeet Singh Bhatia [ 09/Jun/17 ] |
|
I manually configured opendaylight, I've created ovs bridges and public network as instructed on doc, it shows status active and ip=10.0.0.5 , but I don't see in dhcp lease log that ever happened, I am unable to ping from within network namespace, here is my ovs-vstcl show now Manager "tcp:192.168.237.11:6640" Port br-ex ovs_version: "2.6.1" |
| Comment by Manjeet Singh Bhatia [ 09/Jun/17 ] |
|
Hi chetan, I used this conf (https://github.com/manjeetbhatia/useful_files/blob/master/local_conf_carbon) with carbon-snapshot-0.6 , I see floating ip is accessible, I can ping and ssh to fip. if you get chance, can you please walk over conf, to confirm everything is correct, I used public in ODL_PROVIDER_MAPPINGS because in gate jobs it will be using external network named public. thanks for your help !! |