Activity log for bug #1805780

Date Who What changed Old value New value Message
2018-11-29 06:48:14 Taoyunxiang bug added bug
2018-11-29 06:48:14 Taoyunxiang attachment added error https://bugs.launchpad.net/bugs/1805780/+attachment/5217198/+files/clipboard.png
2018-11-29 09:26:06 Taoyunxiang 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 . 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 .
2018-12-06 09:20:28 Taoyunxiang networking-ovn: assignee Taoyunxiang (taoyunxiang)