← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1187827] Re: openflow rules are not applied on compute node

 

[Expired for neutron because there has been no activity for 60 days.]

** Changed in: neutron
       Status: Incomplete => Expired

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1187827

Title:
  openflow rules are not applied on compute node

Status in OpenStack Neutron (virtual network service):
  Expired

Bug description:
  I am using quantum with gre tunnels, openvswitch and openflow rules
  are not applied on compute node. All frames (at first dhcp request
  from instance) are dropped on br-tun. Here is my configuration:

  compute_node# dpkg -l | grep quantum
  ii  python-quantum                     2013.1-1                     all          OpenStack virtual network service - python library
  ii  python-quantumclient               1:3.0.a1-1                   all          client API library for Quantum
  ii  quantum-common                     2013.1-1                     all          OpenStack virtual network service - common
  ii  quantum-plugin-openvswitch         2013.1-1                     all          OpenStack virtual network service - Open vSwitch plugin
  ii  quantum-plugin-openvswitch-agent   2013.1-1                     all          OpenStack virtual network service - Open vSwitch agent

  compute_node# ovs-vsctl show
  8d6a4bb0-4071-412d-a435-157d85b68471
      Bridge "br0"
          Port patch-tun
              Interface patch-tun
                  type: patch
                  options: {peer=patch-int}
          Port "tapa4d33b2f-05"
              Interface "tapa4d33b2f-05"
          Port "br0"
              Interface "br0"
                  type: internal
      Bridge br-tun
          Port patch-int
              Interface patch-int
                  type: patch
                  options: {peer=patch-tun}
          Port "gre-1"
              Interface "gre-1"
                  type: gre
                  options: {in_key=flow, out_key=flow, remote_ip="10.255.128.254"}
          Port br-tun
              Interface br-tun
                  type: internal
      ovs_version: "1.9.0"

  compute_node# ovs-ofctl dump-flows br0
  NXST_FLOW reply (xid=0x4):
   cookie=0x0, duration=875.671s, table=0, n_packets=699, n_bytes=37482, idle_age=53, priority=1 actions=NORMAL
  compute_node# ovs-ofctl dump-flows br-tun
  NXST_FLOW reply (xid=0x4):
   cookie=0x0, duration=876.227s, table=0, n_packets=697, n_bytes=37398, idle_age=56, priority=1 actions=drop

  network_node# dpkg -l | grep quantum
  ii  python-quantum                        2013.1-1                                all          OpenStack virtual network service - python library
  ii  python-quantumclient                  1:3.0.a1-1                              all          client API library for Quantum
  ii  quantum-common                        2013.1-1                                all          OpenStack virtual network service - common
  ii  quantum-dhcp-agent                    2013.1-1                                all          Quantum is a virtual network service for Openstack - (dhcp agent)
  ii  quantum-l3-agent                      2013.1-1                                all          Quantum is a virtual network service for Openstack - (l3 agent)
  ii  quantum-plugin-openvswitch            2013.1-1                                all          OpenStack virtual network service - Open vSwitch plugin
  ii  quantum-plugin-openvswitch-agent      2013.1-1                                all          OpenStack virtual network service - Open vSwitch agent
  ii  quantum-server                        2013.1-1                                all          OpenStack virtual network service - server

  network_node# ovs-vsctl show
  6d5a9f04-4c8f-42f6-8132-0eafb05ae309
      Bridge "br0"
          Port "br0"
              Interface "br0"
                  type: internal
          Port "tap9b89aae5-ae"
              tag: 1
              Interface "tap9b89aae5-ae"
                  type: internal
          Port patch-tun
              Interface patch-tun
                  type: patch
                  options: {peer=patch-int}
      Bridge br-tun
          Port br-tun
              Interface br-tun
                  type: internal
          Port "gre-2"
              Interface "gre-2"
                  type: gre
                  options: {in_key=flow, out_key=flow, remote_ip="10.255.128.1"}
          Port patch-int
              Interface patch-int
                  type: patch
                  options: {peer=patch-tun}
      ovs_version: "1.9.0"

  netowork_node# ovs-ofctl dump-flows br0
  NXST_FLOW reply (xid=0x4):
   cookie=0x0, duration=1944.727s, table=0, n_packets=0, n_bytes=0, idle_age=1944, priority=1 actions=NORMAL
  network_node# ovs-ofctl dump-flows br-tun
  NXST_FLOW reply (xid=0x4):
   cookie=0x0, duration=1946.257s, table=0, n_packets=930, n_bytes=44332, idle_age=1035, priority=1 actions=drop
   cookie=0x0, duration=1944.563s, table=0, n_packets=0, n_bytes=0, idle_age=1944, priority=3,tun_id=0x1,dl_dst=01:00:00:00:00:00/01:00:00:00:00:00 actions=mod_vlan_vid:1,output:2
   cookie=0x0, duration=1944.463s, table=0, n_packets=0, n_bytes=0, idle_age=1944, priority=3,tun_id=0x1,dl_dst=fa:16:3e:a8:76:7a actions=mod_vlan_vid:1,NORMAL
   cookie=0x0, duration=1944.663s, table=0, n_packets=0, n_bytes=0, idle_age=1944, priority=4,in_port=2,dl_vlan=1 actions=set_tunnel:0x1,NORMAL

  network_node# quantum net-show c778053f-5771-42ad-9734-bab0338fa34d
  +---------------------------+--------------------------------------+
  | Field                     | Value                                |
  +---------------------------+--------------------------------------+
  | admin_state_up            | True                                 |
  | id                        | c778053f-5771-42ad-9734-bab0338fa34d |
  | name                      | network                              |
  | provider:network_type     | gre                                  |
  | provider:physical_network |                                      |
  | provider:segmentation_id  | 1                                    |
  | router:external           | False                                |
  | shared                    | False                                |
  | status                    | ACTIVE                               |
  | subnets                   | 4d07f808-1d18-41eb-870f-b66e8df5ab87 |
  | tenant_id                 | 85fcef19127a4634a4d3333389e24870     |
  +---------------------------+--------------------------------------+

  network_node# quantum subnet-show 4d07f808-1d18-41eb-870f-b66e8df5ab87
  +------------------+--------------------------------------------------+
  | Field            | Value                                            |
  +------------------+--------------------------------------------------+
  | allocation_pools | {"start": "10.255.0.2", "end": "10.255.127.254"} |
  | cidr             | 10.255.0.0/17                                    |
  | dns_nameservers  |                                                  |
  | enable_dhcp      | True                                             |
  | gateway_ip       | 10.255.0.1                                       |
  | host_routes      |                                                  |
  | id               | 4d07f808-1d18-41eb-870f-b66e8df5ab87             |
  | ip_version       | 4                                                |
  | name             |                                                  |
  | network_id       | c778053f-5771-42ad-9734-bab0338fa34d             |
  | tenant_id        | 85fcef19127a4634a4d3333389e24870                 |
  +------------------+--------------------------------------------------+

  network_node# quantum router-show bc44e9d5-d96b-4adc-ae18-4a8f45fc041b
  +-----------------------+--------------------------------------+
  | Field                 | Value                                |
  +-----------------------+--------------------------------------+
  | admin_state_up        | True                                 |
  | external_gateway_info |                                      |
  | id                    | bc44e9d5-d96b-4adc-ae18-4a8f45fc041b |
  | name                  | network                              |
  | routes                |                                      |
  | status                | ACTIVE                               |
  | tenant_id             | 85fcef19127a4634a4d3333389e24870     |
  +-----------------------+--------------------------------------+

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1187827/+subscriptions