Changes between Version 8 and Version 9 of installation_QCG_BES_AR
- Timestamp:
- 05/16/11 13:49:15 (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
installation_QCG_BES_AR
v8 v9 544 544 BATServiceURL:: 545 545 URL of the BAT accounting service 546 SiteName::546 !SiteName:: 547 547 local site name as reported to the BAT service 548 QueueName::548 !QueueName:: 549 549 queue name to which report usage data 550 550 … … 552 552 The SMOA Computing can be configured with various authentication and authorization modules. However in the typical deployment we assume that the SMOA Computing is configured as in the above example, i.e.: 553 553 * authentication is provided on basics of ''httpg'' protocol 554 * authorization is based on the local <code>grid-mapfile</code> mapfile (see [[GridFTP#Users_configuration| Users configuration]]). 555 556 =Starting the service= 554 * authorization is based on the local `grid-mapfile` mapfile (see [[GridFTP#Users_configuration| Users configuration]]). 555 556 = Starting the service = 557 557 558 As root type: 558 559 {{{ 560 #!div style="font-size: 90%" 561 {{{#!sh 559 562 # /opt/QCG/smoa/sbin/smoa-compd 563 }}} 564 }}} 560 565 561 566 or if you want the service not to daemonize and print all logs to console type: 562 567 568 {{{ 569 #!div style="font-size: 90%" 570 {{{#!sh 563 571 # /opt/QCG/smoa/sbin/smoa-compd -d 564 565 otherwise the logs can be found in <code>/opt/QCG/smoa/var/log/smoa-comp/smoa-comp.log</code>. 566 567 {{Note}} Before starting the <code>smoa-compd</code> service make sure that all environment variables needed to contact the LRMS system are set (i.e. the <code>SGE_ROOT</code> for SGE or the whole <code>profile.lsf</code> file sourced in case of LSF) 568 569 =Stopping the service= 572 }}} 573 }}} 574 otherwise the logs can be found in `/opt/QCG/smoa/var/log/smoa-comp/smoa-comp.log`. 575 576 '''Note:''' Before starting the `smoa-compd` service make sure that all environment variables needed to contact the LRMS system are set (i.e. the `SGE_ROOT` for SGE or the whole `profile.lsf` file sourced in case of LSF) 577 578 = Stopping the service = 579 570 580 The service is stopped by sending SIGTERM signal, e.g.: 581 582 {{{ 583 #!div style="font-size: 90%" 584 {{{#!sh 571 585 # pkill smoa-compd 572 573 =Verifying the installation= 574 575 * For convenience you can add the <code>/opt/QCG/smoa/bin</code> to your <code>PATH</code> variable. 576 * Edit the SMOA Computing client configuration file (<code>PREFIX/etc/smoa-comp.xml</code>): 577 ** set the ''Host'' and ''Port'' to reflects the changes in the service configuration file (<code>smoa-compd.xml</code>), 578 ** change the authentication module type from <code>sm:atc_transport_http.client</code> to <code>sm:atc_transport_gsi.client</code>, 579 586 }}} 587 }}} 588 589 = Verifying the installation = 590 591 * For convenience you can add the `/opt/QCG/smoa/bin` to your `PATH` variable. 592 * Edit the SMOA Computing client configuration file (`PREFIX/etc/smoa-comp.xml`): 593 * set the ''Host'' and ''Port'' to reflects the changes in the service configuration file (`smoa-compd.xml`), 594 * change the authentication module type from `sm:atc_transport_http.client` to `sm:atc_transport_gsi.client`, 595 596 {{{ 597 #!div style="font-size: 90%" 598 {{{#!xml 580 599 <?xml version="1.0" encoding="UTF-8"?> 581 600 <sm:SMOACore … … 604 623 </Configuration> 605 624 </sm:SMOACore> 625 }}} 626 }}} 606 627 607 628 * Initialize your credentials: 608 629 630 {{{ 631 #!div style="font-size: 90%" 632 {{{#!sh 609 633 $ grid-proxy-init 610 634 Your identity: /O=Grid/OU=QosCosGrid/OU=PSNC/CN=Mariusz Mamonski … … 612 636 Creating proxy .................................................................. Done 613 637 Your proxy is valid until: Wed Sep 16 05:01:02 2009 638 }}} 614 639 615 640 * Query the SMOA Computing service: 641 642 {{{ 643 #!div style="font-size: 90%" 644 {{{#!sh 616 645 $ smoa-comp -G | xmllint --format - # the xmllint is used only to present the result in more pleasant way 617 646 … … 635 664 <smcf:NotificationProviderURL xmlns:smcf="http://schemas.smoa-project.com/comp/2009/01/factory">http://localhost:2211/</smcf:NotificationProviderURL> 636 665 </bes-factory:FactoryResourceAttributesDocument> 666 }}} 667 }}} 637 668 638 669 * Submit a sample job: 670 {{{ 671 #!div style="font-size: 90%" 672 {{{#!sh 639 673 $ smoa-comp -c -J /opt/QCG/smoa/share/smoa-comp/doc/examples/jsdl/sleep.xml 640 674 Activity Id: ccb6b04a-887b-4027-633f-412375559d73 675 }}} 676 }}} 641 677 642 678 * Query it status: 679 {{{ 680 #!div style="font-size: 90%" 681 {{{#!sh 643 682 $ smoa-comp -s -a ccb6b04a-887b-4027-633f-412375559d73 644 683 status = Executing … … 648 687 status = Finished 649 688 exit status = 0 650 689 }}} 690 }}} 651 691 * Create an advance reservation: 652 692 :* copy the provided sample reservation description file (expressed in ARDL - Advance Reservation Description Language) 653 693 $ cp /opt/QCG/smoa/share/smoa-comp/doc/examples/ardl/oneslot.xml oneslot.xml 654 655 694 :* Edit the <code>oneslot.xml</code> and modify the ''StartTime'' and ''EndTime'' to dates that are in the near future, 656 695 :* Create a new reservation: