mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Adding some additional debugging to see why container is not ready.
This commit is contained in:
parent
6592ea0b6c
commit
1dcf7362dd
1 changed files with 4 additions and 0 deletions
|
@ -75,17 +75,21 @@ def rabbitmq_container(request, salt_factories, modules):
|
|||
)
|
||||
with container.started():
|
||||
# Sleep
|
||||
log.debug("=== initial sleep")
|
||||
time.sleep(10)
|
||||
|
||||
authenticated = False
|
||||
login_attempts = 6
|
||||
while login_attempts:
|
||||
log.debug("=== login attempt %s ===", login_attempts)
|
||||
login_attempts -= 1
|
||||
ret = container.run("rabbitmqctl ping")
|
||||
log.debug("=== ret %s ===", ret)
|
||||
authenticated = ret.exitcode == 0
|
||||
if authenticated:
|
||||
break
|
||||
|
||||
log.debug("=== sleep ===")
|
||||
time.sleep(10)
|
||||
|
||||
if authenticated:
|
||||
|
|
Loading…
Add table
Reference in a new issue