Print

Print


Hi all,


As pointed out at the last GridPP Ops meeting, I tried to install
dirac using the description at
https://www.gridpp.ac.uk/wiki/Quick_Guide_to_Dirac
which lead to some problems (basically only 1 problem, see at the end):

Summary of what was done and happened:
1) I followed the Dirac client installation and it finished at the end
with "DIRAC properly installed".

2) All other commands after that worked and dirac-proxy-init gave a
valid proxy back

3) Trying different dirac commands resulted in python errors, for
example using dirac-dms-filecatalog-cli resulted in:
Traceback (most recent call last):
  File "/home/mebert/test2/DIRAC/DataManagementSystem/scripts/dirac-dms-filecatalog-cli.py",
line 44, in <module>
    from DIRAC.DataManagementSystem.Client.FileCatalogClientCLI import
FileCatalogClientCLI
  File "/home/mebert/test2/DIRAC/DataManagementSystem/Client/FileCatalogClientCLI.py",
line 20, in <module>
    from DIRAC.DataManagementSystem.Client.CmdDirCompletion.DirectoryCompletion
import DirectoryCompletion
  File "/home/mebert/test2/DIRAC/DataManagementSystem/Client/CmdDirCompletion/DirectoryCompletion.py",
line 5, in <module>
    import readline
ImportError: No module named readline

4) 3) could temporary be fixed  by changing in bashrc
export PYTHONPATH=$DIRAC
 to
export "PYTHONPATH=$DIRAC//Linux_x86_64_glibc-2.17/lib/python2.7/lib-dynload/
and by changing that PYTHONPATH was set empty before (not a real
solution, see below; the script is fine as distributed)

5) dirac-dms-get-file works then, but gives the following error:
ERROR {'Successful': {}, 'Failed':
{'/lsst/y1a1-v2-z/software/2016-02-24/im3shape-grid.tar.gz': 'Failed
to get local copy from any replicas\nError getting file from storage:
/lsst/y1a1-v2-z/software/2016-02-24/im3shape-grid.tar.gz from
UKI-NORTHGRID-MAN-HEP-disk, LFN does not follow the DIRAC naming
convention /lsst/y1a1-v2-z/software/2016-02-24/im3shape-grid.tar.gz'}}


Solutions:
The error in 5 happened because during the installation the lcg bundle
was not installed (which is not obvious from the error and took a
while to find).
That on the other hand happened because on the machine I used was SL7
installed, which isn't supported so far. Everything above doesn't
happen on a SL6 machine.

Some suggestions:
In the wiki it reads that an SL6 machine is needed. However, it would
be helpful if it would be made more clear that no other version at all
is working at the moment. Right now, if one is not familiar with the
software one could think that mentioning SL6 could mean nothing lower
than SL6 should be used (like SL5 is not working, but SL7 could work).
In addition, a short explanation what the parameters for
"dirac-install" stand for would be helpful (I know the command help
gives that but shouldn't hurt to explain the parameters used in the
wiki), together with a note where to find newer versions for testing
or stating that the example in the wiki will be updated when there are
better versions are available.

Also, I think it would be good to have the dirac installation script
fixed. If there is an error during the dirac installation, it should
not say at the end "DIRAC properly installed", because it is not.
Maybe also a check for the correct OS could be implemented at the
beginning to start only if it is on a SL6-compatible machine running
and if not giving a note that SL6 is needed to start the install.
It would also be helpful if the errors within dirac would be more
specific to the underlying problem. From the error in 5) one can't
really see that the lcg tools are missing, but could think that
something on the side is maybe wrong (using "-dd" doesn't mention lcg
tools too).

For bashrc: It could help to make the script better readable, to use
the definitions at the beginning in later variable definitions. For
example $DIRACSCRIPTS could be $DIRAC/scripts instead of using the
full path.  But that's more or less unimportant since it works like it
is.


Cheers,
  Marcus

-- 
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.