aboutsummaryrefslogtreecommitdiff
path: root/ovsdb
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2011-07-15 11:25:14 -0700
committerBen Pfaff <blp@nicira.com>2011-07-18 09:30:31 -0700
commitf97ffebfb8e66d7ce0ed78517dff322aa4825aea (patch)
tree225b1dcd62a15425eb38f2ced8274e8bc6623391 /ovsdb
parent7f1656751a2a34e5f52301b9efe1709080a2c603 (diff)
ovsdb: Log when remote connections are deconfigured.
Recently I helped debug a scenario where ovsdb-server connected to a remote manager, then ovs-vsctl deleted the remote manager and soon after re-added it. The log was difficult to interpret because it showed two successful connection attempts to the same remote without showing a reason why the connection was dropped in the first place. Adding this log message would make it clear that the configuration changed to remove that remote connection in the meantime.
Diffstat (limited to 'ovsdb')
-rw-r--r--ovsdb/jsonrpc-server.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ovsdb/jsonrpc-server.c b/ovsdb/jsonrpc-server.c
index 1da15785..e999adaf 100644
--- a/ovsdb/jsonrpc-server.c
+++ b/ovsdb/jsonrpc-server.c
@@ -141,6 +141,7 @@ ovsdb_jsonrpc_server_set_remotes(struct ovsdb_jsonrpc_server *svr,
SHASH_FOR_EACH_SAFE (node, next, &svr->remotes) {
if (!shash_find(new_remotes, node->name)) {
+ VLOG_INFO("%s: remote deconfigured", node->name);
ovsdb_jsonrpc_server_del_remote(node);
}
}