Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This Document will guide you how to upgrade CloudCX under the version sequence of 3.2.3 or Higher

Notes:

...

All of the following Linux commands must be executed in the same working path, which is assumed to be /opt/cloud_cx in this example.

...

Easy heading
linkText4
linkText10
linkText3linkText10
linkText6
linkText5
relatedLinksLabels
linkText2
linkText1
headingTagsH1,H2,H3
linkText1sidebarMaxHeight450
linkType2Page
linkType3Page
linkType1Page
linkType10Page
sidebarTitleON THIS PAGE
linkUrl3
linkUrl4
linkUrl1
linkUrl2
linkUrl10
includedPageModeDisable_Included_Pages
linkText8
linkText7
relatedLinksOrderLabels_First
linkText7sidebarModeOpened
headingNumberingModeDisable_Numbering
linkText9
sidebarMarginRight20
relatedLinksTargetNew_Window
relatedLinksTitleRELATED LINKS
linkUrl9
linkUrl7
linkUrl8linkUrl5
numberedHeadingTagsH1,H2,H3
linkUrl5
linkUrl6
linkType8Page
linkType9Page
linkType6Page
headingLinkTextModeWrap
linkType6linkType7Page
linkType7linkType4Page
linkType4linkType5Page
sidebarWidth240linkType5Page
sidebarTop160
headingLinkExpandModeCollapse_All_By_Default
headingLinkIndent10

Separate deployment of application servers:

...

Notes:

  • Please do not upgrade across multiple major versions. When upgrading major versions, please make snapshot backups so that services can be quickly restored in case of abnormalities.

  • All the following Linux commands must be executed in the same working path, which is assumed to be /opt/cloud_cx in this example.

  • Shouldperform all Linux commands by the root user, please su root First.

Before upgrading, please back up your system service first. CloudCX System Data Backup Guide

In the distributed deployment model, the application server and database server are deployed on separate the different machines. And we don't need to update both the middleware service , only and the application service needs to be updated.

1. Stop CloudCX Application Services & Midware Services

Perform the following commands as root to stop & rm the current CX Docker instance:

Code Block
cd /opt/cloud_cx && /bin/sh cloud_cx_ctl.sh stop
cd /opt/cloud_cx && /bin/sh cloud_cx_ctl.sh rm

2. Upgrade Midware service

List

...

and Delete the docker images

Perform the following command to list the CX Midware Docker images:

Code Block
docker images

You will get the result shown in the below screenshot.

...

Use the first 4 digits of the IMAGE ID to delete all of the listed Docker imageimages:

Code Block
docker image rm 52d2

...

Delete the

...

old Scripts

Code Block
rm cloud_cx_ctl.sh
rm install_docker_cx.sh

...

Download new

...

installation scripts

Code Block
curl https://raw.githubusercontent.com/cloud-cx/cloudfon-cx-install/main/v3v4.30.x0/cloud_cx_ctl.sh -o cloud_cx_ctl.sh

...

Code Block
/bin/sh cloud_cx_ctl.sh run -i puteyun/cloud_cx:${tag} -t api

Note: ${tag} is the release version of cloud CX, for example: 3.2.3.1, Please MUST replace the ${tag} in the above command with the latest tag.

Mixed deployment of application servers (on a single machine):

In this deployment model, both the application server and database server are deployed on the same machine.

1. Stop CloudCX Services

Perform the following commands as root to stop & rm the current CX Docker instance:

Code Block
cd /opt/cloud_cx && /bin/sh cloud_cx_ctl.sh stop
cd /opt/cloud_cx && /bin/curl https://raw.githubusercontent.com/cloud-cx/cloudfon-cx-install/main/v4.0.0/install_docker_cx.sh -o install_docker_cx.sh

Install Midware Services

Code Block
/bin/sh install_docker_cx.sh
Code Block
sh cloud_cx_ctl.sh rm

...

run -t mid

3. Upgrade Application service

List of the CX Docker Images

Perform the following command to list the CX Docker images:

...

You will get the result shown in the below screenshot.

...

...

Delete the CX Docker Images

Use the first 4 digits of the IMAGE ID to delete all of the listed Docker image:

Code Block
docker image rm 52d2

...

Delete the CX Scripts

Code Block
rm cloud_cx_ctl.sh
rm install_docker_cx.sh

...

Download new

...

installation scripts

Code Block
curl https://raw.githubusercontent.com/cloud-cx/cloudfon-cx-install/main/v3v4.30.x0/cloud_cx_ctl.sh -o cloud_cx_ctl.sh

...

Code Block
curl https://raw.githubusercontent.com/cloud-cx/cloudfon-cx-install/main/v4.0.0/install_docker_cx.sh -o install_docker_cx.sh

Install CX Services

Code Block
/bin/sh install_docker_cx.sh
Code Block
/bin/sh cloud_cx_ctl.sh run -i puteyun/cloud_cx:${tag} -t api

Note: ${tag} is the release version of cloud CX, for example: 3.2.3 5.1, Please MUST replace the ${tag} in the above command with the latest tag.