Triggering the Rolling Software Upgrade

The PCF utilizes the SMI Cluster Manager to perform a rolling software update. To update PCF using SMI Cluster Manager, use the following configurations:

Important

Before you begin, ensure that PCF is up and running with the current version of the software.

  1. Log in to the SMI Cluster Manager console.

  2. Run the following command to log in to the SMI Ops Center.

    ssh -p <port_number> admin@$(kubectl get svc -n smi | grep
    '.*netconf.*<port_number>' | awk '{ print $4 }') 

    Example:

    ubuntu@popcf-cm01:~$ ssh -p <port_number> admin@$(kubectl get svc -n smi | grep '.*netconf.*<port_number>' | awk '{ print $4 }')
    admin@<admin_ip_address> password: SMI-CONSOLE-PASSWORD
    Welcome to the CLI
    admin connected from <admin_ip_address> using ssh on ops-center-smi-cluster-manager-85869cf9b6-7j64k
    
  3. Download the latest TAR ball from the URL.

    software-packages download URL 

    Example:

    SMI Cluster Manager# software-packages download <URL> 
    

    NOTES:

    • software-packages download url —Specify the software packages to be downloaded through HTTP/HTTPS.

  4. Verify whether the TAR balls are loaded.

    software-packages list 

    Example:

    SMI Cluster Manager# software-packages list 
    [ PCF-2019-08-21 ] 
    [ sample ] 
    

    NOTES:

    • software-packages list —Specify the list of available software packages.

  5. Update the product repository URL with the latest version of the product chart.

    Note

    If the repository URL contains multiple versions, the Ops Center selects the latest version automatically.

    config
      cluster cluster_name
       ops-centers app_name PCF_instance_name
            repository url
             exit
           exit 

    Example:

    SMI Cluster Manager# config 
    SMI Cluster Manager(config)# clusters test2 
    SMI Cluster Manager(config-clusters-test2)# ops-centers PCF data 
    SMI Cluster Manager(config-ops-centers-PCF/data)# repository <url> 
    SMI Cluster Manager(config-ops-centers-PCF/data)# exit 
    SMI Cluster Manager(config-clusters-test2)# exit 
    

    NOTES:

    • cluster —Specify the K8s cluster.

    • cluster_name —Specify the name of the cluster.

    • ops-centers app_name instance_name —Specify the product Ops Center and instance. app_name is the application name. instance_name is the name of the instance.

    • repository url —Specify the local registry URL for downloading the charts.

  6. Run the cluster sync command to update to the latest version of the product chart. For more information on cluster sync command, see the Important section.

    clusters cluster_name actions sync run 

    Example:

    SMI Cluster Manager# clusters test2 actions sync run
    Important

    The cluster synchronization updates the PCF Ops Center, which in turn updates the application pods (through helm sync command) one at a time automatically.

    NOTES:

    • cluster —Specify the K8s cluster.

    • cluster_name —Specify the name of the cluster.

    • actions —Specify the actions performed on the cluster.

    • sync run —Triggers the cluster synchronization.