From 1a2c86cff99d5628f93105c8d4ed815baf781941 Mon Sep 17 00:00:00 2001 From: jiangyikun Date: Thu, 7 Sep 2017 17:56:13 +0800 Subject: [PATCH] Cleanup nova cell configuration before config it Some old configuration(such as, LOG_COLOR config) will remain if we don't cleanup. So, we should cleanup the configuration before we config it. Change-Id: I7aff609dadf3acba13a36894614b35005f51280d --- lib/nova | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/nova b/lib/nova index ea0d2f7b89..50deeeb220 100644 --- a/lib/nova +++ b/lib/nova @@ -589,6 +589,8 @@ function create_nova_conf { local vhost conf=$(conductor_conf $i) vhost="nova_cell${i}" + # clean old conductor conf + rm -f $conf iniset $conf database connection `database_connection_url nova_cell${i}` iniset $conf conductor workers "$API_WORKERS" iniset $conf DEFAULT debug "$ENABLE_DEBUG_LOG_LEVEL"