Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
Kolla Ansible
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Very Demiurge Very Mindful
Kolla Ansible
Commits
ba175c61
Commit
ba175c61
authored
9 years ago
by
Jenkins
Committed by
Gerrit Code Review
9 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Simplify `wait_for` calls"
parents
92b12996
056e02d0
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
docker/base/kolla-common.sh
+1
-1
1 addition, 1 deletion
docker/base/kolla-common.sh
docker/glance/glance-api/start.sh
+1
-5
1 addition, 5 deletions
docker/glance/glance-api/start.sh
docker/glance/glance-registry/start.sh
+1
-2
1 addition, 2 deletions
docker/glance/glance-registry/start.sh
with
3 additions
and
8 deletions
docker/base/kolla-common.sh
+
1
−
1
View file @
ba175c61
...
...
@@ -49,7 +49,7 @@ wait_for() {
if
[
-z
"
$loops
"
-o
-z
"
$sleeptime
"
-o
-z
"
$command
"
]
;
then
echo
"wait_for is missing a required parameter"
return
1
exit
1
fi
local
i
=
0
...
...
This diff is collapsed.
Click to expand it.
docker/glance/glance-api/start.sh
+
1
−
5
View file @
ba175c61
...
...
@@ -11,11 +11,7 @@ check_required_vars KEYSTONE_ADMIN_TOKEN KEYSTONE_ADMIN_SERVICE_HOST \
ADMIN_TENANT_NAME GLANCE_API_SERVICE_HOST
\
PUBLIC_IP
wait_for 30 1 keystone
\
--os-auth-url
=
http://
${
KEYSTONE_PUBLIC_SERVICE_HOST
}
:35357/v2.0
\
--os-username
=
admin
--os-tenant-name
=
${
ADMIN_TENANT_NAME
}
\
--os-password
=
${
KEYSTONE_ADMIN_PASSWORD
}
endpoint-list
fail_unless_os_service_running keystone
wait_for 30 1 check_for_os_service_running keystone
export
SERVICE_TOKEN
=
"
${
KEYSTONE_ADMIN_TOKEN
}
"
export
SERVICE_ENDPOINT
=
"http://
${
KEYSTONE_ADMIN_SERVICE_HOST
}
:35357/v2.0"
...
...
This diff is collapsed.
Click to expand it.
docker/glance/glance-registry/start.sh
+
1
−
2
View file @
ba175c61
...
...
@@ -7,8 +7,7 @@ set -e
check_required_vars GLANCE_DB_NAME GLANCE_DB_USER GLANCE_DB_PASSWORD
# lets wait for the DB to be available
wait_for 25 1 mysql
-h
${
MARIADB_SERVICE_HOST
}
-u
root
-p
"
${
DB_ROOT_PASSWORD
}
"
-e
'status;'
fail_unless_db
wait_for 25 1 check_for_db
mysql
-h
${
MARIADB_SERVICE_HOST
}
-u
root
-p
${
DB_ROOT_PASSWORD
}
mysql
<<
EOF
CREATE DATABASE IF NOT EXISTS
${
GLANCE_DB_NAME
}
DEFAULT CHARACTER SET utf8;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment