Commit df8a4b6
Skip OVNL3 post-fork init in non-API workers
The ``OVNL3RouterPlugin`` registers OVN OVSDB monitor events during
``_post_fork_initialize``. That callback is also invoked from
neutron-periodic-workers and other non-API processes, where the OVN IDL
connections are not initialized. Checking OVN readiness before filtering
by worker type raised ``MechanismDriverOVNNotReady`` and blocked worker
startup.
Return early when the trigger is not a Neutron API ``WorkerService``, and
only then validate OVN readiness and register monitor events.
Conflicts:
neutron/services/ovn_l3/plugin.py
Related-Bug: #2154192
Signed-off-by: Rodolfo Alonso Hernandez <ralonsoh@redhat.com>
Change-Id: I9e43fdb06ce7868e5fa699657d8da9a4aa4d02fb
(cherry picked from commit b6d260e)1 parent cde40ac commit df8a4b6
2 files changed
Lines changed: 18 additions & 8 deletions
File tree
- neutron/services/ovn_l3
- releasenotes/notes
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
183 | 183 | | |
184 | 184 | | |
185 | 185 | | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
186 | 192 | | |
187 | 193 | | |
188 | 194 | | |
189 | 195 | | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
198 | 200 | | |
199 | 201 | | |
200 | 202 | | |
| |||
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
0 commit comments