Création d'un serveur WebSphere distant à partir de RAFW.

  • Infrastructure.

  • +------------------------------+                                        +-----------------------------+ 
    | Serveur RAFW                 |                                        | Serveur WebSphere 8.5       | 
    | Hostname : saturn            |-(Création d'un serveur WebSphere JVM)->| Hostname : arecibo          | 
    | Os : Linux 2.6.32            |                                        | Os : Linux                  | 
    |                              |                                        | DMGR : areciboNetwork       | 
    |                              |                                        | NODE : areciboNode          | 
    +------------------------------+                                        +-----------------------------+ 
    
  • Modification du serveur configure.properties dans le bon scope (noeud).

  • Le fichier configure.properties permet de définir le nom des serveurs websphere (JVM) et les templates associé

    Il y a deux balises importantes :

    - SERVERS_ON_NODE=serveurFranck,serveurTURLAN,serveurTHEBEST
    - SERVER_TEMPLATE_serveurFranck=grossetemplate
    - SERVER_TEMPLATE_serveurTURLAN=grossetemplate
    - SERVER_TEMPLATE_serveurTHEBEST=petitetemplate

    Dans l'exemple ci-dessus j'aurais donc 3 serveurs et 2 templates, les serveurs "serveurFranck et serveurTURLAN" utilisant la même template.
    Et le serveur "serveurTHEBEST" une template différente.

    Nous aurons donc deux fichiers :

    - server_template_grossetemplate.xml
    - server_template_petitetemplate.xml
    root@saturn:/opt/IBM/RAFServer/rafw/user/environments/arecibo/cells/areciboNetwork/nodes/areciboNode# vi configure.properties
    
    SERVERS_ON_NODE=server1,serverBP2I
    
    SERVERS_ON_NODE=serveurFranck,serveurTURLAN,serveurTHEBEST
    SERVER_TEMPLATE_serveurFranck=grossetemplate
    SERVER_TEMPLATE_serveurTURLAN=grossetemplate
    SERVER_TEMPLATE_serveurTHEBEST=petitetemplate
    
    
    # used to know where to copy shared libraries on target system for create_shared_libs_cell task
    
    
    

  • Lancement de la commande sans avoir créée les templates.

  • Si les templates ne sont pas créées les serveurs seront construit avec des paramètres par défaut.
    Pour se faire lancer la commande suivante :
    ./rafw.sh -e arecibo -c areciboNetwork -n areciboNode -execute was_common_configure_create_server
    
    root@saturn:/opt/IBM/RAFServer/rafw/user/environments/arecibo/cells/areciboNetwork/nodes/areciboNode# /opt/IBM/RAFServer/rafw/bin/rafw.sh -e arecibo -c areciboNetwork -n areciboNode -execute was_common_configure_create_server
    CRWFW0026I A new run with the following ID 86HF is starting at Sep 20, 2013 15:27:04 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/areciboNetwork/configure.properties
    CRWFW0103I Using the following value for OS_GROUP 'web' defined in the file
     user/environments/arecibo/cells/areciboNetwork/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 1 files are being transferred.
    CRWFW0017I The following files are being transferred:
       user/environments/arecibo/cells/areciboNetwork/nodes/areciboNode/configure.properties
    
    CRWFW0113I 0 files need to have their file permissions changed.
    Buildfile: /apps/Rational/RAFW/user/environments/arecibo/cells/areciboNetwork/nodes/areciboNode/build.xml
    
    default:
      [rafwlog] CRWFW0001I If an error occurs, check '/apps/Rational/RAFW//logs/arecibo/cells/areciboNetwork/nodes/areciboNode/was_common_configure_create_server.log'
      [rafwlog] CRWFW0014I Beginning action was_common_configure_create_server on host arecibo
         [echo] Apache Ant version 1.7.0 compiled on December 13 2006
    
    only_execute:
    
    was_common_configure_check_for_server_name:
      [rafwlog] CRWWA0183I The action will be run for these servers: 'serveurFranck,serveurTURLAN,serveurTHEBEST'
      [rafwlog] as defined by the property 'SERVERS_ON_NODE' in [NODE HOME]/configure.properties
    
    scope_init:
    
    was_common_configure_create_server:
         [echo] Creating the servers serveurFranck,serveurTURLAN,serveurTHEBEST on the node areciboNode
    
    call_wsadmin:
    
    scope_init:
    
    prepare_shell:
    
    decode_password:
    
    was_init:
    
    jython_jacl_init:
    
    java_init:
    
    build_wsadmin_exec_string:
    
    use_lr_wsadmin:
    
    call_wsadmin_script:
         [exec] WASX7209I: Connected to process "dmgr" on node areciboManager using SOAP connector;  The type of process is: DeploymentManager
         [exec] WASX7303I: The following options are passed to the scripting environment and are available as arguments that are stored in the argv variable: "[-servername, serveurFranck, -nodename, areciboNode, -template, default, -os, linux, -mode, execute]"
         [exec] Creating server: serveurFranck using template: default
         [exec] Saving Config...
         [exec] Synchronizing Nodes...
         [exec] --## areciboNode contains a non-deploymentManger and will be synced ##--
         [exec] checking for the existence of a NodeSync MBean on node areciboNode
         [exec] Invoking synchronization for node WebSphere:name=nodeSync,process=nodeagent,platform=common,node=areciboNode,diagnosticProvider=true,version=8.0.0.5,type=NodeSync,mbeanIdentifier=nodeSync,cell=areciboNetwork,spec=1.0 because serverStartupSyncEnabled is set to false...
         [exec] Done with synchronization.
    
    call_wsadmin:
    
    scope_init:
    
    prepare_shell:
    
    decode_password:
    
    was_init:
    
    jython_jacl_init:
    
    java_init:
    
    build_wsadmin_exec_string:
    
    use_lr_wsadmin:
    
    call_wsadmin_script:
         [exec] WASX7209I: Connected to process "dmgr" on node areciboManager using SOAP connector;  The type of process is: DeploymentManager
         [exec] WASX7303I: The following options are passed to the scripting environment and are available as arguments that are stored in the argv variable: "[-servername, serveurTURLAN, -nodename, areciboNode, -template, default, -os, linux, -mode, execute]"
         [exec] Creating server: serveurTURLAN using template: default
         [exec] Saving Config...
         [exec] Synchronizing Nodes...
         [exec] --## areciboNode contains a non-deploymentManger and will be synced ##--
         [exec] checking for the existence of a NodeSync MBean on node areciboNode
         [exec] Invoking synchronization for node WebSphere:name=nodeSync,process=nodeagent,platform=common,node=areciboNode,diagnosticProvider=true,version=8.0.0.5,type=NodeSync,mbeanIdentifier=nodeSync,cell=areciboNetwork,spec=1.0 because serverStartupSyncEnabled is set to false...
         [exec] Done with synchronization.
    
    call_wsadmin:
    
    scope_init:
    
    prepare_shell:
    
    decode_password:
    
    was_init:
    
    jython_jacl_init:
    
    java_init:
    
    build_wsadmin_exec_string:
    
    use_lr_wsadmin:
    
    call_wsadmin_script:
         [exec] WASX7209I: Connected to process "dmgr" on node areciboManager using SOAP connector;  The type of process is: DeploymentManager
         [exec] WASX7303I: The following options are passed to the scripting environment and are available as arguments that are stored in the argv variable: "[-servername, serveurTHEBEST, -nodename, areciboNode, -template, default, -os, linux, -mode, execute]"
         [exec] Creating server: serveurTHEBEST using template: default
         [exec] Saving Config...
         [exec] Synchronizing Nodes...
         [exec] --## areciboNode contains a non-deploymentManger and will be synced ##--
         [exec] checking for the existence of a NodeSync MBean on node areciboNode
         [exec] Invoking synchronization for node WebSphere:name=nodeSync,process=nodeagent,platform=common,node=areciboNode,diagnosticProvider=true,version=8.0.0.5,type=NodeSync,mbeanIdentifier=nodeSync,cell=areciboNetwork,spec=1.0 because serverStartupSyncEnabled is set to false...
         [exec] Done with synchronization.
    
    prepare_shell:
    
    change_directory_ownership:
    
    prepare_shell:
    
    change_directory_ownership:
    
    prepare_shell:
    
    change_directory_ownership:
    [querychangedfiles] CRWFW6009I Computing list of files modified during action execution for scope arecibo/cells/areciboNetwork
    
    BUILD SUCCESSFUL
    Total time: 1 minute 10 seconds
    CRWFW0059I The following file is being transferred from the target system to the framework server: logs/arecibo/cells/areciboNetwork/nodes/areciboNode/was_common_configure_create_server.trace
    CRWFW0059I The following file is being transferred from the target system to the framework server: logs/arecibo/cells/areciboNetwork/nodes/areciboNode/was_common_configure_create_server.log
    CRWFW0059I The following file is being transferred from the target system to the framework server: logs/arecibo/cells/areciboNetwork/nodes/areciboNode/was_common_configure_create_server.wsadmin
    CRWFW7070I Disconnected from 'arecibo'
    root@saturn:/opt/IBM/RAFServer/rafw/user/environments/arecibo/cells/areciboNetwork/nodes/areciboNode#
    
    
  • Résultat visible à la console.

  • création d'un serveur websphere avec RAF
  • Lien de la documentation IBM.

  • Url ibm pour la commande was_common_configure_create_server.