Add cleanup method in devstack scripts
Add cleanup method in devstack scripts which remove /tmp/keystone-signing-muranoapi Change-Id: Ie2a35c0c8ee99434aaed39e3da055785cb78ca3c Closes-bug: #1346400
This commit is contained in:
parent
68b220e179
commit
cfce054e8c
@ -31,5 +31,6 @@ if is_service_enabled murano; then
|
|||||||
|
|
||||||
if [[ "$1" == "unstack" ]]; then
|
if [[ "$1" == "unstack" ]]; then
|
||||||
stop_murano
|
stop_murano
|
||||||
|
cleanup_murano
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
@ -41,6 +41,8 @@ MURANO_SERVICE_PROTOCOL=${MURANO_SERVICE_PROTOCOL:-$SERVICE_PROTOCOL}
|
|||||||
|
|
||||||
MURANO_ADMIN_USER=${MURANO_ADMIN_USER:-murano}
|
MURANO_ADMIN_USER=${MURANO_ADMIN_USER:-murano}
|
||||||
|
|
||||||
|
MURANO_KEYSTONE_SIGNING_DIR=${MURANO_KEYSTONE_SIGNING_DIR:-/tmp/keystone-signing-muranoapi}
|
||||||
|
|
||||||
# MURANO_RABBIT_VHOST allows to specify a separate virtual host for Murano services.
|
# MURANO_RABBIT_VHOST allows to specify a separate virtual host for Murano services.
|
||||||
# This is not required if all OpenStack services are deployed by devstack scripts
|
# This is not required if all OpenStack services are deployed by devstack scripts
|
||||||
# on a single node. In this case '/' virtual host (which is the default) is enough.
|
# on a single node. In this case '/' virtual host (which is the default) is enough.
|
||||||
@ -137,6 +139,8 @@ function configure_murano {
|
|||||||
cp $MURANO_DIR/etc/murano/murano-paste.ini $MURANO_CONF_DIR
|
cp $MURANO_DIR/etc/murano/murano-paste.ini $MURANO_CONF_DIR
|
||||||
cp $MURANO_DIR/etc/murano/policy.json $MURANO_POLICY_FILE
|
cp $MURANO_DIR/etc/murano/policy.json $MURANO_POLICY_FILE
|
||||||
|
|
||||||
|
cleanup_murano
|
||||||
|
|
||||||
iniset $MURANO_CONF_FILE DEFAULT debug $MURANO_DEBUG
|
iniset $MURANO_CONF_FILE DEFAULT debug $MURANO_DEBUG
|
||||||
iniset $MURANO_CONF_FILE DEFAULT use_syslog $SYSLOG
|
iniset $MURANO_CONF_FILE DEFAULT use_syslog $SYSLOG
|
||||||
|
|
||||||
@ -212,6 +216,11 @@ function stop_murano() {
|
|||||||
screen -S $SCREEN_NAME -p murano-engine -X kill
|
screen -S $SCREEN_NAME -p murano-engine -X kill
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function cleanup_murano() {
|
||||||
|
|
||||||
|
# Cleanup keystone signing dir
|
||||||
|
sudo rm -rf $MURANO_KEYSTONE_SIGNING_DIR
|
||||||
|
}
|
||||||
|
|
||||||
# Restore xtrace
|
# Restore xtrace
|
||||||
$XTRACE
|
$XTRACE
|
||||||
|
Loading…
Reference in New Issue
Block a user