RIA chapter: link not publicly accessible #596

Closed
opened 2020-10-22 09:12:24 +00:00 by mikapfl · 15 comments
mikapfl commented 2020-10-22 09:12:24 +00:00 (Migrated from github.com)

Hi,

In the RIA workflows paragraph, there is a link to a custom procedure, but unfortunately that link:

https://jugit.fz-juelich.de/inm7/infrastructure/inm7-datalad/blob/master/inm7_datalad/resources/procedures/cfg_inm7.py

is not accessible for people without an account at FZ Jülich and special access rights. Maybe you can upload that somewhere else and change the link or make the gitlab project visible for everybody?

Cheers,

Mika

Hi, In the [RIA workflows paragraph](http://handbook.datalad.org/en/latest/usecases/datastorage_for_institutions.html#ria-store-workflows), there is a link to a [custom procedure](https://jugit.fz-juelich.de/inm7/infrastructure/inm7-datalad/blob/master/inm7_datalad/resources/procedures/cfg_inm7.py), but unfortunately that link: https://jugit.fz-juelich.de/inm7/infrastructure/inm7-datalad/blob/master/inm7_datalad/resources/procedures/cfg_inm7.py is not accessible for people without an account at FZ Jülich and special access rights. Maybe you can upload that somewhere else and change the link or make the gitlab project visible for everybody? Cheers, Mika
welcome[bot] commented 2020-10-22 09:12:30 +00:00 (Migrated from github.com)

Welcome Banner (Image: CC-BY license, The Turing Way Community, & Scriberia. Zenodo. http://doi.org/10.5281/zenodo.3332808) Hi there, and welcome to the DataLad Handbook! 📙 👋 Thank you for filing an issue. We're excited to have your input and welcome your idea! 😊 If you haven't done so already, please make sure you check out our Code of Conduct.

![Welcome Banner](https://zenodo.org/api/iiif/v2/0c0188d3-d03c-4830-a6e3-00405f5c22fa:8ff47a85-7250-4d86-8e48-2f346b48b2c1:BannerWelcome.jpg/full/750,/0/default.jpg) (Image: CC-BY license, The Turing Way Community, & Scriberia. Zenodo. http://doi.org/10.5281/zenodo.3332808) Hi there, and welcome to the DataLad Handbook! :orange_book: :wave: Thank you for filing an issue. We're excited to have your input and welcome your idea! :blush: If you haven't done so already, please make sure you check out our [Code of Conduct](https://github.com/datalad-handbook/book/blob/master/CODE_OF_CONDUCT.md).
adswa commented 2020-10-22 09:41:01 +00:00 (Migrated from github.com)

Hi Mika, thanks for letting us know! I actually was under the assumption that any "guest" would be able to view the files - sorry about this. @bpoldrack, @mih - what do you think about the idea to collect the set of resources for RIA stores (IIRC there are also some maintenance scripts somewhere) into a joint, public repo, e.g. in a repo in the handbook organization?

Hi Mika, thanks for letting us know! I actually was under the assumption that any "guest" would be able to view the files - sorry about this. @bpoldrack, @mih - what do you think about the idea to collect the set of resources for RIA stores (IIRC there are also some maintenance scripts somewhere) into a joint, public repo, e.g. in a repo in the handbook organization?
bpinsard commented 2021-01-14 20:19:03 +00:00 (Migrated from github.com)

Hi, I would also be greatly interested in this config file!
I cannot find anywhere in the doc or handbook, how the riastore can use 7z archives, so I guess config files are the answer?Thank you!

Hi, I would also be greatly interested in this config file! I cannot find anywhere in the doc or handbook, how the riastore can use 7z archives, so I guess config files are the answer?Thank you!
MartinGrignard commented 2021-03-05 06:37:47 +00:00 (Migrated from github.com)

Hi! I'm just posting to say that this would be very useful for me too. Have a nice day 😄

Hi! I'm just posting to say that this would be very useful for me too. Have a nice day :smile:
adswa commented 2021-03-05 07:20:36 +00:00 (Migrated from github.com)

Sorry all, I lost this issue from my radar. @bpoldrack, I'm quite confident that most RIA functionality we had in those procedures when I wrote the section has made it into datalad-core. Could you take a look if there are scripts/procedures/... that perform things beyond what the current RIA commands do by default? And could we host anything of relevance somewhere public?
I need to add reworking this section to my todo list.

Sorry all, I lost this issue from my radar. @bpoldrack, I'm quite confident that most RIA functionality we had in those procedures when I wrote the section has made it into datalad-core. Could you take a look if there are scripts/procedures/... that perform things beyond what the current RIA commands do by default? And could we host anything of relevance somewhere public? I need to add reworking this section to my todo list.
bpoldrack commented 2021-03-05 10:15:48 +00:00 (Migrated from github.com)

Could you take a look if there are scripts/procedures/... that perform things beyond what the current RIA commands do by default?

There are and I will have a look shortly.

And could we host anything of relevance somewhere public?

I actually began to build up a repository for that purpose. Aim is to move additional scripts/helper functions and comprehensive documentation there. Including everything that's on JuGit but not really about INM/FZ. It will also come with Apache config snippets and a WSGI script to ease setting up serving a RIA store via HTTP. It still is "under construction", though:
https://github.com/datalad/ria-tools/

> Could you take a look if there are scripts/procedures/... that perform things beyond what the current RIA commands do by default? There are and I will have a look shortly. > And could we host anything of relevance somewhere public? I actually began to build up a repository for that purpose. Aim is to move additional scripts/helper functions and comprehensive documentation there. Including everything that's on JuGit but not really about INM/FZ. It will also come with Apache config snippets and a WSGI script to ease setting up serving a RIA store via HTTP. It still is "under construction", though: https://github.com/datalad/ria-tools/
bpoldrack commented 2021-03-18 14:17:30 +00:00 (Migrated from github.com)

As an intermediate update while working on above mentioned effort to put all pieces in a dedicated repo:

The procedure in question is rather outdated by now and likely not worth looking at. We can and possibly should provide an updated version of it (or something very similar) to showcase the use of procedures for a more complex setup routine, but ATM it's neither used the way it was meant to, nor does it do exactly what it used to in an earlier version (because we changed when and how GitLab projects are set up).
Anyways - I have put the current version in the new repo and put in some additional remarks in the docstring at the top. So, if anyone really wants to get an idea: https://github.com/datalad/ria-tools/blob/master/ria_tools/resources/procedures/cfg_inm7.py

Note, however, that the important aspect for it to exist in the first place is that the config variables annex.ria-remote.inm7-storage.base-path and annex.ria-remote.inm7-storage.ssh-host are set at system-level (git config --system ....). And those configs can be different on different system, so that users using this procedure would be directed to different stores (or different access methods) transparently depending on where exactly they are.

In current datalad version, this kind of configuration would be done using ria+(ssh|file|http(s)):// .... URLs, which could be "rerouted" in the same transparent fashion using git's url.URL-OR-PART-THEREOF.insteadof overrides.

As an intermediate update while working on above mentioned effort to put all pieces in a dedicated repo: The procedure in question is rather outdated by now and likely not worth looking at. We can and possibly should provide an updated version of it (or something very similar) to showcase the use of procedures for a more complex setup routine, but ATM it's neither used the way it was meant to, nor does it do exactly what it used to in an earlier version (because we changed when and how GitLab projects are set up). Anyways - I have put the current version in the new repo and put in some additional remarks in the docstring at the top. So, if anyone really wants to get an idea: https://github.com/datalad/ria-tools/blob/master/ria_tools/resources/procedures/cfg_inm7.py Note, however, that the important aspect for it to exist in the first place is that the config variables `annex.ria-remote.inm7-storage.base-path` and `annex.ria-remote.inm7-storage.ssh-host` are set at system-level (`git config --system ....`). And those configs can be different on different system, so that users using this procedure would be directed to different stores (or different access methods) transparently depending on where exactly they are. In current datalad version, this kind of configuration would be done using `ria+(ssh|file|http(s)):// ....` URLs, which could be "rerouted" in the same transparent fashion using git's `url.URL-OR-PART-THEREOF.insteadof` overrides.
bpoldrack commented 2021-03-18 14:23:12 +00:00 (Migrated from github.com)

However, leave this open, @adswa. I will update here, once the ria-tools repo is ready, since that should then (and only then) result in a handbook update, I think.

However, leave this open, @adswa. I will update here, once the ria-tools repo is ready, since that should then (and only then) result in a handbook update, I think.
bpoldrack commented 2021-03-18 14:29:51 +00:00 (Migrated from github.com)

@bpinsard

I cannot find anywhere in the doc or handbook, how the riastore can use 7z archives, so I guess config files are the answer?Thank you!

7z must be available at the store side, of course. The important part is, that users can't directly push into an archive. Instead it is kind of a maintenance task to pack annex objects into an archive and put it into the store. This could be automated of course. To help with building an archive reflecting a dataset there is the datalad export-archive-ora command:


datalad export-archive-ora(1)                      General Commands Manual                      datalad export-archive-ora(1)

NAME
       datalad export-archive-ora - export an archive of a local annex object store for the ORA remote.

SYNOPSIS
       datalad export-archive-ora [-h] [-d DATASET] TARGET ...

DESCRIPTION
       Keys  in  the local annex object store are reorganized in a temporary directory (using links to avoid storage duplica‐
       tion) to use the the directory-type special remote. This alternative object store is then moved into  a  7zip  archive
       that is suitable for use in a ORA remote dataset store. Placing such an archive into::

       <dataset location>/archives/archive.7z

       Enables the ORA special remote to locate and retrieve all keys contained in the archive.

OPTIONS
       TARGET if  an existing directory, an 'archive.7z' is placed into it, otherwise this is the path to the target archive.
              Constraints: value must be a string

       list of options for 7z to replace the default '-mx0' to generate an uncompressed archive.

       -h, --help, --help-np
              show this help message. --help-np forcefully disables the use of a pager for displaying the help message

       -d DATASET, --dataset DATASET
              specify the dataset to process. If no dataset is given, an attempt is made to identify the dataset based on the
              current  working  directory.  Constraints:  Value  must be a Dataset or a valid identifier of a Dataset (e.g. a
              path)

Edit:
However, RIA stores can have both: annex objects available in a (semi-) normal fashion as files in an annex/objects/.. file tree AND an archive. Either one of them works - mixed or w/o the other.

@bpinsard > I cannot find anywhere in the doc or handbook, how the riastore can use 7z archives, so I guess config files are the answer?Thank you! 7z must be available at the store side, of course. The important part is, that users can't directly push into an archive. Instead it is kind of a maintenance task to pack annex objects into an archive and put it into the store. This could be automated of course. To help with building an archive reflecting a dataset there is the `datalad export-archive-ora` command: ``` datalad export-archive-ora(1) General Commands Manual datalad export-archive-ora(1) NAME datalad export-archive-ora - export an archive of a local annex object store for the ORA remote. SYNOPSIS datalad export-archive-ora [-h] [-d DATASET] TARGET ... DESCRIPTION Keys in the local annex object store are reorganized in a temporary directory (using links to avoid storage duplica‐ tion) to use the the directory-type special remote. This alternative object store is then moved into a 7zip archive that is suitable for use in a ORA remote dataset store. Placing such an archive into:: <dataset location>/archives/archive.7z Enables the ORA special remote to locate and retrieve all keys contained in the archive. OPTIONS TARGET if an existing directory, an 'archive.7z' is placed into it, otherwise this is the path to the target archive. Constraints: value must be a string list of options for 7z to replace the default '-mx0' to generate an uncompressed archive. -h, --help, --help-np show this help message. --help-np forcefully disables the use of a pager for displaying the help message -d DATASET, --dataset DATASET specify the dataset to process. If no dataset is given, an attempt is made to identify the dataset based on the current working directory. Constraints: Value must be a Dataset or a valid identifier of a Dataset (e.g. a path) ``` Edit: However, RIA stores can have both: annex objects available in a (semi-) normal fashion as files in an `annex/objects/..` file tree AND an archive. Either one of them works - mixed or w/o the other.
bpinsard commented 2021-03-18 14:35:45 +00:00 (Migrated from github.com)

@bpoldrack
Thanks!
I got the procedure to index/add-as-remote the archive using git-annex fsck from elsewhere, which was the main missing piece for me to make it work. However, I will carefully read the config file and certainly adapt it to our needs to make stuff easier for our end users.

@bpoldrack Thanks! I got the procedure to index/add-as-remote the archive using `git-annex fsck` from elsewhere, which was the main missing piece for me to make it work. However, I will carefully read the config file and certainly adapt it to our needs to make stuff easier for our end users.
bpoldrack commented 2021-03-18 14:42:06 +00:00 (Migrated from github.com)

However, I will carefully read the config file and certainly adapt it to our needs to make stuff easier for our end users.

Note, that create-sibling-ria wasn't around yet, when this was written. So, an updated version would just use that with a "canonical" ria+URL and possibly set url...insteadOf to replace that URL per system (for example to switch between access via SSH and local operation when you are on the same file system).

> However, I will carefully read the config file and certainly adapt it to our needs to make stuff easier for our end users. Note, that `create-sibling-ria` wasn't around yet, when this was written. So, an updated version would just use that with a "canonical" ria+URL and possibly set `url...insteadOf` to replace that URL per system (for example to switch between access via SSH and local operation when you are on the same file system).
jmschabdach commented 2021-05-03 16:20:41 +00:00 (Migrated from github.com)

Hello,

Not sure if this is a reiteration of the original issue - I was able to log into GitLab via Shibboleth and see the repository, but the infrastructure subproject does not appear to exist (or be accessible).

Target link

Would it be possible to make the code in this file publicly available?

Thanks,
Jenna

Hello, Not sure if this is a reiteration of the original issue - I was able to log into GitLab via Shibboleth and see the repository, but the infrastructure subproject does not appear to exist (or be accessible). [Target link](https://jugit.fz-juelich.de/inm7/infrastructure/inm7-datalad/blob/master/inm7_datalad/resources/procedures/cfg_inm7.py) Would it be possible to make the code in this file publicly available? Thanks, Jenna
adswa commented 2021-05-03 16:26:14 +00:00 (Migrated from github.com)

Sorry Jenna, this part of the chapter is badly outdated. I have been meaning to update it for months already, but never really got around. As @bpoldrack mentioned above:

The procedure in question is rather outdated by now and likely not worth looking at. We can and possibly should provide an updated version of it (or something very similar) to showcase the use of procedures for a more complex setup routine, but ATM it's neither used the way it was meant to, nor does it do exactly what it used to in an earlier version (because we changed when and how GitLab projects are set up).
Anyways - I have put the current version in the new repo and put in some additional remarks in the docstring at the top. So, if anyone really wants to get an idea: https://github.com/datalad/ria-tools/blob/master/ria_tools/resources/procedures/cfg_inm7.py

Note, however, that the important aspect for it to exist in the first place is that the config variables annex.ria-remote.inm7-storage.base-path and annex.ria-remote.inm7-storage.ssh-host are set at system-level (git config --system ....). And those configs can be different on different system, so that users using this procedure would be directed to different stores (or different access methods) transparently depending on where exactly they are.

In current datalad version, this kind of configuration would be done using ria+(ssh|file|http(s)):// .... URLs, which could be "rerouted" in the same transparent fashion using git's url.URL-OR-PART-THEREOF.insteadof overrides.

Sorry Jenna, this part of the chapter is badly outdated. I have been meaning to update it for months already, but never really got around. As @bpoldrack mentioned above: > The procedure in question is rather outdated by now and likely not worth looking at. We can and possibly should provide an updated version of it (or something very similar) to showcase the use of procedures for a more complex setup routine, but ATM it's neither used the way it was meant to, nor does it do exactly what it used to in an earlier version (because we changed when and how GitLab projects are set up). Anyways - I have put the current version in the new repo and put in some additional remarks in the docstring at the top. So, if anyone really wants to get an idea: https://github.com/datalad/ria-tools/blob/master/ria_tools/resources/procedures/cfg_inm7.py > Note, however, that the important aspect for it to exist in the first place is that the config variables annex.ria-remote.inm7-storage.base-path and annex.ria-remote.inm7-storage.ssh-host are set at system-level (git config --system ....). And those configs can be different on different system, so that users using this procedure would be directed to different stores (or different access methods) transparently depending on where exactly they are. > In current datalad version, this kind of configuration would be done using ria+(ssh|file|http(s)):// .... URLs, which could be "rerouted" in the same transparent fashion using git's url.URL-OR-PART-THEREOF.insteadof overrides.
jmschabdach commented 2021-05-04 18:09:39 +00:00 (Migrated from github.com)

Thanks for your quick response @adswa! Even though the procedure is outdated, it was insightful to look at the script to see what the though processes were at the time.

Thanks for your quick response @adswa! Even though the procedure is outdated, it was insightful to look at the script to see what the though processes were at the time.
mih commented 2022-12-20 11:27:33 +00:00 (Migrated from github.com)

I am closing this issue. The TODOs are not to be solved within the scope of the handbook.

I am closing this issue. The TODOs are not to be solved within the scope of the handbook.
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
handbook/book#596
No description provided.