Fix certificate directory creation

When calling ./stack.sh twice, octavia devstack plugin fails because
local certificate directory already exists.

This commit deletes the directory each time a certificate creation
script is called and when the user cleans up his devstack's
installation.

Change-Id: I21dfffa9b30274fa0fa9f365a88222b8f4c89e29
This commit is contained in:
Gregory Thiemonge 2019-09-26 09:49:52 +02:00
parent d5ffd2ca40
commit c7f4b4a9db
3 changed files with 5 additions and 0 deletions

View File

@ -27,6 +27,7 @@ set -x -e
CA_PATH=dual_ca
rm -rf $CA_PATH
mkdir $CA_PATH
chmod 700 $CA_PATH
cd $CA_PATH

View File

@ -27,6 +27,7 @@ set -x -e
CA_PATH=single_ca
rm -rf $CA_PATH
mkdir $CA_PATH
chmod 700 $CA_PATH
cd $CA_PATH

View File

@ -590,6 +590,9 @@ function octavia_cleanup {
_cleanup_octavia_apache_wsgi
fi
sudo rm -rf $OCTAVIA_DIR/bin/dual_ca
sudo rm -rf $OCTAVIA_DIR/bin/single_ca
sudo rm -rf $NOVA_STATE_PATH $NOVA_AUTH_CACHE_DIR
sudo rm -f /etc/rsyslog.d/10-octavia-log-offloading.conf