-
Notifications
You must be signed in to change notification settings - Fork 935
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Network: Begin transition to libovsdb #14841
base: main
Are you sure you want to change the base?
Conversation
|
||
tlsConfig := &tls.Config{ | ||
Certificates: []tls.Certificate{clientCert}, | ||
InsecureSkipVerify: true, |
Check failure
Code scanning / CodeQL
Disabled TLS certificate check High
|
||
tlsConfig := &tls.Config{ | ||
Certificates: []tls.Certificate{clientCert}, | ||
InsecureSkipVerify: true, |
Check failure
Code scanning / CodeQL
Disabled TLS certificate check High
@markylaing im going to wait until after LXD 6.3 to merge this btw. |
Yep no problem. There are some issues with it in any case. |
44e2228
to
e561b66
Compare
e561b66
to
57c7bf6
Compare
Signed-off-by: Stéphane Graber <[email protected]> Sponsored-by: Luizalabs (https://luizalabs.com) Signed-off-by: Mark Laing <[email protected]> License: Apache-2.0
Signed-off-by: Mark Laing <[email protected]>
Signed-off-by: Stéphane Graber <[email protected]> Sponsored-by: Luizalabs (https://luizalabs.com) Signed-off-by: Mark Laing <[email protected]> License: Apache-2.0
Signed-off-by: Stéphane Graber <[email protected]> Sponsored-by: Luizalabs (https://luizalabs.com) Signed-off-by: Mark Laing <[email protected]> License: Apache-2.0
Signed-off-by: Stéphane Graber <[email protected]> Sponsored-by: Luizalabs (https://luizalabs.com) Signed-off-by: Mark Laing <[email protected]> License: Apache-2.0
Signed-off-by: Stéphane Graber <[email protected]> Sponsored-by: Luizalabs (https://luizalabs.com) Signed-off-by: Mark Laing <[email protected]> License: Apache-2.0
Signed-off-by: Stéphane Graber <[email protected]> Sponsored-by: Luizalabs (https://luizalabs.com) (cherry picked from commit d87d46523c7453932578b1cab42c874f724c34c0) Signed-off-by: Mark Laing <[email protected]> License: Apache-2.0
Signed-off-by: Stéphane Graber <[email protected]> Sponsored-by: Luizalabs (https://luizalabs.com) Signed-off-by: Mark Laing <[email protected]> License: Apache-2.0
Signed-off-by: Stéphane Graber <[email protected]> Sponsored-by: Luizalabs (https://luizalabs.com) (cherry picked from commit 757148099e1cf904bb96b1748184cd55e4092d1b) Signed-off-by: Mark Laing <[email protected]> License: Apache-2.0
Signed-off-by: Stéphane Graber <[email protected]> Sponsored-by: Luizalabs (https://luizalabs.com) (cherry picked from commit e67cddf68fc9b3ee6bb574ae126a5ae0abc69ca8) Signed-off-by: Mark Laing <[email protected]> License: Apache-2.0
Signed-off-by: Stéphane Graber <[email protected]> Sponsored-by: Luizalabs (https://luizalabs.com) Signed-off-by: Mark Laing <[email protected]> License: Apache-2.0
Signed-off-by: Stéphane Graber <[email protected]> Sponsored-by: Luizalabs (https://luizalabs.com) Signed-off-by: Mark Laing <[email protected]> License: Apache-2.0
Signed-off-by: Stéphane Graber <[email protected]> Sponsored-by: Luizalabs (https://luizalabs.com) Signed-off-by: Mark Laing <[email protected]> License: Apache-2.0
Signed-off-by: Stéphane Graber <[email protected]> Sponsored-by: Luizalabs (https://luizalabs.com) Signed-off-by: Mark Laing <[email protected]> License: Apache-2.0
Signed-off-by: Stéphane Graber <[email protected]> Sponsored-by: Luizalabs (https://luizalabs.com) (cherry picked from commit 0b9a4cda51353f64ef5628f3cc63462fa47098f4) Signed-off-by: Mark Laing <[email protected]> License: Apache-2.0
Signed-off-by: Stéphane Graber <[email protected]> Sponsored-by: Luizalabs (https://luizalabs.com) Signed-off-by: Mark Laing <[email protected]> License: Apache-2.0
Signed-off-by: Stéphane Graber <[email protected]> Sponsored-by: Luizalabs (https://luizalabs.com) Signed-off-by: Mark Laing <[email protected]> License: Apache-2.0
Signed-off-by: Stéphane Graber <[email protected]> Sponsored-by: Luizalabs (https://luizalabs.com) Signed-off-by: Mark Laing <[email protected]> License: Apache-2.0
Signed-off-by: Stéphane Graber <[email protected]> Sponsored-by: Luizalabs (https://luizalabs.com) Signed-off-by: Mark Laing <[email protected]> License: Apache-2.0
Signed-off-by: Stéphane Graber <[email protected]> Sponsored-by: Luizalabs (https://luizalabs.com) Signed-off-by: Mark Laing <[email protected]> License: Apache-2.0
Signed-off-by: Mark Laing <[email protected]>
Signed-off-by: Stéphane Graber <[email protected]> Sponsored-by: Luizalabs (https://luizalabs.com) Signed-off-by: Mark Laing <[email protected]> License: Apache-2.0
Signed-off-by: Stéphane Graber <[email protected]> Sponsored-by: Luizalabs (https://luizalabs.com) Signed-off-by: Mark Laing <[email protected]> License: Apache-2.0
Signed-off-by: Stéphane Graber <[email protected]> Sponsored-by: Luizalabs (https://luizalabs.com) Signed-off-by: Mark Laing <[email protected]> License: Apache-2.0
Signed-off-by: Stéphane Graber <[email protected]> Sponsored-by: Luizalabs (https://luizalabs.com) Signed-off-by: Mark Laing <[email protected]> License: Apache-2.0
Signed-off-by: Stéphane Graber <[email protected]> Sponsored-by: Luizalabs (https://luizalabs.com) Signed-off-by: Mark Laing <[email protected]> License: Apache-2.0
Signed-off-by: Stéphane Graber <[email protected]> Sponsored-by: Luizalabs (https://luizalabs.com) Signed-off-by: Mark Laing <[email protected]> License: Apache-2.0
Signed-off-by: Stéphane Graber <[email protected]> Sponsored-by: Luizalabs (https://luizalabs.com) Signed-off-by: Mark Laing <[email protected]> License: Apache-2.0
Signed-off-by: Stéphane Graber <[email protected]> Sponsored-by: Luizalabs (https://luizalabs.com) Signed-off-by: Mark Laing <[email protected]> License: Apache-2.0
Signed-off-by: Stéphane Graber <[email protected]> Sponsored-by: Luizalabs (https://luizalabs.com) Signed-off-by: Mark Laing <[email protected]> License: Apache-2.0
Signed-off-by: Stéphane Graber <[email protected]> Sponsored-by: Luizalabs (https://luizalabs.com) Signed-off-by: Mark Laing <[email protected]> License: Apache-2.0
Signed-off-by: Stéphane Graber <[email protected]> Signed-off-by: Mark Laing <[email protected]> License: Apache-2.0
Signed-off-by: Stéphane Graber <[email protected]> Signed-off-by: Mark Laing <[email protected]> License: Apache-2.0
This commit adds logic to the client to listen for update events on the `NB_Global` table. This is used to receive notifications when the value of `sb_cfg` or `hv_cfg` is changed, so that we can wait for configuration to propagate without polling. The `(NB).transaction` method gets the existing NB_Global from the cache and increments the `nb_cfg` value. It then waits for `sb_cfg` or `hv_cfg` be updated to a number greater than or equal to the incremented `nb_cfg`. This logic is the same as in ovn-nbctl (I've linked to the source in a comment). A new type `nbWaitMode` is added to control the wait behaviour. Signed-off-by: Mark Laing <[email protected]>
Signed-off-by: Mark Laing <[email protected]>
Signed-off-by: Mark Laing <[email protected]>
Signed-off-by: Stéphane Graber <[email protected]> Signed-off-by: Mark Laing <[email protected]> License: Apache-2.0
Signed-off-by: Stéphane Graber <[email protected]> Signed-off-by: Mark Laing <[email protected]> License: Apache-2.0
Signed-off-by: Stéphane Graber <[email protected]> Signed-off-by: Mark Laing <[email protected]> License: Apache-2.0
Signed-off-by: Stéphane Graber <[email protected]> Sponsored-by: Luizalabs (https://luizalabs.com) Signed-off-by: Mark Laing <[email protected]> License: Apache-2.0
Signed-off-by: Stéphane Graber <[email protected]> Sponsored-by: Luizalabs (https://luizalabs.com) Signed-off-by: Mark Laing <[email protected]> License: Apache-2.0
Signed-off-by: Mark Laing <[email protected]>
Signed-off-by: Stéphane Graber <[email protected]> Signed-off-by: Mark Laing <[email protected]> License: Apache-2.0
Signed-off-by: Stéphane Graber <[email protected]> Signed-off-by: Mark Laing <[email protected]> License: Apache-2.0
Signed-off-by: Stéphane Graber <[email protected]> Signed-off-by: Mark Laing <[email protected]> License: Apache-2.0
Signed-off-by: Stéphane Graber <[email protected]> Signed-off-by: Mark Laing <[email protected]> License: Apache-2.0
…ent. It's not just the `network_ovn` suite that uses Open vSwitch. It is used in many places e.g. checking a OVS bridge exists for reporting the kind of an unmanaged network. Signed-off-by: Mark Laing <[email protected]>
57c7bf6
to
78ac433
Compare
Signed-off-by: Mark Laing <[email protected]>
78ac433
to
980b5d4
Compare
Tests passing now (both in the main test suite and the A few things for discussion:
|
This begins a series of cherry-picks and amendments to transition LXD to use libovsdb, rather than OVN CLI tooling.