summaryrefslogtreecommitdiff
path: root/ovsdb/storage.c
diff options
context:
space:
mode:
authorFederico Paolinelli <fpaoline@redhat.com>2020-07-30 12:41:47 +0200
committerIlya Maximets <i.maximets@ovn.org>2020-09-16 00:11:27 +0200
commit27dc7adf66b1af88f238da46c6430e3d2eaa4da3 (patch)
treee4568f88d2c8f2c961983c730be757cc062d33a3 /ovsdb/storage.c
parentdb7041716bfe068ddd0cef05e830b65690ad5c8a (diff)
downloadopenvswitch-27dc7adf66b1af88f238da46c6430e3d2eaa4da3.tar.gz
ovsdb-tool: Add a db consistency check to the ovsdb-tool check-cluster command.
There are some occurrences where the database ends up in an inconsistent state. This happened in ovn-k8s and is described in [0]. Here we are adding a supported way to check that a given db is consistent, which is less error prone than checking the logs. Tested against both a valid db and a corrupted db attached to the above bug [1]. Also, tested with a fresh db that did not do a snapshot. [0]: https://bugzilla.redhat.com/show_bug.cgi?id=1837953#c23 [1]: https://bugzilla.redhat.com/attachment.cgi?id=1697595 Signed-off-by: Federico Paolinelli <fpaoline@redhat.com> Suggested-by: Dumitru Ceara <dceara@redhat.com> Acked-by: Dumitru Ceara <dceara@redhat.com> Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
Diffstat (limited to 'ovsdb/storage.c')
0 files changed, 0 insertions, 0 deletions