Upgrading Local Edition cluster from 5.4.1 to 5.5.0 for Docker Swarm Tethered
The following section provides information on upgrading Local Edition cluster from version 5.4.1 to 5.5.0 for Docker swarm.
Prerequisites
- Local Edition 5.4.1 images must be built and pushed to the desired registry for deployment.
- The customization done to the JSON properties files in earlier version must be ported to 5.5.0.
- Admin must generate the manifest deployment folder, namely the manifest-single-zone, as per the deployment topology for version 5.4.1 by running the compose command.
Procedure
- Undeploy and redeploy NoSQL components.
-
Undeploy and redeploy
Log components.
- Remove running Local Edition 5.4.1 Log container. Run the following command.
-
Update the permissions for restricted user on Log volume. Run the following command on host machine where Log pod is installed.
chown 1001:1003 -R /var/lib/docker/volumes/logstack_log-1-vol/_data/data/tml-log/
- Deploy Local Edition 5.5.0 Log containers. Run the following command.
- Undeploy and redeploy CM components.
-
Undeploy and redeploy
SQL components.
The MySQL Certificate/Identity data migration for tethered mode works for the following migration cases:
Please complete the Certificate/Identity data migration as soon as the new cluster is deployed, otherwise new certificates/identities created in the new6 /blop cluster will be overwritten by data migration.
-
Dump MySQL Data from the cluster created in the earlier version. Login to any
tml-sql pod running in the earlier cluster.
docker exec -it <mysql pod> -- /bin/bash
-
Run the following command to dump MySQL data. Update the MySQL password for the cluster.
docker exec <sql-container-id> mysqldump --no-create-info --complete-insert --single-transaction -u root -p'changeme' masherysolar trust_store identity_store > mash_data.sql
-
Copy the MySQL data file to the host.
docker cp <mysql pod>:/tmp/mash_data.sql mash_data.sql
- Remove the SQL container from the 5.4.1 cluster.
-
Deploy Mashery Local 5.5.0 SQL containers. Run the following command.
For single zone deployment,
./deploy-sql-pod.sh
-
Dump MySQL Data from the cluster created in the earlier version. Login to any
tml-sql pod running in the earlier cluster.
- Copy the MySQL data from 5.4.0 cluster in the 5.5.0 cluster.
-
Import MySQL data dumped from the 5.4.1 cluster to the 5.5.0 cluster.
Run the following command in each tml-sql pod in the new cluster.
mysql -u root -p'changeme' -e "truncate table masherysolar.trust_store" mysql -u root -p'changeme' -e "truncate table masherysolar.identity_store" mysql -u root -p'changeme' masherysolar < /tmp/mash531_data.sql
-
Run the SQL loader in sql pods in the new TML Cluster.
Run the following command in eachtml-sql to run the sql loader.
/opt/sqlloader/onpremloader --service --mapi --devclass --packager --httpsclientsecurity --env production --verbose
-
Undeploy and redeploy
Cache components.
Remove running Local Edition 5.4.1 Cache container.
-
Undeploy and redeploy
TM components.
Remove running Local Edition 5.4.0 TM container.
-
Undeploy and redeploy
Reporting components.
Remove running Local Edition 5.4.1 TM container.
- For single zone undeployment:
-
Update the permissions for restricted user on Reporting volume. Run the following command on Host Machine where Reporting pod installed.
chown 1001:1003 -R /var/lib/docker/volumes/reportingstack_reporting-1-vol/_data/data/
-
Deploy 5.5.0 TM container, run the following command.
./deploy-reporting-pod.sh
Copyright © 2022. Cloud Software Group, Inc. All Rights Reserved.