|
|
Line 1: |
Line 1: |
− | Instructions are at: | + | Instructions are at [https://dirac.readthedocs.io/en/latest/AdministratorGuide/Systems/WorkloadManagement/VMDIRAC.html?highlight=VMDIRAC readthedocs] |
− | [https://dirac.readthedocs.io/en/latest/AdministratorGuide/InstallingVMDIRAC/index.html readthedocs] | + | |
− | <pre>
| + | |
− | cd /opt/dirac
| + | |
− | source bashrc
| + | |
− | dirac-install -l DIRAC -r v6r22p1 -e VMDIRAC
| + | |
− | </pre>
| + | |
− | update dirac.cfg (probably won't hurt)
| + | |
− | | + | |
− | | + | |
− | At the moment we only use the gridpp VO to submit jobs to the Cambridge cloud:
| + | |
− | <pre>
| + | |
− | 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
| + | |
− | </pre>
| + | |
− | | + | |
− | Install the following three components according to instructions:
| + | |
− | <pre>
| + | |
− | DB: VirtualMachineDB
| + | |
− | Service: WorkloadManagement_VirtualMachineManager
| + | |
− | Agent: WorkloadManagement_CloudDirector
| + | |
− | </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/...)
| + | |
− | <pre>
| + | |
− | cd /opt/dirac/webRoot/www/defaults/bootstrap
| + | |
− | | + | |
− | </pre>
| + | |
− | 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 .
| + | |
− | <pre>
| + | |