Commit a5244d6d44d2b66de27dc77efa7830fa657260be changed the check
order so regular non-dvr ports are checked for agent restarted.
However regular ports may be unbound already, which leads to the
error in the bug description: agent_restarted check is done against
a 'None' agent.
This patch fixed logic back - only check agent_restarted for dvr ports.
This also adds some logging to have a clue why update port up/down fails.
Change-Id: I3ad59864eeb42916d2cf15a5292d5aa9484f6e91
Closes-Bug: #1835731
(cherry picked from commit c3a3031f78b3ea2d16d4eb08b181916dbc6f4c45)
Reviewed: https:/ /review. opendev. org/671966 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=2318a60046c 972ed1f9356e915 9b583c48947eae
Committed: https:/
Submitter: Zuul
Branch: stable/queens
commit 2318a60046c972e d1f9356e9159b58 3c48947eae
Author: Oleg Bondarev <email address hidden>
Date: Mon Jul 8 15:21:18 2019 +0400
Check for agent restarted after checking for DVR port
This is a stable-only fix since code around the change was removed /review. opendev. org/#/c/ 641866
in master: https:/
Commit a5244d6d44d2b66 de27dc77efa7830 fa657260be changed the check
order so regular non-dvr ports are checked for agent restarted.
However regular ports may be unbound already, which leads to the
error in the bug description: agent_restarted check is done against
a 'None' agent.
This patch fixed logic back - only check agent_restarted for dvr ports.
This also adds some logging to have a clue why update port up/down fails.
Change-Id: I3ad59864eeb429 16d2cf15a5292d5 aa9484f6e91 d16d4eb08b18191 6dbc6f4c45)
Closes-Bug: #1835731
(cherry picked from commit c3a3031f78b3ea2