New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[v6r21][WIP]Add some tutorials #4026
Conversation
8833581
to
1598c23
Compare
Client installation | ||
=================== | ||
|
||
Now we will create another linux account `diracuser` and another installation to be used as client |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe you mention that for simplicity this can be done on the same machine, but can also be done on a different one. It's pretty obvious, of course, but shows that this installation is fully capable.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since it is a tutorial, I'd rather be in favour of NOT giving any choice nor option. Otherwise you risk having people diverging. I can mention it, but I am not sure that it brings anything
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to decide if what you are writing here is either:
- "the tutorial for the workshop", or
- "a general tutorial", that will also be used in the workshop to demonstrate something.
Of course you started with option 1, as this is the use case. My question is "can we make it a general one, so option 2"?
There are in the wiki some links to past tutorials/hands-on: https://github.com/DIRACGrid/DIRAC/wiki/DIRAC-Tutorials. There is also the one of last year's workshop. What we should aim to, in this "official documentation" is for general tutorials that readers can do alone. What you will do in the workshop can follow the lines outlined here, with maybe some deviations for convenience.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What I am aiming at is option 2. And Tutorial at the DUW should just follow that. But to save time, this part would already be done for them
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just went through the wiki.
We duplicate so much the source of information :-)
How about just linkinf readthedocs from the wiki ?
I agree in general. We can keep some specific tutotials in the WiKi though, like a Quick one |
Why ? This will for sure diverge :-( Oh btw, I did not know about this |
Wiki are for "unmonitored", often "temporary" and sometimes "unofficial" docs. I would say that, as a general rule, we should promote the readthedocs tutorial as the "always updated" ones. What's in wiki should refer to it. |
I've added a tuto for installing a DIRAC SE and one for the DFC. |
Codecov Report
@@ Coverage Diff @@
## rel-v6r21 #4026 +/- ##
=============================================
- Coverage 22.05% 22.05% -0.01%
=============================================
Files 906 906
Lines 128904 128904
=============================================
- Hits 28435 28427 -8
- Misses 100469 100477 +8
Continue to review full report at Codecov.
|
|
||
This section has to be ran as `diracuser` | ||
|
||
We will do the installation in the `~/DIRAC` directory. For a client, the configuration is really minimal, so we will just install the code and its dependencies. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the ~/DIRAC
directory is IMHO a bad name. It will then have another DIRAC
directory inside it. Call it differently.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do you propose ? DiracInstallation
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's possible.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK I'll change to that
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just very picky comments: use double ticks instead of single ticks for emphasis, single ticks will be interpreted by sphinx as links to something else (it tries at least), and if one enables picky mode there would be a lot of warnings.
Bullet lists do not need to be indented
Some typos, proposals to change words
The aim of the tutorial is to have a self contained DIRAC setup. You will be guided through the whole installation process both of the server part and the client part. | ||
By the end of the tutorial, you will have: | ||
|
||
* a Configuration service, to server other servers and clients |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* a Configuration service, to server other servers and clients | |
* a Configuration service, to serve other servers and clients |
By the end of the tutorial, you will have: | ||
|
||
* a Configuration service, to server other servers and clients | ||
* a ComponentMonitoring service to keep track of other services and agents installed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* a ComponentMonitoring service to keep track of other services and agents installed | |
* a ComponentMonitoring service to keep track of other services and agents installed |
|
||
* a Configuration service, to server other servers and clients | ||
* a ComponentMonitoring service to keep track of other services and agents installed | ||
* a SystemAdministrator service to manage the DIRAC installation in the future |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* a SystemAdministrator service to manage the DIRAC installation in the future | |
* a SystemAdministrator service to manage the DIRAC installation in the future |
* a Configuration service, to server other servers and clients | ||
* a ComponentMonitoring service to keep track of other services and agents installed | ||
* a SystemAdministrator service to manage the DIRAC installation in the future | ||
* the WebApp, to allow for web interface access |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* the WebApp, to allow for web interface access | |
* the WebApp, to allow for web interface access |
|
||
You should: | ||
|
||
* have a machine setup as described in :ref:`tuto_basic_setup` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* have a machine setup as described in :ref:`tuto_basic_setup` | |
* have a machine setup as described in :ref:`tuto_basic_setup` |
You should: | ||
|
||
* have a machine setup as described in :ref:`tuto_basic_setup` | ||
* be able to install dirac components |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* be able to install dirac components | |
* be able to install dirac components |
|
||
* have a machine setup as described in :ref:`tuto_basic_setup` | ||
* be able to install dirac components | ||
* have installed a DIRAC SE using the tutorial (:ref:`tuto_install_dirac_se`). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* have installed a DIRAC SE using the tutorial (:ref:`tuto_install_dirac_se`). | |
* have installed a DIRAC SE using the tutorial (:ref:`tuto_install_dirac_se`). |
|
||
echo "dummyFile" > /tmp/dummy.txt | ||
|
||
Now create a file called `/tmp/testSE.py`, with the following content:: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now create a file called `/tmp/testSE.py`, with the following content:: | |
Now create a file called ``/tmp/testSE.py``, with the following content:: |
|
||
|
||
|
||
This file uploads `/tmp/dummy.txt` on the StorageElement, list the directory and removes it. The output should be something like that:: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file uploads `/tmp/dummy.txt` on the StorageElement, list the directory and removes it. The output should be something like that:: | |
This file uploads ``/tmp/dummy.txt`` on the StorageElement, list the directory and removes it. The output should be something like that:: |
Thanks a lot. |
d63f4e5
to
828f6a8
Compare
It doesn't create a warning, but it affects the way the result is rendered, the more indentation in the rst the more indentation in the html, so things are not looking consistent |
Fine, then I'll remove the indenation |
828f6a8
to
2b8df33
Compare
I'll close that one and re-open one cleaner |
This PR will contain the necessary things for the DMS + TS tutorial.
@andresailer @fstagni @atsareg please take a peek
The first tutorial is the setup of an installation for basic server + client, with WebApp and local CA. It is very largely inspired by the existing guides, except that no choice is given to the user (as a tutorial should be).
You can see it here: https://chaen-dirac.readthedocs.io/en/rel-v6r21_tuto_tsdms/AdministratorGuide/Tutorials/basicTutoSetup.html
This installation should be the base for all future tutorials
More will come, do not merge yet please
BEGINRELEASENOTES
*Core
NEW: install_site supports DIRACOS
*Docs
NEW: basic server and client tutorial
NEW: DIRAC SE tutorial
NEW: DFC tutorial
ENDRELEASENOTES