<div dir="ltr">I made a mistak when copied the subnets to the mail, my subnets are:<div><br></div><div><div>root@cocinero:~# quantum port-list</div><div>+--------------------------------------+------+-------------------+---------------------------------------------------------------------------------------+</div>
<div>| id                                   | name | mac_address       | fixed_ips                                                                             |</div><div>+--------------------------------------+------+-------------------+---------------------------------------------------------------------------------------+</div>
<div>| 1d024fd1-1a9b-425f-aaed-4475f988d0cb |      | fa:16:3e:ae:34:fe | {"subnet_id": "aca36e3b-ae10-4367-8843-3cae7034d114", "ip_address": "172.16.254.2"}   |</div><div>| a642220c-e315-4aee-bc54-2fca2ba0103b |      | fa:16:3e:61:fc:d3 | {"subnet_id": "21955b15-453d-46de-8e15-c285b68c0767", "ip_address": "172.19.136.100"} |</div>
<div>+--------------------------------------+------+-------------------+---------------------------------------------------------------------------------------+</div></div><div><br></div><div style>Sorry, </div><div class="gmail_extra">
<br><br><div class="gmail_quote">2013/4/4 Juan José Pavlik Salles <span dir="ltr"><<a href="mailto:jjpavlik@gmail.com" target="_blank">jjpavlik@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Hi robert, this last 2 days i've been trying to fix the problem i mentioned before, but didn't succeed. <div><br></div><div>This is what i've done:</div><div><br></div><div>-In the quantum plugin file:</div>

<div>...</div><div><div>[OVS]</div><div><div>tenant_network_type = vlan</div></div><div><div>network_vlan_ranges = physnet1:1:4094</div></div><div>integration_bridge = br-int<br></div></div><div><div>bridge_mappings = physnet1:br-eth0</div>

</div><div>...</div><div><br></div><div>-Configured my switch to trunk all vlans on eth0 of the compute node server (named asado).</div><div><br></div><div>-Created a provider network:<br></div><div>
quantum net-create --tenant-id ad60fae6c2b3496684b96b013a0e64a3 vlan5 --provider:network_type vlan --provider:physical_network physnet1 --provider:segmentation_id 5<br></div><div><br></div><div>-Created the subnet for this network:</div>

<div>quantum subnet-create --tenant-id ad60fae6c2b3496684b96b013a0e64a3 vlan5 <a href="http://172.16.254.0/24" target="_blank">172.16.254.0/24</a> --enable_dhcp=False<br></div><div><br></div><div>-Started a vm with horizon</div>

<div><br></div><div>The VM starts fine, but there's not network access to it. </div><div><br></div><div>I've checked security groups, and allowed all type of traffic to the machine in the default policy. </div>
<div><div><br></div><div>When i checked ovs in the compute node, this is what i see:</div><div><br></div><div>root@asado:~# ovs-vsctl show</div><div>60d97036-7718-4dbe-b744-48933a3041f5</div><div>    Bridge br-int</div>
<div>        Port "qvo1d024fd1-1a"</div><div>            tag: 4</div><div>            Interface "qvo1d024fd1-1a"</div><div>        Port br-int</div><div>            Interface br-int</div><div>                type: internal</div>

<div>        Port "int-br-eth0"</div><div>            Interface "int-br-eth0"</div><div>    Bridge "br-eth0"</div><div>        Port "br-eth0"</div><div>            Interface "br-eth0"</div>

<div>                type: internal</div><div>        Port "phy-br-eth0"</div><div>            Interface "phy-br-eth0"</div><div>        Port "eth0"</div><div>            Interface "eth0"</div>

<div>    ovs_version: "1.4.0+build0"</div><div>root@asado:~# </div><div><br></div><div>The tag attribute doesn't make sense, i think it should be 5 instead of 4, so i changed it:</div><div><br></div>
<div><div>root@asado:~# ovs-vsctl set Port qvo1d024fd1-1a tag=5</div><div>root@asado:~# ovs-vsctl show</div><div>60d97036-7718-4dbe-b744-48933a3041f5</div><div>    Bridge br-int</div><div>        Port "qvo1d024fd1-1a"</div>

<div>            tag: 5</div><div>            Interface "qvo1d024fd1-1a"</div><div>        Port br-int</div><div>            Interface br-int</div><div>                type: internal</div><div>        Port "int-br-eth0"</div>

<div>            Interface "int-br-eth0"</div><div>    Bridge "br-eth0"</div><div>        Port "br-eth0"</div><div>            Interface "br-eth0"</div><div>                type: internal</div>

<div>        Port "phy-br-eth0"</div><div>            Interface "phy-br-eth0"</div><div>        Port "eth0"</div><div>            Interface "eth0"</div><div>    ovs_version: "1.4.0+build0"</div>

<div>root@asado:~# </div><div><br></div><div>But still no ping to the machine, i'm really confused. i'm pretty sure i followed the steps correctly what am i missing???</div><div><br></div><div>I assume that this new port on my br-int is the one created by quantum for the new vm, but why does it have a wrong tag? One more thing, this tag seems to be auto incremental, because the first VM i create had tag=1 the next one tag=2 and so on.</div>

<div><br></div><div>I still can't fin the connection between br-int and br-eth0 (the bridge on eth0 interface, the one with the trunk).</div><div><br></div><div>Here i'll paste some more info that may help :D. The controller node is called cocinero.</div>

<div><br></div><div><div>root@cocinero:~# quantum net-list</div><div>+--------------------------------------+---------+--------------------------------------+</div><div>| id                                   | name    | subnets                              |</div>

<div>+--------------------------------------+---------+--------------------------------------+</div><div>| fde5024e-8457-4a4d-af2a-bd8afbdea67e | vlan5   | aca36e3b-ae10-4367-8843-3cae7034d114 |</div><div>+--------------------------------------+---------+--------------------------------------+</div>

<div><br></div><div>root@cocinero:~# quantum net-show vlan5<br></div><div><div>+---------------------------+--------------------------------------+</div><div>| Field                     | Value                                |</div>

<div>+---------------------------+--------------------------------------+</div><div>| admin_state_up            | True                                 |</div><div>| id                        | fde5024e-8457-4a4d-af2a-bd8afbdea67e |</div>

<div>| name                      | vlan5                                |</div><div>| provider:network_type     | vlan                                 |</div><div>| provider:physical_network | physnet1                             |</div>

<div>| provider:segmentation_id  | 5                                    |</div><div>| router:external           | False                                |</div><div>| shared                    | False                                |</div>

<div>| status                    | ACTIVE                               |</div><div>| subnets                   | aca36e3b-ae10-4367-8843-3cae7034d114 |</div><div>| tenant_id                 | ad60fae6c2b3496684b96b013a0e64a3     |</div>

<div>+---------------------------+--------------------------------------+</div></div><div><br></div><div>root@cocinero:~# quantum subnet-list<br></div><div><div>+--------------------------------------+------+-----------------+------------------------------------------------------+</div>

<div>| id                                   | name | cidr            | allocation_pools                                     |</div><div>+--------------------------------------+------+-----------------+------------------------------------------------------+</div>

<div>| 21955b15-453d-46de-8e15-c285b68c0767 |      | <a href="http://172.19.136.0/24" target="_blank">172.19.136.0/24</a> | {"start": "172.19.136.100", "end": "172.19.136.200"} |</div>
<div>+--------------------------------------+------+-----------------+------------------------------------------------------+</div>
</div><div><div>root@cocinero:~# quantum port-list</div><div>+--------------------------------------+------+-------------------+---------------------------------------------------------------------------------------+</div>

<div>| id                                   | name | mac_address       | fixed_ips                                                                             |</div><div>+--------------------------------------+------+-------------------+---------------------------------------------------------------------------------------+</div>

<div>| 1d024fd1-1a9b-425f-aaed-4475f988d0cb |      | fa:16:3e:ae:34:fe | {"subnet_id": "aca36e3b-ae10-4367-8843-3cae7034d114", "ip_address": "172.16.254.2"}   |</div><div>+--------------------------------------+------+-------------------+---------------------------------------------------------------------------------------+</div>

</div><div><div><br></div><div>root@cocinero:~# quantum port-show 1d024fd1-1a9b-425f-aaed-4475f988d0cb</div><div>+----------------+-------------------------------------------------------------------------------------+</div>

<div>| Field          | Value                                                                               |</div><div>+----------------+-------------------------------------------------------------------------------------+</div>

<div>| admin_state_up | True                                                                                |</div><div>| device_id      | ee2b23cf-1c6d-4234-a972-d64d6065990f                                                |</div>

<div>| device_owner   | compute:nova                                                                        |</div><div>| fixed_ips      | {"subnet_id": "aca36e3b-ae10-4367-8843-3cae7034d114", "ip_address": "172.16.254.2"} |</div>

<div>| id             | 1d024fd1-1a9b-425f-aaed-4475f988d0cb                                                |</div><div>| mac_address    | fa:16:3e:ae:34:fe                                                                   |</div>

<div>| name           |                                                                                     |</div><div>| network_id     | fde5024e-8457-4a4d-af2a-bd8afbdea67e                                                |</div>

<div>| status         | ACTIVE                                                                              |</div><div>| tenant_id      | ad60fae6c2b3496684b96b013a0e64a3                                                    |</div>

<div>+----------------+-------------------------------------------------------------------------------------+</div></div><div><br></div><div><br></div></div></div></div></div><div class="gmail_extra"><div><div class="h5">
<br><br><div class="gmail_quote">
2013/4/2 Robert van Leeuwen <span dir="ltr"><<a href="mailto:Robert.vanLeeuwen@spilgames.com" target="_blank">Robert.vanLeeuwen@spilgames.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div>> We already have many different vlans, one for each department. Some of them have public ip networks and some private networks.<br>
> For instance when a department ask for a virtual server we run it in our IP network,<br>
> when if we were using vlans in xen we could run it on the departments network lets say vlan 3.<br>
> what we want is to use this vlans we already have assigned to each department in our openstack deploy<br>
<br>
</div>Juan,<br>
<br>
You can use the bridge-mapped network in Quantum to do this.<br>
This will create a network in openstack which is mapped to a physical network/vlan.<br>
So if basically create a network for each tenant with its own vlan mapping to the appropriate network.<br>
<br>
This link might help you setting things up:<br>
<a href="https://wiki.openstack.org/wiki/ConfigureOpenvswitch" target="_blank">https://wiki.openstack.org/wiki/ConfigureOpenvswitch</a><br>
<br>
I think you can also do this with the "old-style" networking without quantum/openvswitch.<br>
If you have the time I would invest it in Quantum though, it adds a lot of flexibility and as long as you are still in the setup phase you have some time to play around with it :)<br>
<br>
Cheers,<br>
Robert van Leeuwen<br>
_______________________________________________<br>
OpenStack-operators mailing list<br>
<a href="mailto:OpenStack-operators@lists.openstack.org" target="_blank">OpenStack-operators@lists.openstack.org</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators</a><br>
</blockquote></div><br><br clear="all"><div><br></div></div></div><span class="HOEnZb"><font color="#888888">-- <br>Pavlik Juan José
</font></span></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Pavlik Juan José
</div></div>