Skip to content

Commit

Permalink
OVN-IC: Interconnect DBs add basic Information Flow columns.
Browse files Browse the repository at this point in the history
Add basic flow columns to interconnect northbound DB and
interconnect Southbound DB.

Those columns will be used by future patches to add basic
support for Information Flow in OVN  interconnect.

Signed-off-by: Mohammad Heib <mheib@redhat.com>
Acked-by: Mark Michelson <mmichels@redhat.com>
Acked-by: Ales Musil <amusil@redhat.com>
Signed-off-by: Dumitru Ceara <dceara@redhat.com>
(cherry picked from commit 3860d3f)
  • Loading branch information
mohammadheib authored and dceara committed Feb 7, 2024
1 parent ebb7076 commit 76a924b
Show file tree
Hide file tree
Showing 5 changed files with 55 additions and 5 deletions.
8 changes: 8 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,14 @@ OVN v24.03.0 - xx xxx xxxx
- Introduce next-hop BFD availability check for OVN reroute policies.
- Add the capability to mark (through pkt.mark) incoming/outgoing packets
in the logical switch datapath according to user configured QoS rule.
- OVN Interconnection:
* INB provides basic feedback to the CMS about the ISB changes
handling status.
* IC_NB_Global now have "nb_ic_cfg" and "sb_ic_cfg" columns for
for ISB informational status.
* IC_SB_Global now have "nb_ic_cfg" column for ISB informational status.
* Availability_Zone now have "nb_ic_cfg" column for local AZ
informational status.

OVN v23.09.0 - 15 Sep 2023
--------------------------
Expand Down
6 changes: 4 additions & 2 deletions ovn-ic-nb.ovsschema
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
{
"name": "OVN_IC_Northbound",
"version": "1.0.0",
"cksum": "45589876 3383",
"version": "1.1.0",
"cksum": "3964083684 3501",
"tables": {
"IC_NB_Global": {
"columns": {
"nb_ic_cfg": {"type": {"key": "integer"}},
"sb_ic_cfg": {"type": {"key": "integer"}},
"external_ids": {
"type": {"key": "string", "value": "string",
"min": 0, "max": "unlimited"}},
Expand Down
17 changes: 17 additions & 0 deletions ovn-ic-nb.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,23 @@
one row.
</p>

<group title="Status">
These columns allow a client to track the overall configuration state of
the system.

<column name="nb_ic_cfg">
Sequence number for client to increment. When a client modifies the
interconnect northbound database configuration and wishes to wait for
<code>OVN-ICs</code> to handle this change and update the Interconnect
southbound database, it may increment this sequence number.
</column>
<column name="sb_ic_cfg">
Sequence number that one <code>OVN-IC</code> sets to the value of
<ref column="nb_ic_cfg"/> after waiting to all the <code>OVN-ICs</code>
finish applying their changes to interconnect southbound database.
</column>
</group>

<group title="Common Columns">
<column name="external_ids">
See <em>External IDs</em> at the beginning of this document.
Expand Down
8 changes: 5 additions & 3 deletions ovn-ic-sb.ovsschema
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
{
"name": "OVN_IC_Southbound",
"version": "1.1.1",
"cksum": "3684563024 6914",
"version": "1.2.0",
"cksum": "1381014956 7032",
"tables": {
"IC_SB_Global": {
"columns": {
"nb_ic_cfg": {"type": {"key": "integer"}},
"external_ids": {
"type": {"key": "string", "value": "string",
"min": 0, "max": "unlimited"}},
Expand All @@ -24,7 +25,8 @@
"isRoot": true},
"Availability_Zone": {
"columns": {
"name": {"type": "string"}},
"name": {"type": "string"},
"nb_ic_cfg": {"type": {"key": "integer"}}},
"isRoot": true,
"indexes": [["name"]]},
"Gateway": {
Expand Down
21 changes: 21 additions & 0 deletions ovn-ic-sb.xml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,21 @@
one row.
</p>

<group title="Status">
This column allow a client to track the overall configuration state of
the system.

<column name="nb_ic_cfg">
Sequence number for the configuration. When a CMS or
<code>ovn-ic-nbctl</code> updates the Interconnect northbound database,
it increments the <code>nb_ic_cfg</code> column in the
<code>NB_IC_Global</code> table in the Interconnect northbound
database. when <code>OVN-ICs</code> updates the southbound database to
bring it up to date with these changes, one <code>OVN-IC</code> updates
this column to the same value.
</column>
</group>

<group title="Common Columns">
<column name="external_ids">
See <em>External IDs</em> at the beginning of this document.
Expand Down Expand Up @@ -102,6 +117,12 @@
<column name="name">
A name that uniquely identifies the availability zone.
</column>

<column name="nb_ic_cfg">
This column is used by the <code>OVN-IC</code> to inform
that this IC instance is aligned with the changes in INB
</column>

</table>

<table name="Gateway" title="Interconnection Gateway Information">
Expand Down

0 comments on commit 76a924b

Please sign in to comment.