No access to default gw from VM

Bug #1559719 reported by Yuli
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
DragonFlow
Invalid
Low
Unassigned

Bug Description

Hello

I have the latest version of the Dragonflow.

After creating VM I can not get ping to the router.

Here how to reproduce.

1. Create a net and a subnet
2. Attach subnet to router
3. Create VM and attach it to the network created above.

I was doing this is demo tenant.

Revision history for this message
Yuli (stremovsky) wrote :
Download full text (4.9 KiB)

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 ...

Read more...

Changed in dragonflow:
importance: Undecided → High
Revision history for this message
Li Ma (nick-ma-z) wrote :

I tested under the latest devstack and ubuntu 14.04 server. It works. The VM can ping both subnet gateway and router gateway. I attached the screenshot.

Revision history for this message
Li Ma (nick-ma-z) wrote :

Could you provide any details about your environment, like dump-flows?

Revision history for this message
Yuli (stremovsky) wrote :
Download full text (5.4 KiB)

sudo ovs-ofctl dump-flows -O Openflow13 br-int
OFPST_FLOW reply (OF1.3) (xid=0x2):
 cookie=0x0, duration=57464.688s, table=0, n_packets=68, n_bytes=5064, priority=100,in_port=5 actions=set_field:0x71a->reg6,set_field:0xf->metadata,goto_table:9
 cookie=0x0, duration=57464.688s, table=0, n_packets=0, n_bytes=0, priority=100,tun_id=0x71a actions=output:5
 cookie=0x0, duration=83063.894s, table=9, n_packets=82, n_bytes=3444, priority=100,arp actions=goto_table:10
 cookie=0x0, duration=83063.893s, table=9, n_packets=8, n_bytes=2692, priority=100,udp,dl_dst=ff:ff:ff:ff:ff:ff,tp_src=68,tp_dst=67 actions=goto_table:11
 cookie=0x0, duration=83059.965s, table=9, n_packets=0, n_bytes=0, priority=100,udp,metadata=0x1,nw_dst=10.0.0.2,tp_src=68,tp_dst=67 actions=goto_table:11
 cookie=0x0, duration=57856.515s, table=9, n_packets=0, n_bytes=0, priority=100,udp,metadata=0xf,nw_dst=1.1.1.2,tp_src=68,tp_dst=67 actions=goto_table:11
 cookie=0x0, duration=83063.894s, table=9, n_packets=110, n_bytes=10092, priority=1 actions=goto_table:17
 cookie=0x0, duration=83059.954s, table=10, n_packets=16, n_bytes=672, send_flow_rem priority=100,arp,metadata=0x1,arp_tpa=10.0.0.1,arp_op=1 actions=set_field:2->arp_op,move:NXM_NX_ARP_SHA[]->NXM_NX_ARP_THA[],move:NXM_OF_ARP_SPA[]->NXM_OF_ARP_TPA[],set_field:fa:16:3e:ae:88:b6->eth_src,set_field:fa:16:3e:ae:88:b6->arp_sha,set_field:10.0.0.1->arp_spa,IN_PORT
 cookie=0x0, duration=57731.120s, table=10, n_packets=28, n_bytes=1176, send_flow_rem priority=100,arp,metadata=0xf,arp_tpa=1.1.1.1,arp_op=1 actions=set_field:2->arp_op,move:NXM_NX_ARP_SHA[]->NXM_NX_ARP_THA[],move:NXM_OF_ARP_SPA[]->NXM_OF_ARP_TPA[],set_field:fa:16:3e:f5:cc:fa->eth_src,set_field:fa:16:3e:f5:cc:fa->arp_sha,set_field:1.1.1.1->arp_spa,IN_PORT
 cookie=0x0, duration=57464.688s, table=10, n_packets=0, n_bytes=0, send_flow_rem priority=100,arp,metadata=0xf,arp_tpa=1.1.1.3,arp_op=1 actions=set_field:2->arp_op,move:NXM_NX_ARP_SHA[]->NXM_NX_ARP_THA[],move:NXM_OF_ARP_SPA[]->NXM_OF_ARP_TPA[],set_field:fa:16:3e:c8:d1:d2->eth_src,set_field:fa:16:3e:c8:d1:d2->arp_sha,set_field:1.1.1.3->arp_spa,IN_PORT
 cookie=0x0, duration=83063.894s, table=10, n_packets=6, n_bytes=252, priority=1 actions=goto_table:17
 cookie=0x0, duration=57464.688s, table=11, n_packets=2, n_bytes=672, priority=100,in_port=5 actions=set_field:0x71a->metadata,CONTROLLER:65535
 cookie=0x0, duration=83063.893s, table=11, n_packets=0, n_bytes=0, priority=1 actions=goto_table:17
 cookie=0x0, duration=75082.299s, table=17, n_packets=6, n_bytes=468, priority=200,metadata=0x1,dl_dst=01:00:00:00:00:00/01:00:00:00:00:00 actions=drop
 cookie=0x0, duration=65879.884s, table=17, n_packets=6, n_bytes=468, priority=200,metadata=0xe,dl_dst=01:00:00:00:00:00/01:00:00:00:00:00 actions=drop
 cookie=0x0, duration=67646.339s, table=17, n_packets=6, n_bytes=468, priority=200,metadata=0xc,dl_dst=01:00:00:00:00:00/01:00:00:00:00:00 actions=drop
 cookie=0x0, duration=57464.688s, table=17, n_packets=12, n_bytes=720, priority=200,metadata=0xf,dl_dst=01:00:00:00:00:00/01:00:00:00:00:00 actions=set_field:0x71a->reg7,resubmit(,64)
 cookie=0x0, duration=57464.688s, table=17, n_packets=0, n_bytes=0, priority=100,metadata=0xf,dl_dst=fa:16:3...

Read more...

Revision history for this message
Yuli (stremovsky) wrote :

sudo ovs-ofctl show br-int

OFPT_FEATURES_REPLY (xid=0x2): dpid:0000a21d5c21d549
n_tables:254, n_buffers:256
capabilities: FLOW_STATS TABLE_STATS PORT_STATS QUEUE_STATS ARP_MATCH_IP
actions: output enqueue set_vlan_vid set_vlan_pcp strip_vlan mod_dl_src mod_dl_dst mod_nw_src mod_nw_dst mod_nw_tos mod_tp_src mod_tp_dst
 5(tapc23a53d1-53): addr:fe:16:3e:c8:d1:d2
     config: 0
     state: 0
     current: 10MB-FD COPPER
     speed: 10 Mbps now, 0 Mbps max
 LOCAL(br-int): addr:a2:1d:5c:21:d5:49
     config: PORT_DOWN
     state: LINK_DOWN
     speed: 0 Mbps now, 0 Mbps max
OFPT_GET_CONFIG_REPLY (xid=0x4): frags=normal miss_send_len=0

Revision history for this message
Yuli (stremovsky) wrote :

local.conf
-------------------------
[[local|localrc]]

enable_plugin rally https://github.com/openstack/rally master
Q_ENABLE_DRAGONFLOW_LOCAL_CONTROLLER=True
DF_PUB_SUB=True
DF_RUNNING_IN_GATE=True
DATABASE_PASSWORD=devstack
RABBIT_PASSWORD=devstack
SERVICE_PASSWORD=devstack
SERVICE_TOKEN=devstack
ADMIN_PASSWORD=devstack
enable_plugin dragonflow http://git.openstack.org/openstack/dragonflow
enable_service df-etcd
enable_service df-etcd-server
enable_service df-controller
enable_service df-zmq-publisher-service
disable_service n-net
enable_service q-svc
enable_service q-l3
#disable_service heat
enable_service df-ext-services
enable_service heat
enable_service h-eng h-api h-api-cfn h-api-cw
#enable_service q-dhcp
disable_service tempest
# Enable q-meta once nova is being used.
#enable_service q-meta
# We have to disable the neutron L2 agent. DF does not use the L2 agent.
#enable_service q-agt
disable_service q-agt
HOST_IP=10.10.10.10
FLAT_INTERFACE=eth0
FIXED_RANGE=10.0.0.0/24
NETWORK_GATEWAY=10.0.0.1
FIXED_NETWORK_SIZE=256
FLOATING_RANGE=10.10.0.0/16
Q_FLOATING_ALLOCATION_POOL=start=10.10.1.200,end=10.10.1.230
PUBLIC_NETWORK_GATEWAY=10.10.10.10

Revision history for this message
Yuli (stremovsky) wrote :

I am not able to reproduce this bug now.

Setting to low.

Changed in dragonflow:
importance: High → Low
Revision history for this message
Yuli (stremovsky) wrote :

Closing this bug as invalid

Changed in dragonflow:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.