Race condition between keystone and glance-api containers
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
kolla |
Fix Released
|
High
|
Charles Crouch |
Bug Description
There is a race condition between the keystone and glance-api containers with regards to the user-create command in both keystone/start.sh and glance-
The way I ran into this was I was using a 'docker run -d', which runs all the containers in the background. Often keystone would work, but the glance-api container would fail being unable to connect to keystone. Other times, both keystone and glance-api would fail because if glance won the race it was unable to find keystone.
The solution is to let the keystone script create the admin tenant and role. We need a properly working wait_for command that will verify a few things.
1) ensure the admin tenant exists
2) ensure the admin role was created by calling an action like 'endpoint-list', which you must be admin to do
The reason this wasn't seen with kubernetes is because kube restarts the containers over and over again until they work.
Changed in kolla: | |
importance: | Undecided → High |
assignee: | nobody → Charles Crouch (ccrouch) |
Changed in kolla: | |
status: | In Progress → Fix Committed |
Changed in kolla: | |
milestone: | none → liberty-1 |
Changed in kolla: | |
status: | Fix Committed → Fix Released |
Fix proposed to branch: master /review. openstack. org/162358
Review: https:/