Browse code

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

jiangyikun authored on 2017/09/07 18:56:13
Showing 1 changed files
... ...
@@ -589,6 +589,8 @@ function create_nova_conf {
589 589
             local vhost
590 590
             conf=$(conductor_conf $i)
591 591
             vhost="nova_cell${i}"
592
+            # clean old conductor conf
593
+            rm -f $conf
592 594
             iniset $conf database connection `database_connection_url nova_cell${i}`
593 595
             iniset $conf conductor workers "$API_WORKERS"
594 596
             iniset $conf DEFAULT debug "$ENABLE_DEBUG_LOG_LEVEL"