On today automation shift we have:
- introduced the capability to trace actions from metamedm interfaces implemented into the metatron v0r3p0 release. Those actions (code reload and state driving) are traced on the node META__.log file under /virgoLog/Automation/. This is the file being visualized if the log button is clicked on the metamedm interface (so keep the log window open if you are interested in the users actions logging). The user tracing is highlighted by the USERINPUT keyword, the user name and the machine from were the interface is running are reported. At the moment also the "internally" generated transitions are tracked and they can be seen as generated by the virgod user on the olserver52 machine.
- added further protections against nodes crashes into META_library
For the purpose we followed those steps:
- make default command line metatron and metamedm executables point to v0r3p0 release by updating the links in the Install Area:
- /virgo/InstallArea/Linux-x86_64-CL7/bin/metamedm -> /virgoApp/metatron/v0r3p0/Linux-x86_64-CL7/bin/metamedm-conda
- /virgo/InstallArea/Linux-x86_64-CL7/bin/metatron -> /virgoApp/metatron/v0r3p0/Linux-x86_64-CL7/bin/metatron-conda
- From the best locking achievable state (LOW_NOISE_2) bring ITF_LOCK to DOWN and stop all nodes
- restart all nodes and check they actually run from the latest release
- Run a significant subset of medm interface from ICEwm menu
- Check that the crashing of a node (INJ_MAIN) created by triggering a "Node intialized TimerError" do not impact its manager (ITF_LOCK)
- Swap to the new version of the META_library introducing the dedicated logger_pcaspy and extending the handle_exceptions()
- Stop and restart all nodes
- Check that the crashing of a node (INJ_MAIN) from a "Node intialized TimerError" do not occur anymore and that the node is able to remain active waiting for the fixing of the error:
2023-08-26T17:22:03.502Z INJ_MAIN [IMC_RESTORED.run] USERMSG 0: EZCA CONNECTION ERROR: Node intialized TimerError: timer 'SR_MISALIGNED' not initialized.
2023-08-26T17:22:04.011Z INJ_MAIN EZCA CONNECTION ERROR. attempting to reestablish...
2023-08-26T17:22:04.011Z INJ_MAIN CERROR: State method raised an EzcaConnectionError exception.
2023-08-26T17:22:04.011Z INJ_MAIN CERROR: Current state method will be rerun until the connection error clears.
- Check that code reload and state changes from the metamedm interfaces are correctly logged, ex: in the above case the reload of the code:
2023-08-26T17:25:26.879Z USERINPUT LOAD: ctrl26.virgo.infn.it fcarbogn old=0 new=1
2023-08-26T17:25:27.010Z INJ_MAIN LOAD REQUEST
or driving ITF_LOCK state:
2023-08-26T17:39:49.959Z USERINPUT REQUEST_ENUM: ctrl26.virgo.infn.it fcarbogn old=12 new=0
2023-08-26T17:39:50.012Z ITF_LOCK REQUEST: LOW_NOISE_2
- Attempt to put the ITF in the further achievable locking state (LOW_NOISE_2): achived
- Check with htop that the automation nodes do not report stange behaviour (like eccessive CPU consumption)
At the end of the shift we leave all automation nodes running on metatron/v0r3p0 and the metamedm user interface pointing to v0r3p0 version. ITF left in LOW_NOISE_2 with AUTORELOCK_FAILSAFE engaged.
Further details:
- The new logging capabilities are introduced by upgrading to the latest version (0.8.0) of the PCASpy library
- This metatron release is taking all its dependencies from a dedicated cmt-conda environment contaning only what strictly needed:
- /virgo/conda/envs/automation
- This new environment has been created to overcome the problems seen while installing PCASpy 0.8.0 on top of the standard IGWN conda env (crash also of the whole manager nodes hierarchy if a managed node creashes). This environment is lighter and bring the advantage of faster start of the nodes.
- While working on this new feature we attempted the unification of the standard and META_ log files but we assesed there is no way to do it without a mayor update of the guardian / Fd+Cfg integration so we preferred not to introduce such relevant modification at this stage of the Commissioning.
- Below the list of the main differences in packages versions associated to the new conda environment (Specification = new, Running = old)
- Specification pkg: cm==10.3.4=h27087fc_1, Running pkg: cm==9.0.3=h9c3ff4c_1
- Specification pkg: fd==8.43.7=h166bdaf_0, Running pkg: fd==8.38.0=h7f98852_1
- Specification pkg: frv==4.36.0=hbea9962_0, Running pkg: frv==4.35.6=h6c55b11_0
- Specification pkg: libframel==8.42.2=h166bdaf_1, Running pkg: libframel==8.41.3=h7f98852_
- Specification pkg: pycm==7.5.7=py39hb9d737c_1, Running pkg: pycm==7.5.6=py39h3811e60_1
- all difference refers to versions already in use in Cascina for some time.