[ovs-build] Failed: ovsrobot/ovs#1215 (series_118462 - b0a90bd)

Travis CI builds at travis-ci.org
Tue Jul 9 09:01:26 UTC 2019


Build Update for ovsrobot/ovs
-------------------------------------

Build: #1215
Status: Failed

Duration: 1 hr, 4 mins, and 14 secs
Commit: b0a90bd (series_118462)
Author: Michele Baldessari
Message: OVN resource agent - make promotion synchronous

Currently inside the ovsdb_server_promote() function we call 'promote_ovnnb'
and 'promote_ovnsb' and then just record the new master state in the
CIB.

This creates a race because those two promote commands are asynchronous
so when we exit the ovsdb_server_promote() function the underlying DBs
are not guaranteed to be in master state. That means that clients might
connect to an instance that is in read-only mode.

We add a simple sleep loop where we wait for the underlying DB state to
confirm the master state. We do not need to add a timeout loop because
in case of an issue the resource timeout set within pacemaker will kick
in and the resource agent script will be killed by pacemaker.

Tested this within an openstack environment using ovn with roughly ~20
reboots and was unable to trigger the issue (before the patch we would
trigger the issue after a couple of reboots tops).

Signed-off-by: Michele Baldessari <michele at acksyn.org>
Acked-By: Daniel Alvarez <dalvarez at redhat.com>
Acked-by: Numan Siddique <nusiddiq at redhat.com>
Acked-By: Lucas Alvares Gomes <lucasagomes at gmail.com>
Signed-off-by: 0-day Robot <robot at bytheb.org>

View the changeset: https://github.com/ovsrobot/ovs/commit/b0a90bd5e23e

View the full build log and details: https://travis-ci.org/ovsrobot/ovs/builds/556177282?utm_medium=notification&utm_source=email

--

You can unsubscribe from build emails from the ovsrobot/ovs repository going to https://travis-ci.org/account/preferences/unsubscribe?repository=22285853&utm_medium=notification&utm_source=email.
Or unsubscribe from *all* email updating your settings at https://travis-ci.org/account/preferences/unsubscribe?utm_medium=notification&utm_source=email.
Or configure specific recipients for build notifications in your .travis.yml file. See https://docs.travis-ci.com/user/notifications.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openvswitch.org/pipermail/ovs-build/attachments/20190709/e5cdd05c/attachment.html>


More information about the build mailing list