Virgo Logbook
UTC--:--:--
GPS-
Reports
AdV-COM›automation #44865

Swap to SVN server fully dedicated to configurations

A new SVN server fully dedicated to configurations has been setup in order to host:

  • Automation files (*.py and *.ini)
  • The config files of all servers managed from VPM (*.cfg) (corresponding VPM and Cfg new versions supporting it are under development)

The repository is hosted by the virtual machine: olsvn.virgo.infn.it

After proceeding with the dump of the existing SVN archive section ($SVNROOT/Automation/userapps) this morning the swap to the new SVN server has been completed for the Automation.

This impied:

  • hours long dump of all revisions history via: svnrdump dump $SVNROOT/Automation/userapps > userapps_dump (this night)
  • hours long load of all revisions history via: svnrdump load svn+ssh://virgod@olsvn/var/svn/advconf < userapps_dump (this morning)
  • fast dump of few latest revisions via: svnrdump dump -r 79338:HEAD $SVNROOT/Automation/userapps > userapps_dump_delta (lunch time)
  • fast load of latest revisions via: svnrdump load svn+ssh://virgod@olsvn/var/svn/advconf < userapps_dump_delta (lunch time)
  • swap to the new SVN archive and final sync by:
    • mv /virgoDev/Automation/userapps /virgoDev/Automation/userapps.org
    • svn co svn+ssh://virgod@olsvn/var/svn/advconf/Automation/userapps/trunk userapps
    • cp -r /virgoDev/Automation/userapps.org/* /virgoDev/Automation/userapps
    • cd /virgoDev/Automation/userapps
    • svn ci -m 'final sync'

After the swap it has been tested that modifications done on .py or .ini files of few automation nodes were correspondingly traced on the SVN archive.

Soon the application SvnDiff will be updated to point to the new server.

3 comments

narnaud · 7 Mar 2019 · 10:21 #45165

The text at the top of the 'Documentation of the AdV Metatron nodes' webpage has been updated to include this information.

bersanetti, carbognani · 7 Mar 2019 · 16:25 #45174

For non-virgod users the new repository is accessible from the shell with the following command:

  • svn export svn+ssh://[USER]@olsvn/var/svn/advconf [TARGET_DIR]

where [USER] is the Unix username (password will be asked) and [TARGET_DIR] is optional. Single folders can be exported appending the wanted folder name to the svn address (e.g., "[...]/advconf/Automation").

carbognani · 29 Jul 2019 · 15:34 #46516

The utility SvnDiff has been updated this morning (now version v2r0p1 in operation) in order to interface the SVN server fully dedicated to configurations.
The interface allow to show the difference between two dates (using the format YYYYMMDDThhmm) of either or both (depending of the checked check-boxes) Automation files and VPM configurations which correspond, at SVN level, to:

  • svn+ssh://$USER@olsvn/var/svn/advconf/Automation/userapps/trunk
  • svn+ssh://$USER@olsvn/var/svn/advconf/VirgoOnline/Vpm

Fig. 1 shows the setting for reporting the differences on the ITF_LOCK.ini file between July 24 and July 29 at midday.
By default the query is applied to all files unless a specific file is provided.
At the first utilization, the Active Directory password of the USER will be requested for accessing the SVN archive.
The interface use the application "tkdiff' to graphically show the differences. If no tkdiff window pup-up it means that no differences were found
The application is available at command line with the "svndiff" alias. In the IceWM menu, the application has been moved from the Automation section to the top level.