Sun Java logo     Previous      Contents      Index      Next     

Sun logo
Sun Java[TM] System Identitiy Manager 7.0 Upgrade 

Chapter 3
Upgrading Identity Manager in a Test Environment

This section provides guidelines for setting up and deploying the upgrade in a test environment. The information is organized as follows:


Creating a Test Environment

You want to create a test environment that mimics your production environment as closely as possible. Duplicate the following items, using the same hardware and software versions for your test environment that you use in the production environment:


Preparing to Upgrade Your Test Environment

Before upgrading the Identity Manager installation in your test environment, perform the following tasks:

  1. Back up your current Identity Manager installation.

  2. Note

    You should always back up the Identity Manager database and file system before applying any Identity Manager service packs, hotfixes, or going through any major upgrades.


  3. Rename customized Identity Manager repository objects.
  4. Verify the environment.

Back Up Your Current Identity Manager Installation

Before updating, it is important to back up both the directory where Identity Manager is installed and the database that Identity Manager is using. You can use third-party back up software or a back up utility supplied with your system to back up the Identity Manager file system. To back up your database, refer to the database documentation for recommended back up procedures.

When you are ready to create your backups, you must first shutdown (or idle) Identity Manager. Then, use your backup utilities to back up your database and the file system where you installed Identity Manager.


Note

In general, export commands are useful, but there are issues with using their output for restoring data to a new database:

  • Audit records are not exported by default. You would have to explicitly export these records to recover from a more catastrophic failure.

    Other records might be missing from the default export as well.

  • When importing exported users to a new database, the create dates are set to the date of the import.

Use the Identity Manager console export tools only to “back up the backup” and to get data out of Identity Manager for other, more general purposes.


Rename Customized Identity Manager Repository Objects

Identity Manager provides a set of database objects, such as user forms and workflow task definitions, that are usually customized for your environment. The upgrade process replaces some of these objects in the database after saving them in the file system.

If you are not currently using the System Configuration object, you should start using it before upgrading. The System Configuration object allows you to point to these customized objects instead of using standard product defaults.

With a System Configuration object, you can customize user forms and workflow task definition objects without having to customize the default objects provided by Identity Manager. Identity Manager references the customized objects listed in the System Configuration object instead of the default objects. Refer to Identity Manager Administration for details.

If you choose not to use the System Configuration object, you must import your customized objects after performing the upgrade.


Note

Rename objects if they will be customized in the future.


Verify the Environment

Before upgrading Identity Manager in your test environment, verify the following:


Deploying the Upgrade in a Test Environment

This section explains how to deploy an upgrade in a test environment. The information is organized as follows:

The procedures described in this section apply if you are upgrading from Lighthouse 4.x to Identity Manager 5.x, or upgrading from Identity Manager 5.x to Identity Manager 6.x.


Note

For some environments, you might prefer to use manual upgrade procedures. For example,

  • You want to fully automate the upgrade as part of a repeatable upgrade procedure
  • You have restricted access to your production environment or cannot start the console
  • You have embedded Identity Manager in your application
  • You want to upgrade more than one version of Identity Manager at a time

Instructions for performing a manual upgrade procedure are provided in Upgrading Manually.


Upgrade the Environment

This section describes two methods for upgrading your test environment:

The instructions in the following sections use commands that are specific to a Windows installation and a Tomcat application server. Depending on your environment and application server, you might use slightly different commands.


Note

Refer to the appropriate chapter in Sun Java™ System Identity Manager Installation for application server-specific instructions.


Using the Identity Manager Upgrade Program

To upgrade your test environment using Identity Manager’s installation and upgrade program:

  1. Shut down the application server.
  2. If you are upgrading to Identity Manager 6.0 or Identity Manager 7.0, you must upgrade the repository database schema, as follows:
    • Identity Manager 6.0 introduces a schema change that provides new tables for tasks, groups, orgs, and the syslog table. You must create these new table structures and move your existing data.

      Identity Manager 6.0 stores user objects in two tables. You can use the sample scripts provided in the db_scripts directory to make schema changes. Refer to the db_scripts/upgradeto2005Q4M3.DatabaseName script to upgrade your repository tables.


      Note

      • Before updating your repository schema, make a full backup of your repository tables.
      • The upgrade of MySQL databases is highly involved. Refer to db_scripts/upgradeto2005Q4M3.mysql for more information.

    • Identity Manager 7.0 introduces new tables for user entitlements.
      You must create these new table structures and move your existing data. You can use the sample scripts provided in the db_scripts directory to make schema changes.

    • Note

      • Before updating the repository schema, make a full backup of your Repository tables.
      • Refer to the db_scripts/upgrade7.0.DBMSName script for more information.

  3. If you are running Sun Identity Manager Gateway on the Identity Manager server, use the following command to stop the Gateway service:
  4. net stop “Sun Identity Manager Gateway“

  5. Use either of the following methods to start the installer:
    • To use the GUI installer, run the install.bat (for Windows) or install (for UNIX).

      The installer displays the Welcome panel.

    • To activate the installer in nodisplay mode, change to the directory where the software is located, and enter the following command:

      install -nodisplay

      The installer displays the Welcome text, and then presents a list of questions to gather installation information in the same order as the GUI installer.


      Note

      • If no display is present, the installer defaults to the nodisplay option.
      • The installer will not install an older version of the software over a newer version. In this situation, an error message displays and the installer exits.

  6. On the Welcome panel, click Next.
  7. On the Install or Upgrade? panel, select Upgrade, and then click Next.
  8. On the Select Installation Directory panel, select the directory where the earlier Identity Manager version is located and click Next.
  9. The installer displays progress bars for the pre- and post-upgrade processes and then proceeds to Installation Summary panel.

  10. For detailed information about the installation, click Details, view the log file, and click Close to exit the installer.
  11. Remove all of the compiled Identity Manager files from the work directory of the application server.
  12. If you are running Gateway on a remote system, upgrade it by using the following steps.
    1. Log in to the Windows system, and change to the directory where Gateway is installed.
    2. Stop the Gateway service by running the command:
    3. gateway -k

    4. If using Windows 2000 or later, exit all instances of the Services MMC plug-in.
    5. Use the following command to remove the Gateway service:
    6. gateway -r

    7. Back up and delete the existing Gateway files.
    8. Extract the new Gateway files.
    9. If you are installing the newly upgraded Gateway on a system that is not the Identity Manager server, then copy the gateway.zip file from the Identity Manager Installation CD.

    10. Unpack the gateway.zip file into the directory where Gateway was installed.
    11. Run the following command to install the Gateway service:
    12. gateway -i

    13. Run the following command to start the Gateway service:
    14. gateway -s

Upgrading Manually

In some environments, you might want to perform the upgrade steps manually instead of using the Identity Manager installation and upgrade program.


Note

  • Be sure you set the JAVA_HOME environment variable.
  • Make sure that the bin directory in the JAVA_HOME directory is in your path.
  • Any previously-installed hotfixes will be archived to the $WSHOME/patches/HotfixName directory.

On a Windows Platform

Use the following steps to upgrade Identity Manager manually on a supported Windows platform:

  1. Stop the application server and Sun Identity Manager Gateway.
  2. Update the Identity Manager database. (See Step 2 for detailed instructions.)
  3. Enter the following commands to set your environment:
  4. set ISPATH=Path to install software
    set WSHOME=Path to Identity Manager Installation OR Staging Directory
    set TEMP=Path to Temporary Directory

  5. Run pre-process:
  6. mkdir %TEMP%
    cd /d %TEMP%
    jar -xvf %ISPATH%\IDM.WAR \
    WEB-INF\lib\idm.jar WEB-INF\lib\idmcommon.jar
    set TMPLIBPTH=%TEMP%\WEB-INF\lib
    set CLASSPATH=%TMPLIBPTH%\idm.jar;\
    %TMPLIBPTH%\idmcommon.jar;
    java -classpath %CLASSPATH% -Dwaveset.home=%WSHOME% \
       com.waveset.install.UpgradePreProcess

  7. Install software:
  8. cd %WSHOME%
    jar -xvf %ISPATH%\IDM.WAR

  9. Run post-process:
  10. java -classpath %CLASSPATH% -Dwaveset.home=%WSHOME%
      com.waveset.install.UpgradePostProcess


    Note

    The installer supports upgrading installations that have renamed, deleted, or disabled the default Configurator account.

    The installer prompts you for user name and password to import the update.xml during the upgrade post process. If the user or password is entered incorrectly, you will be prompted (up to three times) to enter the correct password. The error will be displayed in the text box behind it.

    For manual installation you must provide the -U username -P password flags to pass the credentials to the UpgradePostProcess procedure.


  11. If you installed into a staging directory, create a .war file for deployment to your application server.
  12. Remove the Identity Manager files from the application server work directory.
  13. If the upgrade process did not do so already, move any hotfix class files from the WEB-INF\classes directory to the $WSHOME\patches\HotfixName directory.
  14. Start the application server.
  15. Upgrade and then restart Sun Identity Manager Gateway. (See Step 10 for detailed instructions.)
On a Unix Platform

Use the following steps to upgrade Identity Manager manually on a supported Unix platform:

  1. Stop the application server and Sun Identity Manager Gateway.
  2. Update the Identity Manager database. (See Step 2 for instructions.)
  3. Enter the following commands to set your environment:
  4. export ISPATH=Path to Install Software
    export WSHOME=Path to Identity Manager Installation OR Staging Directory
    export TEMP=Path to Temporary Directory

  5. Run pre-process:
  6. mkdir $TEMP
    cd $TEMP
    jar -xvf $ISPATH/idm.war \
    WEB-INF/lib/idm.jar WEB-INF/lib/idmcommon.jar
    CLASSPATH=$TEMP/WEB-INF/lib/idm.jar:\
    $TEMP/WEB-INF/lib/idmcommon.jar:
    java -classpath $CLASSPATH -Dwaveset.home=$WSHOME \
    com.waveset.install.UpgradePreProcess

  7. Install software:
  8. cd $WSHOME
    jar -xvf $ISPATH/idm.war

  9. Run post-process:
  10. java -classpath $CLASSPATH -Dwaveset.home=$WSHOME
      com.waveset.install.UpgradePostProcess


    Note

    The installer supports upgrading installations that have renamed, deleted, or disabled the default Configurator account.

    The installer prompts you for user name and password to import the update.xml during the upgrade post process. If the user or password is entered incorrectly, you will be prompted (up to three times) to enter the correct password. The error will be displayed in the text box behind it.

    For manual installation you must provide the -U username -P password flags to pass the credentials to the UpgradePostProcess procedure.


  11. Change directory to $WSHOME/bin/solaris or $WSHOME/bin/linux, and then set permissions on the files in the directory so that they are executable.
  12. If you installed into a staging directory, create a .war file for deployment to your application server.
  13. Remove the Identity Manager files from the application server work directory.
  14. If the upgrade process did not do so already, move any hotfix class files from the WEB-INF/classes directory to the $WSHOME/patches/HotfixName directory.
  15. Start the application server.
  16. Upgrade and then restart Sun Identity Manager Gateway. (See Step 10 for instructions.)

Restore Customizations After Upgrade

After the test upgrade, restore any customized files and objects.

File Customizations

During upgrade, Identity Manager automatically copies all customized files (such as JSPs and HTML) into the following directory.

$WSHOME/patches/Sun_Java_System_Identity_Manager_Version_Date_/savedFiles

Table 3-1 describes the files in this directory:

Table 3-1  savedFiles Directory File Structure

File Name

Description

changedFileList

File containing a list of all saved customized files.

This file also contains a list of files (installed with your older version of Identity Manager), that will be overwritten when files of the same name are installed during upgrade.

notRestoredFileList

File containing a list of all customized files that are not restored during the upgrade process.

notInstalledFileList

File containing a list of newer version files that are not installed during the upgrade process.

The Identity Manager upgrade might add some files that were also installed with your original Identity Manager installation. Before Identity Manager overwrites the older files, it automatically saves them in the savedFiles directory. Review the savedFileList file for a list of these files.

Identity Manager automatically restores most of the files listed in changedFileList during the upgrade process, but does not restore all of them. When Identity Manager restores your customized files, it overwrites the newer version of those files (installed during upgrade).

You might have to restore some file customizations manually. Review the notRestoredFileList file for a list of the files that were not restored during upgrade. If you have to restore any customized files, edit the new file (installed during upgrade) to incorporate your customizations, and then save the newly edited file.

Object Customizations

If you set up your system configuration before performing the upgrade, you do not have to do anything to restore your object customizations unless you customized objects that are not listed in the system configuration. You must restore these objects by manually importing the XML for these objects.

As a safety measure, Identity Manager automatically saves many of the commonly customized objects to files when you import update.xml. You will find these files in the WEB-INF/savedObjects directory, in sub-directories whose names are a timestamp of the time at which the import was done. Importing update.xml can lead to the creation of up to three subdirectories in the savedObjects directory. You can manually import the object XML files to restore object customizations.

Troubleshooting Upgrade

If you encounter problems during the upgrade, check the upgrade log files located in the $WSHOME/patches/logs directory. The file names for the logs are based on a timestamp and the stage of the upgrade.


Testing the Upgrade Deployment Package

Testing is crucial before deploying the development upgrade image to your production environment.

Develop and Execute the Test Plan

Create and execute an effective test plan for the development package. A generic test plan includes:

  1. Introduction
    • Description of this Document
    • Related Documents
    • Schedule and Milestones
  2. Resource Requirements
    • Hardware
    • Software (Test Tools)
    • Staffing
      • Responsibilities
      • Training
  3. Features to Test/Test Approach
    • New Features Testing
    • Regression Testing
  4. Features Not to Test
  5. Test Deliverables
  6. Dependencies/Risks
  7. Entrance/Exit Criteria

Document All Changes

It is very important to document all changes that occurred during the test upgrade. When documenting the test upgrade process, consider the following:



Previous      Contents      Index      Next     


Part No: 819-6125-10.   Copyright 2006 Sun Microsystems, Inc. All rights reserved.