While keep trying to recover the lock we realized that one of the problem we had was due to the fact that the tuning of the LNFS 6 and 56 MHz amplitudes was not actually performed because of a communication error with the LNFS box. The error was indeed reported on the ITF_LOCK node logs but this was not raising a blocking error at the level of the ITF_LOCK node itself.
After some investigation we realized that the LNFS box was not restored in remote communication mode after an intervention some time ago. Putting back the box in remote communication mode solved immediately the problem.
In order not to be trapped again on this situation the ITF_LOCK code has been modified in order to raise a specific and blocking LNFSCommException error in case the dedicated scripts used to send command to the LNFS box are failing. This implied substituting the subprocess.Popen() calls with subprocess.check_call() calls. Few test have been made, for checking this new behavior, by generating fake errors on the set_LNFS_amplitude.py script.
1 comment
I pinpointed this new functionality as the culprit for the recent issues with the NArm suspension guardians: this was happening because of the
subprocessPython module used to launch the set_LNFS_* scripts: the newly usedsubprocess.check_callinstruction is a blocking instruction, meaning that the following Python code was not executed until a good returncode was acquired from the interpreter. The net effect was that, in theDOWNstate ofITF_LOCK, nothing after such call was executed until the call itself was concluded; namely, this meant setting the managed nodes toDOWNand turning off the mainLSC_ENABLEflag, resulting in very high corrections being sent to mirrors for several seconds after the unlock. I made a few lock/unlock tests switching between the old and new configurations and this seems reproducible.As a countermeasure I simply put the offending call at the very end of the
main()function of theDOWNstate, so now everything is put down before reinstating the 6 MHz amplitude.This kind of call is also made several times during the lock acquisition, and it feels related to some lock acquisition failures I observed during the week, as the main ones happen while going to dark fringe and to
LOW_NOISE_2, in the latter case resulting in several additional seconds where the ETM actuators are halfway through the switch from LN1 to LN2; for safety, I moved the LNFS stuff at the end of themain()in theLOCKED_PRITF_DFstate, and at the end of therun()function inLOW_NOISE_2.The following lock acquisitions will be monitored to ensure the correct behaviour.