Message boards : Theory Application : Does "openhtc.io" work with Native Theory?
Message board moderation

To post messages, you must log in.

AuthorMessage
Jim1348

Send message
Joined: 15 Nov 14
Posts: 602
Credit: 24,371,321
RAC: 0
Message 38546 - Posted: 7 Apr 2019, 2:01:58 UTC

Does openhtc.io work with Native Theory?
Is the setup the same as for native ATLAS?
ID: 38546 · Report as offensive     Reply Quote
computezrmle
Volunteer moderator
Volunteer developer
Volunteer tester
Help desk expert
Avatar

Send message
Joined: 15 Jun 08
Posts: 2724
Credit: 299,002,782
RAC: 71,016
Message 38547 - Posted: 7 Apr 2019, 6:32:43 UTC - in response to Message 38546.  

]Does openhtc.io work with Native Theory?
Is the setup the same as for native ATLAS?[/quote]
If you are already running ATLAS native you may have configured openhtc.io in the file
/etc/cvmfs/domain.d/cern.ch.local like this:
[pre]CVMFS_SERVER_URL='http://s1cern-cvmfs.openhtc.io/cvmfs/@fqrn@;http://s1ral-cvmfs.openhtc.io/cvmfs/@fqrn@;http://s1bnl-cvmfs.openhtc.io/cvmfs/@fqrn@;http://s1fnal-cvmfs.openhtc.io/cvmfs/@fqrn@'[/pre]


Then just add the repositories needed for Theory native to /etc/cvmfs/default.local
[pre]CVMFS_REPOSITORIES="atlas.cern.ch,atlas-condb.cern.ch,grid.cern.ch,cernvm-prod.cern.ch,sft.cern.ch,alice.cern.ch"[/pre]

Save the changes and run "cvmfs_config reload; cvmfs_config probe".


If you don't have openhtc.io configured it is recommended to do this only in /etc/cvmfs/domain.d/cern.ch.local as mentioned above.
Create that file if necessary.


If you run "cvmfs_config stat" it will show you which server is currently in use.
ID: 38547 · Report as offensive     Reply Quote
Jim1348

Send message
Joined: 15 Nov 14
Posts: 602
Credit: 24,371,321
RAC: 0
Message 38548 - Posted: 7 Apr 2019, 6:45:18 UTC - in response to Message 38547.  

If you don't have openhtc.io configured it is recommended to do this only in /etc/cvmfs/domain.d/cern.ch.local as mentioned above.
Create that file if necessary.

Thanks. That is just what I need to know.
This is a second machine, and I will be running Native Theory only on it, so I had not configured it yet.
ID: 38548 · Report as offensive     Reply Quote
computezrmle
Volunteer moderator
Volunteer developer
Volunteer tester
Help desk expert
Avatar

Send message
Joined: 15 Jun 08
Posts: 2724
Credit: 299,002,782
RAC: 71,016
Message 38549 - Posted: 7 Apr 2019, 7:09:10 UTC - in response to Message 38548.  

]... and I will be running Native Theory only on it ...[/quote]
If you only run Theory on this host you may remove ATLAS from the repository list in /etc/cvmfs/default.local.
The Theory only list looks like this:
[pre]CVMFS_REPOSITORIES="sft.cern.ch,grid.cern.ch,cernvm-prod.cern.ch,alice.cern.ch"[/pre]
ID: 38549 · Report as offensive     Reply Quote
Jim1348

Send message
Joined: 15 Nov 14
Posts: 602
Credit: 24,371,321
RAC: 0
Message 38550 - Posted: 7 Apr 2019, 7:12:07 UTC - in response to Message 38549.  

]The Theory only list looks like this:
[pre]CVMFS_REPOSITORIES="sft.cern.ch,grid.cern.ch,cernvm-prod.cern.ch,alice.cern.ch"[/pre][/quote]
Do I need the quotes? I did not use them on native ATLAS, and it seems to be working fine.
ID: 38550 · Report as offensive     Reply Quote
computezrmle
Volunteer moderator
Volunteer developer
Volunteer tester
Help desk expert
Avatar

Send message
Joined: 15 Jun 08
Posts: 2724
Credit: 299,002,782
RAC: 71,016
Message 38551 - Posted: 7 Apr 2019, 7:37:29 UTC - in response to Message 38550.  

Do I need the quotes?

The CVMFS docs at https://cvmfs.readthedocs.io/en/stable/cpt-configure.html state:
"Special characters have to be quoted. For instance, instead of CVMFS_HTTP_PROXY=p1;p2, write CVMFS_HTTP_PROXY='p1;p2' in order to avoid parsing errors."

In this special case the string doesn't contain "special characters".
Hence it works without quotes, but I prefer to use them as they don't hurt.


Next question may be: single vs. double quotes?
It depends if the string contains variable substitution.
Again from the docs:
"The .conf and .local configuration files are key-value pairs in the form PARAMETER=value. They are sourced by /bin/sh. Hence, a limited set of shell commands can be used inside these files ...".

Example:
vari1="blabla" # also possible: vari1=blabla or vari1='blabla'
complete_string="something extra ${vari1}"
Resolves to: something extra blabla

vari1="blabla" # also possible: vari1=blabla or vari1='blabla'
complete_string='something extra ${vari1}'
Resolves to: something extra ${vari1}
ID: 38551 · Report as offensive     Reply Quote

Message boards : Theory Application : Does "openhtc.io" work with Native Theory?


©2026 CERN