Skip to content

Commit 3d92153

Browse files
authored
Merge pull request #5663 from fstagni/80_docs
[8.0] docs: removed a bunch of py2 related documentation
2 parents fb223df + 89d30cb commit 3d92153

File tree

24 files changed

+31
-680
lines changed

24 files changed

+31
-680
lines changed

dirac.cfg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,7 @@ Systems
535535
{
536536
Port = 9190
537537
# This enables ES monitoring only for this particular service.
538-
EnableActivityMonitoring = yes
538+
EnableActivityMonitoring = no
539539
Authorization
540540
{
541541
Default = ServiceAdministrator
@@ -763,7 +763,7 @@ Operations
763763
Defaults
764764
{
765765
# This will globally enable ES based monitoring for Service and AgentModule.
766-
EnableActivityMonitoring = yes
766+
EnableActivityMonitoring = no
767767
DataManagement
768768
{
769769
# see http://dirac.readthedocs.io/en/latest/AdministratorGuide/Resources/Catalog/index.html#multi-protocol

docs/source/AdministratorGuide/ServerInstallations/InstallingDiracServer.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@ be taken based on the Python version you wish to install.
480480

481481
or You can download the full server installation from::
482482

483-
curl https://raw.githubusercontent.com/DIRACGrid/DIRAC/integration/src/DIRAC/Core/scripts/install_full_py2.cfg -o install.cfg
483+
curl https://raw.githubusercontent.com/DIRACGrid/DIRAC/integration/src/DIRAC/Core/scripts/install_full_py3.cfg -o install.cfg
484484

485485
- Run install_site.sh giving the edited configuration file as the argument. The configuration file must have
486486
.cfg extension (CFG file). While not strictly necessary, it's advised that a version is added with the '-v' switch

docs/source/AdministratorGuide/Systems/MonitoringSystem/index.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,10 +123,12 @@ Note: the JSON file already contains the index patterns needed for the visualiza
123123
Enable Component monitoring
124124
===========================
125125

126-
You have to set ``EnableActivityMonitoring=True`` in the CS.
127-
It can be done globally, the ``Operations`` section, or per single component.
126+
.. warning::
128127

128+
not yet fully working/ready
129129

130+
You have to set ``EnableActivityMonitoring=True`` in the CS.
131+
It can be done globally, the ``Operations`` section, or per single component.
130132

131133
Enable RMS Monitoring
132134
=====================

docs/source/AdministratorGuide/Tutorials/basicTutoSetup.rst

Lines changed: 1 addition & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,7 @@ Basic requirements
3131

3232
This section is to be executed as ``root`` user.
3333

34-
We assume that you have at your disposition a fresh CC7 64bit installation. If you don't, we recommend installing a virtual machine. Instructions for installing CC7 can be found `here <http://linux.web.cern.ch/linux/centos7/docs/install.shtml>`_
35-
36-
In this tutorial, we will use a freshly installed CC7 x86_64 virtual machine, with all the default options, except the hostname being ``dirac-tuto``.
37-
38-
Make sure that the hostname of the machine is set to ``dirac-tuto``. Modify the ``HOSTNAME`` variable in the ``/etc/sysconfig/network`` file as such::
34+
In this tutorial, we will use a freshly installed CC7 x86_64 virtual machine, with all the default options, except the hostname being ``dirac-tuto``. Make sure that the hostname of the machine is set to ``dirac-tuto``. Modify the ``HOSTNAME`` variable in the ``/etc/sysconfig/network`` file as such::
3935

4036
HOSTNAME=dirac-tuto
4137

@@ -192,8 +188,6 @@ This section is to be run as ``dirac`` user in its home folder::
192188
sudo su dirac
193189
cd ~
194190

195-
We will install DIRAC v6r21 with DIRACOS.
196-
197191
First we create the ``install.cfg`` file, which is used to tell the installation script we obtain in a moment what to
198192
install and how to configure the server with the following content:
199193

@@ -214,13 +208,6 @@ the user's home folder):
214208

215209
The output should look something like this::
216210

217-
--2019-04-11 08:51:21-- https://raw.githubusercontent.com/DIRACGrid/management/master/dirac-install.py
218-
Resolving github.com... 140.82.118.4, 140.82.118.3
219-
Connecting to github.com|140.82.118.4|:443... connected.
220-
HTTP request sent, awaiting response... 302 Found
221-
222-
[...]
223-
224211
Status of installed components:
225212

226213
Name Runit Uptime PID
@@ -479,30 +466,6 @@ the same version as for the server:
479466
:start-after: # START installClient1
480467
:end-before: # END installClient1
481468

482-
The output from the ``dirac-install.py`` command should look something like this::
483-
484-
<SomeDate> dirac-install [NOTICE] Processing installation requirements
485-
<SomeDate> dirac-install [NOTICE] Destination path for installation is /home/diracuser/DIRAC
486-
<SomeDate> dirac-install [NOTICE] Discovering modules to install
487-
<SomeDate> dirac-install [NOTICE] Installing modules...
488-
<SomeDate> dirac-install [NOTICE] Installing DIRAC:v6r21
489-
<SomeDate> dirac-install [NOTICE] Retrieving http://diracproject.web.cern.ch/diracproject/tars/DIRAC-v6r21.tar.gz
490-
<SomeDate> dirac-install [NOTICE] Retrieving http://diracproject.web.cern.ch/diracproject/tars/DIRAC-v6r21.md5
491-
<SomeDate> dirac-install [NOTICE] Deploying scripts...
492-
Scripts will be deployed at /home/diracuser/DIRAC/scripts
493-
Inspecting DIRAC module
494-
<SomeDate> dirac-install [NOTICE] Installing DIRAC OS ...
495-
<SomeDate> dirac-install [NOTICE] Retrieving https://diracos.web.cern.ch/diracos/releases/diracos-1.0.0.tar.gz ...........................................................................................................................
496-
<SomeDate> dirac-install [NOTICE] Retrieving https://diracos.web.cern.ch/diracos/releases/diracos-1.0.0.md5
497-
<SomeDate> dirac-install [NOTICE] Fixing externals paths...
498-
<SomeDate> dirac-install [NOTICE] Running externals post install...
499-
<SomeDate> dirac-install [NOTICE] Creating /home/diracuser/DIRAC/bashrc
500-
<SomeDate> dirac-install [NOTICE] Defaults written to defaults-DIRAC.cfg
501-
<SomeDate> dirac-install [NOTICE] Executing /home/diracuser/DIRAC/scripts/dirac-externals-requirements...
502-
<SomeDate> dirac-install [NOTICE] DIRAC properly installed
503-
504-
You will notice that among other things, the installation created a ``~/DiracInstallation/bashrc`` file. This file must be sourced whenever you want to use dirac client.
505-
506469
In principle, your system administrator will have managed the CA for you. In this specific case, since we have our own CA, we will just link the client installation CA with the server one:
507470

508471
.. literalinclude:: basicTutoSetup.sh

docs/source/AdministratorGuide/Tutorials/basicTutoSetup.sh

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -224,10 +224,12 @@ chown -R diracuser:diracuser ~diracuser/.globus/
224224

225225
cat > InstallDiracClient <<EOF
226226
# START installClient1
227-
mkdir -p ~/DiracInstallation && cd ~/DiracInstallation
228-
curl -O -L https://raw.githubusercontent.com/DIRACGrid/management/master/dirac-install.py
229-
chmod +x dirac-install.py
230-
./dirac-install.py -r v7r0p36 --dirac-os
227+
curl -LO https://github.com/DIRACGrid/DIRACOS2/releases/latest/download/DIRACOS-Linux-$(uname -m).sh
228+
bash DIRACOS-Linux-$(uname -m).sh
229+
rm -Rf DIRACOS-Linux-$(uname -m).sh
230+
source diracos/diracosrc
231+
cd ..
232+
pip install DIRAC
231233
# END installClient1
232234
# START installClient2
233235
mkdir -p ~/DiracInstallation/etc/grid-security/

docs/source/DeveloperGuide/AddingNewComponents/YourFirstDIRACCode/index.rst

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,7 @@ We will put the unit test in DIRAC.Core.Utilities.test. The unit test has been f
7373
testResult = unittest.TextTestRunner(verbosity=2).run(suite)
7474
7575
76-
Now, try to run it. In case you are using Eclipse, it's time to try to run this test within Eclipse itself (run as: Python unit-test): it shows a graphical interface that you can find convenient. If you won't manage to run, it's probably because there is a missing configuration of the PYTHONPATH within Eclipse.
77-
78-
Then, code ``checkCAOfUser`` and run the test again.
76+
Now, try to run it. Then, code ``checkCAOfUser`` and run the test again.
7977

8078

8179
Exercise 2

docs/source/DeveloperGuide/CodeTesting/index.rst

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -296,8 +296,7 @@ To run all tests in one command, which takes around 20 minutes, create a develop
296296
297297
./integration_tests.py create [FLAGS]
298298
299-
Where ``[FLAGS]`` is one or more feature flags ``SERVER_USE_PYTHON3=Yes``.
300-
See ``.github/workflows/integration.yml`` for the available feature flags for your release.
299+
Where ``[FLAGS]`` is one or more feature flags. See ``.github/workflows/integration.yml`` for the available feature flags for your release.
301300

302301
Once finished the containers can be removed using ``./integration_tests.py destroy``.
303302

@@ -317,22 +316,15 @@ The first thing to do is that you should first login in the docker container, by
317316
318317
./integration_tests.py exec-server
319318
320-
Now, if you're using Python 2 you will need to copy the test code:
321-
322-
.. code-block:: bash
323-
324-
cp -r TestCode/DIRAC/tests/ ServerInstallDIR/DIRAC/
325-
326-
while if you are using Python 3 server, the installations automatically pick up external changes to the DIRAC code and tests)
319+
The installations automatically pick up external changes to the DIRAC code and tests)
327320

328321
Now you can run the test with:
329322

330323
.. code-block:: bash
331324
332-
pytest ServerInstallDIR/DIRAC/tests/Integration/WorkloadManagementSystem/Test_JobDB.py (py2)
333-
pytest LocalRepo/ALTERNATIVE_MODULES/DIRAC/tests/Integration/WorkloadManagementSystem/Test_JobDB.py (py3)
325+
pytest LocalRepo/ALTERNATIVE_MODULES/DIRAC/tests/Integration/WorkloadManagementSystem/Test_JobDB.py
334326
335-
For py3 installations, You can find the logs of the services in `/home/dirac/ServerInstallDIR/diracos/runit/`
327+
You can find the logs of the services in `/home/dirac/ServerInstallDIR/diracos/runit/`
336328

337329

338330
Validation and System tests

docs/source/DeveloperGuide/DevelopmentEnvironment/DeveloperInstallation/stuffThatRun.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ Now you can run the test with:
4747

4848
.. code-block:: bash
4949
50-
pytest LocalRepo/ALTERNATIVE_MODULES/DIRAC/tests/Integration/WorkloadManagementSystem/Test_JobDB.py (py3)
50+
pytest LocalRepo/ALTERNATIVE_MODULES/DIRAC/tests/Integration/WorkloadManagementSystem/Test_JobDB.py
5151
52-
For py3 installations, You can find the logs of the services in `/home/dirac/ServerInstallDIR/diracos/runit/`
52+
You can find the logs of the services in `/home/dirac/ServerInstallDIR/diracos/runit/`
5353

5454

5555
The Configuration Server (the CS)

docs/source/DeveloperGuide/DevelopmentModel/index.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ The DIRACGrid project includes several repositories, all hosted in `Github <http
1313
- `DIRAC <https://github.com/DIRACGrid/DIRAC>`_ is the main repository: contains the client and server code
1414
- `WebAppDIRAC <https://github.com/DIRACGrid/WebAppDIRAC>`_ is the repository for the web portal
1515
- `Pilot <https://github.com/DIRACGrid/Pilot>`_ is *not* a DIRAC extension, but a new version of the DIRAC pilots (dubbed Pilots 3.0)
16-
- `DIRACOS <https://github.com/DIRACGrid/DIRACOS>`_ is the repository for the DIRAC dependencies
17-
- `DIRACOS2 <https://github.com/DIRACGrid/DIRACOS2>`_ is the python3 repository for the DIRAC dependencies
16+
- `DIRACOS <https://github.com/DIRACGrid/DIRACOS>`_ is the repository for the old (py2) DIRAC dependencies
17+
- `DIRACOS2 <https://github.com/DIRACGrid/DIRACOS2>`_ is the repository for the DIRAC dependencies (py3)
1818
- `COMDIRAC <https://github.com/DIRACGrid/COMDIRAC>`_ is a DIRAC extension of its CLI
1919
- `DB12 <https://github.com/DIRACGrid/DB12>`_ is *not* a DIRAC extension, but a self-contained quick benchmark
2020
- `management <https://github.com/DIRACGrid/management>`_ is *not* a DIRAC extension, but a repository for creating docker images used for tests and for creating releases

docs/source/DeveloperGuide/Externals/index.rst

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,5 @@
44
External Libraries and Dependencies
55
===================================
66

7-
87
The external libraries and dependencies required to run DIRAC Agents, Services, and Clients are
9-
contained in the `DIRACOS <https://github.com/DIRACGrid/DIRACOS/>`_. package for Python 2.7 installations,
10-
and in the `DIRACOS2 <https://github.com/DIRACGrid/DIRACOS2/>`_ package for Python 3 installations.
11-
12-
The default version of ``DIRACOS`` to be used with a given version of DIRAC is defined in the
13-
``DIRAC/releases.cfg`` file. It can be overwritten with the ``--dirac-os-version`` flag for
14-
the `dirac-install` command. The documentation for creating a DIRACOS release or an extension
15-
of DIRACOS can be found `in its own documentation <https://diracos.readthedocs.io>`_.
8+
contained in the `DIRACOS2 <https://github.com/DIRACGrid/DIRACOS2/>`_ package for Python 3 installations.

0 commit comments

Comments
 (0)