// removed jquery ui css and js

Upgrade CCO

 

One Time Prerequisite

As a one-time task for all OS configurations, you must tighten the security configuration for the Load balancer VMs to ensure security compliance. See the Security Hardening Requirements section in the Upgrade Overview section for additional context.

Docker Image on the CCO Server

If your environment uses a Docker image, be sure to upgrade the Docker image on the CCO server by running the following command:

./core_upgrade.bin <os> <cloud> docker

CCO Non-HA

Upgrade CCO

To upgrade CCO, follow this procedure.

  1. SSH into the CCO instance.

  2. Download the following files in /tmp folder of CCO.

    • core_upgrade.bin

    • cco-installer.jar

    • cco-response.xml

  3. Run the core upgrade to upgrade CCO system components using the following commands.

    sudo -i
    cd /tmp
    chmod 755 core_upgrade.bin
     
    #Set the following only if a local store is setup
    export CUSTOM_REPO=<http://local_package_store IP>
     
    ./core_upgrade.bin <ostype> <cloud> cco
  4. Run the appliance installer to upgrade CCO.

    java -jar cco-installer.jar cco-response.xml
  5. Update the agent bundle URL in the CCO.

    This step is conditional and is required only when the local bundle server or REPO is used in the setup.

    1. SSH into CCO instance.

    2. Run the cco_config_wizard.

      sudo -i
      /usr/local/cliqr/bin/cco_config_wizard.sh
    3. Set the Agent bundle URL.

      After an upgrade the agent bundle URL value reverts to the default URL, cdn.cliqr.com, and your previously-configured value is not retained.

      If you upload new files to the repo, you must manually update the agent bundle URL in the CCM wizard to reflect the customized repo URL.

      #Agent bundle URL -- Only use HTTP protocol 
      http://your_HTTP_server/release-<version>/bundle/
    4. Exit the CCO wizard

You have now completed the CCO upgrade.

CCO HA

You must stop the gateway service on all three CCOs before upgrading to any CloudCenter version.

Run the core_upgrade and appliance files one after the other – do not run them in parallel!

Upgrading in HA Mode

When upgrading CCOs in HA mode, you MUST stop all the CCOs.

Upgrade CCO_PRIMARY

To upgrade CCO_PRIMARY, follow this procedure.

  1. SSH into the CCO_PRIMARY instance.

  2. Download the following files in /tmp folder of CCO.

    • core_upgrade.bin

    • cco-installer.jar

    • cco-response.xml

  3. Run the core upgrade to upgrade CCO_PRIMARY system components using the following commands.

    sudo -i
    cd /tmp
    chmod 755 core_upgrade.bin
     
    #Set the following only if a local store is setup
    export CUSTOM_REPO=<http://local_package_store IP>
     
    ./core_upgrade.bin <ostype> <cloud> cco
  4. Run the appliance installer to upgrade CCO_PRIMARY.

    java -jar cco-installer.jar cco-response.xml
  5. Update the agent bundle URL in the CCO.

    This step is conditional and is required only when the local bundle server or REPO is used in the setup.


    1. SSH into CCO instance.

    2. Run the cco_config_wizard.

      sudo -i
      /usr/local/cliqr/bin/cco_config_wizard.sh
    3. Set the Agent bundle URL.

      After an upgrade the agent bundle URL value reverts to the default URL, cdn.cliqr.com, and your previously-configured value is not retained.

      If you upload new files to the repo, you must manually update the agent bundle URL in the CCM wizard to reflect the customized repo URL.

      #Agent bundle URL
      http://your_HTTP_server/release-<version>/bundle/
    4. Exit the CCO wizard

You have now completed the CCO_PRIMARY upgrade.

Upgrade CCO_SECONDARY

To upgrade CCO_SECONDARY, follow this procedure.

follow this procedure.

  1. SSH into the CCO_SECONDARY instance.

  2. Download the following files in /tmp folder of CCO.

    • core_upgrade.bin

    • cco-installer.jar

    • cco-response.xml
  3. Run the core upgrade to upgrade CCO_SECONDARY system components using the following commands.

    sudo -i
    cd /tmp
    chmod 755 core_upgrade.bin
     
    #Set the following only if a local store is setup
    export CUSTOM_REPO=<http://local_package_store IP>
     
    ./core_upgrade.bin <ostype> <cloud> cco
  4. Run the appliance installer to upgrade CCO_SECONDARY.

    java -jar cco-installer.jar cco-response.xml
  5. Update the agent bundle URL in the CCO.

    This step is conditional and is required only when the local bundle server or REPO is used in the setup.

    1. SSH into CCO instance.

    2. Run the cco_config_wizard.

      sudo -i
      /usr/local/cliqr/bin/cco_config_wizard.sh
    3. Set the Agent bundle URL.

      After an upgrade the agent bundle URL value reverts to the default URL, cdn.cliqr.com, and your previously-configured value is not retained.

      If you upload new files to the repo, you must manually update the agent bundle URL in the CCM wizard to reflect the customized repo URL.

      #Agent bundle URL
      http://your_HTTP_server/release-<version>/bundle/
    4. Exit the CCO wizard

You have now completed the CCO_SECONDARY upgrade.

Upgrade CCO_TERTIARY

To upgrade CCO_TERTIARY, follow this procedure.

  1. SSH into the CCO_TERTIARY instance.

  2. Download the following files in /tmp folder of CCO.

    • core_upgrade.bin

    • cco-installer.jar

    • cco-response.xml
  3. Run the core upgrade to upgrade CCO_TERTIARY system components using the following commands.

    sudo -i
    cd /tmp
    chmod 755 core_upgrade.bin
     
    #Set the following only if a local store is setup
    export CUSTOM_REPO=<http://local_package_store IP>
     
    ./core_upgrade.bin <ostype> <cloud> cco
  4. Run the appliance installer to upgrade CCO_TERTIARY.

    java -jar cco-installer.jar cco-response.xml
  5. Update the agent bundle URL in the CCO.

    This step is conditional and is required only when the local bundle server  or REPO is used in the setup.

    1. SSH into CCO instance.

    2. Run the cco_config_wizard.

      sudo -i
      /usr/local/cliqr/bin/cco_config_wizard.sh
    3. Set the Agent bundle URL.

      After an upgrade the agent bundle URL value reverts to the default URL, cdn.cliqr.com, and your previously-configured value is not retained.

      If you upload new files to the repo, you must manually update the agent bundle URL in the CCM wizard to reflect the customized repo URL.

      #Agent bundle URL
      http://your_HTTP_server/release-<version>/bundle/
    4. Exit the CCO wizard

You have now completed the CCO_TERTIARY upgrade.

Check the MongoDB Status after Upgrade

Run the following command on the CCO_PRIMARY, CCO_SECONDARY, and CCO_TERTIARY to verify the MongoDB status. All nodes should display the Mongo replica set.

Connect to Mongo shell on each of the three CCO instances and run the following command.

mongo
> rs.status()

The following is a sample output for this command.

rs.status()
{
         "set" : "setname",
         "date" : ISODate("2018-7-16T19:28:33Z"),
         "myState" : 1,
         "members" : [
                   {
                            "_id" : 1,
                            "name" : “12.3.6.1:27017",
                            "health" : 1,
                            "state" : 1,
                            "stateStr" : "PRIMARY",
                            "uptime" : 33876,
                            "optime" : Timestamp(1513446629, 8),
                            "optimeDate" : ISODate("2018-7-16T17:50:29Z"),
                            "electionTime" : Timestamp(1513418644, 1),
                            "electionDate" : ISODate("2018-7-16T10:04:04Z"),
                            "self" : true
                   },
                   {
                            "_id" : 2,
                            "name" : "12.4.6.2:27017",
                            "health" : 1,
                            "state" : 2,
                            "stateStr" : "SECONDARY",
                            "uptime" : 33876,
                            "optime" : Timestamp(1513446629, 8),
                            "optimeDate" : ISODate("2018-7-16T17:50:29Z"),
                            "lastHeartbeat" : ISODate("2018-7-16T19:28:32Z"),
                            "lastHeartbeatRecv" : ISODate("2018-7-16T19:28:32Z"),
                            "pingMs" : 0,
                            "syncingTo" : "12.3.6.1:27017"
                   },
{
                            "_id" : 3,
                            "name" : "12.4.6.3:27017",
                            "health" : 1,
                            "state" : 2,
                            "stateStr" : "SECONDARY",
                            "uptime" : 33876,
                            "optime" : Timestamp(1513446629, 8),
                            "optimeDate" : ISODate("2018-7-16T17:50:29Z"),
                            "lastHeartbeat" : ISODate("2018-7-16T19:28:32Z"),
                            "lastHeartbeatRecv" : ISODate("2018-7-16T19:28:33Z"),
                            "pingMs" : 0,
                            "syncingTo" : "12.3.6.1:27017"
                   }
         ],
         "ok" : 1
}
  • No labels
© 2017-2019 Cisco Systems, Inc. All rights reserved