Skip to content

Commit

Permalink
Ignore deleted network during port-list as it may have disappeared.
Browse files Browse the repository at this point in the history
In case of parallel tests, it is possible that during port list,
we collect a port which along with its network is deleted by the
time it is transformed to neutron representation. Ignore NoIdError
in such cases and proceed to remaining ports in the list.

Change-Id: I204e2bf9c216223ae2a918e20121950396554283
Fixes-Bug: #1384582
(cherry picked from commit 66a44bd)
  • Loading branch information
Hampapur Ajay committed Nov 21, 2014
1 parent 3591a0f commit beb31bd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/config/vnc_openstack/vnc_openstack/neutron_plugin_db.py
Expand Up @@ -1068,7 +1068,10 @@ def _port_list(self, net_objs, port_objs, iip_objs):
memo_req['instance-ips'][iip_obj.uuid] = iip_obj

for port_obj in port_objs:
port_info = self._port_vnc_to_neutron(port_obj, memo_req)
try:
port_info = self._port_vnc_to_neutron(port_obj, memo_req)
except NoIdError:
continue
ret_q_ports.append(port_info)

return ret_q_ports
Expand Down

0 comments on commit beb31bd

Please sign in to comment.