Revision history [back]

click to hide/show revision 1
initial version

I'm able to ping the router interface from the VMs (10.0.0.1), but i can't see if SNAT rules are ok, i have no such experience. Can you tell me how to check that?

For more information this is my current situation, with the "ovs-vsctl show" as shown in the previous post:

nova list +--------------------------------------+--------+--------+------------------+ | ID | Name | Status | Networks | +--------------------------------------+--------+--------+------------------+ | 99914396-8c52-4800-a542-209d64aa8d39 | gfgfgf | ACTIVE | Privata=10.0.0.2 | | b1d49c90-bd2a-4fd8-8838-20e97310508c | gfgfgf | ACTIVE | Privata=10.0.0.3 | +--------------------------------------+--------+--------+------------------+

quantum net-list +--------------------------------------+---------+--------------------------------------+ | id | name | subnets | +--------------------------------------+---------+--------------------------------------+ | 8c7fb762-eddd-4dd6-945c-7282d8982a1e | Rete | 7b4cf538-4c68-4c64-a70c-368d3fffd3eb | | d8a6bef4-38e0-45b2-807b-490071ebe908 | Privata | cd07ba12-acdf-412d-aeef-ec4b3222deb9 | +--------------------------------------+---------+--------------------------------------+ quantum subnet-list +--------------------------------------+------+-----------------+------------------------------------------------------+ | id | name | cidr | allocation_pools | +--------------------------------------+------+-----------------+------------------------------------------------------+ | cd07ba12-acdf-412d-aeef-ec4b3222deb9 | | 10.0.0.0/24 | {"start": "10.0.0.2", "end": "10.0.0.254"} | | 7b4cf538-4c68-4c64-a70c-368d3fffd3eb | | PublicIP.0/24 | {"start": "PublicIP.208", "end": "PublicIP.223"} | +--------------------------------------+------+-----------------+------------------------------------------------------+

quantum router-list +--------------------------------------+---------+--------------------------------------------------------+ | id | name | external_gateway_info | +--------------------------------------+---------+--------------------------------------------------------+ | 013f03fa-e51d-42a9-8e17-1b1d475b1558 | RouterP | {"network_id": "8c7fb762-eddd-4dd6-945c-7282d8982a1e"} | +--------------------------------------+---------+--------------------------------------------------------+

quantum port-list +--------------------------------------+------+-------------------+---------------------------------------------------------------------------------------+ | id | name | mac_address | fixed_ips | +--------------------------------------+------+-------------------+---------------------------------------------------------------------------------------+ | d2665361-33b4-4cf4-8f06-a53722abf03a | | fa:16:3e:b0:d6:37 | {"subnet_id": "cd07ba12-acdf-412d-aeef-ec4b3222deb9", "ip_address": "10.0.0.1"} | | 6ad484d8-337a-4adb-a8d3-536da9bb5325 | | fa:16:3e:ed:82:59 | {"subnet_id": "7b4cf538-4c68-4c64-a70c-368d3fffd3eb", "ip_address": "PublicIP.208"} | | ee457aec-13a6-4266-89c6-8adc2def4304 | | fa:16:3e:9c:b2:5e | {"subnet_id": "cd07ba12-acdf-412d-aeef-ec4b3222deb9", "ip_address": "10.0.0.2"} | | 3e2ca6a4-9147-4972-b2f2-eabf9cd9f05b | | fa:16:3e:44:e8:6d | {"subnet_id": "cd07ba12-acdf-412d-aeef-ec4b3222deb9", "ip_address": "10.0.0.3"} | +--------------------------------------+------+-------------------+---------------------------------------------------------------------------------------+

quantum net-show Rete +---------------------------+--------------------------------------+ | Field | Value | +---------------------------+--------------------------------------+ | admin_state_up | True | | id | 8c7fb762-eddd-4dd6-945c-7282d8982a1e | | name | Rete | | provider:network_type | flat | | provider:physical_network | eth2 | | provider:segmentation_id | | | router:external | True | | shared | False | | status | ACTIVE | | subnets | 7b4cf538-4c68-4c64-a70c-368d3fffd3eb | | tenant_id | fd547431c9b14ae387ecfc563f72ce5d | +---------------------------+--------------------------------------+

quantum net-show Privata +---------------------------+--------------------------------------+ | Field | Value | +---------------------------+--------------------------------------+ | admin_state_up | True | | id | d8a6bef4-38e0-45b2-807b-490071ebe908 | | name | Privata | | provider:network_type | vlan | | provider:physical_network | eth1 | | provider:segmentation_id | 101 | | router:external | False | | shared | False | | status | ACTIVE | | subnets | cd07ba12-acdf-412d-aeef-ec4b3222deb9 | | tenant_id | fd547431c9b14ae387ecfc563f72ce5d | +---------------------------+--------------------------------------+

quantum router-show RouterP +-----------------------+--------------------------------------------------------+ | Field | Value | +-----------------------+--------------------------------------------------------+ | admin_state_up | True | | external_gateway_info | {"network_id": "8c7fb762-eddd-4dd6-945c-7282d8982a1e"} | | id | 013f03fa-e51d-42a9-8e17-1b1d475b1558 | | name | RouterP | | status | ACTIVE | | tenant_id | fd547431c9b14ae387ecfc563f72ce5d | +-----------------------+--------------------------------------------------------+

l3-agent.ini with: interface_driver = quantum.agent.linux.interface.OVSInterfaceDriver use_namespaces = False router_id = 013f03fa-e51d-42a9-8e17-1b1d475b1558 gateway_external_network_id = 8c7fb762-eddd-4dd6-945c-7282d8982a1e handle_internal_only_routers = True external_network_bridge = br-ex

Ifconfig returns: qr-d2665361-33 Link encap:Ethernet HWaddr FA:16:3E:B0:D6:37
inet addr:10.0.0.1 Bcast:10.0.0.255 Mask:255.255.255.0 qg-6ad484d8-33 Link encap:Ethernet HWaddr FA:16:3E:ED:82:59
inet addr:PublicIP.208 Bcast:PublicIP.255 Mask:255.255.255.0 eth2 and br-ex with noIP

The "tap" virtual interfaces are not listed becouse the VMs actually run on the compute nodes,

route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface PublicIP.0 0.0.0.0 255.255.255.0 U 0 0 0 qg-6ad484d8-33 PublicIP.0 0.0.0.0 255.255.255.0 U 1 0 0 eth0 10.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 qr-d2665361-33 0.0.0.0 PublicIP.1 0.0.0.0 UG 0 0 0 qg-6ad484d8-33 0.0.0.0 PublicIP.1 0.0.0.0 UG 0 0 0 eth0

Obviously l3-agent runnig, without dhcp-agent