Fixes ceph key import failures 25/53125/4
authorTim Rozet <trozet@redhat.com>
Mon, 5 Mar 2018 22:08:03 +0000 (17:08 -0500)
committerTim Rozet <trozet@redhat.com>
Fri, 9 Mar 2018 14:34:10 +0000 (09:34 -0500)
commit32550560a1b6e00565db8d995c84f304d4cb9893
treec9b1f4e7dbd73a9cee34718d6e42ddd7365bd36f
parent3ed11a41b3aa792fc11e79b010f2366eb94f9d49
Fixes ceph key import failures

There is an issue with HA deployments where sometimes key imports fail
for Ceph which seem to occur around 50% of the time.  When logging in
after a failure, the key import seems to work which indicates it may be
a race condition.  In addition, sometimes the keyring that is created
is missing the "caps" section of the file, which will also fail import.

This patch adds a retries for a minute to try to import the key.  It
also moves creating/importing to the same Exec because there is
evidence that the file is being modified by some other process right
after the file content is created in the previous exec.

JIRA: APEX-563

Change-Id: Ie8cfeb4803f6bed95f9e612eeb37c5cdf2d76617
Signed-off-by: Tim Rozet <trozet@redhat.com>
build/overcloud-full.sh
build/patches/puppet-ceph.patch [new file with mode: 0644]