So 1.1.1.102/32 and 2.2.2.102/32 are not seen in each other’s tables. Are there any errors in contrail-schema logs? Can you check if the RT of the logical-router object is both imported and exported in both routing-instances?
RT of the router can be got from UI Monitor>Infrastructure> Config Nodes> <node-name>, Click on ‘Config’ link at the bottom. Then follow logical-routers link Routing instance details can be got from http://<control-node<http://%3ccontrol-node> ip>:8083/Snh_ShowRoutingInstanceSummaryReq?search_string= Vedu From: Anda Nicolae <anico...@lenovo.com> Date: Tuesday, July 11, 2017 at 5:49 PM To: Vedamurthy Ananth Joshi <vjo...@juniper.net>, "dev@lists.opencontrail.org" <dev@lists.opencontrail.org> Subject: RE: [opencontrail-dev] Contrail GUI Virtual Router IP address Thank you, Vedu. I have created 2 VMs, first VM having an IP address from VN1 subnet and the 2nd VM having an IP address from VN2 subnet. route -n command on the 1st VM shows that default gateway is 1.1.1.1 route -n command on the 2nd VM shows that default gateway is 2.2.2.1. As I have written in the above e-mail, virtual router IP address is 1.1.1.100. I have retrieved the vrf associated to each VN and below it is the routing table associated to each vrf. [root@Hercules ~]$rt --dump 4 Flags: L=Label Valid, P=Proxy ARP, T=Trap ARP, F=Flood ARP vRouter inet4 routing table 0/4/unicast Destination PPL Flags Label Nexthop Stitched MAC(Index) 0.0.0.0/8 0 - 0 - 1.0.0.0/16 0 - 0 - 1.1.0.0/24 0 - 0 - 1.1.1.0/32 24 TF - 1 - 1.1.1.1/32 32 PT - 8 - 1.1.1.2/32 24 TF - 1 - 1.1.1.3/32 24 TF - 1 - 1.1.1.4/32 24 TF - 1 - 1.1.1.5/32 24 TF - 1 - 1.1.1.6/32 24 TF - 1 - 1.1.1.7/32 24 TF - 1 - 1.1.1.8/32 24 TF - 1 - [truncated output] 1.1.1.100/32 24 TF - 1 - 1.1.1.101/32 32 P - 69 2:ae:a9:f1:8e:71(218780) 1.1.1.102/32 24 TF - 1 - [truncated output] [root@Hercules ~]$rt --dump 7 Flags: L=Label Valid, P=Proxy ARP, T=Trap ARP, F=Flood ARP vRouter inet4 routing table 0/7/unicast Destination PPL Flags Label Nexthop Stitched MAC(Index) 0.0.0.0/8 0 - 0 - 1.0.0.0/8 0 - 0 - 2.0.0.0/16 0 - 0 - 2.1.0.0/16 0 - 0 - 2.2.0.0/24 0 - 0 - 2.2.1.0/24 0 - 0 - 2.2.2.0/32 24 TF - 1 - 2.2.2.1/32 32 PT - 8 - 2.2.2.2/32 32 PT - 8 - 2.2.2.3/32 24 TF - 1 - 2.2.2.4/32 24 TF - 1 - 2.2.2.5/32 24 TF - 1 - 2.2.2.6/32 24 TF - 1 - 2.2.2.7/32 24 TF - 1 - 2.2.2.8/32 24 TF - 1 - [truncated output] 2.2.2.100/32 24 TF - 1 - 2.2.2.101/32 24 TF - 1 - 2.2.2.102/32 32 P - 82 2:7c:84:1c:eb:e9(209628) [truncated output] Thanks, Anda From: Vedamurthy Ananth Joshi [mailto:vjo...@juniper.net] Sent: Tuesday, July 11, 2017 2:02 PM To: Anda Nicolae; dev@lists.opencontrail.org Subject: Re: [opencontrail-dev] Contrail GUI Virtual Router IP address IIRC, the port-ip assigned to the router ports does not affect the forwarding. I think you should check if the routes of the other VN is present in the routing table of each VN(route-target of the router object is used to ensure that it happens). You may want to dump the object details to check. Vedu From: Dev <dev-boun...@lists.opencontrail.org<mailto:dev-boun...@lists.opencontrail.org>> on behalf of Anda Nicolae <anico...@lenovo.com<mailto:anico...@lenovo.com>> Date: Tuesday, July 11, 2017 at 12:54 PM To: "dev@lists.opencontrail.org<mailto:dev@lists.opencontrail.org>" <dev@lists.opencontrail.org<mailto:dev@lists.opencontrail.org>> Subject: [opencontrail-dev] Contrail GUI Virtual Router IP address Hi all, I am currently investigating https://bugs.launchpad.net/opencontrail/+bug/1696760. I have a setup with 3 VMs: 1st VM is Openstack node, the 2nd VM is Contrail controller node and the 3rd VM is Contrail compute node. CentOS is running on all the 3 VMs. I have used fab command to install Contrail on VMs. From Contrail GUI I have created 2 Virtual Networks each with its own (different) IP subnet (1.1.1.0/24 and 2.2.2.0/24). By default, Contrail GUI adds 1.1.1.1 as gateway IP address for the 1st VN and 2.2.2.1 as gateway IP address for the 2nd VN. I need to create a logical router to route the traffic between the Virtual Networks above. There are 2 ways in which I can create this virtual router: 1. Using neutron cmds: neutron router-create router1 neutron router-interface-add router1 <name of 1.1.1.0/24 subnet> neutron router-interface-add router1 <name of 2.2.2.0/24 subnet> In this case, the IP addresses of the router interfaces are 1.1.1.1 and 2.2.2.1, which matches the gateway IP address of each subnet. 2. Using Contrail GUI In this case, the IP addresses of the router interfaces are 1.1.1.100 and 2.2.2.100, which doesn't match the gateway IP address of each subnet, and the traffic is not router between VNs. I have started looking over the code to see where is gateway IP address .100 configured. I am stuck at /usr/lib/python2.7/site-packages/vnc_cfg_api_server/gen/resource_client.py, line 5762, function: def virtual_router_ip_address(self, virtual_router_ip_address). The above file is autogenerated and this is a setter function. Can you please give a hint on how to continue my investigation? Thanks, Anda
_______________________________________________ Dev mailing list Dev@lists.opencontrail.org http://lists.opencontrail.org/mailman/listinfo/dev_lists.opencontrail.org