Upgrading the replica administrative node - PingAccess - 7.2

PingAccess

bundle
pingaccess-72
ft:publication_title
PingAccess
Product_Version_ce
PingAccess 7.2
category
Product
pa-72
pingaccess
ContentType_ce

Upgrade the PingAccess replica administrative node using the PingAccess Upgrade Utility, then resume configuration replication.

Any warnings or errors encountered are recorded in log/upgrade.log, as well as on the screen while the utility is running. The upgrade uses an exit code of 0 to indicate a successful upgrade and an exit code of 1 to indicate failure.

Info:

During the upgrade, it is important to not make any changes to the running PingAccess environment.

  1. If you are using the upgrade utility, change to the new version's /upgrade/bin directory on the command line.
    cd /pingaccess-6.1.0/upgrade/bin
  2. Upgrade the system:
    • If you are using the upgrade utility on a Windows system, use this command: upgrade.bat [-p <admin_port>] [-i <directory>] [-j <jvm_memory_options_file>] [-l <newPingAccessLicense>] [-s | --silent] <sourcePingAccessRootDir>
      For example.
      upgrade.bat ../pingaccess-5.3.0
    • If you are using the upgrade utility on a Linux system, use this command: ./upgrade.sh [-p <admin_port>] [-i <directory>] [-j <jvm_memory_options_file>] [-l <newPingAccessLicense>] [-s | --silent] <sourcePingAccessRootDir>
      For example.
      ./upgrade.sh ../pingaccess-5.3.0
    • If you are using the incremental update package, open the ReadMeFirst.txt file and make the file changes specified in the readme.

    The command-line parameters are the same regardless of the platform, and are defined as follows.

    Parameter definitions
    Parameter Value description

    -p <admin_port>

    Optional port to be used by the temporary PingAccess instance run during the upgrade. The default is 9001.

    -i <directory>

    An optional directory containing additional library JAR files (for example, plugins, JDBC drivers) to be copied into the target installation.

    Beginning in version 6.0, JAR files are stored in the <PA_HOME>/deploy folder.

    During an upgrade from versions earlier than 6.0, third-party JAR files are migrated from the lib folder to the deploy folder if no directory is specified.

    During an upgrade from version 6.0 or later, the contents of the deploy folder are migrated to the new <PA_HOME>/deploy folder if no directory is specified.

    <sourcePingAccessRootDir>

    The PA_HOME for the source PingAccess version.

    -l <newPingAccessLicense>

    An optional path to the PingAccess license file to use for the target version. If not specified, the existing license is reused.

    -j <jvm_memory_options_file>

    An optional path to a file with Java Virtual Machine (JVM)Java Virtual Machine (JVM)JVM A virtual machine that allows a computer to run Java programs and programs that are compiled to Java bytecode. memory options to use for the new PingAccess instance during the upgrade.

    -s | --silent

    Run the upgrade with no user input required. To use this option, specify the source version's credentials using environment variables.

    Environment Variables

    You can specify the username and password for the source version using these environment variables:

    Environment variable Description

    PA_SOURCE_API_USERNAME

    The username for the source version's Admin APIapplication programming interface (API) A specification of interactions available for building software to access an application or service.. This should be set to Administrator.

    PA_SOURCE_API_PASSWORD

    The basic authorization password for the Administrator in the source version's Admin API.

    JVM Memory options

    These options can be included in the JVM memory options file. Memory amounts use m or g to specify the unit.

    Memory option Description

    -Xms<amount>

    Minimum heap size.

    -Xmx<amount>

    Maximum heap size.

    -XX:NewSize=<amount>

    Minimum size for the Young Gen space.

    -XX:MaxNewSize=<amount>

    Maximum size for the Young Gen space.

    -XX:+UseParallelGC

    Specifies that the parallel garbage collector should be used.

    For example.

    #Sample JVM Memory options file
    -Xms512m
    -Xmx1g
    -XX:NewSize=256m
    -XX:MaxNewSize=512m
    -XX:+UseParallelGC

    You can copy the existing <PA_HOME>/conf/jvm-memory.options file to create a JVM memory options file for the upgrade.

  3. Stop the existing PingAccess replica admin instance.
  4. Start the new PingAccess replica admin instance.
Resume configuration replication for the replica administrative node:
  1. In a browser, go to https://<host>:<admin-port>/pa-admin-api/v3/api-docs/.
    https://localhost:9000/pa-admin-api/v3/api-docs/
  2. Expand the /adminConfig/replicaAdmins endpoint.
  3. Click the GET /adminConfig/replicaAdmins operation.
  4. Click Try it out! and note the id for the replica admin.
  5. Click the GET /adminConfig/replicaAdmins/{id} operation.
  6. Enter the id of the replica admin you want to update and click Try it out!
  7. Copy the Response Body.
  8. Click the PUT /adminConfig/replicaAdmins/{id} operation and enter the id of the replica admin you want to update.
  9. Paste the Response Body you copied and change "configReplicationEnabled" to true.
  10. Click Try it out!

    If the operation is successful, you will receive a response code of 200.

  11. Click Settings and then go to Clustering > Administrative Nodes.
  12. Ensure the Replica Administrative Node displayed and reporting on the Administrative Nodes tab. A healthy node shows a green status indicator.
After you have upgraded the administrative and replica administrative nodes, you can begin upgrading the engines.