Rational Automation Framework

Infrastructure.

+------------------------------+                                        +-----------------------------+ 
| Serveur RAFW                 |                                        | Serveur WebSphere 8.5       | 
| Hostname : saturn            |--(installe l'environement DMGR+NODE)-->| Hostname : arecibo          | 
| Os : Linux 2.6.32            |                                        | Os : Linux                  | 
|                              |                                        | DMGR : areciboNetwork       | 
|                              |                                        | NODE : areciboNode          | 
+------------------------------+                                        +-----------------------------+ 
Creation d'un répertoire pour IM.

root@saturn:/ # mkdir -p /root/franck
root@saturn:/ # 
Copier le fichier buildcell.properties.
Afin de pouvoir travailler sur un environement WebSphere, nous devons d'abord créer un environement.
Cet environement sera l'image d'une cellule complète (dmgr, noeud etc..).
root@saturn:~/WAS_DMGR_Workflow_v24/cells/cell# cp cell.properties /root/franck
root@saturn:~/WAS_DMGR_Workflow_v24/cells/cell# cd /root/franck
root@saturn:/root/franck # vi buildcell.properties
# Global Cell level properties
IS_BASE=no
ND_HOST_NAME=arecibo
ND_NODE_NAME=areciboNetwork
ND_PROFILE_NAME=dmgr
ND_SOAP_PORT=8879
ND_STARTING_POINT=
ND_WAS_HOME=/WebSphere/AppServer80
ND_WAS_PROF_HOME=/WebSphere/profiles80/dmgr
WAS_USERNAME=adminwebsphere
WAS_PASSWORD={bfcrypt:248c67b80c601222229e50000072c072c}3CG27jA0o/JR8HJKklhkjgkHJHJLJjkhPJGKaQ=
WAS_VERSION=80
PRODUCT_VERSION=WAS80
CELL_NAME=areciboCell
CELL_TYPE=WAS
DB2_CLIENT_HOME=
INSTALL_STATE=new
ND_OS=Non-ZOS
IM_HOME=/IBMIM/IM
IM_DATA_HOME=/IBMIM/datalocation
IM_CACHE_HOME=/IBMIM/Shared
IM_CACHE=/IBMIM/Shared

TPL_HOME=product
USER_TEMPLATE=
USING_DB2=no

NODES=areciboNode
NUMBER_OF_CLUSTERS=1
NUMBER_OF_NODES=1
CLUSTERS=cluster1
PRIMARY_NODE=areciboNetwork
CLUSTER1=cluster
CLUSTER1_CLUSTER_NAME=cluster1
CLUSTER1_CLUSTER_NODES=areciboNode
CLUSTER1_CLUSTER_TYPE=default
CLUSTER1_PERNODE=1
CLUSTER1_PREFIX=server
CLUSTER1_TRANSPORT_NODE_INCREMENTOR=0
CLUSTER1_TRANSPORT_STARTING_POINT=

NODE1_BASE_STARTING_POINT=
NODE1_NODEAGENT_STARTING_POINT=
NODE1_OS=Non-ZOS
NODE1_HOST_NAME=arecibo
NODE1_NODE_NAME=areciboNode
NODE1_NODE_TYPE=default
NODE1_PRIMARY_SERVER=server1
NODE1_PROFILE_NAME=node
NODE1_SERVERS_ON_NODE=server1
NODE1_WAS_HOME=/WebSphere/AppServer80
NODE1_WAS_PROF_HOME=/WebSphere/profiles80/node

INSTALL_IHS=yes
IHS_VERSION=80
NUMBER_OF_IHS_NODES=1
IHS_NODES=ihs_ActAppNode_webserver

IHS_NODE1_OS=Non-ZOS
IHS_NODE1_IHS_HOME=/WebSphere/WebServer80
IHS_NODE1_PLUGIN_HOME=/WebSphere/WebPlugins80
IHS_NODE1_IHS_HOST_NAME=ARECIBO
IHS_NODE1_IHS_NODE_NAME=ihs_ActAppNode_webserver
IHS_NODE1_IHS_PROFILE_NAME=
IHS_NODE1_NON_ROOT_INSTALL=true
IHS_NODE1_CREATE_ADMIN_AUTH=false
IHS_NODE1_IHS_WEB_SERVER_DEF=https-com-app
IHS_NODE1_IHS_HTTP_PORT=8080
IHS_NODE1_IHS_ADMIN_PORT=8008
# used to know where to copy shared libraries on target system for create_shared_libs_cell task
SHARED_LIB_HOME=
# secure virtual host
SECURE_VH_NAME=
OS_USER=was80
OS_GROUP=web
OS_PASSWORD={bfcrypt:248c67b80c60111089e50022072c072c}NiP4SUgrIN+siGaNcTqvCLOusloIZjtkSetmzn3NsWc=
#USING_DB2=no
#WP_CLUSTER_NAME=portal_cluster
#WP_VERSION=61

ENVIRONMENT_CREATION_DATE=Jul 3, 2013 6:32:00 PM
ENABLE_SECURITY_AT_CREATION=false
ENVIRONMENT=ARECIBO
ENVIRONMENT_CREATION_USER=RSA

WAS_FIXES=was80_fp5
ENVGEN_STATE=COMPLETE

root@saturn:/ # 
Nous allons maintenant crééer l'environement dans RAFW, mais pas physiquement sur le ou les serveurs.
Pour se faire nous allons lancer la commande rafwEnvBuild.sh qui se trouve dans les binaires RAF.
root@saturn:/opt# cd IBM
root@saturn:/opt/IBM# cd RAFServer/rafw/bin/
root@saturn:/opt/IBM/RAFServer/rafw/bin# ls
incubatorInstall.bat  integrateToBF.sh  rafw.bat          rafw.sh           substRafwHome.bat
incubatorInstall.sh   manageBFLibs.bat  rafwEnvBuild.bat  setupCmdLine.bat  update.bat
integrateToBF.bat     manageBFLibs.sh   rafwEnvBuild.sh   setupCmdLine.sh   update.sh
root@saturn:/opt/IBM/RAFServer/rafw/bin# ./rafwEnvBuild.sh -b /root/franck/buildcell.properties -genRAFWEnv
CRWFW0026I A new run with the following ID 31wp is starting at Sep 12, 2013 10:01:57 CEST
Rational Automation Framework version 3.0.0.5 build 20121029-1616
Including the following modules:
     WebSphere Liberty Profile version 8.5.0.0

CRWFW6001I Using an environment template at: /opt/IBM/RAFServer/rafw/product/templates/environments/WAS80_TEMPLATE
CRWFW6323I Key 'SSH_PORT' not found, adding with default value ''
CRWFW6323I Key 'RUN_AS_USER' not found, adding with default value ''
CRWFW6323I Key 'RUN_AS_PASSWORD' not found, adding with default value ''
CRWFW6323I Key 'ND_RUN_AS_USER' not found, adding with default value ''
CRWFW6323I Key 'ND_RUN_AS_PASSWORD' not found, adding with default value ''
CRWFW6323I Key 'ND_OS_USER' not found, adding with default value ''
CRWFW6323I Key 'ND_OS_PASSWORD' not found, adding with default value ''
CRWFW6323I Key 'ND_OS_GROUP' not found, adding with default value ''
CRWFW6323I Key 'ND_SSH_PORT' not found, adding with default value ''
CRWFW6323I Key 'IHS_NODE1_NODE_RUN_AS_USER' not found, adding with default value ''
CRWFW6323I Key 'IHS_NODE1_NODE_RUN_AS_PASSWORD' not found, adding with default value ''
CRWFW6323I Key 'IHS_NODE1_NODE_OS_USER' not found, adding with default value ''
CRWFW6323I Key 'IHS_NODE1_NODE_OS_PASSWORD' not found, adding with default value ''
CRWFW6323I Key 'IHS_NODE1_NODE_OS_GROUP' not found, adding with default value ''
CRWFW6323I Key 'IHS_NODE1_NODE_SSH_PORT' not found, adding with default value ''
CRWFW6323I Key 'NODE1_NODE_RUN_AS_USER' not found, adding with default value ''
CRWFW6323I Key 'NODE1_NODE_RUN_AS_PASSWORD' not found, adding with default value ''
CRWFW6323I Key 'NODE1_NODE_OS_USER' not found, adding with default value ''
CRWFW6323I Key 'NODE1_NODE_OS_PASSWORD' not found, adding with default value ''
CRWFW6323I Key 'NODE1_NODE_OS_GROUP' not found, adding with default value ''
CRWFW6323I Key 'NODE1_NODE_SSH_PORT' not found, adding with default value ''
CRWFW6007I A value for 'NODE1_NUMBER_OF_SERVERS' was not defined or is not a valid integer, using the default value '-1'
CRWFW6005I A value for 'NODE1_SERVER1_SERVER_NAME' was not defined in the supplied properties, using the default value 'null'
CRWFW6005I A value for 'NODE1_SERVER1_SERVER_TYPE' was not defined in the supplied properties, using the default value 'null'
     [copy] Copying 5 files to /opt/IBM/RAFServer/rafw/user/environments/ARECIBO/cells/areciboCell
     [copy] Copying 5 files to /opt/IBM/RAFServer/rafw/user/environments/ARECIBO/cells/areciboCell/nodes/areciboNetwork
     [copy] Copying 7 files to /opt/IBM/RAFServer/rafw/user/environments/ARECIBO/cells/areciboCell/nodes/areciboNode
     [copy] Copying 3 files to /opt/IBM/RAFServer/rafw/user/environments/ARECIBO/cells/areciboCell/nodes/areciboNode/servers/server1
     [copy] Copying 3 files to /opt/IBM/RAFServer/rafw/user/environments/ARECIBO/cells/areciboCell/clusters/cluster1
     [copy] Copying 3 files to /opt/IBM/RAFServer/rafw/user/environments/ARECIBO/cells/areciboCell/nodes/ihs_ActAppNode_webserver
CRWFW6310I Automation variable generation is being skipped at user's request.
Copying 1 file to /opt/IBM/RAFServer/rafw/user/preserve/envgen
root@saturn:/opt/IBM/RAFServer/rafw/bin#
Installation physique de l'environement à partir de RAFW
Pour se faire nous allons lancer la commande "rafw.sh" qui se trouve dans les binaires RAF.

Nous allons volontairement faire une erreur, oublier de crééer l'utilisateur was80.


root@saturn:/opt/IBM/RAFServer/rafw/bin# ./rafw.sh -env ARECIBO -cell areciboCell -node areciboNode -execute was_80_install_was -transferMedia
CRWFW0026I A new run with the following ID 28PY is starting at Sep 12, 2013 10:21:20 CEST
Rational Automation Framework version 3.0.0.5 build 20121029-1616
Including the following modules:
     WebSphere Liberty Profile version 8.5.0.0
     Midvision Extension Module version 1.0.0.1

CRWFW0104I Using the values defined for the properties OS_USER and OS_PASSWORD for the user 'was80'
defined in the file user/environments/ARECIBO/cells/areciboCell/configure.properties
CRWFW0103I Using the following value for OS_GROUP 'web' defined in the file
 user/environments/ARECIBO/cells/areciboCell/configure.properties
CRWFW0015I A network connection has been made to 'ARECIBO'
CRWFW6309E BUILD FAILED:
Unable to create install directory on target system: /apps/Rational/RAFW Caused by: com.ibm.rational.rafw.wsadmin.RafwException: Unable to create directory on target system: /apps/Rational Caused by: java.io.IOException: CTGRI0006E An error occurred when writing to the remote file named /apps/Rational .
root@saturn:/opt/IBM/RAFServer/rafw/bin#
Création de l'utilisateur was80 sur le serveur arecibo.

Puis nous allons relancer l'installation.
root@saturn:/opt/IBM/RAFServer/rafw/bin# ./rafw.sh -env arecibo -cell areciboCell -node areciboNode -execute was_80_install_was -transferMedia
CRWFW0026I A new run with the following ID 30TS is starting at Sep 12, 2013 14:56:52 CEST
Rational Automation Framework version 3.0.0.5 build 20121029-1616
Including the following modules:
     WebSphere Liberty Profile version 8.5.0.0
     Midvision Extension Module version 1.0.0.1

CRWFW0104I Using the values defined for the properties OS_USER and OS_PASSWORD for the user 'was80'
defined in the file user/environments/arecibo/cells/areciboCell/configure.properties
CRWFW0103I Using the following value for OS_GROUP 'web' defined in the file
 user/environments/arecibo/cells/areciboCell/configure.properties
CRWFW0015I A network connection has been made to 'arecibo'
CRWFW0013I A list of files that are already on the target system is being created.
CRWFW0066I 61 files are being transferred.
.CRWFW0060I The following file archive is being created: /opt/IBM/RAFServer/rafw/work/30TS.zip
.
CRWFW0032I The archive is being transferred to the target system at the following path: /apps/Rational/RAFW/work/30TS.zip
..
CRWFW0033I The archive is being extracted to the target system in the following directory: /apps/Rational/RAFW
..
CRWFW0034I The archive on the target system is being removed at the following path: /apps/Rational/RAFW/work/30TS.zip
CRWFW0035I The archive on the framework server is being removed at the following path: /opt/IBM/RAFServer/rafw/work/30TS.zip
CRWFW0057I The following chmod script is being created: /opt/IBM/RAFServer/rafw/work/30TS_chmod.sh
..
CRWFW0046I The following chmod script is being transferred to the target system: /apps/Rational/RAFW/work/30TS_chmod.sh
CRWFW0047I The chmod script is running in the following remote directory: /apps/Rational/RAFW
..
CRWFW0048I The following chmod script is being removed from the target system: /apps/Rational/RAFW/work/30TS_chmod.sh
CRWFW0058I The following chmod script is being removed from the framework server: /opt/IBM/RAFServer/rafw/work/30TS_chmod.sh
CRWFW0025I Buildfile: /opt/IBM/RAFServer/rafw//user/environments/arecibo/cells/areciboCell/nodes/areciboNode/build.xml

default:
CRWFW0001I If an error occurs, check '/opt/IBM/RAFServer/rafw//logs/arecibo/cells/areciboCell/nodes/areciboNode/was_80_install_was.log'
CRWFW0014I Beginning action was_80_install_was on host parvl9021269
     [echo] Apache Ant version 1.7.0 compiled on December 13 2006

was_80_install_was:

only_execute:

init_im_common:

init_im_install:

im_common_install_im:
CRWFW7091I Transferring: /opt/IBM/RAFServer/rafw/media/linux/X64/im/143/install_image to remote path: /apps/Rational/media/linux/X64/im/143/install_image
CRWFW0032I The archive is being transferred to the target system at the following path: /apps/Rational/media/linux/X64/im/143/install_image/IM143.zip
...
CRWFW0033I The archive is being extracted to the target system in the following directory: /apps/Rational/media/linux/X64/im/143/install_image
..
CRWFW0034I The archive on the target system is being removed at the following path: /apps/Rational/media/linux/X64/im/143/install_image/IM143.zip
CRWFW0046I The following chmod script is being transferred to the target system: /apps/Rational/media/linux/X64/im/143/install_image/IM143_chmod.sh
CRWFW0047I The chmod script is running in the following remote directory: /apps/Rational/media/linux/X64/im/143/install_image
..
CRWFW0048I The following chmod script is being removed from the target system: /apps/Rational/media/linux/X64/im/143/install_image/IM143_chmod.sh

init_im_install_was:

decode_password:

create_was_install_response_file_for_im:
     [echo] Using response template:
     [echo]    /opt/IBM/RAFServer/rafw/product/templates/install/was/80/was80_install_response.template
     [copy] Copying 1 file to /opt/IBM/RAFServer/rafw/work/arecibo/cells/areciboCell/nodes/areciboNode

was_common_install_was_using_im:
CRWFW7091I Transferring: /opt/IBM/RAFServer/rafw/media/linux/X64/was/80/install_image to remote path: /apps/Rational/media/linux/X64/was/80/install_image
CRWFW0032I The archive is being transferred to the target system at the following path: /apps/Rational/media/linux/X64/was/80/install_image/WAS80.zip
......................................[filetransfer] Unable to transfer: linux/X64/was/80/install_image. Caused by:com.ibm.rational.rafw.wsadmin.RafwException: CRWFW0200E Unable to transfer file '/opt/IBM/RAFServer/rafw/media/linux/X64/was/80/install_image/WAS80.zip' to '/apps/Rational/media/linux/X64/was/80/install_image/WAS80.zip' as user 'was80' Caused by: java.net.ConnectException: CTGRI0006E An error occurred when writing to the remote file named '/apps/Rational/media/linux/X64/was/80/install_image/WAS80.zip' .
.
prepare_shell:

change_directory_ownership:

prepare_shell:

change_directory_ownership:

prepare_shell:

change_directory_ownership:

BUILD FAILED
/opt/IBM/RAFServer/rafw/product/lib/core.xml:158: The following error occurred while executing this line:
/opt/IBM/RAFServer/rafw/product/actions/install/was/80/install_was80.xml:73: The following error occurred while executing this line:
/opt/IBM/RAFServer/rafw/product/actions/install/was/common/install_was_common_im.xml:67: Unable to transfer: linux/X64/was/80/install_image. Caused by:com.ibm.rational.rafw.wsadmin.RafwException: CRWFW0200E Unable to transfer file '/opt/IBM/RAFServer/rafw/media/linux/X64/was/80/install_image/WAS80.zip' to '/apps/Rational/media/linux/X64/was/80/install_image/WAS80.zip' as user 'was80' Caused by: java.net.ConnectException: CTGRI0006E An error occurred when writing to the remote file named '/apps/Rational/media/linux/X64/was/80/install_image/WAS80.zip' .

Total time: 3 minutes 27 seconds
CRWFW7070I Disconnected from 'arecibo'
root@saturn:/opt/IBM/RAFServer/rafw/bin#