From 2f657085c67302ab54dcb64b335a2f3732ba4de4 Mon Sep 17 00:00:00 2001 From: Eduardo Gonzalez Date: Fri, 26 Oct 2018 16:02:21 +0200 Subject: Split placement-api from nova This change breaks out the Placement service from Nova ahead of it's removal from the project later in Stein. For the time being the original Nova Placement images are left in place but they will be removed later in the cycle once the Placement code is removed from the Nova project by the following change: https://review.openstack.org/#/c/618215/ Co-Authored-By: Lee Yarwood Change-Id: I2bf6f5bf45b76e6900f41c21e9af30c69dc6e9c0 --- docker/placement/placement-api/extend_start.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 docker/placement/placement-api/extend_start.sh (limited to 'docker/placement/placement-api/extend_start.sh') diff --git a/docker/placement/placement-api/extend_start.sh b/docker/placement/placement-api/extend_start.sh new file mode 100644 index 000000000..a8e9635d1 --- /dev/null +++ b/docker/placement/placement-api/extend_start.sh @@ -0,0 +1,18 @@ +#!/bin/bash + +# Bootstrap and exit if KOLLA_BOOTSTRAP variable is set. This catches all cases +# of the KOLLA_BOOTSTRAP variable being set, including empty. +if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then + placement-manage db sync + exit 0 +fi + +# NOTE(pbourke): httpd will not clean up after itself in some cases which +# results in the container not being able to restart. (bug #1489676, 1557036) +if [[ "${KOLLA_BASE_DISTRO}" =~ debian|ubuntu ]]; then + # Loading Apache2 ENV variables + . /etc/apache2/envvars + rm -rf /var/run/apache2/* +else + rm -rf /var/run/httpd/* /run/httpd/* /tmp/httpd* +fi -- cgit v1.2.3