failure of port create,which needs to update before

Bug #1805780 reported by Taoyunxiang
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
networking-ovn
New
Undecided
Taoyunxiang

Bug Description

Before creating a port, which needs to update the port information. In this case, an error is reported,like as the pic tells.

the cmd of neutron is "neutron port-create net-id"

when troubleshooting with logs,i find the code logic is to update before create,just as fellows.

            if port.get('fixed_ips') and sg_ids:
                addresses = ovn_acl.acl_port_ips(port)
                # NOTE(rtheis): Fail port creation if the address set doesn't
                # exist. This prevents ports from being created on any security
                # groups out-of-sync between neutron and OVN.
                for sg_id in sg_ids:
                    for ip_version in addresses:
                        if addresses[ip_version]:
                            txn.add(self._nb_idl.update_address_set(
                                name=utils.ovn_addrset_name(sg_id,
                                                            ip_version),
                                addrs_add=addresses[ip_version],
                                addrs_remove=None,
                                if_exists=False))

the path of code is /usr/lib/python2.7/site-packages/networking_ovn/common/ovn_clinet.py

when i change the value of 'if_exists' to True , all will fine .

Revision history for this message
Taoyunxiang (taoyunxiang) wrote :
Revision history for this message
Taoyunxiang (taoyunxiang) wrote :

the error just like this

File "/usr/lib/python2.7/site-packages/ovsdbapp/backend/ovs_idl/connection.py", line 97, in run
    txn.results.put(txn.do_commit())
  File "/usr/lib/python2.7/site-packages/ovsdbapp/backend/ovs_idl/transaction.py", line 86, in do_commit
    command.run_idl(txn)
  File "/usr/lib/python2.7/site-packages/networking_ovn/ovsdb/commands.py", line 725, in run_idl
    raise RuntimeError(msg)
RuntimeError: Address set as_ip4_b5dbdfe6_bcd3_4e39_b43a_0c37c66ccb54 does not exist. Can't update addresses

description: updated
Changed in networking-ovn:
assignee: nobody → Taoyunxiang (taoyunxiang)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Patches

Remote bug watches

Bug watches keep track of this bug in other bug trackers.