6.48 Upgrading Moab Web Services (RPM)

This topic provides instructions to upgrade Moab Web Services to the latest release version using the RPM upgrade method. It includes instructions for migrating your database schema to a new version if necessary.

If upgrading Moab Web Services from a version prior to 8.0, this upgrade removes all MWS roles and permissions and recreates the default roles. If you have modified any MWS permissions or roles, you will need to recreate them after the upgrade is complete.

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.

6.48.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 6.47 Upgrading Moab Workload Manager (RPM).
  2. Upgrade your MongoDB database version to 2.4.x (recommended). See 6.21.1.C Upgrade the MongoDB.
  3. Upgrade to Java 8 (recommended). See 6.48.1.A Upgrade to Java 8
  4. Upgrade MWS Server. See 6.48.1.B Upgrade MWS Server.

6.48.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 6.13.2.A Install Java instructions.

6.48.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
    [root]# systemctl stop tomcat.service
    [root]# systemctl stop tomcat.service
  2. Back up the MWS home directory.

    [root]# cp -r /opt/mws /opt/mws-8.1-backup
  3. Install the upgrade.
    [root]# yum update moab-web-services*
    [root]# zypper update moab-web-services*
  4. Upgrade the schema of the mws database in MongoDB.

    You must perform this step, regardless of whether you upgraded MongoDB to version 2.4.x.

    Run the database migration script provided with MWS. (It is safe to run this script more than once. If for any reason, errors occur during the execution of the script, run it again.)

    [root]# mongo -u mws_user mws /opt/mws/utils/db-migrate.js -p

    You may be prompted for the mongo password. The password can be found in the /opt/mws/etc/mws-config.groovy file under the "grails.mongo.password" key.

    The script might take several minutes to execute.

  5. Merge the changes in the /tmp/mws-install/mws-9.0.3/mws-config.groovy file into your existing /opt/mws/etc/mws-config.groovy.
    1. Depending on your current MWS version, do the following as needed:

      • If Insight is part of your configuration:
        • 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 must be changed to the DNS name for the host on which the Insight Server is running; "localhost" is not valid.

        • add the Insight configuration information (dataSource_insight.username, dataSource_insight.password, dataSource_insight.url); prior to version 9.0.

          dataSource_insight.url is "jdbc:postgresql://<insight database host>:5432/moab_insight"; where <insight database host> is the IP address or name of the host on which the Insight PostgreSQL Database Server is running.

      • If Viewpoint is part of your configuration, register Viewpoint as client; prior to version 9.0
      • 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.
  6. 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.
  7. Remove unused MWS plugins. Unused plugins must be removed as their presence will prevent MWS from starting up.
    • Remove all plugins from /opt/mws/plugins except for the diagnostics, native, and power-management plugins.
      [root]# cd /opt/mws/plugins
      [root]# rm plugins-reports.jar plugins-storage.jar plugins-vcenter.jar
  8. 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.
  9. Verify the following lines are added to the end of /etc/tomcat/tomcat.conf.
    CATALINA_OPTS="-DMWS_HOME=/opt/mws -Xms256m -Xmx3g -Dfile.encoding=UTF8"
    JAVA_HOME="/usr/java/latest"
  10. Start Tomcat.
    [root]# service tomcat start
    [root]# systemctl start tomcat.service
    [root]# systemctl start tomcat.service

MWS 9.0.2 introduced a new Connection Health entry for Insight Server. If you are upgrading MWS and Insight from a version prior to 9.0.2, the new Insight Server health check will display a connection problem until you upgrade Insight to 9.0.2 or after.

© 2017 Adaptive Computing