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

3.28 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.28.1 Upgrade Steps

Do the following:

  1. Confirm the Moab Server RPM upgrade has completed on the host on which MWS Server is also installed. See 3.26 Upgrading Moab Workload Manager (RPM).
  2. If you are upgrading Moab Web Services from a version prior to 9.1.0, confirm the MongoDB database is upgraded to 3.2.x. See 3.24 Upgrading to MongoDB 3.2.x (RPM).
  3. Upgrade to Java 8 (recommended). See 3.28.1.A Upgrade to Java 8
  4. Upgrade MWS Server. See 3.28.1.B Upgrade MWS Server.

3.28.1.A 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 2.5.2.A Install Java instructions.

3.28.1.B 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.
    • If your prior MWS Server version used Tomcat 6, disable the tomcat 6 service.

      [root]# service tomcat6 stop
      [root]# chkconfig tomcat6 off

      Tomcat 6 is not supported for MWS 9.0 and after. The MWS RPM will automatically install Tomcat 7.

    • If your prior MWS Server version used Tomcat 7, stop the tomcat 7 service.

      [root]# service tomcat stop
  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]# yum 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"]
                         ]
                ]
      • Change the moab.messageQueue.port to 5570; prior to version 8.0
      • Configure and appender for the audit log; prior to version 8.0
      • Change the layout to "new com.ace.mws.logging.ACPatternLayout()" for the output format of each log entry; prior to version 8.0
      • Remove the mws.suite parameter and the mam.* parameters (they have been moved to /opt/mws/etc/mws.d/); prior to version 8.0
    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]# service tomcat start

© 2016 Adaptive Computing