Virgo Logbook
UTC--:--:--
GPS-
Reports
Online Computing›Software Management #55496

Migration of VPM python applications to latest cmt-conda environment and users to latest IGWN environment

Python ITF control applications running from VPM in Cascina need to:

  • have available libraries that for any reason may not make sense to install at IGWN level into the igwn standard environments
  • point explicitly to the instance of a conda environment from were they get their libraries so that an update of the environment do not impact them (as it happen on C/C++ libraries with the rpath mechanism)

Such needs have been satisfied by:

  • the introduction of Cascina specific conda envisonments (so called cmt-conda envs) cloned from igwn standard ones and adding on top any further needed library. Those environment are made accessible at site level into the /virgo/conda/envs shared NFS HA area
  • The introduction of the Conda CMT package https://git.ligo.org/virgo/virgoapp/Conda from were pointing to a specific environment is managed via the standard "use" CMT mechanism

On today shift we have put in operation those mechanisms by running version of the pyton applications aligned on top of Conda v2r1p0 pointing to /virgo/conda/envs/cmt-conda-py39-20220317/

The cmt-conda-py39-20220317 contains the following additional/updated packages respect to the standard igwn-py39-20220317 environment:

  1. PyCm  - v7r5p6 - Required to fix pointer error described here: https://git.ligo.org/virgo/virgoapp/PyCm/-/issues/1
  2. websockets - 10.2   - Required by PyDdsServer
  3. pytango - 9.3.3 - Required by TangoDAQSmsBridge
  4. pyusb - 1.2.1 - Required by PyAgilis
  5. pymodbus  - 2.5.3 - Required by PySb

The testing sequence has been as follow:

  1. Put ITF to DOWN

  2. Stop all running phyton3 based applications from VPM:

    • All Python based slow control processes (See list of corresponding python pakages with their updated version below)
    • All Tango -> DAQ bridges (TangoDAQSmsBridge package)
  3. Verify that PyCm/ PyFd/ PythonVirgoTools is correctly setup by:

    1. Running the test suite that comes with the packages

    2. Attempt to read data from an ffl

    3. Connect online to a process and extract its data

  4. Stop/restart one automation node (ITF_LOCK) and to check no impact on python2 based applications

  5. Restart all previously running phyton3 based applications and verify they run correctly. For few of them some cm commanding from VPM vas attempted (ex: SIB2_MotSwitch on/off)

  6. Put the ITF in the further achievable locking state which went all smooth

Once this was achived we proceeded in updating the standard igwn environment in Cascina to the latest gwn-py39-20220317 one (by updating the igwn-py39 link under /cvmfs). This way recent additions like the Igwn Alert are now available ( which hop: /cvmfs/oasis.opensciencegrid.org/ligo/sw/conda/envs/igwn-py39/bin/hop).

From now on we intend to remain in sync with the update cycle of igwn envs

We should remind that default python(2) installation is still the previous anaconda2 one, that is supporting legacy python2 aplications (such as metatron or PyALP) until they are fully ported to python3. So if a user need to access the igwn python, must explicitly use the python3, ipython3, jupyter3 and pip3 commands.

-------------------------------

List of python based packages referred in VPM (except automation)

## Updated
PyRingHeater v1r4
PyPlc v2r2
PySb v4r4
PyLnfs100 v2r3
PySbEth v1r5
PartCount v2r3
PyGenie v2r3
PyVPMlauncher v1r3
PyCernpli v2r6
EnvSwepts v1r5
TangoDAQSmsBridge v6r3
PySat v2r3
PyGRBSNAlert v2r3

### Not updated
PyKeopsys - Waiting for https://git.ligo.org/virgo/virgoapp/PyKeopsys/-/merge_requests/2
PyALP - Waiting for https://git.ligo.org/virgo/virgoapp/PyALP/-/merge_requests/1
PyAgilis v3r3 - Need to understand what is the latest version with developers
PyDdsServer - using own conda env
VIRGODQR -waiting for new version with LIGO
Seismon - waiting for new version with LIGO
PyThorlabs - no repository
PyHWS - no repository
DMSserver  - No cmt directory/ python2
DMSpublisher  - still in python 2
DMSguard - No cmt directory/ python2
dms_web_app  - No cmt directory/ python2