Restart contrail-control service after DB rollback
contrail-control services should be re-initialized (resarted)
after Config DB sync.
Change-Id: I276019b0c2b9e7490e17585a4b80248a707d0ceb
Related-PROD: PROD-32437
diff --git a/restore-cassandra.groovy b/restore-cassandra.groovy
index fb1259f..f640ebf 100644
--- a/restore-cassandra.groovy
+++ b/restore-cassandra.groovy
@@ -101,6 +101,14 @@
common.errorMsg('An error has been occurred during analytics containers startup: ' + err.getMessage())
throw err
}
+ // contrail-control service needs to be restart after db sync to re-initialize with recovered data
+ try {
+ common.infoMsg("Restart contrail-control services on control nodes")
+ salt.cmdRun(pepperEnv, 'I@opencontrail:control', 'doctrail controller service contrail-control restart')
+ } catch (Exception err) {
+ common.errorMsg('An error has been occurred during contrail-control services restart: ' + err.getMessage())
+ throw err
+ }
} else {
try {
salt.runSaltProcessStep(pepperEnv, 'I@opencontrail:control', 'service.stop', ['supervisor-config'], null, true)