This morning I was alerted by the control room of a problem concerning the enabling of the B1p quadrants. They had to be rearmed and opened manually as they were not enabled automatically as we expected.
Fig.1 shows an ITF unlock that happened yesterday and produced a flash triggering the closing of the B1p QPD shutter and switch off of their Vbias. This explains why this morning we started with quadrants disabled (Vbias OFF and shutter closed).
During the relocks of this morning, The DRMI_LOCK node tried many times to enable the quadrants and we can infer it from the messages written in its log file:
2022-08-22-07h24m57-UTC>WARNING-Starting Quadrant_cmd for B1p_QD1
2022-08-22-07h24m57-UTC>WARNING-Starting Quadrant_cmd for B1p_QD2
2022-08-22-07h25m03-UTC>WARNING-Starting Quadrant_cmd for B1p_QD1
2022-08-22-07h25m03-UTC>WARNING-Starting Quadrant_cmd for B1p_QD2
2022-08-22-07h30m04-UTC>WARNING-Starting Quadrant_cmd for B1p_QD1
2022-08-22-07h30m04-UTC>WARNING-Starting Quadrant_cmd for B1p_QD2
2022-08-22-07h35m54-UTC>WARNING-Starting Quadrant_cmd for B1p_QD1
2022-08-22-07h35m54-UTC>WARNING-Starting Quadrant_cmd for B1p_QD2
2022-08-22-07h36m00-UTC>WARNING-Starting Quadrant_cmd for B1p_QD1
2022-08-22-07h36m00-UTC>WARNING-Starting Quadrant_cmd for B1p_QD2
2022-08-22-07h39m23-UTC>WARNING-Starting Quadrant_cmd for B1p_QD1
2022-08-22-07h39m23-UTC>WARNING-Starting Quadrant_cmd for B1p_QD2
2022-08-22-07h48m59-UTC>WARNING-Starting Quadrant_cmd for B1p_QD1
2022-08-22-07h48m59-UTC>WARNING-Starting Quadrant_cmd for B1p_QD2
2022-08-22-07h49m05-UTC>WARNING-Starting Quadrant_cmd for B1p_QD1
2022-08-22-07h49m05-UTC>WARNING-Starting Quadrant_cmd for B1p_QD2
However these commands did not seem to produce any effect on the quadrants as shown on Fig.2: the Vbias remained off and the shutter closed (no power seen on B1p_QD1/2_Sum) until 07h53 utc when the quadrants were enabled manually (with the vpm commands).
There does not seem to be any communication problem with the quadrant (the ethernet bridge ethmt7 answers to ping request, the commands sent to the QPD with VPM works). This suggests a possible software issue. To be further investigated.
1 comment
Investigating the problem, this seems specific to the utilization of Popen inside the automation in the action_QPD() function. What is happening is that the environment inherited in the Popen is not set correctly including the PATH variable and then the command telnet used for connecting to the ethernet bridge is not found.
The problem was indeed repeatedly reported by the DRMI_LOCK node in the log file wich also include the python errors themselves (the META_ one) as:
couldn't execute "telnet": no such file or directory
while executing
"spawn telnet $remote_server $port"
(file "/virgoData/VirgoOnline/Quadrant_cmd.exp" line 32)
From those log files it seems the problem started at the time of the automation porting to python3 done on the 9th of July.
While we keep investigating, we have solved the problem by passing explicitly the content of the current environment to the Popen via env=. This resulted in the following modification inside the action_QPD() function (META_library.py):
from:
handle = Popen(['/virgoData/VirgoOnline/Quadrant_cmd.exp', server, port, device, commandStr])
to:
d = dict(os.environ)
handle = Popen(['/virgoData/VirgoOnline/Quadrant_cmd.exp', server, port, device, commandStr], env=d)
We have tested this modification by trying a shutter opening (offline in the TESTTRON1 node and while already open not to interfere with ongoing shift) and verfing that the error above was not reported anymore.