vtep-ctl: Exit if database connection fails.
authorDaniele Di Proietto <diproiettod@vmware.com>
Thu, 22 Oct 2015 21:27:45 +0000 (14:27 -0700)
committerDaniele Di Proietto <diproiettod@vmware.com>
Thu, 22 Oct 2015 22:38:25 +0000 (15:38 -0700)
commitdf837d71ff949953f17841cd72d484c557a9ba19
tree3c99d681d9e57bb90fa219bac14d5b0fec3d9b85
parentabcec848ac97f9af713ff2581dec5d3632550bc6
vtep-ctl: Exit if database connection fails.

Before this commit vtep-ctl hung forever if it didn't manage to reach
the database.

This caused the testcase "ovn -- 3 HVs, 1 VIFs/HV, 1 GW, 1 LS" to hang
occasionally, because ovsdb-server could be killed before ovs-vtep
called vtep-ctl.

This mimics the behaviour of ovs-vsctl, ovn-nbctl and ovn-sbctl.

Signed-off-by: Daniele Di Proietto <diproiettod@vmware.com>
Acked-by: Justin Pettit <jpettit@nicira.com>
vtep/vtep-ctl.c