diff --git a/nova/templates/bin/_nova-placement-api.sh.tpl b/nova/templates/bin/_nova-placement-api.sh.tpl index 8965fb7635..bc15a37d41 100644 --- a/nova/templates/bin/_nova-placement-api.sh.tpl +++ b/nova/templates/bin/_nova-placement-api.sh.tpl @@ -26,6 +26,11 @@ function start () { if [ -f /etc/apache2/envvars ]; then # Loading Apache2 ENV variables source /etc/apache2/envvars + # The directory below has to be created due to the fact that + # libapache2-mod-wsgi-py3 doesn't create it in contrary by libapache2-mod-wsgi + if [ ! -d ${APACHE_RUN_DIR} ]; then + mkdir -p ${APACHE_RUN_DIR} + fi fi # Start Apache2