Clear Quest User Guide
Clear Quest User Guide
Version 7.0.0
Windows, UNIX, and Linux
GI11-6713-00
Version 7.0.0
Windows, UNIX, and Linux
GI11-6713-00
Before using this information, be sure to read the general information under Notices, on page 35.
7th edition (May 2006) This edition applies to Version 7.0 of IBM Rational ClearCase and ClearQuest and to all subsequent releases and modifications until otherwise indicated in new editions. Copyright International Business Machines Corporation 1992, 2006. All rights reserved. US Government Users Restricted Rights Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
Contents
Figures . . . . . . . . . . . . . . . v Tables . . . . . . . . . . . . . . . vii About this book . . . . . . . . . . . ix
Who should read this book . . . . . . . . Related information . . . . . . . . . . . Rational ClearCase documentation roadmap . . Rational ClearCase LT documentation roadmap Typographical conventions . . . . . . . . Contacting IBM Customer Support for Rational software products . . . . . . . . . . . Downloading the IBM Support Assistant . . . ix . x . x xi . xi . xii . xii Using Rational ClearCase deployment units . . . Introduction to deployment units and deployment unit templates . . . . . . . . About deployment unit template files . . . . About deployment units . . . . . . . . . Using Rational ClearQuest deployment records . . About deployment records . . . . . . . . Creating a deployment record . . . . . . . State transition model for deployment records . . Rational ClearQuest MultiSite considerations . . About approvals and approval records . . . . . State transition model for approval records . . . Enabling e-signatures for approval authentication Approving or rejecting an approval record . . . Automatically notifying approvers using e-mail 15 15 15 16 17 17 17 18 20 20 20 20 21 21
Chapter 9. The Tivoli Provisioning Manager integration with Rational ClearCase and ClearQuest . . . . . . 25
About Tivoli Provisioning Manager . . . . . Using workflows to model business processes . About data centers and data center assets . . About the integration . . . . . . . . . . Installing and configuring the integration . . . Using the integration to track and automate deployment tasks . . . . . . . . . . . Importing versioned file artifacts into Tivoli Provisioning Manager . . . . . . . . . Verifying deployment approval in Rational ClearQuest . . . . . . . . . . . . Creating and updating Rational ClearQuest workflow records . . . . . . . . . . Finding which version of a release has been deployed . . . . . . . . . . . . . Workflows provided with the integration . . . . . . . . 25 25 25 26 26
. . . . . 7
. . . . . . . . . 7 . 7
. 28 . 28 . 29 . 29 . 29 . 29
iii
iv
Figures
1. An iteration of a development and deployment lifecycle . . . . . . . . . . . . . . 1 2. 3. State transitions for build records . . . State transitions for deployment records . . 14 18
vi
Tables
1. 2. Rational ClearQuest built-in tracking queries . . . . Rational ClearQuest built-in tracking reports . . . . deployment . . . . . deployment . . . . . 3. . . . 23 . 23 Workflows provided with the integration 30
vii
viii
ix
Project Management Guide to Managing Software Projects More Information Command Reference Online documentation Help files
Administration Installation and Upgrade Guide Administrator's Guide (Rational ClearCase/ Rational ClearCase LT) Administrator's Guide (Rational ClearCase MultiSite) Platforms Guide (Rational ClearCase)
Software Development
Administration
Typographical conventions
This manual uses the following typographical conventions: v ccasehomedir represents the directory into which Rational ClearCase, Rational ClearCase LT, or Rational ClearCase MultiSite has been installed. By default, this directory is /opt/rational/clearcase on the UNIX system and Linux, and C:\Program Files\Rational\ClearCase on Windows. v cquest-home-dir represents the directory into which Rational ClearQuest has been installed. By default, this directory is /opt/rational/clearquest on the UNIX system and Linux, and C:\Program Files\Rational\ClearQuest on Windows. v Bold is used for names the user can enter; for example, command names and branch names. v A sans-serif font is used for file names, directory names, and file extensions. v A serif bold font is used for GUI elements; for example, menu names and names of check boxes. v Italic is used for variables, document titles, glossary terms, and emphasis. v A monospaced font is used for examples. Where user input needs to be distinguished from program output, bold is used for user input. v Nonprinting characters appear as follows: <EOF>, <NL>. v Key names and key combinations are capitalized and appear as follows: Shift, Ctrl+G.
About this book
xi
v [ ] Brackets enclose optional items in format and syntax descriptions. v { } Braces enclose a list from which you must choose an item in format and syntax descriptions. v | A vertical bar separates items in a list of choices. v ... In a syntax description, an ellipsis indicates you can repeat the preceding item or line one or more times. Otherwise, it can indicate omitted information. Note: In certain contexts, you can use ... within a pathname as a wildcard, similar to * or ?. For more information, see the wildcards_ccase reference page. v If a command or option name has a short form, a slash ( / ) character indicates the shortest legal abbreviation. For example:
lsc/heckout
xii
xiii
xiv
Submit Release
Implement
System Test
Approve Release
Source
Pre-production Test
Production
In a given iteration of your development process, your team performs functional testing, where your software is deployed to test servers and tested. During testing, defects are found, reported, and fixed, with the newly built application deployed back to the test servers for additional testing. This cycle is repeated in each
subsequent iteration of your development process. During this process, it is critical for your team to know exactly which versions of your build artifacts you need to deploy.
about implementing a development and build environment using Rational ClearCase, see the IBM Rational ClearCase Administrators Guide and the IBM Rational ClearCase Guide to Building Software. For more information about applying deployment tracking packages to your Rational ClearQuest schema repository, see the Rational ClearQuest Help for Schema Developers.
Software requirements
Deployment tracking is a feature of Rational ClearCase and Rational ClearQuest 7.0. You must have Rational ClearCase and Rational ClearQuest 7.0 installed on machines on which you plan to perform deployment tracking tasks. For more information about installing Rational ClearCase, see the IBM Rational ClearCase, ClearCase MultiSite, and ClearCase LT Installation and Upgrade Guide. For more information about installing Rational ClearQuest, see the IBM Rational ClearQuest and ClearQuest MultiSite Installation and Upgrade Guide.
About releases
In Rational ClearQuest, a release is defined as the project on which you are currently working or the application you are currently developing. A release is represented as a record type in Rational ClearQuest. A release is used as a foundation to track a deployment; all information related to your deployment will be associated with the release record you create in Rational ClearQuest. Because a release is critical to the deployment process, it is instrumental in meeting compliance standards that require you to keep detailed records of your deployment. You can track deployments for multiple releases within your organization; for example, you may need to track deployment for multiple products or multiple releases of those products.
Creating a release
A release is represented as a record of type DTRelease in Rational ClearQuest. Use the following procedure to create a DTRelease record. 1. Click Actions > New DTRelease. 2. Fill in the required Name field. 3. Fill in the optional fields: v Description. Provide a brief description of your application. v UCM project. You can use this field to associate your release with your UCM project. To specify the name of your UCM project in this field, click Add. A dialog in which you can run a query is displayed. Run the UCMProjects query to list all of the UCM projects that are defined in the current database. Select the name of your UCM project from the list, then click OK. v TPMServer. You can create a record of type TPMServer to represent your deployment server host. To specify the name of your deployment server host in this field, select its TPMServer record from the field's drop-down list. This associates your release with your deployment server. 4. Click OK.
About roles
A role identifies an individual who is assigned to approve a deployment to move from its current test environment into the next test environment in the environment sequence that you have defined for a given release. You assign team members to roles, and then associate the roles with releases. It is possible to define many roles per release; for example, you could authorize a project manager to approve a deployment to move from the system test environment to the integration test environment, and an operations manager to approve the deployment from the integration test environment to the preproduction test environment and then finally to the production environment. It is also possible for a given team member to be assigned to multiple roles that have been defined for multiple releases; for example, a project manager authorized to approve deployments for release X could also be authorized to approve deployments for release Y. Rational ClearQuest supports this model by enabling you to create a dynamic list of named roles for use across all of your organizations releases. For more information about how to create a list of roles, see Creating a role on page 9. For more information about managing approvals for a release, see About approvals and approval records on page 20.
Creating a role
Prior to creating roles, you need to create role names modeled on the role hierarchy in your organization. You can create a dynamic list of role types or role names in Rational ClearQuest that can be used across all your releases. Use the following procedure to create a list of roles. 1. Click Edit > Named List > Role_Names. 2. Right click to add a role name. Enter the name. 3. Press Return. 4. Click OK.
Repeat this procedure to create more role names as needed, then use the following procedure to specify a role for a particular release. 1. Create a new record of type DTRole by clicking Actions > New > DTRole. 2. Fill in the required fields: v Name. Choose a role name from the drop-down menu, which is populated with role names from the dynamic list that you previously created. v Release. Associate your role with a release record. v Define Role members by selecting one or more Rational ClearQuest users. These users will be accountable for approvals in the release that you have specified. 3. Click OK.
10
About environments
An environment represents a phase of testing that your release needs to pass before it is sent to production. You define a specific set of environments for a particular release. An example of environments that you could have for your release are unit test, functional test, integration test, and preproduction test. It is important to define the correct sequence of environments for a release. The tests that your release must pass in one environment should hold your release to higher quality standards than the tests that it passed in its previous environment, so that your release improves in quality and stability as it advances from one environment to the next environment in your sequence.
Creating environments
Use the following procedure to create environments for your release. 1. Create a new record of type DTEnvironment by clicking Actions > New > DTEnvironment. 2. Fill in the required fields: v Environment name. Give the environment a name. v Release. Associate the environment with a release. v Environment sequence. This field specifies the order of environments through which your release can transition. The set of environments defined for a release must be a unique sequence. 3. Choose the optional Roles_for_approval field to enable approvals for deployment to this particular environment. You can only select roles defined for the release with which you have associated your environment. If deployment to this environment does not require any approvals, then no roles are selected. 4. Click OK.
11
12
About builds
A build represents a particular instance of a build of your release. Builds are defined in Rational ClearQuest by records of type BTBuild. You can use build records to track information about your build through your deployment lifecycle, such as the dates that the build started and ended, whether or not the build was successful, and with what release the build is associated.
Creating builds
Use the following procedure to create a build for your release: 1. Create a new record of type BTBuild by clicking Actions > New > BTBuild. 2. Rational ClearQuest automatically populates the following fields in the build record: v ID. A unique ID is assigned to the build record. v Start_DateTime. The date and time at which you started your build is recorded. v End_DateTime. The date and time at which your build ended is recorded. 3. Fill in the required ReleaseName field. This associates your build with the release on which you ran the build. 4. Fill in the optional fields: v Build_System_URL. This provides a link to the build system Web page, if applicable. v Build_System_ID. Give your build an ID. 5. Click OK. After the build record is submitted, a new field called BuildLog is added to the record. You can use this field to record notes about your build.
13
New Build
Submit
Failure
Retire
Submitted Complete
Completed Retire
Retired
You can create a build record at the start of a build process for your application. When a build record is created, it is in the Submitted state. After the build has completed successfully, the Complete action is run on the build record. This action can be run either manually by a build engineer or automatically through a build script. After the Complete action has been taken, the state of the build record is transitioned to Completed. The build record can then be transitioned from the Completed state to the Retired state to indicate that it is out of date and no longer required. If the build does not complete successfully, the Failure action is run on the build record. This action transitions the build record from the Submitted state to the Failed state. The build record can be transitioned from the Failed state to the Retired state to indicate that it is no longer needed.
14
Using Rational ClearCase deployment units Introduction to deployment units and deployment unit templates
A deployment unit is an instance of a deployment unit template. A deployment unit template file stores information in XML format about files in your VOB that you want to deploy. Data included in the deployment unit template file are a history entry noting when your template file was created, who generated the template file, and the paths of files in the VOB that you want to deploy. A deployment unit, which is also represented in Rational ClearCase as an XML file, is then created from the deployment unit template. Data included in the deployment unit are a history entry noting who generated the deployment unit, when the deployment unit was created, and version URIs of files in your VOB that you want to deploy. A file's version URI uniquely identifies the file in such a way that it can be located through any view in any replica of the VOB in which it is stored. At this point you can optionally configure a provisioning solution, such as Tivoli Provisioning Manager, to extract the versions of the files specified in the deployment unit from your VOB onto a deployment system. For information about how to integrate Rational ClearCase and Rational ClearQuest with Tivoli Provisioning Manager, see Chapter 9, The Tivoli Provisioning Manager integration with Rational ClearCase and ClearQuest, on page 25. The deployment unit template and deployment units are managed using a Rational ClearCase command-line utility called du_tool. The du_tool utility is used to perform a number of different operations on deployment units. For a detailed explanation about usage options for du_tool, see the du_tool reference page in the IBM Rational ClearCase Command Reference.
15
must conform to the XML schema as defined in the deployment_unit.xsd file that is shipped with Rational ClearCase. The deployment_unit.xsd file is located in the directory ccasehomedir\etc on all supported platforms. To verify that a deployment unit template consists of valid XML, run du_tool with the verify option on the deployment unit template XML file. For an example of how to run du_tool with the verify option to validate your deployment unit template file, see Verifying a deployment unit template file. Alternatively, you can create your deployment unit template using du_tool with the generate option. In the following example, an XML file called myApp_du.xml that lists all build artifacts in \testvob that will be deployed is created by running du_tool with the generate option:
Z:\testvob>RATLPerl "C:\Program Files\Rational\ClearCase\etc\du_tool.pl"^ --generate --directories \testvob --name "My Test App" --version 1.0^ --tag my_view --out myApp_du.xml
After you have created the deployment unit template file, add it to version control:
Z:\testvob\deployment_units>cleartool mkelem^ -c "creating deployment unit template" myApp_du.xml
16
Check out myApp_du.xml, and create a new version of myApp_du.xml from your decorated deployment unit. Check myApp_du.xml in to your VOB.
Check out myApp_du.xml, and create a new version of myApp_du.xml from your resolved deployment unit. Check myApp_du.xml in to your VOB.
17
a. Headline. Provide a short description of your deployment. b. Release. Associate this deployment record with the release that you are deploying. After the release is specified, the Environment field is populated with the name of the first environment in your defined sequence. c. Owner. Designate a Rational ClearQuest user as the owner of this deployment. d. Deployment_unit_reference. Associate the deployment record with a deployment unit. Note: The deployment unit referenced in this field must be a versioned file in a VOB. 1) Click the Browse button. This will launch a File browser window. 2) Choose the deployment unit XML file that you created in Creating (decorating) a deployment unit on page 17. You have now established an association between your deployment record and your deployment unit. This association enables you to track your build artifacts through your testing environments over the course of your deployment process. 3) Click OK.
Failed
Fail
Ready Deploy
Deployed Retire
Retired
Ready
Figure 3. State transitions for deployment records
18
v If an approval is required for this deployment, Rational ClearQuest automatically creates an approval record for every role associated with the current environment. The Approval status field in the deployment record is set to Not Approved. v If no approval is required for this deployment; that is, if no roles have been defined for the current environment, Rational ClearQuest sets the Approval status field in the deployment record to No approvals required. The following sections explain how to transition a deployment record through these typical states.
19
Retired or Failed state) you can no longer transition the deployment record to any other state. If you need to restart a deployment on a particular release, you will need to create a new deployment record. Retiring a deployment record To retire a deployment record, select it and click Actions > Retire, then click Apply. The state of the record changes to Retired. Note: A record cannot be transitioned from Retired or Failed to another state. To restart a particular deployment, you must create a new deployment record. Indicating a failed deployment To indicate that a deployment has failed, select your deployment record and choose Actions > Failure, then click Apply. The state of the deployment record changes to Failed.
20
After you have configured e-signatures, an approver will be required to enter their user name and password before approving or rejecting an approval record. Rational ClearQuest compares these credentials with the values with which the approver logged in to the Rational ClearQuest client. If they match, then the change is accepted and the signature is logged. If they do not match, an error message is displayed and no change is made to the Rational ClearQuest database.
21
22
You can also create your own customized queries as needed. For more information about creating customized queries in Rational ClearQuest, see the Rational ClearQuest Help for Users.
Running reports
Rational ClearQuest provides built-in reports that enable you to retrieve information about the status of your deployments and approvals from the Rational ClearQuest user database. These reports are located in the Reports folder under the Public Queries folder. The associated report formats are located in the Report Formats folder under the Public Queries folder. Table 2 lists and describes deployment tracking reports that are built in to Rational ClearQuest.
Table 2. Rational ClearQuest built-in deployment tracking reports Report ActiveDeployments (All) Description Reports the status of all active deployments (that is, deployments whose states are not Failed or Retired) for a release Reports the status of all approvals for a deployment
Approvals (Status)
23
You can also create your own customized reports as needed. For more information about creating customized reports in Rational ClearQuest, see the Rational ClearQuest Help for Users.
24
Chapter 9. The Tivoli Provisioning Manager integration with Rational ClearCase and ClearQuest
This chapter describes how to use the Tivoli Provisioning Manager with Rational ClearCase and Rational ClearQuest to facilitate deployment of your release to a production server.
25
v For some data center assets, the data center model stores data about the asset and data about deploying or provisioning the asset separately to provide a range of implementation options. For example, when a software package is added to the Tivoli Provisioning Manager software catalog, you define the software package as an installable file. You can then create software definitions that describe different configuration requirements and configuration options for installing the same software package. v You can create templates that define standard configurations. For example, you can create a server template that includes the routing, software, and storage configuration for a particular application tier. When a server is added to the application tier, the defined configuration is automatically applied. v You can define application topologies that describe requirements for an application. You can then deploy an application based on the defined application requirements. For more information about Tivoli Provisioning Manager workflows, data center assets, and data center models, see the IBM Tivoli Provisioning Manager Workflow Developer's Guide. The following sections describe how the Tivoli Provisioning Manager integration with Rational ClearCase and Rational ClearQuest can help you automate the deployment of your artifacts into production and track the status of your deployment process.
26
3. Download the Rational Deployment Automation Package that enables the integration from the IBM Tivoli Open Process Automation Library (OPAL) Web page at http://catalog.lotus.com/wps/portal/topal/. This automation package installs workflows, scripts, and other utilities for use with the integration. For information about workflows that are provided with this integration, see Workflows provided with the integration on page 29. 4. Follow these steps to install the automation package: a. Copy the Rational Deployment Automation Package file, <automation-package-name>.tcdriver, to the %TIO_HOME%/drivers directory. b. Navigate to the %TIO_HOME%/tools directory. c. Run the command: v On hosts running Windows:
tc-driver-manager.cmd installDriver <automation-package-name>
5. Install Cygwin, an interface that provides the look and feel of Linux, and Secure Shell (SSH), a command-line interface used for secure remote communication, on all hosts that run Windows and that run Rational ClearCase, Rational ClearQuest, or both for deployment tracking. Cygwin and SSH are automatically installed with Tivoli Provisioning Manager, so you do not need to install it on Rational ClearCase and Rational ClearQuest hosts on which Tivoli Provisioning Manager is also installed. Follow these steps to install Cygwin and SSH: a. Install Cygwin by following the instructions in the IBM Tivoli Provisioning Manager Installation Guide. The installation process shows SSH as an optional network component. Clear this option if it is selected. b. Create a system environment variable called CYGWIN and give it the value tty ntsec. c. Assign the directory path where Cygwin is installed to the PATH environment variable. For example, if you installed Cygwin in the default installation directory, C:\cygwin, you would enter this directory as the value of the PATH environment variable. d. Invoke a Cygwin window and run the command ssh-host-config. e. Follow the prompts to set up a user in Cygwin. Grant this user write access to the directory into which Rational ClearCase has been installed. 6. Enable workflows to access versioned file artifacts in Rational ClearCase by creating a File Repository DCM object to represent your Rational ClearCase installation. Follow these steps to create this DCM object: a. In the left frame of the Tivoli Provisioning Manager Web interface, click Configuration > Workflows. b. Select RRD_CreateCCfileRepository. Click on the workflow and select Run. The workflow creates a file repository DCM object that has attributes whose values you specify when you run the workflow. For information about required arguments for this workflow, see Workflows provided with the integration on page 29. To view information about the File Repository DCM object, click Inventory > Infrastructure Management > File Repositories. 7. Enable workflows to use Rational ClearQuest deployment tracking features by creating a Server DCM object to represent your Rational ClearQuest installation. This object is created within the ClearQuest Servers resource pool.
Chapter 9. The Tivoli Provisioning Manager integration with Rational ClearCase and ClearQuest
27
To create the DCM object and the resource pool, run the workflow RRD_CreateCQserver. For information about required arguments for this workflow, see Workflows provided with the integration on page 29. To view information about the ClearQuest Server DCM object, click Inventory > Servers > Physical Servers > Resource Pools > ClearQuest Servers. 8. Run the workflow RRD_VerifySetup. This workflow checks that the required DCM objects have been created and that the required scripts have been copied to the proper location for use by ClearCase file repositories and ClearQuest servers. This workflow also identifies your default ClearCase file repository and your default ClearQuest server.
28
listed in the deployment unit from Rational ClearCase to tio-home\repository\ RapidDeploy\<build-name> within the local file repository. DCM objects are created for each file listed in the deployment unit, with references to the deployment unit version URI for traceability purposes. The workflow uses the device model name, if specified, to install the deployment unit.
Importing using the Tivoli Provisioning Manager Simple Object Access Protocol (SOAP) command-line interface
You can import versioned files into Tivoli Provisioning Manager using its SOAP command-line interface instead of its Web interface. You can invoke any workflow by running CreateDeploymentRequest with its required arguments on the command line. For more information on using the SOAP command-line interface, see the IBM Tivoli Provisioning Manager Operator's Guide.
29
The workflows, their options and arguments, and descriptions of their usage are listed in Table 3.
Table 3. Workflows provided with the integration Workflow RRD_CreateCCfileRepository Usage description Creates a ClearCase File Repository DCM object. Options and arguments v File repository name. Give the File repository object a name. v Is_default. If this object represents the default Rational ClearCase file repository, set the value of this parameter to Yes; otherwise, set it to No. v IP Address. The IP address of the machine where Rational ClearCase is installed. v View Type. The type of view you are using on the machine where Rational ClearCase is installed. Set this parameter to Dynamic if you are using a dynamic view or Snapshot if you are using a snapshot view. v View Info. Specify your view tag if you are using a dynamic view, or a view path if you are usign a snapshot view. v Install Path. The full path in which Rational ClearCase is installed (ccasehomedir). v SAP User name. The user name of an SSH user that SAP (the Service Access Point of Tivoli Provisioning Manager) uses to access the machine where Rational ClearCase is installed. v SAP Password. The password of the SAP user whose name you specified above.
30
Table 3. Workflows provided with the integration (continued) Workflow RRD_CreateCQServer Usage description Creates a ClearQuest Server DCM object. Options and arguments v Server name. Give the Server DCM object a name. v Is_default. If this object represents the default Rational ClearQuest installation, set the value of this parameter to Yes; otherwise, set it to No. v IP Address. The IP address of the machine where Rational ClearQuest is installed. v Install Path. The full path in which Rational ClearQuest is installed (cquesthomedir). v Schema repository. Your Rational ClearQuest schema repository connection name. v Database. The name of your Rational ClearQuest user database. v ClearQuest User name. The name of the Rational ClearQuest user with which you run queries. v ClearQuest Password. The password of the user whose name you specified above. v SAP User name. The user name of an SSH user that SAP (the Service Access Point of Tivoli Provisioning Manager) uses to access the machine where Rational ClearQuest is installed. v SAP Password. The password of the SAP user whose name you specified above.
Chapter 9. The Tivoli Provisioning Manager integration with Rational ClearCase and ClearQuest
31
Table 3. Workflows provided with the integration (continued) Workflow RRD_GetFileFromURI Usage description Options and arguments
Given the version URI of v ClearCase File Repository a file and the ID of your DCM object ID. Leave this ClearCase File field blank to specify the Repository DCM object, default File Repository. This this workflow invokes a ID is recorded in your script on the server that software module. is specified by the DCM v The version URI, path name, object. The script and name of the file you retrieves the want to extract from Rational version-extended path ClearCase. name of the file with the v Target device ID (optional). specified version URI The device ID of the host and places it onto the onto which you want the file ClearCase server. to be extracted. Leave this If values are specified for field blank if you do not target device ID, target want the deployment unit to path, and target file be copied onto any host. In name, the workflow this case, the deployment extracts the file to the unit is copied to your specified location. If Rational ClearCase view. these parameters are not v Target path (optional). The specified and the value path into which you want of the Remove Source the file to be extracted. parameter is set to No, v Target file name (optional). If the file is copied into the you want the deployment view on the ClearCase unit file that is copied to file repository host. The your target device to have a location of the file is different name than it does recorded in the workflow in Rational ClearCase, execution output log. specify the new name as the value of this parameter. Doing so can be useful to minimize errors in environments where multiple builds produce multiple versions of deployment units with the same name. v Remove source (optional). This parameter is useful only if you are using a snapshot view to access Rational ClearCase. If this is the case, the workflow copies the file to the snapshot view and to the target that you specify. If you want the deployment unit to be removed from the snapshot view, set this parameter to Yes. If you want to keep the file in the snapshot view, set it to No. If you leave this field blank, default value of No is used.
32
Table 3. Workflows provided with the integration (continued) Workflow RRD_ImportDUfromURI Usage description Options and arguments
Given the version URI of v Deployment unit version a deployment unit, this URI. The version URI of the workflow copies the deployment unit you want deployment unit from to import into the ClearCase Rational ClearCase into File Repository. the local Tivoli v ClearCase File Repository Provisioning Manager DCM object ID (optional). file repository. The ID of the ClearCase File Repository into which you want to import the deployment unit. If this field is left blank, the default File Repository is used. v Device model name (optional)
RRD_ImportDUfromRecordID Given the ID of a v Deployment record ID. The deployment record and ID of the deployment record the ID of a ClearQuest that is associated with the Server DCM object, this deployment unit whose files workflow runs a script you want to import to the on the specified ClearQuest Server. ClearQuest server that v ClearQuest Server DCM retrieves the version URI object ID (optional). The ID of the deployment unit of the ClearQuest Server that is associated with onto which you want to the deployment record. It import the deployment unit. then copies the If this field is left blank, the deployment unit into the default ClearQuest Server is local Tivoli Provisioning used. Manager file repository. v The ID of the ClearCase file repository DCM object (optional) v Device model name (optional) RRD_ApprovalCheck Given the ID of a deployment record, the ID of a ClearQuest Server DCM object, and the name of an environment, this workflow runs a script on the specified ClearQuest server that checks for approval to deploy to the environment. This workflow returns no value if approved and displays an error message if not approved. v Deployment record ID. The ID of the deployment record to be checked for approval. v ClearQuest Server DCM object ID (optional). The name of the ClearQuest Server on which the deployment record resides. v If no ClearQuest Server DCM object is specified, the default one is used. v Environment name. The environment name must be specified as a string that matches the name of the corresponding Rational ClearQuest environment record.
Chapter 9. The Tivoli Provisioning Manager integration with Rational ClearCase and ClearQuest
33
Table 3. Workflows provided with the integration (continued) Workflow RRD_StatusUpdate Usage description Given the ID of a deployment record, this workflow runs a script on the specified ClearQuest server that creates a workflow status record and associates it with the deployment record. If a workflow record already exists for the specified deployment record, the status field on the workflow record is updated. Options and arguments v Deployment record ID. ID of the deployment record with which to associate a workflow record. v Workflow name. The name of the workflow. v Status. Status of the workflow. v ClearQuest Server DCM object ID (optional). The name of the ClearQuest Server on which the deployment record resides. If no ClearQuest Server DCM object is specified, the default one is used. v Workflow record ID (optional). ID of the workflow record associated with your deployment record, if it exists. RRD_VerifySetup Checks that the required DCM objects have been created and the scripts copied to the proper location for use by ClearCase file repositories and ClearQuest servers. Also identifies your default ClearCase file repository and your default ClearQuest server. None.
34
Appendix. Notices
This information was developed for products and services offered in the U.S.A. IBM may not offer the products, services, or features discussed in this document in other countries. Consult your local IBM representative for information on the products and services currently available in your area. Any reference to an IBM product, program, or service is not intended to state or imply that only that IBM product, program, or service may be used. Any functionally equivalent product, program, or service that does not infringe any IBM intellectual property right may be used instead. However, it is the users responsibility to evaluate and verify the operation of any non-IBM product, program, or service. IBM may have patents or pending patent applications covering subject matter described in this document. The furnishing of this document does not grant you any license to these patents. You can send license inquiries, in writing, to: IBM Director of Licensing IBM Corporation North Castle Drive Armonk, NY 10504-1785 U.S.A. For license inquiries regarding double-byte (DBCS) information, contact the IBM Intellectual Property Department in your country or send inquiries, in writing, to: IBM World Trade Asia Corporation Licensing 2-31 Roppongi 3-chome, Minato-ku Tokyo 106, Japan The following paragraph does not apply to the United Kingdom or any other country where such provisions are inconsistent with local law: INTERNATIONAL BUSINESS MACHINES CORPORATION PROVIDES THIS PUBLICATION AS IS WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Some states do not allow disclaimer of express or implied warranties in certain transactions, therefore, this statement may not apply to you. This information could include technical inaccuracies or typographical errors. Changes are periodically made to the information herein; these changes will be incorporated in new editions of the publication. IBM may make improvements and/or changes in the product(s) and/or the program(s) described in this publication at any time without notice. Any references in this information to non-IBM Web sites are provided for convenience only and do not in any manner serve as an endorsement of those Web sites. The materials at those Web sites are not part of the materials for this IBM product and use of those Web sites is at your own risk. IBM may use or distribute any of the information you supply in any way it believes appropriate without incurring any obligation to you. Licensees of this program who wish to have information about it for the purpose of enabling: (i) the exchange of information between independently created
Copyright IBM Corp. 1992, 2006
35
programs and other programs (including this one) and (ii) the mutual use of the information which has been exchanged, should contact: IBM Corporation Department BCFB 20 Maguire Road Lexington, MA 02421 U.S.A. Such information may be available, subject to appropriate terms and conditions, including in some cases, payment of a fee. The licensed program described in this document and all licensed material available for it are provided by IBM under terms of the IBM Customer Agreement, IBM International Program License Agreement or any equivalent agreement between us. Any performance data contained herein was determined in a controlled environment. Therefore, the results obtained in other operating environments may vary significantly. Some measurements may have been made on development-level systems and there is no guarantee that these measurements will be the same on generally available systems. Furthermore, some measurement may have been estimated through extrapolation. Actual results may vary. Users of this document should verify the applicable data for their specific environment. Information concerning non-IBM products was obtained from the suppliers of those products, their published announcements or other publicly available sources. IBM has not tested those products and cannot confirm the accuracy of performance, compatibility or any other claims related to non-IBM products. Questions on the capabilities of non-IBM products should be addressed to the suppliers of those products. COPYRIGHT LICENSE: This information contains sample application programs in source language, which illustrates programming techniques on various operating platforms. You may copy, modify, and distribute these sample programs in any form without payment to IBM, for the purposes of developing, using, marketing or distributing application programs conforming to the application programming interface for the operating platform for which the sample programs are written. These examples have not been thoroughly tested under all conditions. IBM, therefore, cannot guarantee or imply reliability, serviceability, or function of these programs. You may copy, modify, and distribute these sample programs in any form without payment to IBM for the purposes of developing, using, marketing, or distributing application programs conforming to IBMs application programming interfaces. Each copy or any portion of these sample programs or any derivative work, must include a copyright notice as follows: (c) (IBM) (2006). Portions of this code are derived from IBM Corp. Sample Programs. (c) Copyright IBM Corp. 2006. All rights reserved. Additional legal notices are described in the legal_information.html file that is included in your Rational software installation. Trademarks
36
ClearCase, ClearCase MultiSite, ClearQuest, IBM, Tivoli, and Rational are trademarks of International Business Machines Corporation in the United States, other countries, or both. Microsoft, Windows, and the Windows logo are trademarks of Microsoft Corporation in the United States, other countries, or both. UNIX is a registered trademark of The Open Group in the United States and other countries. Linux is a trademark of Linus Torvalds in the United States, other countries, or both. Other company, product or service names may be trademarks or service marks of others.
Appendix. Notices
37
38
Index A
approvals about 20 approving or rejecting approval records 21
M
MultiSite considerations 20
Q
queries about 23
B
builds about 13 creating build records 13
R
Rational ClearQuest MultiSite considerations 20 releases about 7 creating release records 7 reports about 23 roles about 9 creating role records 9
C
ccase-home-dir directory xi configuring deployment tracking conventions, typographical xi cquest-home-dir directory xi customer support xii 5
D
deployment records creating 17 deployment tracking how to track deployments 15 introduction 1 deployment unit templates about 15 deployment units about 16 deployment units and deployment unit templates about 15 deployments about 17
T
Tivoli Provisioning Manager about 25 data centers and data center assets 25 integration with Rational ClearCase and ClearQuest 25 about 26 installing and configuring 26 tracking and automating deployment with 28 workflows about 25 workflows provided with the integration 29 typographical conventions xi
E
e-mail notification about 21 e-signatures enabling 20 environments about 11 creating environment records 11
H
hardware and software requirements how to track deployments 15 5
I
introduction to deployment tracking 1
39
40
Thank you for your support. Submit your comments using one of these channels: v Send your comments to the address on the reverse side of this form. If you would like a response from IBM, please fill in the following information:
Address
E-mail address
___________________________________________________________________________________________________
Fold and _ _ _ _ _ _ _ _ _ _Fold and_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _Please _ _ _ _ _ staple _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ Tape _ _ _ _ _ _ _ _ Tape _ _ _ _ do not _ _ _ _ NO POSTAGE NECESSARY IF MAILED IN THE UNITED STATES
_________________________________________________________________________________________ Please do not staple Fold and Tape Fold and Tape
GI11-6713-00
Printed in USA
GI11-6713-00