Warning, /eic.github.io/_resources/production_liasion_guidelines.md is written in an unsupported language. File is not indexed.
0001 ---
0002 title: Production Liasion Guidelines
0003 description: Production Liasion Guidelines
0004 name: production liasion guidelines
0005 layout: default
0006 ---
0007
0008 {% include layouts/title.md %}
0009
0010 ---
0011 # Getting User Accounts
0012
0013 You should get a computing user account on JeffersonLab, Open Science Grid, or Brookhaven National Lab. The instructions to get accounts on each of the sites can be found in the links below:
0014 1. [Jefferson Lab Account Access](https://misportal.jlab.org/jlabAccess/)
0015 2. [Open Science Grid Account Access](https://www.ci-connect.net/signup)
0016 3. [Brookhaven Lab Account Access](https://www.sdcc.bnl.gov/information/getting-started/new-user-account)
0017
0018 Obtaining access to multiple sites is good for redundancy.
0019
0020
0021 # Getting Approved for OSG Access Points (APs)
0022
0023 ### Jefferson Lab
0024 ```bash
0025 ssh <username>@scilogin.jlab.org -Y
0026 # Use your 2-factor Safenet password
0027 ```
0028
0029 You have to setup the 2-factor Safenet password by calling the helpdesk at +1(757)2697155 after your account creation is done. You will receive the relevant links on your [JLab email](https://webmail.jlab.org/) which can be accessed by your regular JLab password.
0030
0031 Once you have access to the JLab login node, file a ticket with [JLab Service Now](https://jlab.servicenowservices.com) to gain access to osg-eic access point.
0032
0033 Mention in the ticket that you will be submitting simulation jobs to OSG on behalf of the ePIC experiment. Once approved, you will be able to login to osg-eic after logging into the JLab login node.
0034
0035 ```bash
0036 ssh <username>@osg-eic -Y
0037 # Use your 2-factor Safenet password
0038 ```
0039
0040 If you are having trouble with account access, call JeffersonLab helpdesk at +1(757)2697155.
0041
0042 ### Open Science Grid
0043 ```bash
0044 ssh <username>@ap23.uc.osg-htc.org -Y
0045 # If you already set up your SSH keys on ci-connect, you will only need to enter your 2-factor password
0046 ```
0047
0048 If you are having trouble with account access, email support@osg-htc.org.
0049
0050 ### Brookhaven National Lab
0051 ```bash
0052 ssh <username>@ssh.sdcc.bnl.gov -Y
0053 ```
0054
0055 Once you have access to the sdcc login node, file a ticket with RT-RACF-UserAccounts@bnl.gov to get access to the osgsub01 node and mention that that you will be using it to submit jobs on behalf of the ePIC collaboration. Once approved, you can log onto the access point after logging onto the sdcc login node.
0056
0057 ```bash
0058 ssh <username>@osgsub01 -Y
0059 ```
0060
0061 Report any difficulties to the above-mentioned email for filing tickets.
0062
0063 ---
0064 # Getting Write Access to Jefferson Lab Rucio Storage Endpoint (RSE)
0065 ### Getting a Certificate and Key
0066
0067 1. If you have a jlab account, file a ticket with [Service Now](https://jlab.servicenowservices.com/) asking for a certificate to be able access ePIC Rucio in the context of OSG job submission. If you don't have a jlab account, contact the [production WG](https://eic.github.io/epic-prod/about/contact.html) to file a ticket on your behalf.
0068
0069 2. You will receive an email from support@cert-manager.com with the instruction to download your .cer file.
0070
0071 3. Once you have received this .cer file, transfer this to the access point you will be using. Please request the production WG to provide you with the key corresponding to your .cer file. Your key will be placed in the access point according to your request (BNL, JLAB or OSG).
0072
0073 4. Move certificates and keys to a desired location and change the permissions.
0074 ```bash
0075 chmod 600 usercert.cer
0076 chmod 600 userkey.key
0077 ```
0078
0079 ### Installing voms-client
0080
0081 You will need the `voms-client` on a Linux machine. If you are on your local Linux machine, then do:
0082
0083 ```bash
0084 sudo apt-get install voms-clients-java
0085 ```
0086 All the access points should already have the `voms-client` installed. So, you can skip this step if you are already on one.
0087
0088 ### Running voms-proxy-init
0089
0090 Run the following command to generate a voms proxy certificate with a validity of at least 2 months (1460 hours):
0091
0092 ```bash
0093 voms-proxy-init -cert=usercert.cer -key=userkey.key -out=x509_user_proxy -hours=1460
0094 ```
0095
0096 This will create an proxy certificate in your current directory.
0097
0098 ### Send Information
0099
0100 Run the following command and update your ticket on jlab service now with the output:
0101
0102 ```bash
0103 voms-proxy-info -file=x509_user_proxy | grep "issuer" | awk -F":" '{print $2}'
0104 ```
0105 You only need to do this once.
0106
0107 ---
0108 # Integrating a New Dataset in Production
0109
0110 Run eic-shell and set the rucio variables
0111 ```bash
0112 ./eic-shell
0113 export RUCIO_CONFIG=/opt/campaigns/hepmc3/scripts/rucio.cfg
0114 export X509_USER_PROXY=x509_user_proxy
0115 ```
0116
0117 Then you can transfer the files from the source location to desired directory structure on JLAB RSE following the [input pre-processing guidelines](https://eic.github.io/epic-prod/documentation/input_preprocessing.html). Make sure that the dataset can be traced to a version controlled github repo before this transfer happens because you will need the version tag for the directory structure and nomenclature. An example of the transfer is shown here:
0118 ```
0119 timestamp=$(date '+%Y-%m-%d_%H-%M-%S')
0120 python /opt/campaigns/hepmc3/scripts/register_to_rucio.py \
0121 -f "test.hepmc3.tree.root" \
0122 -d "/EVGEN/Test/test-${timestamp}.hepmc3.tree.root" \
0123 -s epic -r EIC-XRD
0124 ```
0125 Once all your input files are uploaded, create a PR similar to [this](https://eicweb.phy.anl.gov/EIC/campaigns/datasets/-/merge_requests/94/diffs) on the [datasets repository](https://github.com/eic/simulation_campaign_datasets/) with csv file catalogues for the respective datasets and integration line in the config.yml file.