add documentation on s3-transfer cli option, and published dataset retrieve
This commit is contained in:
1 parent
f9c471ec6a
commit
ce68113531
1 file changed
+75
-10
@@ -344,20 +344,42 @@ You must have a valid kerberos ticket in order to be able to copy the
|
||||
data to the intermediate storage server. You can use the kinit command
|
||||
to get this ticket.
|
||||
|
||||
#### Outside the PSI network (S3 transfer)
|
||||
|
||||
!!! warning
|
||||
The S3 transfer is not yet available in production. Until it is part of
|
||||
a stable release, use the pre-release
|
||||
[scicat-cli v3.5.1-alpha1](https://github.com/paulscherrerinstitute/scicat-cli/releases/tag/v3.5.1-alpha1).
|
||||
|
||||
The default copy step transfers the data via ssh/rsync to an intermediate
|
||||
server inside the PSI network. If your machine cannot reach the PSI
|
||||
network and has no VPN access (e.g. Renku sessions or cloud VMs), use the
|
||||
S3 transfer instead. It uploads the data via HTTPS:
|
||||
|
||||
```sh
|
||||
scicat-cli datasetIngestor --token SCICAT-TOKEN --copy --transfer-type s3 --ingest metadata.json [filelisting.txt]
|
||||
```
|
||||
|
||||
Only the SciCat token is needed, with no Kerberos ticket or
|
||||
username/password. The tool gets temporary upload credentials
|
||||
automatically. Symbolic links are not uploaded, so only `--linkfiles delete`
|
||||
is supported with this transfer type.
|
||||
|
||||
### Summary of the different use cases
|
||||
|
||||
The following table summarizes the different use cases
|
||||
|
||||
| OS | sourceLocation | Account-Type | Neededed parameters | Comment |
|
||||
|---------|--------------------|--------------|---------------------|------------------------------------------------|
|
||||
| Linux | central | User | token | Fetch token via Web GUI discovery.psi.ch |
|
||||
| Linux | central | Functional | username/pw | The tool fetches token from API server |
|
||||
| Linux | anywhere/decentral | User | token + Kerb ticket | Token for API, Kerb ticket for copying data |
|
||||
| Linux | anywhere/decentral | Functional | not supported | Functional accounts not existing on ssh server |
|
||||
| Windows | central | User | (token) | Needs mounting of Windows FS to Arema |
|
||||
| Windows | central | Functional | (username/pw) | dito |
|
||||
| Windows | anywhere/decentral | User | token + username/pw | Token for API, username/pw for copying data |
|
||||
| Windows | anywhere/decentral | Functional | not supported | Functional accounts not existing on ssh server |
|
||||
| OS | sourceLocation | Account-Type | Neededed parameters | Comment |
|
||||
|---------|---------------------|--------------|-------------------------------------|---------------------------------------------------------|
|
||||
| Linux | central | User | token | Fetch token via Web GUI discovery.psi.ch |
|
||||
| Linux | central | Functional | username/pw | The tool fetches token from API server |
|
||||
| Linux | anywhere/decentral | User | token + Kerb ticket | Token for API, Kerb ticket for copying data |
|
||||
| Linux | anywhere/decentral | Functional | not supported | Functional accounts not existing on ssh server |
|
||||
| Windows | central | User | (token) | Needs mounting of Windows FS to Arema |
|
||||
| Windows | central | Functional | (username/pw) | dito |
|
||||
| Windows | anywhere/decentral | User | token + username/pw | Token for API, username/pw for copying data |
|
||||
| Windows | anywhere/decentral | Functional | not supported | Functional accounts not existing on ssh server |
|
||||
| Any | outside PSI network | User | token + `--copy --transfer-type s3` | Data uploaded via HTTPS (S3), no VPN or Kerberos needed |
|
||||
|
||||
## Archive
|
||||
|
||||
@@ -672,6 +694,45 @@ whenever necessary. In future in addition an automated publication
|
||||
after the embargo period (default 3 years after data taking) will be
|
||||
implemented (details to be defined)
|
||||
|
||||
### Retrieving published data
|
||||
|
||||
Anyone, including users without a PSI account, can request the
|
||||
data of a published dataset from its landing page on <https://doi.psi.ch>.
|
||||
The data is then retrieved from tape and stored as tar files in a public
|
||||
S3 bucket for **7 days**. You will receive an email with the download link.
|
||||
|
||||
PSI users with access to the data can also use the regular
|
||||
[Retrieve](#retrieve) procedure.
|
||||
|
||||
Instead of downloading through the browser, you can access the bucket
|
||||
anonymously with any S3-compatible tool. This is useful for large
|
||||
datasets, because transfers can be resumed and run in parallel:
|
||||
|
||||
- Endpoint: `https://rgw.cscs.ch`
|
||||
- Bucket: `psi:psi-public-tar` (the `psi:` prefix is required)
|
||||
- Layout: `<datasetPid>/<files>.tar`, e.g. `20.500.11935/<uuid>/`
|
||||
|
||||
Example with [RClone](https://rclone.org). Add an anonymous remote to
|
||||
your `rclone.conf` (`rclone config file` shows its location):
|
||||
|
||||
```ini
|
||||
[psi-public]
|
||||
type = s3
|
||||
provider = Ceph
|
||||
endpoint = https://rgw.cscs.ch
|
||||
```
|
||||
|
||||
Then list, copy or mount the retrieved data:
|
||||
|
||||
```sh
|
||||
# list the files of a dataset
|
||||
rclone ls psi-public:psi:psi-public-tar/<datasetPid>/
|
||||
# copy them to a local folder
|
||||
rclone copy -P psi-public:psi:psi-public-tar/<datasetPid>/ ./my-dataset/
|
||||
# or mount the bucket read-only (shows the tar files, not their contents)
|
||||
rclone mount --read-only psi-public:psi:psi-public-tar /mnt/psi-public
|
||||
```
|
||||
|
||||
## Cleanup and Retention
|
||||
|
||||
This part is not yet defined.
|
||||
@@ -1319,6 +1380,10 @@ the latter case it will, after a confirmation by the user, copy the
|
||||
data automatically to the rsync cache server, even if the copy flag is
|
||||
not provided.
|
||||
|
||||
If your machine has no access to the PSI network (e.g. Renku sessions),
|
||||
use the S3 transfer described in
|
||||
[Outside the PSI network (S3 transfer)](#outside-the-psi-network-s3-transfer).
|
||||
|
||||
#### Use Case: Ingest datasets from simulations/model calculations
|
||||
|
||||
These can be treated like datasets of type "base" or "raw". In the
|
||||
|
||||
Reference in new issue
Block a user