Re: [openstack-dev] [Openstack] Neutron: Internet not available in VM instances

2016-10-06 Thread kamalakannan sanjeevan
Hi Mattei,

I just have these lines active in l3agent.ini

interface_driver =neutron.agent.linux.interface.OVSInterfaceDriver
external_network_bridge =

Hope that looks fine. Do we need to specify the external_network_bridge. Do
we need any other parameters.

Regards
Kamal


On Thu, Oct 6, 2016 at 3:36 PM, Remo Mattei  wrote:

> what’s your l3agent.ini says about external?
>
> On Oct 6, 2016, at 06:16, kamalakannan sanjeevan <
> chirukamalakan...@gmail.com> wrote:
>
> Hello,
>
> I am not able to connect to internet in teh spawned VM's.
>
>
> Ethernet card details:
>
> *Eth1 bridged through OVS(mybridge)  - 172.27.10.76*
> *Eth3-
> 192.168.182.251*
>
> after executing the command
>
> iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE
>
> iptables -t nat -A POSTROUTING -o mybridge -j MASQUERADE
>
> - I see teh connectivity to VM's from my host name  ie 172.27.10.76 also
> affected.
>
> root@VFSR1:~# ovs-vsctl show
> 37f38767-0a2b-45fd-9507-abef7fd2d5c9
> Bridge br-int
> fail_mode: secure
> Port "qr-2ff64ff8-b8"
> tag: 6
> Interface "qr-2ff64ff8-b8"
> type: internal
> Port patch-tun
> Interface patch-tun
> type: patch
> options: {peer=patch-int}
> Port "qvo310233a4-9f"
> tag: 6
> Interface "qvo310233a4-9f"
> Port br-int
> Interface br-int
> type: internal
> Port "tap6bc359b6-f0"
> tag: 6
> Interface "tap6bc359b6-f0"
> type: internal
> Port "qvo703c764e-23"
> tag: 5
> Interface "qvo703c764e-23"
> Port int-mybridge
> Interface int-mybridge
> type: patch
> options: {peer=phy-mybridge}
> Port "qg-333a2d2b-ca"
> tag: 5
> Interface "qg-333a2d2b-ca"
> type: internal
>
>
>
>
>
>
>
>
>
> * Bridge mybridgePort mybridgeInterface
> mybridgetype: internalPort "eth1"
> Interface "eth1"Port phy-mybridgeInterface
> phy-mybridgetype: patchoptions:
> {peer=int-mybridge}*
> Bridge br-tun
> fail_mode: secure
> Port br-tun
> Interface br-tun
> type: internal
> Port patch-int
> Interface patch-int
> type: patch
> options: {peer=patch-tun}
> ovs_version: "2.5.0"
>
>
> Below is my network and router details
>
> root@VFSR1:~# neutron net-list
> +--+-+--
> ---+
> | id   | name|
> subnets |
> +--+-+--
> ---+
> | 51739543-b7d1-414b-bec1-9b38c3e5d5d7 | public  |
> 0db9fa02-27eb-4f38-8693-200719fc1fbf 172.27.10.0/24 |
> | bf919707-b1eb-4d8f-90fe-5bcf0e07dce3 | private |
> 7fddc311-7938-44c4-abd4-e5095adba422 192.168.0.0/24 |
> +--+-+--
> ---+
> root@VFSR1:~# neutron router-list
> +--++---
> 
> 
> +---
> --+---+
> | id   | name   |
> external_gateway_info
>
>   |
> distributed | ha|
> +--++---
> 
> 
> +---
> --+---+
> | 323a6782-46aa-458e-ad76-f9462d8ad955 | router | {"network_id":
> "51739543-b7d1-414b-bec1-9b38c3e5d5d7", "enable_snat": true,
> "external_fixed_ips": [{"subnet_id": "0db9fa02-27eb-4f38-8693-200719fc1fbf",
> "ip_address": "172.27.10.101"}]} | False   | False |
> +--++---
> 
> 
> +---
> --+---+
>
> Below are my instances created
>
> root@VFSR1:~# nova list
> +--+++--
> --+-++
> | ID   | Name   | Status | Task State |
> Power State | Networks   |
> 

Re: [openstack-dev] [Openstack] Neutron: Internet not available in VM instances

2016-10-06 Thread Remo Mattei
what’s your l3agent.ini says about external? 
> On Oct 6, 2016, at 06:16, kamalakannan sanjeevan 
>  wrote:
> 
> Hello,
> 
> I am not able to connect to internet in teh spawned VM's.
> 
> 
> Ethernet card details:
> Eth1 bridged through OVS(mybridge)  - 172.27.10.76
> Eth3- 
> 192.168.182.251
> 
> after executing the command
> 
> iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE 
> 
> iptables -t nat -A POSTROUTING -o mybridge -j MASQUERADE
> 
> - I see teh connectivity to VM's from my host name  ie 172.27.10.76 also 
> affected.
> 
> root@VFSR1:~# ovs-vsctl show
> 37f38767-0a2b-45fd-9507-abef7fd2d5c9
> Bridge br-int
> fail_mode: secure
> Port "qr-2ff64ff8-b8"
> tag: 6
> Interface "qr-2ff64ff8-b8"
> type: internal
> Port patch-tun
> Interface patch-tun
> type: patch
> options: {peer=patch-int}
> Port "qvo310233a4-9f"
> tag: 6
> Interface "qvo310233a4-9f"
> Port br-int
> Interface br-int
> type: internal
> Port "tap6bc359b6-f0"
> tag: 6
> Interface "tap6bc359b6-f0"
> type: internal
> Port "qvo703c764e-23"
> tag: 5
> Interface "qvo703c764e-23"
> Port int-mybridge
> Interface int-mybridge
> type: patch
> options: {peer=phy-mybridge}
> Port "qg-333a2d2b-ca"
> tag: 5
> Interface "qg-333a2d2b-ca"
> type: internal
> Bridge mybridge
> Port mybridge
> Interface mybridge
> type: internal
> Port "eth1"
> Interface "eth1"
> Port phy-mybridge
> Interface phy-mybridge
> type: patch
> options: {peer=int-mybridge}
> Bridge br-tun
> fail_mode: secure
> Port br-tun
> Interface br-tun
> type: internal
> Port patch-int
> Interface patch-int
> type: patch
> options: {peer=patch-tun}
> ovs_version: "2.5.0"
> 
> 
> Below is my network and router details
> 
> root@VFSR1:~# neutron net-list
> +--+-+-+
> | id   | name| subnets
>  |
> +--+-+-+
> | 51739543-b7d1-414b-bec1-9b38c3e5d5d7 | public  | 
> 0db9fa02-27eb-4f38-8693-200719fc1fbf 172.27.10.0/24  |
> | bf919707-b1eb-4d8f-90fe-5bcf0e07dce3 | private | 
> 7fddc311-7938-44c4-abd4-e5095adba422 192.168.0.0/24  |
> +--+-+-+
> root@VFSR1:~# neutron router-list
> +--++---+-+---+
> | id   | name   | external_gateway_info   
>   
>   
>   | distributed | ha|
> +--++---+-+---+
> | 323a6782-46aa-458e-ad76-f9462d8ad955 | router | {"network_id": 
> "51739543-b7d1-414b-bec1-9b38c3e5d5d7", "enable_snat": true, 
> "external_fixed_ips": [{"subnet_id": "0db9fa02-27eb-4f38-8693-200719fc1fbf", 
> "ip_address": "172.27.10.101"}]} | False   | False |
> +--++---+-+---+
> 
> Below are my instances created 
> 
> root@VFSR1:~# nova list
> +--++++-++
> | ID   | Name   | Status | Task State | Power 
> State | Networks   |
> +--++++-++
> | b737645b-317e-46be-b06a-f1b94f378d95 | test   | ACTIVE | -  | 
> Running | public=172.27.10.100