Swimlane 10.12.0 Upgrade Instructions
23 min
use these upgrade instructions to upgrade your instance of swimlane 10 x the instructions are organized by subsections of this document that will help you upgrade by specific installation type, whether you have an embedded, or existing cluster installation upgrade swimlane on embedded cluster installations use the following instructions to upgrade this version of swimlane on an embedded cluster installation prerequisites swimlane version 10 11 3+ if you are not on a version that is > 10 11, contact your swimlane support representative the upgrade to 10 12+ includes updating the container runtime from docker to containerd see the new partition sizes in the system requirements for an embedded cluster install the old /var/lib/docker partition can be removed after a successful transition has been completed mongodb 5 0 14 important! swimlane recommends that you perform a mongodb backup prior to starting this update for more information, see backup and restore on an embedded cluster with snapshots upgrade instructions ssh into the any node in your deployment and execute the following commands to begin the swimlane platform installer component upgrade $ kubectl annotate crd prometheuses monitoring coreos com kubectl kubernetes io/last applied configuration $ curl ssl https //kurl sh/swimlane platform stable 10 12 0 | sudo bash s ha note if you have configured selinux, add this to the end of the command above installer spec file=se yaml for a multi node (ha) cluster, the script prompts you to drain node one (1) and apply the upgrade once the upgrade on node one (1) is complete, the process continues running it then asks for confirmation to drain node two (2) as well as a command to run in that node see this example ✔ kubernetes host packages installed node/ip 10 1 0 147 swimlane io already uncordoned drain node ip 10 1 0 186 swimlane io to prepare for upgrade? (y/n) y pod/swimlane syslog receiver 86f79c8fd6 2rvwt evicted pod/swimlane tasks 5dfd4d5f94 tkrb2 evicted node/ip 10 1 0 186 swimlane io evicted run the upgrade script on remote node to proceed ip 10 1 0 186 swimlane io curl https //kurl sh/swimlane testing scott qa spt 7770 1/upgrade sh | sudo bash s kubernetes version=1 21 14 run the upgrade command on the node that was drained use kubectl get nodes o wide to find the ip of the node that was drained the primary script that ran in node 1 will detect that node 2 has been upgraded, and will now ask to drain and upgrade node three (3) follow the same steps for node 2 to complete the kubernetes portion of the upgrade next, the install will ask for permission to start the cni migration from weave to flannel ⚙ addon flannel 0 21 2 the migration from weave to flannel will require whole cluster downtime flannel requires udp port 8472 for communication between nodes please make sure this port is open prior to running this migration would you like to continue? (y/n) for ha clusters, the installation asks for a command to be run on each additional node note, there is an error in the command given the airgap flag should be removed from the command that the script this bug will likely be resolved in any patch level updates of 10 12 moving primary nodes from weave to flannel requires removing certain weave files and restarting kubelet please run the following command on each of the listed primary nodes qa kc 2 qa kc 3 curl fssl https //kurl sh/version/v2023 02 23 0/swimlane platform/tasks sh | sudo bash s weave to flannel primary airgap cert key= once the additional nodes are complete, press enter in the terminal window of the first node in which you ran the install command to complete the installation log in to the swimlane platform installer dashboard (https // 8800) go to the version history tab and look for version 10 12 0 503 if this version doesn’t show up initially, click check for updates a pop up window appears, click go to updated version click deploy on the new 10 12 0 503 version with the highest sequence number at the top of the versions list once the application tab shows ‘ready’ your upgrade is complete see update the swimlane python driver python package if you want to update the driver at this time upgrade swimlane on existing cluster installations prerequisites swimlane version 10 6 or greater if you are not on a version that is > 10 6, contact your swimlane support representative mongodb 5 0 14 kubernetes 1 19 1 24 kots kubectl plugin 1 96 2 velero 1 9 x important! swimlane recommends that you perform a mongodb backup prior to starting this update for more information, see backup and restore on an existing cluster with snapshots upgrade instructions download the latest spi kubectl add on for the os version where you run kubectl commands from linux https //get swimlane io/existing cluster/install/linux osx https //get swimlane io/existing cluster/install/osx untar the spi kubectl add on $ tar zxvf kots tar gz rename or remove the original kubectl kots file, $ rm /usr/local/bin/kubectl kots rename and move the latest spi kubectl add on file to /usr/local/bin/kubectl kots $ mv kots kubectl kots $ mv kubectl kots /usr/local/bin/ $ kubectl kots version the kots kubectl plugin version should match what is listed in the prerequisites above next, upgrade the swimlane platform installer (spi) $ kubectl kots admin console upgrade n \<swimlane namespace> download velero 1 9 5 for your os version https //github com/vmware tanzu/velero/releases/tag/v1 9 5 untar the file and then change directory (cd) into the uncompressed directory $ tar zxf tar gz $ cd update velero custom resource definitions $ /velero install crds only dry run o yaml | kubectl apply f update the images velero and restic use to 1 9 5 $ kubectl set image deployment/velero velero=velero/velero\ v1 9 5 namespace velero $ kubectl set image daemonset/restic restic=velero/velero\ v1 9 5 namespace velero note this update may take a minute in order to get the new pods rolled out confirm that both the client and server versions are on the same 1 9 5 release $ /velero version log in to the swimlane platform installer dashboard (https // 8800) go to the version history tab and look for version 10 12 0 503 if this version doesn’t show up initially, click check for updates if you are asked to configure, scroll to postgresql on postrgresql settings, input values for the required fields and then click save config postgresql requires a persistent volume, so you must set a pvc storageclass the default size is 8 gb a pop up window appears, click go to updated version or visit the version history tab click deploy on the new 10 12 0 503 version with the highest sequence number at the top of the versions list once the application tab shows ‘ready’ your upgrade is complete see update the swimlane python driver python package if you want to update the driver at this time upgrade swimlane on embedded airgap cluster installations prerequisites swimlane version 10 11+ if you are not on a version that is > 10 11, contact your swimlane support representative mongodb 5 0 14 links to the offline installer package and offline airgap bundle if you do not have these linked, contact your swimlane support representative important! swimlane recommends that you perform a mongodb backup prior to starting this update for more information, see backup and restore on an embedded cluster with snapshots upgrade instructions copy the latest offline installer package to each airgapped server untar the offline installer package on each server $ tar xzvf swimlane platform 10 12 0 503 tar gz run this command on any node in your deployment before the upgrade can start, it removes an annotation from a prometheus resource $ kubectl annotate crd prometheuses monitoring coreos com kubectl kubernetes io/last applied configuration run the swimlane platform installer update on any node in your deployment $ cat install sh | sudo bash s airgap ha once the install is complete, if you have a multi node (ha) cluster, the script prompts you to run an additional command on every node run this script on node swimlane 2 to load required images before proceeding cat /tasks sh | sudo bash s load images have images been loaded on node swimlane 2? (y/n) run cat /tasks sh | sudo bash s load images on nodes two (2) and node three (3) before proceeding to run the command on node one (1) this command can be run simultaneously on nodes 2 and 3 once the load images script completes on nodes 2 and 3, enter y in the node 1 terminal session twice the install will then ask for permission to start the cni plugin migration from weave to flannel ⚙ addon flannel 0 21 2 the migration from weave to flannel will require whole cluster downtime flannel requires udp port 8472 for communication between nodes please make sure this port is open prior to running this migration would you like to continue? (y/n) a command is given to be run on each additional node moving primary nodes from weave to flannel requires removing certain weave files and restarting kubelet please run the following command on each of the listed primary nodes qa kc 2 qa kc 3 cat /tasks sh | sudo bash s weave to flannel primary airgap cert key= the install script now runs on node 1 for a few minutes once it completes, follow the prompts to run the upgrade script on nodes 2 and 3, similar to this example (the ip address will depend on your deployment) installation complete ✔ run this script on all remote nodes to apply changes cat upgrade sh | sudo bash s airgap docker registry ip=10 96 3 115 press enter to proceed when both upgrade scripts are complete, press enter on node 1 and then upload the airgap bundle to the spi dashboard log in to the swimlane platform installer dashboard (https // 8800) go to the version history tab and look for version 10 12 0 503 if this version doesn’t show up initially, click check for updates browse to the swimlane platform 10 12 0 503 airgap file and click upload once the upload of the airgap completes, refresh the page or switch tabs to see the status of the file extraction go back to the version history tab and click deploy on the new 10 10 0 466 version with the highest sequence number at the top of the versions list once the application tab shows ‘ready’ your upgrade is complete see update the swimlane python driver python package if you want to update the driver at this time upgrade swimlane on existing airgap cluster installations prerequisites swimlane version 10 6+ if you are not on a version that is > 10 6, contact your swimlane support representative mongodb 5 0 14 kubernetes 1 19 1 24 kots kubectl plugin 1 96 2 velero 1 9 x important! swimlane recommends that you perform a mongodb backup prior to starting this update for more information, see backup and restore on an existing cluster with snapshots upgrade instructions download the latest spi kubectl add on linux https //get swimlane io/existing cluster/install/linux osx https //get swimlane io/existing cluster/install/osx download the latest spi offline package https //get swimlane io/existing cluster/install/offline package copy the latest spi kubectl add on and spi offline packages to your jumpbox $ scp kots tar gz user@ /tmp/kots tar gz $ scp kotsadm tar gz user@ /tmp/kotsadm tar gz untar the spi kubectl add on $ tar zxvf kots tar gz rename or remove the original kubectl kots file $ rm /usr/local/bin/kubectl kots rename and move the latest spi kubectl add on file to /usr/local/bin/kubectl kots $ mv kots kubectl kots $ mv kubectl kots /usr/local/bin/ download velero 1 9 5 to the jumpbox for the jumpbox's os version https //github com/vmware tanzu/velero/releases/tag/v1 9 5 untar the file and then change directory into the uncompressed directory $ tar zxf tar gzcd update velero custom resource definitions $ /velero install crds only dry run o yaml | kubectl apply f download the new velero images and push them to your private registry from your jumpbox for specific steps on how to download and push new velero images, see \[download and push new velero images]\(#) update the images velero and restic are using to 1 9 5 (this update will take a minute to get new pods rolled out) `$ kubectl set image deployment/velero velero=/velero/velero\ v1 9 5 namespace velero` `$ kubectl set image daemonset/restic restic=/velero/velero\ v1 9 5 namespace velero` note this update may take a minute in order to get the new pods rolled out confirm both client and server version are on the same 1 9 5 release `$ /velero version` push the spi (kotsadm) images to your registry `$ kubectl kots admin console push images kotsadm tar gz / registry username registry password ` next, upgrade the swimlane platform installer (spi) `$ kubectl kots admin console upgrade kotsadm registry / registry username registry password n ` when the spi upgrade is complete, upload the swimlane airgap bundle to the spi dashboard log in to the swimlane platform installer dashboard (https // 8800) go to the version history tab and click upload a new version , then browse to the swimlane platform 10 12 0 503 airgap file and click upload once the upload of the airgap completes, refresh the page or switch tabs to see the status of the file extraction go to the version history tab you will see a version for 10 12 0 503 if you are asked to configure, scroll to postgresql on postgresql settings, input the values for the required fields and then click save config postgresql requires a persistent volume, so you must set a pvc storageclass the default size is 8 gb a pop up window appears, click go to updated version or visit the version history tab click deploy on the new 10 12 0 503 version with the highest sequence number at the top of the versions list once the application tab shows ‘ready’ your upgrade is complete see update the swimlane python driver python package if you want to update the driver at this time download and push new velero images use these commands to download and push new velero images $ docker pull velero/velero\ v1 9 5 $ docker tag velero/velero\ v1 9 5 //velero/velero\ v1 9 5 $ docker push //velero/velero\ v1 9 5 $ docker pull velero/velero restic restore helper\ v1 9 5 $ docker tag velero/velero restic restore helper\ v1 9 5 //velero/velero restic restore helper\ v1 9 5 $ docker push //velero/velero restic restore helper\ v1 9 5 $ docker pull velero/velero plugin for aws\ v1 5 0 $ docker tag velero/velero plugin for aws\ v1 5 0 //velero/velero plugin for aws\ v1 5 0 $ docker push //velero/velero plugin for aws\ v1 5 0 $ docker pull velero/velero plugin for gcp\ v1 5 0 $ docker tag velero/velero plugin for gcp\ v1 5 0 //velero/velero plugin for gcp\ v1 5 0 $ docker push //velero/velero plugin for gcp\ v1 5 0 $ docker pull velero/velero plugin for microsoft azure\ v1 5 0 $ docker tag velero/velero plugin for microsoft azure\ v1 5 0 //velero/velero plugin for microsoft azure\ v1 5 0 $ docker push //velero/velero plugin for microsoft azure\ v1 5 0 troubleshooting upgrading will sometimes leave the hangfire notifications in a corrupted state the swimlane api and swimlane tasks pods will be crashlooping with logs of this form swimlane api hangfire mongo migration mongomigrationexception migration failed in hangfire mongo migration steps version17 addnotificationscollection swimlane tasks core errorhandling contractrequiresexception rabbitmqconnectionstring is not defined in orchestration configuration dropping the hangfire notifcations collection in mongo will remedy this kubectl exec swimlane tools 0 /bin/bash c 'mongo $swimlane data mongo swimlaneconnectionstring quiet tls tlsallowinvalidcertificates eval \\'db\["hangfire notifications"] drop()\\'' on rare occasion, pgpool has been reported to be in an unhealthy state after an update to remediate, restart the pgpool deployment object kubectl rollout restart deployment postgresql pgpool namespace