Skip to content

Commit 26d6e1e

Browse files
committed
fix to al9 tokens doc
1 parent d700a45 commit 26d6e1e

12 files changed

Lines changed: 88 additions & 50 deletions

_extras/Tokens.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
title: Tokens
33
---
44

5+
{% include Tokens.toc.md %}
6+
57
## SL7 Tokens <a name="SL7_token"></a>
68

79
{% include sl7_token.md %}

_includes/03-data-management.toc.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,10 @@
3232
- [Getting file locations using Rucio](#getting-file-locations-using-rucio)
3333
- [What is Rucio?](#what-is-rucio)
3434
- [You will need to authenticate to read files](#you-will-need-to-authenticate-to-read-files)
35-
- [Accessing `rucio` and `justin` require a bit more](#accessing-`rucio`-and-`justin`-require-a-bit-more)
36-
- [getting a token for xroot access in AL9](#getting-a-token-for-xroot-access-in-al9)
35+
- [Interactive file access](#interactive-file-access)
36+
- [Accessing rucio and justIn resources requires a bit more](#accessing-rucio-and-justin-resources-requires-a-bit-more)
37+
- [Interactive file access](#interactive-file-access)
38+
- [Accessing rucio and justIn resources requires a bit more](#accessing-rucio-and-justin-resources-requires-a-bit-more)
3739
- [finding a file](#finding-a-file)
3840
- [More finding files by characteristics using metacat](#more-finding-files-by-characteristics-using-metacat)
3941
- [Accessing data for use in your analysis](#accessing-data-for-use-in-your-analysis)

_includes/Tokens.toc.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
**Table of Contents for Tokens**
44
- [SL7 Tokens <a name="SL7_token"></a>](#SL7_token)
5-
- [Accessing `rucio` and `justin` require a bit more](#accessing-`rucio`-and-`justin`-require-a-bit-more)
5+
- [Interactive file access](#interactive-file-access)
6+
- [Accessing rucio and justIn resources requires a bit more](#accessing-rucio-and-justin-resources-requires-a-bit-more)
67
- [AL9 Tokens <a name="AL9_token"></a>](#AL9_token)
7-
- [getting a token for xroot access in AL9](#getting-a-token-for-xroot-access-in-al9)
8+
- [Interactive file access](#interactive-file-access)
9+
- [Accessing rucio and justIn resources requires a bit more](#accessing-rucio-and-justin-resources-requires-a-bit-more)

_includes/al9_setup.toc.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@
55
- [a tip](#a-tip)
66
- [Set up software](#set-up-software)
77
- [Get a token](#get-a-token)
8-
- [getting a token for xroot access in AL9](#getting-a-token-for-xroot-access-in-al9)
8+
- [Interactive file access](#interactive-file-access)
9+
- [Accessing rucio and justIn resources requires a bit more](#accessing-rucio-and-justin-resources-requires-a-bit-more)

_includes/al9_setup_2025a.md

Lines changed: 25 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2,31 +2,34 @@
22
# find a spack environment and set it up
33
# setup spack (pre spack 1.0 version)
44
5-
source /cvmfs/larsoft.opensciencegrid.org/spack-v0.22.0-fermi/setup-env.sh
6-
7-
# get the packages you need to run this - this will become simple in future
8-
echo "ROOT"
9-
spack load root@6.28.12%gcc@12.2.0 arch=linux-almalinux9-x86_64_v3
10-
11-
echo "CMAKE"
12-
spack load cmake@3.27.9%gcc@11.4.1 arch=linux-almalinux9-x86_64_v3
13-
5+
source /cvmfs/dune.opensciencegrid.org/spack/setup-env.sh
6+
echo "Activate dune-workflow"
7+
spack env activate dune-workflow
8+
echo "load GCC and CMAKE so don't use system"
149
echo "GCC"
15-
spack load gcc@12.2.0
16-
17-
echo "Rucio and metacat"
18-
spack load r-m-dd-config experiment=dune lab=fnal.gov
19-
export RUCIO_ACCOUNT=justinreadonly
20-
21-
echo "IFDHC"
22-
spack load ifdhc@2.8.0%gcc@12.2.0 arch=linux-almalinux9-x86_64_v3
23-
spack load ifdhc-config@2.6.20%gcc@11.4.1 arch=linux-almalinux9-x86_64_v3
24-
10+
spack load gcc@12.5.0 arch=linux-almalinux9-x86_64_v2
2511
2612
echo "PY-PIP"
2713
spack load py-pip@23.1.2%gcc@11.4.1 arch=linux-almalinux9-x86_64_v3
2814
29-
echo "no justIN yet"
30-
#spack load justin
3115
~~~
32-
{: .language-bash}
16+
{: .language-bash}
17+
18+
You can check your environment by doing this
19+
20+
~~~
21+
# test-paths.sh
22+
echo "which root"
23+
which root
24+
root --version
25+
echo "which gcc"
26+
which gcc
27+
gcc --version
28+
echo "which python"
29+
which python
30+
python --version
31+
echo "which cmake"
32+
which cmake
33+
cmake --version
34+
~~~
35+
{: .language-bash}

_includes/al9_speedrun.toc.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@
22

33
**Table of Contents for al9_speedrun**
44
- [2025 Speedrun of AL9 setup and test](#2025-speedrun-of-al9-setup-and-test)
5-
- [getting a token for xroot access in AL9](#getting-a-token-for-xroot-access-in-al9)
5+
- [Interactive file access](#interactive-file-access)
6+
- [Accessing rucio and justIn resources requires a bit more](#accessing-rucio-and-justin-resources-requires-a-bit-more)

_includes/al9_token.md

Lines changed: 41 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,8 @@
1+
### Interactive file access
12

2-
> ## Note: The justin get-token method for authentication does not currently work on AL9
3-
> The justin get-token command is not distributed on AL9/Spack currently.
4-
> Please use [SL7]({{ site.baseurl }}/sl7_setup) if you need to use rucio.
5-
>
6-
> normal tokens (below) for `xroot` access do work
7-
>
8-
{: .caution}
9-
10-
### getting a token for xroot access in AL9
113
Make certain you have [al9 set up]({{ site.baseurl }}/al9_setup)
124

13-
<!-- Get rucio:
14-
15-
~~~
16-
spack load r-m-dd-config experiment=dune lab=fnal.gov # r stands for rucio
17-
export RUCIO_ACCOUNT=justinreadonly
18-
~~~
19-
{: .language-bash}
20-
-->
21-
22-
Then use htgettoken to get a token so you can read the files you find.
5+
Then use `htgettoken` to get a token so you can read the files you find.
236

247
~~~
258
htgettoken -i dune --vaultserver htvaultprod.fnal.gov -r interactive
@@ -49,3 +32,42 @@ YgZTGDqHQg6NOO77NsCY5J88uyIkkoZ1tRb6iTXK0j5RsX0AjA
4932
You should be able to read files at remote sites now.
5033
You may need to repeat the `htgettoken` as the interactive tokens are pretty short-lived. Batch jobs do their own tokens.
5134

35+
### Accessing rucio and justIn resources requires a bit more
36+
37+
You should already be set up above. Now you can use `justIn` to get you a token.
38+
39+
1. First tell `justIn` knows about you
40+
41+
~~~
42+
justin time
43+
~~~
44+
{: ..language-bash}
45+
46+
The first time you do this you will get asked (after the `justin time` command)
47+
48+
~~~
49+
To authorize this computer to run the justin command, visit this page with your
50+
usual web browser and follow the instructions within the next 10 minutes:
51+
https://dunejustin.fnal.gov/authorize/XXXXX
52+
53+
Check that the Session ID displayed on that page is BfhVBmQ
54+
55+
Once you've followed the instructions on that web page, please run the command
56+
you tried again. You won't need to authorize this computer again for 7 days.
57+
~~~
58+
{: ..output}
59+
60+
Once again go to the website that appears and authenticate.
61+
62+
2. After the first authentication to justIn you need to do a second justin call
63+
64+
~~~
65+
justin get-token
66+
~~~
67+
{: ..language-bash}
68+
69+
You will need to do this sequence weekly as your justin access expires.
70+
71+
> ## Note:
72+
> Despite the name of this command it gets you both a token and a special X.509 proxy and it is the latter you are actually using to talk to rucio in these SL7 examples
73+
{: .callout}

_includes/all_toc.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ al9_speedrun.toc.md %}{% include
2222
figures.toc.md %}{% include
2323
guide.toc.md %}{% include
2424
helpers.toc.md %}{% include
25+
howToBuild.toc.md %}{% include
2526
pnfs2xrootd.toc.md %}{% include
2627
putty.toc.md %}{% include
2728
setup.toc.md %}{% include

_includes/sl7_setup.toc.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@
44
- [launch the Apptainer](#launch-the-apptainer)
55
- [then do the following to set up DUNE code](#then-do-the-following-to-set-up-dune-code)
66
- [then do the following to get authentication to remote data and batch systems](#then-do-the-following-to-get-authentication-to-remote-data-and-batch-systems)
7-
- [Accessing `rucio` and `justin` require a bit more](#accessing-`rucio`-and-`justin`-require-a-bit-more)
7+
- [Interactive file access](#interactive-file-access)
8+
- [Accessing rucio and justIn resources requires a bit more](#accessing-rucio-and-justin-resources-requires-a-bit-more)

_includes/sl7_speedrun.toc.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11

22

33
**Table of Contents for sl7_speedrun**
4-
- [Accessing `rucio` and `justin` require a bit more](#accessing-`rucio`-and-`justin`-require-a-bit-more)
4+
- [Interactive file access](#interactive-file-access)
5+
- [Accessing rucio and justIn resources requires a bit more](#accessing-rucio-and-justin-resources-requires-a-bit-more)
56
- [check root](#check-root)
67
- [check rucio](#check-rucio)

0 commit comments

Comments
 (0)