Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

qa_crowbarsetup: use wait_for instead of sleep-loop #1192

Merged
merged 1 commit into from
Aug 31, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions scripts/qa_crowbarsetup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3813,10 +3813,8 @@ function oncontroller_testsetup()
complain 37 "Image ID for $image_name not found"
fi

for n in $(seq 1 200) ; do
openstack image show $imageid | grep status.*active && break
sleep 5
done
wait_for 200 5 "openstack image show $imageid | grep status.*active" \
"$image_name image to reach active state"

if [[ $want_ldap ]] ; then
openstack user show bwiedemann | grep -q 82608 || complain 103 "LDAP not working"
Expand Down