From 92ebfaf512d589f21b62bbbeac49875344839b55 Mon Sep 17 00:00:00 2001 From: Yifeng Xiao Date: Thu, 14 Mar 2019 12:06:39 +0800 Subject: [PATCH] Disable reconfigure_token during upgrade (#2388) If reconfigure_token is enable, it restarts admiral and harbor services whenever it detects psc-config.properties changed. During upgrade the new appliance will register itself to PSC and regenerate psc-config.properties so admiral and harbor are restarted even they are disabled. --- installer/build/scripts/upgrade/upgrade.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/installer/build/scripts/upgrade/upgrade.sh b/installer/build/scripts/upgrade/upgrade.sh index e2ef6e4922..1bd6d366d4 100755 --- a/installer/build/scripts/upgrade/upgrade.sh +++ b/installer/build/scripts/upgrade/upgrade.sh @@ -203,8 +203,10 @@ function disableServicesStart { log "Disabling and stopping Admiral and Harbor" systemctl stop admiral.service systemctl stop harbor.service + systemctl stop reconfigure_token.path systemctl disable admiral.service systemctl disable harbor.service + systemctl disable reconfigure_token.path } # Enable Admiral and Harbor starting @@ -212,8 +214,10 @@ function enableServicesStart { log "Enabling and starting Admiral and Harbor" systemctl enable admiral.service systemctl enable harbor.service + systemctl enable reconfigure_token.path systemctl start admiral.service systemctl start harbor.service + systemctl start reconfigure_token.path } ### Valid upgrade paths to v1.5.2