ovsdb-idl: log error in client when db schema does not exist on server
authorLance Richardson <lrichard@redhat.com>
Thu, 28 Jan 2016 14:26:55 +0000 (09:26 -0500)
committerBen Pfaff <blp@ovn.org>
Sat, 6 Feb 2016 00:43:52 +0000 (16:43 -0800)
commit8e7baed0535eb9a410882669b6bac71dc9419e93
tree8867b06cb19da52726c0167341d0f8d9195e41eb
parenteea0cdb5c56a45653ec4215439e51bfe2504add3
ovsdb-idl: log error in client when db schema does not exist on server

A common error scenario with OVN is to attempt to use ovn-nbctl when
the OVN databases have not been created in ovsdb-server:
   1. ovn-nbctl sends "get_schema" request for OVN db to ovsdb-server.
   2. ovsdb-server fails to find requested db, sends error response
      to ovn-nbctl.
   3. ovn-nbctl receives the error response in ovsdb_idl_run(), but
      takes no specific action.
   4. ovn-nbctl hangs forever in IDL_S_SCHEMA_REQUESTED state (assuming
      a timeout wasn't requested on the command line).

Add a log message to inform the user of this situation.

Signed-off-by: Lance Richardson <lrichard@redhat.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
lib/ovsdb-idl.c