Repeat few times put new interface in the namespace
It seems that from time to time we may experience another variant of the
shy ovs ports issue (see [1] for details) while trying to put interface,
e.g. router's port into the namespace by the interface driver.
To avoid that, this patch adds some repeats of the putting interface in
the namespace, in the same way like it was done originally with
set_address of the device.
Additionally, this patch also refactors a bit part which is responsible
to set mac address of the device to be able to clean ports in case of
the permanent error there.
Reviewed: https:/ /review. opendev. org/c/openstack /neutron/ +/835809 /opendev. org/openstack/ neutron/ commit/ 7c67460b1612c68 6edf941603e9250 a5b3d5778f
Committed: https:/
Submitter: "Zuul (22348)"
Branch: stable/xena
commit 7c67460b1612c68 6edf941603e9250 a5b3d5778f
Author: Slawek Kaplonski <email address hidden>
Date: Wed Feb 23 15:12:37 2022 +0100
Repeat few times put new interface in the namespace
It seems that from time to time we may experience another variant of the
shy ovs ports issue (see [1] for details) while trying to put interface,
e.g. router's port into the namespace by the interface driver.
To avoid that, this patch adds some repeats of the putting interface in
the namespace, in the same way like it was done originally with
set_address of the device.
Additionally, this patch also refactors a bit part which is responsible
to set mac address of the device to be able to clean ports in case of
the permanent error there.
[1] https:/ /bugs.launchpad .net/neutron/ +bug/1618987
Closes-Bug: #1961740 036b9046746ae57 9c8ed2ecf27 1471f6054ba0583 82a1b9e1a1)
Change-Id: I3e0786fd8d0320
(cherry picked from commit f7fac03ae1a4b1b