Commit c569db7
committed
hash-ring: Retry all DB operations if inactive
Neutron should be resilient to scenarios where connectivity to a service
Neutron depends on is lost. SQL database is one of it and hash ring DB
operations is used very early in the Neutron startup process.
If the connection is lost right after new API worker was spawned then
OVN IDLs are not instantiated and Neutron silently hangs on each request
that uses OVN DB because the event signaling OVN is ready never happens.
Closes-bug: #2029297
Change-Id: Id5bc24b76b7aa510d4066fbc5f7b8037cc8c740d
Signed-off-by: Jakub Libosvar <[email protected]>
(cherry picked from commit a505ff7)1 parent 3944dff commit c569db7
1 file changed
+7
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
| |||
41 | 42 | | |
42 | 43 | | |
43 | 44 | | |
| 45 | + | |
44 | 46 | | |
45 | 47 | | |
46 | 48 | | |
| |||
50 | 52 | | |
51 | 53 | | |
52 | 54 | | |
| 55 | + | |
53 | 56 | | |
54 | 57 | | |
55 | 58 | | |
56 | 59 | | |
57 | 60 | | |
58 | 61 | | |
59 | 62 | | |
| 63 | + | |
60 | 64 | | |
61 | 65 | | |
62 | 66 | | |
| |||
90 | 94 | | |
91 | 95 | | |
92 | 96 | | |
| 97 | + | |
93 | 98 | | |
94 | 99 | | |
95 | 100 | | |
96 | 101 | | |
97 | 102 | | |
98 | 103 | | |
99 | 104 | | |
| 105 | + | |
100 | 106 | | |
101 | 107 | | |
102 | 108 | | |
103 | 109 | | |
104 | 110 | | |
105 | 111 | | |
| 112 | + | |
106 | 113 | | |
107 | 114 | | |
108 | 115 | | |
| |||
0 commit comments