Skip to content

Commit

Permalink
Disable reconfigure_token during upgrade (#2388)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
DanielXiao authored Mar 14, 2019
1 parent 5a42f75 commit 92ebfaf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions installer/build/scripts/upgrade/upgrade.sh
Original file line number Diff line number Diff line change
Expand Up @@ -203,17 +203,21 @@ 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
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
Expand Down

0 comments on commit 92ebfaf

Please sign in to comment.