summaryrefslogtreecommitdiff
path: root/tests/ovsdb-execution.at
Commit message (Collapse)AuthorAgeFilesLines
* ovsdb: Make OVSDB backup sever read onlyAndy Zhou2016-08-141-0/+39
| | | | | | | | | | | | | When ovsdb-sever is running in the backup state, it would be nice to make sure there is no un-intended changes to the backup database. This patch makes the ovsdb server only accepts 'read' transactions as a backup server. When the server role is changed into an active server, all existing client connections will be reset. After reconnect, all clinet transactions will then be accepted. Signed-off-by: Andy Zhou <azhou@ovn.org> Acked-by: Ben Pfaff <blp@ovn.org>
* ovsdb: Use better error message for "timeout" without waiting.Ryan Moats2016-08-131-3/+3
| | | | | | | | | | | | | When setting a where clause, if the timeout is set to a value of 0, the clause is tested once and if it fails, a message of '"wait" timed out' is returned. This can be misleading because there wasn't any real time, so change the message to '"where" clause test failed'. Signed-off-by: Ryan Moats <rmoats@us.ibm.com> Reported-by: Ryan Moats <rmoats@us.ibm.com> Reported-at: http://openvswitch.org/pipermail/dev/2016-August/077083.html Fixes: f85f8ebb ("Initial implementation of OVSDB.") Signed-off-by: Ben Pfaff <blp@ovn.org>
* tests: Automatically initialize OVS_*DIR vars when tests begin.Ben Pfaff2015-09-091-1/+0
| | | | | | | | | | A lot of tests need to initialize the OVS_RUNDIR, OVS_LOGDIR, etc. variables to point to the directory in which the tests run. Until now, each of them has had to do this individually, which is redundant. This commit starts to do this automatically. Signed-off-by: Ben Pfaff <blp@nicira.com> Acked-by: Andy Zhou <azhou@nicira.com>
* Add IPv6 support for OpenFlow, OVSDB, NetFlow, and sFlow.Arun Sharma2014-02-061-1/+4
| | | | | | | | | | Does not add IPv6 support for in-band control. Co-authored-by: Ben Pfaff <blp@nicira.com> Signed-off-by: Nandan Nivgune <nandan.nivgune@calsoftinc.com> Signed-off-by: Abhijit Bhopatkar <abhijit.bhopatkar@calsoftinc.com> Signed-off-by: Arun Sharma <arun.sharma@calsoftinc.com> Signed-off-by: Ben Pfaff <blp@nicira.com>
* invoke perl as ${PERL}YAMAMOTO Takashi2013-04-221-1/+1
| | | | | | | as suggested by Ben Pfaff. Signed-off-by: YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp> Signed-off-by: Ben Pfaff <blp@nicira.com>
* stream-unix: Use rundir as root for relative paths.Pavithra Ramesh2013-02-111-0/+1
| | | | | | | | | | | | | | Until now, "unix:" and "punix:" paths that are not absolute have been considered relative to the current working directory. It is more useful to consider them relative to the rundir, so this commit makes that change to the C and Python implementations of the stream code. This commit also relaxes the whitelist check in the bridge code so that any name that does not contain a "/" is considered OK. Signed-off-by: Pavithra Ramesh <paramesh@vmware.com> Signed-off-by: Ben Pfaff <blp@nicira.com>
* ovsdb: Enforce immutability of immutable columns.Ben Pfaff2012-09-051-0/+43
| | | | | | | | | | | OVSDB has always had the ability to mark a column as "immutable", so that its value cannot be changed in a given row after that row is initially inserted. However, we discovered recently that ovsdb-server has never enforced this constraint. This commit implements enforcement. Reported-by: Paul Ingram <paul@nicira.com> Signed-off-by: Ben Pfaff <blp@nicira.com> Acked-by: Kyle Mestery <kmestery@cisco.com>
* tests: Convert *_SCHEMA macros to shell functions.Ben Pfaff2012-03-071-41/+58
| | | | | | | This reduces tests/testsuite by about 70 kB, by collapsing a number of macro expansions into just one copy in a shell function. Signed-off-by: Ben Pfaff <blp@nicira.com>
* ovsdb: Implement table uniqueness constraints ("indexes").Ben Pfaff2011-06-061-1/+84
|
* ovsdb: Check ovsdb_mutation_set_execute() return value in transactions.Ben Pfaff2011-05-311-1/+9
| | | | | | | | | Errors from this function were being ignored, which meant that transactions could use "mutate" to bypass number-of-elements constraints on sets and maps. This fixes the problem and adds a test to prevent the problem from recurring. Bug #5781.
* ovsdb: Implement garbage collection.Ben Pfaff2011-03-101-0/+182
|
* ovsdb: Improve error message for duplicate uuid-name.Ben Pfaff2011-03-101-0/+14
| | | | | | | | | | | | ovsdb_execute_insert() tried to return a helpful error message when there was a duplicate uuid-name, but ovsdb_execute() (its caller) makes any parse error override a parse error. Since ovsdb_execute_insert() would skip parsing the row when the uuid-name was a duplicate, this meant that the error actually reported would be that "row" was not allowed here, which wasn't at all helpful (since "row" is in fact mandatory). This commit clears up the problem by always retrieving the "row" member, which required a small amount of refactoring, and adds a test.
* ovsdb-data: Verify that named-uuid string is an <id>.Ben Pfaff2011-03-101-0/+19
| | | | | | | | The "uuid-name" that creates symbols must be an <id> but we weren't verifying the same constraint on the "named-uuid"s that refer to symbols, which was a bit confusing in writing transactions by hand. This commit fixes the inconsistency and updates the SPECS file to clarify that a named-uuid string has to be an <id>.
* ovsdb-tool: Add commands for printing the database checksum.Ben Pfaff2011-02-151-1/+2
|
* Implement database schema versioning.Ben Pfaff2010-12-271-1/+2
| | | | | As the database schema evolves, it might be useful to have an identifier for the particular version in use. This commit adds that feature.
* ovsdb-server: Improve logging for referential integrity violations.Ben Pfaff2010-06-221-1/+1
| | | | | This may help with bug #2727 "ovs-vsctl transaction error while changing VM power state", if it is reproducible.
* tests: Fix bug in "weak references" test.Ben Pfaff2010-05-071-1/+2
| | | | | | | | | One part of the "weak references" test inserts invalid all-zeros weak references into two columns and expects to get an error message mentioning one of them. Unfortunately the one that actually gets mentioned depends on hash ordering and thus differs between big-endian and little-endian machines. This commit fixes the problem by only putting an invalid reference in a single column, instead of two of them.
* ovsdb: Allow constraining the number of rows in a table.Ben Pfaff2010-03-181-2/+13
|
* ovsdb: Add support for weak references.Ben Pfaff2010-03-171-0/+162
|
* ovsdb: Fix commit to disk of rows added to a table with all-default values.Ben Pfaff2010-02-151-0/+16
|
* ovsdb: Add support for multiple databases to the protocol.Ben Pfaff2010-02-091-52/+103
| | | | | | This also adds protocol compatibility to the database itself and to ovsdb-client. It doesn't actually add multiple database support to ovsdb-server, since we don't really need that yet.
* ovsdb: Get rid of "declare" operation.Ben Pfaff2010-02-081-6/+2
| | | | | | It's more elegant, and just as easy to implement, if we allow a "named-uuid" to be a forward reference to a "uuid-name" in a later "insert" operation.
* ovsdb: Add support for referential integrity in the database itself.Ben Pfaff2010-02-081-0/+112
|
* ovsdb: Add simple constraints.Ben Pfaff2010-02-081-1/+25
|
* Rework and simplify the "lcov" support for the testsuite.Ben Pfaff2010-02-021-1/+1
|
* ovsdb: Add new "mutation" operation to transactions.Ben Pfaff2009-12-161-0/+24
|
* ovsdb: Add tests for file storage and for ovsdb-server.Ben Pfaff2009-11-161-80/+92
|
* Initial implementation of OVSDB.Ben Pfaff2009-11-041-0/+321