Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

modify the VLAN Tag and network_name of a subnet in OVN,ovs trace and communication failure. #341

Open
zhaiyj opened this issue Sep 10, 2024 · 0 comments

Comments

@zhaiyj
Copy link

zhaiyj commented Sep 10, 2024

I want to modify the VLAN Tag and network_name of a subnet in OVN, and I also hope to change the patch port connections from br-int and br-public-net to br-int and br-trunk-net. However, after making these changes, the output of ovs-vsctl show reflect the expected configuration, and there are still issues when running ovs-trace, indicating that the modification was not successful. Here's the current configuration situation.

  1. ovs trace flow detail:
    root@ecx-nm-huhehaote20-edge-186-35:/kube-ovn# ovs-appctl ofproto/trace br-int 'in_port=61,dl_src=c6:e3:32:84:64:e2,dl_dst=ff:ff:ff:ff:ff:ff,arp,arp_op=1,arp_sha=c6:e3:32
    :84:64:e2,arp_spa=1.180.0.9,arp_tpa=1.180.0.253,arp_tha=00:00:00:00:00:00'
    Flow: arp,in_port=61,vlan_tci=0x0000,dl_src=c6:e3:32:84:64:e2,dl_dst=ff:ff:ff:ff:ff:ff,arp_spa=1.180.0.9,arp_tpa=1.180.0.253,arp_op=1,arp_sha=c6:e3:32:84:64:e2,arp_tha=00
    :00:00:00:00:00

bridge("br-int")

  1. in_port=61, priority 100, cookie 0x58f2018a
    set_field:0x1c->reg13
    set_field:0x45->reg11
    set_field:0x9e->reg12
    set_field:0x128->metadata
    set_field:0x5->reg14
    resubmit(,8)

  2. reg14=0x5,metadata=0x128,dl_src=c6:e3:32:84:64:e2, priority 50, cookie 0x3960ca2f
    resubmit(,9)

  3. metadata=0x128, priority 0, cookie 0xacf17e03
    resubmit(,10)

  4. arp,reg14=0x5,metadata=0x128,dl_src=c6:e3:32:84:64:e2,arp_spa=1.180.0.9,arp_sha=c6:e3:32:84:64:e2, priority 90, cookie 0x9dc91549
    resubmit(,11)

  5. metadata=0x128, priority 0, cookie 0xa120b894
    resubmit(,12)

  6. metadata=0x128, priority 0, cookie 0x561636fb
    resubmit(,13)

  7. metadata=0x128, priority 0, cookie 0xc1f2d2c4
    resubmit(,14)

  8. ct_state=-trk,arp,reg14=0x5,metadata=0x128, priority 3005, cookie 0x52dabc95
    resubmit(,15)

  9. metadata=0x128, priority 0, cookie 0xb81f425b
    resubmit(,16)

  10. metadata=0x128, priority 0, cookie 0xf231951f
    resubmit(,17)

  11. metadata=0x128, priority 0, cookie 0x5978a7de
    resubmit(,18)

  12. metadata=0x128, priority 0, cookie 0xc5490f4
    resubmit(,19)

  13. metadata=0x128, priority 0, cookie 0x98237cdf
    resubmit(,20)

  14. metadata=0x128, priority 0, cookie 0xf7c2cf5
    resubmit(,21)

  15. metadata=0x128, priority 0, cookie 0x5de82c06
    resubmit(,22)

  16. metadata=0x128, priority 0, cookie 0x99f97690
    resubmit(,23)

  17. metadata=0x128, priority 0, cookie 0x12cb440a
    resubmit(,24)

  18. metadata=0x128, priority 0, cookie 0x3e4a2523
    resubmit(,25)

  19. metadata=0x128, priority 0, cookie 0x5f19ece2
    resubmit(,26)

  20. metadata=0x128, priority 0, cookie 0xc2b59034
    resubmit(,27)

  21. metadata=0x128,dl_dst=01:00:00:00:00:00/01:00:00:00:00:00, priority 70, cookie 0x33c69fe5
    set_field:0x8000->reg15
    resubmit(,32)

  22. priority 0
    resubmit(,33)

  23. reg15=0x8000,metadata=0x128, priority 100, cookie 0x3a6e9565
    set_field:0xad->reg13
    set_field:0x7->reg15
    resubmit(,34)
    34. priority 0
    set_field:0->reg0
    set_field:0->reg1
    set_field:0->reg2
    set_field:0->reg3
    set_field:0->reg4
    set_field:0->reg5
    set_field:0->reg6
    set_field:0->reg7
    set_field:0->reg8
    set_field:0->reg9
    resubmit(,40)
    40. metadata=0x128, priority 0, cookie 0xa7bc9567
    resubmit(,41)
    41. metadata=0x128, priority 0, cookie 0xa879924e
    resubmit(,42)
    42. metadata=0x128, priority 0, cookie 0x57f9ccc1
    resubmit(,43)
    43. metadata=0x128, priority 0, cookie 0x77bc39ec
    resubmit(,44)
    44. reg15=0x7,metadata=0x128, priority 65535, cookie 0xbb75b2a
    resubmit(,45)
    45. metadata=0x128, priority 0, cookie 0x7516e370
    resubmit(,46)
    46. metadata=0x128, priority 0, cookie 0x16bed93d
    resubmit(,47)
    47. metadata=0x128, priority 0, cookie 0x2bf86781
    resubmit(,48)
    48. metadata=0x128, priority 0, cookie 0x4ede2583
    resubmit(,49)
    49. metadata=0x128,dl_dst=01:00:00:00:00:00/01:00:00:00:00:00, priority 100, cookie 0x5724d996
    resubmit(,64)
    64. priority 0
    resubmit(,65)
    65. reg15=0x7,metadata=0x128, priority 100, cookie 0x9dde4e0
    push_vlan:0x8100
    set_field:4296->vlan_vid
    output:2023

        bridge("br-public-net")
        -----------------------
             0. priority 0
                NORMAL
                 >>>> received packet on unknown port 12 <<<<
                 >> no input bundle, dropping
        pop_vlan
    

    set_field:0x1c->reg13
    set_field:0x5->reg15
    resubmit(,34)
    34. reg10=0/0x1,reg14=0x5,reg15=0x5,metadata=0x128, priority 100
    drop
    set_field:0xc->reg13
    set_field:0x6->reg15
    resubmit(,34)
    34. priority 0
    set_field:0->reg0
    set_field:0->reg1
    set_field:0->reg2
    set_field:0->reg3
    set_field:0->reg4
    set_field:0->reg5
    set_field:0->reg6
    set_field:0->reg7
    set_field:0->reg8
    set_field:0->reg9
    resubmit(,40)
    40. metadata=0x128, priority 0, cookie 0xa7bc9567
    resubmit(,41)
    41. metadata=0x128, priority 0, cookie 0xa879924e
    resubmit(,42)
    42. metadata=0x128, priority 0, cookie 0x57f9ccc1
    resubmit(,43)
    43. metadata=0x128, priority 0, cookie 0x77bc39ec
    resubmit(,44)
    44. ct_state=-trk,arp,reg15=0x6,metadata=0x128, priority 3005, cookie 0x7fe5f835
    resubmit(,45)
    45. metadata=0x128, priority 0, cookie 0x7516e370
    resubmit(,46)
    46. metadata=0x128, priority 0, cookie 0x16bed93d
    resubmit(,47)
    47. metadata=0x128, priority 0, cookie 0x2bf86781
    resubmit(,48)
    48. metadata=0x128, priority 0, cookie 0x4ede2583
    resubmit(,49)
    49. metadata=0x128,dl_dst=01:00:00:00:00:00/01:00:00:00:00:00, priority 100, cookie 0x5724d996
    resubmit(,64)
    64. priority 0
    resubmit(,65)
    65. reg15=0x6,metadata=0x128, priority 100, cookie 0xb87182eb
    output:58
    set_field:0x8000->reg15

Final flow: arp,reg11=0x45,reg12=0x9e,reg13=0xc,reg14=0x5,reg15=0x8000,metadata=0x128,in_port=61,vlan_tci=0x0000,dl_src=c6:e3:32:84:64:e2,dl_dst=ff:ff:ff:ff:ff:ff,arp_spa
=1.180.0.9,arp_tpa=1.180.0.253,arp_op=1,arp_sha=c6:e3:32:84:64:e2,arp_tha=00:00:00:00:00:00
Megaflow: recirc_id=0,ct_state=-new-est-rel-rpl-inv-trk,ct_label=0/0x1,eth,arp,in_port=61,dl_src=c6:e3:32:84:64:e2,dl_dst=ff:ff:ff:ff:ff:ff,arp_spa=1.180.0.9,arp_tpa=1.18
0.0.253,arp_op=1,arp_sha=c6:e3:32:84:64:e2
Datapath actions: 11

ovs megaflow
megaflow

ovs patch port
port connect br-int, patch port br-trunk
bridge

trace flow detail flow to br-public-net bridge error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant