From b67bea5aaf60d0f78ec352458e752bfa41d3b982 Mon Sep 17 00:00:00 2001 From: Guillaume Abrioux Date: Tue, 9 Feb 2021 08:55:45 +0100 Subject: [PATCH] demo: increase timeout in bootstrap_demo_user() 5 seconds is often not enough and makes the script fail because it's not ready. Let's increase this timeout. Signed-off-by: Guillaume Abrioux (cherry picked from commit 22b176b686bd17552e8053bb618485ecdbdff1aa) --- src/daemon/demo.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/daemon/demo.sh b/src/daemon/demo.sh index 4c119a7bd..84aef07ba 100755 --- a/src/daemon/demo.sh +++ b/src/daemon/demo.sh @@ -240,8 +240,8 @@ function bootstrap_demo_user { if [ -n "$CEPH_DEMO_BUCKET" ]; then log "Creating bucket..." - # Trying to create a s3cmd within 5 seconds - timeout 5 bash -c "until s3cmd mb s3://$CEPH_DEMO_BUCKET; do sleep .1; done" + # Trying to create a s3cmd within 30 seconds + timeout 30 bash -c "until s3cmd mb s3://$CEPH_DEMO_BUCKET; do sleep .1; done" fi fi }