ERROR:OFPGMFC_NUKNOWN_GROUP when add a new port chain

Bug #1950543 reported by XiaoYu Zhu
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
networking-sfc
Fix Released
Undecided
Unassigned

Bug Description

As an example, when I have not sfc port chain and following groups in my group table:
group_id=2,type=select,bucket=bucket_id:0,actions=resubmit(,1)
group_id=10,type=select,bucket=bucket_id:0,actions=resubmit(,1)
group_id=7,type=select,bucket=bucket_id:0,actions=resubmit(,1)

Then create a sfc port chain, this will trigger an error OFPGMFC_NUKNOWN_GROUP,
the program execute "MOD group_id=1,type=select,......", but there no group1 in
the group table, so this cmd will not be executed successfully.

REASON:
The sfc progarm judge the group_id exist or not by:
"if group_content.find('group_id=%d' % group_id) == -1:"
As you can see, there is a "group_id=10" in the group_content, so when it excute:
"group_content.find('group_id=%d' % 1)"
It will return 0

Changed in networking-sfc:
status: New → In Progress
Revision history for this message
Lajos Katona (lajos-katona) wrote :
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to networking-sfc (master)

Reviewed: https://review.opendev.org/c/openstack/networking-sfc/+/817527
Committed: https://opendev.org/openstack/networking-sfc/commit/08889e8b5a4c663e1708bf646fcfec0309af7994
Submitter: "Zuul (22348)"
Branch: master

commit 08889e8b5a4c663e1708bf646fcfec0309af7994
Author: XiaoYu Zhu <email address hidden>
Date: Thu Nov 11 18:13:00 2021 +0800

    Fix find group id ERROR

    This commit fix ERROR described in the related bug.
    Avoid recognizing "group_id=xabc," as "group_id=x,".

    Change-Id: I3c52f8e86f8fdc487a2f4dbf6d9d6ba88a95d1ad
    Closes-Bug: #1950543

Changed in networking-sfc:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/networking-sfc 14.0.0.0rc1

This issue was fixed in the openstack/networking-sfc 14.0.0.0rc1 release candidate.

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.