Minor and major upgrade procedure#
Use this procedure to upgrade MSR to a new minor or
major version. The procedure preserves your existing configuration
and data by reusing your current harbor.yml file with the target
release installer.
-
Connect to the host running MSR over SSH.
ssh <USER>@<MSR-HOST-IP> -
Locate your
harbor.ymlconfiguration file.Verify that you have the
harbor.ymlfile used for the current installation. This file contains your MSR configuration, including hostname, TLS certificates, database settings, and any external service references. Change to the directory containing this file.cd <PATH-TO-MSR-DIRECTORY> ls harbor.ymlIf your deployment uses external PostgreSQL or Redis, their connection details are configured in the
external_databaseandexternal_redissections ofharbor.yml. Confirm that these remain correct before you proceed. -
Download the target MSR installer package.
Locate the
.tgzinstaller package for the latest MSR release at Mirantis Packages. The release is available as a single bundle and is suitable only for offline installations.Copy the download link for the installer package, then download it to your instance:
4. Rename the MSR old version directory.wget https://s3-us-east-2.amazonaws.com/packages-mirantis.com/msr/msr-offline-installer-<VERSION>.tgzmv msr msr-<PREVIOUS-PATCH-VERSION> -
Extract the package.
tar xvf msr-offline-installer-<VERSION>.tgz -
Navigate to the extracted folder.
cd msr -
Copy the
harbor.ymlfile used for the current installation to the newly extracted folder.cp -p <PATH-TO-MSR-OLD-DIRECTORY>/harbor.yml . -
Compare your
harbor.ymlagainst the newharbor.yml.tmplfile included in the target installer package. New MSR versions can introduce additional configuration fields. Add any new required fields to yourharbor.ymlbefore you run the installer.diff harbor.yml harbor.yml.tmpl -
Stop running MSR services.
cd <PATH-TO-MSR-OLD-DIRECTORY> docker-compose downDo not use the -v flag
Do not run
docker-compose down -v. The-vflag removes named volumes and results in data loss. Usedocker-compose downwithout flags to stop and remove containers while preserving volumes. -
Run the new installer.
Change to the new installer directory and run
install.sh. The script regeneratesdocker-compose.ymland all supporting configuration files from yourharbor.yml, then starts the updated services.cd msr-offline-installer-<TARGET-VERSION> sudo ./install.shIf your deployment includes Trivy for vulnerability scanning, pass the
--with-trivyflag:sudo ./install.sh --with-trivyThe installer applies required database migrations automatically on startup. Review the output for errors before you proceed.
-
Verify the upgrade.
docker-compose psLog in to the MSR web UI at your configured
externalURLand verify that the deployment functions as expected.