Wait for cluster to settle in yum_update.sh
authorJiri Stransky <jistr@redhat.com>
Thu, 17 Dec 2015 13:40:15 +0000 (14:40 +0100)
committerJiri Stransky <jistr@redhat.com>
Mon, 4 Jan 2016 17:15:15 +0000 (18:15 +0100)
commitac7467bacddb98fbb9fc9716ba56cad0d6f282de
tree121845068503cb6e2d06f99fa8cd1846c159e43a
parentbce5f65f2e036f6ef5232fdfc8025d7f864faa56
Wait for cluster to settle in yum_update.sh

Occasionally we hit "Error: unable to push cib" during update. This is
probably due to the fact that when we try to replace cib in
yum_update.sh, services on the previous updated controller are still
coming up and changing cib, and racing/conflicting with the cib push
from yum_update.sh.

This commit adds waiting for the cluster to settle before exiting from
yum_update.sh, to avoid this kind of conflict.

Also a check for cib-push success is added, to make the update fail
properly instead of hanging indefinitely as we've observed with this
issue.

Change-Id: I953087e0e565474ac553fd57bea2459d2e3a6081
Closes-Bug: #1527644
extraconfig/tasks/yum_update.sh