You are here: RPM Installation > Upgrading > Upgrading Moab Web Services (RPM)

3.29 Upgrading Moab Web Services (RPM)

This topic provides instructions to upgrade Moab Web Services to the latest release version using the RPM upgrade method.

These instructions assume you are upgrading MWS from version 8.0 or later. If you are upgrading MWS from a version prior to 8.0, contact your Adaptive Computing account manger for more information.

Because many system-level files and directories are accessed during the installation, the instructions in this guide should be executed with root privileges.

You will see that the instructions execute commands as the root user. Please note that the same commands will work for a non-root user with the sudo command.

3.29.1 Upgrade Steps

Do the following:

3.29.2 Confirm Moab Workload Manager RPM Upgrade

As Moab Web Services resides on the same host as Moab Workload Manager, you will need to confirm the Moab Server RPM upgrade has completed on their shared host. See 3.27 Upgrading Moab Workload Manager (RPM) for more information.

3.29.3 Upgrade to Java 8

Oracle Java 8 Runtime Environment is the recommended Java environment, but Oracle Java 7 is also supported. All other versions of Java, including OpenJDK/IcedTea, GNU Compiler for Java, and so on cannot run MWS.

If you wish to upgrade to Java 8, refer to the 3.29.3 Upgrade to Java 8 instructions.

3.29.4 Upgrade to MongoDB 3.2.x

Beginning with version 9.1.0, Moab Web Services requires MongoDB 3.2.x.

On the MWS MongoDB host, do the following:

  1. Check your MongoDB server version.
    [root]# rpm -qa | grep mongo
  2. If the MongoDB server version is older than 3.2.x, then you will need to upgrade the databases. See 3.25 Upgrading to MongoDB 3.2.x (RPM) for more information.

3.29.5 Back up the MongoDB Databases

This procedure is only applicable if you did not have to upgrade the MongoDB databases earlier in this topic. See 3.29.4 Upgrade to MongoDB 3.2.x for more information.

On the MWS MongoDB host, do the following:

  1. Stop all services that are using the MongoDB databases.
  2. Back up the MongoDB databases.
    [root]# cd /root
    [root]# mongodump -u admin_user -p secret1
  3. Restart the services.

3.29.6 Upgrade MWS Server

You must complete all the previous upgrade steps in this topic before upgrading MWS server. See the list of steps at the beginning of this topic.

The MWS RPM automatically creates a backup of all relevant files. These backups are stored in /var/tmp/backup-<rpmName>-<timestamp>.tar.gz.

If changes are detected between any existing configuration files and new configuration files, a version of the new configuration file will be saved under <configurationFileLocation>/<fileName>.rpmnew.

On the MWS Server Host, do the following:

  1. Stop Tomcat. s
    [root]# systemctl stop tomcat.service
  2. Back up the MWS home directory.

    [root]# cp -r /opt/mws /opt/mws-<version>-backup

    Where <version> if the product version being backed up.

  3. Install the upgrade.
    [root]# zypper update moab-web-services*
  4. Merge the changes in the /opt/mws/etc/mws-config.groovy.rpmnew file into your existing /opt/mws/etc/mws-config.groovy file.
    1. Depending on your current MWS version, do the following as needed:

      • If Insight is part of your configuration:
        • remove the Insight PostgreSQL information (dataSource_insight.username, dataSource_insight.password, dataSource_insight.url); prior to version 9.1.

          Version 9.1 removed the Insight PostreSQL database.

        • add the health check information for the Insight Server (insight.server, insight.command.port, insight.command.timeout.seconds); prior to version 9.0.2.

          insight.server is the DNS name of the host on which the Insight Server is running.

      • If Viewpoint is part of your configuration, register Viewpoint as client; prior to version 9.0, do the following:

        Edit the grails.plugin.springsecurity.oauthProvider.clients array in /opt/mws/etc/mws-config.groovy and specify a client id and a client secret. Leave the authorizedGrantTypes field unchanged.

        The following is a suggested script for generating the client secret:

        dd if=/dev/urandom count=24 bs=1 2>/dev/null | base64
        [root]# vi /opt/mws/etc/mws-config.groovy
                grails.plugin.springsecurity.oauthProvider.clients = [
                         [
                                 clientId: "viewpoint",
                                 clientSecret: "<ENTER-CLIENTSECRET-HERE>",
                                 authorizedGrantTypes: ["password"]
                         ]
                ]
    2. Confirm the value for moab.messageQueue.secretKey matches the value located in /opt/moab/etc/moab-private.cfg; if you have not yet configured a secret key, see Secure communication using secret keys.

    The following is an example of the merged /opt/mws/etc/mws-config.groovy file for MWS 9.0:

  5. Merge any changes supplied in the new mws-config-hpc.groovy file in to your installed /opt/mws/etc/mws.d/mws-config-hpc.groovy.
  6. Remove all plugins from /opt/mws/plugins except for those that you may have created. The presence of obsolete plugins can prevent MWS from starting up. Out-of-the-box plugins will be recreated when MWS is restarted.
    [root]# cd /opt/mws/plugins
    [root]# rm *.jar
  7. Verify the Tomcat user has read access to the /opt/mws/etc/mws-config.groovy and /opt/mws/etc/mws.d/mws-config-hpc.groovy file.
  8. Verify the following lines are added to the end of /etc/tomcat/tomcat.conf.
    CATALINA_OPTS="-DMWS_HOME=/opt/mws -Xms256m -Xmx3g -XX:MaxPermSize=384m -Dfile.encoding=UTF8"
    JAVA_HOME="/usr/java/latest"

    MaxPermSize is ignored using Java 8; and therefore can be omitted.

  9. Start Tomcat.
    [root]# systemctl start tomcat.service

© 2017 Adaptive Computing