kolla/docker/aodh/aodh-base/extend_start.sh
zhubingbing 56838a347e repair aodh image dockerfile
1. Add the missing packages in the aodh image
   packages: pymongo

2. Add aodh sudoer

3. aodh sync db command is error
   sync db command is: aodh-dbsync
   Reference link: http://docs.openstack.org/developer/aodh/install/manual.html

4. Add aodh-api running as a mod_wsgi

   Reference link: http://docs.openstack.org/developer/aodh/install/mod_wsgi.html

Closes-Bug: #1609000

Change-Id: Ia3706794059231fa08444e32eb034d64fbfa5182
2016-08-29 07:24:44 +00:00

16 lines
382 B
Bash
Executable File

#!/bin/bash
# Create log dir for Aodh logs
AODH_LOG_DIR="/var/log/kolla/aodh"
if [[ ! -d "${AODH_LOG_DIR}" ]]; then
mkdir -p ${AODH_LOG_DIR}
fi
if [[ $(stat -c %U:%G ${AODH_LOG_DIR}) != "aodh:kolla" ]]; then
chown aodh:kolla ${AODH_LOG_DIR}
fi
if [[ $(stat -c %a ${AODH_LOG_DIR}) != "755" ]]; then
chmod 755 ${AODH_LOG_DIR}
fi
. /usr/local/bin/kolla_aodh_extend_start