Can not to find the back group is set with symmetric chain

Bug #1674588 reported by yong sheng gong
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
networking-sfc
Fix Released
Undecided
bharaththiruveedula

Bug Description

I have set up a two nodes openstack.

I have three vms test1 , vnf , test2. test1 and vnf are on node1, test2 is on node2.

after command:

neutron port-chain-create --port-pair-group ppg1 --flow-classifier fc1 --chain-parameters symmetric=true pc

I can see only group is set on node1, cannot see group on node2:

node1:
 cookie=0xacfe256f06fc6003, duration=2612.911s, table=0, n_packets=0, n_bytes=0, priority=30,tcp,in_port=3,nw_src=10.0.10.8,nw_dst=10.0.10.9,tp_dst=80 actions=group:1
 cookie=0xacfe256f06fc6003, duration=2612.805s, table=0, n_packets=0, n_bytes=0, priority=30,tcp,in_port=4,nw_src=10.0.10.8,nw_dst=10.0.10.9,tp_dst=80 actions=NORMAL
 cookie=0xacfe256f06fc6003, duration=2612.495s, table=0, n_packets=0, n_bytes=0, priority=30,tcp,in_port=4,nw_src=10.0.10.9,nw_dst=10.0.10.8,tp_src=80 actions=NORMAL

ubuntu@compute:~$ ovsofctl dump-groups br-int
OFPST_GROUP_DESC reply (OF1.3) (xid=0x2):
 group_id=1,type=select,bucket=actions=set_field:fa:16:3e:25:fd:5b->eth_dst,resubmit(,5)

node2:
 cookie=0xa576251aec953a60, duration=876.943s, table=0, n_packets=0, n_bytes=0, priority=20,mpls actions=goto_table:10
 cookie=0xa576251aec953a60, duration=875.155s, table=0, n_packets=0, n_bytes=0, priority=10,icmp6,in_port=5,icmp_type=136 actions=goto_table:24
 cookie=0xa576251aec953a60, duration=875.135s, table=0, n_packets=0, n_bytes=0, priority=10,icmp6,in_port=4,icmp_type=136 actions=goto_table:24
 cookie=0xa576251aec953a60, duration=875.150s, table=0, n_packets=71, n_bytes=2982, priority=10,arp,in_port=5 actions=goto_table:24
 cookie=0xa576251aec953a60, duration=875.131s, table=0, n_packets=23, n_bytes=966, priority=10,arp,in_port=4 actions=goto_table:24
 cookie=0xa576251aec953a60, duration=876.806s, table=0, n_packets=0, n_bytes=0, priority=2,in_port=1 actions=drop
 cookie=0xa576251aec953a60, duration=875.160s, table=0, n_packets=21, n_bytes=2310, priority=9,in_port=5 actions=goto_table:25
 cookie=0xa576251aec953a60, duration=875.141s, table=0, n_packets=100, n_bytes=11384, priority=9,in_port=4 actions=goto_table:25
 cookie=0xa576251aec953a60, duration=876.775s, table=0, n_packets=0, n_bytes=0, priority=4,in_port=1,dl_src=fa:16:3f:b2:db:ac actions=goto_table:2
 cookie=0xa576251aec953a60, duration=876.770s, table=0, n_packets=0, n_bytes=0, priority=2,in_port=2,dl_src=fa:16:3f:b2:db:ac actions=goto_table:1
 cookie=0xa576251aec953a60, duration=878.432s, table=0, n_packets=0, n_bytes=0, priority=0 actions=NORMAL
 cookie=0xa576251aec953a60, duration=876.808s, table=0, n_packets=978, n_bytes=87596, priority=1 actions=NORMAL
 cookie=0xa576251aec953a60, duration=876.812s, table=1, n_packets=0, n_bytes=0, priority=1 actions=drop
 cookie=0xa576251aec953a60, duration=876.810s, table=2, n_packets=0, n_bytes=0, priority=1 actions=drop
 cookie=0xab54dc21ad1773a2, duration=875.586s, table=5, n_packets=0, n_bytes=0, priority=0,ip,dl_dst=fa:16:3e:25:fd:5b actions=push_mpls:0x8847,set_field:511->mpls_label,set_mpls_ttl(255),push_vlan:0x8100,set_field:4097->vlan_vid,output:2

ubuntu@openstack1:~$ ovsofctl dump-groups br-int
OFPST_GROUP_DESC reply (OF1.3) (xid=0x2):
 group_id=7001,type=select,bucket=actions=set_field:fa:16:3e:25:fd:5b->eth_dst,resubmit(,5)

Changed in networking-sfc:
assignee: nobody → bharaththiruveedula (bharath-ves)
Revision history for this message
Itsuro Oda (oda-g) wrote :

--- a/networking_sfc/services/sfc/agent/extensions/openvswitch/sfc_driver.py
+++ b/networking_sfc/services/sfc/agent/extensions/openvswitch/sfc_driver.py
@@ -447,7 +447,10 @@ class SfcOVSAgentDriver(sfc.SfcAgentDriver):
                 if pc_corr == 'mpls':
                     enc_actions = self._build_push_mpls(flowrule['nsp'],
                                                         flowrule['nsi'])
- enc_actions = enc_actions + ("group:%d" % group_id)
+ if flowrule['fwd_path']:
+ enc_actions = enc_actions + ("group:%d" % group_id)
+ else:
+ enc_actions = enc_actions + ("group:%d" % rev_group_id)

             # to uninstall the removed flow classifiers
             self._setup_local_switch_flows_on_int_br(

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to networking-sfc (master)

Reviewed: https://review.openstack.org/457064
Committed: https://git.openstack.org/cgit/openstack/networking-sfc/commit/?id=fe64c7c3eb3a6c4be215541447de96074a823fbf
Submitter: Jenkins
Branch: master

commit fe64c7c3eb3a6c4be215541447de96074a823fbf
Author: yong sheng gong <gong.yongsheng@99cloud.net>
Date: Sun Apr 16 17:50:18 2017 +0800

    Fix group id for symmetric flows reverse path

    Reverse flows were added to the forward path group

    Co-Authored-By: Itsuro Oda <email address hidden>
    Change-Id: Ibf3b517a96ed549c0f3051f10a016880889a09ef
    Closes-bug: 1674588

Changed in networking-sfc:
status: New → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/networking-sfc 5.0.0.0b2

This issue was fixed in the openstack/networking-sfc 5.0.0.0b2 development milestone.

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.