Comment 1 for bug 1559719

Revision history for this message
Yuli (stremovsky) wrote :

No ports is assigned in ovs to the router.

As a result no port created for the router, only for the vm.

I created network: test10 and privet net: test10-priv

neutron net-list
| 28da73f2-c7d6-4964-91a9-0aa101eb34bc | test10 | b5c298f7-baf4-409f-acda-00d6e9255656 1.1.1.0/24 |

neutron subnet-list
| b5c298f7-baf4-409f-acda-00d6e9255656 | test10-priv | 1.1.1.0/24 | {"start": "1.1.1.2", "end": "1.1.1.254"}

neutron router-list
| a83748ac-bbb8-4e0f-bc1e-63d29ea22e77 | router1 | {"network_id": "bc13790a-81dd-40a8-bbab-6ec2b8181f39", "enable_snat": true, "external_fixed_ips": |
| | | [{"subnet_id": "dcf3a383-15af-41e8-b4c6-5e5c8591f503", "ip_address": "10.100.201.200"}, {"subnet_id": |
| | | "65782eab-a0db-4761-8a4c-f027e38e8de7", "ip_address": "2001:db8::1"}]} |
+--------------------------------------+----------+--------------------------------------------------------------------------------------------------------------+

neutron router-show a83748ac-bbb8-4e0f-bc1e-63d29ea22e77
+-----------------------+----------------------------------------------------------------------------------------------------------------------------------------+
| Field | Value |
+-----------------------+----------------------------------------------------------------------------------------------------------------------------------------+
| admin_state_up | True |
| description | |
| external_gateway_info | {"network_id": "bc13790a-81dd-40a8-bbab-6ec2b8181f39", "enable_snat": true, "external_fixed_ips": [{"subnet_id": "dcf3a383-15af- |
| | 41e8-b4c6-5e5c8591f503", "ip_address": "10.100.201.200"}, {"subnet_id": "65782eab-a0db-4761-8a4c-f027e38e8de7", "ip_address": |
| | "2001:db8::1"}]} |
| id | a83748ac-bbb8-4e0f-bc1e-63d29ea22e77 |
| name | router1 |
| routes | |
| status | ACTIVE |
| tenant_id | 98a47aee7cd2461d8d5c80e97ee7d18f |
+-----------------------+----------------------------------------------------------------------------------------------------------------------------------------+

neutron router-port-list a83748ac-bbb8-4e0f-bc1e-63d29ea22e77
+--------------------------------------+------+-------------------+------------------------------------------------------------------------------------------+
| id | name | mac_address | fixed_ips |
+--------------------------------------+------+-------------------+------------------------------------------------------------------------------------------+
| 7c613f20-8823-47ad-b47a-303b85df445a | | fa:16:3e:f5:cc:fa | {"subnet_id": "b5c298f7-baf4-409f-acda-00d6e9255656", "ip_address": "1.1.1.1"} |
| 0ee139ce-a6b3-4b7b-982c-c92cd496e486 | | fa:16:3e:02:78:fe | {"subnet_id": "0fe3958a-02cd-483f-ac0f-8169b9111d87", "ip_address": "fd52:40d6:3534::1"} |
| 90656935-beac-4c8a-8aa8-2c95fe708797 | | fa:16:3e:ae:88:b6 | {"subnet_id": "b963a505-d798-435d-aca3-75d39b618bca", "ip_address": "10.0.0.1"} |
+--------------------------------------+------+-------------------+------------------------------------------------------------------------------------------+

Create vm and attach port

sudo ovs-ofctl dump-flows -O Openflow13 br-int | grep in_port
 cookie=0x0, duration=28.552s, table=0, n_packets=33, n_bytes=2978, priority=100,in_port=5 actions=set_field:0x71a->reg6,set_field:0xf->metadata,goto_table:9
 cookie=0x0, duration=28.552s, table=11, n_packets=2, n_bytes=672, priority=100,in_port=5 actions=set_field:0x71a->metadata,CONTROLLER:65535