Add retry when executing OF commands if "InvalidDatapath"
When using the OF API (currently Neutron only uses native
implementation via "os-ken" librarr), retry the command in case of
"InvalidDatapath" exception.
As commented in the related bug, some operations could restart the
OF controller (set the OF procols, set the bridge fail mode). During
the controller restart, a command can return a "InvalidDatapath"
exception.
Reviewed: https:/ /review. opendev. org/c/openstack /neutron/ +/810592 /opendev. org/openstack/ neutron/ commit/ 57629dc05122b01 a9ba76606b8d75c ce9da40776
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit 57629dc05122b01 a9ba76606b8d75c ce9da40776
Author: Rodolfo Alonso Hernandez <email address hidden>
Date: Thu Sep 23 09:15:09 2021 +0000
Add retry when executing OF commands if "InvalidDatapath"
When using the OF API (currently Neutron only uses native apath" exception.
implementation via "os-ken" librarr), retry the command in case of
"InvalidDat
As commented in the related bug, some operations could restart the
OF controller (set the OF procols, set the bridge fail mode). During
the controller restart, a command can return a "InvalidDatapath"
exception.
Closes-Bug: #1944201 272e9519c1cbd9d 6ba9359e0a1
Change-Id: Ia8d202f8a38362