GratiaInstallation

Introduction

To deploy a test instance of a Gratia collector to collect accounting information.

Installation

Starting from Gratia instructions.

Download and install pacman 3.29

  • Ran
    wget http://atlas.bu.edu/~youssef/pacman/sample_cache/tarballs/pacman-latest.tar.gz
  • Untarred and setup pacman
  • [root@gs-gratia opt]# wget http://atlas.bu.edu/~youssef/pacman/sample_cache/tarballs/pacman-latest.tar.gz
    --2009-12-10 16:14:24--  http://atlas.bu.edu/~youssef/pacman/sample_cache/tarballs/pacman-latest.tar.gz
    Resolving atlas.bu.edu... 192.5.207.10
    Connecting to atlas.bu.edu|192.5.207.10|:80... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 856615 (837K) [application/x-gzip]
    Saving to: `pacman-latest.tar.gz'
    
    100%[======================================>] 856,615     1.47M/s   in 0.6s    
    
    2009-12-10 16:14:25 (1.47 MB/s) - `pacman-latest.tar.gz' saved [856615/856615]
    
    [root@gs-gratia opt]# ls
    pacman-latest.tar.gz
    [root@gs-gratia opt]# tar xvzf pacman-latest.tar.gz 
    [root@gs-gratia opt]# ln -s pacman-3.29/ pacman
    [root@gs-gratia opt]# cd pacman
    [root@gs-gratia pacman]# source setup.sh
    

Install VDT components

  • [root@gs-gratia opt]# mkdir /opt/gratia
    [root@gs-gratia opt]# cd /opt/gratia/
    [root@gs-gratia gratia]# pacman -get http://vdt.cs.wisc.edu/vdt_200_cache:Gratia-Reporting 
    [root@gs-gratia gratia]# source setup.sh
    [root@gs-gratia gratia]# vdt-post-install 
    Starting...
    Nothing needs to be done at this time.
    [root@gs-gratia gratia]# vdt-ca-manage setupCA --location local -url osg
    Setting CA Certificates for VDT installation at '/opt/gratia'
    
    Setup completed successfully.
    [root@gs-gratia gratia]# vdt-control --enable fetch-crl vdt-rotate-logs vdt-update-certs
    running 'vdt-register-service --name fetch-crl --enable'... ok
    running 'vdt-register-service --name vdt-rotate-logs --enable'... ok
    running 'vdt-register-service --name vdt-update-certs --enable'... ok
    
    

Secure the mysql database and configure gratia to use that

  • [root@gs-gratia gratia]# mysql --socket $VDT_LOCATION/vdt-app-data/mysql5/var/mysql.sock --host=localhost -u root 
    Welcome to the MySQL monitor.  Commands end with ; or \g.
    Your MySQL connection id is 41
    Server version: 5.0.81-log Source distribution
    
    Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
    
    mysql> set password for 'root'@'localhost'=PASSWORD('ROOT PASSWORD');
    Query OK, 0 rows affected (0.00 sec)
    
    mysql> quit
    Bye
    
  • Setup gratia to use this password
    [root@gs-gratia etc]# printf "YOUR_DB_ROOT_PASSWORD" > mysql5.root.pass
    [root@gs-gratia etc]# $VDT_LOCATION/vdt/setup/configure_gratia --repovices --serv
    ================================================================================
    As part of configuring Gratia, configure_gratia must create
    a new database and database user in MySQL.  To do so, we need your MySQL root
    password -- please enter it at the prompt below.  This script does not save the
    password, but does pass it on the command line to mysql.
    ================================================================================
    Enter your MySQL root password: 
    

-- SuchandraThapa - 10 Dec 2009
Topic revision: r2 - 22 Feb 2010, SuchandraThapa
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback