Fix keystone-credential-rotate CrashLoopBackOff

Keystone Credential Rotate bug has a string
 where a number is expected in fernet-manage.py

Change-Id: I8a5099777a6c16c6b3d56dbf387a3281a4d4a6aa
This commit is contained in:
lukepatrick 2017-09-06 14:38:41 -06:00
parent 15dc95754d
commit 0f858411a1

View File

@ -175,7 +175,7 @@ def main():
# time to make sure k8s reloads the secrets in all pods and then # time to make sure k8s reloads the secrets in all pods and then
# execute `credential_migrate`. # execute `credential_migrate`.
migrate_wait = os.environ['KEYSTONE_CREDENTIAL_MIGRATE_WAIT'] migrate_wait = int(os.getenv('KEYSTONE_CREDENTIAL_MIGRATE_WAIT', "60"))
LOG.info("Waiting %d seconds to execute `credential_migrate`.", LOG.info("Waiting %d seconds to execute `credential_migrate`.",
migrate_wait) migrate_wait)
time.sleep(migrate_wait) time.sleep(migrate_wait)