Skip to content
This repository has been archived by the owner on Dec 19, 2024. It is now read-only.

Commit

Permalink
demo: increase timeout in bootstrap_demo_user()
Browse files Browse the repository at this point in the history
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 <gabrioux@redhat.com>
(cherry picked from commit 22b176b)
  • Loading branch information
guits authored and dsavineau committed Feb 13, 2021
1 parent 1a2776f commit b67bea5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/daemon/demo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit b67bea5

Please sign in to comment.