The Neutron OVS agent logs can get flooded with KeyErrors as the
'_get_port_info' method skips the added/removed dict items if no
ports have been added/removed, which are expected to be present,
even if those are just empty sets.
This change ensures that those port info dict fields are always set.
Closes-Bug: #1783556
Change-Id: I9e5325aa2d8525231353ba451e8ea895be51b1ca
(cherry picked from commit da5b13df2b2a8171f60311414250671820390738)
Reviewed: https:/ /review. openstack. org/592998 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=2652100446a 5614a1b2e636884 6737966a84d1eb
Committed: https:/
Submitter: Zuul
Branch: stable/queens
commit 2652100446a5614 a1b2e6368846737 966a84d1eb
Author: Lucian Petrut <email address hidden>
Date: Wed Jul 25 16:05:04 2018 +0300
Trivial: avoid KeyError while processing ports
The Neutron OVS agent logs can get flooded with KeyErrors as the port_info' method skips the added/removed dict items if no
'_get_
ports have been added/removed, which are expected to be present,
even if those are just empty sets.
This change ensures that those port info dict fields are always set.
Closes-Bug: #1783556
Change-Id: I9e5325aa2d8525 231353ba451e8ea 895be51b1ca 1f6031141425067 1820390738)
(cherry picked from commit da5b13df2b2a817