It's possible that in CI environment or in slow servers the systemd
reload takes time to read new systemd services and reload systemd while
Ansible already moved on and tries to enable these services.
Adding a retry mechanism so we retry 5 times with a delay of 5 seconds
between, until systemd service returns success as a result.
Reviewed: https:/ /review. opendev. org/720707 /git.openstack. org/cgit/ openstack/ tripleo- ansible/ commit/ ?id=6e71ea60b65 9485e08d02cff7a 9966c14c36a88b
Committed: https:/
Submitter: Zuul
Branch: master
commit 6e71ea60b659485 e08d02cff7a9966 c14c36a88b
Author: Emilien Macchi <email address hidden>
Date: Fri Apr 17 09:06:36 2020 -0400
tripleo_ container_ manage/ systemd: add retries mechanism
It's possible that in CI environment or in slow servers the systemd
reload takes time to read new systemd services and reload systemd while
Ansible already moved on and tries to enable these services.
Adding a retry mechanism so we retry 5 times with a delay of 5 seconds
between, until systemd service returns success as a result.
Change-Id: I2bb39d2aae68a0 eadaad92cf0fc4e 3506fbfc9ca
Closes-Bug: #1873453