r13 - 2017-12-12 - 18:56:56 - Main.tompYou are here: TWiki >  Deployment Web > DeploymentInstallingUpgradingAndMigrating > IBMQuickDeployer > IBMQuickDeployerSetupAndRun > IBMQuickDeployerExampleDeployment

Example of end to end deployment on Windows using Quick Deployertodo.png

Authors: ClareCarty
Build basis: CE/CLM 6.0.4+.

This article describes the end to end process for using IBM Quick Deployer 2.0 to install and deploy an example IBM Continuous Engineering 6.0.4 topology on Websphere Application Server with a DB2 backend on Windows servers.

There are three main steps to this process: -

  • Prepare: Decide what you are going to deploy and plan and assemble your bits and accounts.
  • Setup: Setup your systems including installing Quick Deployer into Urban Code Deploy (UCD), set up your media server (if used) with all the install bits, and set up your target VMs.
  • Run: Run install Applications on Quick Deployer to install CE/CLM onto your target VMs.

Prepare

This example deploys a small topology from the Standard ALM topologies - (ALM-D1) Departmental - Single application server / Windows / DB2: alm_d1_windows_db2.png

This is a Windows topology with a DB2 database. It is modified to remove the DOORS/DWA piece since Quick Deployer doesn’t install DOORS/DWA and it's not needed for this demonstration. A Tivoli LDAP server is also used and DCC is installed on the same server as the JTS. [Note that this image is a bit out of date and VVC is no longer a separate app].

This nets out to four server VMs:

  • One IBM HTTP reverse proxy server,
  • One DB2 server,
  • One Websphere application server (WAS) with LQE and
  • One Websphere application server with all the other applications including JTS, CCM, QM, RM, RS, DCC, GC, LDX, RELM and DM.

Four Windows VMs (called target VMs) have been allocated for these servers, each with 4 CPUs, at least 8G of RAM and minimum 100G hard drives.

There are three other pieces required to prepare for this deployment: -

  • Where the media – the zips and bits to be installed - are.
  • What LDAP server and accounts are to be used.
  • What Urban Code Deploy server Quick Deployer will be installed on.

Media Server

For media, you need the bits for Websphere application server, DB2 install, IBM Installation Manager, IHS (IBM HTTP Server) and the install bits for CE/CLM. There are a couple of options here. You can choose to download the media locally – that means downloading all the middleware and CE install zips on to each target VM. Or you can use an FTP media server that contains all the installers. [Note that mapped network drives aren’t supported for Quick Deployer on Windows]. For further details on the media server requirements you can check the Quick Deployer wiki. For simplicity, this example uses an ftp server with all the install bits: ftp://tompw7-qd-ftp01.ibm.com:2121/604/

LDAP Server

You would normally have your own LDAP server set up to use with CE/CLM. The server used for this example is https://clmpipeline.ibm.com.

Urban Code Deploy Server

This example uses a new UCD server (https://ucd-15.ibm.com:8443/) and installs Quick Deployer into it. The steps to install UCD are out of scope for this article but you can consult the UCD documentation for help. Quick Deployer is pushed into UCD using an installer script but there are some properties files that need to be edited before the installer is run and those are touched on in the Setup section.

Setup

First, prepare the UCD Server for installing Quick Deployer.

Urban Code Deploy Server Setup

The UCD Server should have a recent version of Urban Code Deploy installed. This demo uses UCD 6.2.1.1.x. The default admin account on UCD is used for this example. An authentication token is created using the admin account from UCD’s Settings tab. Quick Deployer’s installer jar uses this token.

ucd_create_token.png

The token should be given a meaningful expiration date and the other settings should be defaults.

new_auth_token.png

Let's take stock and see what has been assembled so far:-

Get the Quick Deployer package and configure the properties files

The QD 2.0 package is downloaded from the deployment wiki and unzipped it into a folder on a local machine or laptop which has java 1.8.x installed. Java is needed to run the Quick Deployer installer.

Here’s what the contents of the Quick Deployer package look like:-

qd_package.png

Before running the QD installer, the properties files must be edited.

There are four properties files:-

  • qd.properties
  • usercreds.properties
  • ldap.properties
  • db2Parameter_windows.properties

If you were using an Oracle database, you'd use oracleParameter_windows.properties and on linux you'd choose the appropriate linux properties files. The downloaded package contains sample properties files and you could actually just run the install.jar with mostly default properties - though you must first edit qd.properties because that’s where you set the UCD server information, media option, db vendor and other credentials.

If you did install Quick Deployer with sample ldap, database and userCreds properties, you would have to run the set default ldap, database and userCred properties processes in Quick Deployer before running the Install Applications process

Let’s have a look at each of these properties files in turn.

qd.properties

This is the main properties file used by the QD installer. This is one you must edit before running the Quick Deployer installer.

Some of the fields to be changed in qd.properties include:-

  • #URL to the IBM UrbanCode Deploy server to which Quick Deployer will be installed.
  • ucdUrl=https://ucd-15.ibm.com:8443

  • #An authentication token that can be used to authenticate to the IBM UrbanCode Deploy server specified by the ucdUrl property.
  • ucdToken= 6be42c13-32e9-4091-9946-3753e6f7394f

  • #The URL of the media server that contains the product artifacts. This should not be set if localPath is being used.
  • mediaUrl=ftp://tompw7-qd-ftp01.ibm.com:2121/604/

  • #Administrator user name as defined on the LDAP server.
  • wasUserName=clmadmin

  • #Administrator password as defined on the LDAP server.
  • wasPassword=MyUserPassword

  • Remove comment marker on next line to specify full or relative path to LDAP properties.
  • ldapProperties=./ldap.properties

  • Remove comment marker on next line to specify full or relative path to user credentials properties.
  • #userCredsPropertiesLinux=./userCreds.properties
  • userCredsPropertiesWindows=./userCreds.properties

  • Remove comment marker on next line to specify full or relative path to database properties.
  • databaseProperties=./db2Parameter_windows.properties

A short word on accounts and URLs

The server URLs used here are not real and the accounts and passwords are also fictional but they are representative of real accounts and are used to give realistic examples.

userCreds.properties

This is where you set up the credentials for QD to use, with passwords in Base64 format. You can encode your passwords into Base64 using an online tool or you can skip this step and run the Change user properties process (which will do the encoding for you) once Quick Deployer is installed. Here we set it all up now using the Base64 encoded values.

Some of the fields to be changed include:-

ldap.properties

You may need to consult with your local LDAP expert for the correct settings for your LDAP server.

Some of the fields to be changed include:-

  • # LDAP fully qualified hostname
  • jazz_ldap_host="clmpipeline.ibm.com"

db2Parameter_windows.properties

Finally, the db2 properties, specific to windows.

Make sure for windows that each DB being created (where application is 'xx') has an entry that looks something like this:-

  • createdxxDBOption="ON 'C:\IBMQD\db2fs' DBPATH ON 'C:' USING CODESET UTF-8 TERRITORY EN PAGESIZE 16384"
xxDBName=xxDB

Download and unzip the ucdclient.jar (QD 2.0 ONLY)

This is not required for QD 2.1.

For QD 2.0 installs, you must download and unzip the ucdclient.jar file from the UCD server and place it in the package folder with the install.jar.

Download the client from the UCD server's tools menu.

ucd_tools_menu.png

ucdclient.png

The client file is a zip and you must extract the udclient.jar from it and make sure you put the extracted udclient.jar file into the same Quick Deployer folder level as the install.jar file.

ucd_client_jar_file.png

Install Quick Deployer on the Urban Code Deploy Server

So now the properties files are all set and UCD prepped, the next step is to install Quick Deployer into UCD.

In the machine where the QD bits are unzipped, open a cmd window, change directory to the folder containing the install.jar and run the install jar with qd.properties

java -jar install.jar qd.properties

Take a look in UCD now and see the application has been created: -

qd_app_created.png

Click on the Components tab: -

qd_components.png

QD Post-install tasks

You can do several configuration tasks now including:-

This example shows how to set fixed component versions on the Install Application process.

Set fixed component versions on the Install Application process

Navigate to the Applications page and select the Rational_QD_604 application, switch to the Processes tab and select the Install Applications process.

app_processes.png

On the process Configuration tab, select Basic Settings and set all 5 components to a specific version. Typically, you would select the latest version of each component from the version drop-down list.

install_app_process.png

Once all versions are set, select save.

inst_app_process_settings.png

Target VM Setup

Quick Deployer is installed and ready. Now target VMs to deploy the CE/CLM applications onto must be prepared.

The 4 Windows VMs must be set up with some pre-requisites. These are listed in https://jazz.net/wiki/bin/view/Deployment/IBMQuickDeployerSystemRequirements. Log into each of the VMs as The Administrator and do the following:

  • Check that the operating system is at least Windows Server 2012 R2 Standard (64-bit)
  • Check the Windows Management Instrumentation Service is running (use services.msc and check the service is running)
  • Check that the VMs are all in the same domain and that the fully qualified domain name of each VM contains only lower case characters.
  • Check that all VMs are set to the same time zone.
  • Create a C:\etc folder if one does not exist (this is not required with Quick Deployer 2.1+)
  • Download and install python (python 2.7.9 is used in this example) and add python.exe to the system path
  • Download and install java 1.8 and add java to the system path
  • Create a user account called clmadmin with password MyUserPassword
  • Give the clmadmin account remote desktop access and ensure the local security policy is amended so that ‘log on as a service’ is enabled for the clmadmin account. Login to each VM using remote desktop with the clmadmin account to verify everything is setup correctly.
  • As a final step, using a web browser, access the UCD server from each VM and download the UCD agent.
  • Get the UCD agent from the UCD server’s tools menu. Download the zip and extract it.

ucd_tools_menu.png

ucd_agent_menu.png

Double click on the install agent batch file to install it with these settings.

  • Use the default install directory,
  • Default agent home directory,
  • Don’t use an agent relay,
  • Enter ucd-15.ibm.com as the hostname of the server,
  • Use the default port,
  • Don’t use a failover port,
  • Use the defaults for two-way authentication and end-to-end encryption
  • Don’t enable the agent to verify the https certificate,
  • Skip entering the full url of the ucd server,
  • Use the default agent name,
  • Enter Rational QD CLM as the team,
  • Say yes to installing the agent as a windows service,
  • Leave the unique service name for the agent at the default,
  • Enter the user account name as .\Administrator and
  • Enter the password,
  • And finally, opt to start the agent service automatically.

Verify the agent is started by going into services and verifying the agent service is running:

ucd_agent_service.png

Now go into UCD (Resources>Agents) and verify the agent is online.

ucd_agent_online.png

Once you've completed these preparation steps for all the target VMs, all four of the agents should be online.

ucd_all_agents_online.png

Take a snapshot of all the VMs in case anything goes wrong and now you are ready to create the Quick Deployer Application environment.

Create the Application Environment

The application environment in UCD is how we tell the Quick Deployer application where to install the CE/CLM apps on our VMs.

Create top-level resource group

The first thing to do is create a top-level resource group in UCD.

top-level-resource.png

Create one called w16-qd.

w16_rg.png

Create Environment

Open the Rational_QD_604 application and select Create Environment, naming it w16-qd and press Save.

app_env.png

Add the top-level resource to the environment

Open the environment and add the top-level resource just created.

add_res_to_env.png

Add the agents to the base resource in the environment

Now, add the 4 UCD agents that were installed on the target VMs to the base resource in the new environment.

add_agent_to_resource.png

Which gives you:

all_agents_in_env.png

Map the components to the agents

Now, map components to the agents as follows: Select a resource, then click Actions > Add Component. This is the list of components you need to map:

  • Rational_QD_Application_604
  • Rational_QD_ApplicationServer_604
  • Rational_QD_Database_604
  • Rational_QD_InstallationManager_604
  • Rational_QD_SystemPre-Requisite_604

These can be found in the Components tab in UCD. If you remember, the topology maps as follows: -

  • DB2 server
  • IHS Server
  • Node 1 – WAS application server with JTS, CCM, QM, RM, RS, DCC, GC, LDX, RELM and DM.
  • Node 2 – WAS application server with LQE

For this, you will need the following component mappings:

  • DB2 Server : Rational_QD_SystemPre-Requisite_604 + Rational_QD_Database_604
  • IHS Server : Rational_QD_SystemPre-Requisite_604 + Rational_QD_InstallationManager_604 + Rational_QD_ApplicationServer_604
  • Nodes 1 & 2 : Rational_QD_SystemPre-Requisite_604 + Rational_QD_InstallationManager_604 + Rational_QD_ApplicationServer_604 + Rational_QD_Application_604

add_component.png

The final component mapping looks like this:

components_mapped.png

Add the tags to the agents

The final step is to add the UCD tags to the agents to tell Quick Deployer which applications to install on which agent.

add_tag.png

agents_tagged.png

And that’s it – the environment is all prepared and now you're ready to install CE/CLM.

Run the Install Applications process

Since this process can’t be restarted, make sure you have a snapshot of the target VMs before you start the run. To run the Install Applications process, open the application and click request process against the application environment.

req_app_process.png

select_install_app.png

Make your selections in the wizard and click ‘submit’ to start the installation. Note that the MTM sample will not be deployed when Design Manager is present, even if Run JTS Setup/ MTM sample is selected in the wizard – the Quick Deployer code checks before trying.

run_install_app.png
run_install_app2.png

Now watch Quick Deployer go through the CE/CLM install and deployment process….

inst_app_running1.png

inst_app_running2.png

Eventually, the deployment completes: inst_app_completed.png

Now you can go to the web UI of your CE/CLM deployment and see the apps: The web apps can be accessed via the IHS server: https://w16qd04ihs.ibm.com:9443/jts/admin

jts.png

If you select Server>Registered Applications you can see all the CE apps.

reg_apps.png

And you're done - the deployment is ready to use.

You can find more information on the Quick Deployer wiki including other options such as installing iFixes and enabling Configuration Management.

Miscellaneous

Notes:

  • Throughout the IBM Quick Deployer wiki the screen captures are for reference only.
    In some cases if the functionality they display has not changed in the latest release they will be from a previous release

Related topics:

External links:

Additional contributors: MichelleCrane, NathanBak, ChristianLopez

Edit | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r13 < r12 < r11 < r10 < r9 | More topic actions
 
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Contributions are governed by our Terms of Use. Please read the following disclaimer.
Ideas, requests, problems regarding the Deployment wiki? Create a new task in the RTC Deployment wiki project