Keystone container may end up with broken openrc file

Bug #1398632 reported by Martin André
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kolla
Fix Released
High
Martin André

Bug Description

If the keystone container is started before the keystone k8s service is up, we'll end up with a broken openrc file:

[root@keystone /]# cat openrc
export OS_AUTH_URL="http://:5000/v2.0"
export OS_USERNAME=admin
export OS_PASSWORD="kolla"
export OS_TENANT_NAME=admin

We need to check that the KEYSTONE_PUBLIC_SERVICE_HOST and KEYSTONE_ADMIN_SERVICE_HOST variables are set in keystone start.sh and exit otherwise to permit Kubernetes to reschedule the container.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kolla (master)

Reviewed: https://review.openstack.org/138601
Committed: https://git.openstack.org/cgit/stackforge/kolla/commit/?id=21f28309e7a15f25e1763611d18330145e0ff0fa
Submitter: Jenkins
Branch: master

commit 21f28309e7a15f25e1763611d18330145e0ff0fa
Author: Martin André <email address hidden>
Date: Mon Dec 1 14:50:58 2014 +0900

    Check for all required variables in keystone start.sh

    This allows Kubernetes to reschedule the container in case a required
    variable is missing, for example when the Kubernetes pod is started
    before the service.

    Additionally, define the KEYSTONE_ADMIN_SERVICE_HOST and
    KEYSTONE_PUBLIC_SERVICE_HOST variables to their common version if not
    already set to allow usage outside of Kubernetes with docker link
    feature.

    Change-Id: Ie0966c18076a770e4031bbf5f777dd1be0ba20bc
    Closes-Bug: 1398632

Changed in kolla:
status: New → Fix Committed
Steven Dake (sdake)
Changed in kolla:
importance: Undecided → High
Steven Dake (sdake)
Changed in kolla:
milestone: none → liberty-1
assignee: nobody → Martin André (mandre)
Sam Yaple (s8m)
Changed in kolla:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.