Difference between revisions of "Imperial Dirac VMDIRAC"

From GridPP Wiki
Jump to: navigation, search
Line 27: Line 27:
 
     Agent: WorkloadManagement_CloudDirector
 
     Agent: WorkloadManagement_CloudDirector
 
</pre>
 
</pre>
 
+
<pre>
 +
lx02:2019_Jul_08_0939_gridpp_EL7 > dirac-admin-sysadmin-cli --host dirac00.grid.hep.ph.ic.ac.uk
 +
Pinging dirac00.grid.hep.ph.ic.ac.uk...
 +
[dirac00.grid.hep.ph.ic.ac.uk]> install service WorkloadManagement VirtualMachineManager
 +
service WorkloadManagement_VirtualMachineManager is installed, runit status: Run
 +
[dirac00.grid.hep.ph.ic.ac.uk]> install db VirtualMachineDB
 +
MySQL root password:
 +
Adding to CS WorkloadManagement/VirtualMachineDB
 +
Database VirtualMachineDB from VMDIRAC/WorkloadManagementSystem installed successfully
 +
[dirac00.grid.hep.ph.ic.ac.uk]> install agent WorkloadManagement CloudDirectorIrisCam -m CloudDirector
 +
agent WorkloadManagement_CloudDirectorIrisCam is installed, runit status: Run
 +
</pre>
 
(After reinstalling the Webserver to match v6r22p1 and making a directory by the name of /opt/dirac/webRoot/www/defaults/bootstrap/...)
 
(After reinstalling the Webserver to match v6r22p1 and making a directory by the name of /opt/dirac/webRoot/www/defaults/bootstrap/...)
 
<pre>
 
<pre>

Revision as of 11:48, 24 July 2019

Instructions are at: readthedocs

cd /opt/dirac
source bashrc
dirac-install -l DIRAC -r v6r22p1  -e VMDIRAC

update dirac.cfg (probably won't hurt)


At the moment we only use the gridpp VO to submit jobs to the Cambridge cloud:

Operations
  gridpp
    Defaults
      Cloud                                                                                                            
        GenericCloudGroup = gridpp_pilot                                                                                                                                                                                                                                           
        GenericCloudDN = /C=UK/O=eScience/OU=Imperial/L=Physics/CN=dirac-pilot.grid.hep.ph.ic.ac.uk                                                                                                                                                                                    
        user_data_commands_base_url = https://www.hep.ph.ic.ac.uk/~sf105/vmdirac_tmp  <- Simon's modified code, not needed for v6r22p1 ?                                                                                                                                                                                               
        Version = v6r21p7 <- really not sure about that one

Install the following three components according to instructions:

    DB: VirtualMachineDB
    Service: WorkloadManagement_VirtualMachineManager
    Agent: WorkloadManagement_CloudDirector
lx02:2019_Jul_08_0939_gridpp_EL7 > dirac-admin-sysadmin-cli --host dirac00.grid.hep.ph.ic.ac.uk
Pinging dirac00.grid.hep.ph.ic.ac.uk...
[dirac00.grid.hep.ph.ic.ac.uk]> install service WorkloadManagement VirtualMachineManager
service WorkloadManagement_VirtualMachineManager is installed, runit status: Run
[dirac00.grid.hep.ph.ic.ac.uk]> install db VirtualMachineDB
MySQL root password: 
Adding to CS WorkloadManagement/VirtualMachineDB
Database VirtualMachineDB from VMDIRAC/WorkloadManagementSystem installed successfully
[dirac00.grid.hep.ph.ic.ac.uk]> install agent WorkloadManagement CloudDirectorIrisCam -m CloudDirector
agent WorkloadManagement_CloudDirectorIrisCam is installed, runit status: Run

(After reinstalling the Webserver to match v6r22p1 and making a directory by the name of /opt/dirac/webRoot/www/defaults/bootstrap/...)

cd /opt/dirac/webRoot/www/defaults/bootstrap

ln -s /opt/dirac/DIRAC/Core/scripts/dirac-install.py . ln -s /opt/dirac/DIRAC/WorkloadManagementSystem/PilotAgent/dirac-pilot.py . ln -s /opt/dirac/VMDIRAC/WorkloadManagementSystem/Bootstrap/parse-jobagent-log . ln -s /opt/dirac/DIRAC/WorkloadManagementSystem/PilotAgent/pilotCommands.py .

1023  ln -s /opt/dirac/DIRAC/WorkloadManagementSystem/PilotAgent/pilotTools.py .
1025  ln -s /opt/dirac/VMDIRAC/WorkloadManagementSystem/Bootstrap/power.sh .
1027  ln -s /opt/dirac/VMDIRAC/WorkloadManagementSystem/Bootstrap/save-payload-logs .
1029  ln -s /opt/dirac/VMDIRAC/WorkloadManagementSystem/Bootstrap/vm-bootstrap .
1031  ln -s /opt/dirac/VMDIRAC/WorkloadManagementSystem/Bootstrap/vm-bootstrap-functions .
1033  ln -s /opt/dirac/VMDIRAC/WorkloadManagementSystem/Bootstrap/vm-monitor-agent .
1036  ln -s /opt/dirac/VMDIRAC/WorkloadManagementSystem/Bootstrap/vm-pilot .