Skip to content

No usable peer 'nonexistent-peer' exists in 'netdev' datapath. #372

Open

Description

@wuqiang0720

I met a issue find the below error,but it seems not impact traffic,and I checked the related patch is successful added.is it a bug.in ovs 2.12?
No usable peer 'nonexistent-peer' exists in 'netdev' datapath.

Activity

  1. chaudron commented on Sep 30, 2025

    @chaudron

    This error message is reported when the peer of a patch port can not be found, so you might want to verify your patch port configuration. In addition, OVS 2.12 is no longer supported, so you might want to try a more recent version of OVS.

  2. igsilya commented on Sep 30, 2025

    @igsilya
    Member

    @wuqiang0720 This log says that you added a patch port with the peer name "nonexistent-peer" and that there is no such port. Looking at the name, I'd guess it's expected that this port doesn't exist. Not sure what the intention was here as patch ports without a peer make no sense, but it doesn't look like anything is wrong in OVS here.

  3. wuqiang0720 commented on Sep 30, 2025

    @wuqiang0720
    Author

    the two patch ports are added normally, but this error does not disappear, there is only one node have this issue.

  4. wuqiang0720 commented on Sep 30, 2025

    @wuqiang0720
    Author
            Controller "txxx"
                is_connected: true
            fail_mode: secure
            datapath_type: netdev
            Port phy-br_prv
                Interface phy-br_prv
                    type: patch
                    options: {peer=int-br_prv}
                    error: "No usable peer 'nonexistent-peer' exists in 'netdev' datapath."
            Port bond_prv
                Interface "data0"
                    type: dpdk
                    options: {xxx"}
                Interface "data1"
                    type: dpdk
                    options: {xxx}
            Port br_prv
                Interface br_prv
                    type: internal
        Bridge br-int
            Controller "xxx"
                is_connected: true
            fail_mode: secure
            datapath_type: netdev
            Port int-br_prv
                Interface int-br_prv
                    type: patch
                    options: {peer=phy-br_prv}
                    error: "No usable peer 'phy-br_prv' exists in 'netdev' datapath."
            Port br-int
                Interface br-int
                    type: internal
    
  5. igsilya commented on Sep 30, 2025

    @igsilya
    Member

    OK. It looks like the patch ports were first created with "peer=nonexistent-peer", but then updated with the actual peer name, but the error wasn't cleared from the database for some reason. This indeed looks like a bug in OVS. But the issue should not impact the actual traffic. I'll second Eelco here and suggest to try a newer version. Current LTS release is 3.3. OVS 2.12 is not supported for about 4 years now.

  6. wuqiang0720 commented on Sep 30, 2025

    @wuqiang0720
    Author

    @igsilya do you have the official document related to this bug. I think this is a rare issue, but two times we encounter.

  7. wuqiang0720 commented on Oct 3, 2025

    @wuqiang0720
    Author

    this issue happened during neutron-openvswitch-agent restarting,

    delete those patch port and repeating restart neutron-openvswitch-agent 20 times or more,
    this issue will happen
    I think this is a bug,the interval of two patch port creation is too short.need to update neutron related code.

  8. igsilya commented on Oct 3, 2025

    @igsilya
    Member

    @wuqiang0720 could you try the following change in your setup?

    diff --git a/vswitchd/bridge.c b/vswitchd/bridge.c
    index 456b784c0..e879b6df6 100644
    --- a/vswitchd/bridge.c
    +++ b/vswitchd/bridge.c
    @@ -2641,6 +2641,9 @@ iface_refresh_ofproto_status(struct iface *iface)
             ovsrec_interface_set_error(iface->cfg,
                                        errp ? errp : ovs_strerror(error));
             free(errp);
    +    } else if (iface->cfg->error) {
    +        ovsrec_interface_verify_error(iface->cfg);
    +        ovsrec_interface_set_error(iface->cfg, NULL);
         }
     
         current = ofproto_port_is_lacp_current(iface->port->bridge->ofproto,
  9. wuqiang0720 commented on Oct 5, 2025

    @wuqiang0720
    Author

    @igsilya I don't know where is the /vswitchd/bridge.c, I installed ovs with rpm..

  10. igsilya commented on Oct 6, 2025

    @igsilya
    Member

    @wuqiang0720 it's part of the source code, you'll need to modify the source rpm and rebuild the package.

  11. wuqiang0720 commented on Oct 7, 2025

    @wuqiang0720
    Author

    I get it, is it a bug in some version.

  12. wuqiang0720 commented on Oct 7, 2025

    @wuqiang0720
    Author
    • } else if (iface->cfg->error) {
    •    ovsrec_interface_verify_error(iface->cfg);
      
    •    ovsrec_interface_set_error(iface->cfg, NULL);
      

    I update this code,then this issue will not happen,but I'd like to know does any version will update this code?

  13. igsilya commented on Oct 7, 2025

    @igsilya
    Member

    @wuqiang0720 if you can confirm that this change fixes your issue, then we can get it applied to main and then backported down to OVS 3.3 LTS, which is the oldest currently supported version.

  14. wuqiang0720 commented on Oct 8, 2025

    @wuqiang0720
    Author

    thanks @igsilya , is there any official document to describe this issue?

  15. igsilya commented on Oct 14, 2025

    @igsilya
    Member

    @wuqiang0720 we don't have any such documents. This issue tracker and the mailing list are as official as it gets.

  16. wuqiang0720 commented on Oct 14, 2025

    @wuqiang0720
    Author

    thanks

  17. wuqiang0720 commented on Oct 17, 2025

    @wuqiang0720
    Author

    @wuqiang0720 if you can confirm that this change fixes your issue, then we can get it applied to main and then backported down to OVS 3.3 LTS, which is the oldest currently supported version.

    @igsilya ,Yes I already confirmed this change fixed my issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions