Changes between Version 5 and Version 6 of installation_QCG_Notification_in_PLGrid

Show
Ignore:
Timestamp:
05/20/11 09:16:49 (13 years ago)
Author:
bartek
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • installation_QCG_Notification_in_PLGrid

    v5 v6  
    1414#!div style="font-size: 90%" 
    1515{{{#!sh 
    16   # useradd -d /opt/plgrid/var/log/smoa-ntf/ smoa_ntf 
     16useradd -d /opt/plgrid/var/log/smoa-ntf/ smoa_ntf 
    1717}}} 
    1818}}} 
     
    2222#!div style="font-size: 90%" 
    2323{{{#!sh 
    24   #QosCosGrid testing repository 
    25   # cat > /etc/yum.repos.d/qcg.repo << EOF 
    26   [qcg] 
    27   name=QosCosGrid YUM repository 
    28   baseurl=http://fury.man.poznan.pl/qcg-packages/sl/x86_64/ 
    29   enabled=1 
    30   gpgcheck=0 
    31   EOF 
     24#QosCosGrid testing repository 
     25cat > /etc/yum.repos.d/qcg.repo << EOF 
     26[qcg] 
     27name=QosCosGrid YUM repository 
     28baseurl=http://fury.man.poznan.pl/qcg-packages/sl/x86_64/ 
     29enabled=1 
     30gpgcheck=0 
     31EOF 
    3232   
    33   #Official PL-Grid repository 
    34   # rpm -Uvh http://software.plgrid.pl/packages/repos/plgrid-repos-2010-2.noarch.rpm 
     33#Official PL-Grid repository 
     34rpm -Uvh http://software.plgrid.pl/packages/repos/plgrid-repos-2010-2.noarch.rpm 
    3535}}} 
    3636}}} 
     
    4040#!div style="font-size: 90%" 
    4141{{{#!sh 
    42   # yum install smoa-ntf 
     42yum install smoa-ntf 
    4343}}} 
    4444}}} 
     
    4848#!div style="font-size: 90%" 
    4949{{{#!sh 
    50   # /opt/plgrid/qcg/smoa/share/smoa-ntf/tools/smoa-ntf-install.sh 
    51   Welcome to smoa-ntf installation script! 
     50/opt/plgrid/qcg/smoa/share/smoa-ntf/tools/smoa-ntf-install.sh 
     51Welcome to smoa-ntf installation script! 
     52 
     53This script will guide you through process of configuring proper environment 
     54for running the Smoa Notification service. You have to answer few questions regarding 
     55parameters of your database. If you are not sure just press Enter and use the 
     56default values. 
    5257   
    53   This script will guide you through process of configuring proper environment 
    54   for running the Smoa Notification service. You have to answer few questions regarding 
    55   parameters of your database. If you are not sure just press Enter and use the 
    56   default values. 
     58Use local PostgreSQL server? (y/n) [y]: y 
     59Database [smoa_ntf]:  
     60User [smoa_ntf]:  
     61Password [smoa_ntf]: MojeTajneHaslo 
     62Create database? (y/n) [y]: y 
     63Create user? (y/n) [y]: y 
    5764   
    58   Use local PostgreSQL server? (y/n) [y]: y 
    59   Database [smoa_ntf]:  
    60   User [smoa_ntf]:  
    61   Password [smoa_ntf]: MojeTajneHaslo 
    62   Create database? (y/n) [y]: y 
    63   Create user? (y/n) [y]: y 
     65Checking for system user smoa_comp...OK 
     66Checking whether PostgreSQL server is installed...OK 
     67Checking whether PostgreSQL server is running...OK 
    6468   
    65   Checking for system user smoa_comp...OK 
    66   Checking whether PostgreSQL server is installed...OK 
    67   Checking whether PostgreSQL server is running...OK 
     69Performing installation 
     70* Creating user smoa_ntf...OK 
     71* Creating database smoa_ntf...OK 
     72* Creating database schema...OK 
     73* Checking for ODBC data source smoa_ntf... 
     74* Installing ODBC data source...OK 
     75     
     76Remember to add appropriate entry to /var/lib/pgsql/data/pg_hba.conf (as the first rule!) to allow user smoa_ntf to 
     77access database smoa_ntf. For instance: 
    6878   
    69   Performing installation 
    70   * Creating user smoa_ntf...OK 
    71   * Creating database smoa_ntf...OK 
    72   * Creating database schema...OK 
    73   * Checking for ODBC data source smoa_ntf... 
    74   * Installing ODBC data source...OK 
    75      
    76   Remember to add appropriate entry to /var/lib/pgsql/data/pg_hba.conf (as the first rule!) to allow user smoa_ntf to 
    77   access database smoa_ntf. For instance: 
     79host    smoa_ntf       smoa_ntf       127.0.0.1/32    md5 
    7880   
    79   host    smoa_ntf       smoa_ntf       127.0.0.1/32    md5 
    80    
    81   and reload Postgres server. 
     81and reload Postgres server. 
    8282}}} 
    8383}}} 
     
    8888#!div style="font-size: 90%" 
    8989{{{#!sh 
    90   vim /var/lib/pgsql/data/pg_hba.conf  
    91   /etc/init.d/postgresql reload 
     90vim /var/lib/pgsql/data/pg_hba.conf  
     91/etc/init.d/postgresql reload 
    9292}}} 
    9393}}} 
     
    100100#!div style="font-size: 90%" 
    101101{{{#!xml 
    102  <sm:SMOACore  
    103     <Configuration> 
    104     .... 
    105                 <sm:Module xsi:type="sm:ecm_gsoap.service"> 
    106                     <sm:Host>'''127.0.0.1'''</sm:Host> 
    107                     <sm:Port>'''19001'''</sm:Port> 
    108                     <sm:UseWsa>true</sm:UseWsa> 
    109                 </sm:Module> 
    110     .... 
    111                 <smn:Database> 
    112                     <smn:DatabaseEnabled>true</smn:DatabaseEnabled> 
    113                     <smn:DSN>'''smoa_ntf'''</smn:DSN> 
    114                     <smn:User>'''smoa_ntf'''</smn:User> 
    115                     <smn:Password>'''smoa_ntf'''</smn:Password> 
    116                     <smn:CleanAtStart>false</smn:CleanAtStart> 
    117                 </smn:Database> 
    118     .... 
    119     </Configuration> 
    120  </sm:SMOACore> 
     102<sm:SMOACore  
     103   <Configuration> 
     104   .... 
     105              <sm:Module xsi:type="sm:ecm_gsoap.service"> 
     106                  <sm:Host>'''127.0.0.1'''</sm:Host> 
     107                  <sm:Port>'''19001'''</sm:Port> 
     108                  <sm:UseWsa>true</sm:UseWsa> 
     109              </sm:Module> 
     110   .... 
     111              <smn:Database> 
     112                  <smn:DatabaseEnabled>true</smn:DatabaseEnabled> 
     113                  <smn:DSN>'''smoa_ntf'''</smn:DSN> 
     114                  <smn:User>'''smoa_ntf'''</smn:User> 
     115                  <smn:Password>'''smoa_ntf'''</smn:Password> 
     116                  <smn:CleanAtStart>false</smn:CleanAtStart> 
     117              </smn:Database> 
     118   .... 
     119   </Configuration> 
     120</sm:SMOACore> 
    121121}}} 
    122122}}} 
     
    133133#!div style="font-size: 90%" 
    134134{{{#!sh  
    135   /etc/init.d/smoa-ntfd start 
     135/etc/init.d/smoa-ntfd start 
    136136}}} 
    137137}}} 
     
    141141#!div style="font-size: 90%" 
    142142{{{#!sh 
    143   /opt/smoa/var/log/smoa-ntf/smoa-ntfd.log 
     143/opt/smoa/var/log/smoa-ntf/smoa-ntfd.log 
    144144}}} 
    145145}}} 
     
    149149#!div style="font-size: 90%" 
    150150{{{#!sh 
    151   /etc/init.d/smoa-ntfd stop 
     151/etc/init.d/smoa-ntfd stop 
    152152}}} 
    153153}}} 
     
    159159#!div style="font-size: 90%" 
    160160{{{#!sh 
    161  $ tail -f /opt/plgrid/var/log/smoa-comp/smoa-comp.log 
    162  INF Sep 17 16:15:01 24201 0x44b22940 [notification_ws] Sending notify message (topic = ActivityState/TerminalState/Finished, activity_id = 0544b24a-e960-400e-4910-f1a893632610, status = Finished) 
     161$ tail -f /opt/plgrid/var/log/smoa-comp/smoa-comp.log 
     162INF Sep 17 16:15:01 24201 0x44b22940 [notification_ws] Sending notify message (topic = ActivityState/TerminalState/Finished, activity_id = 0544b24a-e960-400e-4910-f1a893632610, status = Finished) 
    163163}}} 
    164164}}}